aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/GpsGateProtocolDecoder.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GpsGateProtocolDecoder.java b/src/org/traccar/protocol/GpsGateProtocolDecoder.java
index f755a4ce5..ab9a8a872 100644
--- a/src/org/traccar/protocol/GpsGateProtocolDecoder.java
+++ b/src/org/traccar/protocol/GpsGateProtocolDecoder.java
@@ -87,8 +87,13 @@ public class GpsGateProtocolDecoder extends BaseProtocolDecoder {
}
}
+ // Protocol version check
+ else if (sentence.startsWith("$FRVER,")) {
+ send(channel, "$FRVER,1,1,GpsGate Server 1.0");
+ }
+
// Process data
- else if (sentence.contains("$GPRMC") && deviceId != null) {
+ else if (sentence.startsWith("$GPRMC,") && deviceId != null) {
// Parse message
Matcher parser = pattern.matcher(sentence);