public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <44771.82692.qm@web57911.mail.re3.yahoo.com>]
[parent not found: <348167.64795.qm@web57908.mail.re3.yahoo.com>]
[parent not found: <564535.96437.qm@web57901.mail.re3.yahoo.com>]
* [Bluez-devel] How to run up CSR chip without eeprom with BLUEZ ?
@ 2008-06-12  5:54 skyflame
  2008-06-13  8:55 ` Sanja Kolundzija
  0 siblings, 1 reply; 11+ messages in thread
From: skyflame @ 2008-06-12  5:54 UTC (permalink / raw)
  To: BlueZ development, attaboyu, hong zhang


[-- 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-06-18  0:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <230309.30571.qm@web57914.mail.re3.yahoo.com>
2008-06-13  3:43 ` [Bluez-devel] How to run up CSR chip without eeprom with BLUEZ ? skyflame
     [not found] <44771.82692.qm@web57911.mail.re3.yahoo.com>
2008-06-18  0:45 ` skyflame
     [not found] <348167.64795.qm@web57908.mail.re3.yahoo.com>
2008-06-17  1:38 ` skyflame
     [not found] <564535.96437.qm@web57901.mail.re3.yahoo.com>
2008-06-13  1:01 ` skyflame
2008-06-12  5:54 skyflame
2008-06-13  8:55 ` 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:25         ` Sanja Kolundzija

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox