[PATCH 1/1] Reset modem upon initialization.

Ontje.Luensdorf at dlr.de Ontje.Luensdorf at dlr.de
Mon Jun 28 04:56:21 PDT 2021


From: Ontje Lünsdorf <ontje.luensdorf at dlr.de>

The rut955 fails to activate its modem upon every second reboot otherwise.

Co-authored-by: hans-hermann.redenius at dlr.de
Co-authored-by: jonas.stuehrenberg at dlr.de
---
 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index c0134f4..60695ec 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -81,6 +81,10 @@ proto_qmi_setup() {
 
 	echo "Waiting for SIM initialization"
 	local uninitialized_timeout=0
+
+	# Reset modem, workaround for a buggy modem after an reboot
+	uqmi -s -d "$device" --set-device-operating-mode reset
+
 	while uqmi -s -d "$device" --get-pin-status | grep '"UIM uninitialized"' > /dev/null; do
 		[ -e "$device" ] || return 1
 		if [ "$uninitialized_timeout" -lt "$timeout" -o "$timeout" = "0" ]; then
-- 
2.32.0


More information about the openwrt-devel mailing list