Hi,

I have a Quectel BG95 bespoke model with both UART and USB tty interfaces.
When attempting to set the rules as shown below, I am unable to group the
modem and get it working with both interfaces. Only the ttyUSB* is being
acquired, while the UART port (ttyAMA2) is not recognized  for Secondary
port, resulting in the error: "Cannot add port and unhandled port type."

Is it possible to add both USB and UART ports under a single device,
designating one as the primary and the other as the secondary port?

Here are the udev rules I’ve configured in
/etc/udev/rules.d/77-mm-candidate.rules:

# Rule for primary AT port (ttyUSB2)
ACTION=="add|change", KERNEL=="ttyUSB2", ENV{ID_MM_CANDIDATE}="1",
ENV{ID_MM_PORT_TYPE_AT_PRIMARY}="1", ENV{ID_MM_DEVICE_PROCESS}="1",
ENV{ID_MM_PHYSICAL_DEVICE}="quectel_lpwa"

# Rule for diagnostic port (ttyUSB0)
ACTION=="add|change", KERNEL=="ttyUSB0", ENV{ID_MM_CANDIDATE}="1",
ENV{ID_MM_PORT_TYPE_QCDM}="1", ENV{ID_MM_DEVICE_PROCESS}="1",
ENV{ID_MM_PHYSICAL_DEVICE}="quectel_lpwa"

# Rule for secondary AT port (ttyAMA2)
ACTION=="add|change", KERNEL=="ttyAMA2", ENV{ID_MM_CANDIDATE}="1",
ENV{ID_MM_PORT_TYPE_AT_SECONDARY}="1", ENV{ID_MM_DEVICE_PROCESS}="1",
ENV{ID_MM_PHYSICAL_DEVICE}="quectel_lpwa",
ENV{ID_MM_TTY_BAUDRATE}="115200", ENV{ID_MM_TTY_FLOW_CONTROL}="none"
Could you please advise if this configuration can support both USB and UART
ports together or if there is a specific method to handle this?

Thanks
Sree

Reply via email to