From c03df5359224d86c8d1069872ddae52c0c35c225 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 12 Jan 2017 02:29:56 +1300 Subject: Acknowledge AT2000 message fragments --- src/org/traccar/protocol/At2000ProtocolDecoder.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/org/traccar/protocol/At2000ProtocolDecoder.java') 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); } -- cgit v1.2.3