intercreate / smpmgr

Simple Management Protocol (SMP) Manager for remotely managing MCU firmware
Apache License 2.0
10 stars 3 forks source link

Feature/serial #14

Closed JPHutchins closed 7 months ago

JPHutchins commented 7 months ago

This adds a very simple serial terminal the smpmgr. Known issues would include that it does not buffer ANSI escapes, so if it flushes to the shell it's running in before the sequence has completed the ANSI escape will not be parsed correctly. It also seems to hang until you hit enter when the device is unplugged, for example. And I've only tested from Windows.

The idea is so that users don't have to switch apps for devices that need serial comms to enter the bootloader:

smpmgr --port COM1 terminal

# now in the devices Zephyr shell do
bootloader reboot

smpmgr --port COM1 os echo hello
smpmgr --port COM1 os reset