|
Tange Cloud for Device
Rev.362 |
内部命令,仅限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 |
枚举 | |
| enum | ENUM_QUALITY_LEVEL |
| 视频质量表示 更多... | |
| enum | ECALLRESPCODE |
| 呼叫响应码 更多... | |
内部命令,仅限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 第 105 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned int | avIndex | avIndex |
| unsigned int | channel | Camera Index |
| struct Tcis_GetMediaInfo |
在文件 TgCloudCmd_internal.h 第 122 行定义.
| 成员变量 | ||
|---|---|---|
| int | type | 0: get type |
| int | dummy | |
| struct Tcis_MediaInfo |
在文件 TgCloudCmd_internal.h 第 127 行定义.
| 成员变量 | ||
|---|---|---|
| int | type | |
| union Tcis_MediaInfo.u | u | |
| struct Tcis_SetStreamCtrlReq |
TCI_CMD_SETSTREAMCTRL_REQ = 0x0320, TCI_CMD_GETSTREAMCTRL_RESP = 0x0323,
在文件 TgCloudCmd_internal.h 第 154 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned int | channel | Camera Index |
| unsigned char | quality | |
| unsigned char | reserved[3] | |
| struct Tcis_SetStreamCtrlResp |
TCI_CMD_SETSTREAMCTRL_RESP = 0x0321,
在文件 TgCloudCmd_internal.h 第 164 行定义.
| 成员变量 | ||
|---|---|---|
| int | result | 0: success; otherwise: failed. |
| unsigned char | reserved[4] | |
| struct Tcis_GetRecordReq |
TCI_CMD_GETRECORD_REQ = 0x0312,
在文件 TgCloudCmd_internal.h 第 173 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned int | channel | Camera Index |
| unsigned char | reserved[4] | |
| struct Tcis_DeviceInfoReq |
TCI_CMD_DEVINFO_REQ = 0x0330,
在文件 TgCloudCmd_internal.h 第 182 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned char | reserved[4] | |
| struct Tcis_DeviceInfoResp |
TCI_CMD_DEVINFO_RESP = 0x0331,
在文件 TgCloudCmd_internal.h 第 191 行定义.
| struct Tcis_GetGpsInfoReq |
在文件 TgCloudCmd_internal.h 第 206 行定义.
| 成员变量 | ||
|---|---|---|
| int | flags |
0: Request/Answer方式取一次, 忽略avIndex; 1: 流式,在avIndex通道上发送. 暂时只支持R/A方式 |
| int | avIndex | flags==1时为流式发送的p2p通道 |
| struct TcisGpsInfo |
gps information
在文件 TgCloudCmd_internal.h 第 216 行定义.
| 成员变量 | ||
|---|---|---|
| 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 第 226 行定义.
| 成员变量 | ||
|---|---|---|
| STimeDay | livetime | 配网时清0. AP直连时设为手机的时间 |
| char | password[48] | |
| unsigned char | reserved[4] | |
| char | timezone[0] | 结构长度大于60时存在timezone成员。以'\0'结尾 |
| struct Tcis_ExPassWordResp |
在文件 TgCloudCmd_internal.h 第 235 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned int | result | |
| unsigned char | reserved[4] | |
| struct Tcis_SetPasswdReq |
| struct Tcis_ExApPreviewReq |
在文件 TgCloudCmd_internal.h 第 262 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned int | option | |
| char | account[48] | |
| char | password[48] | |
| unsigned char | reserved[4] | |
| struct Tcis_ExApPreviewResp |
在文件 TgCloudCmd_internal.h 第 271 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned int | result | 1: pass , !1: no pass |
| unsigned char | reserved[4] | |
| struct Tcis_GetFeatureReq |
在文件 TgCloudCmd_internal.h 第 280 行定义.
| 成员变量 | ||
|---|---|---|
| char | feature[4] | Ignored. No parameters required |
| struct Tcis_GetFeatureResp |
在文件 TgCloudCmd_internal.h 第 285 行定义.
| 成员变量 | ||
|---|---|---|
| char | feature[1] | json string of features |
| struct Tcis_SetCloudVideoQualityReq |
在文件 TgCloudCmd_internal.h 第 290 行定义.
| 成员变量 | ||
|---|---|---|
| unsigned int | channel | Camera Index |
| unsigned int | quality | 0: HD; 1: SD |
| unsigned char | reserved[4] | |
| struct Tcis_SetCloudVideoQualityResp |
在文件 TgCloudCmd_internal.h 第 298 行定义.
| 成员变量 | ||
|---|---|---|
| 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 第 306 行定义.
| 成员变量 | ||
|---|---|---|
| int | call | 1:call; 0:cancel |
| int | flavor | ECALLFLAVOR |
| char | name[36] |
null 结束的字符串, 长度不限.
|
| struct Tcis_CallResp |
| 成员变量 | ||
|---|---|---|
| int | status | 参见 ECALLRESPCODE. |
| int | reserved | 0 |
| union Tcis_MediaInfo.u |
在文件 TgCloudCmd_internal.h 第 129 行定义.
| 成员变量 | ||
|---|---|---|
| struct Tcis_MediaInfo.u.mt | mt | |
| struct Tcis_MediaInfo.u.mt |
在文件 TgCloudCmd_internal.h 第 130 行定义.
| 成员变量 | ||
|---|---|---|
| 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
接听后设备端挂断通话(TciHangup()), App会在命令通道上收到 RTM_GOINGTO_SLEEP 消息. App挂断在TCI_CMD_ANSWERCALL 命令里发送 CALLSTATE_HANGUP 状态.
访问端要在新连接上执行呼叫, 通话结束或呼叫失败都要关掉连接.
能力描述: 在 Profile 中加入 Callee 属性
在文件 TgCloudCmd_internal.h 第 71 行定义.
| #define TCI_CMD_TESTSPEED 0x0200 |
在文件 TgCloudCmd_internal.h 第 74 行定义.
| #define TCI_CMD_SPEAKERSTART 0x0350 |
在文件 TgCloudCmd_internal.h 第 78 行定义.
| #define TCI_CMD_SPEAKERSTOP 0x0351 |
WARNING: 这个命令值为奇数
在文件 TgCloudCmd_internal.h 第 79 行定义.
| #define TCI_CMD_START_TALK 0x0332 |
代替 TCI_CMD_SPEAKERSTART
在文件 TgCloudCmd_internal.h 第 80 行定义.
| #define TCI_CMD_SETSTREAMCTRL_REQ 0x0320 |
在文件 TgCloudCmd_internal.h 第 82 行定义.
| #define TCI_CMD_SETSTREAMCTRL_RESP 0x0321 |
在文件 TgCloudCmd_internal.h 第 83 行定义.
| #define TCI_CMD_GETSTREAMCTRL_REQ 0x0322 |
在文件 TgCloudCmd_internal.h 第 84 行定义.
| #define TCI_CMD_GETSTREAMCTRL_RESP 0x0323 |
在文件 TgCloudCmd_internal.h 第 85 行定义.
| #define TCI_CMD_DEVINFO_REQ 0x0330 |
在文件 TgCloudCmd_internal.h 第 87 行定义.
| #define TCI_CMD_DEVINFO_RESP 0x0331 |
在文件 TgCloudCmd_internal.h 第 88 行定义.
| #define TCI_CMD_ENTER_SETUP 0x0338 |
进入设置页. 无参数无应答
在文件 TgCloudCmd_internal.h 第 90 行定义.
| #define TCI_CMD_LEAVE_SETUP 0x0336 |
离开设置页. 无参数无应答
在文件 TgCloudCmd_internal.h 第 91 行定义.
| #define TCI_CMD_GETGPSINFO_REQ 0x0334 |
在文件 TgCloudCmd_internal.h 第 205 行定义.
| #define TCI_CMD_GETGPSINFO_RESP 0x0335 |
在文件 TgCloudCmd_internal.h 第 214 行定义.
| #define TCI_CMD_PASSWORD_REQ 0X8002 |
在文件 TgCloudCmd_internal.h 第 225 行定义.
| #define TCI_CMD_PASSWORD_RESP 0x8003 |
在文件 TgCloudCmd_internal.h 第 234 行定义.
| #define TCI_CMD_SETPASSWORD_REQ 0x8004 |
在文件 TgCloudCmd_internal.h 第 240 行定义.
| #define TCI_CMD_APLINK_SETWIFI_REQ 0X8006 |
在文件 TgCloudCmd_internal.h 第 251 行定义.
| #define TCI_CMD_APLINK_SETWIFI_RESP 0X8007 |
在文件 TgCloudCmd_internal.h 第 253 行定义.
| #define TCI_CMD_AP_PREVIEW_REQ 0X8008 |
在文件 TgCloudCmd_internal.h 第 261 行定义.
| #define TCI_CMD_AP_PREVIEW_RESP 0x8009 |
在文件 TgCloudCmd_internal.h 第 269 行定义.
| #define TCI_CMD_GET_FEATURE_REQ 0x8024 |
在文件 TgCloudCmd_internal.h 第 279 行定义.
| #define TCI_CMD_GET_FEATURE_RESP 0x8025 |
在文件 TgCloudCmd_internal.h 第 284 行定义.
| #define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_REQ 0x8028 |
在文件 TgCloudCmd_internal.h 第 289 行定义.
| #define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_RESP 0x8029 |
在文件 TgCloudCmd_internal.h 第 297 行定义.
| enum ENUM_QUALITY_LEVEL |
视频质量表示
| 枚举值 | ||
|---|---|---|
| TCIC_QUALITY_AUTO | 0x00 | 自适应码流(需要设备支持 Resolutions) |
| TCIC_QUALITY_MAX | 0x01 | 最高质量 |
| TCIC_QUALITY_MIN | 0x05 | 最低质量 |
在文件 TgCloudCmd_internal.h 第 139 行定义.
| enum ECALLRESPCODE |
呼叫响应码
| 枚举值 | ||
|---|---|---|
| CRC_BUSY | -2 | 占线 |
| CRC_MISSED | -1 | 无人接听 |
| CRC_REJECT | 0 | 拒接 |
| CRC_FLAVOR_VOICE | 1 | 语音通话 |
| CRC_FLAVOR_VIDEO | 2 | 视频通话 |
在文件 TgCloudCmd_internal.h 第 318 行定义.