Establishing a InfraRed PPP Connection between Linux and a Palm By Ed, 11-30-00 www.narced.com/linux The purpose of this document is to show how to establish a PPP connection between a Palm and computer running Linux with an Extended Systems XTNDAccess (ESI 9680 - formerly called JetEye PC) dongle hooked up to its serial port. Details or the ESI 9680 can be found at http://www.extendedsystems.com/products/infrared/jeteyepc.html . With a PPP connection, a Palm user is then able to do a Network Sync, sync Avangto (www.avantgo.com), run telnet, etc. These instructions should work with any other IR dongle/connector that is supported by the Linux Kernel and the IrDA Utilities (mentioned below). Special thanks to the authors/contributors of the Linux Infrared HOWTO (available at http://mobilix.org/Infrared-HOWTO/Infrared-HOWTO.html or http://www.ibiblio.org/pub/Linux/docs/HOWTO/Infrared-HOWTO ) - without them, there was no way I'd ever figure this out! *** Linux Setup *** 1. Compile Kernel with IrDA, PPP, and ip-firewalls/masquerading stuff 2. Download latest IrDA Utils from: ftp://irda.sourceforge.net/pub/irda/irda-utils/ Compile/install it: tar -xzvf ; make ; make install 3. Set up IR /dev devices that will be used by PPP and other programs: mknod /dev/ircomm0 c 161 0 #this points to /dev/ttyS0 mknod /dev/ircomm1 c 161 1 #this points to /dev/ttyS1 4. irattach /dev/ttyS0 -d esi This setup assumes you are using the FIRST serial port (COM1 under DOS/Windows) The "-d esi" option specifies that I'm using the ESI 9680. It also supports others, including the ActiSys 220L/220L+. Details at: http://www.actisys.com/ac200-220.html 5. irppp - script to start the connection on the Linux side ------------------------- #!/bin/sh SPEED=57600 LOCALIP=192.168.3.20 REMOTEIP=192.168.3.21 DNS=198.4.75.100 # Start IPCHAINS stuff echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/ipchains -P forward DENY /sbin/ipchains -A forward -s 192.168.3.0/255.255.255.0 -j MASQ # Kill and then Start PPP killall -9 pppd clear /usr/sbin/pppd /dev/ircomm0 $SPEED $LOCALIP:$REMOTEIP passive silent persist noauth local nodetach ms-dns $DNS & ------------------------- *** Palm Setup *** These instructions are for PalmOS 3.5.x. I assume 3.3 and above should work fine. PalmOS version 3.1 (burned into the ROM of the IIIe) needs the IR Enhancement offered by Palm at: http://www.palm.com/support/downloads/irenhanc.html 1. Go to Home | System (top right pull-down menu) | Prefs 2. Choose "Connection" in the top right pull-down menu. 3. Select "IR to PC/Handheld" and click "Edit" 4. "Connection Method" should be set to "IrCOMM to PC" 5. Click "Details": "Speed" = "57600" "Flow Control" = "Automatic" 6. Click "OK" and then "OK" again. 7. Go to "Network" in the top right pull-down menu. 8. Pick anything under "Service" and rename it if you like (they are all essentially the same). Something like "IR Connection" seems appropriate. 9. Leave "Username" and "Password" blank; they are unnecessary. 10. "Connection" should be set to "IR to PC/Handheld" 11. Click "Details" "Connection Type" = "PPP" "Idle Timeout" = "Power Off" "Query DNS" and "IP Address Automatic" should both be checked 12. Click "Script" - it should be set to "End" as the first and only entry (this is how the script is disabled). 13. Click "OK" and "OK" again. At this point, aim the Palm at the IR Port and press "Connect"!