-
Notifications
You must be signed in to change notification settings - Fork 4
Protocol for sending measurements via UART
Robert edited this page Jul 25, 2021
·
1 revision
To ensure data integrity sent from the ionization chamber device to computer, a simple protocol was added to encapsulate each data/command send.
The field “msg length” describes amount of bytes the “data” section has.
Definition of the message:
Content of data section in above message is an example and can be different depends on message id, but now only one message is supported and it is as shown above.
- Msg id: 1 - data from last analog measurement of actual value.
- Msg data section:
- ADC configuration
- MSB (most significant byte) from ADC
- LSB (least significant byte) from ADC
CRC is calculated xor’ing all bytes in data section.