Trouble with D-LINK adapter w/Treo 650 and FC4
I've been trying to follow the instructions to get a D-LINK DBT-120 Bluetooth adapter to work with Fedora Core 4 using a Treo 650 PalmOS phone on the Sprint network.
I've been battling it for a while and since I'll be traveling a lot very soon (the reason I'm trying to get this working) and I'm running out of time so I'm asking for help.
Basically, the instructions I'm following are these:
http://www.gurulabs.com/goodies/Using_Linux_and_Bluetooth_DUN_with_the_Treo650.php
Everything went fairly well except when I finally try to bring up the PPP connection I get an error:
[root@dell8100 bluetooth]# ifup treo
Failed to activate treo with error 7
/var/log/messages reports the following details:
Aug 24 23:13:16 dell8100 ifup-ppp: pppd started for treo on /dev/rfcomm0 at 115200 Aug 24 23:13:16 dell8100 pppd[30712]: pppd 2.4.2 started by root, uid 0 Aug 24 23:13:17 dell8100 hcid[30014]: link_key_request (sba=00:13:46:47:64:27, dba=00:07:E0:03:D3:99) Aug 24 23:13:18 dell8100 pppd[30712]: Failed to open /dev/rfcomm0: Connection reset by peer Aug 24 23:13:18 dell8100 pppd[30712]: Exit.
FYI:
00:13:46:47:64:27 is my D-Link Bluetooth adapter
00:07:E0:03:D3:99 is my Treo 650
I tried to follow some of the other diagnostics I found on the list to no avail:
# l2ping 00:07:E0:03:D3:99 Ping: 00:07:E0:03:D3:99 from 00:13:46:47:64:27 (data size 20) ... Recv failed: Connection reset by peer
During that time /var/log/messages reported the following:
Aug 24 23:14:14 dell8100 hcid[30014]: link_key_request (sba=00:13:46:47:64:27, dba=00:07:E0:03:D3:99)
If I try to scan for the phone it DOES appear to be found:
# hcitool scan
Scanning ...
00:07:E0:03:D3:99 MYTREOOne thing I noticed is that when I remove the /etc/bluetooth/link_key and then try to start PPP the phone asks me for my PIN again. I put it in and that time it seems to open the /dev/rfcomm0 port. It then tries to send AT commands which don't respond so it times out and fails.
Help!
Signature · 14 lines
Greg Gulik http://www.gulik.org/greg/ greg @ gulik.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Greg,
Quoted 3 lines
I've been trying to follow the instructions to get a D-LINK DBT-120 Bluetooth adapter to work with Fedora Core 4 using a Treo 650 PalmOS phone on the Sprint network.
what version of bluez-utils is installed with your FC4? Provide us with a "hcidump -X -V" for that failure.
Regards
Marcel
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
The bluez version in FC4 are:
bluez-hcidump-1.18-1
bluez-utils-2.15-7
bluez-pin-0.24-2
bluez-bluefw-1.0-6
bluez-libs-2.15-1
bluez-utils-cups-2.15-7
And here is the contents of hcidump -X -V:
HCI sniffer - Bluetooth packet analyzer ver 1.18
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:07:E0:03:D3:99 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000 Packet type: DM1 DM3 DM5 DH1 DH3 DH5
Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
Quoted 1 line
HCI Event: Link Key Request (
0x17) plen 6
bdaddr 00:07:E0:03:D3:75
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
bdaddr 00:07:E0:03:D3:99
Link key: 5e937eccd8e812c626964b66cd838bceQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 10
Link Key Request Reply (0x01|0x000b) ncmd 1
status 0x00 bdaddr 00:07:E0:03:D3:99Quoted 1 line
HCI Event: Connect Complete (
0x03) plen 11
status 0x00 handle 41 bdaddr 00:07:E0:03:D3:99 type ACL encrypt 0x01
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0040< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 41 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
handle 41
Quoted 1 line
HCI Event: Max Slots Change (
0x1b) plen 3
0000: 29 00 05 )..
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 41Quoted 1 line
HCI Event: Disconn Complete (
0x05) plen 4
status 0x00 handle 41 reason 0x13
Reason: Remote User Teminated Connection
Quoted 2 lines · Marcel Holtmann
what version of bluez-utils is installed with your FC4? Provide us with a "hcidump -X -V" for that failure.
Signature · 14 lines
Greg Gulik http://www.gulik.org/greg/ greg @ gulik.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Since I got no response in several days I take it nobody knows why the D-Link bluetooth adapter doesn't work with Fedora Core 4.
Can someone recommend a USB Bluetooth dongle that IS known to work well with Fedora Core 4, specifically for DUN support through a Treo 650 phone?
Quoted 52 lines · Gregory Gulik
The bluez version in FC4 are:
bluez-hcidump-1.18-1
bluez-utils-2.15-7
bluez-pin-0.24-2
bluez-bluefw-1.0-6
bluez-libs-2.15-1
bluez-utils-cups-2.15-7And here is the contents of hcidump -X -V:
HCI sniffer - Bluetooth packet analyzer ver 1.18
device: hci0snap_len: 1028 filter:0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:07:E0:03:D3:99 ptype0xcc18rswitch0x01clkoffset0x0000Packet type: DM1 DM3 DM5 DH1 DH3 DH5Quoted 1 line
HCI Event: Command Status (
0x0f) plen 4Create Connection (0x01|0x0005) status 0x00 ncmd 1Quoted 1 line
HCI Event: Link Key Request (
0x17) plen 6bdaddr 00:07:E0:03:D3:75 < HCI Command: Link Key Request Reply (0x01|0x000b) plen 22 bdaddr 00:07:E0:03:D3:99 Link key: 5e937eccd8e812c626964b66cd838bceQuoted 1 line
HCI Event: Command Complete (
0x0e) plen 10Link Key Request Reply (0x01|0x000b) ncmd 1 status 0x00 bdaddr 00:07:E0:03:D3:99Quoted 1 line
HCI Event: Connect Complete (
0x03) plen 11status 0x00 handle 41 bdaddr 00:07:E0:03:D3:99 type ACL encrypt 0x01 < ACL data: handle 41 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 3 scid 0x0040< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 41 policy0x0f
Link policy: RSWITCH HOLD SNIFF PARKQuoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5handle 41
Quoted 1 line
HCI Event: Max Slots Change (
0x1b) plen 30000: 29 00 05 )..
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6Write Link Policy Settings (0x02|0x000d) ncmd 1 status 0x00 handle 41Quoted 1 line
HCI Event: Disconn Complete (
0x05) plen 4status
0x00handle 41 reason0x13
Reason: Remote User Teminated ConnectionQuoted 2 lines · Marcel Holtmann
what version of bluez-utils is installed with your FC4? Provide us with a "hcidump -X -V" for that failure.
Signature · 14 lines
Greg Gulik http://www.gulik.org/greg/ greg @ gulik.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Gregory,
Quoted 2 lines
Since I got no response in several days I take it nobody knows why the D-Link bluetooth adapter doesn't work with Fedora Core 4.
this can happen, because I am not always around. However the the D-Link is working fine. Do you set yourself into security mode 3? Show us the output of "hciconfig -a".
Regards
Marcel
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
What is security mode 3 and how do I set it?
# hciconfig -a
hci0: Type: USB
BD Address: 00:13:46:47:64:27 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN AUTH ENCRYPT
RX bytes:101 acl:0 sco:0 events:13 errors:0
TX bytes:296 acl:0 sco:0 commands:12 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00 Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'GGULIK'
Class: 0x120104
Service Classes: Networking
Device Class: Computer, Desktop workstation
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP
Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)
Quoted 4 lines · Marcel Holtmann
this can happen, because I am not always around. However the the D-Link is working fine. Do you set yourself into security mode 3? Show us the output of "hciconfig -a".
Signature · 14 lines
Greg Gulik http://www.gulik.org/greg/ greg @ gulik.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Gregory,
Quoted 1 line
What is security mode 3 and how do I set it?
read the specs. and you set auth and encrypt in hcid.conf. Don't do this until you know what this implies.
Regards
Marcel
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
The howto I followed originally already had me enable authentication and encryption in the hcid.conf:
# Authentication and Encryption (Security Mode 3)
auth enable;
encrypt enable;Quoted 2 lines · Marcel Holtmann
read the specs. and you set auth and encrypt in hcid.conf. Don't do this until you know what this implies.
Signature · 14 lines
Greg Gulik http://www.gulik.org/greg/ greg @ gulik.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users
Marcel Holtmann
maintainerHi Gregory,
Quoted 6 lines
The howto I followed originally already had me enable authentication and encryption in the hcid.conf:
# Authentication and Encryption (Security Mode 3) auth enable; encrypt enable;
of course you can use it, but the default is off and that is for a reason. Security Mode 3 is not what you want, because it implies link level security and not all devices can deal with that. You Treo is at fault here and not the D-Link dongle.
Regards
Marcel
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Oh!!! I guess the Howto I followed was wrong. It recommended using the authentication and encryption. As soon as I turned those off it worked like a charm!
Quoted 4 lines · Marcel Holtmann
of course you can use it, but the default is off and that is for a reason. Security Mode 3 is not what you want, because it implies link level security and not all devices can deal with that. You Treo is at fault here and not the D-Link dongle.
Signature · 14 lines
Greg Gulik http://www.gulik.org/greg/ greg @ gulik.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-users