Skip to contentSkip to conversation

pairing problems

Bluez-users [email protected] 6 participants 14 messages Jun 9, 2008 – Jun 12, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

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.

Quoted 1 line
Quoted 1 line

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

Quoted 27 lines

Datum: Mon, 09 Jun 2008 18:31:10 +0200
Von: [email protected]
An: [email protected]
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
=

Quoted 3 lines

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,

Quoted 23 lines

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
=

Quoted 9 lines

-------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

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

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

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

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

05 00 05

Quoted 1 line

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

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 0F 04

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d) plen 5

00 05 00 18 CC

Quoted 1 line

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

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 11 04

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

45 61 00 00 18 00

Quoted 1 line

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

Quoted 1 line

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

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 00 45 61 00 00 18 00

Quoted 1 line

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

Quoted 1 line

HCI Event: Auth Complete (0x06) plen 3

00 05 00
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
05 00 01

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 13 04

Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

ACL data: handle 5 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
      Success
Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

00 05 00 00

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

00 45 61 00 00 18 00 00

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

05 00 05

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

00 05 00 01

Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

ACL data: handle 5 flags 0x02 dlen 16

L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0042 result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

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
Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen 5

01 05 00 01 00

Quoted 1 line

ACL data: handle 5 flags 0x02 dlen 12

    L2CAP(s): Disconn rsp: dcid 0x0042 scid 0x0042
Quoted 1 line

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

Quoted 29 lines

Datum: Tue, 10 Jun 2008 09:42:31 +0200
Von: "Martin Kupf" <[email protected]>
An: BlueZ users <[email protected]>
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.
=

Quoted 1 line
Quoted 1 line

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=

..

Quoted 91 lines

=

=

=

=

-------- Original-Nachricht --------

Quoted 4 lines

Datum: Mon, 09 Jun 2008 18:31:10 +0200
Von: [email protected]
An: [email protected]
Betreff: [Bluez-users] pairing problems

=

Quoted 2 lines

Hi!
After an initial I always have to go through the complete pairing

process,

Quoted 4 lines

there is no reconnect.
=

I want to use a Bluetooth keyboard and it works fine so far, but there

are

Quoted 6 lines

some problems after the initial pairing.
=

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

Quoted 6 lines

hcid and passkey-agent are running.
=

hcitool scan
hcitool cc <bdaddr>
After this step hcitool con lists a established connection to the

keyboard

Quoted 6 lines

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

Quoted 1 line

use bthid, anyway the process of authorization and pairing is done by

hcid,

Quoted 7 lines

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

Quoted 9 lines

=

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

thanks
-- =

Quoted 8 lines

Martin Kupf
=

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

-------------------------------------------------------------------------

Quoted 8 lines

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
[email protected]
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
=

Quoted 9 lines

-------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#3 lore raw

Martin,

What do you do to turn on these messages?

---henry

Quoted 193 lines · --- Martin Kupf

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

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 09 04

Quoted 1 line

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

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

05 00 05

Quoted 1 line

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

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 0F 04

Quoted 1 line

HCI Event: Connection Packet Type Changed (0x1d)

plen 5
00 05 00 18 CC

Quoted 1 line

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

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 11 04

Quoted 1 line

HCI Event: Link Key Request (0x17) plen 6

45 61 00 00 18 00

Quoted 1 line

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

Quoted 1 line

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

Quoted 1 line

HCI Event: Command Complete (0x0e) plen 10

01 0B 04 00 45 61 00 00 18 00

Quoted 1 line

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

Quoted 1 line

HCI Event: Auth Complete (0x06) plen 3

00 05 00
< HCI Command: Set Connection Encryption (0x01|0x0013) plen 3
05 00 01

Quoted 1 line

HCI Event: Command Status (0x0f) plen 4

00 01 13 04

Quoted 1 line

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

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen

5
01 05 00 01 00

Quoted 1 line

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

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen

5
01 05 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen

5
01 05 00 01 00

Quoted 1 line

ACL data: handle 5 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x00

result 0 clen 0
Success

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

00 05 00 00

Quoted 1 line

HCI Event: Role Change (0x12) plen 8

00 45 61 00 00 18 00 00

Quoted 1 line

HCI Event: Max Slots Change (0x1b) plen 3

05 00 05

Quoted 1 line

HCI Event: Encrypt Change (0x08) plen 4

00 05 00 01

Quoted 1 line

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

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen

5
01 05 00 01 00

Quoted 1 line

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

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen

5
01 05 00 01 00

Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen

5
01 05 00 01 00

Quoted 1 line

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
Quoted 1 line

HCI Event: Number of Completed Packets (0x13) plen

5
01 05 00 01 00

Quoted 1 line

ACL data: handle 5 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0042 scid 0x0042

result 1 status 2
Connection pending - Authorization pending

Quoted 1 line

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
Quoted 9 lines

clen 0

Quoted 1 line

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw
Quoted 9 lines · hong zhang
Quoted 8 lines · --- Martin Kupf

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

Quoted 9 lines
Quoted 2 lines
Quoted 1 line

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#5 lore raw

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

Quoted 35 lines · On Wed, Jun 11, 2008 at 12:27 AM, Mumia W.. <…
Quoted 9 lines · hong zhang
Quoted 8 lines · --- Martin Kupf

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

Quoted 9 lines
Quoted 2 lines
Quoted 1 line

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Signature · 2 lines
Regards,
--Codefritz

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw

[Bluez-users] How to use Bluez with CSR chip ?

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#7 lore raw

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

Quoted 38 lines · --- colorant

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 ?

Quoted 7 lines

Many thanks.
Raymond

-------------------------------------------------------------------------

Quoted 8 lines

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
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#8 lore raw

Re: [Bluez-users] How to use Bluez with CSR chip ?

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" <[email protected]>
To: "BlueZ users" <[email protected]>
Sent: Wednesday, June 11, 2008 8:57 AM
Subject: Re: [Bluez-users] How to use Bluez with CSR chip ?

Quoted 77 lines

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

Quoted 38 lines · --- colorant

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 ?

Quoted 7 lines

Many thanks.
Raymond

-------------------------------------------------------------------------

Quoted 8 lines

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
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line
Quoted 10 lines

-------------------------------------------------------------------------
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 [email protected]
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#9 lore raw

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

Quoted 101 lines · --- colorant

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" <[email protected]>
To: "BlueZ users" <[email protected]>
Sent: Wednesday, June 11, 2008 8:57 AM
Subject: Re: [Bluez-users] How to use Bluez with CSR chip ?

Quoted 5 lines

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

Quoted 3 lines

to provide more information.

You have to make sure your CSR bc4 chip on your

board

Quoted 11 lines

is up first before using bluez.

Regular talking here is based on x86.

---henry

Quoted 3 lines · --- colorant

Hi

I am not sure is this the proper place to put

up

Quoted 4 lines
Quoted 4 lines

this question, if not ,
please correct me.

I was trying to run bluez on our board with

bc4

Quoted 22 lines
Quoted 22 lines

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?

Quoted 20 lines
Quoted 1 line
Quoted 1 line

2. Did I need to place the bootrap init

sequence

Quoted 4 lines
Quoted 4 lines

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

Quoted 12 lines
Quoted 11 lines

already hand it, But I
just do the wrong way ?

Many thanks.
Raymond

-------------------------------------------------------------------------

Quoted 10 lines
Quoted 9 lines
Quoted 8 lines

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
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

-------------------------------------------------------------------------

Quoted 9 lines
Quoted 8 lines

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 [email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 5 lines
Quoted 1 line

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#10 lore raw

Re: [Bluez-users] How to use Bluez with CSR chip ?

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" <[email protected]>
To: "colorant" <[email protected]>; "BlueZ users" <[email protected]>
Sent: Thursday, June 12, 2008 2:04 AM
Subject: Re: [Bluez-users] How to use Bluez with CSR chip ?

Quoted 168 lines

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

Quoted 101 lines · --- colorant

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" <[email protected]>
To: "BlueZ users" <[email protected]>
Sent: Wednesday, June 11, 2008 8:57 AM
Subject: Re: [Bluez-users] How to use Bluez with CSR chip ?

Quoted 5 lines

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

Quoted 3 lines

to provide more information.

You have to make sure your CSR bc4 chip on your

board

Quoted 11 lines

is up first before using bluez.

Regular talking here is based on x86.

---henry

Quoted 3 lines · --- colorant

Hi

I am not sure is this the proper place to put

up

Quoted 4 lines
Quoted 4 lines

this question, if not ,
please correct me.

I was trying to run bluez on our board with

bc4

Quoted 22 lines
Quoted 22 lines

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?

Quoted 20 lines
Quoted 1 line
Quoted 1 line

2. Did I need to place the bootrap init

sequence

Quoted 4 lines
Quoted 4 lines

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

Quoted 12 lines
Quoted 11 lines

already hand it, But I
just do the wrong way ?

Many thanks.
Raymond

-------------------------------------------------------------------------

Quoted 10 lines
Quoted 9 lines
Quoted 8 lines

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
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

-------------------------------------------------------------------------

Quoted 9 lines
Quoted 8 lines

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 [email protected]

Quoted 11 lines

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 5 lines
Quoted 1 line

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#11 lore raw

Re: [Bluez-users] How to use Bluez with CSR chip ?

That means you need bccmd to initialize your csr chip.

Quoted 149 lines · --- colorant

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" <[email protected]>
To: "colorant" <[email protected]>; "BlueZ users" <[email protected]>
Sent: Thursday, June 12, 2008 2:04 AM
Subject: Re: [Bluez-users] How to use Bluez with CSR chip ?

Quoted 11 lines

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

Quoted 11 lines

utilities.

--henry

Quoted 5 lines · --- colorant

Hi henry

Thanks for you reply.

Yes , I am using BC4 A06 Rom version on an

arm

Quoted 3 lines
Quoted 3 lines

based embedded board.

So this one must set pskey before running

right

Quoted 12 lines
Quoted 12 lines

?

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

Quoted 8 lines
Quoted 8 lines

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

Quoted 13 lines
Quoted 13 lines

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 ?

Quoted 8 lines
Quoted 8 lines

Raymond

----- Original Message -----
From: "hong zhang" <[email protected]>
To: "BlueZ users"
<[email protected]>
Sent: Wednesday, June 11, 2008 8:57 AM
Subject: Re: [Bluez-users] How to use Bluez with

CSR

Quoted 6 lines
Quoted 6 lines

chip ?

Quoted 3 lines

Raymond,

CSR bc4 is initialized in two ways based on

your

Quoted 1 line
Quoted 1 line
Quoted 1 line

design. I assum your board is embedded. One is

by

Quoted 1 line
Quoted 1 line
Quoted 1 line

eeprom and one is using command after build.

You

Quoted 9 lines
Quoted 9 lines

need

Quoted 3 lines

to provide more information.

You have to make sure your CSR bc4 chip on your

board

Quoted 4 lines

is up first before using bluez.

Regular talking here is based on x86.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

---henry

Quoted 3 lines · --- colorant

Hi

I am not sure is this the proper place to

put

Quoted 5 lines
Quoted 5 lines

up

Quoted 4 lines
Quoted 4 lines

this question, if not ,
please correct me.

I was trying to run bluez on our board

with

Quoted 5 lines
Quoted 5 lines

bc4

Quoted 4 lines
Quoted 4 lines

chip. This chip need to
set pskey before it can run

I use hciattach and hciconfig to bring up

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

hci0 interface.

Then I try hcitool hci0 scan with my

earphone

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

open.

Nothing happend.

while, if I using CSR's bchs a2dp demo ,

it's

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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

Quoted 26 lines

config

Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

need?

2. Did I need to place the bootrap init

sequence

Quoted 2 lines
Quoted 2 lines

for the bc4 chip in
some place if I using bluez ? say in kernel or

in

Quoted 17 lines
Quoted 16 lines
Quoted 2 lines
Quoted 2 lines

the bluez user space
scripts? Or , the standard kernel and bluez

utility

Quoted 12 lines
Quoted 11 lines

already hand it, But I
just do the wrong way ?

Many thanks.
Raymond

-------------------------------------------------------------------------

Quoted 14 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services

for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________

Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

Bluez-users mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 10 lines
Quoted 9 lines
Quoted 8 lines
Quoted 7 lines
Quoted 1 line

-------------------------------------------------------------------------

Quoted 3 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#12 lore raw

Re: [Bluez-users] How to use Bluez with CSR chip ?

In reply to colorant

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

Quoted 132 lines · 在2008-06-11,colorant <[email protected]> 写道:

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 ?

Quoted 77 lines

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

Quoted 38 lines · --- colorant

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 ?

Quoted 7 lines

Many thanks.
Raymond

-------------------------------------------------------------------------

Quoted 8 lines

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
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line
Quoted 10 lines

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 9 lines

-------------------------------------------------------------------------
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 [email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#13 lore raw

Re: [Bluez-users] How to use Bluez with CSR chip ?

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

Quoted 131 lines · --- [email protected] 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 <[email protected]> =D0=B4=B5=C0=A3=BA

Quoted 5 lines

Hi henry

Thanks for you reply.

Yes , I am using BC4 A06 Rom version on an arm

based embedded board.

Quoted 2 lines

So this one must set pskey before running right

?

Quoted 2 lines

I try to run the CSR's demo first to set the

right pskey and run the =

Quoted 2 lines

chip up.
After I exit the demo, I can use pc to detect

the chip.

Quoted 8 lines

While , then I use :

hciattach /dev/ttyS1 bcsp 921600

to attach ttyS1 to hci0

after that , The PC can not detect the chip

anymore.

Quoted 4 lines

and then I try
hciconfig hci0 up
it can bring up the hci0 interface , but the pc

still don't detect the =

Quoted 3 lines

chip.

for kernel , I only insert bluetooth.ko and

hci_uart.ko

Quoted 2 lines

So , can you kindly figure out what might be

wrong in my operation ?

Quoted 2 lines

Seems to me the hciattach operation reset the

chip. And I might need to =

Quoted 4 lines

modify the hciattach , or ?

Raymond

Quoted 8 lines

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

Quoted 7 lines
Quoted 7 lines

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

Quoted 3 lines
Quoted 3 lines

to provide more information.

You have to make sure your CSR bc4 chip on your

board

Quoted 11 lines
Quoted 11 lines

is up first before using bluez.

Regular talking here is based on x86.

---henry

Quoted 3 lines · --- colorant

Hi

I am not sure is this the proper place to

put up

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

this question, if not ,
please correct me.

I was trying to run bluez on our board with

bc4

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

chip. This chip need to
set pskey before it can run

I use hciattach and hciconfig to bring up

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

hci0 interface.

Then I try hcitool hci0 scan with my

earphone

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

open.

Nothing happend.

while, if I using CSR's bchs a2dp demo ,

it's

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

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?

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

2. Did I need to place the bootrap init

sequence

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

for the bc4 chip in
some place if I using bluez ? say in kernel or

in

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

the bluez user space
scripts? Or , the standard kernel and bluez

utility

Quoted 12 lines
Quoted 12 lines
Quoted 11 lines

already hand it, But I
just do the wrong way ?

Many thanks.
Raymond

-------------------------------------------------------------------------

Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

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
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

-------------------------------------------------------------------------

Quoted 9 lines
Quoted 8 lines
Quoted 8 lines

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 [email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 16 lines
Quoted 6 lines
Quoted 1 line

=

-------------------------------------------------------------------------

Quoted 7 lines

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 [email protected]

Quoted 2 lines

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

-------------------------------------------------------------------------

Quoted 4 lines

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>

_______________________________________________

Quoted 3 lines

Bluez-users mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

=

      =

-------------------------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users