Dear Sir/Madam,
I hope this email finds you well. I have question when reading the data sent from sensor through UART. The data is in TLV format, and is shown below
Data:
020104030605080704000503c002000043680a009f0000001282a3521a00000006000000000000000100000001000000a00100007616903fb2f86c3f5e48b43e00000000ac1aab3f328702bf1989903e00000000141cb43fa24802bf147c8d3e000000007b1dbd3f940802bfb6478a3e00000000609baf40b93786be9edf103f000000007616903df3e1f6bed501ad3e12b8163e7616103e9623e4bef04dae3e12b8163e7616903ffb14623f7d82c03e12b8163eac1aab3f0ed503bff0ad9f3e12b8163e141cb43f2f7b03bf22c69b3e12b8163e7b1dbd3f3efa02bf46f5953e12b8163e609baf400e4c8dbedb88233f12b8163e7616103e5d561d3fcc9e353f
12b8963e7616103e7096d1be86f6ae3e12b8963eac1aab3f00fa05bfd15eb53e12b8963e141cb43f40cc0fbf4228b43e12b8963eb121583ee14d0a3f17bf0a3f1b14e23e7b1dbd3fb2b5dbbebaee5e3e1b14e23e7616903df2c8f1be03fc8d3e12b896be7616103e6397efbe42b77b3e12b896be7616903dd0bdf3bed0c49a3e12b816be7616103eb9f3f0bee61d883e12b816beb121583e15dfecbe5fd14b3e12b816beac1aab3f5c1d00bfe25f5c3e12b816be141cb43fa849febeadcb383e12b816be7b1dbd3f6a60fdbe0047253e12b816be07000000680000009c006702ce004902dc003d02a50038029e00ba01b9009a02a900a60298009a02d2007402
e1006802a7006302a700e5019700880297008802b6005602c3004a02a3003702a000e101f200ec01e800ef011601210205012b02a8003802cf00f201dc00e801a900e20108000000100000005305003e2b41983f000000000000000009000000040000002b000000
0a00000028000000000000000c92e7bcf263853ec0e3dbbc04e73c3e98fdd53f0bc4b23ff0e7703ddc9a763e000000000b0000001a00000000fffffffe000000fffffffe0000ffff00ff0000000000ffffff000000000000.
Since i want to check if static object has been detected and the information of it. Therefore i am looking at type 10 of the tlv. and below data is the part that contain type 10 data and is in bold, 0a00000028000000000000000c92e7bcf263853ec0e3dbbc04e73c3e98fdd53f0bc4b23ff0e7703ddc9a763e00000000, and the data is also shown below with comment for better understanding,
0a000000 (tlv type)
28000000 (length/num of bytes)
00000000 (Target ID)
0c92e7bc (Pos X [m])
f263853e (Pos Y [m])
c0e3dbbc (vel X [m/s])
04e73c3e (vel Y [m/s])
98fdd53f (acc X)
0bc4b23f (Acc Y)
f0e7703d (Pos Z)
dc9a763e (vel Z)
00000000 (acc Z)
I would like to ask the following questions:
how to read the data in meters? Take the Pos X as example, is it giving the position of the target? How can I know the position of the sensors?
Are the data in bytes and is read like bce7920c for posX in hex if the original data is 0c92e7bc? But It will be so big if converted to the meters, and how can i find the distance beween the sensors and target?
Thank you in advance for your help. I look forward to hearing back from you soon.
Best regards,
Kevin