wvdial NO CARRIER错误

时间:2016-06-03 07:21:12

标签: raspberry-pi at-command dial-up usb-modeswitch

我一直在尝试将华为E3131连接到我的Raspberry pi。 到目前为止,我已经安装了ppp,usb_modeswitch和wvdial。这是我的wvdial.conf部分由wvdialconf生成并且由我自己部分更改:

[Dialer Defaults]
Modem = /dev/modem
Username = { }
Password = { }
Baud = 9600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0
Init3 = ATX3
Carrier Check = no
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *+88690xxxxxxx#
New PPPD = yes

最后我得到的输出看起来像是:

--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0
ATQ0 V1 E1 S0=0
OK
--> Sending: ATX3
ATX3
OK
--> Modem initialized.
--> Sending: ATDT*+88690xxxxxxx#
--> Waiting for carrier.
ATDT*+88690xxxxxxx#
NO CARRIER
--> No Carrier!  Trying again.
--> Sending: ATDT*+88690xxxxxxx#
--> Waiting for carrier.
ATDT*+88690xxxxxxx#
NO CARRIER
--> No Carrier!  Trying again.

如果有任何帮助,加密狗中的SIM卡来自中华电信(台湾)。

1 个答案:

答案 0 :(得分:0)

好的,显然你需要将基本的* 99#更改为您的电话号码。所以最终的配置文件看起来像

[Dialer Defaults]
Modem = /dev/modem
Username = { }
Password = { }
Baud = 9600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0
Init3 = ATX3
Carrier Check = no
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
New PPPD = yes

使用sudo运行它以创建ppp,一切正常。您也可以运行wvdialconf以使用合适的命令生成配置文件。但是除了Baud之外,参数还是受其影响。希望有人会发现它很有用。