aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/At2000ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-12 02:29:56 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-01-12 01:29:56 +1300
commitc03df5359224d86c8d1069872ddae52c0c35c225 (patch)
tree26f27d1fae6220bfd4b57806ad4a8bc7114d6166 /src/org/traccar/protocol/At2000ProtocolDecoder.java
parente54122e22725bae7a962d58e06a497526aed46cb (diff)
downloadtrackermap-server-c03df5359224d86c8d1069872ddae52c0c35c225.tar.gz
trackermap-server-c03df5359224d86c8d1069872ddae52c0c35c225.tar.bz2
trackermap-server-c03df5359224d86c8d1069872ddae52c0c35c225.zip
Acknowledge AT2000 message fragments
Diffstat (limited to 'src/org/traccar/protocol/At2000ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/At2000ProtocolDecoder.java15
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);
}