2008-05-23 08:07:14

by attaboyu

[permalink] [raw]
Subject: [Bluez-users] 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:0
above 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


Attachments:
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments

2008-05-26 07:34:18

by attaboyu

[permalink] [raw]
Subject: Re: [Bluez-users] CSR bluecore initial problem

Thanks indeed, it works!

在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/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
>
>
>
>
>');
> }
>//-->
>
>


Attachments:
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments

2008-05-23 08:24:05

by attaboyu

[permalink] [raw]
Subject: Re: [Bluez-users] CSR bluecore initial problem


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:0
above 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




??ѩ???? ????????


Attachments:
(No filename) (228.00 B)
(No filename) (164.00 B)
Download all attachments