aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/BceProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-02-28 12:32:00 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-02-28 12:32:00 +1300
commit66b05f99cd91989baf85f15986a29eea6dbd6f8b (patch)
tree8cc560cf15cc7752620884739606c56c1a537fc1 /src/org/traccar/protocol/BceProtocolDecoder.java
parent183273d381c132ff657416b6530a193dac157b0d (diff)
downloadtrackermap-server-66b05f99cd91989baf85f15986a29eea6dbd6f8b.tar.gz
trackermap-server-66b05f99cd91989baf85f15986a29eea6dbd6f8b.tar.bz2
trackermap-server-66b05f99cd91989baf85f15986a29eea6dbd6f8b.zip
Update BCE test case
Diffstat (limited to 'src/org/traccar/protocol/BceProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/BceProtocolDecoder.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/BceProtocolDecoder.java b/src/org/traccar/protocol/BceProtocolDecoder.java
index 1b65f85da..d07be6ef4 100644
--- a/src/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/org/traccar/protocol/BceProtocolDecoder.java
@@ -36,8 +36,11 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
super(dataManager, protocol, properties);
}
- private static final int MSG_HEARTBEAT = 0x1A;
- private static final int MSG_DATA = 0x10;
+ private static final int MSG_ASYNC_STACK = 0xA5;
+ private static final int MSG_STACK_COFIRM = 0x19;
+ private static final int MSG_TIME_TRIGGERED = 0xA0;
+ private static final int MSG_OUTPUT_CONTROL = 0x41;
+ private static final int MSG_OUTPUT_CONTROL_ACK = 0xC1;
@Override
protected Object decode(
@@ -45,6 +48,9 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
throws Exception {
ChannelBuffer buf = (ChannelBuffer) msg;
+
+ String imei = String.format("%015d", buf.readLong());
+
/*buf.skipBytes(2); // header
buf.readByte(); // size