diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-01-09 10:00:50 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-01-09 10:00:50 +1300 |
commit | 88cce4463160d31923d3be2ad893a436a8aef8cf (patch) | |
tree | 7d4f7372c11deff8dc12b383f93d8f4b66d270e9 /src/org/traccar/protocol | |
parent | 85ee9ee4f04a61e8c9244f3446b9cdf38c318e41 (diff) | |
download | trackermap-server-88cce4463160d31923d3be2ad893a436a8aef8cf.tar.gz trackermap-server-88cce4463160d31923d3be2ad893a436a8aef8cf.tar.bz2 trackermap-server-88cce4463160d31923d3be2ad893a436a8aef8cf.zip |
Suntech decoder new format
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/SuntechProtocolDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/SuntechProtocolDecoder.java b/src/org/traccar/protocol/SuntechProtocolDecoder.java index 868425e8d..cdfca7905 100644 --- a/src/org/traccar/protocol/SuntechProtocolDecoder.java +++ b/src/org/traccar/protocol/SuntechProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2013 - 2015 Anton Tananaev (anton.tananaev@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,7 +39,8 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder { static private Pattern pattern = Pattern.compile( "S.\\d{3}(?:\\w{3})?;" + // Header "(?:[^;]+;)?" + - "(\\d{6});" + // Device ID + "(\\d{6,});" + // Device ID + "(?:\\d+;)?" + "(\\d+);" + // Version "(\\d{4})(\\d{2})(\\d{2});" + // Date (YYYYMMDD) "(\\d{2}):(\\d{2}):(\\d{2});" + // Time (HH:MM:SS) |