Skip to content

Instantly share code, notes, and snippets.

View emmiedev's full-sized avatar
playing

EmmieDev emmiedev

playing
View GitHub Profile
@emmiedev
emmiedev / start_wwan.sh
Created September 2, 2022 12:05 — forked from NiKiZe/start_wwan.sh
Start MC7700 LTE on Raspberry Pi
#!/bin/bash
# Connect a Raspberry Pi to LTE using MC7700 Mini PCI Modem with adapter to USB-C
sudo qmicli -d /dev/cdc-wdm0 -p --wds-stop-network
sudo cat /sys/class/net/wwan0/qmi/raw_ip
sudo ip link set dev wwan0 down
# Enable OS Raw IP Mode setting (not persistent)
sudo su -c "echo Y > /sys/class/net/wwan0/qmi/raw_ip"
sudo qmicli -d /dev/cdc-wdm0 -p --device-open-net="net-raw-ip|net-no-qos-header" --wds-start-network="ip-type=6" --client-no-release-cid
The use of the I2C DS3231/3232 from Armbian SBC has a few quirks, most tutorials on the internet works but only if you have internet connection.
In cuba we can sometimes use Armbian on devices that are not internet connected, so most tutorial fails and after a power failure or reboot you get a non working system because some apps/soft warns and fail with a "date in the future" message.
I have crafted a way to use it as a real systemd service (yes, it's a legacy service...)
Create a file named: rtc_ds1307 in /etc/init.d/ you can use the command below (root privileges are required)
```
nano /etc/init.d/rtc_ds1307