Skip to contentSkip to conversation

HCI send and receive

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

lore
Share & tools
lore
#0 lore raw

Hi Marcel,
I want to set up an HCI connection between 2 dongles, see the default packet type at connection, then send data. Now keeping the existing connection, I want to change packet type and then send data....Is this possible????
Should I write small programs just to send and receive data with known payload....then I can establish a connection using hcitool and use these programs to send and receive data passing the connection handle as the parameter. Is this right??

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 4 lines

I want to set up an HCI connection between 2 dongles, see the default packet type at connection, then send data. Now keeping the existing connection, I want to change packet type and then send data....Is this possible????

I don't see what you expect from this, but it is possible.

Quoted 4 lines

Should I write small programs just to send and receive data with known payload....then I can establish a connection using hcitool and use these programs to send and receive data passing the connection handle as the parameter. Is this right??

All API commands you need are there and you can always use the HCI raw socket. It is a H:4 based, one command or data packet per read/write interface. And it is a good idea to send L2CAP conform ACL data packets.

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

#2 lore raw

Hi Marcel,

Quoted 8 lines · Marcel Holtmann

Hi Manjunath,

Quoted 4 lines

I want to set up an HCI connection between 2 dongles, see the default packet type at connection, then send data. Now keeping the existing connection, I want to change packet type and then send data....Is this possible????

I don't see what you expect from this, but it is possible.

What i am expecting is a measure of varying throughput with change in packet type.

Quoted 9 lines
Quoted 5 lines

Should I write small programs just to send and receive data with known payload....then I can establish a connection using hcitool and use these programs to send and receive data passing the connection handle as the parameter. Is this right??

All API commands you need are there and you can always use the HCI raw socket. It is a H:4 based, one command or data packet per read/write interface.

I am ignorant about this.....are you saying HCI raw socket provides the one command or data packet per read/write interface....can you elaborate...

And it is a good idea to send L2CAP conform ACL data packets. Does this mean it would be a L2CAP connection as you send some chips expect L2CAp frames???
Regards,
Manjunath

Quoted 5 lines

Regards

Marcel

Quoted 10 lines

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

-------------------------------------------------------
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
#3 lore raw

Hi Manjunath,

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

I want to set up an HCI connection between 2 dongles, see the default packet type at connection, then send data. Now keeping the existing connection, I want to change packet type and then send data....Is this possible????

I don't see what you expect from this, but it is possible.

What i am expecting is a measure of varying throughput with change in packet type.

I don't see for what this will be good, but you can simply set the same packet type on both sides with hciconfig and then use l2test or rctest for measuring. Or create a PAN and use standard IP tools.

Quoted 11 lines
Quoted 8 lines
Quoted 4 lines

Should I write small programs just to send and receive data with known payload....then I can establish a connection using hcitool and use these programs to send and receive data passing the connection handle as the parameter. Is this right??

All API commands you need are there and you can always use the HCI raw socket. It is a H:4 based, one command or data packet per read/write interface.

I am ignorant about this.....are you saying HCI raw socket provides the one command or data packet per read/write interface....can you elaborate...

It is as I said. You can write/read H:4 on a HCI raw socket.

Quoted 3 lines

And it is a good idea to send L2CAP conform ACL data packets. Does this mean it would be a L2CAP connection as you send some chips expect L2CAp frames???

I think some chips do and actually also the remote Bluetooth stack might expect L2CAP.

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