According to this protocol document, page 21, point 5.4.1.4, it should be "normal".
7878 = start bits
0a = packet length
13 = protocol number
45 = terminal information content
f1 = voltage level
03 = gsm signal strength
0201 = language/extension bit status
0181 = serial number
856d = error check
0d0a = stop bits
0x45 = 01000101
0 = oil and electricity on
1 = gps positionied
000 = normal
1 = powering and charging
0 = acc low
1 = defense on
Am I correct?
It gets it from "language/extension bit status".
So I need to make an adjustment to Gt06ProtocolDecoder? Can you please suggest about what kind of adjustment I should make?
Thank you
What do you mean? What adjustments?
So that the raw data above isn't interpreted as powercut alarm, since no actual alarm has occured.
You need to find the correct protocol documentation first.
Actually we can use this doc. And my second post above is how it should be decoded based on that doc.
Isn't it the same doc? Based on that doc, your device is sending the alarm.
I just confirm it to Wanway, and they say the raw data above is just a heartbeat packet, and contain no alarm.
Then why the alarm extension is set? It should be zero.
No, alarm extension is not set. It's just "language/extension bit status", not "alarm/language/extension bit status".
"alarm/language/extension bit status" will only appear in Alarm Packet (page 15, point 5.3.1), identified with protocol number 0x26
Whereas in my raw data above, the protocol number is 0x13, not 0x26.
Am I missing something?
I see this under the heartbeat (0x13) documentation:
To me it seems like an indication that it's an alarm extension. And to have no alarm, it should be zero. In your case it's not.
The hex for language/extension bit status is 0201, the 2nd byte is 0x01 and it means no alarm in chinese. (the 1st byte is for voltage calculation, right?)
On that doc, the example is 7E02. And the 2nd byte is 0x02 which means no alarm in english.
Where did you find anything about voltage? The first byte is alarm and the second byte is the language. First byte 0x00 means on alarm and the second byte means language.
Hello,
My traccar server detects a "powerCut" alarm, but actually nothing is happening. Why could this be happening?
The device model is Wanway EV02.
Raw data:
Thank you