BasedHardware / Friend

AI wearable necklace
https://basedhardware.com
MIT License
2.13k stars 229 forks source link

Cloud update for firmware ($500) #88

Closed kodjima33 closed 1 week ago

kodjima33 commented 2 months ago

Firmware on Friend's wearable should be able to be updated via cloud

reference

Ideal scenario: All friend's firmware should check our github folder and auto-update once it has internet connection>

"ok" scenario: Friend's firmware should be able to update via the mobile app "appwithwearable"

User-story: As a user, I want to be able to open Friend's app, connect to my wearable, then click "update". It should update the firmware from github

akshaynarisetti commented 2 months ago

Resources to help solve the issue: https://github.com/adafruit/Adafruit_nRF52_Bootloader/pull/291

https://enzolombardi.net/adding-ota-firmware-update-support-to-xiao-ble-boards-3db6f034c1fa

https://github.com/0hotpotman0/Adafruit_nRF52_Bootloader

after-ephemera commented 2 months ago

So it looks like with the bootloader in place, we should be able to utilize nordic's swift and java libraries to do the updating for us from the app. Adafruit's bluefruit le connect app is an example (see this dir).

eng1n88r commented 2 months ago

Did more research on the topic:

francip commented 1 month ago

Initial implementation of firmware changes to support the OTA DFU, and a rudimentary button to trigger update from app asset currently in https://github.com/francip/Friend/tree/francip-ota-update-client

Known issues:

francip commented 1 month ago

https://github.com/BasedHardware/Friend/pull/207

francip commented 1 week ago

The firmware changes have landed.