6#ifndef __TgCloudCmd_internal_h__
7#define __TgCloudCmd_internal_h__
11#define TCI_CMD_TELNET 0x0004
15#define SUB_CTRL_TELNET_OPEN 0
17 uint8_t encrypt_key[16];
19#define SUB_CTRL_TELNET_CLOSE 1
21#define SUB_CTRL_TELNET_DATA 2
22#define SUB_CTRL_FILE_BLOCK 8
23#define SUB_CTRL_LAST_FILE_BLOCK 10
26#define SUB_CTRL_PUT_FILE 4
33#define SUB_CTRL_PUT_FILE_RESP 5
36#define SUB_CTRL_GET_FILE 6
41#define SUB_CTRL_GET_FILE_RESP 7
46 } __PACKED__ getfileresp;
52#define TCI_CMD_GET_MEDIAINFO 0x01FC
71#define TCI_CMD_CALL 0x0302
74#define TCI_CMD_TESTSPEED 0x0200
78#define TCI_CMD_SPEAKERSTART 0x0350
79#define TCI_CMD_SPEAKERSTOP 0x0351
80#define TCI_CMD_START_TALK 0x0332
82#define TCI_CMD_SETSTREAMCTRL_REQ 0x0320
83#define TCI_CMD_SETSTREAMCTRL_RESP 0x0321
84#define TCI_CMD_GETSTREAMCTRL_REQ 0x0322
85#define TCI_CMD_GETSTREAMCTRL_RESP 0x0323
87#define TCI_CMD_DEVINFO_REQ 0x0330
88#define TCI_CMD_DEVINFO_RESP 0x0331
90#define TCI_CMD_ENTER_SETUP 0x0338
91#define TCI_CMD_LEAVE_SETUP 0x0336
117 unsigned int channel;
118 unsigned char reserved[4];
119} __PACKED__ Tcis_GetStreamCtrlReq;
132 int n_vchn, n_streams_per_vchn;
133 unsigned char types[32];
143 TCIC_QUALITY_HIGH = 0x02,
144 TCIC_QUALITY_MIDDLE = 0x03,
145 TCIC_QUALITY_LOW = 0x04,
157 unsigned char quality;
158 unsigned char reserved[3];
167 unsigned char reserved[4];
176 unsigned char reserved[4];
184 unsigned char reserved[4];
202 unsigned char reserved[8];
205#define TCI_CMD_GETGPSINFO_REQ 0x0334
214#define TCI_CMD_GETGPSINFO_RESP 0x0335
225#define TCI_CMD_PASSWORD_REQ 0X8002
230 unsigned char reserved[4];
234#define TCI_CMD_PASSWORD_RESP 0x8003
237 unsigned char reserved[4];
240#define TCI_CMD_SETPASSWORD_REQ 0x8004
251#define TCI_CMD_APLINK_SETWIFI_REQ 0X8006
253#define TCI_CMD_APLINK_SETWIFI_RESP 0X8007
257 unsigned char reserved[4];
261#define TCI_CMD_AP_PREVIEW_REQ 0X8008
266 unsigned char reserved[4];
269#define TCI_CMD_AP_PREVIEW_RESP 0x8009
273 unsigned char reserved[4];
279#define TCI_CMD_GET_FEATURE_REQ 0x8024
284#define TCI_CMD_GET_FEATURE_RESP 0x8025
289#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_REQ 0x8028
294 unsigned char reserved[4];
297#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_RESP 0x8029
301 unsigned char reserved[4];
int result
0: wifi connected; 1: failed to connect
@ TCIC_QUALITY_AUTO
自适应码流(需要设备支持 Resolutions)
unsigned int version
IPCam firmware version ex. v1.2.3.4 => 0x01020304; v1.0.0.2 => 0x01000002
unsigned int avIndex
avIndex
char timezone[0]
结构长度大于60时存在timezone成员。以'\0'结尾
int result
0: success; otherwise: failed.
char name[36]
null 结束的字符串, 长度不限.
int avIndex
flags==1时为流式发送的p2p通道
unsigned int channel
Camera Index
int flen
status=0; >=0: length of file; -1:chucked
unsigned int quality
0: HD; 1: SD
unsigned int result
1: pass , !1: no pass
unsigned int result
1 ok , !1 no ok
uint32_t signal_strength
0-未知; 1-弱; 2-一般; 3-强
STimeDay livetime
配网时清0. AP直连时设为手机的时间
unsigned int channel
Camera Index
int status
参见 ECALLRESPCODE.
unsigned int channel
Camera index
unsigned int free
Free space size of sdcard (MBytes)
unsigned int total
0: No cards been detected or an unrecognizeable sdcard that could not be re-formatted.
unsigned int channel
Camera Index
int putfile_result
收到请求返回101, 开始发送文件。接收中或接收完发一次状态码(200:ok; >=500:error)
int flags
0: Request/Answer方式取一次, 忽略avIndex; 1: 流式,在avIndex通道上发送.
unsigned int channel
Camera Index
int32_t angle
相对于正北的方位角(度): 0~359
TCI_CMD_VIDEOSTART = 0x01FF, TCI_CMD_VIDEOSTOP = 0x02FF, TCI_CMD_AUDIOSTART = 0x0300,...
response of TCI_CMD_CALL.
TCI_CMD_DEVINFO_REQ = 0x0330,
TCI_CMD_DEVINFO_RESP = 0x0331,
TCI_CMD_GETRECORD_REQ = 0x0312,
TCI_CMD_SETSTREAMCTRL_REQ = 0x0320, TCI_CMD_GETSTREAMCTRL_RESP = 0x0323,
TCI_CMD_SETSTREAMCTRL_RESP = 0x0321,