embeddedart / embeddedart.github.io

Embedded Art website https://www.embeddedart.in
0 stars 0 forks source link

Raspberry Pi internet using 4G HAT #8

Open embeddedart opened 2 years ago

embeddedart commented 2 years ago
sudo apt update -y
embeddedart commented 2 years ago
sudo apt dist-upgrade -y
embeddedart commented 2 years ago
sudo rpi-update

You may see a prompt. Press Y and press enter.

embeddedart commented 2 years ago
sudo reboot
embeddedart commented 2 years ago

above steps may not be mandatory

embeddedart commented 2 years ago
sudo apt install libqmi-utils && udhcpc

you can use seprate command if problem occur sudo apt install udhcpc

libqmi-utils installs libraries that allow you to interact with Qualcomm-based modems. SIM7600 comes with a Qualcomm MDM9607 chipset. udhcpc is used for modem DHCP leasing. The cellular network gives a unique IP to the HAT and the Pi will have its own IP. This is used to solve IP addressing conflicts between the Pi and the HAT.

embeddedart commented 2 years ago

Now we will enable UART to communicate with the device. To do that, run this command and then follow the prompts as shown:

sudo raspi-config

Choose Interfacing Options Choose P6 Serial Press No to the prompt below then Reboot. Serial hardware enabled = yes

embeddedart commented 2 years ago

Next, we're going to configure the SIM7600A module. To turn on the module we will be using the qmicli commands which are used to control Qualcomm devices. This command will activate the device: sudo qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode='online'

embeddedart commented 2 years ago

AT+CUSBPIDSWITCH? +CUSBPIDSWITCH: 9001

OK

AT+CLANMODE? +CLANMODE: 0

OK

AT+CLANMODE=1 OK