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