From ff1d1e3d8d97212dd82dd7d965d5f3306771c888 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 27 Jul 2015 13:30:47 +1200 Subject: Fix GPS103 commands format --- src/org/traccar/protocol/Gps103ProtocolEncoder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/Gps103ProtocolEncoder.java b/src/org/traccar/protocol/Gps103ProtocolEncoder.java index 27fea8237..5d0e0ddd1 100644 --- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java +++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java @@ -51,13 +51,13 @@ public class Gps103ProtocolEncoder extends BaseProtocolEncoder { switch (command.getType()) { case Command.TYPE_POSITION_STOP: - return formatCommand(command, "**,imei:{%s},A", Command.KEY_UNIQUE_ID); + return formatCommand(command, "**,imei:{%s},A;", Command.KEY_UNIQUE_ID); case Command.TYPE_POSITION_FIX: - return formatCommand(command, "**,imei:{%s},C,{%s}", Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY); + return formatCommand(command, "**,imei:{%s},C,{%s};", Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY); case Command.TYPE_ENGINE_STOP: - return formatCommand(command, "**,imei:{%s},K", Command.KEY_UNIQUE_ID); + return formatCommand(command, "**,imei:{%s},K;", Command.KEY_UNIQUE_ID); case Command.TYPE_ENGINE_RESUME: - return formatCommand(command, "**,imei:{%s},J", Command.KEY_UNIQUE_ID); + return formatCommand(command, "**,imei:{%s},J;", Command.KEY_UNIQUE_ID); } return null; -- cgit v1.2.3