Tange Cloud for Device
 Rev.333
载入中...
搜索中...
未找到
TgCloudCmdEx.h 文件参考

P2p Commands and Structures 更多...

#include "basedef.h"

浏览该文件的源代码.

结构体

struct  Tcis_DevRebootReq
 重启请求 更多...
 
struct  Tcis_DevRebootResp
 重启请求应答. 更多...
 
struct  Tcis_GetWhiteLightReq
 白光状态请求 更多...
 
struct  Tcis_GetWhiteLightResp
 白光灯设置结构体 更多...
 
struct  Tcis_SetWhiteLightReq
 设置白光请求结构体 更多...
 
struct  Tcis_SetWhiteLightResp
 设置白光状态应答结构体 更多...
 
struct  Tcis_GetDayNightReq
 查询夜视状态 更多...
 
struct  Tcis_GetDayNightResp
 返回夜视状态 更多...
 
struct  Tcis_SetDayNightReq
 设置夜视状态 更多...
 
struct  Tcis_SetDayNightResp
 设置夜视状态应答结构体 更多...
 
struct  Tcis_GetMotionTrackerReq
 获取设备移动追踪开关状态请求 更多...
 
struct  Tcis_GetMotionTrackerResp
 设备移动追踪开关状态应答结构体 更多...
 
struct  Tcis_SetMotionTrackerReq
 设置移动追踪开关状态请求结构体 更多...
 
struct  Tcis_SetMotionTrackerResp
 设置移动追踪应答开关状态应答结构体 更多...
 
struct  Tcis_GetCloudVideoQualityReq
 获取云录像清晰度请求结构体 更多...
 
struct  Tcis_GetCloudVideoQualityResp
 获取云录像清晰度应答结构体 更多...
 
struct  Tcis_GetMicroPhoneReq
 查询麦克风状态请求结构体. 更多...
 
struct  Tcis_GetMicroPhoneResp
 麦克风开关状态应答结构体 更多...
 
struct  Tcis_SetMicroPhoneReq
 设置麦克风开关状态请求 更多...
 
struct  Tcis_GetBuzzerReq
 查询蜂鸣器状态请求结构体 更多...
 
struct  Tcis_GetBuzzerResp
 蜂鸣器状态应答结构体 更多...
 
struct  Tcis_SetBuzzerReq
 设置蜂鸣器状态请求结构体 更多...
 
struct  Tcis_SetBuzzerResp
 设置蜂鸣器状态应答参数结构体 更多...
 
struct  Tcis_GetTemperatureSettingReq
 获取温度设置. 更多...
 
struct  Tcis_GetTemperatureSettingResp
 传感值温度报警设置 温度单位为 0.001摄氏度。例如: 更多...
 
struct  Tcis_SetTemperatureThresholdReq
 设置温度传感器的报警阈值. 更多...
 
struct  Tcis_GetHumiditySettingReq
 获取湿度传感器设置 TCI_CMD_GET_HUMIDITY_SETTING = 0x046A
更多...
 
struct  Tcis_GetHumiditySettingResp
 湿度传感器设置 湿度单位为 0.1%. 更多...
 
struct  Tcis_SetHumidityThresholdReq
 设置湿度传感器报警阈值. 更多...
 

宏定义

#define Tcis_GetDoubleLightReq   Tcis_GetWhiteLightReq
 
#define Tcis_GetDoubleLightResp   Tcis_GetWhiteLightResp
 
#define Tcis_SetDoubleLightReq   Tcis_SetWhiteLightReq
 
#define Tcis_SetDoubleLightResp   Tcis_SetWhiteLightResp
 
#define TCI_CMD_VIDEOSTART   0x01FF
 
#define TCI_CMD_VIDEOSTOP   0x02FF
 
#define TCI_CMD_AUDIOSTART   0x0300
 
#define TCI_CMD_AUDIOSTOP   0x0301
 
设备重启
#define TCI_CMD_DEV_REBOOT_REQ   0x8010
 重启请求命令 see Tcis_DevRebootReq
 
#define TCI_CMD_DEV_REBOOT_RESP   0x8011
 重启应答 see Tcis_DevRebootResp
 
白光灯
#define TCI_CMD_GET_WHITELIGHT_REQ   0x8012
 获取设备双光状态请求 see Tcis_GetWhiteLightReq
 
#define TCI_CMD_GET_WHITELIGHT_RESP   0x8013
 双光状态应答 see Tcis_GetWhiteLightResp
 
#define TCI_CMD_SET_WHITELIGHT_REQ   0x8014
 设置双光状态请求 see Tcis_SetWhiteLightReq
 
#define TCI_CMD_SET_WHITELIGHT_RESP   0x8015
 设置双光状态应答 see Tcis_SetWhiteLightResp
 
#define TCI_CMD_GET_DOUBLELIGHT_REQ   TCI_CMD_GET_WHITELIGHT_REQ
 重命名
 
#define TCI_CMD_GET_DOUBLELIGHT_RESP   TCI_CMD_GET_WHITELIGHT_RESP
 重命名
 
#define TCI_CMD_SET_DOUBLELIGHT_REQ   TCI_CMD_SET_WHITELIGHT_REQ
 重命名
 
#define TCI_CMD_SET_DOUBLELIGHT_RESP   TCI_CMD_SET_WHITELIGHT_RESP
 重命名
 
设备夜视
#define TCI_CMD_GET_DAYNIGHT_REQ   0x8016
 查询夜视状态命令 see Tcis_GetDayNightReq
 
#define TCI_CMD_GET_DAYNIGHT_RESP   0x8017
 夜视状态应答命令 see Tcis_GetDayNightResp
 
#define TCI_CMD_SET_DAYNIGHT_REQ   0x8018
 设置夜视状态命令 see Tcis_SetDayNightReq
 
#define TCI_CMD_SET_DAYNIGHT_RESP   0x8019
 夜视状态设置应答命令 see Tcis_SetDayNightResp
 
设备移动追踪
#define TCI_CMD_GET_MOTION_TRACKER_REQ   0x8020
 获取设备移动追踪开关状态请求 see Tcis_GetMotionTrackerReq
 
#define TCI_CMD_GET_MOTION_TRACKER_RESP   0x8021
 设备移动追踪开关状态应答 see Tcis_GetMotionTrackerResp
 
#define TCI_CMD_SET_MOTION_TRACKER_REQ   0x8022
 设置移动追踪开关状态请求 see Tcis_SetMotionTrackerReq
 
#define TCI_CMD_SET_MOTION_TRACKER_RESP   0x8023
 设置移动追踪开关状态应答 see Tcis_SetMotionTrackerResp
 
云录像视频清晰度
#define TCI_CMD_GET_CLOUD_VIDEO_QUALITY_REQ   0x8026
 获取云录像清晰度请求 see Tcis_GetCloudVideoQualityReq
 
#define TCI_CMD_GET_CLOUD_VIDEO_QUALITY_RESP   0x8027
 获取云录像清晰度的应答 see Tcis_GetCloudVideoQualityResp
 
设置/查询麦克风开关
#define TCI_CMD_GET_MICROPHONE_REQ   0x8032
 查询麦克风开关状态请求 see Tcis_GetMicroPhoneReq – sdk sdk内部处理此命令
 
#define TCI_CMD_GET_MICROPHONE_RESP   0x8033
 设备麦克风开关状态的应答 see Tcis_GetMicroPhoneResp
 
#define TCI_CMD_SET_MICROPHONE_REQ   0x8034
 设置设备麦克风开关请求 see Tcis_SetMicroPhoneReq
 
#define TCI_CMD_SET_MICROPHONE_RESP   0x8035
 设置设备麦克风开关的应答
 
设置/查询蜂鸣器开关
#define TCI_CMD_GET_BUZZER_REQ   0x8036
 查询蜂鸣器状态请求 see Tcis_GetBuzzerReq
 
#define TCI_CMD_GET_BUZZER_RESP   0x8037
 查询蜂鸣器状态应答 see Tcis_GetBuzzerResp
 
#define TCI_CMD_SET_BUZZER_REQ   0x8038
 设置蜂鸣器状态请求 see Tcis_SetBuzzerReq
 
#define TCI_CMD_SET_BUZZER_RESP   0x8039
 设置蜂鸣器状态应答 see Tcis_SetBuzzerResp
 
温湿度控制
#define TCI_CMD_SET_TEMPERATURE_THRESHOLD   0x0464
 设置温度报警阈值 req: Tcis_SetTemperatureThresholdReq; resp: generic
 
#define TCI_CMD_GET_TEMPERATURE_SETTING   0x0466
 获取温度设置. req: Tcis_GetTemperatureSettingReq; resp: Tcis_GetTemperatureSettingResp
 
#define TCI_CMD_SET_HUMIDITY_THRESHOLD   0x0468
 设置湿度报警阈值 req: Tcis_SetHumidityThresholdReq; resp: generic
 
#define TCI_CMD_GET_HUMIDITY_SETTING   0x046A
 获取湿度设置 req: Tcis_GetHumiditySettingReq; resp: Tcis_GetHumiditySettingResp
 

详细描述

P2p Commands and Structures

