quectel: add port type hints for the Quectel LTE-A EG06
ttyUSB0 (if #0): QCDM/DIAG port ttyUSB1 (if #1): GPS data port ttyUSB2 (if #2): AT primary port ttyUSB3 (if #3): AT secondary port
This commit is contained in:
@@ -1089,6 +1089,8 @@ AM_CFLAGS += \
|
||||
# plugin: quectel
|
||||
################################################################################
|
||||
|
||||
dist_udevrules_DATA += quectel/77-mm-quectel-port-types.rules
|
||||
|
||||
pkglib_LTLIBRARIES += libmm-plugin-quectel.la
|
||||
libmm_plugin_quectel_la_SOURCES = \
|
||||
quectel/mm-plugin-quectel.c \
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# do not edit this file, it will be overwritten on update
|
||||
ACTION!="add|change|move|bind", GOTO="mm_quectel_port_types_end"
|
||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2c7c", GOTO="mm_quectel_port_types"
|
||||
GOTO="mm_quectel_port_types_end"
|
||||
|
||||
LABEL="mm_quectel_port_types"
|
||||
|
||||
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*", ENV{.MM_USBIFNUM}="$attr{bInterfaceNumber}"
|
||||
|
||||
# Quectel EG06
|
||||
# ttyUSB0 (if #0): QCDM/DIAG port
|
||||
# ttyUSB1 (if #1): GPS data port
|
||||
# ttyUSB2 (if #2): AT primary port
|
||||
# ttyUSB3 (if #3): AT secondary port
|
||||
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0306", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_PORT_TYPE_QCDM}="1"
|
||||
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0306", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_PORT_TYPE_GPS}="1"
|
||||
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0306", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1"
|
||||
ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0306", ENV{.MM_USBIFNUM}=="03", ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1"
|
||||
|
||||
LABEL="mm_quectel_port_types_end"
|
||||
Reference in New Issue
Block a user