Re: mx27, csr and bluez: initialisation timed out

Tim Chick <[email protected]>
Newsgroups gmane.linux.bluez.user
Message-ID <[email protected]>
>  [Bluez-users] mx27, csr and bluez: initialisation timed out
> From: Peter Wurmsdobler <peter@wu...> - 2008-01-22 13:46
>
> The kernel boots, and the bluetooth related facilities printk some
> messages such as HCI UART driver ver 2.2, H4 and BCSP protocol
> initialised. Since the BlueTooth module does not know the clock
> frequency it is using, or the baud rate of the host, I need to
> "configure" the BlueCore and warm-reset it:
>
> mx27# bccmd -t BCSP -d /dev/ttymxc1 psload config.psr warmreset
>

What you actually want is:

bccmd -t BCSP -d /dev/ttymxc1 psload -r config.psr

as bccmd can only perform one command at a time.

> However, the only message I get is: "Initialization timed out",
> which, looking through the code, is generated in
> bluez/tools/csr_bcsp.c in the open function. But why?
>

There appear to be some races in the BCSP, which may not cause a problem 
on a PC. I have some changes and will publish to the devel list.

As a work around, the following works reliably for me:

hciattach /dev/ttyS0 bcsp
bccmd -t HCI psload -r my.psr
killall hciattach
hciattach /dev/ttyS0 bcsp

Cheers,
Tim


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.