Return-Path: Date: Thu, 12 Jun 2008 10:49:59 +0800 (CST) From: attaboyu@163.com To: "BlueZ users" Message-ID: <20419813.1056881213238999944.JavaMail.coremail@bj163app77.163.com> In-Reply-To: <01a301c8cb66$dea24ba0$0132a8c0@Raymondpc> References: <01a301c8cb66$dea24ba0$0132a8c0@Raymondpc> <118473.25603.qm@web57908.mail.re3.yahoo.com> MIME-Version: 1.0 Subject: Re: [Bluez-users] How to use Bluez with CSR chip ? Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1104607381==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============1104607381== Content-Type: multipart/alternative; boundary="----=_Part_279934_31628759.1213238999942" ------=_Part_279934_31628759.1213238999942 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: quoted-printable hi raymond the csr bc4 need to be configured before real running, some pskey should be= set and warmreset should be issued.=20 1. add --enable-bccmd feature while configure the bluez-utils 2. use bccmd after hci0 is up: $bccmd -t hci psload -r /csr.psr here csr.psr is the pskey config file, -r means warmreset after pskey = configured,there is a example psr file in bluez-utils/tools/example after that, u can see the other device through hcitool scan attaboyu =D4=DA2008-06-11=A3=ACcolorant =D0=B4=B5=C0=A3=BA >Hi henry > > Thanks for you reply. > > Yes , I am using BC4 A06 Rom version on an arm based embedded board. > > So this one must set pskey before running right ? > > I try to run the CSR's demo first to set the right pskey and run the= =20 >chip up. > After I exit the demo, I can use pc to detect the chip. > > While , then I use : > > hciattach /dev/ttyS1 bcsp 921600 > > to attach ttyS1 to hci0 > > after that , The PC can not detect the chip anymore. > > and then I try > hciconfig hci0 up > it can bring up the hci0 interface , but the pc still don't detect the= =20 >chip. > > for kernel , I only insert bluetooth.ko and hci_uart.ko > > So , can you kindly figure out what might be wrong in my operation ? > > Seems to me the hciattach operation reset the chip. And I might need t= o=20 >modify the hciattach , or ? > >Raymond > >----- Original Message -----=20 >From: "hong zhang"=20 >To: "BlueZ users"=20 >Sent: Wednesday, June 11, 2008 8:57 AM >Subject: Re: [Bluez-users] How to use Bluez with CSR chip ? > > >> Raymond, >> >> CSR bc4 is initialized in two ways based on your >> design. I assum your board is embedded. One is by >> eeprom and one is using command after build. You need >> to provide more information. >> >> You have to make sure your CSR bc4 chip on your board >> is up first before using bluez. >> >> Regular talking here is based on x86. >> >> ---henry >> >> --- colorant wrote: >> >>> Hi >>> >>> I am not sure is this the proper place to put up >>> this question, if not , >>> please correct me. >>> >>> I was trying to run bluez on our board with bc4 >>> chip. This chip need to >>> set pskey before it can run >>> >>> I use hciattach and hciconfig to bring up the >>> hci0 interface. >>> >>> Then I try hcitool hci0 scan with my earphone >>> open. >>> >>> Nothing happend. >>> >>> while, if I using CSR's bchs a2dp demo , it's >>> ok, I can play music. say >>> hardware is ok. >>> >>> My question is : >>> >>> 1. To enable bluez with csr chip, is there >>> anything need to do vs the >>> standard kernel and bluez package ? Some config >>> need? >>> >>> 2. Did I need to place the bootrap init sequence >>> for the bc4 chip in >>> some place if I using bluez ? say in kernel or in >>> the bluez user space >>> scripts? Or , the standard kernel and bluez utility >>> already hand it, But I >>> just do the wrong way ? >>> >>> >>> Many thanks. >>> 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 >>> Bluez-users@lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/bluez-users >>> >> >> >> >> >> >> ------------------------------------------------------------------------= - >> 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 >> Bluez-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bluez-users >>=20 > > > > >------------------------------------------------------------------------- >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 >Bluez-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/bluez-users ------=_Part_279934_31628759.1213238999942 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: quoted-printable hi raymond
the csr bc4 need to be configured before real running, som= e pskey should be set and warmreset should be issued.
1. add --enable-b= ccmd feature while configure the bluez-utils
2. use bccmd after hci0 is = up:
$bccmd -t hci psload -r /csr.psr
here csr.psr is the psk= ey config file, -r means warmreset after pskey configured,there is a exampl= e psr file in bluez-utils/tools/example

after that, u can see the ot= her device through hcitool scan

attaboyu

=D4=DA2008-06-11=A3= =ACcolorant <colorant@163.com> =D0=B4=B5=C0=A3=BA
>Hi henry
= >
> Thanks for you reply.
>
> Yes , I am using B= C4 A06 Rom version on an arm based embedded board.
>
> So th= is one must set pskey before running right ?
>
> I try to ru= n the CSR's demo first to set the right pskey and run the
>chip up.<= br>> After I exit the demo, I can use pc to detect the chip.
><= br>> While , then I use :
>
> hciattach /dev/ttyS1 bcs= p 921600
>
> to attach ttyS1 to hci0
>
> afte= r that , The PC can not detect the chip anymore.
>
> and the= n I try
> hciconfig hci0 up
> it can bring up the hci0 in= terface , but the pc still don't detect the
>chip.
>
> = for kernel , I only insert bluetooth.ko and hci_uart.ko
>
> = So , can you kindly figure out what might be wrong in my operation ?
&= gt;
> Seems to me the hciattach operation reset the chip. And I mi= ght need to
>modify the hciattach , or ?
>
>Raymond
&= gt;
>----- Original Message -----
>From: "hong zhang"
>= To: "BlueZ users"
>Sent: Wednesday, June 11, 2008 8:57 AM
>Sub= ject: Re: [Bluez-users] How to use Bluez with CSR chip ?
>
>>> Raymond,
>>
>> CSR bc4 is initialized in two wa= ys based on your
>> design. I assum your board is embedded. One is= by
>> eeprom and one is using command after build. You need
&g= t;> to provide more information.
>>
>> You have to mak= e sure your CSR bc4 chip on your board
>> is up first before using= bluez.
>>
>> Regular talking here is based on x86.
&g= t;>
>> ---henry
>>
>> --- colorant wrote:>>
>>> Hi
>>>
>>> I am not s= ure is this the proper place to put up
>>> this question, if no= t ,
>>> please correct me.
>>>
>>> = I was trying to run bluez on our board with bc4
>>> chip. This = chip need to
>>> set pskey before it can run
>>>>>> I use hciattach and hciconfig to bring up the
>>= > hci0 interface.
>>>
>>> Then I try hcitool= hci0 scan with my earphone
>>> open.
>>>
>&g= t;> Nothing happend.
>>>
>>> while, if I= using CSR's bchs a2dp demo , it's
>>> ok, I can play music. sa= y
>>> hardware is ok.
>>>
>>> My qu= estion is :
>>>
>>> 1. To enable bluez with csr= chip, is there
>>> anything need to do vs the
>>> = standard kernel and bluez package ? Some config
>>> need?
&g= t;>>
>>> 2. Did I need to place the bootrap init sequ= ence
>>> for the bc4 chip in
>>> some place if I us= ing bluez ? say in kernel or in
>>> the bluez user space
>= ;>> scripts? Or , the standard kernel and bluez utility
>>&g= t; already hand it, But I
>>> just do the wrong way ?
>&g= t;>
>>>
>>> Many thanks.
>>> Raymond=
>>>
>>>
>>>
>>>
>>= ;>
>> ---------------------------------------------------------= ----------------
>>> Check out the new SourceForge.net Marketpl= ace.
>>> It's the best place to buy or sell services for
>= ;>> just about anything Open Source.
>>> http://sourcefor= ge.net/services/buy/index.php
>>> _____________________________= __________________
>>> Bluez-users mailing list
>>>= Bluez-users@lists.sourceforge.net
>>>
>> https://list= s.sourceforge.net/lists/listinfo/bluez-users
>>>
>>>>
>>
>>
>>
>> -----------------= --------------------------------------------------------
>> Check = out the new SourceForge.net Marketplace.
>> It's the best place to= buy or sell services for
>> just about anything Open Source.
&= gt;> http://sourceforge.net/services/buy/index.php
>> _________= ______________________________________
>> Bluez-users mailing list=
>> Bluez-users@lists.sourceforge.net
>> https://lists.so= urceforge.net/lists/listinfo/bluez-users
>>
>
>
&g= t;
>
>---------------------------------------------------------= ----------------
>Check out the new SourceForge.net Marketplace.
&= gt;It's the best place to buy or sell services for
>just about anythi= ng Open Source.
>http://sourceforge.net/services/buy/index.php
>= ;_______________________________________________
>Bluez-users mailing= list
>Bluez-users@lists.sourceforge.net
>https://lists.sourcef= orge.net/lists/listinfo/bluez-users


=20
=B0=C2=B1=B1=BA=CB=D0=C4 <= /font>=CB= =AB=B5=D8=CC=FA=BE=AB=D7=B0=D0=A1=BB=A7=D0=CD ------=_Part_279934_31628759.1213238999942-- --===============1104607381== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1104607381== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============1104607381==--