博客
关于我
树莓派连接EC20模块
阅读量:611 次
发布时间:2019-03-13

本文共 767 字,大约阅读时间需要 2 分钟。

树莓派连接EC20模块

1、下载串口助手
sudo apt-get install minicom
2、配置串口
  • 输入 sudo minicom
  • 按下ctrl+A,松开然后按下Z
  • 输入O
  • 选择Serial port setup
  • 按下A,修改串口名称 /dev/ttyUSB2
  • 保存并退出
3、安装驱动识别程序
sudo apt-get install usb-modeswitch usb-modeswitch-data
4、安装拨号软件
sudo apt-get install wvdial
5、修改拨号配置
  • 输入 sudo vim /etc/wvdial.conf
  • 修改成如下形式
[Dialer lan]Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0Init3 = at+cgdcont=1,"ip","3gnet"Modem Type = Analog ModemBaud = 9600New PPPD = yesModem = /dev/ttyUSB2ISDN = 0Phone  = *99#Password = cardUsername = card

APN设置:具体是移动或者联通或者电信就是 Init3 Phone 稍有不同 其他基本一致,这里是电信。

移动: at+cgdcont=1,“ip”,“cmnet”

联通: at+cgdcont=1,“ip”,“3gnet”

电信: at+cgdcont=1,“ip”,“ctnet”

拨号

移动: 991#或981#

联通: *99#

电信: #777

6、拨号
sudo wvdial lan
7、修改路由表
route add -net 0.0.0.0 gw 10.64.64.64 dev ppp0

转载地址:http://ackaz.baihongyu.com/

你可能感兴趣的文章
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named 'pandads'
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>