Skip to content
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

Firmware update via MQTT #2269

Merged
merged 16 commits into from
Mar 26, 2021
Merged

Firmware update via MQTT #2269

merged 16 commits into from
Mar 26, 2021

Conversation

slaff
Copy link
Contributor

@slaff slaff commented Mar 16, 2021

Contains library, sample and tool to facilitate fast and efficient firmware upgrade over MQTT.

@slaff slaff added this to the 4.3.0 milestone Mar 16, 2021
@slaff slaff force-pushed the feature/ota-over-mqtt branch 2 times, most recently from b89b6e9 to 508070d Compare March 18, 2021 16:22
@slaff slaff changed the title [WIP] Firmware update via MQTT Firmware update via MQTT Mar 18, 2021
@slaff slaff requested a review from mikee47 March 18, 2021 16:23
@slaff slaff force-pushed the feature/ota-over-mqtt branch 3 times, most recently from baeeb5e to 36609a8 Compare March 19, 2021 14:59
@slaff slaff changed the title Firmware update via MQTT [WIP] Firmware update via MQTT Mar 23, 2021
@slaff
Copy link
Contributor Author

slaff commented Mar 23, 2021

@mikee47 I am using the host emulator to create a packing and deployment tool. But it emits too many messages and the error messages from the application are not easy to find and read. Would it be possible to add a --silent option that will silence all internal emulator messages?

@mikee47
Copy link
Contributor

mikee47 commented Mar 23, 2021

@slaff Sure. Some messages will be errors and probably not helpful to silence those. Could you provide an example log from your application? That will help to identify which should be silent, etc.

@slaff
Copy link
Contributor Author

slaff commented Mar 23, 2021

Could you provide an example log

For example for the command below I really don't want to see any message is there is no error.

/home/slavey/dev/esp8266.dev.box/dev/Sming/Sming/Libraries/OtaUpgradeMqtt/tools/deployer/out/Host/debug/firmware/deployer pack -- out/Esp8266/debug/build/app_0.out out/Esp8266/debug/build/app_0.out.sdp  0 1

But what I am getting is all the stuff below.

Welcome to the Sming Host emulator

host_flashmem_init: Opened "/media/slavey/416431e8-fd46-4982-896d-5025a72dd361/slavey/dev/esp8266.dev.box/dev/Sming/Sming/Libraries/OtaUpgradeMqtt/tools/deployer/out/Host/debug/firmware/flash.bin", size = 0x00400000
host_init_bootloader: MAGIC mismatch
host_init_bootloader: ERROR! No App partitions found

host_lwip_init: Initialising LWIP
host_lwip_init: Using interface 'tap0', gateway = 192.168.13.1, netmask = 255.255.255.0; using ip = 192.168.13.10
host_lwip_init: MAC: 9e:ed:c2:e6:2d:e1
main: If required, you may start terminal application(s) now
main: >> Starting Sming <<

IF_UP, AP: Host WiFi
IP_CHANGE, ip: 192.168.13.10, netmask: 255.255.255.0, gateway: 192.168.13.1
host_exit: returning 0
main: >> Normal Exit <<

host_flashmem_cleanup: Closed "/media/slavey/416431e8-fd46-4982-896d-5025a72dd361/slavey/dev/esp8266.dev.box/dev/Sming/Sming/Libraries/OtaUpgradeMqtt/tools/deployer/out/Host/debug/firmware/flash.bin"
cleanup: Goodbye!

@slaff slaff force-pushed the feature/ota-over-mqtt branch 2 times, most recently from fbe1dc1 to 0a9b28a Compare March 23, 2021 16:35
@slaff slaff mentioned this pull request Mar 23, 2021
5 tasks
@slaff slaff force-pushed the feature/ota-over-mqtt branch 2 times, most recently from cc29949 to a66c21c Compare March 24, 2021 12:56
@slaff slaff changed the title [WIP] Firmware update via MQTT Firmware update via MQTT Mar 24, 2021
@slaff slaff force-pushed the feature/ota-over-mqtt branch 2 times, most recently from fe21840 to a1e1071 Compare March 25, 2021 14:56
Smuggle small change to the documentation to help Windows users install ESP32 toolchain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants