Skip to contentSkip to conversation

Enabling SCO mode

DISCUSSION Greg Mercurio 2 participants 2 messages Oct 13, 2010 – Nov 24, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

I am new to Bluez and have a question about sco audio. I am using Bluez version 4.47 in an Android environment.

The Bluetooth chip I’m using is initialized to use the PCM interface for sco audio data. So, the chip should be ready to transmit the sco audio when enabled.

Quoted 1 line

From what I can tell by looking at the Android code, the Bluetooth Handsfree Java application in initiates a sco connection by opening a sco socket connection with the stack.

I assume that opening the sco connection will send vendor independent HCI commands to the Bluetooth chip to put it into sco mode. I don’t see in the code where this is done.

Can someone confirm my assumptions and point me to the place in the code where enabling the sco commands are sent to the chip?

Thanks,
Greg

#1 lore raw

SGkgR3JlZywNCg0KPiBTdWJqZWN0OiBFbmFibGluZyBTQ08gbW9kZQ0KPiANCj4gSSBhbSBuZXcg dG8gQmx1ZXogYW5kIGhhdmUgYSBxdWVzdGlvbiBhYm91dCBzY28gYXVkaW8uICBJIGFtIHVzaW5n DQo+IEJsdWV6IHZlcnNpb24gNC40NyBpbiBhbiBBbmRyb2lkIGVudmlyb25tZW50Lg0KLi4uDQo+ IENhbiBzb21lb25lIGNvbmZpcm0gbXkgYXNzdW1wdGlvbnMgYW5kIHBvaW50IG1lIHRvIHRoZSBw bGFjZSBpbiB0aGUNCj4gY29kZSB3aGVyZSBlbmFibGluZyB0aGUgc2NvIGNvbW1hbmRzIGFyZSBz ZW50IHRvIHRoZSBjaGlwPw0KDQpUaGUgSENJIGNvZGUgaXMgaW4gdGhlIEFuZHJvaWQga2VybmVs LiBUaGUgQW5kcm9pZCBrZXJuZWwgZ2l0IHRyZWUgaXMgYXQgZ2l0Oi8vYW5kcm9pZC5naXQua2Vy bmVsLm9yZy9rZXJuZWwvY29tbW9uLmdpdC4gVGhlIEJUIGNvZGUgeW91J3JlIGludGVyZXN0ZWQg aW4gaXMgaW4gdGhlIG5ldC9ibHVldG9vdGggc3ViZGlyIC0gc3BlY2lmaWNhbGx5IGhjaV9jb25u LmMvaGNpX2Nvbm5lY3QoKS4NCg0KUmVnYXJkcywNClBldGVyIEh1cmxleQ0KIA0KDQo=