Skip to contentSkip to conversation

Can I create an eSCO connection using BlueZ?

Bluez-devel Mayank BATRA 3 participants 7 messages Nov 16, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

Is there any method with which I can create an eSCO connection using the BlueZ stack? I mean, if I create a socket in the following manner:
int s;
s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);

then the command sent will be "Add Sco Connection".

But the problem is that my device (BT2.0)does not support this command as it has been deprecated since v1.2. My device supports only "Setup Synchronous Command".

(eSCO connections can be created using only Setup Synchronous Command.)

In other words, my question is does BlueZ Stack send Setup Synchronous Command to establish Synchronous connections?

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Mayank,

Quoted 5 lines

Is there any method with which I can create an eSCO connection using the BlueZ stack? I mean, if I create a socket in the following manner:
int s;
s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);

Quoted 8 lines

then the command sent will be "Add Sco Connection".

But the problem is that my device (BT2.0)does not support this command as it has been deprecated since v1.2. My device supports only "Setup Synchronous Command".

(eSCO connections can be created using only Setup Synchronous Command.)

In other words, my question is does BlueZ Stack send Setup Synchronous Command to establish Synchronous connections?

no it doesn't support eSCO setups. The reason for that is that nobody actually sent a kernel patch to add this support and I never needed it.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Hi Marcel,

Quoted 3 lines

no it doesn't support eSCO setups. The reason for that is that nobody actually sent a kernel patch to add this support and I never needed it.

Actually I'm not interested in creating eSCO setup exactly. My requirement is that while trying to create any synchronous connection(SCO/eSCO),
I want a Setup Synchronous Command to be sent over HCI rather than an Add SCO Command.

Is it possible?

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw
In reply to Mayank BATRA

Hi,

Quoted 7 lines

Hi,

Is there any method with which I can create an eSCO connection using the BlueZ stack? I mean, if I create a socket in the following manner:
int s;
s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);

Quoted 5 lines

then the command sent will be "Add Sco Connection".

But the problem is that my device (BT2.0)does not support this command as it has been deprecated since v1.2. My device supports only "Setup Synchronous Command".

Interesting : Could you tell me which is the device in your case that does not support the BT 1.2 anymore ? Is it the host controller or the headset ?

Cheers,

Fabien

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#4 lore raw

Hi Fabien,

Quoted 7 lines
Quoted 7 lines

Is there any method with which I can create an eSCO connection using the BlueZ stack? I mean, if I create a socket in the following manner:
int s;
s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);

then the command sent will be "Add Sco Connection".

Quoted 7 lines
Quoted 3 lines

But the problem is that my device (BT2.0)does not support this command as it has been deprecated since v1.2. My device supports only "Setup Synchronous Command".

Interesting : Could you tell me which is the device in your case that does not support the BT 1.2 anymore ? Is it the host controller or the headset ?

it can only be the dongle and the "Add SCO Connection" command has already been deprecated with the Bluetooth 1.2 specification. However most dongles still support it for backward compatibility.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#5 lore raw

Hi Fabien,

Quoted 5 lines
Quoted 1 line

Interesting : Could you tell me which is the device in your

case that

Quoted 1 line

does not support the BT 1.2 anymore ? Is it the host

controller or the

Quoted 1 line

headset ?

Of course it is the host controller and it does not support BT 1.1. But it supports BT 1.2.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#6 lore raw
In reply to Marcel Holtmann
Quoted 12 lines · Marcel Holtmann

Hi Fabien,

Quoted 10 lines
Quoted 10 lines

Is there any method with which I can create an eSCO connection using the BlueZ stack? I mean, if I create a socket in the following manner:
int s;
s = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);

then the command sent will be "Add Sco Connection".

But the problem is that my device (BT2.0)does not support this command as it has been deprecated since v1.2. My device supports only "Setup Synchronous Command".

Quoted 8 lines
Quoted 3 lines

Interesting : Could you tell me which is the device in your case that does not support the BT 1.2 anymore ? Is it the host controller or the headset ?

it can only be the dongle and the "Add SCO Connection" command has already been deprecated with the Bluetooth 1.2 specification. However most dongles still support it for backward compatibility.

Thanks for your answers guys :-)

I guess then it's just a matter of checking if this feature is supported in the features bitmask, and send "Setup Synchronous Command" instead of "Add SCO Connection" if this is the case.

It shouldn't be too complicated to hack bluez to support this...

Cheers,

Fabien

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel