scooterteam/bw-flasher — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Python tool for flashing Brightway and LEQI scooter controller firmware over UART. It should work both from the command line and from a simple desktop GUI.

The user should be able to pick or pass in a .bin firmware file, choose a serial port if needed, and start flashing. The app should automatically detect whether the firmware is Brightway or LEQI and show that clearly in the GUI with an obvious status label. Add simulation mode so people can test the process without writing to hardware, plus a debug option for troubleshooting.

Please include the important safety and legal warnings in the app or documentation, since firmware changes can damage devices, void warranties, or be illegal. Keep it for educational and personal research use only.

Set up install instructions for Poetry and pip, basic tests for firmware detection, crypto helpers, flasher behavior, and simulation mode, and make it possible to package the GUI as a standalone executable.

Want more depth? Deep Reverse