我正在尝试在 Debian 上通过 HUAWEI E3372 运行互联网。它在 Windows 上工作,但在 Debian 上不起作用。错误是这样的:
ATDT*99#
ERROR
--> Invalid dial command.
wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion
*current_task->stack_magic == WVTASK_MAGIC' failed.
Aborted
这是问题信息:
wvdial.conf
root@debian:/home/b# cat /etc/wvdial.conf
[Dialer orange]
Modem = /dev/ttyUSB1
Phone = *99#
Username =;
Password =;
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","internet","",0,0
Auto DNS = on
root@debian:/home/b#
dmesg | grep tty
root@debian:/home/b# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 4.288912] usb 2-8: GSM modem (1-port) converter now attached to ttyUSB0
[ 4.288990] usb 2-8: GSM modem (1-port) converter now attached to ttyUSB1
root@debian:/home/b#
拨号橙色
root@debian:/home/b# wvdial orange
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","internet","",0,0
AT+CGDCONT=1,"IP","internet","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
ERROR
--> Invalid dial command.
wvdial: utils/wvtask.cc:303: static int WvTaskMan::yield(int): Assertion `*current_task->stack_magic == WVTASK_MAGIC' failed.
Aborted
root@debian:/home/b#
LSSB
root@debian:/home/b# lsusb
Bus 002 Device 002: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0bf8:1004 Fujitsu Siemens Computers
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@debian:/home/b#
更新
配置有效并且互联网实际上已经存在。它是空的resolve.conf
simlink,所以我复制了/etc/ppp/resolve.conf
一个并且它起作用了。
反正错误仍然存在我想摆脱它。
另请注意,我在Network Manager
禁用服务的情况下执行所有操作。
答案1
我的华为E3372也有同样的问题。不过,我使用的是树莓派 (4)。我通过添加
max_usb_current=1
到/boot/config.txt 解决了这个问题。显然,当 E3372 没有获得足够的电量时,它会静默失败(“错误”),而 wvdial 对此一无所知,只是报告“无效的拨号命令”。显然,E3372 在 TX 上耗电,导致了这种情况。