diff options
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/gl100/Gl100ProtocolDecoder.java | 8 |
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()) { |