Re: How to run up CSR chip without eeprom with BLUEZ ?

"Sanja Kolundzija" <[email protected]>
Newsgroups gmane.linux.bluez.devel
Message-ID <[email protected]>
> what is the right process ? Can any one help me out ?
> Thanks
 
> Raymond


Hi Raymond,

we are using BC6 ROM, and also had problems initializing it. This is the procedure that works for us:

1. We run bccmd before hciattach!

bccmd -t BCSP -d /dev/ttyS2 psload -r pskeys.psr

Obviously, BC6 is connected to ttyS2. 

pskeys.psr looks like this:
 
// PSKEY_BDADDR
&0001 = 0044 5566 0033 1122
// PSKEY_UART_BAUDRATE - 921600
&01be = 0ebf
// PSKEY_ANA_FREQ
&01fe = 6590

Before executing bccmd, chip has baudrate 38400. After executing bccmd, baudrate will be 921600, so hciattach has to use that speed. 

bccmd without -r didn't work for us.
 

2. Now we run hciattach:

hciattach -s 921600 /dev/ttyS2 bcsp 921600 noflow

After this we do hciconfig hci0 reset, and continue working with hci0 device normally from BlueZ.

Regards,
Sanja


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