summaryrefslogtreecommitdiff
path: root/tools/wasptool
AgeCommit message (Collapse)Author
2021-09-10tools: wasptool: Increase OTA reboot timeoutDaniel Thompson
Currently --ota works "most of the time" but occasionally the OTA fails to start. Let's give the reset an extra second to settle! Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-10wasptool: Automatically create directories during uploadDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-07-25Fix escape sequences in wasptoolAndreas Kloeckner
Signed-off-by: Andreas Kloeckner <inform@tiker.net>
2021-07-25wasptool: Make mem_free issue data as csvDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-05-05wasptool: Fix progress bar numberingDaniel Thompson
Currently direct callers of draw_pbar() can have 20 or more digits after the decimal place. Fix this by moving the rounding function. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-27wasptool: add --battery to check battery levelthefenriswolf
Signed-off-by: thefenriswolf <stefan.rohrbacher97@gmail.com>
2021-02-25tools: wasptool: Fix binary downloads for a specific special caseDaniel Thompson
Currently if the binary file being downloaded contains single quote characters then it gets wrapped differently by repr() so we have to add additional cases to strip the wrapper. Fix this the "obvious" way... where by "obvious" I mean almost anything but. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tools: wasptool: Additional adoption of the run_command wrapperDaniel Thompson
run_command has particular benefits for handle_binary_download() because we can greatly simplify the code to handle running repr() on the target. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tool: wasptool: Add a free memory reporting toolDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tools: wasptool: Better REPL integrationDaniel Thompson
Add a run_command method for the "console". This allows running a command on the target and capturing the result. Normally this is handled using REPLWrapper but that doesn't work well with the NUS console because local echo gets in the way. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tools: wasptool: Add push/pull commandsDaniel Thompson
--push is very similar to --binary --upload but handles directories differently. --pull allows us to copy binary files from the target. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-01-10wasptool: Allow files to be renamed during an uploadDaniel Thompson
For example: ./tools/wasptool --upload docs/main/chrono.py --as main.py Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-10-21tools: wasptool: Improve error reporting if we can't syncDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-10-21tools: wasptool: Fix verbose/not-verbose handlingDaniel Thompson
Fixes: 2839a04 ("tools: wasptool: Hide the stack trace on pexpect timeout") Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-10-10tools: wasptool: Hide the stack trace on pexpect timeoutDaniel Thompson
The default pexpect exception dump is verbose and potentially useful if you know how to read it... but let's handle timeouts in a friendlier way. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-10-10tools: wasptool: Wait longer for DFU to come upDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-08-14wasptool: Change Python shebang to ensure compatibilityPanagiotis Vasilopoulos
- Certain Unix-like systems (such as *BSD systems) do not use /usr/bin/python3 as the default Python path. This small change will ensure a higher degree of compatibility. Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
2020-07-26wasptool: Add support for selecting devices by name and MAC addressDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-30wasp: Switch to scheduling from interruptDaniel Thompson
This has two useful properties. Firstly it means the watch will be maintained in the background, allowing the REPL to be used for notifications and other updates. Secondly it will save a little bit of power by reducing the work needed to handle spurious wake ups. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-20wasptool: Add support for binary uploadsDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-20wasptool: Fix --resetDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-05-25wasptool: Better reporting of out-of-memory problems when pastingDaniel Thompson
2020-05-24wasptool: Enable fully automatic OTA firmware deliveryDaniel Thompson
2020-05-14Make wasp-os namig consistantDaniel Thompson
Rename WASP to wasp-os (or Wasp-os)
2020-05-09wasptool: Add a command to compare RTC against the local workstationDaniel Thompson
This allows us to observe RTC drift during reboot relatively easily.
2020-04-26tools: wasptool: Improve command output for --exec and --evalDaniel Thompson
2020-04-17tools: wasptool: Introduce simple chunkingDaniel Thompson
This reduces the memory overhead required to --exec a file (although we will still have problems with big classes). For now we have avoided matching "^def" since we need additional handling for decorators!
2020-04-17tools: wasptool: Add support for --resetDaniel Thompson
2020-04-10tools: wasptool: Change characters used in the progress barDaniel Thompson
2020-04-06tools: wasptool: Add a progress bar to the BLE uploadsDaniel Thompson
2020-03-22Add licensing information for all wasp-os files.Daniel Thompson
2020-03-22Rename manager.py and expose its interfaces to all applicationsDaniel Thompson
This is a big change that break compatiblity with existing applications *and* with existing installed versions of main.py. When upgrading it is import to update main.py: ./tools/wasptool --upload wasp/main.py
2020-03-09tools: wasptool: Sneaky hack to avoid copying docstrings to the deviceDaniel Thompson
2020-03-08tools: wasptool: Reorder the execution of arguments.Daniel Thompson
The new ordering is tuned to allow --exec to be used to download new code, --eval to be used to set it up and then --console used to interact with it.
2020-02-19wasptool: Launch the console after all other argumentsDaniel Thompson
This allows for an elegant iterative development approach where we upload some code than then interact with it, for example: wasptool --exec wasp/drivers/nrf_rtc.py --console rtc = RTC(watch.rtc.counter)
2020-02-19wasp: Simple shell commands (based on upysh)Daniel Thompson
2020-02-19wasp: Add full dd-mm-yyyy calender trackingDaniel Thompson
2020-02-19wasptool: Simple tool for interacting with wasp-os devicesDaniel Thompson