diff options
author | ZhangMingjie <superzmj@fibocom.com> | 2021-11-10 20:19:47 +0800 |
---|---|---|
committer | ZhangMingjie <superzmj@fibocom.com> | 2021-11-10 20:19:47 +0800 |
commit | 3a880fd832a2826f812aef451e40c8f1241dccff (patch) | |
tree | 1e6e241edafc8c33dbb761664d8f35053665a7c3 | |
parent | 59ad8409a6088b3592b537122b39d4d609ee829a (diff) |
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".
-rwxr-xr-x[-rw-r--r--] | plugins/fibocom/77-mm-fibocom-port-types.rules | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/fibocom/77-mm-fibocom-port-types.rules b/plugins/fibocom/77-mm-fibocom-port-types.rules index 81fcd900..05b28aeb 100644..100755 --- 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" |