2019-10-03 12:12:20

by Pavel Nikulin

[permalink] [raw]
Subject: Battery readouts on dbus for GATT battery service

Hello,

I have a bt 4.2 mouse that has a battery service, but no battery
attribute visible in Bluez, Rapoo m550 using YiChip 1201.

Is it even hypothetically possible that a device can have a battery
service, but no battery attribute?

This is what I see in my syslog

Oct 3 15:07:38 xps bluetoothd[1837]: No cache for ED:8E:0E:DF:E0:B8
Oct 3 15:07:38 xps bluetoothd[1837]: BATT attribute not found
Oct 3 15:07:38 xps bluetoothd[1837]: batt-profile profile accept
failed for ED:8E:0E:DF:E0:B8
Oct 3 15:07:38 xps bluetoothd[1837]: GAP attribute not found
Oct 3 15:07:38 xps bluetoothd[1837]: gap-profile profile accept
failed for ED:8E:0E:DF:E0:B8
Oct 3 15:07:38 xps bluetoothd[1837]: input-hog profile accept failed
for ED:8E:0E:DF:E0:B8
Oct 3 15:07:39 xps bluetoothd[1837]: bt_uhid_send: Invalid argument (22)
Oct 3 15:07:39 xps bluetoothd[1837]: bt_uhid_send: Invalid argument (22)


2019-10-03 12:14:22

by Bruno Randolf

[permalink] [raw]
Subject: Re: Battery readouts on dbus for GATT battery service

On 03/10/2019 13:07, Pavel Nikulin wrote:
> Hello,
>
> I have a bt 4.2 mouse that has a battery service, but no battery
> attribute visible in Bluez, Rapoo m550 using YiChip 1201.
>
> Is it even hypothetically possible that a device can have a battery
> service, but no battery attribute?

bluez filters it out. This is exactly what I am seeing.

Reference to my post just two days ago:
https://www.spinics.net/lists/linux-bluetooth/msg81438.html

Greetings,
bruno

2019-10-04 10:55:08

by Pavel Nikulin

[permalink] [raw]
Subject: Re: Battery readouts on dbus for GATT battery service

Decoded text https://pastebin.com/NNdvbBNA

On Fri, Oct 4, 2019 at 2:49 PM Pavel Nikulin <[email protected]> wrote:
>
> Hello,
>
> Here is the BTMON capture
>
> http://s000.tinyupload.com/index.php?file_id=97528277907598647906