From: "colorant" <colorant@163.com>
To: "BlueZ users" <bluez-users@lists.sourceforge.net>,
<attaboyu@163.com>, "hong zhang" <henryzhang62@yahoo.com>
Subject: Re: [Bluez-users] How to use Bluez with CSR chip ?
Date: Thu, 12 Jun 2008 12:37:16 +0800 [thread overview]
Message-ID: <039501c8cc45$fe46ed50$0132a8c0@Raymondpc> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1745 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 4171 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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next reply other threads:[~2008-06-12 4:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-12 4:37 colorant [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-06-10 17:21 [Bluez-users] pairing problems hong zhang
2008-06-10 22:27 ` Mumia W..
2008-06-10 22:27 ` Fritz Code
2008-06-11 0:48 ` [Bluez-users] How to use Bluez with CSR chip ? colorant
2008-06-11 0:57 ` hong zhang
2008-06-11 2:00 ` colorant
2008-06-11 18:04 ` hong zhang
2008-06-12 0:11 ` colorant
2008-06-12 3:15 ` hong zhang
2008-06-12 2:49 ` attaboyu
2008-06-12 3:14 ` hong zhang
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='039501c8cc45$fe46ed50$0132a8c0@Raymondpc' \
--to=colorant@163.com \
--cc=attaboyu@163.com \
--cc=bluez-users@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