我已经 Build 了一个ITEAD sim900 GSM模块来与raspberry pi连接 . 我相信我已经通过wvdial Build 了与AT&T的gprs连接,因为我得到了这些结果 .
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: AT+CGDCONT=1,"IP","Broadband"
AT+CGDCONT=1,"IP","Broadband"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Aug 14 05:49:20 2014
--> Pid of pppd: 2794
我一直在互联网上寻找一些我的问题的答案,但我似乎找不到任何问题 . 任何有关以下问题的帮助将不胜感激!谢谢!
我有三个问题,有些可能是愚蠢的,因为我对这个领域非常陌生 .
-
我实际连接到AT&T的GPRS网络吗?
-
如何将此模块(串口/ dev / ttyAMA0)设为我的默认互联网连接?我的意思是我希望通过此调制解调器(网上冲浪,电子邮件等)路由所有互联网流量 . 我通过ssh连接到Raspberry所以我必须有以太网或wifi激活才能访问计算机 - 我目前正在使用以太网 . 在我通过上面显示的方式连接到wvdial,并禁用所有其他Internet源我无法访问 . 它似乎仍然在寻找活动的以太网端口的数据(我可能是错的) .
-
对于我的项目,我需要将sim900调制解调器作为互联网接入点,但我还需要能够通过无法访问互联网的wifi连接到局域网 . 这可能吗?
1 回答
最后我得到了(raspberrypi ppp gprs / gsm-modem)工作 .
开始前的一些注意事项
确保您用于raspberrypi的电源精确为5V,并且它可以提供至少2A电流而不会出现电压下降.SIM900电源必须为3.3V 2A
通过以下方式将SIM900波特率设置为115200:
AT+IPR=115200
通过以下方式检查调制解调器串行外设:
$ screen /dev/ttyAMA0 115200
类型AT<enter>
它将回显:OK
. 点击ctrl+a k y
退出 ./etc/ppp/options-mobile
Create the /etc/ppp/peers directory:
/etc/ppp/peers/mobile-auth
/etc/ppp/peers/mobile-noauth
Create the /etc/ppp/chatscripts directory:
/etc/ppp/chatscripts/mobile-modem.chat
/etc/ppp/chatscripts/my-operator-apn
/etc/ppp/chatscripts/pin.CODE
/etc/ppp/chatscripts/pin.NONE
/etc/ppp/chatscripts/mode.3G-only
/etc/ppp/chatscripts/mode.3G-pref
/etc/ppp/chatscripts/mode.GPRS-only
/etc/ppp/chatscripts/mode.GPRS-pref
/etc/ppp/chatscripts/mode.NONE
Make some symbolic links:
If you have to enter credentials use mobile-auth
Check syslog in another console:
Finally issue the pon command to see the result:
基本指令:https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd