aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup/default.xml2
-rw-r--r--src/org/traccar/protocol/Ivt401Protocol.java (renamed from src/org/traccar/protocol/Avt401Protocol.java)8
-rw-r--r--src/org/traccar/protocol/Ivt401ProtocolDecoder.java (renamed from src/org/traccar/protocol/Avt401ProtocolDecoder.java)4
-rw-r--r--test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java (renamed from test/org/traccar/protocol/Avt401ProtocolDecoderTest.java)4
4 files changed, 9 insertions, 9 deletions
diff --git a/setup/default.xml b/setup/default.xml
index 6d8bd278f..1d6775731 100644
--- a/setup/default.xml
+++ b/setup/default.xml
@@ -221,6 +221,6 @@
<entry key='dway.port'>5150</entry>
<entry key='recoda.port'>5151</entry>
<entry key='oko.port'>5152</entry>
- <entry key='avt401.port'>5153</entry>
+ <entry key='ivt401.port'>5153</entry>
</properties>
diff --git a/src/org/traccar/protocol/Avt401Protocol.java b/src/org/traccar/protocol/Ivt401Protocol.java
index e4a7e3df6..b58601ba1 100644
--- a/src/org/traccar/protocol/Avt401Protocol.java
+++ b/src/org/traccar/protocol/Ivt401Protocol.java
@@ -24,10 +24,10 @@ import org.traccar.TrackerServer;
import java.util.List;
-public class Avt401Protocol extends BaseProtocol {
+public class Ivt401Protocol extends BaseProtocol {
- public Avt401Protocol() {
- super("avt401");
+ public Ivt401Protocol() {
+ super("ivt401");
}
@Override
@@ -37,7 +37,7 @@ public class Avt401Protocol extends BaseProtocol {
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, ';'));
pipeline.addLast("stringDecoder", new StringDecoder());
- pipeline.addLast("objectDecoder", new Avt401ProtocolDecoder(Avt401Protocol.this));
+ pipeline.addLast("objectDecoder", new Ivt401ProtocolDecoder(Ivt401Protocol.this));
}
});
}
diff --git a/src/org/traccar/protocol/Avt401ProtocolDecoder.java b/src/org/traccar/protocol/Ivt401ProtocolDecoder.java
index 5918b54a1..c42f9fcc0 100644
--- a/src/org/traccar/protocol/Avt401ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Ivt401ProtocolDecoder.java
@@ -26,9 +26,9 @@ import org.traccar.model.Position;
import java.net.SocketAddress;
import java.util.regex.Pattern;
-public class Avt401ProtocolDecoder extends BaseProtocolDecoder {
+public class Ivt401ProtocolDecoder extends BaseProtocolDecoder {
- public Avt401ProtocolDecoder(Avt401Protocol protocol) {
+ public Ivt401ProtocolDecoder(Ivt401Protocol protocol) {
super(protocol);
}
diff --git a/test/org/traccar/protocol/Avt401ProtocolDecoderTest.java b/test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java
index 37b60d977..c0f076014 100644
--- a/test/org/traccar/protocol/Avt401ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Ivt401ProtocolDecoderTest.java
@@ -3,12 +3,12 @@ package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
-public class Avt401ProtocolDecoderTest extends ProtocolTest {
+public class Ivt401ProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
- Avt401ProtocolDecoder decoder = new Avt401ProtocolDecoder(new Avt401Protocol());
+ Ivt401ProtocolDecoder decoder = new Ivt401ProtocolDecoder(new Ivt401Protocol());
verifyPosition(decoder, text(
"(TLN,356917050291991,090315,133525,+12.990582,+77.589080,0,0,944,13,1,5,000,00,0.00,10.88,6.31,29.55,0.00,0,0.99,66,0,0,88,95)"));