diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-04 11:18:42 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-04 11:18:42 +1200 |
commit | 6396a2ec497fad786444be13884ad569526dafce (patch) | |
tree | af3c87da19c7c6cf0452e777d77709fc0e903e56 /test/org/traccar | |
parent | 824a01c093700929ec3d2e581fef5e252f64e129 (diff) | |
download | trackermap-server-6396a2ec497fad786444be13884ad569526dafce.tar.gz trackermap-server-6396a2ec497fad786444be13884ad569526dafce.tar.bz2 trackermap-server-6396a2ec497fad786444be13884ad569526dafce.zip |
Implement new Totem protocol format
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/TotemProtocolDecoderTest.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/org/traccar/protocol/TotemProtocolDecoderTest.java b/test/org/traccar/protocol/TotemProtocolDecoderTest.java index 237e77612..8ff2e6f11 100644 --- a/test/org/traccar/protocol/TotemProtocolDecoderTest.java +++ b/test/org/traccar/protocol/TotemProtocolDecoderTest.java @@ -11,9 +11,16 @@ public class TotemProtocolDecoderTest extends ProtocolTest { TotemProtocolDecoder decoder = new TotemProtocolDecoder(new TotemProtocol()); verifyPosition(decoder, text( + "$$0128AA864244026065291|18001800140916020524401100000000000000000000000027BA0E57063100000001.200000002237.8119N11403.5075E05202D")); + + verifyPosition(decoder, text( + "$$0128AA867965024919124|10010800160223032415401203270321032103270189000027BA0E4E001800200001.000000002237.7581N11403.5088E000957")); + + verifyPosition(decoder, text( "$$0108AA863835024426319|18004000160216160756411100007DCD0000111000000000.800000000316.3519N10228.5086E126522")); - // $$0128AA867521029231005|1880100015101802314842140000000000000000000000001AB48366093127600000.900000000806.1947N09818.4795E080355 + verifyPosition(decoder, text( + "$$0128AA867521029231005|1880100015101802314842140000000000000000000000001AB48366093127600000.900000000806.1947N09818.4795E080355")); verifyPosition(decoder, text( "$$0108AA864244026063437|1A0000001401010101014111000027BA0E57003100000000.000000000000.0000N00000.0000E048156")); |