USB Connect LPWA can perform dial-up network (DUN) connections supporting the Point-to-Point Protocol (PPP). Below we give an example of how you can connect to the Internet using app WvDial. WvDial is a Point-to-Point Protocol Dialer: it dials a modem and starts PPP in order to connect to the Internet
Step 1: Install wvdial
sudo apt install wvdial
Step 2: Edit /etc/wvdial.conf for the follows
[Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Init3 = AT+CGDCONT=1,"IP","lpwa.vodafone.com" Username = gdsp Password = gdsp Phone = *99***1# New PPPD = yes Modem Type = Analog Modem Stupid Mode = 1 CarrierCheck = No Check DNS = 1 Dial Command = ATD Modem = /dev/ttyUSB1 ISDN = 0 Baud = 115200 ; Phone = <Target Phone Number> ; Password = <Your Password> ; Username = <Your Login Name>
Change APN lpwa.vodafone.com
and modem port /dev/ttyUSB1
to your own
Step 3: Start connection via command
The module must be attached to the network before starting the WvDial.
sudo wvdial
Step 4: Wait for connection
pi@raspberrypi:~ $ sudo wvdial --> WvDial: Internet dialer version 1.61 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 ATQ0 V1 E1 S0=0 &C1 &D2 OK --> Sending: AT+CGDCONT=1,"IP","lpwa.vodafone.com" AT+CGDCONT=1,"IP","lpwa.vodafone.com" OK --> Modem initialized. --> Sending: ATD*99***1# --> Waiting for carrier. ATD*99***1# CONNECT 150000000 --> Carrier detected. Starting PPP immediately. --> Starting pppd at Tue Feb 28 13:35:55 2023 --> Pid of pppd: 1627 --> Using interface ppp0 --> local IP address 100.97.28.119 --> remote IP address 10.64.64.64 --> primary DNS address 217.14.160.130 --> secondary DNS address 217.14.164.35
To exit the connection, enter the command CTRL+C