From 89a615dff136fc590bd0cdeb1bb8d06ea17d24c9 Mon Sep 17 00:00:00 2001 From: jorgejimenez88 Date: Thu, 20 Aug 2015 15:12:24 -0500 Subject: Create MeitrackProtocolEncoder --- src/org/traccar/protocol/MeitrackProtocolEncoder.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/protocol/MeitrackProtocolEncoder.java b/src/org/traccar/protocol/MeitrackProtocolEncoder.java index d03a6cd1b..d5eca9a97 100644 --- a/src/org/traccar/protocol/MeitrackProtocolEncoder.java +++ b/src/org/traccar/protocol/MeitrackProtocolEncoder.java @@ -25,13 +25,13 @@ public class MeitrackProtocolEncoder extends StringProtocolEncoder { switch (command.getType()) { case Command.TYPE_ENGINE_STOP: - return formatCommand(command, "C01,0,12222"); + return formatCommand(command, "@@M34,{%s},C01,0,12222*18\r\n", Command.KEY_UNIQUE_ID); case Command.TYPE_ENGINE_RESUME: - return formatCommand(command, "C01,0,02222"); + return formatCommand(command, "@@M34,{%s},C01,0,02222*18\r\n", Command.KEY_UNIQUE_ID); case Command.TYPE_ALARM_ARM: - return formatCommand(command, "C01,0,22122"); + return formatCommand(command, "@@M34,{%s},C01,0,22122*18\r\n", Command.KEY_UNIQUE_ID); case Command.TYPE_ALARM_DISARM: - return formatCommand(command, "C01,0,22022"); + return formatCommand(command, "@@M34,{%s},C01,0,22022*18\r\n", Command.KEY_UNIQUE_ID); } return null; -- cgit v1.2.3