This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening comm. Connection on Palm VIIx

 
Aamir Chaudhry
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Aamir Chaudhry
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eric, thanks for your reply.
 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic