2005-08-23 05:00:57

by Swathi Mathur80

[permalink] [raw]
Subject: [Bluez-users] newbie: Is Bluez only for PC's or does it work on any linux kernel version 2.4.x .?

Hello,
This is my first question on the bluez forum. I have the embedded linux board sitsang-400 from Intel (processor PXA255). Linux 2.4.19 B-1-2-1 Kernel runs on this. This version of Linux doesn't support Bluez. Through the bluez.org website i was able to find out that by installing the Linux Kernel Patch 2.4.19, i would be able to support and communicate between bluetooth devices. My question is
Does this Bluez work only on the PC's which has linux O.S 2.4.x versions or will i be able to install on any of the embedded linux boards which has the linux kernel version 2.4.x
I would glad if any of you could be able to answer my question.
Thanks in Advance,
Swathi


---------------------------------
Start your day with Yahoo! - make it your home page


2005-08-23 08:37:24

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] O2 XDA mini and DUND

Hi Sascha,

> I have some problems to configure DUN access for the XDA mini. I use
> the description for the XDA II:
>
> http://wiki.xda-developers.com/wiki/bluetoothnetworking
>
> but it does not work at all. If I understand it right the DUND should
> start the PPPD to enable the PPP handshake, but DUND reports only a
> timeout error (110) and a protocol error (71). I could not find any
> DUND option to enable any debuging output.
>
> The basic communication works. I can search on each side each other
> and I can l2ping from my Debian system the XDA mini.
>
> After this I tried HCIDUMP, but I dont understand the output. How can
> I analyse this problem further? Is anybody here able to read the
> HCIDUMP output?

looks like there is no service running on RFCOMM channel 1. Don't use
the sdptool call in the example, because dund can register the service
record by itself and then the channel number will match.

Regards

Marcel




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-08-23 08:29:20

by Sascha Ziemann

[permalink] [raw]
Subject: [Bluez-users] O2 XDA mini and DUND

Hi,

I have some problems to configure DUN access for the XDA mini. I use
the description for the XDA II:

http://wiki.xda-developers.com/wiki/bluetoothnetworking

but it does not work at all. If I understand it right the DUND should
start the PPPD to enable the PPP handshake, but DUND reports only a
timeout error (110) and a protocol error (71). I could not find any
DUND option to enable any debuging output.

The basic communication works. I can search on each side each other
and I can l2ping from my Debian system the XDA mini.

After this I tried HCIDUMP, but I dont understand the output. How can
I analyse this problem further? Is anybody here able to read the
HCIDUMP output?

----------------------------------------------------------------------
> HCI Event: Connect Request (0x04) plen 10
bdaddr 00:09:2D:1C:A3:72 class 0x100114 type ACL
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
> 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 41 bdaddr 00:09:2D:1C:A3:72 type ACL encrypt 0x00
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
> HCI Event: Max Slots Change (0x1b) plen 3
> 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
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0067
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0067 result 0 status 0
Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 4096
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0067 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0067 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 41 flags 0x02 dlen 17
> ACL data: handle 41 flags 0x01 dlen 19
L2CAP(d): cid 0x0040 len 32 [psm 1]
SDP SSA Req: tid 0x0 len 0x1b
pat uuid-128 00001103-0000-1000-8000-00805f9b34fb
max 4088
aid(s) 0x0004 (ProtocolDescList)
cont 00
< ACL data: handle 41 flags 0x02 dlen 33
L2CAP(d): cid 0x0067 len 29 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x18
count 21
record #0
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) > <
uuid-16 0x0003 (RFCOMM) uint 0x1 > >
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0068
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0068 result 0 status 0
Connection successful
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0067
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0067
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0068 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0068 flags 0x00 clen 4
MTU 1024
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
Success
> ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0041 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
< ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0068 len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 18
L2CAP(d): cid 0x0041 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 2 frame_type 0 credit_flow 15 pri 32 ack_timer 0
frame_size 1024 max_retrans 0 credits 7
< ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0068 len 4 [psm 3]
RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x0068
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0068
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0069
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0069 result 0 status 0
Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 4096
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0069 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0069 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 41 flags 0x02 dlen 36
L2CAP(d): cid 0x0040 len 32 [psm 1]
SDP SSA Req: tid 0x0 len 0x1b
pat uuid-128 00001103-0000-1000-8000-00805f9b34fb
max 4088
aid(s) 0x0004 (ProtocolDescList)
cont 00
< ACL data: handle 41 flags 0x02 dlen 33
L2CAP(d): cid 0x0069 len 29 [psm 1]
SDP SSA Rsp: tid 0x0 len 0x18
count 21
record #0
aid 0x0004 (ProtocolDescList)
< < uuid-16 0x0100 (L2CAP) > <
uuid-16 0x0003 (RFCOMM) uint 0x1 > >
cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x006a
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x006a result 0 status 0
Connection successful
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0069
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0069
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x006a flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x006a flags 0x00 clen 4
MTU 1024
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
Success
> ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0041 len 4 [psm 3]
RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
< ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x006a len 4 [psm 3]
RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 18
L2CAP(d): cid 0x0041 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
dlci 2 frame_type 0 credit_flow 15 pri 32 ack_timer 0
frame_size 1024 max_retrans 0 credits 7
< ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x006a len 4 [psm 3]
RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x006a
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x006a
> HCI Event: Number of Completed Packets (0x13) plen 5
< HCI Command: Disconnect (0x01|0x0006) plen 3
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 41 reason 0x16
Reason: Connection Terminated by Local Host
----------------------------------------------------------------------

Regards
Ziemann




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-08-23 07:06:23

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] newbie: Is Bluez only for PC's or does it work on any linux kernel version 2.4.x .?

Hi Swathi,

> This is my first question on the bluez forum. I have the embedded
> linux board sitsang-400 from Intel (processor PXA255). Linux 2.4.19
> B-1-2-1 Kernel runs on this. This version of Linux doesn't support
> Bluez. Through the bluez.org website i was able to find out that by
> installing the Linux Kernel Patch 2.4.19, i would be able to support
> and communicate between bluetooth devices. My question is
> Does this Bluez work only on the PC's which has linux O.S 2.4.x
> versions or will i be able to install on any of the embedded linux
> boards which has the linux kernel version 2.4.x

in general BlueZ should work with any embedded board and any 2.4 Linux
kernel. However the support for the 2.4 kernel series is deprecated and
you should really move to a 2.6 kernel for any further development.

Regards

Marcel




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users