aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-28 21:49:13 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-11-28 21:49:13 -0800
commit542e70a1d4aca4fa3260b86993a1b3558d81e508 (patch)
tree4ecb381633d5f847b14c6b1bd26817b0a18d990c /src/main/java/org
parent091bbdebf7e8fc0e4e8623141bb25b6ceb18371a (diff)
downloadtrackermap-server-542e70a1d4aca4fa3260b86993a1b3558d81e508.tar.gz
trackermap-server-542e70a1d4aca4fa3260b86993a1b3558d81e508.tar.bz2
trackermap-server-542e70a1d4aca4fa3260b86993a1b3558d81e508.zip
Support fault codes
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/HuabaoProtocolDecoder.java4
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;