public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] CSR bluecore initial problem
@ 2008-05-23  8:07 attaboyu
  2008-05-23  8:24 ` attaboyu
  2008-05-24 11:04 ` Peter Wurmsdobler
  0 siblings, 2 replies; 4+ messages in thread
From: attaboyu @ 2008-05-23  8:07 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 879 bytes --]

 
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

[-- Attachment #1.2: Type: text/html, Size: 1443 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] CSR bluecore initial problem
  2008-05-23  8:07 [Bluez-users] CSR bluecore initial problem attaboyu
@ 2008-05-23  8:24 ` attaboyu
  2008-05-24 11:04 ` Peter Wurmsdobler
  1 sibling, 0 replies; 4+ messages in thread
From: attaboyu @ 2008-05-23  8:24 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 1041 bytes --]

 
 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




瑞雪春堂 即将开启

[-- Attachment #1.2: Type: text/html, Size: 2023 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] CSR bluecore initial problem
  2008-05-23  8:07 [Bluez-users] CSR bluecore initial problem attaboyu
  2008-05-23  8:24 ` attaboyu
@ 2008-05-24 11:04 ` Peter Wurmsdobler
  2008-05-26  7:34   ` attaboyu
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Wurmsdobler @ 2008-05-24 11:04 UTC (permalink / raw)
  To: BlueZ users

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

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



[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-users] CSR bluecore initial problem
  2008-05-24 11:04 ` Peter Wurmsdobler
@ 2008-05-26  7:34   ` attaboyu
  0 siblings, 0 replies; 4+ messages in thread
From: attaboyu @ 2008-05-26  7:34 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 930 bytes --]

Thanks indeed, it works!

在2008-05-24,"Peter Wurmsdobler" <peter@wurmsdobler.org> 写道:
>
>
>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
>
>
> 
>
>');
>	}
>//-->
>
>

[-- Attachment #1.2: Type: text/html, Size: 1408 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-26  7:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23  8:07 [Bluez-users] CSR bluecore initial problem attaboyu
2008-05-23  8:24 ` attaboyu
2008-05-24 11:04 ` Peter Wurmsdobler
2008-05-26  7:34   ` attaboyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox