aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorManicoW <ManicoW@users.noreply.github.com>2014-11-12 10:55:28 +0100
committerManicoW <ManicoW@users.noreply.github.com>2014-11-12 10:55:28 +0100
commit7bc95811ab36d2e7205a0ae0efcb8484f057398a (patch)
treeffaa89ca91bf8286ca5eab7e3a5d6ac28a35ab74 /src/org/traccar/protocol
parent19036fd6e89f9ee6676e759359da611e782b85c7 (diff)
downloadtrackermap-server-7bc95811ab36d2e7205a0ae0efcb8484f057398a.tar.gz
trackermap-server-7bc95811ab36d2e7205a0ae0efcb8484f057398a.tar.bz2
trackermap-server-7bc95811ab36d2e7205a0ae0efcb8484f057398a.zip
Update HaicomProtocolDecoder.java
Modified Regex according to a HI-602X device message, keeping it compatible with the test message
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/HaicomProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/HaicomProtocolDecoder.java b/src/org/traccar/protocol/HaicomProtocolDecoder.java
index ff7445451..3531ce0d0 100644
--- a/src/org/traccar/protocol/HaicomProtocolDecoder.java
+++ b/src/org/traccar/protocol/HaicomProtocolDecoder.java
@@ -48,11 +48,11 @@ public class HaicomProtocolDecoder extends BaseProtocolDecoder {
"(\\d+)," + // Speed
"(\\d+)," + // Course
"(\\d+)," + // Status
- "(\\d+)," + // GPRS counting value
- "(\\d+)," + // GPS power saving counting value
+ "(\\d*)," + // GPRS counting value
+ "(\\d*)," + // GPS power saving counting value
"(\\d+)," + // Switch status
"(\\d+)" + // Relay status
- "[LH]{2}" + // Power status
+ "[LH]{0,2}" + // Power status
"\\#V(\\d+)"); // Battery
@Override