public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] pairing problems
@ 2008-06-09 16:31 mulata
  2008-06-10  7:42 ` Martin Kupf
  0 siblings, 1 reply; 15+ messages in thread
From: mulata @ 2008-06-09 16:31 UTC (permalink / raw)
  To: bluez-users

Hi!
After an initial I always have to go through the complete pairing process, =
there is no reconnect.

I want to use a Bluetooth keyboard and it works fine so far, but there are =
some problems after the initial pairing.

To get the keyboard wokring I do the following steps:

hcid and passkey-agent are running.

hcitool scan
hcitool cc <bdaddr>
After this step hcitool con lists a established connection to the keyboard
auth <bdaddr>
Enter PIN on keyboard

Now the entry in hcitool con changes to AUTH
So the connection is authorized and established and the keyboard works (I u=
se bthid, anyway the process of authorization and pairing is done by hcid, =
and hcitools)

Usually from now this initial pairing process shouldnt be necessary for fur=
ther sessions, but unfortunately it is.
In oder to use the keyboard again (after disabling it) I have to go through=
 the whole process again, but befor I have to /var/lib/bluetooth/*

So how can I establish further connections without the whole pairing proces=
s?

thanks
-- =

Martin Kupf

Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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

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

* Re: [Bluez-users] pairing problems
  2008-06-09 16:31 [Bluez-users] pairing problems mulata
@ 2008-06-10  7:42 ` Martin Kupf
  2008-06-10  9:32   ` Martin Kupf
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Kupf @ 2008-06-10  7:42 UTC (permalink / raw)
  To: BlueZ users

I did some more research and I figured out that I will have to use the Inpu=
tService of bluez.
So with the dbus Interface of bluez I think have to do the following steps,=
 right?:
ActiveService (input)
CreateDevice (bdaddr of keyboard)
Connect()
CreateDevice looks for a link key and if it finds one, an authorized connec=
tion can be established with Connect() I guess.

>>From the point that an auhorized connection is established (this can be rec=
ognized if hcitool con returns a connection with AUTH at the end of the lin=
e) I can start bthid and use the keyboard.


Thanks for any hints
-mulata

PS: Sorry that I have published a similar thread (email) with my google acc=
ount, but I have at the moment huge roubel with my google mail account..




-------- Original-Nachricht --------
> Datum: Mon, 09 Jun 2008 18:31:10 +0200
> Von: mulata@gmx.de
> An: bluez-users@lists.sourceforge.net
> Betreff: [Bluez-users] pairing problems

> Hi!
> After an initial I always have to go through the complete pairing process,
> there is no reconnect.
> =

> I want to use a Bluetooth keyboard and it works fine so far, but there are
> some problems after the initial pairing.
> =

> To get the keyboard wokring I do the following steps:
> =

> hcid and passkey-agent are running.
> =

> hcitool scan
> hcitool cc <bdaddr>
> After this step hcitool con lists a established connection to the keyboard
> auth <bdaddr>
> Enter PIN on keyboard
> =

> Now the entry in hcitool con changes to AUTH
> So the connection is authorized and established and the keyboard works (I
> use bthid, anyway the process of authorization and pairing is done by hci=
d,
> and hcitools)
> =

> Usually from now this initial pairing process shouldnt be necessary for
> further sessions, but unfortunately it is.
> In oder to use the keyboard again (after disabling it) I have to go
> through the whole process again, but befor I have to /var/lib/bluetooth/*
> =

> So how can I establish further connections without the whole pairing
> process?
> =

> thanks
> -- =

> Martin Kupf
> =

> Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> =

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

-- =

Martin Kupf

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! =

Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

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

* Re: [Bluez-users] pairing problems
  2008-06-10  7:42 ` Martin Kupf
@ 2008-06-10  9:32   ` Martin Kupf
  2008-06-10 17:21     ` hong zhang
  0 siblings, 1 reply; 15+ messages in thread
From: Martin Kupf @ 2008-06-10  9:32 UTC (permalink / raw)
  To: BlueZ users

Well I try to start the Input Service but the binary bluetoothd-input-servi=
ce is missing.
If I compile (with --enable-input-service) the binary doesn't get created e=
ither.
But anyway what exaclty is the task of the Input Service?
I might not have to need it since I have to use bthid.
Anyway I did some further tests in order to be able to use the keyboard aft=
er an initial pairing without the need of entering a pin again.


A link key is present in /var/lib/bluettoth/my_host_device/xx.xx.xx.xx.xx/
created by the initial pairing.

If I press a key the keyboard tries to reconnect, at the same time bthid is=
 running with -a, -e option (enables encryption and auth. support). =


hcid outputs:  : link_key_request (sba=3D00:04:0E:8B:AE:92, dba=3D00:18:00:=
00:61:45)

Hcidump says the following:

 HCI Event: Connect Request (0x04) plen 10
  45 61 00 00 18 00 40 25 00 01
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
  45 61 00 00 18 00 01
> HCI Event: Command Status (0x0f) plen 4
  00 01 09 04
> HCI Event: Connect Complete (0x03) plen 11
  00 05 00 45 61 00 00 18 00 01 00
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
  05 00 0F 00
> HCI Event: Max Slots Change (0x1b) plen 3
  05 00 05
> HCI Event: Command Complete (0x0e) plen 6
  01 0D 08 00 05 00
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
  05 00 18 CC
> HCI Event: Command Status (0x0f) plen 4
  00 01 0F 04
> HCI Event: Connection Packet Type Changed (0x1d) plen 5
  00 05 00 18 CC
> ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 17 scid 0x0040
< ACL data: handle 5 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 1
      Connection pending - Authentication pending
< HCI Command: Authentication Requested (0x01|0x0011) plen 2
  05 00
> HCI Event: Command Status (0x0f) plen 4
  00 01 11 04
> HCI Event: Link Key Request (0x17) plen 6
  45 61 00 00 18 00
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
  45 61 00 00 18 00 02 00 00 00
> HCI Event: Command Status (0x0f) plen 4
  00 01 19 04
< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22
  45 61 00 00 18 00 64 0B D8 84 94 21 CB AD 4E 68 2C C8 8B C3
  C7 88
> HCI Event: Command Complete (0x0e) plen 10
  01 0B 04 00 45 61 00 00 18 00
> HCI Event: Remote Name Req Complete (0x07) plen 255
  00 45 61 00 00 18 00 42 54 4B 42 2D 36 31 34 35 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> HCI Event: Auth Complete (0x06) plen 3
  00 05 00
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
  05 00 01
> HCI Event: Command Status (0x0f) plen 4
  00 01 13 04
> HCI Event: Encrypt Change (0x08) plen 4
  00 05 00 01
< ACL data: handle 5 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
      Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 5 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
      Success
< ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> ACL data: handle 5 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
      Success
> HCI Event: Encrypt Change (0x08) plen 4
  00 05 00 00
> HCI Event: Role Change (0x12) plen 8
  00 45 61 00 00 18 00 00
> HCI Event: Max Slots Change (0x1b) plen 3
  05 00 05
> HCI Event: Encrypt Change (0x08) plen 4
  00 05 00 01
> ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 19 scid 0x0041
< ACL data: handle 5 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 0 status 0
      Connection successful
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0
< ACL data: handle 5 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
      Success
< ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> ACL data: handle 5 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
      Success
< ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x0042
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> ACL data: handle 5 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0042 result 1 status 2
      Connection pending - Authorization pending
> ACL data: handle 5 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0042 result 0 status 0
      Connection successful
< ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0042 flags 0x00 clen 0
> ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0042 flags 0x00 clen 0
< ACL data: handle 5 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0042 flags 0x00 result 0 clen 0
      Success
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> ACL data: handle 5 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0042 flags 0x00 result 0 clen 0
      Success
< ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0042 scid 0x0042
< ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
< ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0041 scid 0x0041
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> HCI Event: Number of Completed Packets (0x13) plen 5
  01 05 00 01 00
> ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0042 scid 0x0042
> ACL data: handle 5 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040

What do you think about the outputs?
The problem is, bthid crashes with segment fault...

bye
mulata



-------- Original-Nachricht --------
> Datum: Tue, 10 Jun 2008 09:42:31 +0200
> Von: "Martin Kupf" <mulata@gmx.de>
> An: BlueZ users <bluez-users@lists.sourceforge.net>
> Betreff: Re: [Bluez-users] pairing problems

> I did some more research and I figured out that I will have to use the
> InputService of bluez.
> So with the dbus Interface of bluez I think have to do the following
> steps, right?:
> ActiveService (input)
> CreateDevice (bdaddr of keyboard)
> Connect()
> CreateDevice looks for a link key and if it finds one, an authorized
> connection can be established with Connect() I guess.
> =

> >>From the point that an auhorized connection is established (this can be
> recognized if hcitool con returns a connection with AUTH at the end of the
> line) I can start bthid and use the keyboard.
> =

> =

> Thanks for any hints
> -mulata
> =

> PS: Sorry that I have published a similar thread (email) with my google
> account, but I have at the moment huge roubel with my google mail account=
..
> =

> =

> =

> =

> -------- Original-Nachricht --------
> > Datum: Mon, 09 Jun 2008 18:31:10 +0200
> > Von: mulata@gmx.de
> > An: bluez-users@lists.sourceforge.net
> > Betreff: [Bluez-users] pairing problems
> =

> > Hi!
> > After an initial I always have to go through the complete pairing
> process,
> > there is no reconnect.
> > =

> > I want to use a Bluetooth keyboard and it works fine so far, but there
> are
> > some problems after the initial pairing.
> > =

> > To get the keyboard wokring I do the following steps:
> > =

> > hcid and passkey-agent are running.
> > =

> > hcitool scan
> > hcitool cc <bdaddr>
> > After this step hcitool con lists a established connection to the
> keyboard
> > auth <bdaddr>
> > Enter PIN on keyboard
> > =

> > Now the entry in hcitool con changes to AUTH
> > So the connection is authorized and established and the keyboard works
> (I
> > use bthid, anyway the process of authorization and pairing is done by
> hcid,
> > and hcitools)
> > =

