📄 call.c
字号:
#include<stdio.h>#include<string.h>#include<unistd.h>#include<fcntl.h>#include"tty.h"#include"gprs.h"void gprs_init(){ tty_writecmd("at",strlen("at")); tty_writecmd("ate0",strlen("ate0")); tty_writecmd("at+chfa=1",strlen("at+chfa=1")); tty_writecmd("at+clvl=100",strlen("at+clvl=100")); tty_writecmd("at+cmic=1",strlen("at+cmic=1,10")); tty_writecmd("at+cmgf=1",strlen("at+cmgf=1")); tty_writecmd("at+clip=1",strlen("at+clip=1")); tty_writecmd("at+cscs=\"GSM\"",strlen("at+cscs\"GSM\"")); tty_writecmd("at+cnmi=2,1,0,0,0",strlen("at+cnmi=2,1,0,0,0"));}void gprs_call(char *number,int num){ tty_writecmd("at",strlen("at")); tty_write("atd",strlen("atd")); tty_write(number,num); tty_write(";\r",strlen(";\r")); usleep(200000);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -