I'm currently working on creating a POS machine for Fuel Pumps for Gas Station and the manufacturer gave me what they call as "Communication Protocols"
I asked for more guidance but they're no longer replying.
This is given in the Communication Protocols they gave me.
- Communication assumption: 9600 BPS, Even Parity,8 data bits,1 stop bit
Data structure of instruction
2.1 Synchronous head: 3 Byte. All instruction and reply must use three 0FCH as synchronous head.
2.2 Instruction: 1 Byte
2.3 Nozzle number: 1 Byte
2.4 Data: length of the data can be changed according to different instruction.
2.5 Checksum: 2 Byte . CRC parity is used which is the CRC parity value of instruction, nozzle number and data bytes.
In the table of Instructions, this is an example
to Read Total, num is 08H and the data to be received is Total sales(4 Hex), total liter (4 Hex), total kilogram (4 Hex).
But how do I send 08H? What is Synchronous Head? It says as stated above "All instruction and reply must use three 0FCH as synchronous head"
I tried to send string to serial port: "0FCH 0FCH 0FCH 08H" but no success.
Can anyone help?
.