aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-12-29 20:47:41 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-12-29 20:47:41 -0800
commit407147946a7c1a49242a78227351605c2ece9e32 (patch)
tree2b460e881579e41da6c1a6551cddaf236011c450 /src/main
parent790db6295f130e64c8346f13985dd0c15f938b40 (diff)
downloadtrackermap-server-407147946a7c1a49242a78227351605c2ece9e32.tar.gz
trackermap-server-407147946a7c1a49242a78227351605c2ece9e32.tar.bz2
trackermap-server-407147946a7c1a49242a78227351605c2ece9e32.zip
Decode additional attributes
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index 0eb6f8776..4a1324840 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -424,6 +424,14 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0x07:
position.set(Position.KEY_RSSI, buf.readUnsignedByte());
break;
+ case 0x14:
+ position.set(Position.KEY_OUTPUT, buf.readUnsignedByte());
+ break;
+ case 0x15:
+ int input = buf.readUnsignedByte();
+ position.set(Position.KEY_IGNITION, BitUtil.check(input, 2));
+ position.set(Position.KEY_INPUT, input);
+ break;
case 0x97:
position.set(Position.KEY_THROTTLE, buf.readUnsignedByte());
break;
@@ -452,6 +460,9 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0x0B:
position.setAltitude(buf.readShortLE());
break;
+ case 0x16:
+ position.set(Position.PREFIX_ADC + 1, buf.readUnsignedShortLE() * 0.01);
+ break;
case 0x19:
position.set(Position.KEY_BATTERY, buf.readUnsignedShortLE() * 0.01);
break;