30 lines
1.5 KiB
C
30 lines
1.5 KiB
C
#ifndef _EC20NET_H
|
||
#define _EC20NET_H
|
||
|
||
#include "ec20module.h"
|
||
#include "syslib.h" //kmp
|
||
#include "sysport.h" //ErrorLogPrintf("创建camera队列失败!") ;
|
||
|
||
/*****************************************
|
||
*内部函数声明
|
||
****************************************/
|
||
RunResult EC20_SendPDPCmd( uint8_t cmdNum, char *format,... ) ; // EC20通过串口发送net相关命令
|
||
RunResult Config_Context( uint8_t contextId ) ; //配置context(会话)
|
||
RunResult Deact_Context( uint8_t contextId ) ; //去激活context
|
||
RunResult Act_Context( uint8_t contextId ) ; //激活context
|
||
RunResult Query_Context( uint8_t contextId, uint8_t *localIp ) ; //查询context状态
|
||
RunResult EC20_QueryCsServiceStatus(void) ; //配置查询 连接CS SERVER状态
|
||
RunResult EC20_QueryPsServiceStatus(void) ; //配置查询 连接PS SERVER状态
|
||
|
||
/*****************************************
|
||
*对外接口函数声明
|
||
****************************************/
|
||
extern RunResult EC20_Query_SimIccid(char* simICCID) ; //查询sim卡的ICCID号
|
||
extern char* EC20_Query_NetInfo(void) ; //查询网络信息
|
||
extern RunResult EC20_Query_CSQ(char *csq) ; //查询信号指令
|
||
extern RunResult EC20_Net_Reg(char *errInfo, uint8_t errLen) ; //注册网络,包括查询SIMiccid、网络信息、信号质量
|
||
extern RunResult ActivePDP( uint8_t contextId, uint8_t *localIp) ;//PDP激活并输出PDP链路IP
|
||
extern RunResult DeactivePDP( uint8_t contextId) ; //PDP去激活
|
||
|
||
#endif
|