Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Pairing problem in BlueZ

Feb 3, 2011 2:49AM PST

Hi,
I am trying to implement the pairing process in my application. I am using Ubuntu on a desktop connected with Bluetooth USB Dongle. I am facing an issue when the remote device starts pairing.

1. how to determine pairing request from BlueZ. Is there any Dbus msg or signal emitted?
2. What should be the response message? Any DBUS API exposed by BlueZ has to be called?

Please let me know the complete process.

Thanks

Discussion is locked

- Collapse -
You'll need a great programmer
Feb 4, 2011 12:15AM PST

That is not afraid to research such like we read at https://help.ubuntu.com/community/BluetoothSetup

Now that we know we can use the command line to pair the programmer has a choice to call that app with those command lines or use the source code to said utilities to bring the function into their app.

Good hunting,
Bob

- Collapse -
just read tutorial about dbus
Feb 4, 2011 12:49AM PST
- Collapse -
Still no real answer
Aug 30, 2011 8:02PM PDT

Hi,

i've tried to find a callback function to inform me of a pairing event but still no luck.
Have you resolved this issues, or we need to change the code in bluez and rebuild
the code for our custom purposes?

- Collapse -
From all indications.
Sep 1, 2011 1:09AM PDT

So far everyone I worked with had to alter the code a little to suit their needs. One didn't have any programming staff and would not pay for the effort. Their system still does not work.
Bob

- Collapse -
Resolved using the self suggestion
Sep 7, 2011 12:41AM PDT

So,

as I did not find an answer, I had to change bluez/openobex source code a bit
to notify my software. The change should be in device.c and main.c in source
files of bluez for notification (maybe you could catch event in other files, but these
were most appropriate for me).