diff --git a/Program.cs b/Program.cs index 01eb057..1cd3e6b 100644 --- a/Program.cs +++ b/Program.cs @@ -298,9 +298,11 @@ namespace GT808ClientTest byte checkByte = PackHelper.CalcCheckByte(fullBytes, 0, fullBytes.Length); bytesSend = (new byte[] { 0x7e } - .Concat(PackHelper.EncodeBytes(fullBytes).Concat(new byte[] { checkByte })) + .Concat(PackHelper.EncodeBytes(fullBytes.Concat(new byte[] { checkByte }))) .Concat(new byte[] { 0x7e })).ToArray(); + //Console.WriteLine("{0} {1}",head.SeqNO, bytesSend.ToHexString()); + //发送消息 SendBytes(tcp, bytesSend); //控制台打印日志cpu占用太高 diff --git a/TcpPack.cs b/TcpPack.cs index e175391..beb07dc 100644 --- a/TcpPack.cs +++ b/TcpPack.cs @@ -167,7 +167,8 @@ namespace Gps.Plugin.Tcp.GT808 public string GetDeviceId() { - return string.Concat("460", DeviceId); + //return string.Concat("460", DeviceId); + return DeviceId; } public void SetDeviceId(string value) diff --git a/app.config b/app.config index a8c2a3d..a4af5b3 100644 --- a/app.config +++ b/app.config @@ -5,20 +5,20 @@ - - + + - + - + - + - +