2006-06-09 06:32:40

by Carl Karsten

[permalink] [raw]
Subject: [Bluez-users] PM325 by LG cell phone - pairing failed

I am trying to pair my phone to my ubuntu/dapper laptop .
carl@asus17:~$ lsusb

Bus 003 Device 002: ID 044e:3001 Alps Electric Co., Ltd UGTZ4 Bluetooth
carl@asus17:~$ cat /etc/bluetooth/pin
1234
carl@asus17:~$ sudo /etc/init.d/bluez-utils start

On the phone: menu, bluetooth, add new, Searching and Pairing,
it shows asus17-0, I select that, phone prompts "Enter PIN code", I
enter 1234<Next> and within a second get "pairing failed"

guessing because of this:

Jun 9 00:37:42 localhost gconfd (root-7749): starting (version 2.14.0),
pid 7749 user 'root'
Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
"xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only
configuration source at position 0
Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
"xml:readwrite:/root/.gconf" to a writable configuration source at
position 1
Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
"xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only
configuration source at position 2
Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
"xml:readonly:/var/lib/gconf/debian.defaults" to a read-only
configuration source at position 3
Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
"xml:readonly:/var/lib/gconf/defaults" to a read-only configuration
source at position 4
Jun 9 00:38:42 localhost gconfd (root-7749): GConf server is not in
use, shutting down.
Jun 9 00:38:42 localhost gconfd (root-7749): Exiting

Jun 9 01:03:08 localhost hcid[8572]: Bluetooth HCI daemon
Jun 9 01:03:08 localhost hcid[8572]: Can't get system message bus name:
Connection ":1.15" is not allowed to own the service "org.bluez" due to
security policies in the configuration file
Jun 9 01:03:08 localhost hcid[8572]: Starting security manager 0
Jun 9 01:03:08 localhost sdpd[8577]: Bluetooth SDP daemon


I probably need to file a bug report with ubuntu, but I would like to
get some feedback from the experts so that the report has some useful info.

Or do I need to be doing something else?

Carl K


_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2006-06-09 09:38:44

by Carl Karsten

[permalink] [raw]
Subject: Re: [Bluez-users] PM325 by LG cell phone - pairing failed

Marcel Holtmann wrote:
> Hi Carl,
>
>
>>> So since you are not emulating a headset or handsfree unit, this is not
>>> the way to go.
>>>
>> arg - I was going to ask if it mattered which direction the pairing was
>> done for a given profile. I guess it does. Now to try the other direction.
>>
>
> for the pairing the direction doesn't matter all. You have a valid link
> key and that is enough.
>
> For using a service of your phone it does matter. If you wanna connect
> to DUN for dialup into the Internet then you don't wanna play with the
> headset support of your phone.
>

To use DUN don't I have to pair first?

I seem to have done whatever I need to do, because I am not talking to
it via minicom:

at&v1
&C: 1; &D: 2; &F: 0; E: 1; L: 1; M: 0; Q: 0; V: 1; X: 4; Z: 0; S0: 0
S10: 14; S11: 95; S3: 13; S4: 10; S5: 8; S6: 2; S7: 45; S8: 2; S9: 6
+FCLASS: 0; +CFG: ""; +FCC: 0,1,0,0,0,0,0,0; +FIS: 0,1,0,0,0,0,0,0
+CDR: 0; +CDS: 0,1,2048,6; +CFC: 0; +CQD: 10; +CRC: 0; +CRM: 2; +TEST: 0
+CTA: 60; +CXT: 0; +DR: 0; +DS: 3,0,2048,6; +EB: 1,0,30; +EFCS: 1
+ER: 0; +ES: 3,0,2; +ESR: 1; +ETBM: 1,1,20; +FAA: 0; +FAP: 0,0,0
+FBO: 0; +FBU: 0; +FCQ: 1,0; +FCR: 0; +FCT: 1E; +FEA: 0; +FFC: 0,0,0,0
+FHS: 0; +FIE: 0; +FIP: 0; +FLI: ""; +FLO: 2; +FLP: 0; +FMS: 0
+FNR: 0,0,0,0; +FNS: ""; +FPA: ""; +FPI: ""; +FPP: 0; +FPR: 8; +FPS: 1
+FPW: ""; +FRQ: 0,0; +FRY: 0; +FSA: ""; +FSP: 0; +ICF: 3,3; +IFC: 2,2
+ILRR: 0; +IPR: 115200; +MA: ; +MR: 0; +MS: ; +MV18R: 0; +MV18S: 0,0,0
+CMUX: C,2

OK

I don't have a modem to call, so I tried calling my cell phone. I think
it rebooted the phone?

Carl K


_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-06-09 08:40:17

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] PM325 by LG cell phone - pairing failed

Hi Carl,

> > So since you are not emulating a headset or handsfree unit, this is not
> > the way to go.
>
> arg - I was going to ask if it mattered which direction the pairing was
> done for a given profile. I guess it does. Now to try the other direction.

for the pairing the direction doesn't matter all. You have a valid link
key and that is enough.

For using a service of your phone it does matter. If you wanna connect
to DUN for dialup into the Internet then you don't wanna play with the
headset support of your phone.

Regards

Marcel




_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-06-09 08:27:37

by Carl Karsten

[permalink] [raw]
Subject: Re: [Bluez-users] PM325 by LG cell phone - pairing failed

Marcel Holtmann wrote:
> So since you are not emulating a headset or handsfree unit, this is not
> the way to go.
>
>

arg - I was going to ask if it mattered which direction the pairing was
done for a given profile. I guess it does. Now to try the other direction.

Here is my cut/paste bug report about the "security policies" error:

https://launchpad.net/distros/ubuntu/+source/bluez-utils/+bug/49105

Carl K


_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-06-09 08:07:22

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] PM325 by LG cell phone - pairing failed

Hi Carl,

> > For the rest show us the output of "hcidump -X -V" while
> > you are trying to pair. I suspect that you PIN help isn't called
> > properly.
> >
> HCI sniffer - Bluetooth packet analyzer ver 1.28
> device: hci0 snap_len: 1028 filter: 0xffffffff
> > HCI Event: Connect Request (0x04) plen 10
> bdaddr 08:00:37:03:EF:36 class 0x400204 type ACL

So the phone established the connection to you.

> < HCI Command: Accept Connection Request (0x01|0x0009) plen 7
> bdaddr 08:00:37:03:EF:36 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 42 bdaddr 08:00:37:03:EF:36 type ACL encrypt 0x00
> < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> handle 42 policy 0x0f
> Link policy: RSWITCH HOLD SNIFF PARK
> > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
> bdaddr 08:00:37:03:EF:36 mode 1
> > HCI Event: Command Complete (0x0e) plen 6
> Write Link Policy Settings (0x02|0x000d) ncmd 1
> status 0x00 handle 42
> < HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
> handle 42 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 Event: Connection Packet Type Changed (0x1d) plen 5
> status 0x00 handle 42 ptype 0xcc18
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> > HCI Event: Max Slots Change (0x1b) plen 3
> handle 42 slots 5
> > HCI Event: PIN Code Request (0x16) plen 6
> bdaddr 08:00:37:03:EF:36
> < HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
> bdaddr 08:00:37:03:EF:36 len 4 pin '1234'
> > HCI Event: Command Complete (0x0e) plen 10
> PIN Code Request Reply (0x01|0x000d) ncmd 1
> status 0x00 bdaddr 08:00:37:03:EF:36
> > HCI Event: Link Key Notification (0x18) plen 23
> bdaddr 08:00:37:03:EF:36 key 7ECC0F84F68E851175F204130B4E561A type 0

the pairing itself works. You get a valid link key.

> > HCI Event: Disconn Complete (0x05) plen 4
> status 0x00 handle 42 reason 0x13
> Reason: Remote User Terminated Connection

Then it disconnects. That is strange.

> > HCI Event: Connect Request (0x04) plen 10
> bdaddr 08:00:37:03:EF:36 class 0x400204 type ACL
> < HCI Command: Accept Connection Request (0x01|0x0009) plen 7
> bdaddr 08:00:37:03:EF:36 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 43 bdaddr 08:00:37:03:EF:36 type ACL encrypt 0x00
> < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> handle 43 policy 0x0f
> Link policy: RSWITCH HOLD SNIFF PARK
> > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
> bdaddr 08:00:37:03:EF:36 mode 1
> > HCI Event: Command Complete (0x0e) plen 6
> Write Link Policy Settings (0x02|0x000d) ncmd 1
> status 0x00 handle 43
> < HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
> handle 43 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 Event: Connection Packet Type Changed (0x1d) plen 5
> status 0x00 handle 43 ptype 0xcc18
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> > HCI Event: Max Slots Change (0x1b) plen 3
> handle 43 slots 5
> > ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 1 scid 0x0044
> < ACL data: handle 43 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0044 result 0 status 0
> Connection successful
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > ACL data: handle 43 flags 0x02 dlen 20
> L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 8
> MTU 256 FlushTO 65535
> < ACL data: handle 43 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0044 flags 0x00 result 0 clen 0
> Success
> < ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0044 flags 0x00 clen 0
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > ACL data: handle 43 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
> Success
> > ACL data: handle 43 flags 0x02 dlen 22
> L2CAP(d): cid 0x0040 len 18 [psm 1]
> SDP SSA Req: tid 0x0 len 0xd
> pat uuid-16 0x1108 (Headset)
> max 240
> aid(s) 0x0001 (SrvClassIDList)
> cont 00
> < ACL data: handle 43 flags 0x02 dlen 14
> L2CAP(d): cid 0x0044 len 10 [psm 1]
> SDP SSA Rsp: tid 0x0 len 0x5
> count 2
> cont 00

It looks for you being a headset and this will obviously fail.

> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Disconn req: dcid 0x0040 scid 0x0044
> < ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0044
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 1 scid 0x0045
> < ACL data: handle 43 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0045 result 0 status 0
> Connection successful
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > ACL data: handle 43 flags 0x02 dlen 20
> L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 8
> MTU 256 FlushTO 65535
> < ACL data: handle 43 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0045 flags 0x00 result 0 clen 0
> Success
> < ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0045 flags 0x00 clen 0
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > ACL data: handle 43 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
> Success
> > ACL data: handle 43 flags 0x02 dlen 22
> L2CAP(d): cid 0x0040 len 18 [psm 1]
> SDP SSA Req: tid 0x0 len 0xd
> pat uuid-16 0x111e (Handsfree)
> max 240
> aid(s) 0x0001 (SrvClassIDList)
> cont 00
> < ACL data: handle 43 flags 0x02 dlen 14
> L2CAP(d): cid 0x0045 len 10 [psm 1]
> SDP SSA Rsp: tid 0x0 len 0x5
> count 2
> cont 00

Second try with handsfree and this will fail, too.

> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Disconn req: dcid 0x0040 scid 0x0045
> < ACL data: handle 43 flags 0x02 dlen 12
> L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0045
> > HCI Event: Number of Completed Packets (0x13) plen 5
> handle 43 packets 1
> > HCI Event: Disconn Complete (0x05) plen 4
> status 0x00 handle 43 reason 0x13
> Reason: Remote User Terminated Connection

So since you are not emulating a headset or handsfree unit, this is not
the way to go.

Regards

Marcel




_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-06-09 08:02:45

by Carl Karsten

[permalink] [raw]
Subject: Re: [Bluez-users] PM325 by LG cell phone - pairing failed

Marcel Holtmann wrote:
> Hi Carl,
>
>
>> I am trying to pair my phone to my ubuntu/dapper laptop .
>> carl@asus17:~$ lsusb
>>
>> Bus 003 Device 002: ID 044e:3001 Alps Electric Co., Ltd UGTZ4 Bluetooth
>> carl@asus17:~$ cat /etc/bluetooth/pin
>> 1234
>> carl@asus17:~$ sudo /etc/init.d/bluez-utils start
>>
>> On the phone: menu, bluetooth, add new, Searching and Pairing,
>> it shows asus17-0, I select that, phone prompts "Enter PIN code", I
>> enter 1234<Next> and within a second get "pairing failed"
>>
>> guessing because of this:
>>
>> Jun 9 00:37:42 localhost gconfd (root-7749): starting (version 2.14.0),
>> pid 7749 user 'root'
>> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
>> "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only
>> configuration source at position 0
>> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
>> "xml:readwrite:/root/.gconf" to a writable configuration source at
>> position 1
>> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
>> "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only
>> configuration source at position 2
>> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
>> "xml:readonly:/var/lib/gconf/debian.defaults" to a read-only
>> configuration source at position 3
>> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
>> "xml:readonly:/var/lib/gconf/defaults" to a read-only configuration
>> source at position 4
>> Jun 9 00:38:42 localhost gconfd (root-7749): GConf server is not in
>> use, shutting down.
>> Jun 9 00:38:42 localhost gconfd (root-7749): Exiting
>>
>> Jun 9 01:03:08 localhost hcid[8572]: Bluetooth HCI daemon
>> Jun 9 01:03:08 localhost hcid[8572]: Can't get system message bus name:
>> Connection ":1.15" is not allowed to own the service "org.bluez" due to
>> security policies in the configuration file
>> Jun 9 01:03:08 localhost hcid[8572]: Starting security manager 0
>> Jun 9 01:03:08 localhost sdpd[8577]: Bluetooth SDP daemon
>>
>>
>> I probably need to file a bug report with ubuntu, but I would like to
>> get some feedback from the experts so that the report has some useful info.
>>
>
> for the "security policies" error you should really file a bug report
> with Ubuntu.
will do.

> For the rest show us the output of "hcidump -X -V" while
> you are trying to pair. I suspect that you PIN help isn't called
> properly.
>
HCI sniffer - Bluetooth packet analyzer ver 1.28
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Connect Request (0x04) plen 10
bdaddr 08:00:37:03:EF:36 class 0x400204 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr 08:00:37:03:EF:36 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 42 bdaddr 08:00:37:03:EF:36 type ACL encrypt 0x00
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 42 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
bdaddr 08:00:37:03:EF:36 mode 1
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 42
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
handle 42 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 Event: Connection Packet Type Changed (0x1d) plen 5
status 0x00 handle 42 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Max Slots Change (0x1b) plen 3
handle 42 slots 5
> HCI Event: PIN Code Request (0x16) plen 6
bdaddr 08:00:37:03:EF:36
< HCI Command: PIN Code Request Reply (0x01|0x000d) plen 23
bdaddr 08:00:37:03:EF:36 len 4 pin '1234'
> HCI Event: Command Complete (0x0e) plen 10
PIN Code Request Reply (0x01|0x000d) ncmd 1
status 0x00 bdaddr 08:00:37:03:EF:36
> HCI Event: Link Key Notification (0x18) plen 23
bdaddr 08:00:37:03:EF:36 key 7ECC0F84F68E851175F204130B4E561A type 0
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 42 reason 0x13
Reason: Remote User Terminated Connection
> HCI Event: Connect Request (0x04) plen 10
bdaddr 08:00:37:03:EF:36 class 0x400204 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
bdaddr 08:00:37:03:EF:36 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 43 bdaddr 08:00:37:03:EF:36 type ACL encrypt 0x00
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 43 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
bdaddr 08:00:37:03:EF:36 mode 1
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 43
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
handle 43 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 Event: Connection Packet Type Changed (0x1d) plen 5
status 0x00 handle 43 ptype 0xcc18
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Max Slots Change (0x1b) plen 3
handle 43 slots 5
> ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0044
< ACL data: handle 43 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0044 result 0 status 0
Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> ACL data: handle 43 flags 0x02 dlen 20
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 8
MTU 256 FlushTO 65535
< ACL data: handle 43 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0044 flags 0x00 result 0 clen 0
Success
< ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0044 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> ACL data: handle 43 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 43 flags 0x02 dlen 22
L2CAP(d): cid 0x0040 len 18 [psm 1]
SDP SSA Req: tid 0x0 len 0xd
pat uuid-16 0x1108 (Headset)
max 240
aid(s) 0x0001 (SrvClassIDList)
cont 00
< ACL data: handle 43 flags 0x02 dlen 14
L2CAP(d): cid 0x0044 len 10 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x5
count 2
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0044
< ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0044
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0045
< ACL data: handle 43 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0045 result 0 status 0
Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> ACL data: handle 43 flags 0x02 dlen 20
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 8
MTU 256 FlushTO 65535
< ACL data: handle 43 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0045 flags 0x00 result 0 clen 0
Success
< ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0045 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> ACL data: handle 43 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 43 flags 0x02 dlen 22
L2CAP(d): cid 0x0040 len 18 [psm 1]
SDP SSA Req: tid 0x0 len 0xd
pat uuid-16 0x111e (Handsfree)
max 240
aid(s) 0x0001 (SrvClassIDList)
cont 00
< ACL data: handle 43 flags 0x02 dlen 14
L2CAP(d): cid 0x0045 len 10 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x5
count 2
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0045
< ACL data: handle 43 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0045
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 43 packets 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 43 reason 0x13
Reason: Remote User Terminated Connection




_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-06-09 07:08:24

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] PM325 by LG cell phone - pairing failed

Hi Carl,

> I am trying to pair my phone to my ubuntu/dapper laptop .
> carl@asus17:~$ lsusb
>
> Bus 003 Device 002: ID 044e:3001 Alps Electric Co., Ltd UGTZ4 Bluetooth
> carl@asus17:~$ cat /etc/bluetooth/pin
> 1234
> carl@asus17:~$ sudo /etc/init.d/bluez-utils start
>
> On the phone: menu, bluetooth, add new, Searching and Pairing,
> it shows asus17-0, I select that, phone prompts "Enter PIN code", I
> enter 1234<Next> and within a second get "pairing failed"
>
> guessing because of this:
>
> Jun 9 00:37:42 localhost gconfd (root-7749): starting (version 2.14.0),
> pid 7749 user 'root'
> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
> "xml:readonly:/etc/gconf/gconf.xml.mandatory" to a read-only
> configuration source at position 0
> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
> "xml:readwrite:/root/.gconf" to a writable configuration source at
> position 1
> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
> "xml:readonly:/etc/gconf/gconf.xml.defaults" to a read-only
> configuration source at position 2
> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
> "xml:readonly:/var/lib/gconf/debian.defaults" to a read-only
> configuration source at position 3
> Jun 9 00:37:42 localhost gconfd (root-7749): Resolved address
> "xml:readonly:/var/lib/gconf/defaults" to a read-only configuration
> source at position 4
> Jun 9 00:38:42 localhost gconfd (root-7749): GConf server is not in
> use, shutting down.
> Jun 9 00:38:42 localhost gconfd (root-7749): Exiting
>
> Jun 9 01:03:08 localhost hcid[8572]: Bluetooth HCI daemon
> Jun 9 01:03:08 localhost hcid[8572]: Can't get system message bus name:
> Connection ":1.15" is not allowed to own the service "org.bluez" due to
> security policies in the configuration file
> Jun 9 01:03:08 localhost hcid[8572]: Starting security manager 0
> Jun 9 01:03:08 localhost sdpd[8577]: Bluetooth SDP daemon
>
>
> I probably need to file a bug report with ubuntu, but I would like to
> get some feedback from the experts so that the report has some useful info.

for the "security policies" error you should really file a bug report
with Ubuntu. For the rest show us the output of "hcidump -X -V" while
you are trying to pair. I suspect that you PIN help isn't called
properly.

Regards

Marcel




_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users