AW: BlueZ Peripheral: Detect Connection from Remote Device and Read RSSI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Matt,
I'm a noob here, but just an idea: how about involving DBus?

It seems to me that all the events and value changes result in DBus messages around. You can watch them with dbus-monitor first, and write your own app listening and filtering them later.

Anybody more experienced, may give you better answer :)

Libor

-----Ursprüngliche Nachricht-----
Von: linux-bluetooth-owner@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-owner@xxxxxxxxxxxxxxx] Im Auftrag von Matthew Hazley
Gesendet: Mittwoch, 18. Oktober 2017 17:01
An: linux-bluetooth@xxxxxxxxxxxxxxx
Betreff: BlueZ Peripheral: Detect Connection from Remote Device and Read RSSI

Hi everyone,

I have a simple, BLE peripheral using BlueZ 5.47, its written in Python.

My question is this - when using BlueZ and operating as a peripheral, is there a way to detect that a central has connected to me? Is there a way to read the RSSI of the connection between us?

Regarding the RSSI, I did try executing the following:

"hcitool rssi <central-bdaddr>"

when I knew the central was connected to me but this failed and replied "Get connection info failed: No such file or directory."

Any help appreciated.

Regards,
Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at  http://vger.kernel.org/majordomo-info.html
��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux