Re: [Bluez-devel] modify RFCOMM_DISC_TIMEOUT

Marcel Holtmann
2004-07-28T12:22:40Z

Hi Carlos,

> I think that i've finally found the origin of the errors. The kernel
> log
> shows:
>
> (...)
> <4> Unknown HCI packet type 01
> (...)
>
>
> This message is dropped every five minutes (aproximately) and the
> packet
> type is not always 01. It seems that the serial communication (UART)
> with
> the bluetooth module (EYMF2CAMM from TAIYO YUDEN) isn't very
> confiable. Do
> you agree?

out of sync H4 streams are really a big problem. This can happen if you
can't enable automatic flow control. To avoid this you have to use BCSP
if it is a CSR based chip.

> Then I configured the kernel with BCSP support and tried to attach the
> device using:
> /bluez/bluezmain hciattach -n /dev/tts/2 bcsp 115200
> /bluez/bluezmain hciattach -n /dev/tts/2 swave 115200
>
> but none of them work at all. The error message is [hcid] Can't init
> device
> hci0. Connection timed out(110)

The swave will only work if your chip is Silicon Wave based and the BCSP
method only works if you switch from H4 to BCSP first with the correct
PS key settings. Contact your module manufacturer.