AI Thinker GSM GPRS GPS Module

为了制作短信猫, 购买了2块芯片. 参考了下列资料:

Wiring

  • GND
  • TX
  • RX
  • MicroUSB: +5V
$ minicom -b 115200 -o -D /dev/ttyAMA0
>>> AT
OK  

If you cannot send data, please run both cat /dev/ttyAMA0 and echo -e 'AT\r' >> /dev/ttyAMA0 for multiple times.

Call

>>> ATD10086
OK  
+CIEV: "CALL",1
+CIEV: "SOUNDER",1
+CIEV: "SOUNDER",0

>>> ATH
+CIEV: "CALL",0
OK  

SMS

>>> AT+CMGF=1
OK

>>> AT+CMGS="13801234567"
> hello world<Enter><Ctrl-J>
<Ctrl-Z>  
+CMGS: 1
OK

+CIEV: "MESSAGE",1
+CMT: "+8613801234567",,"2016/09/26,20:13:46+08"
hello world  

GPS

>>> AT+GPS=1
OK

>>> AT+GPSRD=5
+GPSRD:$GPGGA,,,,,,0,00,,,M,,M,,0000*66
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,T,,M,,N,,K,N*2C
OK

>>> AT+GPSRD=0
OK

>>> AT+GPS=0
OK

>>> AT+AGPS=1
OK