Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!
niemueller.de::home niemueller.de
Open Software. Open Knowledge.




 

Null Modem PPP Connection with your Palm



This shortly describes how to get your Palm online via a so called null modem cable. Your cradle or Hotsync-cable will work just fine for this purpose. There is no special cable needed.

I have tested this myself with a Palm m515 (serial, not USB!), IIIc and IIIxe. It should also work for III, IIIx, IIIe and the like. The oldest PalmOS Version I used was 3.5, I'm not sure whether older version can do the same.

On the server side you need a PC with Linux installed. You need root access and pppd installed on your machine. If you are using a dialup or DSL connection you most likely already have that installed. Almost every current Linux should do the trick, I have tested it on a 2.4 system but 2.2 should work as well.

Configuration of your Palm handheld
  • Go to the Launcher's system tab and start the program called "Prefs".
  • Select the "Connection" item in the upper right list
  • Create a new connection.
    • Name: Nullmodem
    • Connect to: PC
    • Via: Serial
    • Go to the detailes tab
      • Set the speed to 115200 bytes per second
      • Flow control automatic
      • OK
    • OK, now the new connection should be in the list of available connections.
  • Select "Network" in the upper right list.
  • Create a new network service
    • Go to the menu and select "New"
    • Name: PPP
    • User name: none (empty field)
    • Password: prompt
    • Connection: Nullmodem (the one you created)
    • Go to the details screen
      • Connection Type: PPP
      • Idle timeout: Never (it does not cost anything anyway...)
      • Query DNS: Yes
      • IP Address: Automatic
      • To to the scripts tab
        • The very first item should be "End". If you set this all the other lines should be deleted (if there are any)
        • OK
      • OK
  • Now you are set on the palm side


Server / Linux side Open a root shell and execute the following command:
/usr/sbin/pppd /dev/ttyS0 115200 192.168.77.1:192.168.77.2 noauth silent local persist -detach
This will launch the PPPd for the first serial port on ttyS0 (on Windoze this is called COM1). You should see a message like this:
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS0
Now connect your Palm with the serial cable to the first serial port and click on "Connect" in the Network settings tab on your Palm (where you created the network connection, you still should be there :-). You should see messages on the Linux screen indicating that a connection has been establised. Your Palm should get the IP 192.168.77.2 and the server has 192.168.77.1. You should be able to ping your Palm from the Linux PC.

To get online with you Palm you have to masquerade the traffic. Let's assume you are behind a router and connected to the network with eth0.

First you need to enable network forwarding. Type:
echo 1 > /proc/sys/net/ipv4/conf/all/forwarding


Then establish masquerading for your palm by typing
/sbin/iptables -t nat -A POSTROUTING -s 192.168.77.0/24 -d ! 192.168.77.0/24 -o eth0 -j MASQUERADE


Now your palm should be able to reach the outside world.







    Home     Contents     Search     View other revisions     Recent changes    




Top 5 Pages
Wiki
WebLog
SquidGuard Webmin Module
Network Utilities Webmin Module
IPtables Webmin Module


Palm Software
UniMatrix UniMensa UniSorter
UniChat OHS Mobile Onager


My Bookshelf




Valid XHTML 1.1!

RSS Copyright © 2000-2009 by Tim Niemueller