From fc512c711fbc6a1b66bc3f0b56ec650603bd9b7f Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 13 Jul 2021 23:30:23 +0200 Subject: [PATCH] simtech: disable CPOL? checks in SIM7070 The whole device breaks when the CPOL? query is sent; happening consistently all the time: [1626211395.825257] [modem4/ttyUSB3/at] --> 'AT+CPOL=,2' [1626211395.842156] [modem4/ttyUSB3/at] <-- 'OK' [1626211395.843227] [modem4/sim4] loading preferred networks... [1626211395.845289] [modem4/ttyUSB3/at] --> 'AT+CPOL?' [1626211401.110974] [modem4/ttyUSB3/at] unexpected port hangup! [1626211401.111586] [modem4/ttyUSB3/at] forced to close port [1626211401.112331] [modem4/ttyUSB3/at] closing serial port... [1626211401.112771] [modem4/ttyUSB3/at] serial port closed Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/401 --- plugins/simtech/77-mm-simtech-port-types.rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/simtech/77-mm-simtech-port-types.rules b/plugins/simtech/77-mm-simtech-port-types.rules index bd30a49e..e51a60dd 100644 --- a/plugins/simtech/77-mm-simtech-port-types.rules +++ b/plugins/simtech/77-mm-simtech-port-types.rules @@ -42,6 +42,9 @@ ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9205", ENV{.MM_USBIFNUM}=="00", SUBS ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9205", ENV{.MM_USBIFNUM}=="01", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_GPS}="1" ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9205", ENV{.MM_USBIFNUM}=="02", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1" ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9205", ENV{.MM_USBIFNUM}=="03", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PPP}="1" +# Disable CPOL based features +ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9205", ENV{ID_MM_PREFERRED_NETWORKS_CPOL_DISABLED}="1" + # SIM7070, SIM7080, SIM7090 (secondary layout)... ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9206", ENV{.MM_USBIFNUM}=="00", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_QCDM}="1" @@ -50,5 +53,7 @@ ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9206", ENV{.MM_USBIFNUM}=="02", SUBS ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9206", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_IGNORE}="1" ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9206", ENV{.MM_USBIFNUM}=="04", ENV{ID_MM_PORT_IGNORE}="1" ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9206", ENV{.MM_USBIFNUM}=="05", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PPP}="1" +# Disable CPOL based features +ATTRS{idVendor}=="1e0e", ATTRS{idProduct}=="9206", ENV{ID_MM_PREFERRED_NETWORKS_CPOL_DISABLED}="1" LABEL="mm_simtech_port_types_end"