aspose file tools*
The moose likes Java Micro Edition and the fly likes palmtops and the outside world Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "palmtops and the outside world" Watch "palmtops and the outside world" New topic
Author

palmtops and the outside world

david russell
Greenhorn

Joined: Feb 28, 2002
Posts: 14
hey, has anyone had experience connecting a palm running a j2me program to the pc on which its hosted? i have a working app on the emulator, but i want to see it running on the palm device. has anyone experienced setting network settings? its really doing my head in
dave
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Maybe you may want to read the following article:
http://wireless.java.sun.com/midp/articles/palm
Towards the end there is a section called "Advanced Java Applications" which explains how to set up the network and stuff...
Basically, there are 2 things you need to do:
1. Redirect Netlib calls to host TCP/IP. To do this, right click on POSE window, select Setting -> Properties, and check the Redirect NetLib calls to host TCP/IP
2. Enable Networking. To do this, tap the Java HQ icon, then tap Preferences and select Networking Enabled


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
david russell
Greenhorn

Joined: Feb 28, 2002
Posts: 14
hey,
thanks for the reply, i checked out that article early on and quite recently.
i have got the pose working properly and my midlet works fine on the emulator, but when i put it on a real device i cant make it connect through the cable to the pc. i use the ppp protocol and it does try to connect, but the connection always times out with nothing happening
ive trawled the various sun sites and other forums for anyone with the same experience, but there is usually nothing or no replies to a post. its a puzzler alright!!
dave
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Yes, you should be able to simulate TCP/IP network over the serial line or IR port. Have a look at the following two articles:
http://www.oreillynet.com/lpt/a//network/2000/05/05/magazine/PalmLinux.html
http://deepwave.net/ref/palm-net/
I think you mentioned that your connection always goes time out? check:
1. IP addresses are correct;
2. You do not have a forewall on the PC that prevent access from the PPP interface;
3. The speed specified in pppd should match the speed in Palm pref-->connection


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: palmtops and the outside world