采用0x7e表示,若检验码、消息头以及消息体中出现0x7e,则要进行转义处理
<?php
// +----------------------------------------------------------------------
// | GAGACQ [ GAGACQ软件定制开发 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014~2023 https://gagacloud.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 此软件并不是自由软件,未经许可不能去掉GAGACQ相关版权
// +----------------------------------------------------------------------
// | Author: 13103895694 <itholiday@126.com>
// +----------------------------------------------------------------------namespace cgcore\enums;class HikvEnum
{const CMD_61 = '61';//设备状态const CMD_62 = '62';//设备故障报警const CMD_63 = '63';//用户刷卡const CMD_73 = '73';//用户刷卡const CMD_64 = '64';//设备检测到充电,发送开始充电信息const CMD_65 = '65';//设备注册const CMD_66 = '66';//免费模式下,设备上传点击按钮通道信息const CMD_68 = '68';//投币信息const BAK_81 = '81';//用户选择冲电通道const BAK_82 = '82';//关闭充电const BAK_85 = '85';//心跳周期const BAK_87 = '87';//设置第二服务器IP和端口const BAK_88 = '88';//设备远程升级const BAK_91 = '91';//电流最大值const BAK_92 = '92';//设备远程重启,消息体为空const BAK_93 = '93';//设置设备类型const BAK_94 = '94';//设置音量const BAK_95 = '95';//关闭声音const BAK_96 = '96';//打开烟雾报警检测const BAK_97 = '97';//关闭烟雾报警检测const BAK_98 = '98';//打开硬件过流检测const BAK_99 = '99';//关闭硬件过流检测const BAK_A3 = 'a3';//投币箱1元充电时间设置(单位分钟)const BAK_A4 = 'a4';//开面板灯const BAK_A5 = 'a5';//关面板灯const BAK_A6 = 'a6';//打开插拔断电const BAK_A7 = 'a7';//关闭插拔断电const BAK_AB = 'ab';//打开软件过流检测const BAK_AC = 'ac';//关闭软件过流检测const BAK_AD = 'ad';//设置断开检测参数消息体const BAK_AF = 'af';//关闭第二报警服务器const BAK_B3 = 'b3';//设置涓流时间const BAK_B5 = 'b5';//设置设备温度报警值const BAK_B6 = 'b6';//设置电缆温度报警值const BAK_B7 = 'b7';//打开充满自停const BAK_B8 = 'b8';//关闭充满自停const BAK_C4 = 'c4';//刷卡结果返回
}