Skip to contentSkip to conversation

pairing plantronics M3000 with my laptop

Bluez-users Laurent Lesage 2 participants 7 messages Jun 10, 2005 – Jun 13, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi all,

I finally got a plantronics M3000 and a bluetooth dongle trendnet TBW-102UB.
I'm using Debian Sarge, up to date, with bluez-utils 2.15, hcidump 1.17, kernel 2.6.8.2, debian patch for 2.6 kernel of 28th of march 2005. First trial, dongle seems OK.

laptop:/etc/bluetooth# hciconfig -a
hci0:   Type: USB
       BD Address: 00:E0:98:FD:9A:BD ACL MTU: 192:8 SCO MTU: 64:8
       UP RUNNING PSCAN ISCAN
       RX bytes:2135 acl:0 sco:0 events:82 errors:0
       TX bytes:1438 acl:0 sco:0 commands:59 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: SLAVE ACCEPT
       Name: 'laptop-0'
       Class: 0x3e0100
       Service Classes: Networking, Rendering, Capturing
       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)

for the M3000, I tried :

laptop:/etc/bluetooth# hcitool scan
Scanning ...
       00:03:89:4C:2D:C7       M3000 by Plantronics

And one of the very first times, I got info from the M3000 with hcitool info. "bluez-pin" asked me for the pin (0000) and got the info. After that, I used the headset under windows XP, with skype : it worked great as headset : clear sound, mic OK. Then back to Linux, and no way to get 'hcitool info' again.

laptop:/etc/bluetooth# hcitool cc 00:03:89:4C:2D:C7
Can't create connection: Input/output error

I tried in pairing mode but always the same error. this is hcidump during "info", headset in pairing mode or not :

laptop:/home/lesage# hcidump
HCI sniffer - Bluetooth packet analyzer ver 1.17
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
Quoted 2 lines

HCI Event: Command Status (0x0f) plen 4
HCI Event: Link Key Request (0x17) plen 6

< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22

Quoted 2 lines

HCI Event: Command Complete (0x0e) plen 10
HCI Event: Connect Complete (0x03) plen 11

Finally, I don't understand why it worked the first time, and no more now. When it worked, I didn't have to give the PIN once given, to get the 'info" again. I suppose this is because the pairing was succesful?? How can I verify?

before I go further with 'blue-alsa' and so on, I suppose I have to be able to pair the device?

thanks for any link or information,

Laurent Lesage

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

I would try removing /etc/bluetooth/link_key so the pairing will be reset.

Quoted 6 lines · Laurent Lesage

info. "bluez-pin" asked me for the pin (0000) and got the info. After that, I used the headset under windows XP, with skype : it worked great as headset : clear sound, mic OK. Then back to Linux, and no way to get 'hcitool info' again.

laptop:/etc/bluetooth# hcitool cc 00:03:89:4C:2D:C7
Can't create connection: Input/output error

I tried in pairing mode but always the same error. this is hcidump during "info", headset in pairing mode or not

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Thanks : that works!

Quoted 1 line

Brad Midgley a =E9crit : I would try removing /etc/bluetooth/link_key s=

o=20

Quoted 16 lines

the pairing will be reset.

Quoted 10 lines · Laurent Lesage

info. "bluez-pin" asked me for the pin (0000) and got the info. After=20 that, I used the headset under windows XP, with skype : it worked=20 great as headset : clear sound, mic OK. Then back to Linux, and no=20 way to get 'hcitool info' again.

laptop:/etc/bluetooth# hcitool cc 00:03:89:4C:2D:C7
Can't create connection: Input/output error

I tried in pairing mode but always the same error. this is hcidump=20 during "info", headset in pairing mode or not

Now, I tried the commands in "hcitool" to create connection and get=20 parameters for the link and the headset. My question : is there a link=20 where you can find more explanation about the result of the commands=20 (what do the values of rssi, lq -link quality-, ... mean? I see the=20 values changing on my screen when I move the headset but I don't know=20 their meaning)

Another question : does the class of the device (you define in=20 /etc/bluetooth/hcid.conf) mean exactly? Does it mean that the dongle is=20 not able to use other device that the one you define with that value or=20 does it mean you *don't want* to use other devices than the ones you=20 define with that value?

thanks for your attention

Laurent Lesage

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw

Laurent Lesage a =E9crit :

Quoted 6 lines

Thanks : that works!

Quoted 3 lines

Brad Midgley a =E9crit : I would try removing /etc/bluetooth/link_key=20 so the pairing will be reset.

Hi again...

well, now it seems to work, but I have no sound : it is like the voice=20 packet are not sent to the headset.

1) info about the headset

Quoted 8 lines
laptop:/usr/local/btsco/btsco/kernel# hcitool info 00:03:89:4C:2D:C7
Requesting information ...
        BD Address:  00:03:89:4C:2D:C7
        Device Name: M3000 by Plantronics
        LMP Version: 1.1 (0x1) LMP Subversion: 0x349
        Manufacturer: Cambridge Silicon Radio (10)
        Features: 0xbc 0xe8 0x01 0x00 0x00 0x00 0x00 0x00
                <encryption> <slot offset> <timing accuracy> <role swit=

ch>

Quoted 3 lines

<sniff mode> <SCO link> <HV3 packets> <u-law log>=20
<A-law log>

                <CVSD>

2)BTSCO :

Quoted 3 lines
laptop:/usr/local/btsco/btsco/kernel# btsco -v
btsco v0.4c
Device is 1:0

3)dongle :

Quoted 9 lines
laptop:/usr/local/btsco/btsco/kernel# hciconfig -a
hci0:   Type: USB
        BD Address: 00:E0:98:FD:9A:BD ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:5979 acl:196 sco:0 events:286 errors:0
        TX bytes:3492 acl:147 sco:0 commands:80 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
Quoted 9 lines
        Link mode: SLAVE ACCEPT
        Name: 'laptop-0'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP=20
Subver: 0x20d
        Manufacturer: Cambridge Silicon Radio (10)

Using Debian Sarge, with a patch for bluez from march 2005. Got btsco=20 form cvs. Compiled without error. Seems running ok. When using XMMS, I=20 see a second audio device "bluetooth headset", I see it with alsa and=20 with OSS output plugin. If I try to play a song with XMMS, I hear a=20 "beep" indicating the activation of the SCO channel. I can see it with=20 "btsco -v", verbose mode. I also can adjust the volume of my headset :=20 it's echoed on the output of btsco. On the other side, if I use the oss=20 mixer, I hear a small beep in the headset and see that the volume is=20 changed accordingly to the mixer on the computer. Same for microphone.

So (I'm BT newbie...), the "signalling" seems to work perfect *BUT* no=20 voice packet are sent. HCIdump shows the "signalling packets" but after=20 that, no other packet. with XMMS, if I "play", the song remains still=20 (time stops). Just the beep in my ear to say that the channel is opened=20 (I hear the same under WinXP when I accept to "connect" the headset,=20 pushing on the "answer" button of the headset), and another beep when I=20 stop the song and thus, "disconnect" the SCO channel (again, I see all=20 that with btsco -v and hcidump).

When I will get it , I will resume the whole thing for configs like=20 mine. Help me get the sound work :-(

thanks

Laurent

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Hi

I suspect a volume problem (try using a soft mixer on your computer and try volume controls on the headset)

or sco routing; as root run
hciconfig hci0 revision
and see if sco is routed to hci as it should be

It's possible that Marcel's new pskey program can reroute sco but I haven't tried that.

Brad

Quoted 67 lines · Laurent Lesage
Quoted 5 lines · Laurent Lesage

Thanks : that works!

Quoted 2 lines

Brad Midgley a écrit : I would try removing /etc/bluetooth/link_key so the pairing will be reset.

Hi again...

well, now it seems to work, but I have no sound : it is like the voice packet are not sent to the headset.

1) info about the headset

Quoted 4 lines
laptop:/usr/local/btsco/btsco/kernel# hcitool info 00:03:89:4C:2D:C7
Requesting information ...
        BD Address:  00:03:89:4C:2D:C7
        Device Name: M3000 by Plantronics
Quoted 8 lines
        LMP Version: 1.1 (0x1) LMP Subversion: 0x349
        Manufacturer: Cambridge Silicon Radio (10)
        Features: 0xbc 0xe8 0x01 0x00 0x00 0x00 0x00 0x00
                <encryption> <slot offset> <timing accuracy> <role 
switch>
                <sniff mode> <SCO link> <HV3 packets> <u-law log> 
<A-law log>
                <CVSD>

2)BTSCO :

