From 7a47baa3c6122ef18f174c52476dc5ca9bc8177e Mon Sep 17 00:00:00 2001 From: drecchia Date: Tue, 5 Jul 2016 16:42:14 -0300 Subject: - Added UDP support for Astra K protocol. --- src/org/traccar/protocol/AstraProtocol.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/org/traccar/protocol/AstraProtocol.java') diff --git a/src/org/traccar/protocol/AstraProtocol.java b/src/org/traccar/protocol/AstraProtocol.java index d0b1d47a5..8498a766a 100644 --- a/src/org/traccar/protocol/AstraProtocol.java +++ b/src/org/traccar/protocol/AstraProtocol.java @@ -15,6 +15,7 @@ */ package org.traccar.protocol; +import org.jboss.netty.bootstrap.ConnectionlessBootstrap; import org.jboss.netty.bootstrap.ServerBootstrap; import org.jboss.netty.channel.ChannelPipeline; import org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder; @@ -38,6 +39,13 @@ public class AstraProtocol extends BaseProtocol { pipeline.addLast("objectDecoder", new AstraProtocolDecoder(AstraProtocol.this)); } }); + serverList.add(new TrackerServer(new ConnectionlessBootstrap(), this.getName()) { + @Override + protected void addSpecificHandlers(ChannelPipeline pipeline) { + pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 1, 2, -3, 0)); + pipeline.addLast("objectDecoder", new AstraProtocolDecoder(AstraProtocol.this)); + } + }); } } -- cgit v1.2.3 From f8a4985da8a7108a42591341102651601c94b131 Mon Sep 17 00:00:00 2001 From: drecchia Date: Tue, 5 Jul 2016 16:54:57 -0300 Subject: - Fix Tabu. --- src/org/traccar/protocol/AstraProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol/AstraProtocol.java') diff --git a/src/org/traccar/protocol/AstraProtocol.java b/src/org/traccar/protocol/AstraProtocol.java index 8498a766a..16e30ec14 100644 --- a/src/org/traccar/protocol/AstraProtocol.java +++ b/src/org/traccar/protocol/AstraProtocol.java @@ -42,7 +42,7 @@ public class AstraProtocol extends BaseProtocol { serverList.add(new TrackerServer(new ConnectionlessBootstrap(), this.getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 1, 2, -3, 0)); + pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 1, 2, -3, 0)); pipeline.addLast("objectDecoder", new AstraProtocolDecoder(AstraProtocol.this)); } }); -- cgit v1.2.3 From 018dfb03dd3baaf326c6748cb777add9ee3443e4 Mon Sep 17 00:00:00 2001 From: drecchia Date: Tue, 5 Jul 2016 20:19:53 -0300 Subject: - Removed frame decoder from astra udp bootstrap. --- src/org/traccar/protocol/AstraProtocol.java | 1 - 1 file changed, 1 deletion(-) (limited to 'src/org/traccar/protocol/AstraProtocol.java') diff --git a/src/org/traccar/protocol/AstraProtocol.java b/src/org/traccar/protocol/AstraProtocol.java index 16e30ec14..0ff338599 100644 --- a/src/org/traccar/protocol/AstraProtocol.java +++ b/src/org/traccar/protocol/AstraProtocol.java @@ -42,7 +42,6 @@ public class AstraProtocol extends BaseProtocol { serverList.add(new TrackerServer(new ConnectionlessBootstrap(), this.getName()) { @Override protected void addSpecificHandlers(ChannelPipeline pipeline) { - pipeline.addLast("frameDecoder", new LengthFieldBasedFrameDecoder(1024, 1, 2, -3, 0)); pipeline.addLast("objectDecoder", new AstraProtocolDecoder(AstraProtocol.this)); } }); -- cgit v1.2.3