File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Stupid question on connections on Palms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Stupid question on connections on Palms" Watch "Stupid question on connections on Palms" New topic
Author

Stupid question on connections on Palms

John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1449
I am trying to figure out how to access a website from a Palm using an HTTP connection. Do I have to have a wireless Palm to do this? I am assuming I can't do this via the hot synch cradle.
Thanks,
John


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Eric Giguere
Ranch Hand

Joined: Oct 25, 2000
Posts: 170
Actually, you can do it both ways. If you have a wireless Palm you can use the "http" protocol, if you have a non-wireless Palm you can use the "testhttp" protocol. The latter requires that your Palm be in its cradle and that you have configured it properly for PPP... but yes, it's all possible.
Eric


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
Andrew Brasek
Greenhorn

Joined: Oct 11, 2000
Posts: 10
Eric,
Hey, is http and testhttp covered in your book?
Eric Giguere
Ranch Hand

Joined: Oct 25, 2000
Posts: 170
Briefly, yes. The CLDC reference implementation does come with a sample program. The only trick is that you have to configure your device or emulator for communications properly before you try to run the program -- that's really independent of anything else.
Eric
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1449
Thanks for the info. I recall seeing something about http & testhttp in your book. Does the documentation that comes with the CLDC talk about how to configure your Palm?
Thanks,
John
Eric Giguere
Ranch Hand

Joined: Oct 25, 2000
Posts: 170
Hmm... I don't recall. Probably not. It's really not CLDC-specific: basically you need to configure the Palm for PPP if you're running out of the cradle or for wireless communication if you're not (the latter of course limits you to a Palm VII or a Palm V with OmniSky or something similar). If you can get regular network apps to work your Java apps should also work. I posted some hints up on the KVM-INTEREST list, so you could search that archive... actually, here's my posting:
To use the "http" and "https" protocols with the Palm port of the CLDC
reference implementation, you need to configure your emulator to work
"wirelessly". Just redirecting NetLib to the local TCP/IP stack (which you
should do anyhow) isn't enough, because the wireless stuff goes through a
different library. Do this:
0) Make sure you're running the Palm VII ROMs.
1) Tap on the Prefs icon and choose the "Wireless" item.
2) Enter 209.247.202.106 as the IP address.
3) Go to the "Network" item and choose "Windows direct".
4) Reset POSE.
5) Now go to the apps listing and select the "Fidelity" icon, type in your
favorite stock symbol and press the "Quote" button. If you don't get a
stock quote back then you haven't configured things correctly yet, so no
point in trying the Java stuff. Keep playing around until it works.
Then you'll be able to run KvmHttpTest. Note that the URL that KvmHttpTest
uses for its first test is no longer valid, so it will fail. You can change
the source to use something like http://www.yahoo.com/index.html instead.
Note that the "testhttp" protocol doesn't use the wireless stuff, but it
should work as well once you redirect TCP/IP.
Eric
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1449
Hi, Eric.
I looked at Prefs/Network/Detail on my Palm (a IIIxe) and it shows the connection type as PPP so that looks OK. Do you know if I should set the Connection to Palm Modem US/Canada, Direct Serial, or Current? I'll just play around with it and see what happens.
John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stupid question on connections on Palms