Checkout:
http://lpn.rnbhq.org/R31/R31.shtml#irda
http://lpn.rnbhq.org/R31/marcin.email-howto
http://tuxmobil.org/Infrared-HOWTO/Infrared-HOWTO.html
http://www.northlodge.org/ian/work/irda/irda.html
$ echo 'IBM ThinkPad IRDA/IR/Infra-red: No Patching Required!'
$ echo 'Note: unload *nsc-ircc* before hibernate/suspend! (?)'
$ sudo modprobe nsc-ircc irq=4 dma=3 io=0x03f8 dongle_id=0x09
$ sudo modprobe ircomm-tty
$ sudo irattach irda0 -s 1
$ sudo irdadump
$ sudo tail -15 /var/log/kernel.log
Jul 13 16:26:57 emeritus kernel: irda_init()
Jul 13 16:26:57 emeritus kernel: nsc-ircc, Found chip at base=0x02e
Jul 13 16:26:57 emeritus kernel: nsc-ircc, driver loaded (Dag Brattli)
Jul 13 16:26:57 emeritus kernel: IrDA: Registered device irda0
Jul 13 16:26:57 emeritus kernel: nsc-ircc, Using dongle: IBM31T1100 or Temic TFDS6000/TFDS6500
Jul 13 16:27:19 emeritus kernel: IrCOMM protocol (Dag Brattli)
Jul 13 16:27:19 emeritus kernel: IrCOMM protocol (Dag Brattli)
Jul 13 16:27:24 emeritus kernel: irlap_change_speed(), setting speed to 9600
Jul 13 16:27:24 emeritus kernel: irlap_state_ndm(), media busy!
Jul 13 16:27:24 emeritus irattach: executing: '/sbin/modprobe irda0'
Jul 13 16:27:24 emeritus irattach: executing: 'echo emeritus > /proc/sys/net/irda/devname'
Jul 13 16:27:24 emeritus irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Jul 13 16:27:24 emeritus irattach: Starting device irda0
Jul 13 16:27:24 emeritus kernel: irlap_change_speed(), setting speed to 9600
Jul 13 16:27:24 emeritus kernel: irlap_state_ndm(), media busy!
$ sudo watch --interval=1 cat /proc/net/irda/*
IrLMP: Discovery log:
nickname: Paul Sladen m105, hint: 0x8220, saddr: 0x80c2d799, daddr: 0x5400e940 <------------
LM-IAS Objects:
name: Device, id=0
- Attribute name: "IrLMPSupport", value[IAS_OCT_SEQ]: octet sequence (3 bytes)
- Attribute name: "DeviceName", value[IAS_STRING]: "emeritus"
irlap0 state: LAP_NDM
device name: irda0, hardware name: NSC-FIR @ 0x3f8
caddr: 0xc, saddr: 0x80c2d799, daddr: 0x000000
win size: 0, win: 0, line capacity: 0, bytes left: 0
tx queue len: 0 win queue len: 0 rbusy: FALSE mbusy: FALSE
retrans: 0 vs: 0 vr: 0 va: 0
qos bps maxtt dsize winsize addbofs mintt ldisc comp
tx 9600 0 64 1 12 0 0
rx 9600 0 64 1 12 0 0
Unconnected LSAPs:
lsap state: LSAP_DISCONNECTED, slsap_sel: 0x0, dlsap_sel: 0xff, (IrIAS srv)
Registred Link Layers:
lap state: LAP_STANDBY, saddr: 0x80c2d799, daddr: 0xffffffff, num lsaps: 0
Connected LSAPs:
$ tail -2 /etc/modutils/irda
# for FIR device
alias irda0 nsc-ircc irq=4 dma=3 io=0x03f8 dongle_id=0x09