Estou tentando usar o modem mmx352g (Vendor = 1c9e ProdID = f000) com meu roteador 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
Mas estou recebendo o seguinte log:
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 [email protected] 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
Eu não sou especialista em linux e não consigo entender o arquivo de log para detectar o problema. Parece que o modem está sendo detectado usb 1-1: generic converter now attached to ttyUSB0, usbserial: USB Serial support registered for GSM modem (1-port)
Mas, em seguida, ficar desconectado finalmente. generic ttyUSB0: generic converter now disconnected from ttyUSB0, usbserial_generic 1-1:1.0: device disconnected
Eu também adicionei / modifiquei 2 arquivos (60-usb-serial e usb-serial) em /etc/modules.d e editei seu conteúdo com
usbserial vendor=0x1c9e product=0xf000 maxSize=4096
Aqui estão alguns outros resultados que podem ser úteis:
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
O modem parece estar funcionando sozinho (parece olhar para os flashes de LEDs. A sequência de flash atual significa que ele está registrado na rede), mas o OpenWRT não consegue fazer o driver se comunicar. Alguém pode me ajudar com relação a isso?