Data Format: 8N1 (8 data bits, no parity bit, 1 stop bit).
Character Encoding: UTF-8.
Frame Structure: Each message consists of the following components:
Start Sequence: The message starts with the characters "DS" to indicate the beginning of a data packet.
Command: Two alphanumeric characters that represent a specific command.
-> Delimiter: Use '->' to separate the command from the payload.
Payload: The payload of the message, which can be variable in length and content.
Double Colon Termination: The message is terminated by two consecutive forward slashes ("//").
Checksum: A checksum value, typically in hexadecimal (HEX) format, can optionally follow the double colon terminator. It helps ensure data integrity. 0000 to ignore
Final Terminator: The message is concluded with three consecutive colons (":::") to indicate the end of the data packet.
Example Message: DS01->Hello World//05DD:::
In the example above:
"DS" indicates the start of the message.
"01" is the command.
"Hello World" is the payload.
"0A1B" is the checksum (HEX).
":::" marks the end of the message.
By using '->' as the delimiter, you maintain a clear structure for your UART communication while customizing the delimiter to your preference.
Must pass:
UARTtest.ipynb
[x] test one message with checksum
[x] test one message without checksum
[x] test one message with parameters with checksum
[x] test one message with parameters without checksum
repeat all with 3 messages with no params, more than one param and empty params
UART Communication Protocol:
Example Message:
DS01->Hello World//05DD:::
In the example above:Must pass:
UARTtest.ipynb