Re: Peripheral notifications not showing up
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2019-03-12 13:12:07
Hi Barry, On Fri, Mar 8, 2019 at 11:20 PM Barry Byford [off-list ref] wrote:
I have tried the same experiment on a Raspberry Pi. $ uname -a Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux I ran the peripheral code I have and it worked fine on the Raspberry Pi. I then rebuilt BlueZ 5.43 and reinstalled it and I see the same issue with getting notificatins. That is, reading of the characteristic in the Nordic nRF app on my phone works. However, when I activate notifications I can see the status change on the peripheral and the notifications show up on the DBus. The notifications just don't show up in btmon or on my phone.
Perhaps is being blocked somehow, you got the StartNotification I suppose? Please make sure the object path matches otherwise it won't work, you may also check how bluetoothctl does handle notifications since that has been working for a while.
Does anyone have any suggestions of how I can debug this?
The usual btmon traces and bluetoothd debug logs are normally a good idea to share since there could be some bug, though Ive been testing this regularly with bluetoothctl and that has been stable for a while, at least on master that is.
Thanks, Barry On Wed, 6 Mar 2019 at 22:37, Barry Byford [off-list ref] wrote:quoted
Hello, I have a system that comes with BlueZ 5.43 installed on a single board computer (SBC). I have downloaded, built and installed various newer versions of BlueZ but I am having problems getting them working correctly. I have a peripheral (very similar to the gatt server example in the test directory) with one characteristic. My example was working before upgrading. However after upgrading, when I turn on notification for the characteristic it is not showing on the phone. I do see the notification turn up in dbus-monitor but not in btmon. signal time=1551910979.743011 sender=:1.38 -> destination=(null destination) serial=339 path=/ukBaz/bluezero/service0001/char0001; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged string "org.bluez.GattCharacteristic1" array [ dict entry( string "Value" variant array of bytes [ 78 14 ] ) ] array [ ] I have tried going back to version 5.43 again but now that is not working either. The configure I ran was: ./configure --prefix=/usr \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-experimental \ --enable-maintainer-mode To get configure to work without error I needed to install the following: sudo apt install glib2. sudo apt install libdbus-1-dev libudev-dev libical-dev libreadline-dev I have tried various variations on this and done a lot of searching but don't seem to find an answer. Is anyone else seeing this issue? Anyone have any suggestions as what I could try? Thanks in advance, Barry
-- Luiz Augusto von Dentz