Open embeddedart opened 2 years ago
sudo apt dist-upgrade -y
sudo rpi-update
You may see a prompt. Press Y and press enter.
sudo reboot
above steps may not be mandatory
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.
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
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'
AT+CUSBPIDSWITCH? +CUSBPIDSWITCH: 9001
OK
AT+CLANMODE? +CLANMODE: 0
OK
AT+CLANMODE=1 OK