aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-13 19:30:31 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-13 19:30:31 +1300
commit2e6d54feff3a364aa7e86b7c53beed6d3682b169 (patch)
tree00aa514905c2773610aeda1d133b2cb27116feff /src/org/traccar
parent6b11a6e00f67664ef622e458832e820bc6f0aed5 (diff)
downloadtraccar-server-2e6d54feff3a364aa7e86b7c53beed6d3682b169.tar.gz
traccar-server-2e6d54feff3a364aa7e86b7c53beed6d3682b169.tar.bz2
traccar-server-2e6d54feff3a364aa7e86b7c53beed6d3682b169.zip
Add Teltonika test case
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 80f0045d5..fcbdfc564 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -69,6 +69,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
public static final int CODEC_GH3000 = 0x07;
public static final int CODEC_FM4X00 = 0x08;
public static final int CODEC_12 = 0x0C;
+ public static final int CODEC_16 = 0x10;
private void decodeSerial(Position position, ChannelBuffer buf) {
@@ -344,7 +345,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
}
// Read 8 byte data
- if (codec == CODEC_FM4X00) {
+ if (codec == CODEC_FM4X00 || codec == CODEC_16) {
int cnt = buf.readUnsignedByte();
for (int j = 0; j < cnt; j++) {
decodeOtherParameter(position, buf.readUnsignedByte(), buf, 8);