Christian Jaeger <[EMAIL PROTECTED]> wrote: >>echo "57600" > /proc/sys/net/irda/max_baud_rate >> >>was enough to get everything working. After that the 8210 appeared in >>the irdadump logs, which it didn't previously. > > (What do I need in order to make irdadump output anything? load which > modules etc?. I haven't got any output so far.)
irattach must be running ; it's automatically started if you have irda-common installed. Check that it's running, and you should at least see the computer sending discovery messages (you must of course run irdadump as root) : 11:30:12.270024 xid:cmd 83d208ff > ffffffff S=6 s=0 (14) 11:30:12.360009 xid:cmd 83d208ff > ffffffff S=6 s=1 (14) 11:30:12.450007 xid:cmd 83d208ff > ffffffff S=6 s=2 (14) 11:30:12.540008 xid:cmd 83d208ff > ffffffff S=6 s=3 (14) 11:30:12.630007 xid:cmd 83d208ff > ffffffff S=6 s=4 (14) 11:30:12.720006 xid:cmd 83d208ff > ffffffff S=6 s=5 (14) 11:30:12.810009 xid:cmd 83d208ff > ffffffff S=6 s=* frigate hint=0400 [ Computer ] (23) With my 8210 in sight : 11:35:48.810013 xid:cmd 2b6438b6 > ffffffff S=6 s=* frigate hint=0400 [ Computer ] (23) 11:35:51.270028 xid:cmd 2b6438b6 > ffffffff S=6 s=0 (14) 11:35:51.360016 xid:cmd 2b6438b6 > ffffffff S=6 s=1 (14) 11:35:51.360005 xid:rsp 2b6438b6 < 36070000 S=6 s=0 Nokia 8210 hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27) It may be necessary to set the max_baud_rate to 115200 to get that, but you'll have to set it to 57600 once you'll want to use gnokii. gnokii --identify is a good test tool. That's with 2.4.22-ben2, so it works at least on my PB :-) >>I've successfully established a PPP connection over the irda link, >>with an average ping of about 6 seconds %-) > > (Are non-GPRS connections (forgot the name, those connection oriented > ones) better?) That wasn't GPRS, but using the built-in modem of the 8210 via /dev/ircomm0. Plain old GSM I guess :) >>But you shouldn't use /dev/ttyS1. You should load the ircomm module >>and use /dev/ircomm0. > > How to use ircomm? Can I use minicom on it? Yes. It works just like a serial port. >> > c) what to do against the kernel bug? >> >>What kernel bug ? > > The one that crashes the machine. (fiddling with ttyS1 shouldn't do > that, right?) Ok maybe if I do everything as I should and hold my > breath, it won't happen anymore. Probably. Once irtty is loaded, you shouldn't touch /dev/ttyS1 anymore, I think. > Is it correct that ircomm is a layer above one of SIR|FIR|..? Yes. IrComm is one of the protocols that can be used over an IrDA link. See the irdadump log, each device advertises the protocols it supports (inside the brackets). > So should I first get SIR working? Using minicom for debugging? Loading the irda, irtty, ircomm (and ircomm-tty, but this one is loaded automatically I believe) modules and echoing to /proc/.../max_baud_rate should basically get you started, I think. Check that irattach is running and run irdadump ; you must see the computer sending discovery messages. Beware, the irda stack doesn't like when you put the machine into sleep ; you'll need to restart irattach (/etc/init.d/irda restart does the trick). > More questions: > - where does the infrared beam leave the mobile? From what I read in > the nokia docs, it's a laser diode, not an led. So maybe it's not > hidden behind a black (IR-permeable) plastic window, but instead, > probably, in a slit on the right side, about where usually your thumb > is when holding the mobile to the ear. I have no idea. On my 8210 there is a window on the side, so it's pretty obvious. > - is there maybe any real lowlevel access to the infrared port, so I > can see if light is physically entering the laptop ir port even if > drivers are not working? Not that I know of. JB. -- Julien BLACHE <[EMAIL PROTECTED]> | Debian, because code matters more Debian & GNU/Linux Developer | <http://www.debian.org> Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169