[PATCH 0/1] Workaround for rut955 modem initialization

2021-06-28 Thread Ontje.Luensdorf
From: Ontje Lünsdorf 

Hi all,

The rut955 fails to activate its modem upon every second reboot. By resetting
the modem upon initialization, we get it to work reliably.

This will probably affect all other modems and we are not sure if this may cause
side-effects on other devices.

Best regards,
Ontje

Ontje Lünsdorf (1):
  Reset modem upon initialization.

 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 4 
 1 file changed, 4 insertions(+)

-- 
2.32.0
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH 1/1] Reset modem upon initialization.

2021-06-28 Thread Ontje.Luensdorf
From: Ontje Lünsdorf 

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

Co-authored-by: hans-hermann.reden...@dlr.de
Co-authored-by: jonas.stuehrenb...@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
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH 0/1] Workaround for rut955 modem initialization

2021-06-28 Thread Ontje.Luensdorf
Hi all,


Daniel Golle  writes:

> On Mon, Jun 28, 2021 at 02:19:11PM +0200, John Crispin wrote:
> This particular device (Teltonika RUT955) got a dedicated reset line for
> the USB-connected internal Quectel EC-25 modem available as GPIO which
> could be toggled on boot if needed (in user-space or by wiring up
> device-tree magic doing that).
>
> That's more reliable than using QMI to trigger the reset, and also more
> generic in terms of people not even using 'uqmi' on that device.

thanks for the feedback. We will attempt to follow the advices. This
will take time, though. The device is currently being field tested.

Best regards,
Ontje
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel