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
60#define TCI_CMD_CALL 0x0302
63#define TCI_CMD_TESTSPEED 0x0200
67#define TCI_CMD_SPEAKERSTART 0x0350
68#define TCI_CMD_SPEAKERSTOP 0x0351
69#define TCI_CMD_START_TALK 0x0332
71#define TCI_CMD_SETSTREAMCTRL_REQ 0x0320
72#define TCI_CMD_SETSTREAMCTRL_RESP 0x0321
73#define TCI_CMD_GETSTREAMCTRL_REQ 0x0322
74#define TCI_CMD_GETSTREAMCTRL_RESP 0x0323
76#define TCI_CMD_DEVINFO_REQ 0x0330
77#define TCI_CMD_DEVINFO_RESP 0x0331
79#define TCI_CMD_ENTER_SETUP 0x0338
80#define TCI_CMD_LEAVE_SETUP 0x0336
106 unsigned int channel;
107 unsigned char reserved[4];
108} __PACKED__ Tcis_GetStreamCtrlReq;
121 int n_vchn, n_streams_per_vchn;
122 unsigned char types[32];
135 unsigned char quality;
136 unsigned char reserved[3];
145 unsigned char reserved[4];
154 unsigned char reserved[4];
162 unsigned char reserved[4];
180 unsigned char reserved[8];
183#define TCI_CMD_GETGPSINFO_REQ 0x0334
192#define TCI_CMD_GETGPSINFO_RESP 0x0335
203#define TCI_CMD_PASSWORD_REQ 0X8002
208 unsigned char reserved[4];
212#define TCI_CMD_PASSWORD_RESP 0x8003
215 unsigned char reserved[4];
218#define TCI_CMD_SETPASSWORD_REQ 0x8004
229#define TCI_CMD_APLINK_SETWIFI_REQ 0X8006
231#define TCI_CMD_APLINK_SETWIFI_RESP 0X8007
235 unsigned char reserved[4];
239#define TCI_CMD_AP_PREVIEW_REQ 0X8008
244 unsigned char reserved[4];
247#define TCI_CMD_AP_PREVIEW_RESP 0x8009
251 unsigned char reserved[4];
257#define TCI_CMD_GET_FEATURE_REQ 0x8024
262#define TCI_CMD_GET_FEATURE_RESP 0x8025
267#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_REQ 0x8028
272 unsigned char reserved[4];
275#define TCI_CMD_SET_CLOUD_VIDEO_QUALITY_RESP 0x8029
279 unsigned char reserved[4];
int result
0: wifi connected; 1: failed to connect
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
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,