在文件 TgCloudCmdEx.h 中定义.


结构体说明

◆ Tcis_DevRebootReq

struct Tcis_DevRebootReq

重启请求

TCI_CMD_DEV_REBOOT_REQ

在文件 TgCloudCmdEx.h84 行定义.

成员变量
unsigned int channel Camera Index
unsigned char reserved[4] 0

◆ Tcis_DevRebootResp

struct Tcis_DevRebootResp

重启请求应答.

设备端应在发送答后延时2秒,以使APP可以收到应答 TCI_CMD_DEV_REBOOT_RESP

在文件 TgCloudCmdEx.h95 行定义.

成员变量
unsigned int result 1 ok , !1 no ok
unsigned char reserved[4]

◆ Tcis_GetWhiteLightReq

struct Tcis_GetWhiteLightReq

白光状态请求

TCI_CMD_GET_WHITELIGHT_REQ

在文件 TgCloudCmdEx.h106 行定义.

成员变量
unsigned int channel Camera Index
unsigned char reserved[4]

◆ Tcis_GetWhiteLightResp

struct Tcis_GetWhiteLightResp

白光灯设置结构体

TCI_CMD_GET_WHITELIGHT_RESP

在文件 TgCloudCmdEx.h117 行定义.

成员变量
unsigned int channel Camera Index
unsigned int support 0:不支持,2:支持两种模式,3:支持三种模式; — ???
unsigned char mode 当前模式:
  • 0 - 关闭(白光不工作)
  • 1 - 打开(全彩色)
  • 2 - 智能模式(事件触发白光)
  • 3 - 定时开关(DoubleLight 能力要有 "Timer" 属性) 在定时范围内按定时规定(开), 定时范围之外按模式设定执行. 不需要一个单独的"定时开关"模式(2014/1/5)
unsigned char reserved[3]

◆ Tcis_SetWhiteLightReq

struct Tcis_SetWhiteLightReq

设置白光请求结构体

TCI_CMD_SET_WHITELIGHT_REQ

在文件 TgCloudCmdEx.h137 行定义.

成员变量
unsigned int channel Camera Index
unsigned int mode 当前模式,0-关闭(白光不工作);1-打开(全彩色);2-智能模式(移动侦测触发自动白光)
unsigned char reserved[4]

◆ Tcis_SetWhiteLightResp

struct Tcis_SetWhiteLightResp

设置白光状态应答结构体

TCI_CMD_SET_WHITELIGHT_RESP

在文件 TgCloudCmdEx.h148 行定义.

成员变量
unsigned int result 1 ok , !1 no ok
unsigned char reserved[4]

◆ Tcis_GetDayNightReq

struct Tcis_GetDayNightReq

查询夜视状态

TCI_CMD_GET_DAYNIGHT_REQ

在文件 TgCloudCmdEx.h159 行定义.

成员变量
unsigned int channel Camera Index
unsigned char reserved[4]

◆ Tcis_GetDayNightResp

struct Tcis_GetDayNightResp

返回夜视状态

TCI_CMD_GET_DAYNIGHT_RESP

在文件 TgCloudCmdEx.h168 行定义.

成员变量
unsigned int channel Camera Index
unsigned int support 0不支持,2支持两种模式,3支持三种模式; — ???
unsigned char mode 当前模式,mode: 0- auto 1- day,2- night
unsigned char reserved[3]

◆ Tcis_SetDayNightReq

struct Tcis_SetDayNightReq

设置夜视状态

TCI_CMD_SET_DAYNIGHT_REQ

在文件 TgCloudCmdEx.h179 行定义.

成员变量
unsigned int channel Camera Index
unsigned int mode 当前模式,mode: 0- auto 1- day,2- night
unsigned char reserved[4]

◆ Tcis_SetDayNightResp

struct Tcis_SetDayNightResp

设置夜视状态应答结构体

TCI_CMD_SET_DAYNIGHT_RESP

在文件 TgCloudCmdEx.h189 行定义.

成员变量
unsigned int result 1 ok , !1 no ok
unsigned char reserved[4]

◆ Tcis_GetMotionTrackerReq

struct Tcis_GetMotionTrackerReq

获取设备移动追踪开关状态请求

TCI_CMD_GET_MOTION_TRACKER_REQ

在文件 TgCloudCmdEx.h198 行定义.

成员变量
unsigned int channel Camera Index
unsigned char reserved[4]

◆ Tcis_GetMotionTrackerResp

struct Tcis_GetMotionTrackerResp

设备移动追踪开关状态应答结构体

TCI_CMD_GET_MOTION_TRACKER_RESP

在文件 TgCloudCmdEx.h207 行定义.

成员变量
unsigned int channel Camera Index
unsigned int support 0不支持,非0支持 — ??? not used in get_setting
unsigned char mode 当前模式,mode: 1- on, 0- off
unsigned char reserved[3]

◆ Tcis_SetMotionTrackerReq

struct Tcis_SetMotionTrackerReq

设置移动追踪开关状态请求结构体

TCI_CMD_SET_MOTION_TRACKER_REQ

在文件 TgCloudCmdEx.h218 行定义.

成员变量
unsigned int channel Camera Index
unsigned int mode 需要设置的模式,1 - on, 0 - off
unsigned char reserved[4] 保留字段,未使用

◆ Tcis_SetMotionTrackerResp

struct Tcis_SetMotionTrackerResp

设置移动追踪应答开关状态应答结构体

TCI_CMD_SET_MOTION_TRACKER_RESP

在文件 TgCloudCmdEx.h228 行定义.

成员变量
unsigned int result 1 ok , !1 no ok
unsigned char reserved[4]

◆ Tcis_GetCloudVideoQualityReq

struct Tcis_GetCloudVideoQualityReq

获取云录像清晰度请求结构体

TCI_CMD_GET_CLOUD_VIDEO_QUALITY_REQ

在文件 TgCloudCmdEx.h237 行定义.

成员变量
unsigned int channel Camera Index
unsigned char reserved[4]

◆ Tcis_GetCloudVideoQualityResp

struct Tcis_GetCloudVideoQualityResp

获取云录像清晰度应答结构体

TCI_CMD_GET_CLOUD_VIDEO_QUALITY_RESP

在文件 TgCloudCmdEx.h246 行定义.

成员变量
unsigned int channel Camera Index
unsigned char quality 当前清晰度,mode: 0- 高清, 1- 标清
unsigned char reserved[3] 保留字段,未使用

◆ Tcis_GetMicroPhoneReq

struct Tcis_GetMicroPhoneReq

查询麦克风状态请求结构体.

sdk内部处理 TCI_CMD_GET_MICROPHONE_REQ

在文件 TgCloudCmdEx.h257 行定义.

成员变量
unsigned int channel Camera Index: 0
unsigned char reserved[4]

◆ Tcis_GetMicroPhoneResp

struct Tcis_GetMicroPhoneResp

麦克风开关状态应答结构体

TCI_CMD_GET_MICROPHONE_RESP

在文件 TgCloudCmdEx.h266 行定义.

成员变量
unsigned int channel Camera Index
unsigned char status 当前当前麦克风状态,status: 0- 关, 1- 开
unsigned char reserved[3]

◆ Tcis_SetMicroPhoneReq

struct Tcis_SetMicroPhoneReq

设置麦克风开关状态请求

TCI_CMD_SET_MICROPHONE_REQ

在文件 TgCloudCmdEx.h276 行定义.

成员变量
unsigned int channel Camera Index
unsigned int status 设置麦克风状态,status: 0- 关, 1- 开

◆ Tcis_GetBuzzerReq

struct Tcis_GetBuzzerReq

查询蜂鸣器状态请求结构体

TCI_CMD_GET_BUZZER_REQ

在文件 TgCloudCmdEx.h288 行定义.

成员变量
unsigned int channel Camera Index
unsigned char reserved[4]

◆ Tcis_GetBuzzerResp

struct Tcis_GetBuzzerResp

蜂鸣器状态应答结构体

TCI_CMD_GET_BUZZER_RESP

在文件 TgCloudCmdEx.h297 行定义.

成员变量
unsigned int channel Camera Index
unsigned char status 当前蜂鸣器状态,status: 0- 关; 1- 开; 2- 按定时器设定
unsigned char reserved[3]

◆ Tcis_SetBuzzerReq

struct Tcis_SetBuzzerReq

设置蜂鸣器状态请求结构体

TCI_CMD_SET_BUZZER_REQ

在文件 TgCloudCmdEx.h307 行定义.

成员变量
unsigned int channel Camera Index
unsigned char status 当前蜂鸣器状态,status: 0- 关; 1- 开; 2- 按定时器设定
unsigned char reserved[3]

◆ Tcis_SetBuzzerResp

struct Tcis_SetBuzzerResp

设置蜂鸣器状态应答参数结构体

TCI_CMD_GET_BUZZER_RESP

在文件 TgCloudCmdEx.h317 行定义.

成员变量
unsigned int result 0失败,1成功
unsigned char reserved[4]

◆ Tcis_GetTemperatureSettingReq

struct Tcis_GetTemperatureSettingReq

获取温度设置.

