Good afternoon Person, I have looked in several places and still have not found the solution to my problem, I hope you can help me. I am doing a delphi communication with veederRoot through the serial port, veederRoot only accepts to send ASCII command, so far so good. The problem is when I get the answer on the serial port and return inside a Tmemo. The answer is as follows:
Getting RxBuf - rxbuf i201001601221037011000007467058F6466D731A466D970B44A00BE9000000, - 64
Getting RxBuf - rxbuf 0041EC634C0000000002200000745502CCD454D561545DA799A4464B89300000æ - 64
Getting RxBuf - rxbuf 00041FFBE0D000000002J - 19
Getting RxBuf - rxbuf 033000007449508CD44923215460EA6E743DC20D4000000004200C7B20000000, - 64
Getting RxBuf - rxbuf 0 $ - 1
Getting RxBuf - rxbuf 044000007457FF5EC457D1F3445C2950A448556530000000042054A9E0000000 - 64
Taking the RxBuf - rxbuf 00Ò - 1 Taking the RxBuf - rxbuf & C623 - 7
The component I'm using to communicate with the serial port is TComport. In this message I managed to separate only this:
Code - Date and Time - Tank
i20100 16 // 01/22 10:37 - 01
The rest of the message I can not figure out. Here is the structure of this return:
Typical Response Message, Computer Format:
i201TTYYMMDDHHmmTTpssssNNFFFFFFFF ...
TTpssssNNFFFFFFFF & CCCC
Notes:
1. YYMMDDHHmm - current date and time
2. TT - tank number (Decimal, 00 = all)
3. p - product code (an ASCII character [20h-7EH])
4. ssss - Status Bits Tank:
Bit 1 - (LSB) Delivery in progress
Bit 2 - Leak test in progress
Bit 3 - Invalid Fuel Alarm Height (MAG Only Probes)
Bit 16/04 - Not used
5. NN - Number of eight data characters Fields to follow (Hex)
6. FFFFFFFF - ASCII Hex IEEE floats:
1. Volume
2. TC Volume
3. Ullage
4. Height
5. Water
6. Temperature Volume
7. Water
7. & - Data Termination Flag
8. CCCC - Message Checksum
Follow a link for more details (pag.59) link