Beispiel #1
0
        public void Test5()
        {
            JT809_JT1078_0x1B00 jT809_JT1078_0x1B00 = new JT809_JT1078_0x1B00()
            {
                VehicleNo       = "粤B12345",
                VehicleColor    = Protocol.Enums.JT809VehicleColorType.黄色,
                SubBusinessType = (ushort)JT809_JT1078_SubBusinessType.远程录像下载控制应答消息,
                SubBodies       = new JT809_JT1078_0x1B00_0x1B03()
                {
                    Result = 1
                }
            };
            var hex = JT809Serializer.Serialize(jT809_JT1078_0x1B00).ToHexString();

            Assert.Equal("D4C142313233343500000000000000000000000000021B030000000101", hex);
        }
Beispiel #2
0
        public void Test3()
        {
            JT809_JT1078_0x1B00 jT809_JT1078_0x1B00 = new JT809_JT1078_0x1B00()
            {
                VehicleNo       = "粤B12345",
                VehicleColor    = Protocol.Enums.JT809VehicleColorType.黄色,
                SubBusinessType = (ushort)JT809_JT1078_SubBusinessType.远程录像下载通知消息,
                SubBodies       = new JT809_JT1078_0x1B00_0x1B02()
                {
                    Result    = 1,
                    UserName  = "******",
                    SessionId = 2,
                    ServerIp  = "127.0.0.1",
                    FilePath  = "D://123/456",
                    Password  = "******",
                    TcpPort   = 8080
                }
            };
            var hex = JT809Serializer.Serialize(jT809_JT1078_0x1B00).ToHexString();

            Assert.Equal("D4C142313233343500000000000000000000000000021B020000013401000200000000000000000000000000000000000000000000003132372E302E302E311F900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000746B0000000000000000000000000000746B313233343536000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000443A2F2F3132332F343536", hex);
        }