2009-02-10 14:58:52

by Jelle de Jong

[permalink] [raw]
Subject: Bluetooth Optical Mouse BM083 freezes after connecting ....

sudo hciconfig
sudo hcitool con
sudo hcitool -i hci0 con
sudo hcitool -i hci1 con
sudo hcitool -i hci1 scan
sudo python .simple-agent.py hci0 00:12:A1:01:04:16
sudo hcitool info 00:12:A1:01:04:16
sudo hcitool con

------------------------------------------------------------------------
$ sudo hciconfig
hci0: Type: USB
BD Address: 00:09:DD:50:34:72 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:2086 acl:1 sco:0 events:78 errors:0
TX bytes:504 acl:1 sco:0 commands:43 errors:0

hci1: Type: USB
BD Address: 00:15:AF:F4:E9:E0 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:1327128 acl:81927 sco:0 events:1607 errors:0
TX bytes:3603 acl:20 sco:0 commands:65 errors:0

$ sudo hcitool con
Connections:
> ACL 00:07:61:8A:1A:AA handle 12 state 1 lm MASTER AUTH ENCRYPT
> ACL 11:11:11:11:17:95 handle 11 state 1 lm MASTER

$ sudo hcitool -i hci0 con
Connections:

$ sudo hcitool -i hci1 con
Connections:
> ACL 00:07:61:8A:1A:AA handle 12 state 1 lm MASTER AUTH ENCRYPT
> ACL 11:11:11:11:17:95 handle 11 state 1 lm MASTER

$ sudo hcitool -i hci1 scan
Scanning ...
00:12:A1:01:04:16 Bluetooth Mouse

$ sudo python .simple-agent.py hci1 00:12:A1:01:04:16
RequestPinCode (/org/bluez/2181/hci1/dev_00_12_A1_01_04_16)
Enter PIN Code: 0000
Release
New device (/org/bluez/2181/hci1/dev_00_12_A1_01_04_16)

$ sudo hcitool info 00:12:A1:01:04:16
Requesting information ...
BD Address: 00:12:A1:01:04:16
Device Name: Bluetooth Mouse
LMP Version: 2.0 (0x3) LMP Subversion: 0x229
Manufacturer: Broadcom Corporation (15)
Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
<encryption> <slot offset> <timing accuracy> <role switch>
<sniff mode> <RSSI> <power control> <enhanced iscan>
<interlaced iscan> <interlaced pscan> <AFH cap. slave>

------------------------------------------------------------------------

sudo apt-get install bluez-hcidump

sudo hcidump -X -V

