Skip to contentSkip to conversation

mouse wont connect...

Bluez-users tim culwins 2 participants 7 messages Feb 19, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

so after uninstalling and reinstalling bluez-utils 3.7 i can connect using sudo hidd --search
but i cant auto reconnect. im in discoverable mode. and when i move the mouse the little light on the dongle flashes like its trying to connect but the mouse pointer just wont move...

any help would be great,
thanks..

____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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

maintainer
#1 lore raw

Hi Tim

Quoted 6 lines

so after uninstalling and reinstalling bluez-utils 3.7 i can connect using sudo hidd --search
but i cant auto reconnect. im in discoverable mode. and when i move the mouse the little light on the dongle flashes like its trying to connect but the mouse pointer just wont move...

you don't have to be discoverable for re-connect. That is a misconception. You only have to be connectable. Check with hciconfig. You also should run "hcidump -X -V" to see if the mouse actually connects back or not.

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

#2 lore raw

cool really appreciate the help.
Looks like the mouse is connecting but the connection is being refused...
I played around with hciconfig but no dice.

here are my settings and hcidump:
hci0: Type: USB

        BD Address: 00:11:67:4F:EE:F9 ACL MTU: 678:8

SCO MTU: 64:10
UP RUNNING PSCAN ISCAN
RX bytes:50753 acl:439 sco:0 events:1486
errors:0

        TX bytes:7768 acl:125 sco:0 commands:530
errors:0
        Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00

0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
Link policy: RSWITCH HOLD SNIFF PARK Link mode: SLAVE ACCEPT
Name: 'arc-0'
Class: 0x3e0100
Service Classes: Networking, Rendering,
Capturing, Object Transfer, Audio
Device Class: Computer, Uncategorized HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2
(0x2) LMP Subver: 0x1fe
Manufacturer: Integrated System Solution Corp.
(57)

HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:0A:94:C1:B6:12 class 0x002580 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009)
plen 7
    bdaddr 00:0A:94:C1:B6:12 role 0x01
    Role: Slave
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status

0x00 ncmd 1

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 1 bdaddr 00:0A:94:C1:B6:12 type

ACL encrypt 0x00
< HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
handle 1 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 6

    Write Link Policy Settings (0x02|0x000d) ncmd 1
    status 0x00 handle 1

< HCI Command: Change Connection Packet Type
(0x01|0x000f) plen 4
handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

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:0A:94:C1:B6:12 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd

1

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 1 slots 5

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 17 scid 0x008c
< ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x008c

result 2 status 0
Connection refused - PSM not supported

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d)

plen 5
status 0x00 handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d)

plen 5
status 0x00 handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:0A:94:C1:B6:12 name

'Bluetooth Mouse'

Quoted 1 line

HCI Event: QoS Setup Complete (0x0d) plen 21

status 0x00 handle 1 flags 0
Service type: 1
Token rate: 0
Peak bandwith: 0
Latency: 11250
Delay variation: -1

Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 1 reason 0x13
Reason: Remote User Terminated Connection

Quoted 19 lines · --- Marcel Holtmann

Hi Tim

Quoted 1 line

so after uninstalling and reinstalling bluez-utils

3.7

Quoted 2 lines

i can connect using sudo hidd --search but i cant auto reconnect. im in discoverable

mode.

Quoted 3 lines

and when i move the mouse the little light on the dongle flashes like its trying to connect but the mouse pointer just wont move...

you don't have to be discoverable for re-connect. That is a
misconception. You only have to be connectable. Check with hciconfig.
You also should run "hcidump -X -V" to see if the mouse actually
connects back or not.

Quoted 7 lines

Regards

Marcel

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

Quoted 6 lines

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

Quoted 4 lines

_______________________________________________
Bluez-users mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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

maintainer
#3 lore raw

Hi Tim,

Quoted 3 lines

cool really appreciate the help.
Looks like the mouse is connecting but the connection is being refused...

make sure that "hidd --server" is running.

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

#4 lore raw

ok i ran sudo hidd --server and it tells me Can't listen on HID control channel: Address already in use

i assume that means its already running.

but now im getting a different hcidump, looks like its connecting but then something is terminating the connection...

Thank you.

Quoted 1 line

HCI Event: Connect Request (0x04) plen 10

    bdaddr 00:0A:94:C1:B6:12 class 0x002580 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009)
plen 7
    bdaddr 00:0A:94:C1:B6:12 role 0x01
    Role: Slave
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Accept Connection Request (0x01|0x0009) status

0x00 ncmd 1

Quoted 1 line

HCI Event: Connect Complete (0x03) plen 11

    status 0x00 handle 1 bdaddr 00:0A:94:C1:B6:12 type

ACL encrypt 0x00
< HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
handle 1 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 6

    Write Link Policy Settings (0x02|0x000d) ncmd 1
    status 0x00 handle 1

< HCI Command: Change Connection Packet Type
(0x01|0x000f) plen 4
handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

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:0A:94:C1:B6:12 mode 2 clkoffset 0x0000
Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Remote Name Request (0x01|0x0019) status 0x00 ncmd

1

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

handle 1 slots 5

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 17 scid 0x0062
< ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0062

result 0 status 0
Connection successful

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d)

plen 5
status 0x00 handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d)

plen 5
status 0x00 handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 40

    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen
28
      MTU 48 QoS 0x01 (Best effort) 
< ACL data: handle 1 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0062 flags 0x00
result 0 clen 0
      Success
< ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0062 flags 0x00 clen
4
      MTU 48 
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

HCI Event: Remote Name Req Complete (0x07) plen 255

    status 0x00 bdaddr 00:0A:94:C1:B6:12 name

'Bluetooth Mouse'

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00

result 0 clen 0
Success

Quoted 1 line

HCI Event: QoS Setup Complete (0x0d) plen 21

status 0x00 handle 1 flags 0
Service type: 1
Token rate: 0
Peak bandwith: 0
Latency: 11250
Delay variation: -1

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 19 scid 0x0063
< ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0063

result 0 status 0
Connection successful

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

    status 0x00 bdaddr 00:0A:94:C1:B6:12 role 0x00
    Role: Master
Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d)

plen 5
status 0x00 handle 1 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 40

    L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen
28
      MTU 48 QoS 0x01 (Best effort) 
< ACL data: handle 1 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0063 flags 0x00
result 0 clen 0
      Success
< ACL data: handle 1 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0063 flags 0x00 clen
4
      MTU 48 
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0041 flags 0x00
result 0 clen 0
      Success
< ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0063 scid 0x0041
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 10

    L2CAP(d): cid 0x0041 len 6 [psm 19]
      HIDP: Data: Input report
      0000: 02 00 fe 00 00                            
       .....
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 1 mode 0x02 interval 20
    Mode: Sniff
Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 12

    L2CAP(s): Disconn rsp: dcid 0x0063 scid 0x0041
< ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0062 scid 0x0040
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

handle 1 packets 1

Quoted 1 line

ACL data: handle 1 flags 0x02 dlen 12

    L2CAP(s): Disconn rsp: dcid 0x0062 scid 0x0040
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 1 mode 0x00 interval 65535
    Mode: Active
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 1 mode 0x02 interval 40
    Mode: Sniff

< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 1 reason 0x13
Reason: Remote User Terminated Connection

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

    Disconnect (0x01|0x0006) status 0x00 ncmd 1
Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

status 0x00 handle 1 reason 0x16
Reason: Connection Terminated by Local Host

____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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

maintainer
#5 lore raw

Hi Tim,

Quoted 9 lines

ok i ran sudo hidd --server and it tells me Can't listen on HID control channel: Address already in use

i assume that means its already running.

but now im getting a different hcidump, looks like its connecting but then something is terminating the connection...

you need a successful hidd --search first, because otherwise the HID server will reject any connections. This is a security measurement. You can check with /sys/class/bluetooth/l2cap if the PSM 17 and 19 are in use before starting hidd --server and the place to automatically start that daemon is /etc/default/bluetooth if you use Debian or Ubuntu.

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

#6 lore raw

awesome it works. thanks for all the help. i had to kill the hidd server from system monitor. run hidd --search then run hidd --server.

Quoted 25 lines · --- Marcel Holtmann

Hi Tim,

Quoted 2 lines

ok i ran sudo hidd --server and it tells me
Can't listen on HID control channel: Address

already

Quoted 5 lines

in use

i assume that means its already running.

but now im getting a different hcidump, looks like

its

Quoted 2 lines

connecting but then something is terminating the
connection...

you need a successful hidd --search first, because otherwise the HID
server will reject any connections. This is a security measurement. You
can check with /sys/class/bluetooth/l2cap if the PSM 17 and 19 are in
use before starting hidd --server and the place to automatically start
that daemon is /etc/default/bluetooth if you use Debian or Ubuntu.

Quoted 7 lines

Regards

Marcel

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

Quoted 6 lines

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

Quoted 4 lines

_______________________________________________
Bluez-users mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

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