Template:Linux-SIM800C

From FriendlyELEC WiKi
Revision as of 04:42, 21 January 2019 by Tzs (Talk | contribs) (updated by API)

Jump to: navigation, search

测试SIM800C前请先插入可以使用的SIM卡,并装配GSM/GPRS天线。
NanoPi-Duo2的FriendlyCore系统里默认集成了一个用于测试SIM800C的Python demo程序,其使用方法如下:

$ apt-get install python-pip
$ pip install --upgrade pip
$ pip install pyserial
$ ./sim800c-test.py -h              # 查看帮助信息
./sim800c-test.py -p <phone_number> -o <operator, cmcc> -w <website>
$ ./sim800c-test.py -p 136xxxxxxxx  -o cmcc -w www.baidu.com  # 访问百度

cmcc是China Mobile Communication Corporation的缩写,程序默认是拉取1K的数据,如果成功访问网站,会有如下信息:
Sim800c-surf.png