USB CDC ttyACM not found

I am building openthread border router on openwrt, it requires communication with usb dongle.
I have seen the router recognize the USB device.

But to connect I need the USB CDC interface, or ttyACM, but the router does not recognize this interface.

[ 1689.309297] usb 2-1: new full-speed USB device number 5 using ohci-platform
[ 1689.406129] usb 2-1: config 1 has an invalid interface number: 2 but max is 1
[ 1689.413443] usb 2-1: config 1 has no interface number 0

USB log:
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1915 ProdID=cafe Rev= 1.00
S: Manufacturer=Nordic Semiconductor
S: Product=nRF528xx OpenThread Device
S: SerialNumber=C8DC6B57099E
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=500mA
A: FirstIf#= 1 IfCount= 2 Cls=02(comm.) Sub=02 Prot=00
I:* If#= 1 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=00 Driver=(none)
E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=16ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

Can anyone help me, thank you.

Make sure you have cdc_acm driver installed/loaded.
Please do not use screenshots for text.

2 Likes

Thank you, I remember i tried this once, it doesn't work, does it support mips cpu, i am running on mt7620?

It should be available on all the platforms.

kmod-usb-acm right?

Yes. https://openwrt.org/packages/pkgdata/kmod-usb-acm

It not work for me.
Unknown package 'kmod-usb-acm'.
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.90-1-6488505ac05478a1b8f4a1fcc993beb8) for kmod-nls-base
* pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.90-1-6488505ac05478a1b8f4a1fcc993beb8) for kmod-usb-core
* pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.90-1-6488505ac05478a1b8f4a1fcc993beb8) for kmod-usb-acm
* pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-acm found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package kmod-usb-acm.

This looks like a third party build. You have to get your kmods and other packages from that third party.

Also in any case the package list is stored in RAM, so you need to first run opkg update to get the list again after a reboot etc.

1 Like