No Protocol NCM in OpenWrt 23.05.5

I have a TPlink Archer C7 v4 with a dongle USB Huawei with protocol NCM.
I updated my old version of OpenWrt 18.06, in 23.05.
Before no problem for running.
After upgrade, no protocol NCM for dongle, in new interface

Software installed in Luci are
luci-ssl
kmod-usb2
kmod-usb3
kmod-usb-net-huawei-cdc-ncm
comgt-ncm
kmod-usb-serial
kmod-usb-serial-option
kmod-usb-serial-wwan
luci-proto-ncm

Do you have a solution ?

If there is no solution for the moment
How do I revert to a previous version of OpenWrt ?

Thanks for answers

Show the output of cat /sys/kernel/debug/usb/devices

Thanks

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.167 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=1b000000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev= 5.15
S: Manufacturer=Linux 5.15.167 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=1b400000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=1506 Rev= 1.02
S: Manufacturer=HUAWEI_MOBILE
S: Product=HUAWEI_MOBILE
S: SerialNumber=0123456789ABCDEF
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=03 Prot=12 Driver=option
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=03 Prot=16 Driver=huawei_cdc_ncm
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=2ms
I:* If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=03 Prot=16 Driver=huawei_cdc_ncm
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=2ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

You need to follow these instructions:
https://openwrt.org/docs/guide-user/network/wan/wwan/ethernetoverusb_ncm
Your serial device is /dev/ttyUSB0

The problem is not the modem USB, after command
root@OpenWrt:~# ls -l /dev/cdc-wdm0 /dev/ttyUSB0
crw------- 1 root root 180, 176 Nov 17 10:01 /dev/cdc-wdm0
crw-rw---- 1 root dialout 188, 0 Nov 17 10:01 /dev/ttyUSB0

Do I have to follow the procedure that you have given me ?

My problem is not NCM protocol in "add new interface" in Luci 23.05

Reboot?
You can still configure it in the config file.

It's ok with command and not with interface Luci

uci set network.wwan=interface
uci set network.wwan.proto='ncm'
uci set network.wwan.device='/dev/ttyUSB0'
uci set network.wwan.ifname='wwan0'
uci set network.wwan.apn='********'
uci set network.wwan.pincode='****'
uci set network.wwan.mode='preferlte'
uci set network.wwan.delay='30'
uci commit

uci add_list firewall.@zone[1].network='wwan'
uci commit
/etc/init.d/firewall reload
/etc/init.d/network restart

And

root@OpenWrt:~# ping forum.openwrt.org -c 4 -I wwan0
PING forum.openwrt.org (139.59.210.197): 56 data bytes
64 bytes from 139.59.210.197: seq=0 ttl=44 time=44.404 ms
64 bytes from 139.59.210.197: seq=1 ttl=44 time=52.069 ms
64 bytes from 139.59.210.197: seq=2 ttl=44 time=55.852 ms
64 bytes from 139.59.210.197: seq=3 ttl=44 time=55.613 ms

--- forum.openwrt.org ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 44.404/51.984/55.852 ms

Thanks for your time & informations
Beautiful afternoon

Remove this:

I can confirm NCM proto is not visible in Luci after the initial installation but it becomes available after reboot.

2 Likes