aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-03-20 22:41:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-03-20 22:41:50 +1300
commit43943e450f58501f61faecd466f88aa5d3eb4482 (patch)
tree809c1812b3e2aeb19274d2cb87ae736b5d5e9cb9 /src/org/traccar
parentc601456e84d2da9200815c07a8686b8f6f13142c (diff)
downloadtraccar-server-43943e450f58501f61faecd466f88aa5d3eb4482.tar.gz
traccar-server-43943e450f58501f61faecd466f88aa5d3eb4482.tar.bz2
traccar-server-43943e450f58501f61faecd466f88aa5d3eb4482.zip
Support new GT06 message type (fix #608)
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
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();