2004-12-06 16:58:46

by Manjunath Prabhu

[permalink] [raw]
Subject: [Bluez-users] HCI data packets

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


2004-12-06 18:45:12

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] HCI data packets

Hi Manjunath,

> 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.

> 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