orange pi orangepi sim800c gsm 2g gprs 物联网 oled 开发板
提供Bigiot物联网平台代码,远程拍照,温度上传。
详见视频演示:https://www.lightembedded.com/dokuwiki/doku.php?id=videos
淘宝购买链接:https://item.taobao.com/item.htm?spm=a1z38n.10677092.0.0.763968a3bX7yc8&id=558976001022
模块使用视频教程:
https://otp70vofb.bkt.clouddn.com/orangepi.mp4
模块使用教程:
https://wiki.lightembedded.com/dokuwiki/doku.php?id=linux:linux%E4%B8%8Bgprs%E8%81%94%E7%BD%91
模块对接物联网平台在线温度采集,远程监控拍照演示:
https://wiki.lightembedded.com/dokuwiki/doku.php?id=videos
只要接口符合以下方式的都可以通用:
Linux下GPRS拨号上网
实验环境
步骤
- 在板子上安装ppp和chat
sudo apt-get install ppp sudo apt-get install chat
- 编辑拨号文件/etc/ppp/peers/chat-gprs-connect
TIMEOUT 15 ABORT 'nDELAYEDr' ABORT 'nBUSYr' ABORT 'nERRORr' ABORT 'nNO DIALTONEr' ABORT 'nNO CARRIERr' '' rAT OK ATS0=0 OK ATE0V1 OK AT+CGDCONT=1,"IP","CMNET" OK ATDT*99***1# CONNECT ''
- 编辑拨号文件/etc/ppp/peers/chat-gprs-disconnect
ABORT OK ABORT BUSY ABORT DELAYED ABORT "NO ANSWER" ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT VOICE ABORT ERROR ABORT RINGING TIMEOUT 12 "" K "" K "" K "" +++ATH "" +++ATH "" +++ATH "" ATZ SAY "nForlinx GPRS Disconnectn"
- 编辑拨号文件/etc/ppp/peers/gprs
nodetach lock /dev/ttyS1 115200 nocrtscts modem noauth debug nodetach #hide-password usepeerdns noipdefault defaultroute user "" password "" 0.0.0.0:0.0.0.0 ipcp-accept-local ipcp-accept-remote noccp #novj #novjccomp persist connect 'chat -s -v -f /etc/ppp/peers/chat-gprs-connect' disconnect 'chat -s -v -f /etc/ppp/peers/chat-gprs-disconnect'
- 开启GPRS模块
- 开始拨号
sudo pon gprs&
- 这个时候输入ifconfig会出现ppp0,然后设置路由
route add default dev ppp0
- 然后查看网络是否连接
ping www.baidu.com