Exemple #1
0
        /// <summary>
        /// 应答数据上报
        /// </summary>
        internal byte[] ReplyInformationReporting()
        {
            var _header = cloneHeader();

            _header.req_ack = 1;

            var info = new ACKInf()
            {
                cmd_sta = 0x01
            };

            return(BuildBytes(_header, info, true));
        }
Exemple #2
0
        /// <summary>
        /// 发送字母(测试)
        /// </summary>
        /// <returns></returns>
        public byte[] SendCode()
        {
            var info = new ACKInf()
            {
                cmd_sta = 0x42
            };
            var _header = cloneHeader();

            _header.req_ack     = 0x00;
            _header.cmd         = 0x01;
            _header.packet_type = 0x01;
            _header.sn          = (ushort)(_header.sn + 1);

            return(BuildBytes(_header, info, true));
        }