From 3a880fd832a2826f812aef451e40c8f1241dccff Mon Sep 17 00:00:00 2001 From: ZhangMingjie Date: Wed, 10 Nov 2021 20:19:47 +0800 Subject: [PATCH] plugins: add fibocom FM101 to fibocom port types rules file This patch add fibocom FM101 to 77-mm-fibocom-port-types.rules file. which contains two sets of vid and pid pairs, "2cb7:01a2" and "2cb7:01a4". --- .../fibocom/77-mm-fibocom-port-types.rules | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) mode change 100644 => 100755 plugins/fibocom/77-mm-fibocom-port-types.rules diff --git a/plugins/fibocom/77-mm-fibocom-port-types.rules b/plugins/fibocom/77-mm-fibocom-port-types.rules old mode 100644 new mode 100755 index 81fcd900..05b28aeb --- a/plugins/fibocom/77-mm-fibocom-port-types.rules +++ b/plugins/fibocom/77-mm-fibocom-port-types.rules @@ -31,4 +31,28 @@ ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="0104", ENV{.MM_USBIFNUM}=="01", SUBS ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="0104", ENV{.MM_USBIFNUM}=="02", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1" ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="0104", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_IGNORE}="1" +# Fibocom FM101-GL (MBIM) +# ttyUSB0 (if #2): debug port (ignore) +# ttyUSB1 (if #3): AT port +# ttyUSB2 (if #4): AT port +# ttyUSB3 (if #5): debug port (ignore) +# ttyUSB4 (if #6): debug port (ignore) +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a2", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a2", ENV{.MM_USBIFNUM}=="03", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a2", ENV{.MM_USBIFNUM}=="04", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a2", ENV{.MM_USBIFNUM}=="05", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a2", ENV{.MM_USBIFNUM}=="06", ENV{ID_MM_PORT_IGNORE}="1" + +# Fibocom FM101-GL (ADB) +# ttyUSB0 (if #2): debug port (ignore) +# ttyUSB1 (if #3): AT port +# ttyUSB2 (if #4): debug port (ignore) +# ttyUSB3 (if #5): debug port (ignore) +# ttyUSB4 (if #6): debug port (ignore) +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a4", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a4", ENV{.MM_USBIFNUM}=="03", SUBSYSTEM=="tty", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a4", ENV{.MM_USBIFNUM}=="04", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a4", ENV{.MM_USBIFNUM}=="05", ENV{ID_MM_PORT_IGNORE}="1" +ATTRS{idVendor}=="2cb7", ATTRS{idProduct}=="01a4", ENV{.MM_USBIFNUM}=="06", ENV{ID_MM_PORT_IGNORE}="1" + LABEL="mm_fibocom_port_types_end"