diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-11-28 21:49:13 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-11-28 21:49:13 -0800 |
commit | 542e70a1d4aca4fa3260b86993a1b3558d81e508 (patch) | |
tree | 4ecb381633d5f847b14c6b1bd26817b0a18d990c /src/main/java/org/traccar/protocol | |
parent | 091bbdebf7e8fc0e4e8623141bb25b6ceb18371a (diff) | |
download | trackermap-server-542e70a1d4aca4fa3260b86993a1b3558d81e508.tar.gz trackermap-server-542e70a1d4aca4fa3260b86993a1b3558d81e508.tar.bz2 trackermap-server-542e70a1d4aca4fa3260b86993a1b3558d81e508.zip |
Support fault codes
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java index af8c5ba09..297f26f51 100644 --- a/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java @@ -322,6 +322,10 @@ public class HuabaoProtocolDecoder extends BaseProtocolDecoder { case 0x8E: position.set(Position.KEY_FUEL_LEVEL, buf.readUnsignedByte()); break; + case 0xA0: + String codes = buf.readCharSequence(length, StandardCharsets.US_ASCII).toString(); + position.set(Position.KEY_DTCS, codes.replace(',', ' ')); + break; case 0xCC: position.set(Position.KEY_ICCID, buf.readCharSequence(20, StandardCharsets.US_ASCII).toString()); break; |