What's the best way to go about device detection?
I have two CSR based dongles (one D-Link DBt120 rev B3) and one Microsoft dongle from their wireless keyboard & mouse pack. They both operate pretty much identically. If I can obtain a 1.2 dongle that supports getting rssi on a scan it's probably a better solution anyway. Your hardware support list shows all 1.1, however, do you know which dongles can support 1.2?
Also just FYI, the phones we're connecting to at the moment are Nokia 3650s.
The D-link that I do most of the testing on shows:
hci0: Type: USB
BD Address: 00:0F:3D:0B:FB:45 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:3686 acl:0 sco:0 events:273 errors:0
TX bytes:2832 acl:0 sco:0 commands:205 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy:
Link mode: MASTER
Name: 'Embt'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)
Quoted 58 lines
From: Marcel Holtmann <[email protected]>
To: Rob Raper <[email protected]>
CC: BlueZ Mailing List <[email protected]>
Subject: Re: [Bluez-users] What's the best way to go about device detection?
Date: Mon, 17 May 2004 13:04:52 +0200Hi Rob,
Quoted 1 line
Without involving any of my source code at alll, I can demonstrate one
of my
Quoted 2 lines
biggest problems. I'll first create a connection to an existing
bluetooth device. It works fine. I can get an RSSI value or linkvalue.
Quoted 1 line
Then, I'lll try a non-existent device. I get a connection timed out
error
Quoted 1 line
fairly quickly. Great, that's exactly what I want and what I expect.
What
Quoted 1 line
follows, however, is what is really causing me problems. I can no
longer
Quoted 14 lines
connect to the valid bt device. I just get errors for a long time. I
can't disconnect either. How can I clear out the failed connection and
move on without everything breaking down like this?pluto62:~/bluez-utils-2.4/tools# hcitool cc 00:60:57:23:35:15 pluto62:~/bluez-utils-2.4/tools# hcitool rssi 00:60:57:23:35:15 RSSI return value: -1 pluto62:~/bluez-utils-2.4/tools# hcitool dc 00:60:57:23:35:15So far so good...Now try an invalid address
pluto62:~/bluez-utils-2.4/tools# hcitool cc 00:60:57:23:35:14 Can't create connection: Connection timed outQuoted 6 lines
As expected.
pluto62:~/bluez-utils-2.4/tools# hcitool dc 00:60:57:23:35:14 Disconnect failed: Input/output errorWhy an input/output error? It's on the con list, how do I get it off?
if
create_connectionfails no ACL link is in the connection list and there is no need to disconnect it unless we have a bug in the Bluetooth core layer. However using the native HCIcreate_connectionand disconnect functions is not a good idea and the timeout you see is not from the Bluetooth chip I think. If thecreate_connectionprocess is still running you can't disconnect anything and in some cases you trouble the Bluetooth chip with such actions. Check with hcidump what is going on.What kind of Bluetooth modules are you using? Show us "hciconfig -a".
Regards
Marcel
Quoted 9 lines
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
_________________________________________________________________
Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Marcel Holtmann
maintainerHi Rob,
Quoted 5 lines
I have two CSR based dongles (one D-Link DBt120 rev B3) and one Microsoft
dongle from their wireless keyboard & mouse pack. They both operate pretty
much identically. If I can obtain a 1.2 dongle that supports getting rssi
on a scan it's probably a better solution anyway. Your hardware support
list shows all 1.1, however, do you know which dongles can support 1.2?
in general every CSR BlueCore02 based dongle with 8-Mbit flash can be updated to Bluetooth 1.2 support with HCI 18.x firmware. This has to be done by the module/dongle manufacturers.
Another Bluetooth 1.2 solution is the Zeevo ZV4002, but there is no dongle available right now. I am using the Matsushita Bluetooth Module which is based on that chip.
The third is Silicon Wave based and I expect that Anycom will sell their dongles with Bluetooth 1.2 support very soon. The new BlueFRITZ! USB 2.0 is also SiW based and the prototype that I use already supports Inquiry with RSSI.
Quoted 1 line
Also just FYI, the phones we're connecting to at the moment are Nokia 3650s.
Run a "hcitool info <bdaddr>" against your 3650 and see what features it supports. Hopefully it has role switch support.
Quoted 16 lines
The D-link that I do most of the testing on shows:
hci0: Type: USB
BD Address: 00:0F:3D:0B:FB:45 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN RX bytes:3686 acl:0 sco:0 events:273 errors:0 TX bytes:2832 acl:0 sco:0 commands:205 errors:0 Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: Link mode: MASTER Name: 'Embt' Class: 0x000000 Service Classes: Unspecified Device Class: Miscellaneous, HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver:
Quoted 2 lines
0x20d
Manufacturer: Cambridge Silicon Radio (10)
You can also try "hciconfig hci0 revision" and you see some manufacturer specific information.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users