Revision This is the simplified Wrapped Protocol 5 November 2019
This will be a mix of the Pass-through method and the Wrapped protocol communication to the Pump.
When the MID receives a communication that is in this format;
32 01 03 12 02 03 03 F1 40 B0 33
Byte# | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8-10 | 11 |
E.g. | 32 | 01 | 03 | 12 | 02 | 03 | 03 | F140B0 | 33 |
Desc | STX | ID# | Packet Control | Special Function | Sub OpCode | OpCode | P/Load Length | Payload | ETX |
The MID will notice that the Opcode redirects the payload.
OPCODE #3 = DIGITAL Pumps. This means that all the data in the Payload must be sent to UART2 as its configured baudrate (i.e. that of the Pump).
(NB: OPCODE #7 does the same to Uart3 but at 9600 )
All other Special Functions will work as defined and returned message from the Pump (if there is one) will be received in the same way as it does in the Pass-Through method and returned unwrapped to the Uart1.
That’s it!
Summary
The MID allows any comms not in the Tagging Style protocol to go immediately to Uart2.
All the Tagging Comms work as define previously.
All comms received by Uart2 (from the Pump) will be sent to Uart1 in the same way as in the Pass-through method.
If there is Tag data available, then the Tag Protocol returns the number and the Payload is dumped.