From 595221ee506b59386694da5f4f892d04cd865e63 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 25 Feb 2015 14:18:03 +1300 Subject: Support new Xexun format (fix #1096) --- test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java | 3 +++ test/org/traccar/protocol/XexunProtocolDecoderTest.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'test/org/traccar') diff --git a/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java b/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java index bd8a40640..5e6a336b8 100644 --- a/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Xexun2ProtocolDecoderTest.java @@ -48,6 +48,9 @@ public class Xexun2ProtocolDecoderTest { verify(decoder.decode(null, null, "150216154418,5277,GNRMC,134418.000,A,5533.8973,N,03745.4398,E,0.00,308.85,160215,,,A*7A,F,, imei:864244028033115,10,169.8,F:4.28V,1,132,48269,250,99,6D0D,8572")); + verify(decoder.decode(null, null, + "150224173341,+66961544651,GPRMC,093341.000,A,1344.5716,N,10033.6648,E,0.00,0.00,240215,,,A*68,F,,imei:865328028306149,05,106.4,F:4.01V/ADC1=0.20V/ADC2=0.00V,0,159,955,520,01,5DE8,0399,6.21km")); + } } diff --git a/test/org/traccar/protocol/XexunProtocolDecoderTest.java b/test/org/traccar/protocol/XexunProtocolDecoderTest.java index b1f019721..9b19d3822 100644 --- a/test/org/traccar/protocol/XexunProtocolDecoderTest.java +++ b/test/org/traccar/protocol/XexunProtocolDecoderTest.java @@ -34,7 +34,10 @@ public class XexunProtocolDecoderTest { verify(decoder.decode(null, null, "GNRMC,134418.000,A,5533.8973,N,03745.4398,E,0.00,308.85,160215,,,A*7A,F,, imei:864244028033115,")); - + + verify(decoder.decode(null, null, + "GPRMC,093341.000,A,1344.5716,N,10033.6648,E,0.00,0.00,240215,,,A*68,F,,imei:865328028306149,")); + } } -- cgit v1.2.3