100% worked - How to Connect Raspberry Pi with a 4G USB Stick Modem using wvdial - Materi Teknologi Informasi dan Komputer | Teknowledgeid

Breaking

Materi Teknologi Informasi dan Komputer | Teknowledgeid

Materi Teknologi Informasi & Komputer

BANNER 728X90

Kamis, 09 Juli 2020

100% worked - How to Connect Raspberry Pi with a 4G USB Stick Modem using wvdial


Hello everyone, we all know that some 4G modems are generally able to directly connect the internet without doing the initial configuration as in the Windows and Ubuntu operating systems.

However, on the Raspbian operating system (Raspberry OS), it takes several initial steps for the modem to work and connect to the internet. don't worry about that, so in this tutorial I will share tutorials to all of you about how to get an internet connection on raspberries with a 4G modem using wvdial packages.

STEP 1 : First, the hardware that you need to prepare is the Raspberry Pi device including the OS (it's up to you to use Raspberry 3 or 4) and a 4G modem (make sure that the modem has a stick mode), in this case I use a 4G Huawei E3372 dongle stick modem.

STEP 2 : The second step that needs to be done is to install a number of additional packages such as usb-modeswitch, wvidal and ppp. The package should be installed using a terminal on the Raspbian operating system. The following is the package installation tutorial:
sudo apt-get update
sudo apt install ppp usb-modeswitch wvdial

STEP 3 : Third, connect the modem dongle stick to the Raspberry Pi and verify that the modem is connected to the Raspberry Pi device. you can do that by opening a terminal and writing the command lsusb.


STEP 4 : This is your time to configure the modem, you can definitely do it by creating the "wvdial.conf" file in the / etc directory and then modifying the contents of the "wvdial.conf" file as follows:
wvdialconf /wvdial.conf
Continue to modify the contents of the file, here I use the command sudo gedit to open and modify the contents of the file., the command sudo cat should also be used.
sudo gedit /etc/wvdial.conf
 
In the picture above, I use a sim card from Indonesia (Telkomsel) so that the username and password on lines 13-14 depend on the APN that you will use later. The 10th line depends on how the dongle is connected to the system. TtyUSB * can be found when the previous command wvdialconf /wvdial.conf is run.

STEP 5 : Almost done, you need to do additional configuration. You should change the default route used.
sudo gedit /etc/ppp/peers/wvdial

STEP 6 : Congratulations, you have successfully configured your modem. now, you can start trying to connect to the internet by writing the command sudo wvdial.

See you next time guys ^_^



Tidak ada komentar:

Posting Komentar