linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
@ 2005-08-25  4:18 Gregory Gulik
  2005-08-25 19:03 ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Gregory Gulik @ 2005-08-25  4:18 UTC (permalink / raw)
  To: bluez-users


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       MYTREO


One 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!



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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-08-25  4:18 [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4 Gregory Gulik
@ 2005-08-25 19:03 ` Marcel Holtmann
  2005-08-26 14:51   ` Gregory Gulik
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-08-25 19:03 UTC (permalink / raw)
  To: bluez-users

Hi Greg,

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-08-25 19:03 ` Marcel Holtmann
@ 2005-08-26 14:51   ` Gregory Gulik
  2005-09-09 20:35     ` Gregory Gulik
  0 siblings, 1 reply; 10+ messages in thread
From: Gregory Gulik @ 2005-08-26 14:51 UTC (permalink / raw)
  To: 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
 > HCI Event: Command Status (0x0f) plen 4
     Create Connection (0x01|0x0005) status 0x00 ncmd 1
 > 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: 5e937eccd8e812c626964b66cd838bce
 > HCI Event: Command Complete (0x0e) plen 10
     Link Key Request Reply (0x01|0x000b) ncmd 1
     status 0x00 bdaddr 00:07:E0:03:D3:99
 > 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
 > HCI Event: Number of Completed Packets (0x13) plen 5
     handle 41
 > HCI Event: Max Slots Change (0x1b) plen 3
   0000: 29 00 05                                          )..
 > HCI Event: Command Complete (0x0e) plen 6
     Write Link Policy Settings (0x02|0x000d) ncmd 1
     status 0x00 handle 41
 > HCI Event: Disconn Complete (0x05) plen 4
     status 0x00 handle 41 reason 0x13
     Reason: Remote User Teminated Connection


Marcel Holtmann wrote:
> what version of bluez-utils is installed with your FC4? Provide us with
> a "hcidump -X -V" for that failure.

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-08-26 14:51   ` Gregory Gulik
@ 2005-09-09 20:35     ` Gregory Gulik
  2005-09-09 21:04       ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Gregory Gulik @ 2005-09-09 20:35 UTC (permalink / raw)
  To: 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?



Gregory Gulik wrote:
> 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
>  > HCI Event: Command Status (0x0f) plen 4
>     Create Connection (0x01|0x0005) status 0x00 ncmd 1
>  > 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: 5e937eccd8e812c626964b66cd838bce
>  > HCI Event: Command Complete (0x0e) plen 10
>     Link Key Request Reply (0x01|0x000b) ncmd 1
>     status 0x00 bdaddr 00:07:E0:03:D3:99
>  > 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
>  > HCI Event: Number of Completed Packets (0x13) plen 5
>     handle 41
>  > HCI Event: Max Slots Change (0x1b) plen 3
>   0000: 29 00 05                                          )..
>  > HCI Event: Command Complete (0x0e) plen 6
>     Write Link Policy Settings (0x02|0x000d) ncmd 1
>     status 0x00 handle 41
>  > HCI Event: Disconn Complete (0x05) plen 4
>     status 0x00 handle 41 reason 0x13
>     Reason: Remote User Teminated Connection
> 
> 
> Marcel Holtmann wrote:
> 
>> what version of bluez-utils is installed with your FC4? Provide us with
>> a "hcidump -X -V" for that failure.
> 
> 

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-09-09 20:35     ` Gregory Gulik
@ 2005-09-09 21:04       ` Marcel Holtmann
  2005-09-09 21:46         ` Gregory Gulik
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-09-09 21:04 UTC (permalink / raw)
  To: bluez-users

Hi Gregory,

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-09-09 21:04       ` Marcel Holtmann
@ 2005-09-09 21:46         ` Gregory Gulik
  2005-09-09 23:02           ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Gregory Gulik @ 2005-09-09 21:46 UTC (permalink / raw)
  To: 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)



Marcel Holtmann wrote:
> 
> 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".

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-09-09 21:46         ` Gregory Gulik
@ 2005-09-09 23:02           ` Marcel Holtmann
  2005-09-09 23:06             ` Gregory Gulik
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-09-09 23:02 UTC (permalink / raw)
  To: bluez-users

Hi Gregory,

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-09-09 23:02           ` Marcel Holtmann
@ 2005-09-09 23:06             ` Gregory Gulik
  2005-09-09 23:16               ` Marcel Holtmann
  0 siblings, 1 reply; 10+ messages in thread
From: Gregory Gulik @ 2005-09-09 23:06 UTC (permalink / raw)
  To: 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;


Marcel Holtmann wrote:
> read the specs. and you set auth and encrypt in hcid.conf. Don't do this
> until you know what this implies.

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-09-09 23:06             ` Gregory Gulik
@ 2005-09-09 23:16               ` Marcel Holtmann
  2005-09-10  2:15                 ` Gregory Gulik
  0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2005-09-09 23:16 UTC (permalink / raw)
  To: bluez-users

Hi Gregory,

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

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

* Re: [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4
  2005-09-09 23:16               ` Marcel Holtmann
@ 2005-09-10  2:15                 ` Gregory Gulik
  0 siblings, 0 replies; 10+ messages in thread
From: Gregory Gulik @ 2005-09-10  2:15 UTC (permalink / raw)
  To: 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!


Marcel Holtmann wrote:
> 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.

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

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

end of thread, other threads:[~2005-09-10  2:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25  4:18 [Bluez-users] Trouble with D-LINK adapter w/Treo 650 and FC4 Gregory Gulik
2005-08-25 19:03 ` Marcel Holtmann
2005-08-26 14:51   ` Gregory Gulik
2005-09-09 20:35     ` Gregory Gulik
2005-09-09 21:04       ` Marcel Holtmann
2005-09-09 21:46         ` Gregory Gulik
2005-09-09 23:02           ` Marcel Holtmann
2005-09-09 23:06             ` Gregory Gulik
2005-09-09 23:16               ` Marcel Holtmann
2005-09-10  2:15                 ` Gregory Gulik

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).