From: Tim Chick <chick@computergeek.freeserve.co.uk>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] mx27, csr and bluez: initialisation timed out
Date: Tue, 29 Jan 2008 12:35:36 +0000 [thread overview]
Message-ID: <200801291235.37973.chick@computergeek.freeserve.co.uk> (raw)
In-Reply-To: <OF57915B80.8FBC7A49-ON802573DF.003F8EDF-802573DF.003FEE1C@camcon.co.uk>
> [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/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next parent reply other threads:[~2008-01-29 12:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF57915B80.8FBC7A49-ON802573DF.003F8EDF-802573DF.003FEE1C@camcon.co.uk>
2008-01-29 12:35 ` Tim Chick [this message]
2008-01-29 16:42 ` [Bluez-users] mx27, csr and bluez: initialisation timed out Peter Wurmsdobler
2008-01-29 18:29 ` Peter Wurmsdobler
2008-01-22 13:46 Peter Wurmsdobler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200801291235.37973.chick@computergeek.freeserve.co.uk \
--to=chick@computergeek.freeserve.co.uk \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox