serial_xmodem_receive
Receive a file from a serial device using XMODEM protocol. Saves the transferred data to a local file path.
Instructions
Receive a file from the device using XMODEM protocol.
The device must already be sending (e.g. after a "sx filename" command). The received file is written to file_path.
Args: file_path: Path where the received file will be saved timeout: Max seconds to wait for transfer to complete session_id: Port name of the session. Optional if only one session is open. mode: "xmodem" for checksum mode, "xmodem-crc" for CRC-16 mode
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | xmodem | |
| timeout | No | ||
| file_path | Yes | ||
| session_id | No |