Sample automatic uploader (Python script base sample UI)

Including logging + HW test scripts + uploading mechanism

uploader_ui.py

Attributes:

  • Logs all the processes to a log file in the script directory.

  • Provides the realtime log (when the script is ran) also through a web-server http://ipaddr:3060. The port is editable from globalvars.py (frontail_init_port)

  • One have the choice to upload either a test firmware or the production firmware.

  • The test firmware produces reports that will be logged in a log file in realtime about the HW states and also printed in physical through a receipt printer after each upload. (For easy HW fixing later)

  • The realtime HW tests results are also viewable in the console UI as well as on the web view.

  • Hot swap status of log-server, debug serial ports, upload ports. (for preventing crashes when unavailable or other errors )

  • Corner case adjustments for dependency management of the main script (for preventing crashes and other errors).

  • abaility to pull the latest firmware set

  • Semi-cross-platform (macOS and Debian Linux -> designed for raspbian OS while developed and tested in macOS)

Last updated

Was this helpful?