2004-02-12 17:53:11

by Daryl Van Vorst

[permalink] [raw]
Subject: [Bluez-devel] Missing data in ACL packets from CSR chip

I posted the following message in a CSR forum yesterday and haven't =
received
a response yet. So I thought I'd try this list because there seems to be
some CSR experience here.

I'm 99% certain it's a bug in CSR firmware or hardware... So that's why =
I
didn't post it here in the first place.

Has anyone seen this kind of behaviour with CSR chips?

-Daryl.

----------Original message below----------

Hi,

Not sure if this is the right list, but I'll try anyway. :)

I'm testing a Taiyo Yuden bluetooth module (EYSF2CAXX) running HCI =
firmware
16.4 in our application. I opened up a damaged one, and the CSR chip is
labeled:
CSR
BC212
015BE
306AG

It appears that some ACL packets sent from the module to the host are
missing data. I've checked that it is not a UART overrun problem in the =
host
by sniffing the HCI link with another PC and decoding the packets by =
hand.
Both the host and the sniffing PC show the same corruption.

The module is connected to a UART with hardware flow control (automated =
in
the UART's hardware) at 921600bps. The sniffer doesn't have any flow
control. I see the problem when the there are multiple RFCOMM =
connections
with large amounts of data being sent to the remote devices. I haven't =
seen
the problem if the data rate is lowered to 460800bps.

The result of the lost data is that the host looses sync with the HCI =
data,
and then bad things happen...

Below is a data dump from the sniffing PC (this is just data from the =
module
to the host):

0536640 01 2d 00 01 00 04 13 05 01 2d 00 03 00 02 2d 20
0536660 09 00 05 00 40 00 21 ff 01 03 9c 04 13 05 01 2d
0536700 00 02 00 04 13 05 01 2d 00 01 00 04 13 05 01 2d
0536720 00 03 00 04 13 05 01 2d 00 01 00 04 13 05 01 2d
0536740 00 01 00 04 13 05 01 2d 00 01 00 04 13 05 01 2d
0536760 00 01 00 04 13 05 01 2d 00 02 00 04 13 05 01 2d
0537000 00 01 00 04 13 05 01 2d 00 01 00 02 2d 20 09 00
0537020 05 00 40 00 21 ff 01 01 9c 02 2d 20 09 00 05 00
0537040 40 00 21 ff 01 9c 02 2d 20 09 00 05 00 40 00 21
0537060 ff 01 03 9c 04 13 05 01 2d 00 01 00 04 13 05 01
0537100 2d 00 01 00 04 13 05 01 2d 00 01 00 04 13 05 01
0537120 2d 00 01 00 02 2d 20 08 00 04 00 40 00 21 53 01
0537140 49 04 13 05 01 2d 00 01 00 04 13 05 01 2d 00 01
0537160 00 02 2d 20 08 00 04 00 40 00 03 73 01 d7 04 13
0537200 05 01 2d 00 01 00 02 2d 20 0c 00 08 00 01 00 07
0537220 03 04 00 56 00 40 00

I just noticed that the index is octal... sorry about that.

Here's my decode:

Starting at index 536645:

0536645: 04 13 05 01 2d 00 03 00
HCI event: Number of completed packets

0536655: 02 2d 20 09 00 05 00 40 00 21 ff 01 03 9c
Valid ACL data packet.

0536673 - 0537012
More Number of completed packets events

0537013: 02 2d 20 09 00 05 00 40 00 21 ff 01 01 9c
Valid ACL data packet

0537031: 02 2d 20 09 00 05 00 40 00 21 ff 01 9c 02
Corrupt packet.

The 02 at the end of the packet above is really the start of another ACL
data packet. It is at this point that the stack on the host complains =
about
unkonwn HCI packet types: 2d, 20, 09, 00, 05, etc.

Just to be clear, the above data was captured on a separate PC from the =
one
running the stack. The stack's HCI sniff log and it's HCI error messages
match exactly with the above data. It is extremely unlikely that both
machines would overrun at exactly the same place. The UART on the host
doesn't show any overrun errors.

Is this a known problem? And is there any workaround?

Thanks,

-Daryl.



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2004-02-13 20:04:24

by Marcel Holtmann

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Hi Daryl,

> I was just trying to determine if that was the device you were referring to.
> I wasn't looking for a quote from you. :)

as I know the additional endpoint is only for people who already bought
the Casira development kit or the BlueLab. But to be sure ask their
sales team.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-02-13 19:40:24

by Marcel Holtmann

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Hi Daryl,

> Is there a BlueZ utility to reprogram a CSR chip via UART?

I have written code that is able to change the PS settings over UART and
USB using BlueZ, but I never published any of them. However using the
wrong settings can broke your Bluetooth module forever.

The pskey tool will work for you if you detach the UART. Look at this
page for detailed information

http://www.grinta.net/howto/pskey.html

But some of these information are outdated and maybe won't work with
newer firmware versions. You should ask your module manufacturer.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-02-13 19:42:35

by Daryl Van Vorst

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Marcel,

> > Unfortunately I don't have one to test with. Is the Casira=20
> the $3000=20
> > development system? I also saw just an endpoint for $700.
>=20
> I am not an employee of CSR. Ask their sales team.

I was just trying to determine if that was the device you were referring =
to.
I wasn't looking for a quote from you. :)

-Daryl.

2004-02-13 19:22:08

by Marcel Holtmann

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Hi Daryl,

> > > It looks like a UART problem to me too, but it's probably not on my
> > > side because both the sniffer and the host saw the same error.
> >
> > is it reproduceable when you use a Casira?
>
> Unfortunately I don't have one to test with. Is the Casira the $3000
> development system? I also saw just an endpoint for $700.

I am not an employee of CSR. Ask their sales team.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-02-13 19:11:36

by Daryl Van Vorst

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Marcel,

> Is it possible for you to use BCSP? Do you have a firmware
> update to the latest HCI 16.x or HCI 17.x?

Forgot to ask:

Is there a BlueZ utility to reprogram a CSR chip via UART?

-Daryl.

2004-02-13 18:53:48

by Daryl Van Vorst

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Marcel,

> > It looks like a UART problem to me too, but it's probably not on my
> > side because both the sniffer and the host saw the same error.
>
> is it reproduceable when you use a Casira?

Unfortunately I don't have one to test with. Is the Casira the $3000
development system? I also saw just an endpoint for $700.

> > I would like to try BCSP. Are there tools available to put
> the module
> > in BCSP mode?
>
> The pskey tool can do this, but at your own risc. Otherwise
> you must write it by yourself, because I don't provide any
> source code that is able to modify the PS.

Something I'll have to look into.

-Daryl.

2004-02-13 17:44:37

by Marcel Holtmann

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Hi Daryl,

> It looks like a UART problem to me too, but it's probably not on my side
> because both the sniffer and the host saw the same error.

is it reproduceable when you use a Casira?

> I would like to try BCSP. Are there tools available to put the module in
> BCSP mode?

The pskey tool can do this, but at your own risc. Otherwise you must
write it by yourself, because I don't provide any source code that is
able to modify the PS.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2004-02-13 17:35:25

by Daryl Van Vorst

[permalink] [raw]
Subject: RE: [Bluez-devel] Missing data in ACL packets from CSR chip

Marcel,

It looks like a UART problem to me too, but it's probably not on my side
because both the sniffer and the host saw the same error.

I would like to try BCSP. Are there tools available to put the module in
BCSP mode?

I'm trying to get a firmware upgrade... But no luck yet.

-Daryl.

> -----Original Message-----
> From: Marcel Holtmann [mailto:[email protected]]
> Sent: February 13, 2004 8:01 AM
> To: Daryl Van Vorst
> Cc: BlueZ Mailing List
> Subject: Re: [Bluez-devel] Missing data in ACL packets from CSR chip
>
>
> Hi Daryl,
>
> > Here's my decode:
> >
> > Starting at index 536645:
> >
> > 0536645: 04 13 05 01 2d 00 03 00
> > HCI event: Number of completed packets
> >
> > 0536655: 02 2d 20 09 00 05 00 40 00 21 ff 01 03 9c
> > Valid ACL data packet.
> >
> > 0536673 - 0537012
> > More Number of completed packets events
> >
> > 0537013: 02 2d 20 09 00 05 00 40 00 21 ff 01 01 9c
> > Valid ACL data packet
> >
> > 0537031: 02 2d 20 09 00 05 00 40 00 21 ff 01 9c 02
> > Corrupt packet.
>
> this looks like an UART problem to me, but I don't know if it
> is on the chip, on the module or one your side.
>
> Is it possible for you to use BCSP? Do you have a firmware
> update to the latest HCI 16.x or HCI 17.x?
>
> Regards
>
> Marcel
>
>
>

2004-02-13 16:00:33

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] Missing data in ACL packets from CSR chip

Hi Daryl,

> Here's my decode:
>
> Starting at index 536645:
>
> 0536645: 04 13 05 01 2d 00 03 00
> HCI event: Number of completed packets
>
> 0536655: 02 2d 20 09 00 05 00 40 00 21 ff 01 03 9c
> Valid ACL data packet.
>
> 0536673 - 0537012
> More Number of completed packets events
>
> 0537013: 02 2d 20 09 00 05 00 40 00 21 ff 01 01 9c
> Valid ACL data packet
>
> 0537031: 02 2d 20 09 00 05 00 40 00 21 ff 01 9c 02
> Corrupt packet.

this looks like an UART problem to me, but I don't know if it is on the
chip, on the module or one your side.

Is it possible for you to use BCSP? Do you have a firmware update to the
latest HCI 16.x or HCI 17.x?

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel