Setting up Linux to Beam files to a Palm Using IrOBEX By Ed, 12-10-00 www.narced.com/linux First, you'll need to install the following. The instructions are the same for all of them: tar -xzvf cd ./configure make make install 1). glib.h If you have glib.h, you can skip this step. Otherwise, install: --> ftp://ftp.gtk.org/pub/gtk/v1.3/glib-1.3.2.tar.gz Once compiled an installed, make this symlink just in case: --> ln -s /usr/local/bin/glib-config-2.0 /usr/local/bin/glib-config Update your system's libraries: --> ldconfig 2). Open-OBEX Libraries Follow the directions at the top to install: http://download.sourceforge.net/openobex/openobex-0.9.7.tar.gz Since you just installed library files, run: --> ldconfig 3). Install the Apps that let you beam stuff: --> http://download.sourceforge.net/openobex/openobex-apps-0.9.7.tar.gz 4). You can now use "irobex_palm3" to send and receive files from your Palm Make sure you already ran "irattach" (like: --> irattach /dev/ttyS0 -d esi to attach an ESI JetEYE to the first serial port). To receive files (automatically saved to /tmp) from your Palm, type: --> irobex_palm3 If you want to beam files to your Palm, type: --> irobex_palm3 You may notice that it will fail about a second after the "Waiting for Sender..." message appears on the Palm's screen. If this happens just run the command again (hit the up arrow+enter if you're at the command prompt). It seems like the Palm has to be ready to receive BEFORE irobex_palm3 can start sending. Tiny bug, but oh well. Here's a script that will just keep trying to beam until the Palm is ready: ---------------------------------------------------- #!/usr/bin/perl # beam.pl - script to beam files to Palm # Written by Ed because irobex_palm3 bails out # if the Palm isn't already at "Waiting for Sender..." # It will try 10 times and then quit. $beam = "/usr/local/bin/irobex_palm3"; if (!$ARGV[0]) { print "\nUsage: $0 \n\n"; } else { $sent = 0; $tries = 0; print "Beaming $ARGV[0]"; while (($sent != 1) && ($tries < 10)) { $tries++; print "."; $output = `$beam $ARGV[0]`; sleep 1; # Check output if it sent if ($output =~ /PUT successful/) { $sent=1; print " Done!\n"; } #end if } #end while if ($output =~ /Sorry/) { print " Fail!\n"; } #end if } #end if $ARGV ----------------------------------------------------