# mouse will freeze after connecting....
$ sudo hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x02 interval 32
Mode: Sniff
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(d): cid 0x0041 len 10 [psm 0]
0000: a1 01 00 00 00 00 00 00 00 00 ..........
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x00 interval 0
Mode: Active
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x02 interval 162
Mode: Sniff
> HCI Event: Connect Request (0x04) plen 10
bdaddr 00:12:A1:01:04:16 class 0x002580 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr 00:12:A1:01:04:16 role 0x00
Role: Master
> HCI Event: Command Status (0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
status 0x00 bdaddr 00:12:A1:01:04:16 role 0x00
Role: Master
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 13 bdaddr 00:12:A1:01:04:16 type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 13
< ACL data: handle 13 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
> HCI Event: Command Status (0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 13 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Read Remote Supported Features (0x0b) plen 11
status 0x00 handle 13
Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 13
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
handle 13 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Change Connection Packet Type (0x01|0x000f) status 0x00 ncmd 1
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 00:12:A1:01:04:16 mode 2 clkoffset 0x0000
> HCI Event: Connection Packet Type Changed (0x1d) plen 5
status 0x00 handle 13 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0004
Bi-directional QoS
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 17 scid 0x0042
< ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0042 result 0 status 0
Connection successful
> ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0042 flags 0x00 result 0 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0042 flags 0x00 clen 0
> HCI Event: Remote Name Req Complete (0x07) plen 255
status 0x00 bdaddr 00:12:A1:01:04:16 name 'Bluetooth Mouse'
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
MTU 185
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 19 scid 0x0043
< ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0043 result 0 status 0
Connection successful
> ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0043 flags 0x00 result 0 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0043 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4
MTU 185
> ACL data: handle 13 flags 0x02 dlen 7
L2CAP(d): cid 0x0041 len 3 [psm 19]
HIDP: Data: Input report
0000: 03 91 ..
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 01 00 00 00 00 00 .......
> HCI Event: QoS Setup Complete (0x0d) plen 21
status 0x00 handle 13 flags 0
Service type: 1
Token rate: 850
Peak bandwith: 0
Latency: 20000
Delay variation: -1
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 00 00 00 00 00 .......
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 db 5f 02 00 00 ..._...
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 08 90 ff 00 00 .......
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 04 b0 ff 00 00 .......
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 03 70 ff 00 00 ...p...
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 04 20 ff 00 00 ... ...
< ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0043 len 8 [psm 19]
HIDP: Data: Output report
0000: 02 00 00 00 00 00 00 .......
< ACL data: handle 13 flags 0x02 dlen 7
L2CAP(d): cid 0x0043 len 3 [psm 19]
HIDP: Data: Output report
0000: 03 00 ..
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 13 mode 0x02 interval 12
Mode: Sniff
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 04 40 ff 00 00 [email protected]
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 03 50 ff 00 00 ...P...
> ACL data: handle 13 flags 0x02 dlen 5
L2CAP(d): cid 0x0041 len 1 [psm 19]
HIDP: Handshake: Unsupported request
> ACL data: handle 13 flags 0x02 dlen 5
L2CAP(d): cid 0x0041 len 1 [psm 19]
HIDP: Handshake: Unsupported request
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 01 60 fd 00 00 ...`...
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 fe af ff 00 00 .......
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 f7 2f ff 00 00 .../...
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 1
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x00 interval 0
Mode: Active
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x02 interval 322
Mode: Sniff
^C

------------------------------------------------------------------------
# mouse will freeze after connecting....

$ sudo hcidump -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 11 mode 0x00 interval 0
Mode: Active
> ACL data: handle 12 flags 0x02 dlen 14
L2CAP(d): cid 0x0041 len 10 [psm 0]
0000: a1 01 00 00 00 00 00 00 00 00 ..........
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 11 mode 0x02 interval 96
Mode: Sniff
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x00 interval 0
Mode: Active
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x02 interval 162
Mode: Sniff
> HCI Event: Connect Request (0x04) plen 10
bdaddr 00:12:A1:01:04:16 class 0x002580 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr 00:12:A1:01:04:16 role 0x00
Role: Master
> HCI Event: Command Status (0x0f) plen 4
Accept Connection Request (0x01|0x0009) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
status 0x00 bdaddr 00:12:A1:01:04:16 role 0x00
Role: Master
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 13 bdaddr 00:12:A1:01:04:16 type ACL encrypt 0x00
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
handle 13
< ACL data: handle 13 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
> HCI Event: Command Status (0x0f) plen 4
Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 13 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Read Remote Supported Features (0x0b) plen 11
status 0x00 handle 13
Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 13
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
handle 13 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Change Connection Packet Type (0x01|0x000f) status 0x00 ncmd 1
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
bdaddr 00:12:A1:01:04:16 mode 2 clkoffset 0x0000
> HCI Event: Connection Packet Type Changed (0x1d) plen 5
status 0x00 handle 13 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0004
Bi-directional QoS
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 17 scid 0x0040
< ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
> ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
> ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
MTU 185
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 19 scid 0x0041
< ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 0 status 0
Connection successful
> HCI Event: Remote Name Req Complete (0x07) plen 255
status 0x00 bdaddr 00:12:A1:01:04:16 name 'Bluetooth Mouse'
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> ACL data: handle 13 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4
MTU 185
< ACL data: handle 13 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> ACL data: handle 13 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4
MTU 185
> ACL data: handle 13 flags 0x02 dlen 7
L2CAP(d): cid 0x0041 len 3 [psm 19]
HIDP: Data: Input report
0000: 03 91 ..
> HCI Event: QoS Setup Complete (0x0d) plen 21
status 0x00 handle 13 flags 0
Service type: 1
Token rate: 850
Peak bandwith: 0
Latency: 20000
Delay variation: -1
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 01 00 00 00 00 00 .......
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 00 00 00 00 00 .......
< ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Output report
0000: 02 00 00 00 00 00 00 .......
< ACL data: handle 13 flags 0x02 dlen 7
L2CAP(d): cid 0x0041 len 3 [psm 19]
HIDP: Data: Output report
0000: 03 00 ..
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 2
> ACL data: handle 13 flags 0x02 dlen 5
L2CAP(d): cid 0x0041 len 1 [psm 19]
HIDP: Handshake: Unsupported request
> ACL data: handle 13 flags 0x02 dlen 5
L2CAP(d): cid 0x0041 len 1 [psm 19]
HIDP: Handshake: Unsupported request
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 13 mode 0x02 interval 12
Mode: Sniff
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 13 packets 1
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 01 00 00 00 00 .......
> ACL data: handle 13 flags 0x02 dlen 12
L2CAP(d): cid 0x0041 len 8 [psm 19]
HIDP: Data: Input report
0000: 02 00 03 10 00 00 00 .......
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x00 interval 0
Mode: Active
> HCI Event: Mode Change (0x14) plen 6
status 0x00 handle 12 mode 0x02 interval 322
Mode: Sniff
^C

------------------------------------------------------------------------


Attachments:
BM083.txt (16.13 kB)