* Pincode request Problem
@ 2009-11-20 5:45 nirav rabara
2009-11-20 8:14 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: nirav rabara @ 2009-11-20 5:45 UTC (permalink / raw)
To: linux-bluetooth
Hi,
How to get PIN request and wait for the reply without using gnome.
My scenario is as below,
I have cross complied Bluez-4.52 and using with my custom board with ARM.
./bluetoothd is running in background.
In my application I do DeviceDiscovery (hci_inquiry) and able get the
discovered devices addresses.
But when I tried to connect selected address from the discovered
address on RFCOM, bluetoothd is trying to get Pincode and get fails
because I am not using gnome on my embedded platform.(to solve this
problem I have hard coded Pin code in bluetoothd)
I am using Qt for GUI, Now I want to wait in bluetoothd for Pincode
and want to pass the pincode from Qt to bluetoothd , and then
bluetoothd should proceed.
In other way I want to pass pincode from one process to another
process, but I am using Qt not GTK which has been used in Bluez.
But is there any window to solve with problem, I mean any API OR any
document which can help me Or Is anybody has done something like that.
I have got few queries regarding to solve the above issue
1) Is it Strongly recommended to write another application similar to
bluetoothd if I don't want to use GTK OR If I use custom board?
2) Is there any API that can I use to get Pin request and send the
PinCode to bluetooth deamon.
OR
Any Suggestion.
Your suggestion would be a great help for me....
Thanks in Advance
--
With Regards,
Nirav Rabara
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Pincode request Problem
2009-11-20 5:45 Pincode request Problem nirav rabara
@ 2009-11-20 8:14 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2009-11-20 8:14 UTC (permalink / raw)
To: nirav rabara; +Cc: linux-bluetooth
Hi,
On Fri, Nov 20, 2009, nirav rabara wrote:
> I am using Qt for GUI, Now I want to wait in bluetoothd for Pincode
> and want to pass the pincode from Qt to bluetoothd , and then
> bluetoothd should proceed.
>
> In other way I want to pass pincode from one process to another
> process, but I am using Qt not GTK which has been used in Bluez.
There's no GNOME or GTK+ dependency in BlueZ. The PIN is requested over
D-Bus so any application that can speak D-Bus can act as an agent and
respond to the PIN requests.
> But is there any window to solve with problem, I mean any API OR any
> document which can help me Or Is anybody has done something like that.
See the RegisterAgent and CreatePairedDevice D-Bus methods in
doc/adapter-api.txt as well as the full agent API description in
doc/agent-api.txt. test/agent.c is an example C implementation of an
agent and test/simple-agent an example python implementation.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-20 8:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-20 5:45 Pincode request Problem nirav rabara
2009-11-20 8:14 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox