fossasia / badgemagic-firmware

Hardware details and information to build an open firmware for LED badge
https://badgemagic.fossasia.org
Apache License 2.0
1.5k stars 4 forks source link

Implement version recognition #44

Open mariobehling opened 3 weeks ago

mariobehling commented 3 weeks ago

A mobile app should be able to recognize the version of the firmware on the hardware and provide the option to update the firmware.

kienvo commented 3 weeks ago

It's already implemented in Device Information Profile: https://github.com/fossasia/badgemagic-firmware/blob/f5874d607315ff88b27414299089b8528b5bb07c/src/ble/profile/devinfo.c#L14-L15

The app should read the firmware version string by reading the value of the Firmware Revision String Characteristic (0x2A26) in the Device Information Profile (0x18A). This will be documented soon, along with the firmware versioning.

mariobehling commented 3 days ago

Ok, good. When you document this please reference this issue.