EM7565: Modem Manager is not detecting the Serial port

I have connected multiple Sierra cards with Ubuntu machine, all were working fine last week with Modem Manager. But today i could see “failed to find primary port” error in Modem Manager status and ports are not responding for AT commands, please help,

root@multi-ue:/home# systemctl status ModemManager
● ModemManager.service - Modem Manager
Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-09-29 14:24:10 IST; 2min 33s ago
Main PID: 3747 (ModemManager)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/ModemManager.service
└─3747 /usr/sbin/ModemManager

Sep 29 14:24:27 multi-ue ModemManager[3747]: Could not grab port (tty/ttyUSB7): ‘Cannot add port ‘tty/ttyUSB7’, unhandled serial type’
Sep 29 14:24:27 multi-ue ModemManager[3747]: Couldn’t create modem for device ‘/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1.3’: Failed to find primary AT po
Sep 29 14:24:27 multi-ue ModemManager[3747]: [device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1.4] creating modem with plugin ‘Generic’ and ‘4’ ports
Sep 29 14:24:27 multi-ue ModemManager[3747]: Could not grab port (tty/ttyUSB11): ‘Cannot add port ‘tty/ttyUSB11’, unhandled serial type’
Sep 29 14:24:27 multi-ue ModemManager[3747]: Could not grab port (tty/ttyUSB10): ‘Cannot add port ‘tty/ttyUSB10’, unhandled serial type’
Sep 29 14:24:27 multi-ue ModemManager[3747]: Couldn’t create modem for device ‘/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.1/2-1.1.4’: Failed to find primary AT po
Sep 29 14:24:27 multi-ue ModemManager[3747]: [device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.2] creating modem with plugin ‘Generic’ and ‘4’ ports
Sep 29 14:24:27 multi-ue ModemManager[3747]: Could not grab port (tty/ttyUSB2): ‘Cannot add port ‘tty/ttyUSB2’, unhandled serial type’
Sep 29 14:24:27 multi-ue ModemManager[3747]: Could not grab port (tty/ttyUSB1): ‘Cannot add port ‘tty/ttyUSB1’, unhandled serial type’
Sep 29 14:24:27 multi-ue ModemManager[3747]: Couldn’t create modem for device ‘/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1/2-1.2’: Failed to find primary AT port

@mohanraj612

So what do the following terminal commands respond with?

lsusb
modinfo GobiSerial
modinfo GobiNet
ls /dev
lsmod

Regards

Matt

Thanks for the response, Here the output,

root@multi-ue:/home# lsusb
Bus 002 Device 004: ID 1199:9091 Sierra Wireless, Inc.
Bus 002 Device 008: ID 1199:9091 Sierra Wireless, Inc.
Bus 002 Device 006: ID 1199:9091 Sierra Wireless, Inc.
Bus 002 Device 005: ID 1199:9091 Sierra Wireless, Inc.
Bus 002 Device 003: ID 0bda:0411 Realtek Semiconductor Corp.
Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@multi-ue:/home# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 10000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
|__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
|__ Port 4: Dev 8, If 2, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 4: Dev 8, If 0, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 4: Dev 8, If 3, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 4: Dev 8, If 8, Class=Vendor Specific Class, Driver=GobiNet, 5000M
|__ Port 2: Dev 5, If 3, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 2: Dev 5, If 8, Class=Vendor Specific Class, Driver=GobiNet, 5000M
|__ Port 2: Dev 5, If 2, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 2: Dev 5, If 0, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 3: Dev 6, If 3, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 3: Dev 6, If 8, Class=Vendor Specific Class, Driver=GobiNet, 5000M
|__ Port 3: Dev 6, If 2, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 3: Dev 6, If 0, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 2: Dev 4, If 0, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 2: Dev 4, If 2, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 2: Dev 4, If 3, Class=Vendor Specific Class, Driver=GobiSerial, 5000M
|__ Port 2: Dev 4, If 8, Class=Vendor Specific Class, Driver=GobiNet, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
root@multi-ue:/home#

root@multi-ue:/home# modinfo GobiSerial
filename: /lib/modules/4.15.0-1096-oem/kernel/drivers/usb/serial/GobiSerial.ko
license: Dual BSD/GPL
description: GobiSerial
author: Qualcomm Innovation Center
version: 2020-04-24/SWI_2.42
srcversion: ADB6BC01E38787089D9A3E6
alias: usb:v1199p9061ddcdscdpiciscipin
alias: usb:v1199p9060ddcdscdpiciscipin
alias: usb:v1199p9056ddcdscdpiciscipin
alias: usb:v1199p9055ddcdscdpiciscipin
alias: usb:v1199p9054ddcdscdpiciscipin
alias: usb:v1199p9053ddcdscdpiciscipin
alias: usb:v1199p9051ddcdscdpiciscipin
alias: usb:v1199p9041ddcdscdpiciscipin
alias: usb:v1199p9040ddcdscdpiciscipin
alias: usb:v1199p9019ddcdscdpiciscipin
alias: usb:v1199p9018ddcdscdpiciscipin
alias: usb:v1199p9015ddcdscdpiciscipin
alias: usb:v1199p9014ddcdscdpiciscipin
alias: usb:v1199p9013ddcdscdpiciscipin
alias: usb:v1199p9012ddcdscdpiciscipin
alias: usb:v1199p9011ddcdscdpiciscipin
alias: usb:v1199p9010ddcdscdpiciscipin
alias: usb:v1199p9080ddcdscdpiciscipin
alias: usb:v1199p9081ddcdscdpiciscipin
alias: usb:v1199p90C1ddcdscdpiciscipin
alias: usb:v1199p90C0ddcdscdpiciscipin
alias: usb:v1199p90B1ddcdscdpiciscipin
alias: usb:v1199p90B0ddcdscdpiciscipin
alias: usb:v1199p9091ddcdscdpiciscipin
alias: usb:v1199p9090ddcdscdpiciscipin
alias: usb:v1199p9102ddcdscdpiciscipin
alias: usb:v1199p9100ddcdscdpiciscipin
alias: usb:v1199p9070ddcdscdpiciscipin
alias: usb:v1199p9071ddcdscdpiciscipin
alias: usb:v1199p68C0ddcdscdpiciscipin
alias: usb:v1199p68A2ddcdscdpiciscipin
alias: usb:v05C6p920Dddcdscdpiciscipin
alias: usb:v05C6p920Cddcdscdpiciscipin
depends: usbserial
retpoline: Y
name: GobiSerial
vermagic: 4.15.0-1096-oem SMP mod_unload
parm: debug:Debug enabled or not (int)
parm: flow_control:flow control enabled or not (int)
parm: ignore_gps_start_error:allow port open to success even when GPS control message failed (int)
parm: delay_open_gps_port:Delay Open GPS Port, after device ready (int)
parm: iusb3_zlp_enable:0 = Disable , 1 (default) ZLP on USB3 in QDL mode (int)
root@multi-ue:/home#

root@multi-ue:/home# ls /dev/
autofs drm_dp_aux1 initctl loop16 memory_bandwidth qcqmi3 stderr tty18 tty30 tty43 tty56 ttyS1 ttyS22 ttyS7 ttyUSB9 vcsa2
block ecryptfs input loop2 mqueue random stdin tty19 tty31 tty44 tty57 ttyS10 ttyS23 ttyS8 uhid vcsa3
bsg fd kmsg loop3 net rfkill stdout tty2 tty32 tty45 tty58 ttyS11 ttyS24 ttyS9 uinput vcsa4
btrfs-control full kvm loop4 network_latency rtc tty tty20 tty33 tty46 tty59 ttyS12 ttyS25 ttyUSB0 urandom vcsa5
bus fuse lightnvm loop5 network_throughput rtc0 tty0 tty21 tty34 tty47 tty6 ttyS13 ttyS26 ttyUSB1 userio vcsa6
char hpet log loop6 null sda tty1 tty22 tty35 tty48 tty60 ttyS14 ttyS27 ttyUSB10 vcs vfio
console hugepages loop0 loop7 port sda1 tty10 tty23 tty36 tty49 tty61 ttyS15 ttyS28 ttyUSB11 vcs1 vga_arbiter
core hwrng loop1 loop8 ppp sda2 tty11 tty24 tty37 tty5 tty62 ttyS16 ttyS29 ttyUSB2 vcs2 vhci
cpu i2c-0 loop10 loop9 psaux sda3 tty12 tty25 tty38 tty50 tty63 ttyS17 ttyS3 ttyUSB3 vcs3 vhost-net
cpu_dma_latency i2c-1 loop11 loop-control ptmx serial tty13 tty26 tty39 tty51 tty7 ttyS18 ttyS30 ttyUSB4 vcs4 vhost-vsock
cuse i2c-2 loop12 mapper pts sg0 tty14 tty27 tty4 tty52 tty8 ttyS19 ttyS31 ttyUSB5 vcs5 wmi
disk i2c-3 loop13 mcelog qcqmi0 shm tty15 tty28 tty40 tty53 tty9 ttyS2 ttyS4 ttyUSB6 vcs6 zero
dri i2c-4 loop14 mei0 qcqmi1 snapshot tty16 tty29 tty41 tty54 ttyprintk ttyS20 ttyS5 ttyUSB7 vcsa
drm_dp_aux0 i2c-5 loop15 mem qcqmi2 snd tty17 tty3 tty42 tty55 ttyS0 ttyS21 ttyS6 ttyUSB8 vcsa1

