My Dokuwiki Pages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

====== Raspberry Pi: Peripheral Interfacing ======
//Update in progress...//
===== SIM7600 4G Module =====
More info [[|here]].
This is the code i use... I may put a more elaborate one some time in the future.
**WARNING: Do NOT simply copy and run this.... make sure you understand what it does.**
<code shell>
#sudo apt install libqmi-utils udhcpc
#sudo qmicli -d /dev/cdc-wdm0 --dms-set-operating-mode='online'
#sudo qmicli -d /dev/cdc-wdm0 --dms-get-operating-mode
#sudo qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength
#sudo qmicli -d /dev/cdc-wdm0 --nas-get-home-network
#sudo qmicli -d /dev/cdc-wdm0 -w
sudo ip link set wwan0 down
echo 'Y' | sudo tee /sys/class/net/wwan0/qmi/raw_ip
sudo ip link set wwan0 up
sudo qmicli -p -d /dev/cdc-wdm0 --device-open-net='net-raw-ip|net-no-qos-header' --wds-start-network="apn=celcom3g,ip-type=4" --client-no-release-cid
sudo qmi-network /dev/cdc-wdm0 start
sudo udhcpc -i wwan0
#ip a s wwan0
#ip r s