From: "skyflame" <skyflame@21cn.com>
To: "BlueZ development" <bluez-devel@lists.sourceforge.net>,
<attaboyu@163.com>, "hong zhang" <henryzhang62@yahoo.com>
Subject: [Bluez-devel] How to run up CSR chip without eeprom with BLUEZ ?
Date: Thu, 12 Jun 2008 13:54:47 +0800 [thread overview]
Message-ID: <03d101c8cc50$d2aa8660$0132a8c0@Raymondpc> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2541 bytes --]
Hi
I post this question on bluez-user before , But I think here might be the right place , so I put it here again.
My chip is CSR's bc4 A06 Rom which do not have eeprom and need to send pskey to init after power up.
Thanks to attaboyu and henry , They told me a way to do it with following process :
1. add --enable-bccmd feature while configure the bluez-utils
2. use bccmd after hci0 is up:
3. $bccmd -t hci psload -r /csr.psr
But I try it , and meet some problem:
the bluez-utils/tools/example.psr seems not comply with my chip, so I write another one as:
// PSKEY_ANA_FREQ
&01fe = 0FA0
// PSKEY_UART_BAUD_RATE
&01be = 0EBF
And then after hciconfig hci0 up I use
bccmd -t hci psload -r csr.psr
the two key is write successfully , but if I enable the debug I can see the chip continue to receive messages , seems something wrong with the head.
I remove the debug message so that you can see the log more clear:
~ #
~ # bccmd -t hci psload csr.psr
Loading PSKEY_ANA_FREQ ... done
Loading PSKEY_UART_BAUDRATE ... done
if I using -r in psload the result is :
~ # bccmd -t hci psload -r csr.psr
Loading PSKEY_ANA_FREQ ... done
Loading PSKEY_UART_BAUDRATE ... done
~ #
~ # bcsp_recv: Error in BCSP hdr checksum
both one could not work for hcitool scan:
~ # hcitool -i hci0 scan
Scanning ...
Inquiry failed: Connection timed out
and as long as this bcsp_recv: Error in BCSP hdr checksum happen
the bcsp interface seems dead , type bccmd again will show :
~ # bccmd -t hci psload -r csr.psr
Can't read version info for hci0: Connection timed out (110)
seems after warm reset the connection is bad.
So , I wonder, when using hciattach the baudrate is set to 115200
but after the uart_baudrate is set, the baudrate is set to 921600 it might cause the problem
Then I set &01be = 01d8 to keep the baudrate as 115200
But still the same.
Then if I remove the uart_baud_rate setting from the psr file
the warm reboot is ok:
~ # bccmd -t hci psload -r csr.psr
Loading PSKEY_ANA_FREQ ... done
but the chip seems to lost the sync and go back to the tshy state !
~ # hcitool -i hci0 scan
Scanning ...
bcsp_pkt_cull: Peer acked invalid packet
bcsp_handle_le_pkt: Found a LE sync pkt, card has reset
bcsp_pkt_cull: Peer acked invalid packet
bcsp_handle_le_pkt: Found a LE sync pkt, card has reset
bcsp_pkt_cull: Peer acked invalid packet
.
.
.
.
what is the right process ? Can any one help me out ?
Thanks
Raymond
[-- Attachment #1.2: Type: text/html, Size: 5046 bytes --]
[-- Attachment #2: Type: text/plain, Size: 247 bytes --]
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next reply other threads:[~2008-06-12 5:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-12 5:54 skyflame [this message]
2008-06-13 8:55 ` [Bluez-devel] How to run up CSR chip without eeprom with BLUEZ ? Sanja Kolundzija
2008-06-16 1:40 ` skyflame
2008-06-16 19:52 ` Sanja Kolundzija
2008-06-17 1:34 ` skyflame
2008-06-17 4:05 ` skyflame
2008-06-17 8:18 ` [Bluez-devel] What't the difference between HIDD / HID2HCI / Bluetoothd-service-input ? skyflame
2008-06-17 8:25 ` [Bluez-devel] How to run up CSR chip without eeprom with BLUEZ ? Sanja Kolundzija
[not found] <564535.96437.qm@web57901.mail.re3.yahoo.com>
2008-06-13 1:01 ` skyflame
[not found] <230309.30571.qm@web57914.mail.re3.yahoo.com>
2008-06-13 3:43 ` skyflame
[not found] <348167.64795.qm@web57908.mail.re3.yahoo.com>
2008-06-17 1:38 ` skyflame
[not found] <44771.82692.qm@web57911.mail.re3.yahoo.com>
2008-06-18 0:45 ` skyflame
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='03d101c8cc50$d2aa8660$0132a8c0@Raymondpc' \
--to=skyflame@21cn.com \
--cc=attaboyu@163.com \
--cc=bluez-devel@lists.sourceforge.net \
--cc=henryzhang62@yahoo.com \
/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