From 62379352b9f8f76ea4d72124af89d64c2e809a1c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 18 Jun 2013 22:16:06 +1200 Subject: Fix ST210 decoder (fix #310) --- src/org/traccar/protocol/St210ProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/org/traccar/protocol/St210ProtocolDecoder.java b/src/org/traccar/protocol/St210ProtocolDecoder.java index 5e1ac1bf6..432c9c1fa 100644 --- a/src/org/traccar/protocol/St210ProtocolDecoder.java +++ b/src/org/traccar/protocol/St210ProtocolDecoder.java @@ -33,8 +33,8 @@ public class St210ProtocolDecoder extends BaseProtocolDecoder { DATE("(\\d+);","GPS date (yyyymmdd) Year + Month + Day"), TIME("(\\d{2}:\\d{2}:\\d{2});","GPS time (hh:mm:ss) Hour : Minute : Second"), CELL("(\\w+);","Location Code ID (3 digits hex) + Serving Cell BSIC(2 digits decimal)"), - LAT("(-\\d{2}.\\d+);", "Latitude (+/-xx.xxxxxx)"), - LON("(-\\d{3}.\\d+);", "Longitude (+/-xxx.xxxxxx)"), + LAT("([-\\+]\\d{2}.\\d+);", "Latitude (+/-xx.xxxxxx)"), + LON("([-\\+]\\d{3}.\\d+);", "Longitude (+/-xxx.xxxxxx)"), SPD("(\\d{3}.\\d{3});","Speed in km/h - This value returns to 0 when it is over than 200,000Km"), CRS("(\\d{3}.\\d{2});", "Course over ground in degree"), SATT("(\\d+);", "Number of satellites"), -- cgit v1.2.3