From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] bccmd set PS Key issue
Date: Wed, 21 May 2008 16:36:19 +0200 [thread overview]
Message-ID: <1211380579.13248.70.camel@californication> (raw)
In-Reply-To: <4831F991.2080801@deltamobile.com>
Hi Ellen,
> I'm using a CSR casira kit with BC04 ROM to connect to a Linux PC
> through UART.
>
> By "hciattach", the casira board is attached to Bluez stack and the
> "hciconfig hci0 up" could initiate the device.
>
> The issue is with "bccmd psset" command. I used "bccmd pslist" and
> "bccmd psread" to check the PS Keys that are configured in persistent
> stores and found that PSKEY_ANA_FREQ was not in the list. To get the
> casira board running, I tried to set the Bluetooth address and crystal
> frequency of the BC04 ROM by "bccmd psset". Writing a new bdaddr to
> PSKEY_BDADDR is OK while writing to PSKEY_ANA_FREQ fails. From hcidump,
> I found that to write data to a PS Key, it first reads the PS Key from
> RAM and check the length of the variable. For PS Keys that are not
> configured yet, like the anafreq in my case, the length of the variable
> would be 0 and the cmd_psset function in bccmd.c exits with error, not
> trying to write. So the "psset anafreq" always fails with "Can't
> execute command: No such device or address (6)". Since PSKEY_BDADDR
> already has a default value, it's ok to use psset to change the value.
the bccmd has the capability to load (psload) a PSR file. These kind of
files are a collection of PS keys. The bluez-utils contains an
example.psr and you will find the whole documentation on the CSR support
website.
Regards
Marcel
-------------------------------------------------------------------------
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
prev parent reply other threads:[~2008-05-21 14:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.269331.1211068363.29930.bluez-users@lists.sourceforge.net>
2008-05-19 22:05 ` [Bluez-users] bccmd set PS Key issue Ellen (Yi) Zhang
2008-05-21 14:36 ` Marcel Holtmann [this message]
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=1211380579.13248.70.camel@californication \
--to=marcel@holtmann.org \
--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;
as well as URLs for NNTP newsgroup(s).