Skip to contentSkip to conversation

How to use Bluez with CSR chip ?

Bluez-users colorant 1 participant 1 message Jun 12, 2008 Bluetooth drivers

lore
Share & tools
lore

colorant

author
#0 lore raw

Hi attaboyu and henry

Thanks so much for your kindly help!

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

I try with the csr's demo before , if it set this two pskey , the chip can work well.

And then after hciconfig hci0 up I use

bccmd -t hci psload -r csr.psr

the two key is write successfully , but then the chip continue to receive messages , seems something wrong.

Can you send me your psr file to have a reference , or you can point out anything wrong in my process ?

By the way, if I want to read a pskey, how can I do ?

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

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
then how can the hci interface work anymore ? since it is set to 115200, and I can not use bccmd to set the pskey before hciattach is done.

I did need to change the baudrate, for this case , how can I achieve it ?

Raymond

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

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users