July 2021
10
5.
If the Message Type field contains an ‘E’ follow the incubator: Event Unpacking
Incubator: Data Unpacking
1.
Parse the first comma delimited field as the time in the format of hh:mm:ss.
2.
Parse the second comma delimited field as the date in the format of mm:dd:yy.
3.
The first space delimited field contains the Air Temperature datums.
These are the following, each separated by a comma.
I.
Current Temperature
II.
Set Point (desired Air Temperature)
III.
High Alarm set point
IV.
Low Alarm set point
4.
The second space delimited field contains the Relative Humidity datums.
These are the following, each separated by a comma.
I.
Current Relative Humidty
II.
Set Point (desired Relative Humidty percentage)
III.
High Alarm set point
IV.
Low Alarm set point
5.
The third space delimited field contains the CO
2
datums.
These are the following, each separated by a comma.
I.
Current CO
2
percentage
II.
Set Point (desired CO
2
percentage)
III.
High Alarm set point
IV.
Low Alarm set point
Incubator: Event Unpacking
1.
Parse the first comma delimited field as the time in the format of hh:mm:ss.
2.
Parse the second comma delimited field as the date in the format of mm:dd:yy.
3.
The third comma delimited field is the event description
4.
The fourth field is the event code. Note: not all events have event codes.
Sender: Packaging client payload
1.
Set the System Type field to ‘C’
2.
Set the Message Category field to ‘L’
3.
Set the Message Type field to either ‘D’ or ‘E’ depending on the body of the payload
Sender: Packaging client payload into a packet
Given:
•
client data and message type
•
all multi-byte fields are stored in MSB
1.
Allocate a packet buffer