package protocol

// 设备类型
var (
	DT_GATEWAY        = "gw"             //网关
	DT_SOS            = "sos"            //一键求助
	DT_ENVIRONMENT    = "env"            //环境监测
	DT_IPC            = "ipc"            //网络摄像机
	DT_CONCENTRATOR   = "jk"             //单灯集控器
	DT_LEDDISPLAY     = "led"            //LED信息屏
	DT_LAMPCONTROLLER = "dk"             //灯控
	DT_ITS            = "its"            //抓拍单元
	DT_LIQUID         = "yw"             //液位计
	DT_ROAD_COND      = "rc"             //路面状况传感器
	DT_Radar          = "radar"          //雷达
	DT_CableGuardian  = "cable_guardian" //电缆防盗
	DT_CLT_LED        = "cltled"         //clt led显示屏
)

// 网关通用
var (
	TP_GW_APP            string = "app"
	TP_GW_APP_ACK        string = "app/ack"
	TP_GW_SET_APP        string = "sapp"
	TP_GW_SET_APP_ACK    string = "sapp/ack"
	TP_GW_SERIAL         string = "serial"
	TP_GW_SERIAL_ACK     string = "serial/ack"
	TP_GW_SET_SERIAL     string = "sserial"
	TP_GW_SET_SERIAL_ACK string = "sserial/ack"
	TP_GW_RTU            string = "dev"
	TP_GW_RTU_ACK        string = "dev/ack"
	TP_GW_SET_RTU        string = "sdev"
	TP_GW_SET_RTU_ACK    string = "sdev/ack"
	TP_GW_MODEL          string = "model"
	TP_GW_MODEL_ACK      string = "model/ack"
	TP_GW_SET_MODEL      string = "smodel"
	TP_GW_SET_MODEL_ACK  string = "smodel/ack"
	TP_GW_LOG            string = "log"
	TP_GW_LOG_ACK        string = "log/ack"
	TP_GW_REMOVE_LOG     string = "rlog"
	TP_GW_REMOVE_LOG_ACK string = "rlog/ack"
	TP_GW_ONLINE         string = "online"
	TP_GW_WILL           string = "will"
	TP_GW_SYS            string = "sys"
	TP_GW_SYS_ACK        string = "sys/ack"
	TP_GW_ITS            string = "its"
	TP_GW_ITS_ACK        string = "its/ack"
	TP_GW_ONVIFDEV       string = "onvifdev"     //海康一键告警或摄像头设备上报
	TP_GW_ONVIFDEV_ACK   string = "onvifdev/ack" //海康一键告警或摄像头设备上报
)

// modbus协议设备通用
var (
	TP_MODBUS_DATA        string = "mbdata"     //定时上报，终端->平台
	TP_MODBUS_CONTROL     string = "mbctrl"     //控制命令，平台->终端
	TP_MODBUS_CONTROL_ACK string = "mbctrl/ack" //控制命令响应，终端->平台
)

// 长和zigbee集中控制器专用
var (
	TP_CHZB_SET_BROADCASTTIME     string = "cz/bct"        //广播校时，平台->终端
	TP_CHZB_SET_BROADCASTTIME_ACK string = "cz/bct/ack"    //广播校时响应，终端->平台
	TP_CHZB_SET_WAITTIME          string = "cz/wt"         //设置zigbee集中器收发等待时间，平台->终端
	TP_CHZB_SET_WAITTIME_ACK      string = "cz/wt/ack"     //设置zigbee集中器收发等待时间，终端->平台
	TP_CHZB_SET_SWITCH            string = "cz/switch"     //开关灯,广播开关灯，平台->终端
	TP_CHZB_SET_SWITCH_ACK        string = "cz/switch/ack" //开关灯,广播开关灯响应，终端->平台
	TP_CHZB_SET_RECOVERY_AUTO     string = "cz/recov"      //手动恢复时控，平台->终端
	TP_CHZB_SET_RECOVERY_AUTO_ACK string = "cz/recov/ack"  //手动恢复时控响应，终端->平台
	TP_CHZB_SET_ONOFFTIME         string = "cz/soot"       //设置开关灯时间段，平台->终端
	TP_CHZB_SET_ONOFFTIME_ACK     string = "cz/soot/ack"   //设置开关灯时间段响应，终端->平台
	TP_CHZB_SET_UPDATE_LAMP       string = "cz/slamp"      //更新灯控末端，平台->终端
	TP_CHZB_SET_UPDATE_LAMP_ACK   string = "cz/slamp/ack"  //更新灯控末端响应，终端->平台
	TP_CHZB_QUERY_ONOFFTIME       string = "cz/qoot"       //读取开关灯时间段，平台->终端
	TP_CHZB_QUERY_ONOFFTIME_ACK   string = "cz/qoot/ack"   //读取开关灯时间段响应，终端->平台
	TP_CHZB_QUERY_LAMP            string = "cz/qlamp"      //集控器获取单灯末端编号列表，终端->平台，平台响应TP_CHZB_SET_UPDATE_LAMP
	TP_CHZB_QUERY_TIME            string = "cz/qt"         //查询单灯当前时间，平台->终端
	TP_CHZB_QUERY_TIME_ACK        string = "cz/qt/ack"     //查询单灯当前时间响应，终端->平台
	TP_CHZB_DATA                  string = "cz/data"       //灯控数据上报，终端->平台，无响应
	TP_CHZB_ALARM                 string = "cz/alarm"      //灯控告警上报，终端->平台，无响应
	TP_CHZB_ALARM_ACK             string = "cz/alarm/ack"  //灯控告警上报响应，平台->终端
)

// 裕明鑫485单灯控制器专用
var (
	TP_YM_SET_SWITCH          string = "ym/switch"     //开关灯,平台->终端
	TP_YM_SET_SWITCH_ACK      string = "ym/switch/ack" //开关灯响应，终端->平台
	TP_YM_SET_ONOFFTIME       string = "ym/soot"       //设置开关灯时间段，平台->终端
	TP_YM_SET_ONOFFTIME_ACK   string = "ym/soot/ack"   //设置开关灯时间段响应，终端->平台
	TP_YM_QUERY_ONOFFTIME     string = "ym/qoot"       //读取开关灯时间段，平台->终端
	TP_YM_QUERY_ONOFFTIME_ACK string = "ym/qoot/ack"   //读取开关灯时间段响应，终端->平台
	TP_YM_DATA                string = "ym/data"       //灯控数据上报，终端->平台，无响应
	TP_YM_ALARM               string = "ym/alarm"      //灯控告警上报，终端->平台，无响应
	TP_YM_ALARM_ACK           string = "ym/alarm/ack"  //灯控告警上报响应，平台->终端
)

// 摄像头相关
var (
	TP_ONVIF_PTZ          string = "ptz"          //摄像头云台控制，沿某方向移动
	TP_ONVIF_PTZ_ACK      string = "ptz/ack"      //摄像头云台控制，沿某方向移动
	TP_ONVIF_SNAPSHOT     string = "snapshot"     //抓图
	TP_ONVIF_SNAPSHOT_ACK string = "snapshot/ack" //抓图响应
	TP_ONVIF_RECORD       string = "record"       //录像
	TP_ONVIF_RECORD_ACK   string = "record/ack"   //录像响应
	TP_ONVIF_VIDEO        string = "video"        //请求视频流，rtsp推流
	TP_ONVIF_VIDEO_ACK    string = "video/ack"    //请求视频流，rtsp推流
	TP_ONVIF_ALARM        string = "alarm"        //摄像头告警
	TP_ONVIF_STATE        string = "state"        //摄像头状态
	TP_ONVIF_PTZ_COMM     string = "ptzcomm"      //获取所有预置点，设置预置点，删除预置点，跳转到预置点，设置home点，跳转到home点
	TP_ONVIF_PTZ_COMM_ACK string = "ptzcomm/ack"  //获取所有预置点，设置预置点，删除预置点，跳转到预置点，设置home点，跳转到home点
	TP_ONVIF_PRESETS_ACK  string = "presets/ack"  //查询所有预置点响应
	TP_ONVIF_PRESET_ACK   string = "preset/ack"   //设置预置点响应
	TP_ONVIF_REBOOT       string = "reboot"       //重启
	TP_ONVIF_REBOOT_ACK   string = "reboot/ack"   //重启
	TP_ONVIF_SYNCTIME     string = "synctime"     //同步时间
	TP_ONVIF_SYNCTIME_ACK string = "synctime/ack" //同步时间
)

var (
	TP_LED_QUERY_STATUSINFO_ACK    string = "info/ack"
	TP_LED_QUERY_IFSTATUSS_ACK     string = "ifs/ack"
	TP_LED_QUERY_NETWORK_ACK       string = "ns/ack"
	TP_LED_QUERY_PLAYINGINFO_ACK   string = "play/ack"
	TP_LED_QUERY_NTP_ACK           string = "ntp/ack"
	TP_LED_QUERY_ACCOUNT_ACK       string = "acc/ack"
	TP_LED_QUERY_VSNS_ACK          string = "vsns/ack"
	TP_LED_QUERY_LOCALE_ACK        string = "lc/ack"
	TP_LED_QUERY_RTCTIME_ACK       string = "rtc/ack"
	TP_LED_SET_SHOWTOAST           string = "stoast"
	TP_LED_SET_NTP                 string = "sntp"
	TP_LED_SET_ACCOUNT             string = "sacc"
	TP_LED_SET_BRIGHTNESSCOLORTEMP string = "sbc"
	TP_LED_SET_RESOLUTION          string = "sres"
	TP_LED_SET_LOCALE              string = "slc"
	TP_LED_SET_RTCTIME             string = "srtc"
	TP_LED_SET_NORMAL_ACK          string = "set/ack"
	TP_LED_SET_VSN                 string = "svsn" //切换节目、删除节目、清除节目
	TP_LED_PING                    string = "ping"
	TP_LED_PING_ACK                string = "ping/ack"
	TP_LED_QUERY_SCHEDULE_ACK      string = "sched/ack" //查询终端排程响应
	//下面是启用的
	TP_LED_STATE             string = "state"  //LED信息屏状态
	TP_LED_DATA              string = "data"   //LED信息屏data
	TP_LED_QUERY_INFO        string = "query"  //LED信息屏参数、状态查询、屏幕截图查询
	TP_LED_SET_PGMS          string = "spgms"  //平台发布节目，发布节目
	TP_LED_QUERY_PGMS        string = "qpgms"  //查询节目
	TP_LED_SET_SCHEDULE      string = "ssched" //平台发布排程
	TP_LED_QUERY_SCHEDULE    string = "qsched" //获取排程
	TP_LED_QUERY_POWERSTATUS string = "power"  //电源状态
	TP_LED_SET_CMD           string = "cmd"    //开机、关机、休眠、重启
	TP_LED_QUERY_RESOLUTION  string = "res"    //查询屏幕参数
	TP_LED_QUERY_VOLUME      string = "vol"    //查询音量
	TP_LED_SET_VOLUME        string = "svol"   //设置音量
	TP_LED_QUERY_BRIGHTCOLOR string = "bc"     //查询亮度和色温
	TP_LED_SET_BRIGHTNESS    string = "sb"     //设置亮度

	//这是新加并启用的
	TP_LED_SWITCH   = "switch" //	切换节目
	TP_LED_DELETE   = "del"
	TP_LED_CLEAN    = "clean"
	TP_LED_SNAPSHOT = "snapshot"
)

// 抓拍单元
var (
	TP_ITSDEV_STATE      string = "ys/state"  //摄像头状态
	TP_ITS_VEHICLESTATIC string = "ys/static" //小时车辆统计
	TP_ITS_VEHICLESPEED  string = "ys/speed"  //小时车辆统计
)

// 雷达数据 自由协议
var (
	TP_RADAR_DATA string = "data" //来车数据 IP 序号 雷达ID 目标类型 速度 距离
)
