From 93eb3766f477b16a8663eb63c2b276935f5945a9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 23 Jan 2013 19:53:22 +1300 Subject: Fix megastek regular expression --- src/org/traccar/protocol/MegastekProtocolDecoder.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/MegastekProtocolDecoder.java b/src/org/traccar/protocol/MegastekProtocolDecoder.java index 77d24837a..0a25f0b4a 100644 --- a/src/org/traccar/protocol/MegastekProtocolDecoder.java +++ b/src/org/traccar/protocol/MegastekProtocolDecoder.java @@ -32,17 +32,15 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder { super(serverManager); } - //STX,102110830074542,$GPRMC,114229.000,A,2238.2024,N,11401.9619,E,0.00,0.00,310811,,,A*64 - //,F,LowBattery,imei:012207005553885,03,113.1,Battery=24%,,1,460,01,2531,647E;57 static private Pattern pattern = Pattern.compile( "STX," + - "\\d+," + // Identifier (not IMEI) + "[^,]+," + // Identifier (not IMEI) "\\$GPRMC," + "(\\d{2})(\\d{2})(\\d{2})\\.\\d+," + // Time (HHMMSS.SSS) "([AV])," + // Validity - "(\\d{2})(\\d{2}\\.\\d+)," + // Latitude (DDMM.MMMM) + "(\\d+)(\\d{2}\\.\\d+)," + // Latitude (DDMM.MMMM) "([NS])," + - "(\\d{3})(\\d{2}\\.\\d+)," + // Longitude (DDDMM.MMMM) + "(\\d+)(\\d{2}\\.\\d+)," + // Longitude (DDDMM.MMMM) "([EW])," + "(\\d+\\.\\d{2})?," + // Speed "(\\d+\\.\\d{2})?," + // Course -- cgit v1.2.3