diff options
-rw-r--r-- | src/org/traccar/protocol/SyrusProtocolDecoder.java | 2 | ||||
-rw-r--r-- | test/org/traccar/protocol/SyrusProtocolDecoderTest.java | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/SyrusProtocolDecoder.java b/src/org/traccar/protocol/SyrusProtocolDecoder.java index 5959715d9..85b1d2798 100644 --- a/src/org/traccar/protocol/SyrusProtocolDecoder.java +++ b/src/org/traccar/protocol/SyrusProtocolDecoder.java @@ -39,7 +39,7 @@ public class SyrusProtocolDecoder extends BaseProtocolDecoder { } private static final Pattern pattern = Pattern.compile( - "R[EP]V" + // Type + "R.." + // Type "(?:\\d{2}" + // Event index "(\\d{4})" + // Week "(\\d))?" + // Day diff --git a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java index 4482d30cb..c001b844f 100644 --- a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java +++ b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java @@ -12,6 +12,9 @@ public class SyrusProtocolDecoderTest extends ProtocolDecoderTest { SyrusProtocolDecoder decoder = new SyrusProtocolDecoder(null, false); + /*verify(decoder.decode(null, null, + ">RGP230615010248-2682523-065236820000003007F4101;ID=0005;#0002;*2A<"));*/ + assertNotNull(decoder.decode(null, null, ">RPV00000+3739438-1220384601512612;ID=1234;*7F")); @@ -30,7 +33,6 @@ public class SyrusProtocolDecoderTest extends ProtocolDecoderTest { assertNotNull(decoder.decode(null, null, ">RPV19105+4538405-0739518900000012;ID=9999;*7A<\r\n")); - } } |