orange pi orangepi sim800c gsm 2g gprs 物聯(lián)網(wǎng) oled 開發(fā)板
提供Bigiot物聯(lián)網(wǎng)平臺代碼,遠(yuǎn)程拍照,溫度上傳。
詳見視頻演示: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
模塊對接物聯(lián)網(wǎng)平臺在線溫度采集,遠(yuǎn)程監(jiān)控拍照演示:
https://wiki.lightembedded.com/dokuwiki/doku.php?id=videos
只要接口符合以下方式的都可以通用:
Linux下GPRS撥號上網(wǎng)
實(shí)驗(yàn)環(huán)境
- orange pi lite(全志H3)
- sim800c/sim900a模塊(淘寶上賣的有)
- 中國移動物聯(lián)網(wǎng)卡(9塊錢一張)
- Ubuntu/armbian/debian系統(tǒng)
步驟
- 在板子上安裝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&
- 這個(gè)時(shí)候輸入ifconfig會出現(xiàn)ppp0,然后設(shè)置路由
route add default dev ppp0
- 然后查看網(wǎng)絡(luò)是否連接
ping www.baidu.com