Howto: transfer cellular phone pictures to T23 running Linux with Infrared Linux Distribution: Debian Laptop: IBM thinkpad T23 Cellular phone: Nokia 6101 BIOS: enable infrared port (Enter BIOS setup at boot by press F1) Kernel: tested with linux 2.6.22, enable the following option CONFIG_IRTTY_SIR=m CONFIG_IRPORT_SIR=m CONFIG_NSC_FIR=m (this is the chip on thinkpad T23) and CONFIG_SERIAL_8250_RUNTIME_UARTS=1 (it's not required, see below) Installed package: irda-utils, openobex-app sudo dpkg-reconfigure irda-utils (Note: most important step is set 'SETSERIAL="/dev/ttyS0"' in /etc/default/irda-utils which disable the serial port (see Linux infrared Howto) I have kernel option set: CONFIG_SERIAL_8250_RUNTIME_UARTS=1 if not, the port may be /dev/ttyS1, etc) which modifies two files: /etc/modutils/irda-utils -----------clip begin--------- alias tty-ldisc-11 irtty alias char-major-161 ircomm-tty alias char-major-60 ircomm_tty # For dongles alias irda-dongle-0 tekram alias irda-dongle-1 esi alias irda-dongle-2 actisys alias irda-dongle-3 actisys alias irda-dongle-4 girbil alias irda-dongle-5 litelink alias irda-dongle-6 airport alias irda-dongle-7 old_belkin alias irda-dongle-11 ma600 # For FIR device options nsc-ircc dongle_id=0x09 io=0x2f8 irq=3 dma=3 alias irda0 nsc-ircc -----------clip end----------- /etc/default/irda-utils -----------clip begin--------- # Set your startup settings for irattach, the IrDA-daemon, here. # Set this to 'false' if you do not need to start irattach. Otherwise set it # to 'true'. ENABLE="false" # Set discovery mode which usually is a good idea for finding other devices. # If set 'true' or 'false' irattach and sysctl are used to enable and disable # discovery mode. By default discover mode is disabled. DISCOVERY="true" # Set IRDA device to access (e.g. /dev/ttyS1 or irda0). # In case of irda0, the proper module for FIR-mode has to be set in # /etc/modutils/irda-utils (2.4) or /etc/modprobe.d/irda-utils (2.6) DEVICE="irda0" # Set dongle type, e.g. none, tekram, esi, actisys, actisys+, ep7211, girbil, # litelink, airport, old_belkin, mcp2120, act200l, ma600). You do not need # a dongle for FIR mode. DONGLE="none" # Set the serial device to quiet with setserial. This is only useful on some # machines in FIR-mode, so most people should leave it blank. See # README.Debian for more information. SETSERIAL="/dev/ttyS0" # Some laptops (Toshiba Satellites and others with SMCS LPC47N227) require # running smcinit to initialize the irda device prior to use. # If you device is one of them, set this option to "yes" USE_SMCINIT="no" -----------clip end----------- Test the setup start infrared port with $ sudo /etc/init.d/irda-utils start then $ sudo irdadump pair up the other infrared device, it should show up, i.e. with lines contain "<" (received packets) if not, check /var/log/syslog to see if there is error messages Transfer pictures from a cellular phone (Tested with Nokia 6101) to send/receive a single file, just use $ irxfer to send/receive a group of file, use obexftp to list folder: $ obexftp -i -l use a bash script to get a group of files from "Image" or "Video clips" folder: -----------clip begin--------- #!/bin/bash for i in `seq 0 38`; do # filename=`printf '%s%03d%s' 'Image' $i '.jpg'` filename=`printf '%s%03d%s' 'Video' $i '.3gp'` echo $filename # obexftp -i -c Images -g $filename # obexftp -i -c Images -k $filename obexftp -i -c "Video clips" -G $filename done -----------clip end----------- If finish with IR, stop it with sudo /etc/init.d/irda-utils stop Reference links http://gentoo-wiki.com/HARDWARE_IBM_ThinkPad_T30#IrDA_.28InfraRed.29 http://home.comcast.net/~jyavner/T23/ http://osdir.com/ml/linux.hardware.thinkpad/2003-09/msg00078.html http://thinkwiki.org/wiki/Category:T23 http://www.faqs.org/docs/Linux-HOWTO/Infrared-HOWTO.html