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

内部命令,仅限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
 

宏定义

#define TCI_CMD_TELNET   0x0004
 
#define SUB_CTRL_TELNET_OPEN   0
 
#define SUB_CTRL_TELNET_CLOSE   1
 
#define SUB_CTRL_TELNET_DATA   2
 
#define SUB_CTRL_FILE_BLOCK   8
 
#define SUB_CTRL_LAST_FILE_BLOCK   10
 
#define SUB_CTRL_PUT_FILE   4
 
#define SUB_CTRL_PUT_FILE_RESP   5
 
#define SUB_CTRL_GET_FILE   6
 
#define SUB_CTRL_GET_FILE_RESP   7
 
#define TCI_CMD_GET_MEDIAINFO   0x01FC
 req: Tcis_GetMediaInfo; resp Tcis_MediaInfo
 
#define TCI_CMD_CALL   0x0302
 呼叫设备,等待用户应答.
 
#define TCI_CMD_TESTSPEED   0x0200
 
#define TCI_CMD_SPEAKERSTART   0x0350
 
#define TCI_CMD_SPEAKERSTOP   0x0351
 WARNING: 这个命令值为奇数
 
#define TCI_CMD_START_TALK   0x0332
 代替 TCI_CMD_SPEAKERSTART
 
#define TCI_CMD_SETSTREAMCTRL_REQ   0x0320
 
#define TCI_CMD_SETSTREAMCTRL_RESP   0x0321
 
#define TCI_CMD_GETSTREAMCTRL_REQ   0x0322
 
#define TCI_CMD_GETSTREAMCTRL_RESP   0x0323
 
#define TCI_CMD_DEVINFO_REQ   0x0330
 
#define TCI_CMD_DEVINFO_RESP   0x0331
 
#define TCI_CMD_ENTER_SETUP   0x0338
 进入设置页. 无参数无应答
 
#define TCI_CMD_LEAVE_SETUP   0x0336
 离开设置页. 无参数无应答
 
#define TCI_CMD_GETGPSINFO_REQ   0x0334
 
#define TCI_CMD_GETGPSINFO_RESP   0x0335
 
#define TCI_CMD_PASSWORD_REQ   0X8002
 
#define TCI_CMD_PASSWORD_RESP   0x8003
 
#define TCI_CMD_SETPASSWORD_REQ   0x8004
 
#define TCI_CMD_APLINK_SETWIFI_REQ   0X8006
 
#define TCI_CMD_APLINK_SETWIFI_RESP   0X8007
 
#define TCI_CMD_AP_PREVIEW_REQ   0X8008
 
#define TCI_CMD_AP_PREVIEW_RESP   0x8009
 
#define TCI_CMD_GET_FEATURE_REQ   0x8024
 
#define TCI_CMD_GET_FEATURE_RESP   0x8025
 
#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_REQ   0x8028
 
#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_RESP   0x8029
 

类型定义

typedef struct Tcis_SetStreamCtrlReq Tcis_GetStreamCtrlResp
 

详细描述

内部命令,仅限SDK和App使用.

在文件 TgCloudCmd_internal.h 中定义.


结构体说明

◆ TcisSubControl

struct TcisSubControl

在文件 TgCloudCmd_internal.h12 行定义.

成员变量
int subcmd SUB_CTRL_xxx
union unionSUBCMD u

◆ TcisSubControl::unionSUBCMD

union TcisSubControl::unionSUBCMD

在文件 TgCloudCmd_internal.h14 行定义.

成员变量
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

◆ TcisSubControl::unionSUBCMD::SUBCTRL_PUTFILE

struct TcisSubControl::unionSUBCMD::SUBCTRL_PUTFILE

在文件 TgCloudCmd_internal.h27 行定义.

成员变量
uint32_t flen
uint8_t md5[16]
char path[1]

◆ TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE

struct TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE

在文件 TgCloudCmd_internal.h37 行定义.

成员变量
char path[1]

◆ TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE_RESP

struct TcisSubControl::unionSUBCMD::SUBCTRL_GETFILE_RESP

在文件 TgCloudCmd_internal.h42 行定义.

成员变量
int status error flag
int flen status=0; >=0: length of file; -1:chucked
uint8_t md5[16]

◆ Tcis_AVStream

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.h94 行定义.

成员变量
unsigned int avIndex avIndex
unsigned int channel Camera Index

◆ Tcis_GetMediaInfo

struct Tcis_GetMediaInfo

在文件 TgCloudCmd_internal.h111 行定义.

成员变量
int type 0: get type
int dummy

◆ Tcis_MediaInfo

struct Tcis_MediaInfo

在文件 TgCloudCmd_internal.h116 行定义.

成员变量
int type
union Tcis_MediaInfo.u u

◆ Tcis_SetStreamCtrlReq

struct Tcis_SetStreamCtrlReq

TCI_CMD_SETSTREAMCTRL_REQ = 0x0320, TCI_CMD_GETSTREAMCTRL_RESP = 0x0323,

在文件 TgCloudCmd_internal.h132 行定义.

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

◆ Tcis_SetStreamCtrlResp

struct Tcis_SetStreamCtrlResp

TCI_CMD_SETSTREAMCTRL_RESP = 0x0321,

在文件 TgCloudCmd_internal.h142 行定义.

成员变量
int result 0: success; otherwise: failed.
unsigned char reserved[4]

◆ Tcis_GetRecordReq

struct Tcis_GetRecordReq

TCI_CMD_GETRECORD_REQ = 0x0312,

在文件 TgCloudCmd_internal.h151 行定义.

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

◆ Tcis_DeviceInfoReq

struct Tcis_DeviceInfoReq

TCI_CMD_DEVINFO_REQ = 0x0330,

在文件 TgCloudCmd_internal.h160 行定义.

成员变量
unsigned char reserved[4]

◆ Tcis_DeviceInfoResp

struct Tcis_DeviceInfoResp

TCI_CMD_DEVINFO_RESP = 0x0331,

在文件 TgCloudCmd_internal.h169 行定义.

成员变量
char model[16] IPCam mode
char vendor[16] IPCam manufacturer
unsigned int version IPCam firmware version ex. v1.2.3.4 => 0x01020304; v1.0.0.2 => 0x01000002
unsigned int channel Camera index
unsigned int total 0: No cards been detected or an unrecognizeable sdcard that could not be re-formatted.

-1: if camera detect an unrecognizable sdcard, and could be re-formatted otherwise: return total space size of sdcard (MBytes)

unsigned int free Free space size of sdcard (MBytes)
unsigned char reserved[8] reserved

◆ Tcis_GetGpsInfoReq

struct Tcis_GetGpsInfoReq

在文件 TgCloudCmd_internal.h184 行定义.

成员变量
int flags 0: Request/Answer方式取一次, 忽略avIndex; 1: 流式,在avIndex通道上发送.

暂时只支持R/A方式

int avIndex flags==1时为流式发送的p2p通道

◆ TcisGpsInfo

struct TcisGpsInfo

gps information

在文件 TgCloudCmd_internal.h194 行定义.

成员变量
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

◆ Tcis_ExPassWordReq

struct Tcis_ExPassWordReq

在文件 TgCloudCmd_internal.h204 行定义.

成员变量
STimeDay livetime 配网时清0. AP直连时设为手机的时间
char password[48]
unsigned char reserved[4]
char timezone[0] 结构长度大于60时存在timezone成员。以'\0'结尾

◆ Tcis_ExPassWordResp

struct Tcis_ExPassWordResp

在文件 TgCloudCmd_internal.h213 行定义.

成员变量
unsigned int result
unsigned char reserved[4]

◆ Tcis_SetPasswdReq

struct Tcis_SetPasswdReq

设置直连模式密码请求参数结构体.

TCI_CMD_SETPASSWORD_REQ = 0x8004,

在文件 TgCloudCmd_internal.h222 行定义.

成员变量
char oldpasswd[32] The old security code
char newpasswd[32] The new security code

◆ Tcis_ExApPreviewReq

struct Tcis_ExApPreviewReq

在文件 TgCloudCmd_internal.h240 行定义.

成员变量
unsigned int option
char account[48]
char password[48]
unsigned char reserved[4]

◆ Tcis_ExApPreviewResp

struct Tcis_ExApPreviewResp

在文件 TgCloudCmd_internal.h249 行定义.

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

◆ Tcis_GetFeatureReq

struct Tcis_GetFeatureReq

在文件 TgCloudCmd_internal.h258 行定义.

成员变量
char feature[4] Ignored. No parameters required

◆ Tcis_GetFeatureResp

struct Tcis_GetFeatureResp

在文件 TgCloudCmd_internal.h263 行定义.

成员变量
char feature[1] json string of features

◆ Tcis_SetCloudVideoQualityReq

struct Tcis_SetCloudVideoQualityReq

在文件 TgCloudCmd_internal.h268 行定义.

成员变量
unsigned int channel Camera Index
unsigned int quality 0: HD; 1: SD
unsigned char reserved[4]

◆ Tcis_SetCloudVideoQualityResp

struct Tcis_SetCloudVideoQualityResp

在文件 TgCloudCmd_internal.h276 行定义.

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

◆ Tcis_CallReq

struct Tcis_CallReq

request of TCI_CMD_CALL

在文件 TgCloudCmd_internal.h284 行定义.

成员变量
int call 1:call; 0:cancel
int flavor ECALLFLAVOR
char name[36] null 结束的字符串, 长度不限

◆ Tcis_CallResp

struct Tcis_CallResp

response of TCI_CMD_CALL.

本响应必须通过 扩展通用状态应答 的方式返回.

在文件 TgCloudCmd_internal.h295 行定义.

成员变量
int status
  • -1: 忙或无人接听

或 ECALLFLAVOR:

  • 0: 拒接
  • 1: 接听(仅语音)
  • 2: 接听(音视频)
int reserved 0

◆ Tcis_MediaInfo.u

union Tcis_MediaInfo.u

在文件 TgCloudCmd_internal.h118 行定义.

成员变量
struct Tcis_MediaInfo.u.mt mt

◆ Tcis_MediaInfo.u.mt

struct Tcis_MediaInfo.u.mt

在文件 TgCloudCmd_internal.h119 行定义.

成员变量
int n_achn
int n_vchn
int n_streams_per_vchn
unsigned char types[32]

宏定义说明

◆ TCI_CMD_TELNET

#define TCI_CMD_TELNET   0x0004

在文件 TgCloudCmd_internal.h11 行定义.

◆ SUB_CTRL_TELNET_OPEN

#define SUB_CTRL_TELNET_OPEN   0

在文件 TgCloudCmd_internal.h15 行定义.

◆ SUB_CTRL_TELNET_CLOSE

#define SUB_CTRL_TELNET_CLOSE   1

在文件 TgCloudCmd_internal.h19 行定义.

◆ SUB_CTRL_TELNET_DATA

#define SUB_CTRL_TELNET_DATA   2

在文件 TgCloudCmd_internal.h21 行定义.

◆ SUB_CTRL_FILE_BLOCK

#define SUB_CTRL_FILE_BLOCK   8

在文件 TgCloudCmd_internal.h22 行定义.

◆ SUB_CTRL_LAST_FILE_BLOCK

#define SUB_CTRL_LAST_FILE_BLOCK   10

在文件 TgCloudCmd_internal.h23 行定义.

◆ SUB_CTRL_PUT_FILE

#define SUB_CTRL_PUT_FILE   4

在文件 TgCloudCmd_internal.h26 行定义.

◆ SUB_CTRL_PUT_FILE_RESP

#define SUB_CTRL_PUT_FILE_RESP   5

在文件 TgCloudCmd_internal.h33 行定义.

◆ SUB_CTRL_GET_FILE

#define SUB_CTRL_GET_FILE   6

在文件 TgCloudCmd_internal.h36 行定义.

◆ SUB_CTRL_GET_FILE_RESP

#define SUB_CTRL_GET_FILE_RESP   7

在文件 TgCloudCmd_internal.h41 行定义.

◆ TCI_CMD_GET_MEDIAINFO

#define TCI_CMD_GET_MEDIAINFO   0x01FC

req: Tcis_GetMediaInfo; resp Tcis_MediaInfo

在文件 TgCloudCmd_internal.h52 行定义.

◆ TCI_CMD_CALL

#define TCI_CMD_CALL   0x0302

呼叫设备,等待用户应答.

需要发送正应答后才才能拉流和对讲 req: Tcis_CallReq; resp: 要以 扩展的通用状态应答 方式返回 Tcis_CallResp

在文件 TgCloudCmd_internal.h60 行定义.

◆ TCI_CMD_TESTSPEED

#define TCI_CMD_TESTSPEED   0x0200

在文件 TgCloudCmd_internal.h63 行定义.

◆ TCI_CMD_SPEAKERSTART

#define TCI_CMD_SPEAKERSTART   0x0350

在文件 TgCloudCmd_internal.h67 行定义.

◆ TCI_CMD_SPEAKERSTOP

#define TCI_CMD_SPEAKERSTOP   0x0351

WARNING: 这个命令值为奇数

在文件 TgCloudCmd_internal.h68 行定义.

◆ TCI_CMD_START_TALK

#define TCI_CMD_START_TALK   0x0332

代替 TCI_CMD_SPEAKERSTART

在文件 TgCloudCmd_internal.h69 行定义.

◆ TCI_CMD_SETSTREAMCTRL_REQ

#define TCI_CMD_SETSTREAMCTRL_REQ   0x0320

在文件 TgCloudCmd_internal.h71 行定义.

◆ TCI_CMD_SETSTREAMCTRL_RESP

#define TCI_CMD_SETSTREAMCTRL_RESP   0x0321

在文件 TgCloudCmd_internal.h72 行定义.

◆ TCI_CMD_GETSTREAMCTRL_REQ

#define TCI_CMD_GETSTREAMCTRL_REQ   0x0322

在文件 TgCloudCmd_internal.h73 行定义.

◆ TCI_CMD_GETSTREAMCTRL_RESP

#define TCI_CMD_GETSTREAMCTRL_RESP   0x0323

在文件 TgCloudCmd_internal.h74 行定义.

◆ TCI_CMD_DEVINFO_REQ

#define TCI_CMD_DEVINFO_REQ   0x0330

在文件 TgCloudCmd_internal.h76 行定义.

◆ TCI_CMD_DEVINFO_RESP

#define TCI_CMD_DEVINFO_RESP   0x0331

在文件 TgCloudCmd_internal.h77 行定义.

◆ TCI_CMD_ENTER_SETUP

#define TCI_CMD_ENTER_SETUP   0x0338

进入设置页. 无参数无应答

在文件 TgCloudCmd_internal.h79 行定义.

◆ TCI_CMD_LEAVE_SETUP

#define TCI_CMD_LEAVE_SETUP   0x0336

离开设置页. 无参数无应答

在文件 TgCloudCmd_internal.h80 行定义.

◆ TCI_CMD_GETGPSINFO_REQ

#define TCI_CMD_GETGPSINFO_REQ   0x0334

在文件 TgCloudCmd_internal.h183 行定义.

◆ TCI_CMD_GETGPSINFO_RESP

#define TCI_CMD_GETGPSINFO_RESP   0x0335

在文件 TgCloudCmd_internal.h192 行定义.

◆ TCI_CMD_PASSWORD_REQ

#define TCI_CMD_PASSWORD_REQ   0X8002

在文件 TgCloudCmd_internal.h203 行定义.

◆ TCI_CMD_PASSWORD_RESP

#define TCI_CMD_PASSWORD_RESP   0x8003

在文件 TgCloudCmd_internal.h212 行定义.

◆ TCI_CMD_SETPASSWORD_REQ

#define TCI_CMD_SETPASSWORD_REQ   0x8004

在文件 TgCloudCmd_internal.h218 行定义.

◆ TCI_CMD_APLINK_SETWIFI_REQ

#define TCI_CMD_APLINK_SETWIFI_REQ   0X8006

在文件 TgCloudCmd_internal.h229 行定义.

◆ TCI_CMD_APLINK_SETWIFI_RESP

#define TCI_CMD_APLINK_SETWIFI_RESP   0X8007

在文件 TgCloudCmd_internal.h231 行定义.

◆ TCI_CMD_AP_PREVIEW_REQ

#define TCI_CMD_AP_PREVIEW_REQ   0X8008

在文件 TgCloudCmd_internal.h239 行定义.

◆ TCI_CMD_AP_PREVIEW_RESP

#define TCI_CMD_AP_PREVIEW_RESP   0x8009

在文件 TgCloudCmd_internal.h247 行定义.

◆ TCI_CMD_GET_FEATURE_REQ

#define TCI_CMD_GET_FEATURE_REQ   0x8024

在文件 TgCloudCmd_internal.h257 行定义.

◆ TCI_CMD_GET_FEATURE_RESP

#define TCI_CMD_GET_FEATURE_RESP   0x8025

在文件 TgCloudCmd_internal.h262 行定义.

◆ TCI_CMD_SET_CLOUD_VIDEO_QUALITY_REQ

#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_REQ   0x8028

在文件 TgCloudCmd_internal.h267 行定义.

◆ TCI_CMD_SET_CLOUD_VIDEO_QUALITY_RESP

#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_RESP   0x8029

在文件 TgCloudCmd_internal.h275 行定义.