Linux 2.6.x IrDA hints (under construction)

Prerequisites

Kernel configuration

Networking ---> <*> Networking support <M> IrDA (infrared) subsystem support ---> <M> IRNET protocol (NOT VERIFIED) <M> IrCOMM protocol (NOT VERIFIED) Infrared-port device drivers ---> <M> IrDA USB dongles
Make sure to NOT activate (i.e. neither M nor Y) CONFIG_USB_SERIAL_IR (ir-usb). The ir-usb driver is loaded first per default and prevents correct function of the irda-usb driver !
NOTE: todo: check if this is true also for Palm connections ?

Start IrDA

If you have a /etc/rc.d/init.d/irda start script, you can put this lines to /etc/sysconfig/irda :
IRDA=yes DEVICE=irda0 DISCOVERY=yes

and just call /etc/rc.d/init.d/irda start

If you prefer to start it by hand, you can do this with

root@osiris:~# irattach irda0 -s

Then you can check if things work like this:

root@osiris:~# ifconfig irda0 irda0 Link encap:IrLAP HWaddr 0b:d1:bc:3a UP RUNNING NOARP MTU:2048 Metric:1 RX packets:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:882 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:8 RX bytes:286 (286.0 b) TX bytes:13356 (13.0 Kb) root@osiris:~# irdadump 20:05:36.244324 xid:cmd 0bd1bc3a > ffffffff S=6 s=3 (14) 20:05:36.334323 xid:cmd 0bd1bc3a > ffffffff S=6 s=4 (14) 20:05:36.424322 xid:cmd 0bd1bc3a > ffffffff S=6 s=5 (14) 20:05:36.499454 xid:rsp 0bd1bc3a > 165c1872 S=6 s=5 Palm III hint=8220 [ PDA/Palmtop IrOBEX ] (26) 20:05:36.514319 xid:cmd 0bd1bc3a > ffffffff S=6 s=* osiris hint=0400 [ Computer ] (22)

Create devices

mknod -m 666 /dev/ircomm0 c 161 0 mknod -m 666 /dev/ircomm1 c 161 1 mknod -m 666 /dev/irlpt0 c 161 16 mknod -m 666 /dev/irlpt1 c 161 17 mknod -m 666 /dev/irnet c 10 187

Configure auto module loading, if desired


Put this in your /etc/modules.conf if you want auto loading of modules :
# IrDA over a normal serial port, or a serial port compatible IrDA port (SIR) alias tty-ldisc-11 irtty # IrCOMM (for printing, PPP, Minicom etc) alias char-major-161 ircomm-tty # if you want IrCOMM support # IRLAN # But currently the IrLAN protocol is no longer maintained by the Linux/IrDA core team. alias irlan0 irlan # To be able to attach some serial dongles # These values are hard-coded in irattach (not instance order) alias irda-dongle-0 tekram # Tekram IrMate IR-210B alias irda-dongle-1 esi # ESI JetEye alias irda-dongle-2 actisys # Actisys IR-220L alias irda-dongle-3 actisys # Actisys IR-220L+ alias irda-dongle-4 girbil # Greenwich GIrBIL alias irda-dongle-5 litelink # Parallax LiteLink/ESI JetEye alias irda-dongle-6 airport # Adaptec Airport 1000 and 2000 alias irda-dongle-7 old_belkin # Belkin (old) SmartBeam dongle alias irda-dongle-8 ep7211_ir # Cirrus Logic EP7211 Processor (ARM) alias irda-dongle-9 mcp2120 # MCP2120 (Microchip) based alias irda-dongle-10 act200l # ACTiSYS Ir-200L alias irda-dongle-11 ma600 # Mobile Action ma600 # To use the FIR driver. This applies only to the specific device!!! #options nsc-ircc dongle_id=0x09 # NSC driver on a IBM Thinkpad laptop #options nsc-ircc dongle_id=0x08 # HP Omnibook 6000 #alias irda0 nsc-ircc # options smc-ircc ircc_irq= ircc_dma= # alias irda0 smc-ircc # options toshoboe max_baud= # alias irda0 toshoboe # options w83977af_ir io= io2= irq= qos_mtt_bits= # alias irda0 w83977af_ir # IrNET module... alias char-major-10-187 irnet # Official allocation of IrNET

Notes

Most of this is taken from
http://tuxmobil.org/Infrared-HOWTO/
-------------------------
and
http://irda.sourceforge.net/
-------------------------------
Furthermore, the ircomm? devices doesn't seem to work at all.
/sbin/modprobe irda /sbin/modprobe irtty /sbin/modprobe ircomm /sbin/ircomm-tty /usr/sbin/irattach /dev/ttyS3 -s

Setup (Palm side)

More informations