diff options
Diffstat (limited to 'src/org/traccar/protocol/At2000ProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/At2000ProtocolDecoder.java | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/org/traccar/protocol/At2000ProtocolDecoder.java b/src/org/traccar/protocol/At2000ProtocolDecoder.java index 989e0d136..58b6f44e8 100644 --- a/src/org/traccar/protocol/At2000ProtocolDecoder.java +++ b/src/org/traccar/protocol/At2000ProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2016 Anton Tananaev (anton@traccar.org) + * Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,17 +48,6 @@ public class At2000ProtocolDecoder extends BaseProtocolDecoder { private Cipher cipher; - private static void sendResponse(Channel channel) { - if (channel != null) { - ChannelBuffer response = ChannelBuffers.directBuffer(ByteOrder.LITTLE_ENDIAN, 2 * BLOCK_LENGTH); - response.writeByte(MSG_ACKNOWLEDGEMENT); - response.writeMedium(ChannelBuffers.swapMedium(1)); - response.writeByte(0x00); // success - response.writerIndex(2 * BLOCK_LENGTH); - channel.write(response); - } - } - private static void sendRequest(Channel channel) { if (channel != null) { ChannelBuffer response = ChannelBuffers.directBuffer(ByteOrder.LITTLE_ENDIAN, BLOCK_LENGTH); @@ -136,8 +125,6 @@ public class At2000ProtocolDecoder extends BaseProtocolDecoder { } - sendResponse(channel); - if (type == MSG_DEVICE_ID) { sendRequest(channel); } |