nativeble icon indicating copy to clipboard operation
nativeble copied to clipboard

Linux: Not able to send or receive values

Open fidoriel opened this issue 4 years ago • 2 comments

I assume the tester program is used: Connect to BLE device with. Try to send anything to it. There won't be any answers and nothing is send. Checked it with hcidump on both devices, no traffic occurs.

The BLE device works fine with macOS. Somewhere in the library a pointer is missing. The characteristic pointer in the write_request is a nullptr, so the write_request from GattCharacteristic1 is not called. I was able to follow the missing pointer to the GattCharacteristic1 file. I assume it has something to do with not finding the UUID String or the holding string, because this is not set (nullptr) when requested by the getter function.

I assume that this is maybe fixed in your simpledbus lib already. Do you have plans to transfer the new files?

Expected behavior read and write values to the Ble device as macOS does.

  • Device: Acer Vertion Broadcom BCM20702A0 & Raspberry Pi 4
  • OS: Linux Debian Ubuntu 20.04 & Linux Debian Raspbian/Raspberry Pi OS

fidoriel avatar Aug 29 '21 21:08 fidoriel

If you're getting a null pointer when requesting that characteristic, it means that the operating system cannot find it.

Do you have a code sample that I can look at?

kdewald avatar Aug 30 '21 00:08 kdewald

I have used the nativeble_tester where I changed the UUIDs to fit my device. On macOS the program runs very well, on Linux no matter what device or bluetooth chip, not.

fidoriel avatar Aug 30 '21 07:08 fidoriel