linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] dell bluetooth mouse and keyboard do not work after "successful" pairing with simple-agent.py
@ 2008-11-04 14:39 Jelle de Jong
  2008-11-16 20:08 ` Dick
  0 siblings, 1 reply; 3+ messages in thread
From: Jelle de Jong @ 2008-11-04 14:39 UTC (permalink / raw)
  To: BlueZ development

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

This message contains the following attachment(s):
information.txt

Hello everybody,

I am trying to get a dell keyboard and mouse working with the
simple-agent.py but after the connection the devices do not work.

Would somebody be able to fix the simple-agent.py so I can connect to my
keyboard and mouse. I am willing to donate some dutch stroopwafels to
the person fixing the simple-agent.py

Please see all the debug information in the attachment.

Kind regard,

Jelle

[-- Attachment #2: information.txt --]
[-- Type: text/plain, Size: 6170 bytes --]

sudo hciconfig
    hci0:   Type: USB
        BD Address: 00:1B:DC:00:32:71 ACL MTU: 310:10 SCO MTU: 64:8
        UP RUNNING
        RX bytes:1386 acl:0 sco:0 events:84 errors:0
        TX bytes:891 acl:0 sco:0 commands:84 errors:0

    hci1:   Type: USB
        BD Address: 00:09:DD:50:34:72 ACL MTU: 310:10 SCO MTU: 64:8
        UP RUNNING
        RX bytes:22587714 acl:122 sco:0 events:3226229 errors:0
        TX bytes:898619176 acl:3232540 sco:0 commands:84 errors:0

    hci2:   Type: USB
        BD Address: 00:15:AF:F4:E9:E0 ACL MTU: 1021:8 SCO MTU: 64:1
        UP RUNNING PSCAN
        RX bytes:1433 acl:0 sco:0 events:95 errors:0
        TX bytes:8112 acl:0 sco:0 commands:95 errors:0

sudo hcitool -i hci0 scan
    Scanning ...
        00:07:61:8A:42:DF   Dell BT Mouse

python .simple-agent.py hci0 00:07:61:8A:42:DF
    RequestPinCode (/org/bluez/hci0/dev_00_07_61_8A_42_DF)
    Enter PIN Code: 0000
    Release
    New device (/org/bluez/hci0/dev_00_07_61_8A_42_DF)

# mouse does not work.... indication is that it is not paired

sudo hcitool info 00:07:61:8A:42:DF
    Requesting information ...
        BD Address:  00:07:61:8A:42:DF
        Device Name: Dell BT Mouse
        LMP Version: 1.2 (0x2) LMP Subversion: 0x545
        Manufacturer: Cambridge Silicon Radio (10)
        Features: 0xfc 0xff 0x0f 0x00 0x08 0x08 0x00 0x00
            <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> <paging scheme> <power control> <transparent SCO>
            <AFH cap. slave> <AFH cap. master>

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

sudo hciconfig
    hci0:   Type: USB
        BD Address: 00:1B:DC:00:32:71 ACL MTU: 310:10 SCO MTU: 64:8
        UP RUNNING
        RX bytes:7215 acl:189 sco:0 events:262 errors:0
        TX bytes:3950 acl:132 sco:0 commands:103 errors:0

    hci1:   Type: USB
        BD Address: 00:09:DD:50:34:72 ACL MTU: 310:10 SCO MTU: 64:8
        UP RUNNING
        RX bytes:22853231 acl:122 sco:0 events:3264160 errors:0
        TX bytes:909175320 acl:3270512 sco:0 commands:84 errors:0

    hci2:   Type: USB
        BD Address: 00:15:AF:F4:E9:E0 ACL MTU: 1021:8 SCO MTU: 64:1
        UP RUNNING PSCAN
        RX bytes:1433 acl:0 sco:0 events:95 errors:0
        TX bytes:8112 acl:0 sco:0 commands:95 errors:0

# turn on the keyboard by moving the switch from the 0 to the | sign
# turn off the mouse by moving the switch from the | to the 0 sign
# press the bluetooth connect button on the keybaord for 5 seconds

sudo hcitool -i hci0 scan
    Scanning ...
        00:07:61:8A:1A:AA   Dell BT Keyboard

python .simple-agent.py hci0 00:07:61:8A:1A:AA
    RequestPinCode (/org/bluez/hci0/dev_00_07_61_8A_1A_AA)
    Enter PIN Code: 0000
    Release
    New device (/org/bluez/hci0/dev_00_07_61_8A_1A_AA)

# keyboard does not work.... indication is that it is not paired

sudo hcitool info 00:07:61:8A:1A:AA
    Requesting information ...
        BD Address:  00:07:61:8A:1A:AA
        Device Name: Dell BT Keyboard
        LMP Version: 1.2 (0x2) LMP Subversion: 0x545
        Manufacturer: Cambridge Silicon Radio (10)
        Features: 0xfc 0xff 0x0f 0x00 0x08 0x08 0x00 0x00
            <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> <paging scheme> <power control> <transparent SCO>
            <AFH cap. slave> <AFH cap. master>

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

bluetoothd[3385]: bonding_request_new(00:07:61:8A:42:DF)
bluetoothd[3385]: adapter_get_device(00:07:61:8A:42:DF)
bluetoothd[3385]: adapter_create_device(00:07:61:8A:42:DF)
bluetoothd[3385]: Creating device /org/bluez/hci0/dev_00_07_61_8A_42_DF
bluetoothd[3385]: Temporary agent registered for hci0/00:07:61:8A:42:DF at :1.39:/test/agent
bluetoothd[3385]: adapter_get_device(00:07:61:8A:42:DF)
bluetoothd[3385]: link_key_request (sba=00:1B:DC:00:32:71, dba=00:07:61:8A:42:DF)
bluetoothd[3385]: kernel auth requirements = 0x00
bluetoothd[3385]: pin_code_request (sba=00:1B:DC:00:32:71, dba=00:07:61:8A:42:DF)
bluetoothd[3385]: hcid_dbus_new_auth_request
bluetoothd[3385]: link_key_notify (sba=00:1B:DC:00:32:71, dba=00:07:61:8A:42:DF)
bluetoothd[3385]: hcid_dbus_bonding_process_complete: status=00
bluetoothd[3385]: adapter_get_device(00:07:61:8A:42:DF)
bluetoothd[3385]: Releasing agent :1.39, /test/agent
bluetoothd[3385]: Probe drivers for /org/bluez/hci0/dev_00_07_61_8A_42_DF
bluetoothd[3385]: hid_device_probe: path /org/bluez/hci0/dev_00_07_61_8A_42_DF
bluetoothd[3385]: Registered interface org.bluez.Input on path /org/bluez/hci0/dev_00_07_61_8A_42_DF
bluetoothd[3385]: adapter_get_device(00:07:61:8A:42:DF)
bluetoothd[3385]: bonding_request_new(00:07:61:8A:1A:AA)
bluetoothd[3385]: adapter_get_device(00:07:61:8A:1A:AA)
bluetoothd[3385]: adapter_create_device(00:07:61:8A:1A:AA)
bluetoothd[3385]: Creating device /org/bluez/hci0/dev_00_07_61_8A_1A_AA
bluetoothd[3385]: Temporary agent registered for hci0/00:07:61:8A:1A:AA at :1.42:/test/agent
bluetoothd[3385]: adapter_get_device(00:07:61:8A:1A:AA)
bluetoothd[3385]: link_key_request (sba=00:1B:DC:00:32:71, dba=00:07:61:8A:1A:AA)
bluetoothd[3385]: kernel auth requirements = 0x00
bluetoothd[3385]: pin_code_request (sba=00:1B:DC:00:32:71, dba=00:07:61:8A:1A:AA)
bluetoothd[3385]: hcid_dbus_new_auth_request
bluetoothd[3385]: link_key_notify (sba=00:1B:DC:00:32:71, dba=00:07:61:8A:1A:AA)
bluetoothd[3385]: hcid_dbus_bonding_process_complete: status=00
bluetoothd[3385]: adapter_get_device(00:07:61:8A:1A:AA)
bluetoothd[3385]: Releasing agent :1.42, /test/agent
bluetoothd[3385]: Probe drivers for /org/bluez/hci0/dev_00_07_61_8A_1A_AA
bluetoothd[3385]: hid_device_probe: path /org/bluez/hci0/dev_00_07_61_8A_1A_AA
bluetoothd[3385]: Registered interface org.bluez.Input on path /org/bluez/hci0/dev_00_07_61_8A_1A_AA
bluetoothd[3385]: adapter_get_device(00:07:61:8A:1A:AA)

[-- Attachment #3: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] dell bluetooth mouse and keyboard do not work after "successful" pairing with simple-agent.py
  2008-11-04 14:39 [Bluez-devel] dell bluetooth mouse and keyboard do not work after "successful" pairing with simple-agent.py Jelle de Jong
@ 2008-11-16 20:08 ` Dick
  2008-11-16 21:17   ` Jelle de Jong
  0 siblings, 1 reply; 3+ messages in thread
From: Dick @ 2008-11-16 20:08 UTC (permalink / raw)
  To: bluez-devel

Hi Jelle,

Have you tried using hidd --search or hidd --connect?
If you don't have hidd try the following hidtool.py python script.

Succes er mee!

#!/usr/bin/python
import sys
import getopt
import dbus

bus = dbus.SystemBus()

bmgr = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
'org.bluez.Manager')
bus_id = bmgr.ActivateService('input')

imgr = dbus.Interface(bus.get_object(bus_id, '/org/bluez/input'),
'org.bluez.input.Manager')

optlist, args = getopt.getopt(sys.argv[1:], '',
['list','connect=','disconnect=','help'])

for opt,val in optlist:
	if opt == '--list':
		for path in imgr.ListDevices():
			idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device')
			print "%s Name: \"%s\" ID: %04x:%04x Connected: %i" % (path, idev.GetName(),
idev.GetProductId(), idev.GetVendorId(), idev.IsConnected())
	elif opt == '--connect':
		path = ''
		if (val[0] == '/'):
			path = val
		else:
			path = imgr.CreateDevice(val)
		idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device')
		idev.Connect()
	elif opt == '--disconnect':
		imgr.RemoveDevice(val)
	else:
		print 'usage: ', sys.argv[0], '[ --list, --connect=[XX:XX:XX:XX:XX,
/org/bluez/input/device0], --disconnect=/org/bluez/input/device0, --help ]'
		break


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] dell bluetooth mouse and keyboard do not work after "successful" pairing with simple-agent.py
  2008-11-16 20:08 ` Dick
@ 2008-11-16 21:17   ` Jelle de Jong
  0 siblings, 0 replies; 3+ messages in thread
From: Jelle de Jong @ 2008-11-16 21:17 UTC (permalink / raw)
  To: BlueZ development, linux-bluetooth

Dick wrote:
> Hi Jelle,
> 
> Have you tried using hidd --search or hidd --connect?
> If you don't have hidd try the following hidtool.py python script.
> 
> Succes er mee!
> 
> #!/usr/bin/python
> import sys
> import getopt
> import dbus
> 
> bus = dbus.SystemBus()
> 
> bmgr = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'),
> 'org.bluez.Manager')
> bus_id = bmgr.ActivateService('input')
> 
> imgr = dbus.Interface(bus.get_object(bus_id, '/org/bluez/input'),
> 'org.bluez.input.Manager')
> 
> optlist, args = getopt.getopt(sys.argv[1:], '',
> ['list','connect=','disconnect=','help'])
> 
> for opt,val in optlist:
> 	if opt == '--list':
> 		for path in imgr.ListDevices():
> 			idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device')
> 			print "%s Name: \"%s\" ID: %04x:%04x Connected: %i" % (path, idev.GetName(),
> idev.GetProductId(), idev.GetVendorId(), idev.IsConnected())
> 	elif opt == '--connect':
> 		path = ''
> 		if (val[0] == '/'):
> 			path = val
> 		else:
> 			path = imgr.CreateDevice(val)
> 		idev = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.input.Device')
> 		idev.Connect()
> 	elif opt == '--disconnect':
> 		imgr.RemoveDevice(val)
> 	else:
> 		print 'usage: ', sys.argv[0], '[ --list, --connect=[XX:XX:XX:XX:XX,
> /org/bluez/input/device0], --disconnect=/org/bluez/input/device0, --help ]'
> 		break
> 

Thank you Dick for taking the time to response. Two small comments, the
developers list is moving to linux-bluetooth@vger.kernel.org and the
hidd program is being replaced/depreciated.

I will try your python script, where can i find the upstream source
place? is it somewhere in the testing directory of the bluez git?

Thanks in advance,

Jelle

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

end of thread, other threads:[~2008-11-16 21:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-04 14:39 [Bluez-devel] dell bluetooth mouse and keyboard do not work after "successful" pairing with simple-agent.py Jelle de Jong
2008-11-16 20:08 ` Dick
2008-11-16 21:17   ` Jelle de Jong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).