| Crates.io | serialport_srwp |
| lib.rs | serialport_srwp |
| version | 2.2.6 |
| created_at | 2025-06-28 20:00:20.130456+00 |
| updated_at | 2025-09-05 00:53:39.421611+00 |
| description | A simple serial port protocol (SRWP) for read/write operations with the Blaustahl Storage Device. Enables memory access via basic commands for data transmission and device control. |
| homepage | |
| repository | https://github.com/binqbit/serialport_srwp |
| max_upload_size | |
| id | 1730090 |
| size | 23,951 |
This project was developed for use with the Blaustahl Storage Device, providing a simple method for data transfer and memory management of the device via a serial port using the Simple Read Write Protocol (SRWP) API. The protocol implements basic read and write operations, ensuring reliable interaction with the device. The example and implementation of this protocol were specifically developed for this fork of the repository, which contains the Blaustahl Storage Device and corresponding drivers.
The SRWP protocol allows interaction with the Blaustahl Storage Device through a serial port. It uses commands, each defined by a unique code, and includes a zero byte indicating that it is an SRWP command.
Each command begins with a zero byte indicating an SRWP command and follows the format:
SRWP_CMD (0x00): Indicates the start of an SRWP command.
CMD_TEST:
SRWP_CMD - Zero byte indicating an SRWP command.CMD_TEST - Command code.<data length> - 4 bytes indicating the length of the data.<data> - Bytes of data to be transmitted.CMD_READ:
SRWP_CMD - Zero byte indicating an SRWP command.CMD_READ - Command code.<address> - 4 bytes indicating the starting address for reading.<length> - 4 bytes indicating the length of the data to be read.CMD_WRITE:
SRWP_CMD - Zero byte indicating an SRWP command.CMD_WRITE - Command code.<address> - 4 bytes indicating the starting address for writing.<data length> - 4 bytes indicating the length of the data to be written.<data> - Bytes of data to be written.The SRWP protocol is a simple and effective method for memory management of the Blaustahl Storage Device via a serial port. It supports basic read and write operations, ensuring reliable interaction between the device and the host. The example code demonstrates the use of the serialport library to implement the protocol.
SRWP uses various commands to manage data transfer, making it a flexible and easy-to-use solution for applications requiring reliable data transmission.
To get started with the SRWP protocol, follow these steps: