From 43943e450f58501f61faecd466f88aa5d3eb4482 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 20 Mar 2014 22:41:50 +1300 Subject: Support new GT06 message type (fix #608) --- src/org/traccar/protocol/Gt06ProtocolDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java index 6951b969f..703ebc6cc 100644 --- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java +++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java @@ -61,6 +61,7 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { private static final int MSG_LBS_EXTEND = 0x18; private static final int MSG_LBS_STATUS = 0x19; private static final int MSG_GPS_PHONE = 0x1A; + private static final int MSG_GPS_LBS_EXTEND = 0x1E; private static void sendResponse(Channel channel, int type, int index) { if (channel != null) { @@ -116,7 +117,8 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder { else if (type == MSG_GPS || type == MSG_GPS_LBS || type == MSG_GPS_LBS_STATUS || - type == MSG_GPS_PHONE) { + type == MSG_GPS_PHONE || + type == MSG_GPS_LBS_EXTEND) { // Create new position Position position = new Position(); -- cgit v1.2.3