IntelliJ Java IDE
The moose likes Java Micro Edition and the fly likes Opening comm. Connection on Palm VIIx Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Opening comm. Connection on Palm VIIx" Watch "Opening comm. Connection on Palm VIIx" New topic
Author

Opening comm. Connection on Palm VIIx

Aamir Chaudhry
Greenhorn

Joined: Dec 10, 2001
Posts: 23
hi,
i want to open comm. Connection on Palm VIIx serial port by using JWTK 1.0.3 (CLDC + MIDP). JWTK includes 'MIDP for Palm OS' which doesn't support comm. Connection for that reason i get ConnectionNotFoundExcetion. i just want you guys to help me in;
1."What are the other possible and feasible ways to open a comm. Connection on Palm VIIx using J2ME"?
2."Can we make some special calls to native Palm APIs from J2ME to solve this problem? If yes, then How?"
please do include some part of code?(if required) and related links in your reply. Your quick response would be much appreciated.
Thanks and Regards,
Aamir Chaudhry
Eric Giguere
Ranch Hand

Joined: Oct 25, 2000
Posts: 170
The only protocol officially supported under MIDP is HTTP. Individual vendors may offer other protocol support as extensions, but so far MIDP4Palm doesn't. So there's nothing you can do with MIDP4Palm right now. And no, you can't add your own native code because the CLDC does not allow for new native code to be added to a Java runtime environment without recompiling the VM.
If you really want to do this, look into other alternatives like esmertec's Jbed or IBM's J9, they offer access to the low-level Palm stuff.

------------------
Eric Giguere
author/co-author of:
Mobile Information Device Profile for Java 2 Micro Edition: Professional Developer's Guide
Java 2 Micro Edition: Professional Developer's Guide
PalmTM Database Programming: The Complete Developer's Guide


Eric Giguere
Author/Co-Author of: Mobile Information Device Profile for Java 2 Micro Edition: Professional Developer's Guide, Java 2 Micro Edition: Professional Developer's Guide and PalmTM Database Programming: The Complete Developer's Guide
Aamir Chaudhry
Greenhorn

Joined: Dec 10, 2001
Posts: 23
eric, thanks for your reply.
liang gu
Ranch Hand

Joined: Nov 05, 2001
Posts: 89
Actually, from MIDP4Palm document, it says that on Palm VIIx device, it does not support HTTP protocal, instead it suports inethttp protocal. My testing results on the actual Palm VIIx prove it is true.
Liang
dan moore
Ranch Hand

Joined: Nov 04, 2001
Posts: 68
esmertec were actually advertising that they support serial connection under the J2ME Connection classes ("serial" or "comm" protocol if i remember) on the palm.
cheers, dan


dan moore, infomatiq ltd.<br />email dan@infomatiq.co.uk<br /><a href="http://www.infomatiq.co.uk" target="_blank" rel="nofollow">http://www.infomatiq.co.uk</a>
 
 
subject: Opening comm. Connection on Palm VIIx
 
Threads others viewed
Urgent! Help needed
Palm VIIx Wireless application??
Why the wireless connection is so slow in J2ME
serial connection w/ palm
MIDP for Palm OS
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture