Я пытаюсь использовать модем mmx352g (Vendor = 1c9e ProdID = f000) с моим маршрутизатором OpenWRT.
root@GL-AR150:/dev# lsusb
Bus 001 Device 002: ID 1c9e:f000 OMEGA TECHNOLOGY
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Но я получаю следующий журнал:
root@GL-AR150:/dev# dmesg | grep -i usb
[ 0.590000] usbcore: registered new interface driver usbfs
[ 0.590000] usbcore: registered new interface driver hub
[ 0.600000] usbcore: registered new device driver usb
[ 2.070000] usbcore: registered new interface driver cdc_ether
[ 2.080000] usbcore: registered new interface driver lg-vl600
[ 2.080000] usbcore: registered new interface driver cdc_acm
[ 2.090000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 6.900000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.910000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 6.950000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 6.950000] hub 1-0:1.0: USB hub found
[ 6.960000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.970000] uhci_hcd: USB Universal Host Controller Interface driver
[ 6.990000] usbcore: registered new interface driver usb-storage
[ 7.280000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 7.430000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 7.440000] scsi host0: usb-storage 1-1:1.0
[ 8.440000] scsi 0:0:0:0: CD-ROM USBModem Disk 2.31 PQ: 0 ANSI: 2
[ 21.120000] usbserial: unknown parameter 'maxSize' ignored
[ 21.130000] usbcore: registered new interface driver usbserial
[ 21.130000] usbcore: registered new interface driver usbserial_generic
[ 21.140000] usbserial: USB Serial support registered for generic
[ 21.150000] usbserial_generic 1-1:1.0: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 21.160000] usbserial_generic 1-1:1.0: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 21.170000] usbserial_generic 1-1:1.0: generic converter detected
[ 21.170000] usb 1-1: generic converter now attached to ttyUSB0
[ 21.350000] usbcore: registered new interface driver cdc_ncm
[ 21.480000] usbcore: registered new interface driver cdc_wdm
[ 21.510000] usbcore: registered new interface driver cp210x
[ 21.510000] usbserial: USB Serial support registered for cp210x
[ 21.520000] usbcore: registered new interface driver huawei_cdc_ncm
[ 21.680000] usbcore: registered new interface driver ipheth
[ 21.760000] usbcore: registered new interface driver qmi_wwan
[ 21.770000] usbcore: registered new interface driver rndis_host
[ 21.770000] usbcore: registered new interface driver sierra
[ 21.780000] usbserial: USB Serial support registered for Sierra USB modem
[ 21.790000] usbcore: registered new interface driver sierra_net
[ 21.820000] usbcore: registered new interface driver uvcvideo
[ 21.820000] USB Video Class driver (1.1.1)
[ 22.050000] usbcore: registered new interface driver sonixb
[ 22.060000] usbcore: registered new interface driver sonixj
[ 22.090000] usbcore: registered new interface driver gspca_zc3xx
[ 22.240000] usbcore: registered new interface driver option
[ 22.240000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 22.480000] usbcore: registered new interface driver rt2800usb
[ 31.370000] generic ttyUSB0: generic converter now disconnected from ttyUSB0
[ 31.380000] usbserial_generic 1-1:1.0: device disconnected
Я не специалист по Linux, и я не могу понять файл журнала, чтобы обнаружить проблему. Похоже, что модем обнаруживает usb 1-1: generic converter now attached to ttyUSB0, usbserial: USB Serial support registered for GSM modem (1-port)
Но потом, наконец, отключился. generic ttyUSB0: generic converter now disconnected from ttyUSB0, usbserial_generic 1-1:1.0: device disconnected
Я также добавил / изменил 2 файла (60-usb-serial и usb-serial) в /etc/modules.d и отредактировал их содержимое с помощью
usbserial vendor=0x1c9e product=0xf000 maxSize=4096
Вот некоторые другие выводы, которые могут быть полезны:
root@GL-AR150:/dev# cat /sys/kernel/debug/usb/devices
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= 3.18
S: Manufacturer=Linux 3.18.27 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=ehci-platform
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=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1c9e ProdID=f000 Rev= 0.00
S: Manufacturer=USB Modem
S: Product=USB Modem
S: SerialNumber=1234567890ABCDEF
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
root@GL-AR150:/dev# ls | grep tty
tty
ttyATH0
ttyS0
ttyS1
ttyS10
ttyS11
ttyS12
ttyS13
ttyS14
ttyS15
ttyS2
ttyS3
ttyS4
ttyS5
ttyS6
ttyS7
ttyS8
ttyS9
Модем, кажется, работает сам по себе (кажется, глядя на мигание светодиодов. Текущая последовательность флэш-памяти означает, что она зарегистрирована в сети), но OpenWRT не может заставить драйвер связаться. Может кто-нибудь, пожалуйста, помогите относительно этого?