Configuration
使用 wvdial 撥號時出現“錯誤的初始化字元串”
我正在嘗試使用 wvdial 通過我的華為調製解調器 EM680 撥號。我的調製解調器正確打開,
/dev/ttyUSB1
但是當我執行 wvdial 時,我得到了這個:# wvdial --> WvDial: Internet dialer version 1.61 --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 +FCLASS=0 ATQ0 V1 E1 +FCLASS=0 OK --> Sending: AT+CGDCONT=1,"IP","m2mstatic.apn" AT+CGDCONT=1,"IP","m2mstatic.apn" ERROR --> Bad init string. --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 +FCLASS=0 ATQ0 V1 E1 +FCLASS=0 OK --> Sending: AT+CGDCONT=1,"IP","m2mstatic.apn" AT+CGDCONT=1,"IP","m2mstatic.apn" ERROR --> Bad init string. --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 +FCLASS=0 ATQ0 V1 E1 +FCLASS=0 OK --> Sending: AT+CGDCONT=1,"IP","m2mstatic.apn" AT+CGDCONT=1,"IP","m2mstatic.apn" ERROR --> Bad init string. #
為什麼這麼說
bad init string.
?我的/etc/wvdial.conf
樣子是這樣的:[Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 +FCLASS=0 Init3 = AT+CGDCONT=1,"IP","m2mstatic.apn" Stupid Mode = yes Modem Type = Analog Modem ISDN = 0 New PPPD = yes Phone = *99# Modem = /dev/ttyUSB1 Username = ; Password = ; Baud = 9600
這個 wvdial.conf 在下面的 ZTE 3G 調製解調器上工作:
[Dialer Defaults] Modem = /dev/ttyUSB0 Init1 = ATZ Init3 = AT+CGDCONT=1,"IP","apnname" Phone = *99***1# Username = user Password = user New PPPD = yes Stupid Mode = 1
你可以用我的 wvdial.conf 試試。
我遇到了同樣的問題,然後發現我的設備中沒有 SIM 卡。當我添加 SIM 卡時,它又可以工作了。
可能是 SIM 卡被鎖定了?我看過其他建議添加的文章:
AT+CPIN="0000"
到腳本(https://help.ubuntu.com/community/DialupModemHowto/Huawei/E220)