-
Notifications
You must be signed in to change notification settings - Fork 3
RDKEMW-9843: report loaded and unloaded voltage from RCU #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…tage loaded, unloaded, and percentage in remote control service.
src/ble/hal/blercu/bleservices/gatt/gatt_remotecontrolservice.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements support for tracking battery voltage information from the Remote Control Unit (RCU). It adds a new BLE characteristic to report loaded voltage, unloaded voltage, and battery percentage from the remote control device.
Key changes:
- Adds a new
RawBatteryVoltageBLE characteristic UUID (0xed08) for reading battery voltage data - Implements voltage parsing logic that interprets 8-bit values as voltage measurements (upper 2 bits for whole volts, lower 6 bits for fractional increments)
- Integrates voltage tracking into the remote control service lifecycle with proper initialization, request handling, and cleanup
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ble/hal/utils/bleuuid.h | Adds the RawBatteryVoltage characteristic UUID enum value |
| src/ble/hal/utils/bleuuid.cpp | Registers the human-readable name for the RawBatteryVoltage characteristic |
| src/ble/hal/blercu/bleservices/gatt/gatt_remotecontrolservice.h | Declares new methods, member variables, and characteristic pointer for handling raw battery voltage |
| src/ble/hal/blercu/bleservices/gatt/gatt_remotecontrolservice.cpp | Implements voltage request handling, parsing logic, and integrates into service lifecycle |
| src/ble/hal/blercu/bleservices/blercuremotecontrolservice.h | Adds slot registration method for battery voltage change notifications |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/ble/hal/blercu/bleservices/gatt/gatt_remotecontrolservice.cpp
Outdated
Show resolved
Hide resolved
src/ble/hal/blercu/bleservices/gatt/gatt_remotecontrolservice.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Gene Gallagher <129112619+egalla204@users.noreply.github.com>
see RDKEMW-11249 or CHANGELOG for release notes
3c612fe to
251ce7c
Compare
egalla204
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved for test
RDKEMW-9843
Now tracks voltage loaded, unloaded, and percentage in remote control service.