Re: pairing problems

"Martin Kupf" <[email protected]> Tue, 10 Jun 2008 09:42:31 +0200
Newsgroups gmane.linux.bluez.user
Message-ID <[email protected]>
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: [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
> 
> 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ört?
> 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

-- 
Martin Kupf

Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für 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