diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-10 23:59:42 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-10 23:59:42 +1200 |
commit | 0d2428ff629728822adf5839a312a5ad3896e5e4 (patch) | |
tree | c071182aa5ae00dc1f0a0c919f69fc55936e3bd3 /test/org/traccar/protocol | |
parent | f69261617a88a77ec7e949388a59b0645bb4a8cd (diff) | |
download | trackermap-server-0d2428ff629728822adf5839a312a5ad3896e5e4.tar.gz trackermap-server-0d2428ff629728822adf5839a312a5ad3896e5e4.tar.bz2 trackermap-server-0d2428ff629728822adf5839a312a5ad3896e5e4.zip |
Update jt600 decoder
Diffstat (limited to 'test/org/traccar/protocol')
-rw-r--r-- | test/org/traccar/protocol/Jt600ProtocolDecoderTest.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java index 93b31e908..a1c090cbb 100644 --- a/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java +++ b/test/org/traccar/protocol/Jt600ProtocolDecoderTest.java @@ -22,6 +22,9 @@ public class Jt600ProtocolDecoderTest { byte[] buf3 = {0x24,0x31,0x20,(byte)0x82,0x00,0x29,0x11,0x00,0x1B,0x17,0x10,0x12,0x05,0x33,0x05,0x24,0x38,0x09,(byte)0x97,0x02,0x55,0x33,0x58,0x45,0x00,0x04,0x06,0x1E,0x00,0x03,(byte)0xEE,0x00,0x00,0x00,0x00,0x0C,0x00}; assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf3))); + byte[] buf4 = {0x24,0x60,(byte)0x81,0x11,(byte)0x88,(byte)0x88,0x21,0x00,0x1B,0x09,0x06,0x09,0x08,0x04,0x53,0x22,0x56,0x40,0x25,0x11,0x32,0x42,0x32,(byte)0x9F,0x05,(byte)0x98,0x00,0x00,0x01,0x00,0x3F,0x00,0x00,0x00,0x2D,0x00,(byte)0xAB}; + assertNotNull(decoder.decode(null, null, ChannelBuffers.wrappedBuffer(buf4))); + assertNotNull(decoder.decode(null, null, ChannelBuffers.copiedBuffer("(3110312099,W01,11404.6204,E,2232.9961,N,A,040511,063736,4,7,100,4,17,1,1,company)", Charset.defaultCharset()))); |