This is for one-way communications and only describes the packet structure for the mTouch One-Way GUI.
The communication module of the mTouch Framework has been designed to talk to the included mTouch One-Way GUI by default but can easily be adapted to meet your needs. The framework handles all initialization requirements once it knows the PIC's oscillator speed and desired baud rate.
The data packets being sent to the GUI are as shown:
16bitMaskofSensorStates;Sensor0Reading;Sensor1Reading;...;SensorNReading(CR)(LF)
which looks like this when populated:
00000;02301;02354;02332;02296;02318
1
in the bit mask means the sensor is pressed. A 0
means that it is released.The data is sent in decimal format with a maximum of 5 digits by default.