aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent19036fd6e89f9ee6676e759359da611e782b85c7 (diff)
downloadtraccar-server-7bc95811ab36d2e7205a0ae0efcb8484f057398a.tar.gz
traccar-server-7bc95811ab36d2e7205a0ae0efcb8484f057398a.tar.bz2
traccar-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')
-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