* [Bluez-devel] How to set packet-type and role from source-code?
@ 2007-04-05 7:19 Markus Adolfsson
2007-04-05 9:31 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Markus Adolfsson @ 2007-04-05 7:19 UTC (permalink / raw)
To: BlueZ development
[-- Attachment #1.1: Type: text/plain, Size: 1086 bytes --]
Hi all,
I need to set SCO packet type to HV1 as well as I'd like to specify that
my device should be the "master" in a SCO connection. I known that I can
do this from the command-line using the hci* utilities, but I'd like to
set the packet-types to a known state when I initialize my application
(from code) and I'm sorry to say that I cannot find /how/ to go about
and to that...
It has to be possible, but I've search through the hci_lib but without
success - yet ;)
Could someone point me in the right direction?
Much appreciated!
/Markus Adolfsson
--
------------------------------------------------------------------------
*Markus Adolfsson*
M.Sc.CE. Product Development
Mail: markus.adolfsson@free2move.net
<mailto:markus.adolfsson@free2move.net>
Phone: +46 35 152268 <callto:+4635152268>
Mobile: +46 707 165296 <callto:+46707165296>
*Free2move AB* -- /WIRELESS MADE EASY/
Phone: +46 35 152260 <callto:+4635152260>
Fax: +46 35 152269 <callto:+4635152269>
Web: www.free2move.net <http://www.free2move.net>
Address: Sperlingsgatan 7
SE-30248 Halmstad
Sweden
[-- Attachment #1.2: Type: text/html, Size: 2613 bytes --]
[-- Attachment #2: markus.adolfsson.vcf --]
[-- Type: text/x-vcard, Size: 269 bytes --]
begin:vcard
fn:Markus Adolfsson
n:Adolfsson;Markus
org:Free2move;Product Development
adr:;;Sperlingsgatan 7;Halmstad;;302 48;Sweden
email;internet:markus.adolfsson@free2move.net
title:M.Sc.C.E.
tel;work:+46 35 152268
url:http://www.free2move.net
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] How to set packet-type and role from source-code?
2007-04-05 7:19 [Bluez-devel] How to set packet-type and role from source-code? Markus Adolfsson
@ 2007-04-05 9:31 ` Marcel Holtmann
2007-04-05 9:51 ` Markus Adolfsson
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2007-04-05 9:31 UTC (permalink / raw)
To: BlueZ development
Hi Markus,
> I need to set SCO packet type to HV1 as well as I'd like to specify
> that my device should be the "master" in a SCO connection. I known
> that I can do this from the command-line using the hci* utilities, but
> I'd like to set the packet-types to a known state when I initialize my
> application (from code) and I'm sorry to say that I cannot find how to
> go about and to that...
>
> It has to be possible, but I've search through the hci_lib but without
> success - yet ;)
> Could someone point me in the right direction?
since hciconfig and hcitool can do it, you might wanna have a look at
their source code and see how they handle it.
However I can't advise you to play with the packet types at all. Leave
them as they are. The link manager of the Bluetooth chip knows best what
to do and what packet type to choose.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] How to set packet-type and role from source-code?
2007-04-05 9:31 ` Marcel Holtmann
@ 2007-04-05 9:51 ` Markus Adolfsson
2007-04-05 9:56 ` Marcel Holtmann
2007-04-05 10:02 ` Mayank BATRA
0 siblings, 2 replies; 5+ messages in thread
From: Markus Adolfsson @ 2007-04-05 9:51 UTC (permalink / raw)
To: BlueZ development
[-- Attachment #1.1: Type: text/plain, Size: 2746 bytes --]
Hi Marcel,
Thanx for your response, I thought I had to set HV1 packets as I need to
have 2 (hopefully even 3...) SCO connections simultaneously in a
pico-net (this relates to the conversation "Troubles with mulitple SCO
connections" I posted yesterday) where it turned out that the USB dongle
was the cause which is why I'm noe going directly for the embedded
platform using serial hci connection...
But anyhow - to cut to the chase;
If I connect multiple SCO connections from my embedded platform, will
the packet-types dynamically adjust when I add a second and even third
SCO connection? This is why I though I had to specifically set
packet-type to HV1... Could you (or someone that feel for it) just
confirm my thoughts? ;)
Regards,
/Markus
Marcel Holtmann skrev:
> Hi Markus,
>
>
>> I need to set SCO packet type to HV1 as well as I'd like to specify
>> that my device should be the "master" in a SCO connection. I known
>> that I can do this from the command-line using the hci* utilities, but
>> I'd like to set the packet-types to a known state when I initialize my
>> application (from code) and I'm sorry to say that I cannot find how to
>> go about and to that...
>>
>> It has to be possible, but I've search through the hci_lib but without
>> success - yet ;)
>> Could someone point me in the right direction?
>>
>
> since hciconfig and hcitool can do it, you might wanna have a look at
> their source code and see how they handle it.
>
> However I can't advise you to play with the packet types at all. Leave
> them as they are. The link manager of the Bluetooth chip knows best what
> to do and what packet type to choose.
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
--
------------------------------------------------------------------------
*Markus Adolfsson*
M.Sc.CE. Product Development
Mail: markus.adolfsson@free2move.net
<mailto:markus.adolfsson@free2move.net>
Phone: +46 35 152268 <callto:+4635152268>
Mobile: +46 707 165296 <callto:+46707165296>
*Free2move AB* -- /WIRELESS MADE EASY/
Phone: +46 35 152260 <callto:+4635152260>
Fax: +46 35 152269 <callto:+4635152269>
Web: www.free2move.net <http://www.free2move.net>
Address: Sperlingsgatan 7
SE-30248 Halmstad
Sweden
[-- Attachment #1.2: Type: text/html, Size: 4695 bytes --]
[-- Attachment #2: markus.adolfsson.vcf --]
[-- Type: text/x-vcard, Size: 269 bytes --]
begin:vcard
fn:Markus Adolfsson
n:Adolfsson;Markus
org:Free2move;Product Development
adr:;;Sperlingsgatan 7;Halmstad;;302 48;Sweden
email;internet:markus.adolfsson@free2move.net
title:M.Sc.C.E.
tel;work:+46 35 152268
url:http://www.free2move.net
version:2.1
end:vcard
[-- Attachment #3: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] How to set packet-type and role from source-code?
2007-04-05 9:51 ` Markus Adolfsson
@ 2007-04-05 9:56 ` Marcel Holtmann
2007-04-05 10:02 ` Mayank BATRA
1 sibling, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2007-04-05 9:56 UTC (permalink / raw)
To: BlueZ development
Hi Markus,
> Thanx for your response, I thought I had to set HV1 packets as I need
> to have 2 (hopefully even 3...) SCO connections simultaneously in a
> pico-net (this relates to the conversation "Troubles with mulitple
> SCO connections" I posted yesterday) where it turned out that the USB
> dongle was the cause which is why I'm noe going directly for the
> embedded platform using serial hci connection...
>
> But anyhow - to cut to the chase;
> If I connect multiple SCO connections from my embedded platform, will
> the packet-types dynamically adjust when I add a second and even third
> SCO connection? This is why I though I had to specifically set
> packet-type to HV1... Could you (or someone that feel for it) just
> confirm my thoughts? ;)
the link manager in the chips firmware is taking care of this. So don't
worry. However when using USB as transport driver you need to adjust the
USB ISOC interface settings, but that is not support at the moment.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Bluez-devel] How to set packet-type and role from source-code?
2007-04-05 9:51 ` Markus Adolfsson
2007-04-05 9:56 ` Marcel Holtmann
@ 2007-04-05 10:02 ` Mayank BATRA
1 sibling, 0 replies; 5+ messages in thread
From: Mayank BATRA @ 2007-04-05 10:02 UTC (permalink / raw)
To: 'BlueZ development'
Hi Markus ,
> If I connect multiple SCO connections from my embedded platform, will
the packet-types dynamically adjust when I add a second and even third
SCO connection? This is why I though I had to specifically set
packet-type to HV1... Could you (or someone that feel for it) just
confirm my thoughts? ;)
First of all you can have only one HV1 SCO link at a time. If you want
three, use HV3. This is because an HV1 packet carries only 10 bytes of
data. Thus in order to have a 64 Kbps HV1 link, SCO packets will have to
be sent every second slot (Tsco = 2) => there is no room for another SCO
link. 64 Kbps HV1 SCO link will cover 100% bluetooth bandwidth. Whereas
HV3 packet carries 30 bytes of data => you can maintain (theoretically
atleast) 3 SCO Links.
Best Regards,
Mayank
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-04-05 10:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 7:19 [Bluez-devel] How to set packet-type and role from source-code? Markus Adolfsson
2007-04-05 9:31 ` Marcel Holtmann
2007-04-05 9:51 ` Markus Adolfsson
2007-04-05 9:56 ` Marcel Holtmann
2007-04-05 10:02 ` Mayank BATRA
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox