bluetooth headset
Hi,
Had success with connecting to my laptop's headset profile, but not before figuring out that it doesn't work with the default channel 7, but needs to be made to use channel 8:
Does't work:
$ ./btsco 00:0B:6B:58:92:E9 Device is 3:0 Voice setting: 0x0060 RFCOMM channel 7 connected
Does work:
$ ./btsco 00:0B:6B:58:92:E9 8 Device is 3:0 Voice setting: 0x0060 RFCOMM channel 8 connected recieved AT+BRSF=22 recieved AT+CIND=? opened hwdep connected SCO channel Setting sco fd Done setting sco fd recieved AT+CIND? AT+CMER=3,0,0,1=15 Sending up speaker change 15 recieved AT+CHLD=? recieved AT+CCWA=1 recieved AT+CLIP=1
Details:
$ uname -a Linux pooh 2.6.9-2-k7 #1 Sat Jan 8 15:38:24 EST 2005 i686 GNU/Linux
$ sudo hciconfig -a
hci0: Type: USB
BD Address: 00:02:72:40:AD:56 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:9550635 acl:181 sco:187095 events:359 errors:0
TX bytes:9545657 acl:188 sco:187095 commands:98 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: ACCEPT MASTER
Name: 'pooh'
Class: 0x100100
Service Classes: Object Transfer
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)$ sudo hciconfig hci0 revision
hci0: Type: USB
BD Address: 00:02:72:40:AD:56 ACL MTU: 192:8 SCO MTU: 64:8
HCI 16.4
Chip version: BlueCore02
Max key size: 56 bit
SCO mapping: HCI$ sudo hcitool info 00:0B:6B:58:92:E9
Requesting information ...
BD Address: 00:0B:6B:58:92:E9
Device Name: HANNAH
LMP Version: 1.2 (0x2) LMP Subversion: 0x694a
Manufacturer: Broadcom Corporation (15)
Features: 0xff 0xff 0x0d 0x38 0x08 0x08 0x00 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park state> <RSSI> <channel quality> <SCO link> <HV2 packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <power control>
<transparent SCO> <enhanced iscan> <interlaced iscan>
<interlaced pscan> <AFH cap. slave> <AFH cap. master>-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
daniel,
btsco.c (userspace) has a function detect_channel that tries to figure out the channel using sdp. i believe it's equivalent to running:
sdptool search --bdaddr 00:0A:D9:74:B4:EA 0x1108
what kind of output do you get when you search your headset?
can anyone confirm that 0x1108 is the right way to find the headset profile over sdp?
paul ionescu had a similar problem with the jabra bt 110...
brad
Quoted 73 lines · Daniel Andor
Hi,
Had success with connecting to my laptop's headset profile, but not before figuring out that it doesn't work with the default channel 7, but needs to be made to use channel 8:
Does't work:
$ ./btsco 00:0B:6B:58:92:E9 Device is 3:0 Voice setting: 0x0060 RFCOMM channel 7 connectedDoes work:
$ ./btsco 00:0B:6B:58:92:E9 8 Device is 3:0 Voice setting: 0x0060 RFCOMM channel 8 connected recieved AT+BRSF=22 recieved AT+CIND=? opened hwdep connected SCO channel Setting sco fd Done setting sco fd recieved AT+CIND? AT+CMER=3,0,0,1=15 Sending up speaker change 15 recieved AT+CHLD=? recieved AT+CCWA=1 recieved AT+CLIP=1Details:
$ uname -a Linux pooh 2.6.9-2-k7 #1 Sat Jan 8 15:38:24 EST 2005 i686 GNU/Linux$ sudo hciconfig -a hci0: Type: USB BD Address: 00:02:72:40:AD:56 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN RX bytes:9550635 acl:181 sco:187095 events:359 errors:0 TX bytes:9545657 acl:188 sco:187095 commands:98 errors:0 Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH HOLD SNIFF PARK Link mode: ACCEPT MASTER Name: 'pooh' Class: 0x100100 Service Classes: Object Transfer Device Class: Computer, Uncategorized HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d Manufacturer: Cambridge Silicon Radio (10)$ sudo hciconfig hci0 revision hci0: Type: USB BD Address: 00:02:72:40:AD:56 ACL MTU: 192:8 SCO MTU: 64:8 HCI 16.4 Chip version: BlueCore02 Max key size: 56 bit SCO mapping: HCI$ sudo hcitool info 00:0B:6B:58:92:E9 Requesting information ... BD Address: 00:0B:6B:58:92:E9 Device Name: HANNAH LMP Version: 1.2 (0x2) LMP Subversion: 0x694a Manufacturer: Broadcom Corporation (15) Features: 0xff 0xff 0x0d 0x38 0x08 0x08 0x00 0x00 <3-slot packets> <5-slot packets> <encryption> <slot offset> <timing accuracy> <role switch> <hold mode> <sniff mode> <park state> <RSSI> <channel quality> <SCO link> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <power control> <transparent SCO> <enhanced iscan> <interlaced iscan> <interlaced pscan> <AFH cap. slave> <AFH cap. master>
Quoted 8 lines
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi Brad,
The problem was not the detection itself.
Indeed sco was connecting to Jabra BT 110 to the headset channel. But it worked better on handsfree channel.
The headset profile is pretty dumb, comparing to handsfree profile. So I forced to connect to handsfree instead of headset.
Maybe we should check if the headset implements both profiles, and if so, choose the handsfree profile which is better.
Best regards,
Paul
Quoted 2 lines · Brad Midgley
paul ionescu had a similar problem with the jabra bt 110...
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel