aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/gl100
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2011-11-28 11:47:28 +0000
committerAnton Tananaev <anton.tananaev@gmail.com>2011-11-28 11:47:28 +0000
commitdcdea45edb7ee84b3eafd5593965e30b5cc077ab (patch)
treea86f4acd84f7a7a3d94a774efca8b5dbbcfd7f0c /src/org/traccar/protocol/gl100
parent8b6816289e5c7a4db1cb7ddda5e49e4ace050fa1 (diff)
downloadtrackermap-server-dcdea45edb7ee84b3eafd5593965e30b5cc077ab.tar.gz
trackermap-server-dcdea45edb7ee84b3eafd5593965e30b5cc077ab.tar.bz2
trackermap-server-dcdea45edb7ee84b3eafd5593965e30b5cc077ab.zip
Diffstat (limited to 'src/org/traccar/protocol/gl100')
-rw-r--r--src/org/traccar/protocol/gl100/Gl100ProtocolDecoder.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/gl100/Gl100ProtocolDecoder.java b/src/org/traccar/protocol/gl100/Gl100ProtocolDecoder.java
index e2c576d69..25ce737fc 100644
--- a/src/org/traccar/protocol/gl100/Gl100ProtocolDecoder.java
+++ b/src/org/traccar/protocol/gl100/Gl100ProtocolDecoder.java
@@ -84,6 +84,14 @@ public class Gl100ProtocolDecoder extends OneToOneDecoder {
String sentence = (String) msg;
+ // Send response
+ if (sentence.contains("AT+GTHBD=")) {
+ String response = "+RESP:GTHBD,GPRS ACTIVE,";
+ response += sentence.substring(9, sentence.lastIndexOf(','));
+ response += '\0';
+ channel.write(response);
+ }
+
// Parse message
Matcher parser = pattern.matcher(sentence);
if (!parser.matches()) {