Gagent系统拆解
2016-10-23 22:45:54 0 举报
详解
作者其他创作
大纲/内容
GAgent_BigDataTick( pgc );
T1_SOCK_CLOSE_RSP:
dTime = GAgent_BaseTick();
回响处理
app3
自主申请循环
MQTT_HeartbeatTime();\t\t\tHeartBeatResendTimes++;
SOCKET数据收入
GAPP_SIG_SOCK_CLOSE_RSP:/*close respond */
T1_SEC_TIMER_IND:
app5
T2_EVENT_AT_RSP_IND
\t\t\tSecondCnt++;
数据存在
GAPP_SIG_SOCK_DATA_RECV_IND:peer data recving
AT命令入口
下面还有6个左右的CASE,但不怎么关联,先不处理
app4
SYS_CALLBACK
sig_in
GAgent_DevTick();
HeartBeatResendTimes(0~5)&&WIFI_CLOUD_CONNECTED
系统最多申请5个回调函数
uart_in
app2
GAPP_SIG_SOCK_ERROR_IND:socket error
at_in
app1
pcm_output
T1_HB_TIMEOUT:
ppacket信息输出
T1_SOCK_CLOSE_IND:
APP.c入口文件
GAPP_SIG_SOCK_CONNECT_RSP:tcp connect success event
UartRcvBuf[1024]
系统信号处理,主要是TCP信号
\t\t\t\t\t\t\t\t\tGAgent_Tick( pgContextData );
T1_SOCK_DATA_RECV_IND:
app_init
HeartBeatTimeOut(void *arg)
0 条评论
下一页