diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-17 07:13:09 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-17 07:13:09 -0800 |
commit | f632b15098776b35910834aabc35bb62737c6d78 (patch) | |
tree | 6509f75b7d629f636c1d80317c5e2b3488461293 /src/test/java/org/traccar/protocol | |
parent | 0c8b5c1ab1f83cc0fc6d2f17cdf808388b383e14 (diff) | |
download | trackermap-server-f632b15098776b35910834aabc35bb62737c6d78.tar.gz trackermap-server-f632b15098776b35910834aabc35bb62737c6d78.tar.bz2 trackermap-server-f632b15098776b35910834aabc35bb62737c6d78.zip |
Handle MT600 no location messages
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r-- | src/test/java/org/traccar/protocol/Tlt2hProtocolDecoderTest.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/protocol/Tlt2hProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/Tlt2hProtocolDecoderTest.java index a64a10450..8a7ba84ab 100644 --- a/src/test/java/org/traccar/protocol/Tlt2hProtocolDecoderTest.java +++ b/src/test/java/org/traccar/protocol/Tlt2hProtocolDecoderTest.java @@ -11,6 +11,14 @@ public class Tlt2hProtocolDecoderTest extends ProtocolTest { var decoder = inject(new Tlt2hProtocolDecoder(null)); + verifyPositions(decoder, false, text( + "#868105044690301#MT600+#0000#0#0#129#40#0#AUTOLOW#1\r\n" + + "#072030fa20c$GPRMC,,V,,,,,,,,,,A*5C\r\n")); + + verifyPositions(decoder, text( + "#868105044690301#MT600+#0000#0#0#143#40#0#AUTO#1\r\n", + "#072030fcf21$GPRMC,155616.00,A,4931.9210,N,09652.5290,W,53.80,90.00,150224,,,A*48\r\n")); + verifyAttribute(decoder, text( "#867665041689485#MT700N#0000#HT#1\r\n", "#5065$GPRMC,148996.00,A,2485.2458,N,01258.4535,E,,,151348,,,A*5D\r\n"), @@ -24,7 +32,7 @@ public class Tlt2hProtocolDecoderTest extends ProtocolTest { "#862255061825896#MT710#0000#TOWED#1\r\n", "#39#$WIFI,015259.00,A,-47,7483C2DBC0B0,-48,7683C2ABC0B0,-48,7683C29BC0B0,-48,7683C2CBC0B0,-48,7683C2BBC0B0,151123*74\r\n")); - verifyNull(decoder, text( + verifyPositions(decoder, false, text( "#860517049471362#MT700#0000#AUTO#1\r\n", "#36$GPRMC,,V,,,,,,,,,,A*5C\r\n")); |