Thank you for explaining the code.
and this is real time data that I get when the truck in loading condition.
02 06 03 07 02 4d 32 10 02 42 10 02 47 10 03 8c 05 9f 10 03 4b 10 02 a7 10 03 00 10 02 00 00 10 03 03 8b
and I'm trying to split the result data from the truck controller, Like This :
02 06 03 07 >>>>>>>>>>>>>>>>>>>>>>> From Truck Controller
02 4d 32 10 02 >>>>>>>>>>>>>>>>>>>>> Header
42 10 02 >>>>>>>>>>>>>>>>>>>>>>>>>> Suspension Pressure (Sometime Only 2 Byte, When the load mass 0.0 Tons)
47 10 03 >>>>>>>>>>>>>>>>>>>>>>>>>> Suspension Pressure (Sometime Only 2 Byte, When the load mass 0.0 Tons)
8c 05 >>>>>>>>>>>>>>>>>>>>>>>>>>>> Suspension Pressure (Sometime Only 2 Byte, When the load mass 0.0 Tons)
9f 10 03 >>>>>>>>>>>>>>>>>>>>>>>>>>Suspension Pressure (Sometime Only 2 Byte, When the load mass 0.0 Tons)
4b 10 02 >>>>>>>>>>>>>>>>>>>>>>>>> Inclination Of The Truck (Sometime 2 or 1 Byte)
a7 10 03 >>>>>>>>>>>>>>>>>>>>>>>>> Payload (Sometime Only 2 or 1 Byte)
00 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Current Speed (only 1 byte)
10 02 >>>>>>>>>>>>>>>>>>>>>>>>>>>> DIG STST (Sometime 2 or 1 Byte)
00 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ANA 1 (only 1 byte)
00 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ANA 2 (only 1 byte)
10 03 >>>>>>>>>>>>>>>>>>>>>>>>>>> Status Of Dump Truck (Sometime Only 2 or 1 Byte)
03 8b >>>>>>>>>>>>>>>>>>>>>>>>>>> ETX & BCC
Ex: I read the Payload value:
a7 10 03 >>>>>>>>> Payloads,
I convert it to decimal, If I remove the 10 value, only A7 and 03.
then I read from the back to 03 A7,
3A7(HEX) = 935(DECIMAL)
to Decimal 1 Place = 93.5 Tons, and this is the same as shown on the truck monitor screen
Can You help Me Please.
what i need is :
- Split the data and select only the real time data
- Reading on Arduino Serial Monitor With :
-Suspension Pressure 1:
-Suspension Pressure 2:
-Suspension Pressure 3:
-Suspension Pressure 4:
-Payload :
-Current Speed ;
-Dump Truck Status :
and I am very confused to split the data, because I am a newbie in this case,