Re: [Bluez-users] Timeout message from kernel

Marcel Holtmann
2004-02-13T15:28:40Z

Hi Jeff,

> > Using l2test is easy and with -h you see all the options ;)
> >
> > One side: l2test -r /* listen and receive */
> > Other side: l2test -s /* connect and send */
>
> Hmmm...
> [root@Arwen test]# ./l2test -w
> l2test[29184]: Waiting for connection on psm 10 ...
>
> /bin> l2test -r
> l2test[79]: Waiting for connection on psm 10 ...

why don't you try what I have written? And read what "l2test -h" says.

l2test -r /* listen and receive */
l2test -w /* listen and send */

Two connections that are listening. How should they connect to each
other?

> Note that from ColdFire, this fails:
> /bin> hcitool cc --role=s 00:0A:4F:00:09:5E
> bcsp_timed_event: Timeout, retransmitting 1 pkts
> Can't create connection: Input/output error
>
> /bin> hcitool con
> Connections:
>
> But from the pc, I get this:
> [root@Arwen test]# hcitool cc --role=m 00:0A:4F:00:13:5F
> Can't create connection: Connection timed out
>
> But now running 'hcitool con' on Coldfire gives this:
> /bin> hcitool con
> Connections:
> > ACL 00:0A:4F:00:09:5E handle 40 state 1 lm SLAVE
>
> and from the pc:
> [root@Arwen test]# hcitool con
> Connections:
> < ACL 00:0A:4F:00:13:5F handle 41 state 1 lm MASTER
>
> So it seems that hcitool <> hcid, or userland <> kernel is messed up on
> ColdFire, is that correct? Remember I'm still a newbie at this...

Maybe this is a role switch problem. Show us both outputs from
"hciconfig -a".