diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-08 14:30:27 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-08 14:30:27 -0700 |
commit | b40358c4cee2e2d9b5b11b6264f4974c508a4ab9 (patch) | |
tree | 5fbe891298c154aca67c66db88dd1c766e5dd5a8 /src/test/java/org | |
parent | e80f2ce8b6d1a9aba9277168b0b365d610c31f8e (diff) | |
download | trackermap-server-b40358c4cee2e2d9b5b11b6264f4974c508a4ab9.tar.gz trackermap-server-b40358c4cee2e2d9b5b11b6264f4974c508a4ab9.tar.bz2 trackermap-server-b40358c4cee2e2d9b5b11b6264f4974c508a4ab9.zip |
Add Envotech SLM protocol
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/traccar/protocol/EnvotechProtocolDecoderTest.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/EnvotechProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/EnvotechProtocolDecoderTest.java new file mode 100644 index 000000000..6a455975d --- /dev/null +++ b/src/test/java/org/traccar/protocol/EnvotechProtocolDecoderTest.java @@ -0,0 +1,24 @@ +package org.traccar.protocol; + +import org.junit.Test; +import org.traccar.ProtocolTest; + +public class EnvotechProtocolDecoderTest extends ProtocolTest { + + @Test + public void testDecode() throws Exception { + + var decoder = new EnvotechProtocolDecoder(null); + + verifyPosition(decoder, text( + "$80SLM,02,F,AB0010,130410155921,431750216,000040,0000,,00000000,'13041015592110476673N10111459E001281*2A")); + + verifyPosition(decoder, text( + "$80SLM,82,F,AB0010,130410155921,431750216,000040,0000,,00000000,'13041015592110476673N10111459E001281@B0,F,C456,038,00,M234567,,,1A2A3A4A5A6A*4E")); + + verifyPosition(decoder, text( + "$80SLM,60,000F,F016109,290322100445,AF2463902,000406,0000,000,00018780,54000000'29032209493500406302S03966062E000348*E637")); + + } + +} |