UART connection
Connecting to the Blecon Modem over UART
The Blecon modem supports UART as a transport protocol. The UART must be used with a 115200bps baudrate, no parity and one stop bit.
All data sent on the UART link is hex-encoded, as little endian. All frames are separated by a carriage return (CR) and line feed (LF) control character. The CR character is optional when sending frames to the modem.
A transaction is made of a request frame (on the modem's RX line) and response frame (TX line). The modem only supports one request to be pending at a given time.
When the modem needs to signal an event to the host MCU, it sends an event frame on the modem's TX line. Please note the event frame can be received at any time.
The structure of a request frame is:
Text | 2 characters | 4 characters | n*2 characters | 2 characters |
---|---|---|---|---|
RX | 01 | Request size (hex-encoded, LE) | Request (hex-encoded) | <CR><LF> |
The structure of a response frame is:
Text | 2 characters | 4 characters | n*2 characters | 2 characters |
---|---|---|---|---|
TX | 01 | Response size (hex-encoded, LE) | Response (hex-encoded) | <CR><LF> |
The structure of an event frame is:
Text | 2 characters | 2 characters |
---|---|---|
TX | 02 | <CR><LF> |
Last modified 1yr ago