Ec200A and Usb modern mode

Hello guys,
I am using module EC200A and connect to my PC Ubuntu 20.4. My PC recognizes it cdc_ethernet, you can see from dmesg:

[ 6141.331842] usb 1-12: new high-speed USB device number 19 using xhci_hcd
[ 6141.480532] usb 1-12: New USB device found, idVendor=2c7c, idProduct=6005, bcdDevice= 3.18
[ 6141.480533] usb 1-12: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6141.480534] usb 1-12: Product: Android
[ 6141.480534] usb 1-12: Manufacturer: Android
[ 6141.480535] usb 1-12: SerialNumber: 0000
[ 6141.485347] cdc_ether 1-12:1.0 usb0: register ‘cdc_ether’ at usb-0000:00:14.0-12, CDC Ethernet Device, 02:0c:29:a3:9b:6d
[ 6141.495624] cdc_ether 1-12:1.0 enp0s20f0u12: renamed from usb0

  • lsusb also shows modem:
    Bus 001 Device 023: ID 2c7c:6005

However there are no /dev/ttyUSB* files, so I cannot use it.

How can I switch to usb modern mode to have /dev/ttyUSB* and send AT command to it.
I have used this module on another linux Embedded board and it works great but when i plug it into my PC it’s like this.
Thanks for your help.

Please show the output of cat /sys/kernel/debug/usb/devices

Output of cat /sys/kernel/debug/usb/devices:

T: Bus=01 Lev=01 Prnt=01 Port=11 Cnt=05 Dev#= 16 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=2c7c ProdID=6005 Rev= 3.18
S: Manufacturer=Android
S: Product=Android
S: SerialNumber=0000
C:* #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether
E: Ad=87(I) Atr=03(Int.) MxPS= 64 Ivl=4096ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0c(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0b(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=89(I) Atr=03(Int.) MxPS= 64 Ivl=4096ms
E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0f(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=88(I) Atr=03(Int.) MxPS= 64 Ivl=4096ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=0a(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Sorry for the late reply

You need to manually add your modem ID’s to the standard option driver:
# echo "2c7c 6005" > /sys/bus/usb-serial/drivers/option1/new_id

This change is temporary, so you will need to re-run this after reboot.

It works.
Thanks so much.

Dear Support!

I have the exact same output for /sys/kernel/debug/usb/devices but i dont have usb-serial folder (option) so i cant run the “echo “2c7c 6005” > /sys/bus/usb-serial/drivers/option1/new_id”. I think i dont have any driver running, it’s a plain Debian 12.

Can you send me the driver?

Is it necessary to use ttyUSB to use the modem, or is cdc ether sufficient?

Thanks!

Execute modprobe option first.

Wow! Thanks for the quick reply, ttyUSB0, 1 , 2 has appeared!