RE: l2cap sockets not properly multiplexed on ARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I knew someone would bring that up.  :)  I can't because python only supports sending 2 arguments to bind for that type of socket, and the result is what i want.  I'm using multiple dongles and need to specify which dongle to use for the connection.  However, before I even put that bind statement in there I still had the very same problem, so you can effectively remove that statement and the underlying system will just bind to whichever dongle it pleases and the same problem exists.  Everything works fine on x86 systems and on the ARM architectures the multiplexing goes south.

Also, I'm checking the return codes of everything and there's no errors occurring.  You can even see with the btmon log that the ACL packets are being addressed to the right connection handles but the data is coming out the wrong sockets.  The problem exists on the other end of the socket; the kernel side.

-Tim
________________________________________
From: Alexander Holler [holler@xxxxxxxxxxxxx]
Sent: October 30, 2013 7:46 AM
To: Tim Tisdall
Cc: linux-bluetooth@xxxxxxxxxxxxxxx
Subject: Re: l2cap sockets not properly multiplexed on ARM

Am 30.10.2013 12:24, schrieb Alexander Holler:
> Am 29.10.2013 21:44, schrieb Tim Tisdall:
>
>> L2CAP sockets
>> -------------
>>
>> socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP)
>> bind(bdaddr, 0)  // bind to bluetooth address and PSM 0 (Python
>> doesn't support LE directly,
>>                   // but this is enough for binding to the right device
>
> That looks wrong. Try to bind to ATT_CID (4).
>

And don't forget to check the return code of bind (as well as of
setsockopt and other calls).

Regards,

Alexander Holler

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux