2004-07-19 19:38:10

by Rolf E. Thorup

[permalink] [raw]
Subject: [Bluez-users] SDP problems on embedded device

Hi,

I have some problems with sdp on a Intrinsyc Cerfcube 255
(http://www.intrinsyc.com/products/cerfcube/) running a Linux 2.4.19
kernel patched with the mh17-patch (and some platform specific patches).

The problem is that I can't get to discover anything on the device. I
have tried with two mobile phones, and a laptop running RH 9.0.

From the laptop I either try 'spdtool browse bdaddr' or 'sdptool search
SP' after adding SP service to the SDP record of the Cerfcube. I am able
to browse the service record of the mobile phone, but not the Cerfcube.
The output could be: 'Failed to connect to SDP server on
00:0A:94:00:20:2A: Resource temporarily unavailable'. Other reasons I
have experienced are: 'Host is down', 'Connection timed out', and
'Connection refused'.

My final goal is to make a connection (SP profile) between a Midlet
running on a Nokia 6600 and the Cerfcube. I have tested this setup with
the laptop and the phone and it works. But this will only work if
service discovery works.

At first I thought that maybe the problem was caused by using old
versions of bluez on the Cerfcube, but I have just cross-compiled and
installed bluez-2.8 (lib and utils) and the situation is the same.

Here's the output from 'hcidump -x' from the Cerfcube when trying
'sdptool browse' from the laptop.

HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Connect Request (0x04) plen 10
74 05 B1 76 0C 00 00 01 00 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
74 05 B1 76 0C 00 01
> HCI Event: Command Status (0x0f) plen 4
00 01 09 04
> HCI Event: Connect Complete (0x03) plen 11
00 29 00 74 05 B1 76 0C 00 01 00
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
29 00 0F 00
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
74 05 B1 76 0C 00 01
> HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 29 00
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
29 00 18 CC
> HCI Event: Max Slots Change (0x1b) plen 3
29 00 05
> HCI Event: Command Status (0x0f) plen 4
00 01 0F 04
> HCI Event: Connection Packet Type Changed (0x1d) plen 5
00 29 00 18 CC
> ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
> HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
> ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
> ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
> HCI Event: Disconn Complete (0x05) plen 4
00 29 00 13

I'm using a USB bluetooth dongle for both the Cerfcube and the laptop.

So, what to do next?

Best regards, Rolf.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-07-28 18:57:57

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Rolf,

> I have tried a couple of more times from the Cerfcube to search for SP
> on the laptop and also on my Sony Ericsson T610. Approx. 4 out of 5
> times the search will succeed and otherwise I'll get the error message:
>
> "Service Search failed: Connection timed out".

this can happen sometimes. It is mostly a chip problem.

> Searching for SP on the Cerfcube from the laptop does (still) not work.

Can't help you here until someone sends me a Cerfcube and I can do my
own tests.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-07-28 14:05:18

by Rolf E. Thorup

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi again

>>> The other dongle I have available has HCI 16.4 firmware. If it is of
>>> any help here's the output from "hcidump -x -t" from the laptop
>>> (browsing the Cerfcube using the HCI 16.4 firmware dongle). I'm still
>>> using the mh14 kernel patch.
>>
>> and it is still the same problem. One side sends the config request, but
>> the other don't receives it. Try to browse from the Cerfcube a service
>> on your laptop's SDP database.

Just tried on more time, and I was able to discover the SP service of
the laptop.

Dumps:

[root@xscale3 /root]# hcidump -x -t
HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1091019423.563293 < HCI Command: Create Connection (0x01|0x0005) plen 13
2A 20 00 94 0A 00 18 CC 02 00 00 00 01
1091019423.571986 > HCI Event: Command Status (0x0f) plen 4
00 01 05 04
1091019426.567410 > HCI Event: Connect Complete (0x03) plen 11
00 29 00 2A 20 00 94 0A 00 01 00
1091019426.568601 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1091019426.568732 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
29 00 0F 00
1091019426.575391 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019426.581389 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 29 00
1091019426.587410 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
2A 20 00 94 0A 00 01
1091019426.601407 > HCI Event: Max Slots Change (0x1b) plen 3
29 00 05
1091019426.663399 > ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1091019426.664413 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1091019426.671392 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019426.691400 > ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1091019426.693398 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1091019426.693619 < ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1091019426.697110 < ACL data: handle 0x0029 flags 0x02 dlen 24
L2CAP(d): cid 0x40 len 20 [psm 1]
SDP SSA Req: tid 0x0 len 0xf
pat uuid-16 0x1101 (SP)
max 0xffff
aid(s) 0x0000 - 0xffff
cont 00
1091019426.701415 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019426.705386 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019426.723394 > ACL data: handle 0x0029 flags 0x02 dlen 86
L2CAP(d): cid 0x40 len 82 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x4d
cnt 0x4a
srv rec #0
aid 0x0000 (SrvRecHndl)
uint 0x804d170
aid 0x0001 (SrvClassIDList)
< uuid-16 0x1101 (SP) >
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) > <
uuid-16 0x0003 (RFCOMM) uint 0x4 > >
aid 0x0005 (BrwGrpList)
< uuid-16 0x1002 (PubBrwsGrp) >
aid 0x0009 (BTProfileDescList)
< < uuid-16 0x1101 (SP) uint 0x100 > >
aid 0x0100 (SrvName)
str "Serial Port"

cont 00
1091019426.745942 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1091019426.753392 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019426.773376 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1091019428.764390 < HCI Command: Disconnect (0x01|0x0006) plen 3
29 00 13
1091019428.772949 > HCI Event: Command Status (0x0f) plen 4
00 01 06 04
1091019428.788976 > HCI Event: Disconn Complete (0x05) plen 4
00 29 00 16


Laptop dump:

[root@tux012 root]# hcidump -x -t
HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1091019016.391632 > HCI Event: Connect Request (0x04) plen 10
74 05 B1 76 0C 00 00 01 00 01
1091019016.392644 < HCI Command: Accept Connection Request (0x01|0x0009)
plen 7
74 05 B1 76 0C 00 01
1091019016.404625 > HCI Event: Command Status (0x0f) plen 4
00 01 09 04
1091019016.428621 > HCI Event: Connect Complete (0x03) plen 11
00 29 00 74 05 B1 76 0C 00 01 00
1091019016.429633 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
29 00 0F 00
1091019016.430618 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
74 05 B1 76 0C 00 01
1091019016.446617 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 29 00
1091019016.447345 < HCI Command: Change Connection Packet Type
(0x01|0x000f) plen 4
29 00 18 CC
1091019016.462620 > HCI Event: Max Slots Change (0x1b) plen 3
29 00 05
1091019016.464614 > HCI Event: Command Status (0x0f) plen 4
00 01 0F 04
1091019016.466613 > HCI Event: Connection Packet Type Changed (0x1d) plen 5
00 29 00 18 CC
1091019016.487620 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1091019016.497351 < ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1091019016.520608 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019016.526610 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1091019016.527354 < ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1091019016.527391 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1091019016.549602 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019016.552596 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019016.556599 > ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1091019016.558596 > ACL data: handle 0x0029 flags 0x02 dlen 24
L2CAP(d): cid 0x40 len 20 [psm 1]
SDP SSA Req: tid 0x0 len 0xf
pat uuid-16 0x1101 (SP)
max 0xffff
aid(s) 0x0000 - 0xffff
cont 00
1091019016.560314 < ACL data: handle 0x0029 flags 0x02 dlen 86
L2CAP(d): cid 0x40 len 82 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x4d
cnt 0x4a
srv rec #0
aid 0x0000 (SrvRecHndl)
uint 0x804d170
aid 0x0001 (SrvClassIDList)
< uuid-16 0x1101 (SP) >
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) > <
uuid-16 0x0003 (RFCOMM) uint 0x4 > >
aid 0x0005 (BrwGrpList)
< uuid-16 0x1002 (PubBrwsGrp) >
aid 0x0009 (BTProfileDescList)
< < uuid-16 0x1101 (SP) uint 0x100 > >
aid 0x0100 (SrvName)
str "Serial Port"

cont 00
1091019016.582596 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019016.607599 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1091019016.607863 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1091019016.630588 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1091019018.714208 > HCI Event: Disconn Complete (0x05) plen 4
00 29 00 13

I have tried a couple of more times from the Cerfcube to search for SP
on the laptop and also on my Sony Ericsson T610. Approx. 4 out of 5
times the search will succeed and otherwise I'll get the error message:

"Service Search failed: Connection timed out".

Searching for SP on the Cerfcube from the laptop does (still) not work.

Regards, Rolf


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-07-21 12:18:31

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Rolf,

> The other dongle I have available has HCI 16.4 firmware. If it is of any
> help here's the output from "hcidump -x -t" from the laptop (browsing
> the Cerfcube using the HCI 16.4 firmware dongle). I'm still using the
> mh14 kernel patch.

and it is still the same problem. One side sends the config request, but
the other don't receives it. Try to browse from the Cerfcube a service
on your laptop's SDP database.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-07-21 12:30:42

by Rolf E. Thorup

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Marcel

>>The other dongle I have available has HCI 16.4 firmware. If it is of any
>>help here's the output from "hcidump -x -t" from the laptop (browsing
>>the Cerfcube using the HCI 16.4 firmware dongle). I'm still using the
>>mh14 kernel patch.
>
> and it is still the same problem. One side sends the config request, but
> the other don't receives it. Try to browse from the Cerfcube a service
> on your laptop's SDP database.

Cerfcube searching for SP on laptop.

[root@xscale3 /root]# sdptool search --bdaddr 00:0A:94:00:20:2A SP
Searching for SP on 00:0A:94:00:20:2A ...
Service Search failed: Connection timed out

[root@xscale3 /root]# hcidump -x -t
HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1090413342.564243 < HCI Command: Create Connection (0x01|0x0005) plen 13
2A 20 00 94 0A 00 18 CC 02 00 00 00 01
1090413342.574362 > HCI Event: Command Status (0x0f) plen 4
00 01 05 04
1090413345.877738 > HCI Event: Connect Complete (0x03) plen 11
00 29 00 2A 20 00 94 0A 00 01 00
1090413345.878922 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1090413345.879079 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
29 00 0F 00
1090413345.885720 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090413345.889737 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 29 00
1090413345.897742 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
2A 20 00 94 0A 00 01
1090413345.905741 > HCI Event: Max Slots Change (0x1b) plen 3
29 00 05
1090413345.944735 > ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1090413345.945942 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090413345.953719 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090413345.973735 > ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090413345.975736 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090413345.975970 < ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090413345.977202 < ACL data: handle 0x0029 flags 0x02 dlen 24
L2CAP(d): cid 0x40 len 20 [psm 1]
SDP SSA Req: tid 0x0 len 0xf
pat uuid-16 0x1101 (SP)
max 0xffff
aid(s) 0x0000 - 0xffff
cont 00
1090413345.983741 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090413365.970806 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1090413365.987893 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090413366.010892 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1090413368.008993 < HCI Command: Disconnect (0x01|0x0006) plen 3
29 00 13
1090413368.015481 > HCI Event: Command Status (0x0f) plen 4
00 01 06 04
1090413368.039499 > HCI Event: Disconn Complete (0x05) plen 4
00 29 00 16


Laptop's hcidump:

[root@tux012 root]# hcidump -x -t
HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1090412930.648961 > HCI Event: Connect Request (0x04) plen 10
74 05 B1 76 0C 00 00 01 00 01
1090412930.657137 < HCI Command: Accept Connection Request (0x01|0x0009)
plen 7
74 05 B1 76 0C 00 01
1090412930.670802 > HCI Event: Command Status (0x0f) plen 4
00 01 09 04
1090412930.688229 > HCI Event: Connect Complete (0x03) plen 11
00 29 00 74 05 B1 76 0C 00 01 00
1090412930.688562 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
29 00 0F 00
1090412930.689859 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
74 05 B1 76 0C 00 01
1090412930.714781 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 29 00
1090412930.715032 < HCI Command: Change Connection Packet Type
(0x01|0x000f) plen 4
29 00 18 CC
1090412930.732785 > HCI Event: Max Slots Change (0x1b) plen 3
29 00 05
1090412930.733440 > HCI Event: Command Status (0x0f) plen 4
00 01 0F 04
1090412930.737560 > HCI Event: Connection Packet Type Changed (0x1d) plen 5
00 29 00 18 CC
1090412930.757320 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1090412930.757744 < ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1090412930.769604 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090412930.776498 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090412930.776791 < ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090412930.776816 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090412930.800513 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090412930.802459 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090412930.806407 > ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090412950.810971 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1090412950.811536 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1090412950.857907 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090412952.930571 > HCI Event: Disconn Complete (0x05) plen 4
00 29 00 13


I'm going away for an extended weekend right now, so I won't be back to
continue this thread until Monday next week.

Regards

Rolf

2004-07-21 10:56:09

by Rolf E. Thorup

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Marcel

>>>>>Try using 2.4.19-mh14 and show us the output of "hciconfig -a" on your
>>>>>Cerfcube. Is the Cerfcube a big endian machine?
>>>>
>>>>After compiling a new kernel and reflashing:
>>>
>>>does this kernel work?
>>
>>Yes (but I haven't tested much), although I get this error message when
>>booting:
>
> I meant, if the SDP browsing works with that kernel patch?

Uups, guess I'm not using my brain for thinking right know.

No the mh14 kernel patch does not fix the SDP browsing problem.

>>Calculating module dependencies... depmod: *** Unresolved symbols in
>>/lib/modules/2.4.19-rmk6-pxa1-cerf1/kernel/drivers/bluetooth/bfusb.o
>
> This can happen. You won't need the bfusb.o driver. Try a clean compile.

OK

>>A couple of months ago when I first tried to get sdp to work, I also
>>randomly tried the mh13- and mh15-patches but with the same outcome as
>>with the mh14- and mh17-patches.
>
> So is the mh14 working for you or not? I don't get the correct point
> here.

Well I can understand that. When rereading my post I can see I have
expressed myself rather vague.

I meant:
Two months ago I initially tried the mh17-patch (as this was the
newest). SDP browsing did not work. I also tried the mh13- and
mh15-patch but that did not help. SDP browsing still non-working. I then
went on with other projects.

This time (this week) I decided to try again. Again using the mh17
kernel patch, but now with the bluez-libs-2.8 and bluez-utils-2.8. Still
SDP browsing is not working on the device.

>>>Please try another dongle with at least HCI 16.4 firmware.
>>
>>Sorry for being a little bit puzzled now. How do I see what the firmware
>>version is for my current dongle? I translate the HCI Rev hex number to
>>469 in decimal so should I just put the decimal point after the 4?
>
> You can use "hciconfig hci0 revision" or look it up on my CSR page.

:-) (should have read the manual better)

The other dongle I have available has HCI 16.4 firmware. If it is of any
help here's the output from "hcidump -x -t" from the laptop (browsing
the Cerfcube using the HCI 16.4 firmware dongle). I'm still using the
mh14 kernel patch.

[root@tux012 root]# hcidump -x -t
HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1090406635.327140 < HCI Command: Disconnect (0x01|0x0006) plen 3
29 00 13
1090406635.330194 > HCI Event: Command Status (0x0f) plen 4
00 01 06 04
1090406635.351311 > HCI Event: Disconn Complete (0x05) plen 4
00 29 00 16
1090406641.710495 < HCI Command: Create Connection (0x01|0x0005) plen 13
74 05 B1 76 0C 00 18 CC 00 00 00 00 01
1090406641.718445 > HCI Event: Command Status (0x0f) plen 4
00 01 05 04
1090406642.741000 > HCI Event: Connect Complete (0x03) plen 11
00 2A 00 74 05 B1 76 0C 00 01 00
1090406642.741449 < ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1090406642.741498 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
2A 00 0F 00
1090406642.750211 > HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
1090406642.753669 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 2A 00
1090406642.758444 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
74 05 B1 76 0C 00 01
1090406642.768054 > HCI Event: Max Slots Change (0x1b) plen 3
2A 00 05
1090406642.808248 > ACL data: handle 0x002a flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1090406642.808678 < ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090406642.820222 > HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
1090406642.840205 > ACL data: handle 0x002a flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090406681.707145 < ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1090406681.778420 > HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
1090406681.778443 > ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1090406683.707143 < HCI Command: Disconnect (0x01|0x0006) plen 3
2A 00 13
1090406683.709542 > HCI Event: Command Status (0x0f) plen 4
00 01 06 04
1090406683.727697 > HCI Event: Disconn Complete (0x05) plen 4
00 2A 00 16

and the output from the Cerfcube:

[root@xscale3 /root]# hcidump -x -t
HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1090407057.032402 > HCI Event: Connect Request (0x04) plen 10
2A 20 00 94 0A 00 00 01 00 01
1090407057.033734 < HCI Command: Accept Connection Request (0x01|0x0009)
plen 7
2A 20 00 94 0A 00 01
1090407057.046380 > HCI Event: Command Status (0x0f) plen 4
00 01 09 04
1090407057.066400 > HCI Event: Connect Complete (0x03) plen 11
00 2A 00 2A 20 00 94 0A 00 01 00
1090407057.067605 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
2A 00 0F 00
1090407057.070420 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
2A 20 00 94 0A 00 01
1090407057.086372 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 2A 00
1090407057.087517 < HCI Command: Change Connection Packet Type
(0x01|0x000f) plen 4
2A 00 18 CC
1090407057.106368 > HCI Event: Max Slots Change (0x1b) plen 3
2A 00 05
1090407057.110395 > HCI Event: Command Status (0x0f) plen 4
00 01 0F 04
1090407057.114393 > HCI Event: Connection Packet Type Changed (0x1d) plen 5
00 2A 00 18 CC
1090407057.119404 > ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1090407057.120697 < ACL data: handle 0x002a flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1090407057.138384 > HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
1090407057.145395 > ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090407057.146610 < ACL data: handle 0x002a flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090407057.146722 < ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090407057.168377 > HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
1090407096.075987 > ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1090407096.076215 < ACL data: handle 0x002a flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1090407096.246939 > HCI Event: Number of Completed Packets (0x13) plen 5
01 2A 00 01 00
1090407098.124586 > HCI Event: Disconn Complete (0x05) plen 4
00 2A 00 13

Thanks again.

Rolf

2004-07-21 10:04:51

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Rolf,

> >>>Try using 2.4.19-mh14 and show us the output of "hciconfig -a" on your
> >>>Cerfcube. Is the Cerfcube a big endian machine?
> >>
> >>After compiling a new kernel and reflashing:
> >
> > does this kernel work?
>
> Yes (but I haven't tested much), although I get this error message when
> booting:

I meant, if the SDP browsing works with that kernel patch?

> Calculating module dependencies... depmod: *** Unresolved symbols in
> /lib/modules/2.4.19-rmk6-pxa1-cerf1/kernel/drivers/bluetooth/bfusb.o

This can happen. You won't need the bfusb.o driver. Try a clean compile.

> A couple of months ago when I first tried to get sdp to work, I also
> randomly tried the mh13- and mh15-patches but with the same outcome as
> with the mh14- and mh17-patches.

So is the mh14 working for you or not? I don't get the correct point
here.

> > Please try another dongle with at least HCI 16.4 firmware.
>
> Sorry for being a little bit puzzled now. How do I see what the firmware
> version is for my current dongle? I translate the HCI Rev hex number to
> 469 in decimal so should I just put the decimal point after the 4?
>
> At the moment I also have another USB dongle available and the output
> from "hciconfig hci0 version" is
>
> [root@xscale3 /root]# hciconfig hci0 version
> hci0: Type: USB
> BD Address: 00:0C:76:B1:05:74 ACL MTU: 192:8 SCO MTU: 64:8
> HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP
> Subver: 0x20d
> Manufacturer: Cambridge Silicon Radio (10)
>
> Which give HCI Rev number 525 in decimal. Are my dongles really that
> antique?

You can use "hciconfig hci0 revision" or look it up on my CSR page.

> Final question. I'm curious about why I should try the mh14-patch? Do
> one experience subtle differences between the output from hciconfig?

I think that this change "Fix non-blocking socket race conditions" could
have caused some problems. One part of it already has :(

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-07-21 09:43:43

by Rolf E. Thorup

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Marcel

>>>Try using 2.4.19-mh14 and show us the output of "hciconfig -a" on your
>>>Cerfcube. Is the Cerfcube a big endian machine?
>>
>>After compiling a new kernel and reflashing:
>
> does this kernel work?

Yes (but I haven't tested much), although I get this error message when
booting:

Calculating module dependencies... depmod: *** Unresolved symbols in
/lib/modules/2.4.19-rmk6-pxa1-cerf1/kernel/drivers/bluetooth/bfusb.o

A couple of months ago when I first tried to get sdp to work, I also
randomly tried the mh13- and mh15-patches but with the same outcome as
with the mh14- and mh17-patches.

>>[root@xscale3 /root]# hciconfig -a
>>hci0: Type: USB
>> BD Address: 00:0A:94:00:20:2A ACL MTU: 192:8 SCO MTU: 64:8
>> UP RUNNING PSCAN ISCAN
>> RX bytes:99 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: 'xscale3'
>> Class: 0x000100
>> Service Classes: Unspecified
>> Device Class: Computer, Uncategorized
>> HCI Ver: 1.1 (0x1) HCI Rev: 0x1d3 LMP Ver: 1.1 (0x1) LMP
>>Subver: 0x1d3
>> Manufacturer: Cambridge Silicon Radio (10)
>
> Please try another dongle with at least HCI 16.4 firmware.

Sorry for being a little bit puzzled now. How do I see what the firmware
version is for my current dongle? I translate the HCI Rev hex number to
469 in decimal so should I just put the decimal point after the 4?

At the moment I also have another USB dongle available and the output
from "hciconfig hci0 version" is

[root@xscale3 /root]# hciconfig hci0 version
hci0: Type: USB
BD Address: 00:0C:76:B1:05:74 ACL MTU: 192:8 SCO MTU: 64:8
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP
Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)

Which give HCI Rev number 525 in decimal. Are my dongles really that
antique?

Final question. I'm curious about why I should try the mh14-patch? Do
one experience subtle differences between the output from hciconfig?

>>With regards to endianess, good quiestion. After googling around I
>>actually think it can be both. But I made a small program testing it and
>>it said little endian.
>
> Was only an idea. In general the BlueZ should now be endian safe, but
> you never know for sure ;)

Well that could definitely account for some very-hard-to-find bugs, so I
hope that's not the case :-) Thanks for your help so far!

Regards, Rolf

2004-07-20 17:43:19

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Rolf,

> > Try using 2.4.19-mh14 and show us the output of "hciconfig -a" on your
> > Cerfcube. Is the Cerfcube a big endian machine?
>
> After compiling a new kernel and reflashing:

does this kernel work?

> [root@xscale3 /root]# hciconfig -a
> hci0: Type: USB
> BD Address: 00:0A:94:00:20:2A ACL MTU: 192:8 SCO MTU: 64:8
> UP RUNNING PSCAN ISCAN
> RX bytes:99 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: 'xscale3'
> Class: 0x000100
> Service Classes: Unspecified
> Device Class: Computer, Uncategorized
> HCI Ver: 1.1 (0x1) HCI Rev: 0x1d3 LMP Ver: 1.1 (0x1) LMP
> Subver: 0x1d3
> Manufacturer: Cambridge Silicon Radio (10)

Please try another dongle with at least HCI 16.4 firmware.

> With regards to endianess, good quiestion. After googling around I
> actually think it can be both. But I made a small program testing it and
> it said little endian.

Was only an idea. In general the BlueZ should now be endian safe, but
you never know for sure ;)

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-07-20 17:10:47

by Rolf E. Thorup

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Marcel

[SNIP, some "hcidump -t -x" output]

>>
>>and here's the output from the Cerfcube:
>>
>>HCIDump - HCI packet analyzer ver 1.9
>>device: hci0 snap_len: 1028 filter: 0xffffffff
>>1090319478.496750 > HCI Event: Connect Request (0x04) plen 10
>> 74 05 B1 76 0C 00 00 01 00 01
>>1090319478.497886 < HCI Command: Accept Connection Request (0x01|0x0009)
>>plen 7
>> 74 05 B1 76 0C 00 01
>>1090319478.512733 > HCI Event: Command Status (0x0f) plen 4
>> 00 01 09 04
>>1090319478.546741 > HCI Event: Connect Complete (0x03) plen 11
>> 00 29 00 74 05 B1 76 0C 00 01 00
>>1090319478.547821 < HCI Command: Write Link Policy Settings
>>(0x02|0x000d) plen 4
>> 29 00 0F 00
>>1090319478.550769 > HCI Event: Page Scan Repetition Mode Change (0x20)
>>plen 7
>> 74 05 B1 76 0C 00 01
>>1090319478.564746 > HCI Event: Command Complete (0x0e) plen 6
>> 01 0D 08 00 29 00
>>1090319478.565797 < HCI Command: Change Connection Packet Type
>>(0x01|0x000f) plen 4
>> 29 00 18 CC
>>1090319478.584718 > HCI Event: Max Slots Change (0x1b) plen 3
>> 29 00 05
>>1090319478.588740 > HCI Event: Command Status (0x0f) plen 4
>> 00 01 0F 04
>>1090319478.592739 > HCI Event: Connection Packet Type Changed (0x1d) plen 5
>> 00 29 00 18 CC
>>1090319478.602746 > ACL data: handle 0x0029 flags 0x02 dlen 12
>> L2CAP(s): Connect req: psm 1 scid 0x0040
>>1090319478.604041 < ACL data: handle 0x0029 flags 0x02 dlen 16
>> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
>>1090319478.612733 > HCI Event: Number of Completed Packets (0x13) plen 5
>> 01 29 00 01 00
>>1090319478.618741 > ACL data: handle 0x0029 flags 0x02 dlen 12
>> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
>>1090319478.619937 < ACL data: handle 0x0029 flags 0x02 dlen 14
>> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
>>1090319478.620053 < ACL data: handle 0x0029 flags 0x02 dlen 12
>> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
>
>
> the problem is that this "Config req" request never reaches the other
> side. And because of that the laptop sides sends a "Disonn req" after
> some time.
>
>
>>1090319478.642724 > HCI Event: Number of Completed Packets (0x13) plen 5
>> 01 29 00 01 00
>>1090319517.746003 > ACL data: handle 0x0029 flags 0x02 dlen 12
>> L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
>>1090319517.746236 < ACL data: handle 0x0029 flags 0x02 dlen 12
>> L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
>>1090319517.768987 > HCI Event: Number of Completed Packets (0x13) plen 5
>> 01 29 00 01 00
>>1090319519.848575 > HCI Event: Disconn Complete (0x05) plen 4
>> 00 29 00 13
>
>
> Try using 2.4.19-mh14 and show us the output of "hciconfig -a" on your
> Cerfcube. Is the Cerfcube a big endian machine?

After compiling a new kernel and reflashing:

[root@xscale3 /root]# hciconfig -a
hci0: Type: USB
BD Address: 00:0A:94:00:20:2A ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:99 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: 'xscale3'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x1d3 LMP Ver: 1.1 (0x1) LMP
Subver: 0x1d3
Manufacturer: Cambridge Silicon Radio (10)

With regards to endianess, good quiestion. After googling around I
actually think it can be both. But I made a small program testing it and
it said little endian.

Regards, Rolf

2004-07-20 14:47:43

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Rolf,

> Here's the output from the laptop (browsing the Cerfcube):
>
> HCIDump - HCI packet analyzer ver 1.9
> device: hci0 snap_len: 1028 filter: 0xffffffff
> 1090319067.842941 < HCI Command: Create Connection (0x01|0x0005) plen 13
> 2A 20 00 94 0A 00 18 CC 00 00 00 00 01
> 1090319067.846445 > HCI Event: Command Status (0x0f) plen 4
> 00 01 05 04
> 1090319068.636871 > HCI Event: Connect Complete (0x03) plen 11
> 00 29 00 2A 20 00 94 0A 00 01 00
> 1090319068.637297 < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 1 scid 0x0040
> 1090319068.637345 < HCI Command: Write Link Policy Settings
> (0x02|0x000d) plen 4
> 29 00 0F 00
> 1090319068.648902 > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> 1090319068.658112 > HCI Event: Command Complete (0x0e) plen 6
> 01 0D 08 00 29 00
> 1090319068.666028 > HCI Event: Page Scan Repetition Mode Change (0x20)
> plen 7
> 2A 20 00 94 0A 00 01
> 1090319068.667769 > HCI Event: Max Slots Change (0x1b) plen 3
> 29 00 05
> 1090319068.715975 > ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
> 1090319068.716411 < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> 1090319068.722627 > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> 1090319068.745926 > ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> 1090319107.835421 < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> 1090319107.849809 > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> 1090319107.866512 > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> 1090319109.835420 < HCI Command: Disconnect (0x01|0x0006) plen 3
> 29 00 13
> 1090319109.837924 > HCI Event: Command Status (0x0f) plen 4
> 00 01 06 04
> 1090319109.875959 > HCI Event: Disconn Complete (0x05) plen 4
> 00 29 00 16
>
> and here's the output from the Cerfcube:
>
> HCIDump - HCI packet analyzer ver 1.9
> device: hci0 snap_len: 1028 filter: 0xffffffff
> 1090319478.496750 > HCI Event: Connect Request (0x04) plen 10
> 74 05 B1 76 0C 00 00 01 00 01
> 1090319478.497886 < HCI Command: Accept Connection Request (0x01|0x0009)
> plen 7
> 74 05 B1 76 0C 00 01
> 1090319478.512733 > HCI Event: Command Status (0x0f) plen 4
> 00 01 09 04
> 1090319478.546741 > HCI Event: Connect Complete (0x03) plen 11
> 00 29 00 74 05 B1 76 0C 00 01 00
> 1090319478.547821 < HCI Command: Write Link Policy Settings
> (0x02|0x000d) plen 4
> 29 00 0F 00
> 1090319478.550769 > HCI Event: Page Scan Repetition Mode Change (0x20)
> plen 7
> 74 05 B1 76 0C 00 01
> 1090319478.564746 > HCI Event: Command Complete (0x0e) plen 6
> 01 0D 08 00 29 00
> 1090319478.565797 < HCI Command: Change Connection Packet Type
> (0x01|0x000f) plen 4
> 29 00 18 CC
> 1090319478.584718 > HCI Event: Max Slots Change (0x1b) plen 3
> 29 00 05
> 1090319478.588740 > HCI Event: Command Status (0x0f) plen 4
> 00 01 0F 04
> 1090319478.592739 > HCI Event: Connection Packet Type Changed (0x1d) plen 5
> 00 29 00 18 CC
> 1090319478.602746 > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 1 scid 0x0040
> 1090319478.604041 < ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
> 1090319478.612733 > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> 1090319478.618741 > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> 1090319478.619937 < ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> 1090319478.620053 < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0

the problem is that this "Config req" request never reaches the other
side. And because of that the laptop sides sends a "Disonn req" after
some time.

> 1090319478.642724 > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> 1090319517.746003 > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> 1090319517.746236 < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> 1090319517.768987 > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> 1090319519.848575 > HCI Event: Disconn Complete (0x05) plen 4
> 00 29 00 13

Try using 2.4.19-mh14 and show us the output of "hciconfig -a" on your
Cerfcube. Is the Cerfcube a big endian machine?

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-07-20 10:31:13

by Rolf E. Thorup

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Marcel Holtmann wrote:
> Hi Rolf,

Hi Marcel

>>I have some problems with sdp on a Intrinsyc Cerfcube 255
>>(http://www.intrinsyc.com/products/cerfcube/) running a Linux 2.4.19
>>kernel patched with the mh17-patch (and some platform specific patches).
>>
>>The problem is that I can't get to discover anything on the device. I
>>have tried with two mobile phones, and a laptop running RH 9.0.
>>
>> From the laptop I either try 'spdtool browse bdaddr' or 'sdptool search
>>SP' after adding SP service to the SDP record of the Cerfcube. I am able
>>to browse the service record of the mobile phone, but not the Cerfcube.
>>The output could be: 'Failed to connect to SDP server on
>>00:0A:94:00:20:2A: Resource temporarily unavailable'. Other reasons I
>>have experienced are: 'Host is down', 'Connection timed out', and
>>'Connection refused'.

[SNIP, some details and initial hcidump]

>>So, what to do next?
>
> looks like a kernel or scheduling bug. Run "hcidump -x -t" on both sides
> so we can compare the data flow and the timestamps.

Here's the output from the laptop (browsing the Cerfcube):

HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1090319067.842941 < HCI Command: Create Connection (0x01|0x0005) plen 13
2A 20 00 94 0A 00 18 CC 00 00 00 00 01
1090319067.846445 > HCI Event: Command Status (0x0f) plen 4
00 01 05 04
1090319068.636871 > HCI Event: Connect Complete (0x03) plen 11
00 29 00 2A 20 00 94 0A 00 01 00
1090319068.637297 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1090319068.637345 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
29 00 0F 00
1090319068.648902 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090319068.658112 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 29 00
1090319068.666028 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
2A 20 00 94 0A 00 01
1090319068.667769 > HCI Event: Max Slots Change (0x1b) plen 3
29 00 05
1090319068.715975 > ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1090319068.716411 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090319068.722627 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090319068.745926 > ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090319107.835421 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1090319107.849809 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090319107.866512 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1090319109.835420 < HCI Command: Disconnect (0x01|0x0006) plen 3
29 00 13
1090319109.837924 > HCI Event: Command Status (0x0f) plen 4
00 01 06 04
1090319109.875959 > HCI Event: Disconn Complete (0x05) plen 4
00 29 00 16

and here's the output from the Cerfcube:

HCIDump - HCI packet analyzer ver 1.9
device: hci0 snap_len: 1028 filter: 0xffffffff
1090319478.496750 > HCI Event: Connect Request (0x04) plen 10
74 05 B1 76 0C 00 00 01 00 01
1090319478.497886 < HCI Command: Accept Connection Request (0x01|0x0009)
plen 7
74 05 B1 76 0C 00 01
1090319478.512733 > HCI Event: Command Status (0x0f) plen 4
00 01 09 04
1090319478.546741 > HCI Event: Connect Complete (0x03) plen 11
00 29 00 74 05 B1 76 0C 00 01 00
1090319478.547821 < HCI Command: Write Link Policy Settings
(0x02|0x000d) plen 4
29 00 0F 00
1090319478.550769 > HCI Event: Page Scan Repetition Mode Change (0x20)
plen 7
74 05 B1 76 0C 00 01
1090319478.564746 > HCI Event: Command Complete (0x0e) plen 6
01 0D 08 00 29 00
1090319478.565797 < HCI Command: Change Connection Packet Type
(0x01|0x000f) plen 4
29 00 18 CC
1090319478.584718 > HCI Event: Max Slots Change (0x1b) plen 3
29 00 05
1090319478.588740 > HCI Event: Command Status (0x0f) plen 4
00 01 0F 04
1090319478.592739 > HCI Event: Connection Packet Type Changed (0x1d) plen 5
00 29 00 18 CC
1090319478.602746 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
1090319478.604041 < ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
1090319478.612733 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090319478.618741 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090319478.619937 < ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
1090319478.620053 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
1090319478.642724 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090319517.746003 > ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
1090319517.746236 < ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
1090319517.768987 > HCI Event: Number of Completed Packets (0x13) plen 5
01 29 00 01 00
1090319519.848575 > HCI Event: Disconn Complete (0x05) plen 4
00 29 00 13

Regards, Rolf


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-07-19 20:53:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] SDP problems on embedded device

Hi Rolf,

> I have some problems with sdp on a Intrinsyc Cerfcube 255
> (http://www.intrinsyc.com/products/cerfcube/) running a Linux 2.4.19
> kernel patched with the mh17-patch (and some platform specific patches).
>
> The problem is that I can't get to discover anything on the device. I
> have tried with two mobile phones, and a laptop running RH 9.0.
>
> From the laptop I either try 'spdtool browse bdaddr' or 'sdptool search
> SP' after adding SP service to the SDP record of the Cerfcube. I am able
> to browse the service record of the mobile phone, but not the Cerfcube.
> The output could be: 'Failed to connect to SDP server on
> 00:0A:94:00:20:2A: Resource temporarily unavailable'. Other reasons I
> have experienced are: 'Host is down', 'Connection timed out', and
> 'Connection refused'.
>
> My final goal is to make a connection (SP profile) between a Midlet
> running on a Nokia 6600 and the Cerfcube. I have tested this setup with
> the laptop and the phone and it works. But this will only work if
> service discovery works.
>
> At first I thought that maybe the problem was caused by using old
> versions of bluez on the Cerfcube, but I have just cross-compiled and
> installed bluez-2.8 (lib and utils) and the situation is the same.
>
> Here's the output from 'hcidump -x' from the Cerfcube when trying
> 'sdptool browse' from the laptop.
>
> HCIDump - HCI packet analyzer ver 1.9
> device: hci0 snap_len: 1028 filter: 0xffffffff
> > HCI Event: Connect Request (0x04) plen 10
> 74 05 B1 76 0C 00 00 01 00 01
> < HCI Command: Accept Connection Request (0x01|0x0009) plen 7
> 74 05 B1 76 0C 00 01
> > HCI Event: Command Status (0x0f) plen 4
> 00 01 09 04
> > HCI Event: Connect Complete (0x03) plen 11
> 00 29 00 74 05 B1 76 0C 00 01 00
> < HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> 29 00 0F 00
> > HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
> 74 05 B1 76 0C 00 01
> > HCI Event: Command Complete (0x0e) plen 6
> 01 0D 08 00 29 00
> < HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
> 29 00 18 CC
> > HCI Event: Max Slots Change (0x1b) plen 3
> 29 00 05
> > HCI Event: Command Status (0x0f) plen 4
> 00 01 0F 04
> > HCI Event: Connection Packet Type Changed (0x1d) plen 5
> 00 29 00 18 CC
> > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 1 scid 0x0040
> < ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
> > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> < ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> > HCI Event: Number of Completed Packets (0x13) plen 5
> 01 29 00 01 00
> > HCI Event: Disconn Complete (0x05) plen 4
> 00 29 00 13
>
> I'm using a USB bluetooth dongle for both the Cerfcube and the laptop.
>
> So, what to do next?

looks like a kernel or scheduling bug. Run "hcidump -x -t" on both sides
so we can compare the data flow and the timestamps.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users