Cannot detect EC25 LTE module as a ttyUSB device

Hi all,

I have an onion omega2s+ module and an EC25 lte module conected via usb to onion.

I want to access EC25 using AT commands but ttyUSB device dont detected.

What should i do ?

Please copy and paste console output to a code box rather than posting screenshots.

It doesn't look like the USB host port is up at all. Is the driver for the USB on the SoC loaded?

You should see the USB host being initialized, then the modem detected as a USB device. Neither of those occurred.

sorry for this

If i dont understand wrong, this drivers loaded on onion for usb.

root@OpenWrt:/# opkg list-installed | grep usb
kmod-usb-core - 5.4.188-1
kmod-usb-ehci - 5.4.188-1
kmod-usb-net - 5.4.188-1
kmod-usb-net-cdc-mbim - 5.4.188-1
kmod-usb-net-cdc-ncm - 5.4.188-1
kmod-usb-net-qmi-wwan - 5.4.188-1
kmod-usb-ohci - 5.4.188-1
kmod-usb-serial - 5.4.188-1
kmod-usb-serial-option - 5.4.188-1
kmod-usb-serial-wwan - 5.4.188-1
kmod-usb-uhci - 5.4.188-1
kmod-usb-wdm - 5.4.188-1
kmod-usb2 - 5.4.188-1
libusb-1.0-0 - 1.0.24-4
usb-modeswitch - 2017-12-19-f40f84c2-2
usbids - 0.354-1
usbutils - 013-2

This is usbcore starting up the host hardware:

root@UAP-Pro:~# dmesg | grep usb
[    3.228041] usbcore: registered new interface driver usbfs
[    3.233748] usbcore: registered new interface driver hub
[    3.239269] usbcore: registered new device driver usb

Does this happen on yours?
Then if a USB device is present there will also be a "New high speed USB device xxxxx" sometime later. Once the device is found the relevant driver will attach to it, also producing a log message.

All that was in your log were drivers loading into the kernel but otherwise sitting dormant.

please post output from lsusb with device plugged in.

root@OpenWrt:~# lsusb 
Bus 002 Device 001: ID 1d6b:0001 Linux 5.4.188 ohci_hcd Generic Platform OHCI controller
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.188 ehci_hcd EHCI Host Controller

There is no any EC25 device maybe this problem can be hardware i will check this later. But i have the same issue diffferent board that works properly.

root@OpenWrt:/# dmesg | grep usb
[    2.920549] usbcore: registered new interface driver usbfs
[    2.926280] usbcore: registered new interface driver hub
[    2.931753] usbcore: registered new device driver usb
[    2.995876] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.002677] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    4.965179] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   12.871502] usbcore: registered new interface driver cdc_wdm
[   15.207771] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-101c0000.ehci-1, WWAN/QMI device, c6:d5:66:6b:a0:92
[   15.218630] usbcore: registered new interface driver qmi_wwan
root@OpenWrt:/# ls dev/ | grep ttyUSB
root@OpenWrt:/#
root@OpenWrt:/# opkg list-installed | grep usb
kmod-usb-core - 4.14.236-1
kmod-usb-ehci - 4.14.236-1
kmod-usb-net - 4.14.236-1
kmod-usb-net-cdc-mbim - 4.14.264-1
kmod-usb-net-qmi-wwan - 4.14.236-1
kmod-usb-ohci - 4.14.236-1
kmod-usb-serial - 4.14.264-1
kmod-usb-serial-wwan - 4.14.264-1
kmod-usb-wdm - 4.14.236-1
kmod-usb2 - 4.14.236-1
libusb-1.0-0 - 1.0.22-2
usb-modeswitch - 2017-12-19-f40f84c2-2
usbutils - 007-10
root@OpenWrt:/# lsusb 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 2c7c:0125 Quectel Wireless Solutions Co., Ltd. EC25 LTE modem
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

i can communicate using uqmi command to this board but i cannot access using AT commands.
Any suggestion ?

might be an USB port power issue. try connecting it via a powered USB hub.

1 Like

In the first case, where the modem does not enumerate on the USB bus at all, like frollic said that likely is a lack of power to the modem card. Most routers with a modem slot have a GPIO port wired to turn the modem power on and off.

You need to install kmod-usb-serial-qualcomm to run the serial AT interfaces. Also the picocom userspace dumb terminal will be useful.

1 Like

Thank you i will check this later.

I cannot install this package because of incompatible kernel version. Anyway actually my main purpose is not access device using AT command.

I want to connect network using LTE. I installed qmi drivers but i dont know how to connect could you guide me ? I always face network registration error on luci panel.

as long as the LTE isn't detected, at all, it's kind of a dead end, isn't it ?

I guess i could not tell clearly, I have 2 boards, one of them connect to LTE modem but i cannot access ttyUSB if i use qmi drivers i can access it works. The other one cannot detect LTE modem i will look at later.