From 5180e877de462a5950878d69d3ba33dc9ebf790b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 16 Apr 2019 21:02:14 -0700 Subject: Replicate exact server response --- src/main/java/org/traccar/protocol/SanulProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java b/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java index bd29828b3..036d1ee51 100644 --- a/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/SanulProtocolDecoder.java @@ -41,7 +41,7 @@ public class SanulProtocolDecoder extends BaseProtocolDecoder { if (channel != null) { ByteBuf response = Unpooled.buffer(); response.writeByte(0xaa); // header - response.writeShortLE(0); // reserved + response.writeShortLE(0x85da); // reserved response.writeShortLE(15); // length response.writeByte(1); // edition response.writeShortLE(MSG_RESPONSE); @@ -49,7 +49,7 @@ public class SanulProtocolDecoder extends BaseProtocolDecoder { response.writeIntLE(0); // command id response.writeByte(0); // status response.writeByte(0); // result length - response.writeIntLE(0); // result data ? + response.writeIntLE(0x20000); // result data ? channel.writeAndFlush(new NetworkMessage(response, channel.remoteAddress())); } } -- cgit v1.2.3