Transform incoming Veederroot data

Asked

Viewed 89 times

1

Good afternoon Person, I have looked in several places and still can not find the solution to my problem, I hope you can help me.
I’m making a communication in Delhi 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:

Ta picking up from Rxbuf - rxbuf i201001601221037011000007467058F6466D731A466D970B44A00BE9000000 - 64

Ta picking up from Rxbuf - rxbuf 0041EC634C0000000002200000745502CCD454D561545DA799A4464B89300000æ - 64

Ta picking up from Rxbuf - rxbuf 00041FFBE0D00002J - 19

Ta picking up from Rxbuf - rxbuf 033000007449508CD44923215460EA6E743DC20D4000000004200C7B20000000 - 64

Ta taking from Rxbuf - rxbuf 0$ - 1

Ta catching from Rxbuf - rxbuf 044000007457FF5EC457D1F3445C2950A4456530000000042054A9E0000000 - 64

Ta Taking of Rxbuf - rxbuf00? - 1 Ta picking up from Rxbuf - rxbuf &&C623 - 7


The component that I’m using to communicate with the serial port is Tcomport. In this message I was able to separate just that:
Code - Date and Time - Tank
i20100 16//01/22 10:37 - 01
The rest of the message I am not able to unravel. It follows the structure of this return:

Typical Response Message, computer format:

i201TTYYMMDDHHmmTTpssssNFFFFFFFFFF...
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 - Tank Status Bits:
Bit 1 - (LSB) Delivery in progress
Bit 2 - Leakage test in progress
Bit 3 - Invalid Height Fuel Alarm (MAG Probes Only)
Bit 16/04 - Not used
5. NN - Number of eight characters of data Following fields (Hex)
6. FFFFFFFF - ASCII Hex IEEE floats:
1. Volume
2. TC Volume
3. Ullage
4. Height
5. Water
6. Temperature Volume
7. Water
7. && - Flag Data Termination
8. CCCC - Checksum Message

Follow a link for more details (pag.59) https://translate.google.com/translate?sl=en&tl=pt&js=y&prev=_t&hl=en-Br&ie=UTF-8&u=http%3A%2F%2Fwww.chipkin.com%2Ffiles%2Fliz%2F576013-635.pdf&edit-text=

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.