ubuntu 16 + ec20
---
sudo apt-get install wvdial
and install
Setting up libwvstreams4.6-base (4.6.1-7) ...
Setting up libwvstreams4.6-extras (4.6.1-7) ...
Setting up libuniconf4.6 (4.6.1-7) ...
Setting up wvdial (1.61-4.1) ...
---
/etc/wvdial.conf
[Dialer Defaults]
Phone = *99#
Username = username
Password = passwd
Stupid Mode = 1
Check Def Route = on
Dial Attempts = 3
Modem = /dev/ttyUSB2
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
Init3 AT+CGDCONT=1,"IP","Internet"
ISDN = 0
Modem Type = Analog Modem
APN = internet
New PPPD = yes
---
run
sudo wvdial &
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 150000000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Apr 6 02:26:59 2022
--> Pid of pppd: 2460
--> Using interface ppp0
--> pppd: x[7f]
--> pppd: x[7f]
--> pppd: x[7f]
--> pppd: x[7f]
--> pppd: x[7f]
--> local IP address 10.198.59.192
--> pppd: x[7f]
--> remote IP address 10.64.64.64
--> pppd: x[7f]
--> primary DNS address 168.95.1.1
--> pppd: x[7f]
--> secondary DNS address 168.95.192.1
--> pppd: x[7f]
---
中華電信, apn = internet
Init3 AT+CGDCONT=1,"IP","Internet"
APN = internet
亞太電信, apn=gtnet
Init3 AT+CGDCONT=1,"IP","gtnet"
APN = gtnet
-----
mod change
> ppp_deflate 16384 0
> bsd_comp 16384 0
> ppp_async 20480 1
> option 53248 1
> usb_wwan 20480 1 option
> qmi_wwan 32768 0
> cdc_wdm 20480 1 qmi_wwan
> usbnet 45056 1 qmi_wwan
> mii 16384 1 usbnet
> usbserial 45056 5 option,usb_wwan