Looks like either the data is invalid or it's not decoded correctly. Do you have the protocol documentation for your device?
Sure, this is the protocol document. VL502 Protocol Document
Great. You can use that documentation to break down the sample and see what the issue is. Feel free to post the breakdown here afterwards.
Here is my attempt at the breakdown of the sample, to the best of my ability.
9.14 Data uplink transparent transmission—0x0900 (Page 32)
7e0900001f4f07788ef87d01000cf0230223150215010203013800000c000b029dc58c04b99b60230223171822507e
7e
0900
001f
4f07788ef87d
0100
0cf0
230223150215 (Event time)
01 (buffered data)
02 (Vehicle type)
03 (upload data related with alarm messages and driving behavior - Page 32) I believe this is where we hit line #L847
013800000c000b029dc58c04b99b6023022317182250
7e
At this point, I am stuck on page 33, Section 9.14.1.1 due to limited know-how on this.
7e
0900
001f
4f07788ef87d
0100
0cf0
230223150215 (Event time)
01 (buffered data)
02 (Vehicle type)
03 (upload data related with alarm messages and driving behavior) "9.14.1.3 Report of alarm and driving behavior data 0x03: Page 44"
01
38
00
000c000b (status)
029dc58c (latitude)
04b99b60 (longitude)
230223171822
50
7e
Tried a little more and was able to get the status, latitude, and longitude breakdown as well. Hope this helps.
I am not able to figure out what the issue is, but can you please help?
Looks like you've missed the part where 7d01
should be replaced with 7d
, so I think the rest of your breakdown is incorrect. See the "5.4.2 Identifier" section for more details.
I hope, I am close.
9.14 Data uplink transparent transmission—0x0900 (Page 32)
7e
0900 (message id)
001f (message body property)
4f07788ef87d (sn)
000c (sequenc number)
f0 (Terminal data uplink transparent transmission--0x0900F0)
230223150215 (Event time)
01 (buffered data)
02 (Vehicle type)
03 (upload data related with alarm messages and driving behavior)
013800
000c000b (status)
029dc58c (latitude)
04b99b60 (longitude)
230223171822
50
7e
For the latitude, longitude, and status value above I did a breakdown based on the document, not based on what the code does.
It seems like the After 0x03 (the alarm message and driving behavior) is where the problem is @ line 852 the switch case in the decoder the default case is executed.
I like to believe the problem is there.
I will contact via support email for this.
This was helpful. The issue was actually on line 850, not with the switch case itself. The id is one byte long instead of two bytes, like other types.
Fixed it here:
https://github.com/traccar/traccar/commit/3331593759a21a1fa36cb64332e14828f7e522f0
Thank you very much Anton, really appreciate your help.
Hello,
Traccar:
v5.6
Device Model:
VL502 OBD II Tracker
IMEI:
868935060010210
Protocol:
Huabao
Port:
5015
Not sure if this is an issue/bug or if I am doing something wrong.
4f07788ef87d
. It returned an unknown deviceAfter adding the partial IMEI from the log (shared below), got the latitude range error: