树莓派连接华为E3372 [英] Connecting with Huawei E3372 on RaspberryPi

查看:147
本文介绍了树莓派连接华为E3372的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用华为的 LTE Stick (e3372) 连接到互联网.我安装了 usb-modeswitch、ppp 和 wvdial.modewswitch 工作正常.该设备安装在/dev/ttyUSB0 上,我可以在其中发送 AT 命令.我想与 wvdial 连接,但它总是说PPP 守护进程已死:调制解调器挂断了电话(退出代码 = 16)"我的 wvdial 命令的控制台打印是:

I try to connect to Internet with an LTE Stick from Huawei (e3372). I installed usb-modeswitch, ppp and wvdial. modewswitch is working correctly. The device is mounted on /dev/ttyUSB0 where i am able to send AT commands. I want to connect with wvdial but it always say "The PPP daemon has died: A modem hung up the phone (exit code = 16)" The console print of my wvdial command is :

pi@raspberrypi:~ $ sudo wvdial
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0
ATQ0 V1 E1 S0=0
OK
--> Sending: AT+CGDCONT=1,"IP","drei.at"
AT+CGDCONT=1,"IP","drei.at"
OK
^DSFLOWRPT:00000062,00000000,00000000,0000000000000000,0000000000000084,00000000,00000000
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Thu Mar  2 14:08:21 2017
--> Pid of pppd: 1142
--> Using interface ppp0
--> pppd: ���v[08]��[01]
--> pppd: ���v[08]��[01]
--> pppd: ���v[08]��[01]
--> pppd: ���v[08]��[01]
--> pppd: ���v[08]��[01]
--> Disconnecting at Thu Mar  2 14:08:52 2017
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
^CCaught signal 2:  Attempting to exit gracefully...
--> Modem not responding.
--> Disconnecting at Thu Mar  2 14:09:00 2017

我的 wvdial 配置文件:

My wvdial config file:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0
Init3 = AT+CGDCONT=1,"IP","drei.at"
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Password = ;
Username = ;
Stupid Mode = 1
Dialer Attemps = 2
Carrier Check = off

是什么导致 ppp 守护进程挂掉了?

What cause the ppp daemon to hang up?

推荐答案

这是一个有点老的话题,但我想贡献,因为我发现自己在这个特定的调制解调器上遇到了麻烦以及我遇到的问题,我可以在这看到帖子也是使用 ttyUSB0,如果有人再次遇到这个问题:尝试更改为 ttyUSB1.Modem作为两个设备通信,都接受命令,但是ttyUSB0不仅挂了,还卡死了modem!

It's a bit old topic, but I would like to contribute as I found myself in trouble with this particular modem and the problem I had and I can see in this post too is using ttyUSB0, if someone ever has that problem again: try changing to ttyUSB1. Modem communicates as two devices, both accept commands, but ttyUSB0 not only hangs up, but also freezes modem!

这篇关于树莓派连接华为E3372的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