EC20CEHC切换到 RNDIS模式后,无法找到 AT 端口的ttyUSB2

目前是上网正常,但是无法使用AT端口了,请问如何切换到ecm模式

root@norco:/dev# ping t.cn
PING t.cn (39.105.18.168) 56(84) bytes of data.
64 bytes from 39.105.18.168 (39.105.18.168): icmp_seq=1 ttl=87 time=41.7 ms
64 bytes from 39.105.18.168 (39.105.18.168): icmp_seq=2 ttl=87 time=51.8 ms
t.cn ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 41.718/46.807/51.896/5.089 ms
root@norco:/dev# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.225.1 0.0.0.0 UG 100 0 0 usb0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.225.0 0.0.0.0 255.255.255.0 U 100 0 0 usb0

[ 2367.263095] usb 2-1.3: USB disconnect, device number 9
[ 2367.266099] rndis_host 2-1.3:1.0 usb0: unregister ‘rndis_host’ usb-fe3c0000.usb-1.3, RNDIS device
[ 2367.325760] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 2367.326660] option 2-1.3:1.2: device disconnected
[ 2367.341571] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 2367.341767] option 2-1.3:1.3: device disconnected
[ 2367.344354] GobiNet 2-1.3:1.4 usb1: unregister ‘GobiNet’ usb-fe3c0000.usb-1.3, GobiNet Ethernet Device
[ 2368.705940] ==> rtl8188e_iol_efuse_patch
[ 2369.103668] RTW: wlan0- hw port(0) mac_addr =14:6b:9c:44:d4:c2
[ 2369.104537] RTW: p2p0- hw port(1) mac_addr =16:6b:9c:44:d4:c2
[ 2369.111373] RTW: nolinked power save leave
[ 2370.596328] RTW: nolinked power save enter
[ 2379.976800] usb 2-1.3: new high-speed USB device number 10 using ehci-platform
[ 2380.064403] usb 2-1.3: New USB device found, idVendor=2c7c, idProduct=0125
[ 2380.064460] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2380.064487] usb 2-1.3: Product: Android
[ 2380.064512] usb 2-1.3: Manufacturer: Android
[ 2380.067793] option 2-1.3:1.0: GSM modem (1-port) converter detected
[ 2380.069260] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 2380.070672] option 2-1.3:1.1: GSM modem (1-port) converter detected
[ 2380.072063] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 2380.073864] option 2-1.3:1.2: GSM modem (1-port) converter detected
[ 2380.075515] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 2380.077187] option 2-1.3:1.3: GSM modem (1-port) converter detected
[ 2380.078400] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[ 2380.083527] GobiNet 2-1.3:1.4 usb0: register ‘GobiNet’ at usb-fe3c0000.usb-1.3, GobiNet Ethernet Device, ba:23:fc:29:7c:9d
[ 2380.103808] creating qcqmi0
[ 2380.198127] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 2380.199993] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 2383.135372] usb 2-1.3: USB disconnect, device number 10
[ 2383.137545] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 2383.137690] option 2-1.3:1.0: device disconnected
[ 2383.145555] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 2383.145859] option 2-1.3:1.1: device disconnected
[ 2383.148486] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 2383.148704] option 2-1.3:1.2: device disconnected
[ 2383.151123] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[ 2383.151853] option 2-1.3:1.3: device disconnected
[ 2383.155526] GobiNet 2-1.3:1.4 usb0: unregister ‘GobiNet’ usb-fe3c0000.usb-1.3, GobiNet Ethernet Device
[ 2385.096876] usb 2-1.3: new high-speed USB device number 11 using ehci-platform
[ 2385.186291] usb 2-1.3: New USB device found, idVendor=2c7c, idProduct=0125
[ 2385.186347] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2385.186373] usb 2-1.3: Product: Android
[ 2385.186397] usb 2-1.3: Manufacturer: Android
[ 2385.207978] rndis_host 2-1.3:1.0 usb0: register ‘rndis_host’ at usb-fe3c0000.usb-1.3, RNDIS device, 32:e9:15:0a:8e:fd
[ 2385.219917] option 2-1.3:1.2: GSM modem (1-port) converter detected
[ 2385.228564] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 2385.229558] option 2-1.3:1.3: GSM modem (1-port) converter detected
[ 2385.230318] usb 2-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 2385.233483] GobiNet 2-1.3:1.4 usb1: register ‘GobiNet’ at usb-fe3c0000.usb-1.3, GobiNet Ethernet Device, ba:23:fc:29:7c:9d
[ 2385.235065] creating qcqmi1
[ 2385.319285] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 2385.345298] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
[ 2385.345987] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready

ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1

lsusb -t
/: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
|__ Port 1: Dev 2, If 0, Class=Communications, Driver=vizzini, 12M
|__ Port 1: Dev 2, If 1, Class=CDC Data, Driver=vizzini, 12M
|__ Port 1: Dev 2, If 2, Class=Communications, Driver=vizzini, 12M
|__ Port 1: Dev 2, If 3, Class=CDC Data, Driver=vizzini, 12M
|__ Port 1: Dev 2, If 4, Class=Communications, Driver=vizzini, 12M
|__ Port 1: Dev 2, If 5, Class=CDC Data, Driver=vizzini, 12M
|__ Port 1: Dev 2, If 6, Class=Communications, Driver=vizzini, 12M
|__ Port 1: Dev 2, If 7, Class=CDC Data, Driver=vizzini, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtl8188eu, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M

EC20 一般是不建议使用RNDIS的。
如果非要用RNDIS
要修改下option.c
这个并且是和其他的无法正常兼容的

那我现在要切回ecm模式,我应该如何切回,没有AT串口,现在有DM端口,如果我升级固件,会切回默认的吗?麻烦发一份最新的固件,58482294@qq.com,还有一个,另外QFlash是不支持liunx吗?

重新刷固件不能切回别的网卡模式。
这个必须要改option驱动。

你可以给我看看。
ls /sys/bus/usb/drivers/
ls /sys/bus/usb-serial/drivers/

root@norco:~# ls /sys/bus/usb/drivers/
GobiNet bfusb cdc_mbim ch341 hub option qcserial rndis_wlan sierra usb usbhid usbtouchscreen
asix btusb cdc_ncm cp210x keyspan oti6858 r8152 rtl8150 snd-usb-audio usb-storage usbserial uvcvideo
ax88179_178a cdc_ether cdc_wdm ftdi_sio mos7840 pl2303 rndis_host rtl8188eu uas usbfs usbserial_generic vizzini

root@norco:~# ls /sys/bus/usb-serial/drivers/
ch341-uart cp210x ftdi_sio generic keyspan_1 keyspan_2 keyspan_4 keyspan_no_firm mos7840 option1 oti6858 pl2303 qcserial sierra

你可以这样测试下

echo 2C7C 0125 > /sys/bus/usb-serial/drivers/generic/new_id

然后应该就会出来两个ttyUSB2和3.
这两个口应该是可以用来发AT的。

1 个赞

我当前的固件版本为EC20CEHCR06A03M1G 麻烦能提供一下新版本的固件 EC20CEHCR06A06M1G吗 58482296@qq.com

我试过了,可以出现发ttyUSB2和3了,非常感谢您这么晚利用休息时间,来解答我的问题,祝您有个好梦。

站内信发送了最新固件,请不要回复站内信。
这个模组,如果你改成RNDIS mode,重新刷固件是不能变成别的网卡模式的。

1 个赞

谢谢您,我的问题已经解决了,已经通过AT切换回来了,我就是想更新一下最新的固件。