Hi,
The irda on my linux machine works almost, but I still have a problem with the
irmanager. I would be happy if someone could help me... thank's in advance :-)
OK, here is what is working:
I can see that something happens between my notebook and my mobile phone:
>/sbin/ifconfig
...
irda0 Link encap:IrLAP HWaddr b6:59:5f:1e
UP RUNNING NOARP MTU:2048 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:66731 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
...
>irdadump
...
16:18:17.500355 xid:cmd b6595f1e > ffffffff S=6 s=4 (14)
16:18:17.580358 xid:cmd b6595f1e > ffffffff S=6 s=5 (14)
16:18:17.660356 xid:cmd b6595f1e > ffffffff S=6 s=* horus hint=0500 [ PnP
Computer ] (21)
16:18:17.660414 xid:rsp b6595f1e < 6e160000 S=6 s=5 Nokia 7110 hint=b125 [ PnP
Modem Fax Telephony IrCOMM IrOBEX ] (27)
16:18:20.180368 xid:cmd b6595f1e > ffffffff S=6 s=0 (14)
16:18:20.260356 xid:cmd b6595f1e > ffffffff S=6 s=1 (14)
16:18:20.340355 xid:cmd b6595f1e > ffffffff S=6 s=2 (14)
...
So it seems to be ok, but... the irmanager doesn't see anything!:
>ps ax | grep irmanager
476 ? S 0:00 irmanager -d 1
>strace -F -p 476
read(0,
... and nothing happens!
I have made the devices:
>ls -lda /dev/ir*
crw-r--r-- 1 root root 161, 0 May 10 23:09 /dev/ircomm0
crw-r--r-- 1 root root 161, 1 May 10 23:09 /dev/ircomm1
crw-r--r-- 1 root root 161, 16 May 10 23:09 /dev/irlpt0
crw-r--r-- 1 root root 161, 17 May 10 23:09 /dev/irlpt1
and here is my conf.modules:
>less /etc/conf.modules
alias eth0 xirc2ps_cs
alias sound-slot-0 nm256
alias tty-ldisc-11 irtty
alias char-major-161 ircomm_tty
Oh, by the way, I am running Linux Redhat 6.2 on a Dell Latitude. I am using
the irda-utils version 0.9.10:
>rpm -qa | grep -i irda
irda-utils-0.9.10-1
and my kernel is a 2.2.14:
>uname -a
Linux horus 2.2.14-12 #1 Tue Apr 25 13:04:07 EDT 2000 i686 unknown
But I don't think that there is a problem with the kernel since I irdadump can
actually see some packets.
Here is the list of loaded modules:
>/sbin/lsmod
Module Size Used by
serial_cb 1016 1
tulip_cb 30860 2
cb_enabler 2472 4 [serial_cb tulip_cb]
ds 6632 2 [cb_enabler]
i82365 29768 2
pcmcia_core 44192 0 [cb_enabler ds i82365]
irtty 2948 2 (autoclean)
irda 60737 1 [irtty]
lockd 31176 1 (autoclean)
sunrpc 52964 1 (autoclean) [lockd]
ppp 20236 0 (autoclean) (unused)
slhc 4504 0 (autoclean) [ppp]
nm256 69632 0
sound 57496 0 [nm256]
soundlow 420 0 [sound]
soundcore 2596 6 [sound]
and here is how irda is started:
start)
# Start daemons.
echo -n "Starting irmanager: "
daemon irmanager -d 1
echo
;;
and my /etc/irda/drivers:
>more /etc/irda/drivers
#! /bin/sh
action=$1
device=$2
case "${action:?}" in
'start')
irattach /dev/ttyS2 # The third serial port is an IrDA port
;;
'stop')
killall irattach # ... or something. Currently not used
;;
'restart')
/sbin/ifconfig ${device:?} down up
;;
esac
I don't know how this script is started, but the fact is that the process
appears in the process list:
>ps ax | grep irattach
488 ? S 0:00 irattach /dev/ttyS2
If I try to load the modules by hand:
>/sbin/modprobe ircomm
>/sbin/modprobe ircomm_tty
>/sbin/modprobe ircomm
and try to start minicom, I get:
>minicom ir
minicom: cannot open /dev/ircomm0: No such device
:-(
And now I'm stuck. I don't know what to do, where to search and I really hope
that one of the irda experts would be able to help me.
Thank you very much in advance.
Cheers,
Jacques Supcik.
([EMAIL PROTECTED])
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda