The usb0-5 not appear

hello
i m new to openwrt . i have an "OpenWrt 18.06.4 r7808-ef686b7292" installed on an HG556a (version B) .i want to run an 3G modem i install all necessary packages on it but in luci /dev/ttyUSB not appear ,only /dev/ttyS0.
i loged in to it with ssh and i do these commands :

root@OpenWrt:~#  ls  /dev/tty*
/dev/tty    /dev/ttyS0
root@OpenWrt:~# lsusb
**Bus 001 Device 004: ID 1bbb:022c T & A Mobile Phones** # this is my 3g modem
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0424:2502 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:~# ls -l /dev/ttyUSB*
ls: /dev/ttyUSB*: No such file or directory
root@OpenWrt:~#  dmesg | grep usb
[    4.049059] usbcore: registered new interface driver usbfs
[    4.055074] usbcore: registered new interface driver hub
[    4.060925] usbcore: registered new device driver usb
[    5.091551] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    5.830679] usb 1-2: new high-speed USB device number 3 using ehci-platform
[    9.139486] usb 1-2: USB disconnect, device number 3
[   15.764716] usb 1-2: new high-speed USB device number 4 using ehci-platform
[   16.179412] usbcore: registered new interface driver usbserial
[   16.185809] usbcore: registered new interface driver usbserial_generic
[   16.192933] usbserial: USB Serial support registered for generic
[   16.415977] usbcore: registered new interface driver ch341
[   16.422073] usbserial: USB Serial support registered for ch341-uart
[   17.011156] usbcore: registered new interface driver option
[   17.017345] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1584.193359] usbcore: registered new interface driver usb-storage
[ 1584.204497] usbcore: registered new interface driver uas

modem: alcatel x602d

system log https://pastebin.com/raw/9r8Xui00
kernel log https://pastebin.com/raw/f9P0tNL2

i installed different version of openwrt but the same problem

any help?

@soy-abderrahman, welcome to the community!

Did you install: https://openwrt.org/packages/pkgdata/kmod-usb-serial-ch341 :question:

1 Like

yes i installed it but it did nothing
but i try echo 'idVendor idProduct' > /sys/bus/usb-serial/drivers/option1/new_id it solved the problem i made small bash file solve the problem in easy way for others who have the same problem

lsusb | awk '{print $7 " " $8 " " $9 " " $10 " " $11 " " $12 " " $13 " " $14 " " $15 }' | awk '{print i++ ")" $0}' ;
read  -p "choose your device :"  choise ;
choise=$( expr $choise + 1  )
pv=$( lsusb |  awk FNR==$choise | awk '{print $6}' | tr : " " )
pv=" "$pv" "
cmd="echo ""$pv"" > /sys/bus/usb-serial/drivers/option1/new_id"
echo -e "$cmd \n$(cat /etc/rc.local)" > /etc/rc.local

save it in a file with nano chmod it and run it

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.