root@multi-ue:/home# lsmod
Module Size Used by
aufs 241664 0
overlay 77824 0
binfmt_misc 20480 1
nls_iso8859_1 16384 1
GobiSerial 20480 0
usbserial 45056 1 GobiSerial
GobiNet 450560 0
usbnet 45056 1 GobiNet
snd_hda_codec_hdmi 53248 1
snd_hda_codec_realtek 106496 1
snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
intel_rapl 20480 0
x86_pkg_temp_thermal 16384 0
intel_powerclamp 16384 0
snd_hda_intel 45056 3
coretemp 16384 0
kvm_intel 217088 0
snd_hda_codec 131072 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 81920 5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep 20480 1 snd_hda_codec
kvm 614400 1 kvm_intel
irqbypass 16384 1 kvm
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
snd_pcm 98304 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
ghash_clmulni_intel 16384 0
pcbc 16384 0
aesni_intel 188416 0
snd_seq_midi 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
aes_x86_64 20480 1 aesni_intel
crypto_simd 16384 1 aesni_intel
snd_rawmidi 32768 1 snd_seq_midi
glue_helper 16384 1 aesni_intel
snd_seq 65536 2 snd_seq_midi,snd_seq_midi_event
dell_wmi 16384 0
cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel
dell_smbios 24576 1 dell_wmi
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer 32768 2 snd_seq,snd_pcm
dcdbas 16384 1 dell_smbios
intel_cstate 20480 0
sparse_keymap 16384 1 dell_wmi
wmi_bmof 16384 0
dell_wmi_descriptor 16384 2 dell_wmi,dell_smbios
snd 81920 17 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi
intel_rapl_perf 16384 0
soundcore 16384 1 snd
mei_me 40960 0
mei 94208 1 mei_me
intel_pch_thermal 16384 0
mac_hid 16384 0
acpi_pad 180224 0
sch_fq_codel 20480 6
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 49152 3 parport_pc,lp,ppdev
ip_tables 28672 0
x_tables 40960 1 ip_tables
autofs4 40960 2
btrfs 1150976 0
zstd_compress 163840 1 btrfs
raid10 53248 0
raid456 147456 0
async_raid6_recov 20480 1 raid456
async_memcpy 16384 2 raid456,async_raid6_recov
async_pq 16384 2 raid456,async_raid6_recov
async_xor 16384 3 async_pq,raid456,async_raid6_recov
async_tx 16384 5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
xor 24576 2 async_xor,btrfs
raid6_pq 114688 4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c 16384 1 raid456
raid1 40960 0
raid0 20480 0
multipath 16384 0
linear 16384 0
i915 1638400 12
i2c_algo_bit 16384 1 i915
drm_kms_helper 172032 1 i915
r8169 86016 0
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
mii 16384 2 r8169,usbnet
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
ahci 40960 2
drm 401408 14 drm_kms_helper,i915
libahci 32768 1 ahci
wmi 24576 4 dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
video 45056 2 dell_wmi,i915
root@multi-ue:/home#

@mohanraj612

So I am guessing from the responses you have the following.

  • 4 x EM7565’s plugged into the system.
  • The USB interface on each of them is configured to have a single RMNet interface (response to at!usbcomp?).

Everything looks good to me, is the issue when you plug a fifth unit in with it not enumerating? If so then I think it is probably going to be a USB hub issue on the system rather than anything to do with the unit/drivers.

Regards

Matt

Yes, 4 EM7565’s modules are connected, problem is that none of the connected 4 devices are enumerating/not responding for AT commands.

@mohanraj612

So the order of enumeration onto the system is for each of the devices is as follows.

  • DM port, so on your system this will be devices ttyUSB0, ttyUSB3, ttyUSB6, ttyUSB9.
  • NMEA port, on your system ttyUSB1, ttyUSB4, ttyUSB7, ttyUSB10
  • AT commands, on your system ttyUSB2, ttyUSB5, ttyUSB8, ttyUSB11

If you run minicom against the AT command ports as specified above then I would expect the units to respond, the baud rate does not matter, USB should automatically take this into account.

Regards

Matt

Yes, but unable find the root cause of the issue, output of at!usbcomp?
at!usbcomp?
Config Index: 1
Config Type: 3 (Generic)
Interface bitmask: 0000010D (diag,nmea,modem,rmnet0)