29 typedef void (*
Callback)(
int intput_type,
char *pin,
char *puk);
84 int send_at(
int fd,
const char *cmd,
char *buff,
int buff_size);
102 int cmd_signal(
int fd,
char *buff,
int buff_size);
122 int init(
int fd,
enum Model model,
char *reply,
int reply_size);
137 int dial(
int fd,
char *dialing_type,
enum PDP_type pdp_type,
char *apn,
enum AUTH auth,
char *
name,
char *pwd);
149 int dial_pppd(
char *modem,
enum PDP_type pdp_type,
char *apn,
char *auth,
char *name,
char *pwd);
int cmd_AT(int fd)
发送指令“AT”,检查模块是否在线。
void disconnect_pppd()
对于PPPD方式,使用本函数断开拨号。
int dial_pppd(char *modem, enum PDP_type pdp_type, char *apn, char *auth, char *name, char *pwd)
使用PPPD方式通过脚本进行拨号
int init(int fd, enum Model model, char *reply, int reply_size)
对GSM模块进行初始化
char * name
字体的描述(字体名)
Definition: font.h:36
void(* Callback)(int intput_type, char *pin, char *puk)
回调函数类型,其中intput_type为0时仅需输入PIN码进行解锁,若连续3次输入错误PIN码,这时intput_type为1,...
Definition: tq_gsm.h:29
void set_Callback(Callback)
设置用于输入PUK与PIN码的回调函数。
int dial(int fd, char *dialing_type, enum PDP_type pdp_type, char *apn, enum AUTH auth, char *name, char *pwd)
使用RMNET、RMDIS、ECM方式通过AT指令进行拨号。
int cmd_signal(int fd, char *buff, int buff_size)
发送指令“AT+CSQ”,获取信号强度
int disconnect_dial(int fd, char *dialing_type)
对于RMNET、RMDIS、ECM方式通过AT指令断开拨号。
int send_at(int fd, const char *cmd, char *buff, int buff_size)
用于发送AT指令