Linux bluetooth development
 help / color / mirror / Atom feed
* [bluez/bluez] 89bad6: battery: Add component battery objects
@ 2026-08-19 22:49 Matthias Kurz
  0 siblings, 0 replies; only message in thread
From: Matthias Kurz @ 2026-08-19 22:49 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/1148725
  Home:   https://github.com/bluez/bluez
  Commit: 89bad6ff34483e62d69c8cadba6168614183e16b
      https://github.com/bluez/bluez/commit/89bad6ff34483e62d69c8cadba6168614183e16b
  Author: Matthias Kurz <m.kurz@irregular.at>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M src/battery.c
    M src/battery.h

  Log Message:
  -----------
  battery: Add component battery objects

Allow one Bluetooth device to export multiple Battery1 objects while
keeping the legacy aggregate object at the device path.

Component objects expose their parent Device1 path, a stable identifier,
an optional percentage, and an optional charging state. Extend
BatteryProvider1 handling with the same semantics so external providers can
publish multiple batteries too.

Keep component objects and their new properties behind the experimental
D-Bus flag while the API is being established.

Assisted-by: Codex:gpt-5.6-sol


  Commit: 40c6627b67601ede87e22984f244650d41b04833
      https://github.com/bluez/bluez/commit/40c6627b67601ede87e22984f244650d41b04833
  Author: Matthias Kurz <m.kurz@irregular.at>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M doc/org.bluez.Battery.rst
    M doc/org.bluez.BatteryProvider.rst

  Log Message:
  -----------
  doc: Document component battery objects

Describe the experimental component Battery1 properties, their opaque
object paths, and how BatteryProvider1 implementations publish several
batteries for one device.

Assisted-by: Codex:gpt-5.6-sol


  Commit: 9cee02acee2a6ba3ec9d0e0c1d7f4b336065fd14
      https://github.com/bluez/bluez/commit/9cee02acee2a6ba3ec9d0e0c1d7f4b336065fd14
  Author: Matthias Kurz <m.kurz@irregular.at>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M .gitignore
    M Makefile.am
    M Makefile.plugins
    A profiles/fastpair/fastpair.c
    A profiles/fastpair/message-stream.c
    A profiles/fastpair/message-stream.h
    A unit/test-fastpair.c

  Log Message:
  -----------
  fastpair: Add Message Stream battery profile

Connect to the experimental Fast Pair Message Stream service advertised by
compatible BR/EDR devices and parse its 16-bit-length framed messages.

Publish left, right, and case values as component Battery1 objects.
Include unknown percentage and charging-state transitions. Decode unknown
levels using the generic Battery Notification status bit while treating
the TWS-specific case value 0xff as unavailable.

If only the Message Stream is lost, invalidate its values and reconnect.
Use exponential backoff and reset it only after a battery-producing stream
remains stable. Remove the objects once the BR/EDR bearer disappears.

Keep pending connection callbacks alive through cancellation and ignore
callbacks for detached or superseded channels.

Assisted-by: Codex:gpt-5.6-sol


  Commit: 1b0576a01208bd36fb240d04edde6f481c7ce1ce
      https://github.com/bluez/bluez/commit/1b0576a01208bd36fb240d04edde6f481c7ce1ce
  Author: Matthias Kurz <m.kurz@irregular.at>
  Date:   2026-08-19 (Wed, 19 Aug 2026)

  Changed paths:
    M Makefile.tools
    A test/test-fastpair

  Log Message:
  -----------
  test: Add Fast Pair Message Stream tool

Add a standalone profile client that prints Fast Pair Message Stream frames
and can optionally publish left, right, and case values through
BatteryProvider1.

Publish dynamic component lifecycle signals, scope providers per adapter,
and invalidate measurements when a stream closes. Warn users to disable the
built-in Fast Pair plugin when using the external profile.

Assisted-by: Codex:gpt-5.6-sol


Compare: https://github.com/bluez/bluez/compare/89bad6ff3448%5E...1b0576a01208

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-19 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19 22:49 [bluez/bluez] 89bad6: battery: Add component battery objects Matthias Kurz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox