Tange Cloud for Device
Rev.345 |
内部命令,仅限SDK和App使用. 更多...
#include "basedef.h"
结构体 | |
struct | TcisSubControl |
union | TcisSubControl::unionSUBCMD |
struct | TcisSubControl::unionSUBCMD::SUBCTRL_PUTFILE |
struct | TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE |
struct | TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE_RESP |
struct | Tcis_AVStream |
TCI_CMD_VIDEOSTART = 0x01FF, TCI_CMD_VIDEOSTOP = 0x02FF, TCI_CMD_AUDIOSTART = 0x0300, TCI_CMD_AUDIOSTOP = 0x0301, TCI_CMD_SPEAKERSTART = 0x0350, TCI_CMD_SPEAKERSTOP = 0x0351, TCI_CMD_START_TALK 0x0332 //代替 TCI_CMD_SPEAKERSTART 更多... | |
struct | Tcis_GetMediaInfo |
struct | Tcis_MediaInfo |
struct | Tcis_SetStreamCtrlReq |
TCI_CMD_SETSTREAMCTRL_REQ = 0x0320, TCI_CMD_GETSTREAMCTRL_RESP = 0x0323, 更多... | |
struct | Tcis_SetStreamCtrlResp |
TCI_CMD_SETSTREAMCTRL_RESP = 0x0321, 更多... | |
struct | Tcis_GetRecordReq |
TCI_CMD_GETRECORD_REQ = 0x0312, 更多... | |
struct | Tcis_DeviceInfoReq |
TCI_CMD_DEVINFO_REQ = 0x0330, 更多... | |
struct | Tcis_DeviceInfoResp |
TCI_CMD_DEVINFO_RESP = 0x0331, 更多... | |
struct | Tcis_GetGpsInfoReq |
struct | Tcis_GetGpsInfoResp |
gps information 更多... | |
struct | Tcis_ExPassWordReq |
struct | Tcis_ExPassWordResp |
struct | Tcis_SetPasswdReq |
设置直连模式密码请求参数结构体. 更多... | |
struct | Tcis_ExApPreviewReq |
struct | Tcis_ExApPreviewResp |
struct | Tcis_GetFeatureReq |
struct | Tcis_GetFeatureResp |
struct | Tcis_SetCloudVideoQualityReq |
struct | Tcis_SetCloudVideoQualityResp |
struct | Tcis_CallReq |
request of TCI_CMD_CALL 更多... | |
struct | Tcis_CallResp |
response of TCI_CMD_CALL. 更多... | |
union | Tcis_MediaInfo.u |
struct | Tcis_MediaInfo.u.mt |
类型定义 | |
typedef struct Tcis_SetStreamCtrlReq | Tcis_GetStreamCtrlResp |
内部命令,仅限SDK和App使用.
在文件 TgCloudCmd_internal.h 中定义.
struct TcisSubControl |
在文件 TgCloudCmd_internal.h 第 12 行定义.
成员变量 | ||
---|---|---|
int | subcmd | SUB_CTRL_xxx |
union unionSUBCMD | u |
union TcisSubControl::unionSUBCMD |
在文件 TgCloudCmd_internal.h 第 14 行定义.
成员变量 | ||
---|---|---|
uint8_t | encrypt_key[16] | |
uint8_t | data[1] | |
struct SUBCTRL_PUTFILE | putfile | |
int | putfile_result | 收到请求返回101, 开始发送文件。接收中或接收完发一次状态码(200:ok; >=500:error) |
struct SUBCTRL_GETFILE | getfile | |
struct SUBCTRL_GETFILE_RESP | getfileresp |
struct TcisSubControl::unionSUBCMD::SUBCTRL_PUTFILE |
在文件 TgCloudCmd_internal.h 第 27 行定义.
成员变量 | ||
---|---|---|
uint32_t | flen | |
uint8_t | md5[16] | |
char | path[1] |
struct TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE |
在文件 TgCloudCmd_internal.h 第 37 行定义.
成员变量 | ||
---|---|---|
char | path[1] |
struct TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE_RESP |
在文件 TgCloudCmd_internal.h 第 42 行定义.
成员变量 | ||
---|---|---|
int | status | error flag |
int | flen | status=0; >=0: length of file; -1:chucked |
uint8_t | md5[16] |
struct Tcis_AVStream |
TCI_CMD_VIDEOSTART = 0x01FF, TCI_CMD_VIDEOSTOP = 0x02FF, TCI_CMD_AUDIOSTART = 0x0300, TCI_CMD_AUDIOSTOP = 0x0301, TCI_CMD_SPEAKERSTART = 0x0350, TCI_CMD_SPEAKERSTOP = 0x0351, TCI_CMD_START_TALK 0x0332 //代替 TCI_CMD_SPEAKERSTART
在文件 TgCloudCmd_internal.h 第 94 行定义.
成员变量 | ||
---|---|---|
unsigned int | avIndex | avIndex |
unsigned int | channel | Camera Index |
struct Tcis_GetMediaInfo |
在文件 TgCloudCmd_internal.h 第 111 行定义.
成员变量 | ||
---|---|---|
int | type | 0: get type |
int | dummy |
struct Tcis_MediaInfo |
在文件 TgCloudCmd_internal.h 第 116 行定义.
成员变量 | ||
---|---|---|
int | type | |
union Tcis_MediaInfo.u | u |
struct Tcis_SetStreamCtrlReq |
TCI_CMD_SETSTREAMCTRL_REQ = 0x0320, TCI_CMD_GETSTREAMCTRL_RESP = 0x0323,
在文件 TgCloudCmd_internal.h 第 132 行定义.
成员变量 | ||
---|---|---|
unsigned int | channel | Camera Index |
unsigned char | quality | |
unsigned char | reserved[3] |
struct Tcis_SetStreamCtrlResp |
TCI_CMD_SETSTREAMCTRL_RESP = 0x0321,
在文件 TgCloudCmd_internal.h 第 142 行定义.
成员变量 | ||
---|---|---|
int | result | 0: success; otherwise: failed. |
unsigned char | reserved[4] |
struct Tcis_GetRecordReq |
TCI_CMD_GETRECORD_REQ = 0x0312,
在文件 TgCloudCmd_internal.h 第 151 行定义.
成员变量 | ||
---|---|---|
unsigned int | channel | Camera Index |
unsigned char | reserved[4] |
struct Tcis_DeviceInfoReq |
TCI_CMD_DEVINFO_REQ = 0x0330,
在文件 TgCloudCmd_internal.h 第 160 行定义.
成员变量 | ||
---|---|---|
unsigned char | reserved[4] |
struct Tcis_DeviceInfoResp |
TCI_CMD_DEVINFO_RESP = 0x0331,
在文件 TgCloudCmd_internal.h 第 169 行定义.
struct Tcis_GetGpsInfoReq |
在文件 TgCloudCmd_internal.h 第 184 行定义.
成员变量 | ||
---|---|---|
int | flags |
0: Request/Answer方式取一次, 忽略avIndex; 1: 流式,在avIndex通道上发送. 暂时只支持R/A方式 |
int | avIndex | flags==1时为流式发送的p2p通道 |
struct TcisGpsInfo |
gps information
在文件 TgCloudCmd_internal.h 第 194 行定义.
成员变量 | ||
---|---|---|
uint32_t | time | 采集时间,utc |
uint32_t | signal_strength | 0-未知; 1-弱; 2-一般; 3-强 |
double | longitude | |
double | latitude | 经/纬度 |
double | speed | 速度: km/h |
int32_t | angle | 相对于正北的方位角(度): 0~359 |
struct Tcis_ExPassWordReq |
在文件 TgCloudCmd_internal.h 第 204 行定义.
成员变量 | ||
---|---|---|
STimeDay | livetime | 配网时清0. AP直连时设为手机的时间 |
char | password[48] | |
unsigned char | reserved[4] | |
char | timezone[0] | 结构长度大于60时存在timezone成员。以'\0'结尾 |
struct Tcis_ExPassWordResp |
在文件 TgCloudCmd_internal.h 第 213 行定义.
成员变量 | ||
---|---|---|
unsigned int | result | |
unsigned char | reserved[4] |
struct Tcis_SetPasswdReq |
struct Tcis_ExApPreviewReq |
在文件 TgCloudCmd_internal.h 第 240 行定义.
成员变量 | ||
---|---|---|
unsigned int | option | |
char | account[48] | |
char | password[48] | |
unsigned char | reserved[4] |
struct Tcis_ExApPreviewResp |
在文件 TgCloudCmd_internal.h 第 249 行定义.
成员变量 | ||
---|---|---|
unsigned int | result | 1: pass , !1: no pass |
unsigned char | reserved[4] |
struct Tcis_GetFeatureReq |
在文件 TgCloudCmd_internal.h 第 258 行定义.
成员变量 | ||
---|---|---|
char | feature[4] | Ignored. No parameters required |
struct Tcis_GetFeatureResp |
在文件 TgCloudCmd_internal.h 第 263 行定义.
成员变量 | ||
---|---|---|
char | feature[1] | json string of features |
struct Tcis_SetCloudVideoQualityReq |
在文件 TgCloudCmd_internal.h 第 268 行定义.
成员变量 | ||
---|---|---|
unsigned int | channel | Camera Index |
unsigned int | quality | 0: HD; 1: SD |
unsigned char | reserved[4] |
struct Tcis_SetCloudVideoQualityResp |
在文件 TgCloudCmd_internal.h 第 276 行定义.
成员变量 | ||
---|---|---|
unsigned int | result | 1 ok , !1 no ok |
unsigned char | reserved[4] | reserved, all zeros |
struct Tcis_CallReq |
request of TCI_CMD_CALL
在文件 TgCloudCmd_internal.h 第 284 行定义.
成员变量 | ||
---|---|---|
int | call | 1:call; 0:cancel |
int | flavor | ECALLFLAVOR |
char | name[36] | null 结束的字符串, 长度不限 |
struct Tcis_CallResp |
union Tcis_MediaInfo.u |
在文件 TgCloudCmd_internal.h 第 118 行定义.
成员变量 | ||
---|---|---|
struct Tcis_MediaInfo.u.mt | mt |
struct Tcis_MediaInfo.u.mt |
在文件 TgCloudCmd_internal.h 第 119 行定义.
成员变量 | ||
---|---|---|
int | n_achn | |
int | n_vchn | |
int | n_streams_per_vchn | |
unsigned char | types[32] |
#define TCI_CMD_TELNET 0x0004 |
在文件 TgCloudCmd_internal.h 第 11 行定义.
#define SUB_CTRL_TELNET_OPEN 0 |
在文件 TgCloudCmd_internal.h 第 15 行定义.
#define SUB_CTRL_TELNET_CLOSE 1 |
在文件 TgCloudCmd_internal.h 第 19 行定义.
#define SUB_CTRL_TELNET_DATA 2 |
在文件 TgCloudCmd_internal.h 第 21 行定义.
#define SUB_CTRL_FILE_BLOCK 8 |
在文件 TgCloudCmd_internal.h 第 22 行定义.
#define SUB_CTRL_LAST_FILE_BLOCK 10 |
在文件 TgCloudCmd_internal.h 第 23 行定义.
#define SUB_CTRL_PUT_FILE 4 |
在文件 TgCloudCmd_internal.h 第 26 行定义.
#define SUB_CTRL_PUT_FILE_RESP 5 |
在文件 TgCloudCmd_internal.h 第 33 行定义.
#define SUB_CTRL_GET_FILE 6 |
在文件 TgCloudCmd_internal.h 第 36 行定义.
#define SUB_CTRL_GET_FILE_RESP 7 |
在文件 TgCloudCmd_internal.h 第 41 行定义.
#define TCI_CMD_GET_MEDIAINFO 0x01FC |
req: Tcis_GetMediaInfo; resp Tcis_MediaInfo
在文件 TgCloudCmd_internal.h 第 52 行定义.
#define TCI_CMD_CALL 0x0302 |
呼叫设备,等待用户应答.
需要发送正应答后才才能拉流和对讲 req: Tcis_CallReq; resp: 要以 扩展的通用状态应答 方式返回 Tcis_CallResp
在文件 TgCloudCmd_internal.h 第 60 行定义.
#define TCI_CMD_TESTSPEED 0x0200 |
在文件 TgCloudCmd_internal.h 第 63 行定义.
#define TCI_CMD_SPEAKERSTART 0x0350 |
在文件 TgCloudCmd_internal.h 第 67 行定义.
#define TCI_CMD_SPEAKERSTOP 0x0351 |
WARNING: 这个命令值为奇数
在文件 TgCloudCmd_internal.h 第 68 行定义.
#define TCI_CMD_START_TALK 0x0332 |
代替 TCI_CMD_SPEAKERSTART
在文件 TgCloudCmd_internal.h 第 69 行定义.
#define TCI_CMD_SETSTREAMCTRL_REQ 0x0320 |
在文件 TgCloudCmd_internal.h 第 71 行定义.
#define TCI_CMD_SETSTREAMCTRL_RESP 0x0321 |
在文件 TgCloudCmd_internal.h 第 72 行定义.
#define TCI_CMD_GETSTREAMCTRL_REQ 0x0322 |
在文件 TgCloudCmd_internal.h 第 73 行定义.
#define TCI_CMD_GETSTREAMCTRL_RESP 0x0323 |
在文件 TgCloudCmd_internal.h 第 74 行定义.
#define TCI_CMD_DEVINFO_REQ 0x0330 |
在文件 TgCloudCmd_internal.h 第 76 行定义.
#define TCI_CMD_DEVINFO_RESP 0x0331 |
在文件 TgCloudCmd_internal.h 第 77 行定义.
#define TCI_CMD_ENTER_SETUP 0x0338 |
进入设置页. 无参数无应答
在文件 TgCloudCmd_internal.h 第 79 行定义.
#define TCI_CMD_LEAVE_SETUP 0x0336 |
离开设置页. 无参数无应答
在文件 TgCloudCmd_internal.h 第 80 行定义.
#define TCI_CMD_GETGPSINFO_REQ 0x0334 |
在文件 TgCloudCmd_internal.h 第 183 行定义.
#define TCI_CMD_GETGPSINFO_RESP 0x0335 |
在文件 TgCloudCmd_internal.h 第 192 行定义.
#define TCI_CMD_PASSWORD_REQ 0X8002 |
在文件 TgCloudCmd_internal.h 第 203 行定义.
#define TCI_CMD_PASSWORD_RESP 0x8003 |
在文件 TgCloudCmd_internal.h 第 212 行定义.
#define TCI_CMD_SETPASSWORD_REQ 0x8004 |
在文件 TgCloudCmd_internal.h 第 218 行定义.
#define TCI_CMD_APLINK_SETWIFI_REQ 0X8006 |
在文件 TgCloudCmd_internal.h 第 229 行定义.
#define TCI_CMD_APLINK_SETWIFI_RESP 0X8007 |
在文件 TgCloudCmd_internal.h 第 231 行定义.
#define TCI_CMD_AP_PREVIEW_REQ 0X8008 |
在文件 TgCloudCmd_internal.h 第 239 行定义.
#define TCI_CMD_AP_PREVIEW_RESP 0x8009 |
在文件 TgCloudCmd_internal.h 第 247 行定义.
#define TCI_CMD_GET_FEATURE_REQ 0x8024 |
在文件 TgCloudCmd_internal.h 第 257 行定义.
#define TCI_CMD_GET_FEATURE_RESP 0x8025 |
在文件 TgCloudCmd_internal.h 第 262 行定义.
#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_REQ 0x8028 |
在文件 TgCloudCmd_internal.h 第 267 行定义.
#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_RESP 0x8029 |
在文件 TgCloudCmd_internal.h 第 275 行定义.