All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] mouse wont connect...
@ 2007-02-19  6:28 tim culwins
  2007-02-19  8:40 ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: tim culwins @ 2007-02-19  6:28 UTC (permalink / raw)
  To: bluez-users

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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] mouse wont connect...
  2007-02-19  6:28 [Bluez-users] mouse wont connect tim culwins
@ 2007-02-19  8:40 ` Marcel Holtmann
  2007-02-19 16:47   ` tim culwins
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2007-02-19  8:40 UTC (permalink / raw)
  To: BlueZ users

Hi Tim

> 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] mouse wont connect...
  2007-02-19  8:40 ` Marcel Holtmann
@ 2007-02-19 16:47   ` tim culwins
  2007-02-19 17:18     ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: tim culwins @ 2007-02-19 16:47 UTC (permalink / raw)
  To: BlueZ users

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
> 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
> HCI Event: Command Status (0x0f) plen 4
    Accept Connection Request (0x01|0x0009) status
0x00 ncmd 1
> 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 
> 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 
> 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
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x00 ncmd
1
> HCI Event: Max Slots Change (0x1b) plen 3
    handle 1 slots 5
> 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
> HCI Event: Connection Packet Type Changed (0x1d)
plen 5
    status 0x00 handle 1 ptype 0xcc18
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> HCI Event: Connection Packet Type Changed (0x1d)
plen 5
    status 0x00 handle 1 ptype 0xcc18
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 
> HCI Event: Remote Name Req Complete (0x07) plen 255
    status 0x00 bdaddr 00:0A:94:C1:B6:12 name
'Bluetooth Mouse'
> 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
> HCI Event: Disconn Complete (0x05) plen 4
    status 0x00 handle 1 reason 0x13
    Reason: Remote User Terminated Connection






--- Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Tim
> 
> > 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
> Bluez-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-users
> 



 
____________________________________________________________________________________
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] mouse wont connect...
  2007-02-19 16:47   ` tim culwins
@ 2007-02-19 17:18     ` Marcel Holtmann
  2007-02-19 17:39       ` tim culwins
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2007-02-19 17:18 UTC (permalink / raw)
  To: BlueZ users

Hi Tim,

> 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] mouse wont connect...
  2007-02-19 17:18     ` Marcel Holtmann
@ 2007-02-19 17:39       ` tim culwins
  2007-02-19 17:56         ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: tim culwins @ 2007-02-19 17:39 UTC (permalink / raw)
  To: BlueZ users

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.

> 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
> HCI Event: Command Status (0x0f) plen 4
    Accept Connection Request (0x01|0x0009) status
0x00 ncmd 1
> 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 
> 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 
> 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
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x00 ncmd
1
> HCI Event: Max Slots Change (0x1b) plen 3
    handle 1 slots 5
> 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
> HCI Event: Connection Packet Type Changed (0x1d)
plen 5
    status 0x00 handle 1 ptype 0xcc18
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> HCI Event: Connection Packet Type Changed (0x1d)
plen 5
    status 0x00 handle 1 ptype 0xcc18
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 
> 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 
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> HCI Event: Remote Name Req Complete (0x07) plen 255
    status 0x00 bdaddr 00:0A:94:C1:B6:12 name
'Bluetooth Mouse'
> ACL data: handle 1 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00
result 0 clen 0
      Success
> 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
> 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
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> HCI Event: Role Change (0x12) plen 8
    status 0x00 bdaddr 00:0A:94:C1:B6:12 role 0x00
    Role: Master
> HCI Event: Connection Packet Type Changed (0x1d)
plen 5
    status 0x00 handle 1 ptype 0xcc18
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 
> 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 
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> 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
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> 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                            
       .....
> HCI Event: Mode Change (0x14) plen 6
    status 0x00 handle 1 mode 0x02 interval 20
    Mode: Sniff
> 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
> HCI Event: Number of Completed Packets (0x13) plen 5
    handle 1 packets 1
> ACL data: handle 1 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0062 scid 0x0040
> HCI Event: Mode Change (0x14) plen 6
    status 0x00 handle 1 mode 0x00 interval 65535
    Mode: Active
> 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
> HCI Event: Command Status (0x0f) plen 4
    Disconnect (0x01|0x0006) status 0x00 ncmd 1
> 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] mouse wont connect...
  2007-02-19 17:39       ` tim culwins
@ 2007-02-19 17:56         ` Marcel Holtmann
  2007-02-19 18:16           ` tim culwins
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2007-02-19 17:56 UTC (permalink / raw)
  To: BlueZ users

Hi Tim,

> 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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] mouse wont connect...
  2007-02-19 17:56         ` Marcel Holtmann
@ 2007-02-19 18:16           ` tim culwins
  0 siblings, 0 replies; 7+ messages in thread
From: tim culwins @ 2007-02-19 18:16 UTC (permalink / raw)
  To: BlueZ users

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.

--- Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Tim,
> 
> > 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
> Bluez-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-users
> 



 
____________________________________________________________________________________
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-02-19 18:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-19  6:28 [Bluez-users] mouse wont connect tim culwins
2007-02-19  8:40 ` Marcel Holtmann
2007-02-19 16:47   ` tim culwins
2007-02-19 17:18     ` Marcel Holtmann
2007-02-19 17:39       ` tim culwins
2007-02-19 17:56         ` Marcel Holtmann
2007-02-19 18:16           ` tim culwins

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.