joelguittet / mender-mcu-client

Mender client for MCU, just because it's cool to have it
Apache License 2.0
37 stars 7 forks source link

add-on: troubleshoot: add file transfer support #80

Closed joelguittet closed 1 month ago

joelguittet commented 2 months ago

The purpose of this ticket is to integrate Device Troubleshoot File Transfer API. File Transfer in bot direction, from the device to the server and from the server to th device should be supported. This can be done with a litllefs partition for demonstration purpose.

Tasks includes:

The File Transfer API of the Device Troubleshoot add-on the MCU must provides:

Note: there is no documentation of the protocol used by the Device Troubleshoot add-on. Retro-engineering is done to understand how the existing mender solution is working.

References:

joelguittet commented 2 months ago

Draft version is available on branch at the moment for evaluation purpose on esp-idf platform. It has been tested with files up to 100KB in both upload and download directions. Curl support that is used for convenient development is tested as well and working. Zephyr support is not tested at all and will be checked soon to ensure it is working too.

joelguittet commented 1 month ago

Zephyr support has been added with some websocket fixes. PR is no more draft and feature will be integrated soon.

joelguittet commented 1 month ago

PR has been merged.