ThinkPAD (TP240, X30) で Palm と赤外線通信


これはメモです。情報が古い場合も、誤りである場合もありえます。

OS は, Vine Linux 2.6 です.

1. まず, BIOS で serial を disable にし, InfraRed を enable にする.

2. あとは, Infrared-HOWTO.txt の通り.

irda-utils をインストールしておく.

2.1. デバイスファイル

mknod /dev/ircomm0 c 161 0                                             
mknod /dev/ircomm1 c 161 1                                             
mknod /dev/irlpt0 c 161 16                                             
mknod /dev/irlpt1 c 161 17                                             
mknod /dev/irnet c 10 187                                              
chmod 666 /dev/ir*                                                     
ln /dev/ircomm0 /dev/pilot
を行う.

2.2. /etc/modules.conf に以下を追加.

# IrDA over a normal serial port, or a serial port compatible IrDA port
alias tty-ldisc-11 irtty
# IrCOMM (for printing, PPP, Minicom etc)
alias char-major-161 ircomm-tty     # if you want IrCOMM support
# IRLAN
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
alias irda-dongle-6 airport         # Adaptec Airport 1000 and 2000
# 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
#alias irda0 smc-ircc
# IrNET module...
alias char-major-10-187 irnet       # Official allocation of IrNET
編集が終ったら以下を実行:
# depmod -a

2.3. /etc/sysconfig/irda のデバイスを ttyS1 に変更

3. 手動で試してみる.

3.1. もしも, irda が既に動いていれば一旦止める.

/etc/init.d/irda status
でチェックする. 止めるときは
/etc/init.d/irda stop

irda 関係のモジュールが既にロードされていれば, 一旦取り除ぞく.

lsmod
rmmod ircomm-tty
等々.
3.2. module をロード.
modprobe irda
modprobe irtty

3.2. irattach 実行

irattach /dev/ttyS1

3.3. irdadump でチェック.

3.4. pilot-xfer で Palm と通信してみる.

4. これで起動後すぐに使えた.


個人的メモ目次