Skip to contentSkip to conversation

set/read flush timeout

Bluez-devel Kosta Welke 2 participants 4 messages Mar 10, 2006 – Mar 13, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi!

I'm trying to do VoIP over PAN, and thus need to set (and read) the ACL flush timeout. I tried modifying Albert Huang example code, but it does not seem to work. Could someone give me a small hint what is wrong?

http://lastpageofthe.net/setflush.c

Disclamer: I'm a complete noob when it comes to HCI requests, so please forgive this "Help! Fix my problem!"-Mail. On the positive side, as soon as it works, I want to put it into hcitool.

Yours,
Kosta

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

You need to actually set the flush timeout value... notice that timeout is never set, and argv[2] is never used...

Regards,
Albert

Quoted 30 lines · Kosta Welke

Hi!

I'm trying to do VoIP over PAN, and thus need to set (and read) the ACL flush timeout. I tried modifying Albert Huang example code, but it does not seem to work. Could someone give me a small hint what is wrong?

http://lastpageofthe.net/setflush.c

Disclamer: I'm a complete noob when it comes to HCI requests, so please forgive this "Help! Fix my problem!"-Mail. On the positive side, as soon as it works, I want to put it into hcitool.

Yours,
Kosta

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
Quoted 1 line · Albert Huang

You need to actually set the flush timeout value... notice that timeout is never set, and argv[2] is never used...

Okai, consider this my entry to "stupidest post on this list" :)

Anyway, can you tell me how to read the flush timeout?

Thanks in advance,
Kosta

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw

You'll need to read the Bluetooth spec for this, look for the read_automatic_flush_timeout part of the HCI section. Build a command packet similar to how it's done for writing, and use the rparam field to read the results. If you're confused, take a look at how the other read commands work.

-albert

Quoted 26 lines · Kosta Welke
Quoted 2 lines · Albert Huang

You need to actually set the flush timeout value... notice that timeout is never set, and argv[2] is never used...

Okai, consider this my entry to "stupidest post on this list" :)

Anyway, can you tell me how to read the flush timeout?

Thanks in advance,
Kosta

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel