Skip to contentSkip to conversation

HCI data packets

Bluez-users Manjunath Prabhu 2 participants 2 messages Dec 6, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi Marcel,

Does, opening a socket and then connect() at the L2CAP......automatically establish an HCI connection first and then an L2CAP connection on top of it?? This is what HCI dump shows..

Can I in someway just create an HCI connection first and then pump HCI data packet with some known payload???How can i generate the test data packets........... In a way, i just want pump raw bits.....

Thanks,
Regards,
Manjunath

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Manjunath,

Quoted 3 lines

Does, opening a socket and then connect() at the L2CAP......automatically establish an HCI connection first and then an L2CAP connection on top of it?? This is what HCI dump shows..

this is correct and it must work like this.

Quoted 3 lines

Can I in someway just create an HCI connection first and then pump HCI data packet with some known payload???How can i generate the test data packets........... In a way, i just want pump raw bits.....

You can use the HCI raw socket. This is what the library and the tools are doing. However be careful with the ACL packets, because some chips expect L2CAP frames and not random payload.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users