> > Usually from now this initial pairing process shouldnt be necessary for
> > further sessions, but unfortunately it is.
> > In oder to use the keyboard again (after disabling it) I have to go
> > through the whole process again, but befor I have to
> /var/lib/bluetooth/*
> > =

> > So how can I establish further connections without the whole pairing
> > process?
> > =

> > thanks
> > -- =

> > Martin Kupf
> > =

> > Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt?
> > Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> > =

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

> -- =

> Martin Kupf
> =

> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! =

> Ideal f=FCr Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> =

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

-- =

Martin Kupf

Psssst! Schon vom neuen GMX MultiMessenger geh=F6rt?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

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

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

* Re: [Bluez-users] pairing problems
  2008-06-10  9:32   ` Martin Kupf
@ 2008-06-10 17:21     ` hong zhang
  2008-06-10 22:27       ` Mumia W..
  0 siblings, 1 reply; 15+ messages in thread
From: hong zhang @ 2008-06-10 17:21 UTC (permalink / raw)
  To: BlueZ users

Martin,

What do you do to turn on these messages?

---henry

--- Martin Kupf <mulata@gmx.de> wrote:

> Well I try to start the Input Service but the binary
> bluetoothd-input-service is missing.
> If I compile (with --enable-input-service) the
> binary doesn't get created either.
> But anyway what exaclty is the task of the Input
> Service?
> I might not have to need it since I have to use
> bthid.
> Anyway I did some further tests in order to be able
> to use the keyboard after an initial pairing without
> the need of entering a pin again.
> 
> 
> A link key is present in
> /var/lib/bluettoth/my_host_device/xx.xx.xx.xx.xx/
> created by the initial pairing.
> 
> If I press a key the keyboard tries to reconnect, at
> the same time bthid is running with -a, -e option
> (enables encryption and auth. support). 
> 
> hcid outputs:  : link_key_request
> (sba=00:04:0E:8B:AE:92, dba=00:18:00:00:61:45)
> 
> Hcidump says the following:
> 
>  HCI Event: Connect Request (0x04) plen 10
>   45 61 00 00 18 00 40 25 00 01
> < HCI Command: Accept Connection Request
> (0x01|0x0009) plen 7
>   45 61 00 00 18 00 01
> > HCI Event: Command Status (0x0f) plen 4
>   00 01 09 04
> > HCI Event: Connect Complete (0x03) plen 11
>   00 05 00 45 61 00 00 18 00 01 00
> < HCI Command: Write Link Policy Settings
> (0x02|0x000d) plen 4
>   05 00 0F 00
> > HCI Event: Max Slots Change (0x1b) plen 3
>   05 00 05
> > HCI Event: Command Complete (0x0e) plen 6
>   01 0D 08 00 05 00
> < HCI Command: Change Connection Packet Type
> (0x01|0x000f) plen 4
>   05 00 18 CC
> > HCI Event: Command Status (0x0f) plen 4
>   00 01 0F 04
> > HCI Event: Connection Packet Type Changed (0x1d)
> plen 5
>   00 05 00 18 CC
> > ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Connect req: psm 17 scid 0x0040
> < ACL data: handle 5 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040
> result 1 status 1
>       Connection pending - Authentication pending
> < HCI Command: Authentication Requested
> (0x01|0x0011) plen 2
>   05 00
> > HCI Event: Command Status (0x0f) plen 4
>   00 01 11 04
> > HCI Event: Link Key Request (0x17) plen 6
>   45 61 00 00 18 00
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> < HCI Command: Remote Name Request (0x01|0x0019)
> plen 10
>   45 61 00 00 18 00 02 00 00 00
> > HCI Event: Command Status (0x0f) plen 4
>   00 01 19 04
> < HCI Command: Link Key Request Reply (0x01|0x000b)
> plen 22
>   45 61 00 00 18 00 64 0B D8 84 94 21 CB AD 4E 68 2C
> C8 8B C3
>   C7 88
> > HCI Event: Command Complete (0x0e) plen 10
>   01 0B 04 00 45 61 00 00 18 00
> > HCI Event: Remote Name Req Complete (0x07) plen
> 255
>   00 45 61 00 00 18 00 42 54 4B 42 2D 36 31 34 35 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00
>   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > HCI Event: Auth Complete (0x06) plen 3
>   00 05 00
> < HCI Command: Set Connection Encryption
> (0x01|0x0013) plen 3
>   05 00 01
> > HCI Event: Command Status (0x0f) plen 4
>   00 01 13 04
> > HCI Event: Encrypt Change (0x08) plen 4
>   00 05 00 01
> < ACL data: handle 5 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040
> result 0 status 0
>       Connection successful
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> > ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Config req: dcid 0x0040 flags 0x00
> clen 0
> < ACL data: handle 5 flags 0x02 dlen 14
>     L2CAP(s): Config rsp: scid 0x0040 flags 0x00
> result 0 clen 0
>       Success
> < ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Config req: dcid 0x0040 flags 0x00
> clen 0
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> > ACL data: handle 5 flags 0x02 dlen 14
>     L2CAP(s): Config rsp: scid 0x0040 flags 0x00
> result 0 clen 0
>       Success
> > HCI Event: Encrypt Change (0x08) plen 4
>   00 05 00 00
> > HCI Event: Role Change (0x12) plen 8
>   00 45 61 00 00 18 00 00
> > HCI Event: Max Slots Change (0x1b) plen 3
>   05 00 05
> > HCI Event: Encrypt Change (0x08) plen 4
>   00 05 00 01
> > ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Connect req: psm 19 scid 0x0041
> < ACL data: handle 5 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041
> result 0 status 0
>       Connection successful
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> > ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Config req: dcid 0x0041 flags 0x00
> clen 0
> < ACL data: handle 5 flags 0x02 dlen 14
>     L2CAP(s): Config rsp: scid 0x0041 flags 0x00
> result 0 clen 0
>       Success
> < ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Config req: dcid 0x0041 flags 0x00
> clen 0
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> > ACL data: handle 5 flags 0x02 dlen 14
>     L2CAP(s): Config rsp: scid 0x0041 flags 0x00
> result 0 clen 0
>       Success
> < ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Connect req: psm 1 scid 0x0042
> > HCI Event: Number of Completed Packets (0x13) plen
> 5
>   01 05 00 01 00
> > ACL data: handle 5 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0042
> result 1 status 2
>       Connection pending - Authorization pending
> > ACL data: handle 5 flags 0x02 dlen 16
>     L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0042
> result 0 status 0
>       Connection successful
> < ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Config req: dcid 0x0042 flags 0x00
> clen 0
> > ACL data: handle 5 flags 0x02 dlen 12
>     L2CAP(s): Config req: dcid 0x0042 flags 0x00
> clen 0
> < ACL data: handle 5 flags 0x02 dlen 14
>     L2CAP(s): Config rsp: scid 0x0042 flags 0x00
> result 0 clen 0
>       Success
> 
=== message truncated ===



      

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

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

* Re: [Bluez-users] pairing problems
  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
  0 siblings, 1 reply; 15+ messages in thread
From: Fritz Code @ 2008-06-10 22:27 UTC (permalink / raw)
  To: BlueZ users


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

Right Im using hcidump. This tool prints all hci packets.
However, unfortunately no new for my problem....

On Wed, Jun 11, 2008 at 12:27 AM, Mumia W.. <
paduille.4061.mumia.w+nospam@earthlink.net<paduille.4061.mumia.w%2Bnospam@earthlink.net>>
wrote:

> On 06/10/2008 12:21 PM, hong zhang wrote:
> > --- Martin Kupf <mulata@gmx.de> wrote:
> >> [...]
> >> Hcidump says the following:
> >>
> >>  HCI Event: Connect Request (0x04) plen 10
> >>   45 61 00 00 18 00 40 25 00 01
> >> < HCI Command: Accept Connection Request
> >> (0x01|0x0009) plen 7
> >>   45 61 00 00 18 00 01
> >>> HCI Event: Command Status (0x0f) plen 4
> >>   00 01 09 04
>
> > Martin,
> >
> > What do you do to turn on these messages?
> >
> > ---henry
> >
>
> Although I'm not too familiar with the command, Martin mentioned
> "hcidump." Read "man hcidump"
>
>
>
> -------------------------------------------------------------------------
> 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
>



-- 
Regards,
--Codefritz

[-- Attachment #1.2: Type: text/html, Size: 2134 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

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

* Re: [Bluez-users] pairing problems
  2008-06-10 17:21     ` hong zhang
@ 2008-06-10 22:27       ` Mumia W..
  2008-06-10 22:27         ` Fritz Code
  0 siblings, 1 reply; 15+ messages in thread
From: Mumia W.. @ 2008-06-10 22:27 UTC (permalink / raw)
  To: BlueZ users

On 06/10/2008 12:21 PM, hong zhang wrote:
> --- Martin Kupf <mulata@gmx.de> wrote:
>> [...]
>> Hcidump says the following:
>>
>>  HCI Event: Connect Request (0x04) plen 10
>>   45 61 00 00 18 00 40 25 00 01
>> < HCI Command: Accept Connection Request
>> (0x01|0x0009) plen 7
>>   45 61 00 00 18 00 01
>>> HCI Event: Command Status (0x0f) plen 4
>>   00 01 09 04

> Martin,
> 
> What do you do to turn on these messages?
> 
> ---henry
> 

Although I'm not too familiar with the command, Martin mentioned
"hcidump." Read "man hcidump"



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

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

* [Bluez-users] How to use Bluez with CSR chip ?
  2008-06-10 22:27         ` Fritz Code
@ 2008-06-11  0:48           ` colorant
  2008-06-11  0:57             ` hong zhang
  0 siblings, 1 reply; 15+ messages in thread
From: colorant @ 2008-06-11  0:48 UTC (permalink / raw)
  To: BlueZ users

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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
  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
  0 siblings, 1 reply; 15+ messages in thread
From: hong zhang @ 2008-06-11  0:57 UTC (permalink / raw)
  To: BlueZ users

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 <colorant@163.com> 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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
  2008-06-11  0:57             ` hong zhang
@ 2008-06-11  2:00               ` colorant
  2008-06-11 18:04                 ` hong zhang
  2008-06-12  2:49                 ` attaboyu
  0 siblings, 2 replies; 15+ messages in thread
From: colorant @ 2008-06-11  2:00 UTC (permalink / raw)
  To: BlueZ users, henryzhang62

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 
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 
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 to 
modify the hciattach , or ?

Raymond

----- Original Message ----- 
From: "hong zhang" <henryzhang62@yahoo.com>
To: "BlueZ users" <bluez-users@lists.sourceforge.net>
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 <colorant@163.com> 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
> 




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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
  2008-06-11  2:00               ` colorant
@ 2008-06-11 18:04                 ` hong zhang
  2008-06-12  0:11                   ` colorant
  2008-06-12  2:49                 ` attaboyu
  1 sibling, 1 reply; 15+ messages in thread
From: hong zhang @ 2008-06-11 18:04 UTC (permalink / raw)
  To: colorant, BlueZ users

Raymond,

I have a few questions.

1. Do you use CSR bleutooth stack from CSR?
2. If you use Bluez, you must use bluetooth stack 
   comes with kernel.
3. How is CSR chip initialized? by eeprom?


I believe you use CSR stack then you cannot use Bluez
utilities.

--henry

--- colorant <colorant@163.com> wrote:

> 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 
> 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 
> 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 to 
> modify the hciattach , or ?
> 
> Raymond
> 
> ----- Original Message ----- 
> From: "hong zhang" <henryzhang62@yahoo.com>
> To: "BlueZ users"
> <bluez-users@lists.sourceforge.net>
> 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 <colorant@163.com> 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
> > 
> 
> 
> 
> 



      

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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
  2008-06-11 18:04                 ` hong zhang
@ 2008-06-12  0:11                   ` colorant
  2008-06-12  3:15                     ` hong zhang
  0 siblings, 1 reply; 15+ messages in thread
From: colorant @ 2008-06-12  0:11 UTC (permalink / raw)
  To: hong zhang, BlueZ users

Hi Henry

    1,2: nop, I use standard stack come with kernel, I use csr's demo just 
to test the hardware is ok.
    3: the csr chip I use is initialized by sending cmd after power up .

Raymond


----- Original Message ----- 
From: "hong zhang" <henryzhang62@yahoo.com>
To: "colorant" <colorant@163.com>; "BlueZ users" 
<bluez-users@lists.sourceforge.net>
Sent: Thursday, June 12, 2008 2:04 AM
Subject: Re: [Bluez-users] How to use Bluez with CSR chip ?


> Raymond,
>
> I have a few questions.
>
> 1. Do you use CSR bleutooth stack from CSR?
> 2. If you use Bluez, you must use bluetooth stack
>   comes with kernel.
> 3. How is CSR chip initialized? by eeprom?
>
>
> I believe you use CSR stack then you cannot use Bluez
> utilities.
>
> --henry
>
> --- colorant <colorant@163.com> wrote:
>
>> 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
>> 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
>> 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 to
>> modify the hciattach , or ?
>>
>> Raymond
>>
>> ----- Original Message ----- 
>> From: "hong zhang" <henryzhang62@yahoo.com>
>> To: "BlueZ users"
>> <bluez-users@lists.sourceforge.net>
>> 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 <colorant@163.com> 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
>> >
>>
>>
>>
>>
>
>
>
>
> 




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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
  2008-06-11  2:00               ` colorant
  2008-06-11 18:04                 ` hong zhang
@ 2008-06-12  2:49                 ` attaboyu
  2008-06-12  3:14                   ` hong zhang
  1 sibling, 1 reply; 15+ messages in thread
From: attaboyu @ 2008-06-12  2:49 UTC (permalink / raw)
  To: BlueZ users


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

   hi raymond
the csr bc4 need to be configured before real running, some pskey should be set and warmreset should be issued. 
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

 在2008-06-11,colorant <colorant@163.com> 写道:
>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 
>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 
>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 to 
>modify the hciattach , or ?
>
>Raymond
>
>----- Original Message ----- 
>From: "hong zhang" 
>To: "BlueZ users" 
>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
>> 
>
>
>
>
>-------------------------------------------------------------------------
>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

[-- Attachment #1.2: Type: text/html, Size: 5895 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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
  2008-06-12  2:49                 ` attaboyu
@ 2008-06-12  3:14                   ` hong zhang
  0 siblings, 0 replies; 15+ messages in thread
From: hong zhang @ 2008-06-12  3:14 UTC (permalink / raw)
  To: BlueZ users

If csr bc4 is initialized by eeprom (csr.psr is burned
into eeprom already) when power on. At this case, no
bccmd is needed. =



--- attaboyu@163.com wrote:

>    hi raymond
> the csr bc4 need to be configured before real
> running, some pskey should be set and warmreset
> should be issued. =

> 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 <colorant@163.com> =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 =

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

> >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 to =

> >modify the hciattach , or ?
> >
> >Raymond
> >
> >----- Original Message ----- =

> >From: "hong zhang" =

> >To: "BlueZ users" =

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

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




      =


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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
  2008-06-12  0:11                   ` colorant
@ 2008-06-12  3:15                     ` hong zhang
  0 siblings, 0 replies; 15+ messages in thread
From: hong zhang @ 2008-06-12  3:15 UTC (permalink / raw)
  To: colorant, BlueZ users

That means you need bccmd to initialize your csr chip.

--- colorant <colorant@163.com> wrote:

> Hi Henry
> 
>     1,2: nop, I use standard stack come with kernel,
> I use csr's demo just 
> to test the hardware is ok.
>     3: the csr chip I use is initialized by sending
> cmd after power up .
> 
> Raymond
> 
> 
> ----- Original Message ----- 
> From: "hong zhang" <henryzhang62@yahoo.com>
> To: "colorant" <colorant@163.com>; "BlueZ users" 
> <bluez-users@lists.sourceforge.net>
> Sent: Thursday, June 12, 2008 2:04 AM
> Subject: Re: [Bluez-users] How to use Bluez with CSR
> chip ?
> 
> 
> > Raymond,
> >
> > I have a few questions.
> >
> > 1. Do you use CSR bleutooth stack from CSR?
> > 2. If you use Bluez, you must use bluetooth stack
> >   comes with kernel.
> > 3. How is CSR chip initialized? by eeprom?
> >
> >
> > I believe you use CSR stack then you cannot use
> Bluez
> > utilities.
> >
> > --henry
> >
> > --- colorant <colorant@163.com> wrote:
> >
> >> 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
> >> 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
> >> 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 to
> >> modify the hciattach , or ?
> >>
> >> Raymond
> >>
> >> ----- Original Message ----- 
> >> From: "hong zhang" <henryzhang62@yahoo.com>
> >> To: "BlueZ users"
> >> <bluez-users@lists.sourceforge.net>
> >> 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 <colorant@163.com> 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
> 
=== message truncated ===



      

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

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

* Re: [Bluez-users] How to use Bluez with CSR chip ?
@ 2008-06-12  4:37 colorant
  0 siblings, 0 replies; 15+ messages in thread
From: colorant @ 2008-06-12  4:37 UTC (permalink / raw)
  To: BlueZ users, attaboyu, hong zhang


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

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

end of thread, other threads:[~2008-06-12  4:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 16:31 [Bluez-users] pairing problems mulata
2008-06-10  7:42 ` Martin Kupf
2008-06-10  9:32   ` Martin Kupf
2008-06-10 17:21     ` 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
  -- strict thread matches above, loose matches on Subject: below --
2008-06-12  4:37 colorant

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