Andrew Hoehn wrote :
> some one else has probably asked this, if so point me at the archieve the answer
> is in.
>
> i am trying to connect two linux boxes(2.4.0-test7) using the irnet and the
> corresponding directions at
> http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/IrNET.html.
>
> everything seems to go good until i start pppd, i can't make it past that
> point.
> /var/log/messages gives:
>
> Sep 26 10:20:37 andyh pppd[1007]: Using interface ppp0
> Sep 26 10:20:37 andyh pppd[1007]: Connect: ppp0 <--> /dev/irnet
> Sep 26 10:21:07 andyh pppd[1007]: LCP: timeout sending Config-Requests
> Sep 26 10:21:07 andyh pppd[1007]: Connection terminated.
> Sep 26 10:21:07 andyh pppd[1007]: Exit.
Ouch, ouch, ouch...
IrNET attempt to connect only one time just after you lauch
pppd. If no IrDA device is there, it will exit unless "passive" is
specified.
So, make sure you do the following :
1) Set your laptops
2) Check with irdadump that they see each other
3) One first one, start pppd with the passive option
4) Wait until the IrDA state of the IrNET socket goes to idle
5) Start IrNET on the other end
Also, check the permissions of /dev/irnet and make sure you
run pppd as root.
If your link is "crap", you may want to increase the number of
lcp-echo-failure.
> and ifconfig:
>
> irda0 Link encap:IrLAP HWaddr b3:31:54:58
> UP RUNNING NOARP MTU:2048 Metric:1
> RX packets:103 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:8
>
> it looks like for some reason the actisys dongle is not transmitting anything,
No, no. The IrDA dongle is tranmitting, it's just a known bug
in the IrDA stack. Check yourself what's happening with irdadump.
> causing pppd to timeout. has anyone had problems similiar to this? any ideas
> would be greatly appreciated.
> here is some debug info if this helps.
>
>
> [root@andyh irda]# cat /dev/irnet
> Expired 5fb10512 (ande)
> Discovered 5fb10512 (ande)
> (keeps repeating)
Your IrDA link is not that great. Try to make sure that this
is stable.
Also, I would expect that you should see a "Request" on the
other side after you start the first instance of IrNET, and that you
see Connection/Connected later on.
> [root@andyh /root]# irdadump
> 16:20:38.845737 xid:cmd b3315458 > ffffffff S=6 s=0 (14)
> 16:20:38.935721 xid:cmd b3315458 > ffffffff S=6 s=1 (14)
> 16:20:39.025721 xid:cmd b3315458 > ffffffff S=6 s=2 (14)
> 16:20:39.025717 xid:rsp b3315458 < 5fb10512 S=6 s=1 ande hint=4400 [ Computer LA
>
> N Access ] (20)
> 16:20:39.115719 xid:cmd b3315458 > ffffffff S=6 s=3 (14)
> 16:20:39.205720 xid:cmd b3315458 > ffffffff S=6 s=4 (14)
> 16:20:39.295718 xid:cmd b3315458 > ffffffff S=6 s=5 (14)
> 16:20:39.385718 xid:cmd b3315458 > ffffffff S=6 s=* andyh hint=4400 [ Computer L
>
> AN Access ] (21)
> 16:20:41.845727 xid:cmd b3315458 > ffffffff S=6 s=0 (14)
> 16:20:41.935722 xid:cmd b3315458 > ffffffff S=6 s=1 (14)
> 16:20:41.935717 xid:rsp b3315458 < 5fb10512 S=6 s=0 ande hint=4400 [ Computer LA
>
> N Access ] (20)
> 16:20:42.025719 xid:cmd b3315458 > ffffffff S=6 s=2 (14)
> 16:20:42.115718 xid:cmd b3315458 > ffffffff S=6 s=3 (14)
> 16:20:42.205718 xid:cmd b3315458 > ffffffff S=6 s=4 (14)
> 16:20:42.295718 xid:cmd b3315458 > ffffffff S=6 s=5 (14)
Only one device send discovery frames. I've seen that
before. I guess that you've enabled discovery on both sides, so one of
the device must think the link is busy, or we've hit a bug in
Linux-IrDA.
Try to alternate the order in which you start both IrNET
instance (first/second).
And please : try to get the irdadump log at the time when it's
attempting to connect, for me to see all the connection procedure.
> [root@andyh irda]# cat irlmp
> Unconnected LSAPs:
> lsap state: LSAP_DISCONNECTED, slsap_sel: 0x10, dlsap_sel: 0xff, (IrNET socket)
> lsap state: LSAP_DISCONNECTED, slsap_sel: 0x0, dlsap_sel: 0xff, (IrIAS srv)
>
> Registred Link Layers:
> lap state: LAP_ACTIVE, saddr: 0xb3315458, daddr: 0x5fb10512, refcount: 2
>
> Connected LSAPs:
> lsap state: LSAP_DATA_TRANSFER_READY, slsap_sel: 0x18, dlsap_sel: 0x10, (IrNET
> socket)
I don't understand, here it says that the IrNET socket is
connected. Top one is the IrNET server, bottom one is the IrNET socket
that the ppp instance is using (the one you are trying to do).
Maybe it's just that you don't have any ppp instance on the
other end.
> [root@andyh irda]# cat irnet
> IrNET server - IrDA state: running, stsap_sel: 10, dtsap_sel: 00
>
> IrNET socket 0 - Requested IrDA name: "", addr: ffffffff
> PPP state: registered, unit: ppp0, channel: 5, mru: 1500
> IrDA state: idle, daddr: ffffffff, stsap_sel: 00, dtsap_sel: 10
IrDA state is idle : the socket has tried to connect, and
could not find any active instance on the other end. It's just waiting
for pppd to die.
> [root@andyh irda]# cat irttp
> TSAP 0, stsap_sel: 10, dtsap_sel: ff
> connected: FALSE, avail credit: 0, remote credit: 0, send credit: 14
> tx packets: 0, rx packets: 0, tx_queue len: 0 rx_queue len: 0
> tx_sdu_busy: FALSE, rx_sdu_busy: FALSE
> max_seg_size: 2045, tx_max_sdu_size: 65535, rx_max_sdu_size: 0
> Used by (IrNET socket)
Idem as above. Nobody was on the other side to pick up the
"call".
> thanks in advance,
> andy
You don't describe which commands you were using on each
laptops. And I need a better irdadump log.
Good luck !
Jean
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda