Download Linux Infrared HOWTO

Transcript
Linux Infrared HOWTO
irlap_change_speed(), setting speed to 9600
irlap_recv_discovery_xid_cmd(), discovery frame to short!
Now start irdadump, you should see all IrDA devices in range. Or at least this one, here "japh" (the other
IrDA device in this example is named "Olga"). For diagnostic purposes leave irdadump running in this
terminal window and switch to another window for the next steps.
07:58:40.889590
07:58:40.979575
07:58:40.979679
07:58:41.069571
07:58:41.166552
07:58:43.620104
07:58:43.709078
xid:cmd
xid:cmd
xid:rsp
xid:cmd
xid:cmd
xid:cmd
xid:cmd
ffffffff
ffffffff
2c5261ec
ffffffff
ffffffff
ffffffff
ffffffff
<
<
>
<
<
<
<
4fe026d8
4fe026d8
4fe026d8
4fe026d8
4fe026d8
4fe026d8
4fe026d8
S=6
S=6
S=6
S=6
S=6
S=6
S=6
s=3
s=4
s=4
s=5
s=*
s=0
s=1
(14)
(14)
japh hint=0400 [ Computer ] (20)
(14)
Olga hint=0400 [ Computer ] (20)
(14)
(14)
4.6.5. Loading the IrCOMM Modules
Now load the IrCOMM modules (note this is usually done automagically by the kernel daemon kmod if you
start PPP or printing via IrDA, but for the first time we do things by hand). So do modprobe ircomm and
modprobe ircomm−tty .
The dmesg will show now:
IrCOMM protocol (Dag Brattli)
ircomm_open_lsap()
ircomm_tty_attach_cable()
ircomm_tty_ias_register()
ircomm_tty_close()
ircomm_tty_shutdown()
ircomm_tty_detach_cable()
ircomm_close()
And with lsmod you may see:
Module
ircomm−tty
ircomm
irda−usb
...
irtty
irda
Size
30080
13164
13776
7264
141648
Used by
Tainted: P
0 (autoclean)
0 (autoclean) [ircomm−tty]
1
0
1
(autoclean)
(autoclean) [ircomm−tty ircomm irda−usb irtty]
4.6.6. Setting up a Network (PPP)
You may start pppd with commandline options, but for me it's more convenient to have a configuration file
/etc/ppp/peers/irda.
connect /bin/true
noauth
persist
debug
kdebug 7
nodetach
115200
local
/dev/ircomm0
192.168.0.2:192.168.0.3
Chapter 4. Hardware Supported by Linux/IrDA
46