Quoted 3 lines
laptop:/usr/local/btsco/btsco/kernel# btsco -v
btsco v0.4c
Device is 1:0

3)dongle :

Quoted 9 lines
laptop:/usr/local/btsco/btsco/kernel# hciconfig -a
hci0:   Type: USB
        BD Address: 00:E0:98:FD:9A:BD ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:5979 acl:196 sco:0 events:286 errors:0
        TX bytes:3492 acl:147 sco:0 commands:80 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
Quoted 9 lines
        Link mode: SLAVE ACCEPT
        Name: 'laptop-0'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing
        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)

Using Debian Sarge, with a patch for bluez from march 2005. Got btsco form cvs. Compiled without error. Seems running ok. When using XMMS, I see a second audio device "bluetooth headset", I see it with alsa and with OSS output plugin. If I try to play a song with XMMS, I hear a "beep" indicating the activation of the SCO channel. I can see it with "btsco -v", verbose mode. I also can adjust the volume of my headset : it's echoed on the output of btsco. On the other side, if I use the oss mixer, I hear a small beep in the headset and see that the volume is changed accordingly to the mixer on the computer. Same for microphone.

So (I'm BT newbie...), the "signalling" seems to work perfect *BUT* no voice packet are sent. HCIdump shows the "signalling packets" but after that, no other packet. with XMMS, if I "play", the song remains still (time stops). Just the beep in my ear to say that the channel is opened (I hear the same under WinXP when I accept to "connect" the headset, pushing on the "answer" button of the headset), and another beep when I stop the song and thus, "disconnect" the SCO channel (again, I see all that with btsco -v and hcidump).

When I will get it , I will resume the whole thing for configs like mine. Help me get the sound work :-(

thanks

Laurent

Quoted 8 lines

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r _______________________________________________ Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-user
s

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#5 lore raw

Re: [Bluez-users] pairing plantronics M3000 with my laptop SOLVED

Hi Brad,

In fact, it works.... something to do with reboot... A service to=20 restart??? I just restarted the computer, after a small reboot with XP=20 to use the headset for Skype :-(. Just "modeprobed" snd_bt_sco and=20 emu10k1 and ... the sound was here! I just use /dev/dsp1. XMMS works=20 fine (in mono). just a small (half a second you said?) delay when I use=20 the volume control on xmms. I also used my IAX client, to record=20 parameters for voicemail box : no problem (in fact, that's the only=20 recorder I used on Linux). Used with skype : first "echotest" trial gave=20 horrible recording. Second trial ok (??). After that, ok.

So, I will redo all the trip on another computer and try to describe all=20 the steps for a config like mine. Finally, as often, the job made by=20 the Debian team is really great. Every tool is easily installed and,=20 thank to the job of bluez, blue-alsa, it works well.

I don't see if alsa is necessary, because I installed alsa afterwards=20 and continue using OSS in the sound applications. But I don't know if it=20 is integrated in the kernel. As the debian packages are available=20 separately, I suppose it is not, but I'm not sure.

I will try later the project with bluetooth channel and asterisk.

see you soon

Laurent Lesage
Brad Midgley a =E9crit :

Quoted 9 lines

Hi

I suspect a volume problem (try using a soft mixer on your computer=20 and try volume controls on the headset)

or sco routing; as root run
hciconfig hci0 revision
and see if sco is routed to hci as it should be

Quoted 12 lines

It's possible that Marcel's new pskey program can reroute sco but I=20 haven't tried that.

Brad

Quoted 5 lines · Laurent Lesage

Laurent Lesage a =E9crit :

Quoted 3 lines

Thanks : that works!

Quoted 1 line

Brad Midgley a =E9crit : I would try removing /etc/bluetooth/link_ke=

y=20

Quoted 98 lines
Quoted 83 lines
Quoted 3 lines
Quoted 2 lines

so the pairing will be reset.

Hi again...

well, now it seems to work, but I have no sound : it is like the=20 voice packet are not sent to the headset.

1) info about the headset

Quoted 4 lines
laptop:/usr/local/btsco/btsco/kernel# hcitool info 00:03:89:4C:2D:C7
Requesting information ...
        BD Address:  00:03:89:4C:2D:C7
        Device Name: M3000 by Plantronics
Quoted 8 lines
        LMP Version: 1.1 (0x1) LMP Subversion: 0x349
        Manufacturer: Cambridge Silicon Radio (10)
        Features: 0xbc 0xe8 0x01 0x00 0x00 0x00 0x00 0x00
                <encryption> <slot offset> <timing accuracy> <role=20
switch>
                <sniff mode> <SCO link> <HV3 packets> <u-law log>=20
<A-law log>
                <CVSD>

2)BTSCO :

Quoted 3 lines
laptop:/usr/local/btsco/btsco/kernel# btsco -v
btsco v0.4c
Device is 1:0

3)dongle :

Quoted 9 lines
laptop:/usr/local/btsco/btsco/kernel# hciconfig -a
hci0:   Type: USB
        BD Address: 00:E0:98:FD:9A:BD ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:5979 acl:196 sco:0 events:286 errors:0
        TX bytes:3492 acl:147 sco:0 commands:80 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
Quoted 9 lines
        Link mode: SLAVE ACCEPT
        Name: 'laptop-0'
        Class: 0x3e0100
        Service Classes: Networking, Rendering, Capturing
        Device Class: Computer, Uncategorized
        HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP=20
Subver: 0x20d
        Manufacturer: Cambridge Silicon Radio (10)

Using Debian Sarge, with a patch for bluez from march 2005. Got btsco=20 form cvs. Compiled without error. Seems running ok. When using XMMS,=20 I see a second audio device "bluetooth headset", I see it with alsa=20 and with OSS output plugin. If I try to play a song with XMMS, I hear=20 a "beep" indicating the activation of the SCO channel. I can see it=20 with "btsco -v", verbose mode. I also can adjust the volume of my=20 headset : it's echoed on the output of btsco. On the other side, if I=20 use the oss mixer, I hear a small beep in the headset and see that=20 the volume is changed accordingly to the mixer on the computer. Same=20 for microphone.

So (I'm BT newbie...), the "signalling" seems to work perfect *BUT*=20 no voice packet are sent. HCIdump shows the "signalling packets" but=20 after that, no other packet. with XMMS, if I "play", the song remains=20 still (time stops). Just the beep in my ear to say that the channel=20 is opened (I hear the same under WinXP when I accept to "connect" the=20 headset, pushing on the "answer" button of the headset), and another=20 beep when I stop the song and thus, "disconnect" the SCO channel=20 (again, I see all that with btsco -v and hcidump).

When I will get it , I will resume the whole thing for configs like=20 mine. Help me get the sound work :-(

thanks

Laurent

Quoted 12 lines

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you=20 shotput
a projector? How fast can you ride your desk chair down the office=20 luge track?
If you want to score the big prize, get to know the little guy. Play=20 to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-user
s

Quoted 13 lines

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you=20 shotput
a projector? How fast can you ride your desk chair down the office=20 luge track?
If you want to score the big prize, get to know the little guy. Play=20 to win an NEC 61" plasma display: http://www.necitguy.com/?r=3D20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw

Re: [Bluez-users] pairing plantronics M3000 with my laptop SOLVED (bis)

In reply to Brad Midgley

Well, just to add that sometime, the sound disappear when using skype or=20 IAX client. I must stop the call and redo it to get the sound back.=20 Maybe another application picked up the route? (grip and XMMS where=20 present at the same time).

Brad Midgley a =E9crit :

Quoted 5 lines

Hi

I suspect a volume problem (try using a soft mixer on your computer=20 and try volume controls on the headset)

Quoted 8 lines

or sco routing; as root run
hciconfig hci0 revision
and see if sco is routed to hci as it should be

It's possible that Marcel's new pskey program can reroute sco but I=20 haven't tried that.

Brad

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users