diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-23 11:50:12 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-23 11:50:12 +1200 |
commit | 7dec68dabcb5690f7c4092a0d0df17d787c9176c (patch) | |
tree | 10a1893923f95291f82dc61a47c1caa51161736d /test/org/traccar | |
parent | 102c142c5868ab572c23eb3a3f65979c68180fc1 (diff) | |
download | trackermap-server-7dec68dabcb5690f7c4092a0d0df17d787c9176c.tar.gz trackermap-server-7dec68dabcb5690f7c4092a0d0df17d787c9176c.tar.bz2 trackermap-server-7dec68dabcb5690f7c4092a0d0df17d787c9176c.zip |
Extend PT502 decoder (fix #1263)
Diffstat (limited to 'test/org/traccar')
-rw-r--r-- | test/org/traccar/protocol/Pt502ProtocolDecoderTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java index 0f63c6fd7..83ddef991 100644 --- a/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Pt502ProtocolDecoderTest.java @@ -12,6 +12,9 @@ public class Pt502ProtocolDecoderTest extends ProtocolDecoderTest { Pt502ProtocolDecoder decoder = new Pt502ProtocolDecoder(null); verify(decoder.decode(null, null, + "$POS,11023456,033731.000,A,0335.2617,N,09841.1587,E,0.00,88.12,210615,,,A/0000,0/1f8/388900//f33//")); + + verify(decoder.decode(null, null, "$POS,6094,205523.000,A,1013.6223,N,06728.4248,W,0.0,99.3,011112,,,A/00000,00000/0/23895000//")); verify(decoder.decode(null, null, @@ -23,8 +26,8 @@ public class Pt502ProtocolDecoderTest extends ProtocolDecoderTest { verify(decoder.decode(null, null, "$POS,6095,233344.000,V,0933.0451,N,06912.3360,W,,,151112,,,N/00000,00000/0/1677600/")); - /*verify(decoder.decode(null, null, - "$PHO0,6091,233606.000,A,0902.9855,N,06944.3654,W,0.0,43.8,141112,,,A/00010,00000/0/224000//"));*/ + verify(decoder.decode(null, null, + "$PHO0,6091,233606.000,A,0902.9855,N,06944.3654,W,0.0,43.8,141112,,,A/00010,00000/0/224000//")); verify(decoder.decode(null, null, "$POS,353451000164,082405.000,A,1254.8501,N,10051.6752,E,0.00,237.99,160513,,,A/0000,0/0/55000//a71/")); |