TCI_CMD_GET_TEMPERATURE_SETTING = 0x0466

在文件 TgCloudCmdEx.h328 行定义.

成员变量
int sensor_id 温度传感器标识 0~N-1

◆ Tcis_GetTemperatureSettingResp

struct Tcis_GetTemperatureSettingResp

传感值温度报警设置 温度单位为 0.001摄氏度。例如:

  • -40050 表示 -40.050 摄像度
  • 100123 表示 100.123 摄氏度

在文件 TgCloudCmdEx.h337 行定义.

成员变量
int sensor_id 温度传感器标识 0~N-1
int lo_limit 感温能力下限。
int hi_limit 感温能力上限。
int lo_en 低温报警使能标志. 1:enable; 0:disable
int hi_en 高温报警使能标志
int lo_threshold 低温报警阈值
int hi_threshold 高温报警阈值

◆ Tcis_SetTemperatureThresholdReq

struct Tcis_SetTemperatureThresholdReq

设置温度传感器的报警阈值.

TCI_CMD_SET_TEMPERATURE_THRESHOLD = 0x0464
温度单位为 0.001摄氏度。例如:

  • -40050 表示 -40.050 摄像度
  • 100123 表示 100.123 摄氏度

在文件 TgCloudCmdEx.h354 行定义.

成员变量
int sensor_id 温度传感器标识 0~N-1
int lo_en 低温报警使能标志. 1:enable; 0:disable
int hi_en 高温报警使能标志
int lo_threshold 低温报警阈值
int hi_threshold 高温报警阈值

◆ Tcis_GetHumiditySettingReq

struct Tcis_GetHumiditySettingReq

获取湿度传感器设置 TCI_CMD_GET_HUMIDITY_SETTING = 0x046A

在文件 TgCloudCmdEx.h365 行定义.

成员变量
int sensor_id 湿度传感器标识 0~N-1

◆ Tcis_GetHumiditySettingResp

struct Tcis_GetHumiditySettingResp

湿度传感器设置 湿度单位为 0.1%.

即 281 示湿度为 28.1%

在文件 TgCloudCmdEx.h372 行定义.

成员变量
int sensor_id 湿度传感器标识 0~N-1
int lo_limit 传感器检测下限
int hi_limit 传感器检测上限
int lo_en 湿度低值报警使能标志。1:enable; 0:disabled
int hi_en 湿度高值报警使能标志。1:enable; 0:disabled
int lo_threshold 低湿度报警阈值
int hi_threshold 高湿度报警阈值

◆ Tcis_SetHumidityThresholdReq

struct Tcis_SetHumidityThresholdReq

设置湿度传感器报警阈值.

TCI_CMD_SET_HUMIDITY_THRESHOLD = 0x0468
湿度单位为 0.1%. 即 281 示湿度为 28.1%

在文件 TgCloudCmdEx.h386 行定义.

成员变量
int sensor_id 湿度传感器标识 0~N-1
int lo_en 湿度低值报警使能标志。1:enable; 0:disabled
int hi_en 湿度高值报警使能标志。1:enable; 0:disabled
int lo_threshold 低湿度报警阈值
int hi_threshold 高湿度报警阈值

宏定义说明

◆ Tcis_GetDoubleLightReq

#define Tcis_GetDoubleLightReq   Tcis_GetWhiteLightReq

在文件 TgCloudCmdEx.h111 行定义.

◆ Tcis_GetDoubleLightResp

#define Tcis_GetDoubleLightResp   Tcis_GetWhiteLightResp

在文件 TgCloudCmdEx.h131 行定义.

◆ Tcis_SetDoubleLightReq

#define Tcis_SetDoubleLightReq   Tcis_SetWhiteLightReq

在文件 TgCloudCmdEx.h142 行定义.

◆ Tcis_SetDoubleLightResp

#define Tcis_SetDoubleLightResp   Tcis_SetWhiteLightResp

在文件 TgCloudCmdEx.h152 行定义.

◆ TCI_CMD_VIDEOSTART

#define TCI_CMD_VIDEOSTART   0x01FF

在文件 TgCloudCmdEx.h399 行定义.

◆ TCI_CMD_VIDEOSTOP

#define TCI_CMD_VIDEOSTOP   0x02FF

在文件 TgCloudCmdEx.h400 行定义.

◆ TCI_CMD_AUDIOSTART

#define TCI_CMD_AUDIOSTART   0x0300

在文件 TgCloudCmdEx.h401 行定义.

◆ TCI_CMD_AUDIOSTOP

#define TCI_CMD_AUDIOSTOP   0x0301

在文件 TgCloudCmdEx.h402 行定义.