CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
bulk_uplink_to_devkit Namespace Reference

Functions

bytes _send_simple_slow_command (serial.Serial ser, str command, *, float delay=1.0)
None send_file_over_uart (Path input_file_path, *, str output_file, str uart_port, int baudrate, int chunk_size, float delay)
 main ()

Detailed Description

Bulk uplink a file to a local devkit with telecommands.

Run with:

```bash
uv run misc_tools/bulk_uplink_to_devkit.py ./firmware/build/debug/CTS-SAT-1_FW.bin -o firmware.bin --port <uart_port>

# Current fastest working settings on UART yields 526 B/s (default settings).

# ELF: 2.23MB file at that speed takes 1h45m (which is 11x 10-minute passes). <2 weeks.
# BIN: 277kB file at that speed takes 13 minutes (only 2 passes). Very good.
```

Function Documentation

◆ _send_simple_slow_command()

bytes bulk_uplink_to_devkit._send_simple_slow_command ( serial.Serial ser,
str command,
* ,
float delay = 1.0 )
protected
Here is the caller graph for this function:

◆ main()

bulk_uplink_to_devkit.main ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ send_file_over_uart()

None bulk_uplink_to_devkit.send_file_over_uart ( Path input_file_path,
* ,
str output_file,
str uart_port,
int baudrate,
int chunk_size,
float delay )
Here is the call graph for this function:
Here is the caller graph for this function: