CSR bluecore initial problem
hi all
I got a problem while init the csr bluecore4 chip, my toolchain: bluez-3.12, dbus-1.0.2,kernel-2.6.10 #dbus-daemon --system
#hciattach ttyS0 bcsp
#hcid -f /opt/bluez/etc/bluetooth/hcid.conf
#hciconfig
hci0: Type: UART
BD Address: 00:02:5B:00:A5:A5 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1128 acl:0 sco:0 events:23 errors:0
TX bytes:706 acl:0 sco:0 commands:26 errors:0above is always ok.
but csr chip need to set pskeys and warmreset,so I run bccmd #bccmd warmreset
#hcitool scan
Scanning
Timeout...
This problem around me for a few days, I cant figure out why the csr chip doesnt work after warmreset.UART0 connect to csr chip, so I choose bcsp config in kernel and choose hci interface(here i am not sure about choosing hci or bcsp while run bccmd?), am i right?
--
Best Regards
------------
Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
and what's the difference between H4 and bcsp, while both of them use uart interface?
--
hi all
I got a problem while init the csr bluecore4 chip, my toolchain: bluez-3.12, dbus-1.0.2,kernel-2.6.10 #dbus-daemon --system
#hciattach ttyS0 bcsp
#hcid -f /opt/bluez/etc/bluetooth/hcidconf
#hciconfig
hci0: Type: UART
BD Address: 00:02:5B:00:A5:A5 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:1128 acl:0 sco:0 events:23 errors:0
TX bytes:706 acl:0 sco:0 commands:26 errors:0above is always ok.
but csr chip need to set pskeys and warmreset,so I run bccmd #bccmd warmreset
#hcitool scan
Scanning
Timeout...
This problem around me for a few days, I cant figure out why the csr chip doesnt work after warmreset.UART0 connect to csr chip, so I choose bcsp config in kernel and choose hci interface(here i am not sure about choosing hci or bcsp while run bccmd?), am i right?
--
Best Regards
------------
Tony
瑞雪春堂 即将开启
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hello,
a few months back I encountered a similar problem. hciattach did not (and still does not) always succeed, and bccmd seems to have a problem using the BlueCore serial protocol (bcsp), possibly a race condition. That's why I have to use:
/usr/sbin/hciattach /dev/ttymxc2 bcsp 57600 flow /usr/sbin/hciconfig hci0 up
/usr/sbin/bccmd -t hci psload -r /usr/etc/bluetooth/apm6628BT-UART.psr killall hciattach
/usr/sbin/hciattach /dev/ttymxc2 bcsp 115200 flow /usr/sbin/hciconfig hci0 up
Notice the bccmd -t hci, so you have to attach first using bcsp, then use bccmd with this hci in order to download the psr file (which will reset the BlueCore), then kill the hci and re-attach.
Hope this helps,
peter
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Thanks indeed, it works!
Quoted 26 lines · 在2008-05-24,"Peter Wurmsdobler" <[email protected]> 写道:
Hello,
a few months back I encountered a similar problem. hciattach did not (and still does not) always succeed, and bccmd seems to have a problem using the BlueCore serial protocol (bcsp), possibly a race condition. That's why I have to use:
/usr/sbin/hciattach/dev/ttymxc2bcsp 57600 flow/usr/sbin/hciconfighci0 up
/usr/sbin/bccmd-t hci psload -r/usr/etc/bluetooth/apm6628BT-UART.psrkillall hciattach
/usr/sbin/hciattach/dev/ttymxc2bcsp 115200 flow/usr/sbin/hciconfighci0 upNotice the bccmd -t hci, so you have to attach first using bcsp, then use bccmd with this hci in order to download the psr file (which will reset the BlueCore), then kill the hci and re-attach.
Hope this helps,
peter
Quoted 5 lines
'); }//-->
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users