設置 | 登錄 | 註冊

目前共有3篇帖子。

移远EC200A模块linux usb驱动包下载地址

10樓 巨大八爪鱼 2025-12-23 13:38

正常情况下,只要插了USB线,开机后就会有ifconfig usb0接口,IP地址为192.168.43.100,不需要insmod GobiNet.ko。


如果没有usb0接口,说明模块当前所处的模式不对。这个时候即使insmod GobiNet.ko,usb0接口也不会出现。

root@rk3308b-buildroot:/# lsmod
Module                  Size  Used by    Tainted: G
aic8800_bsp            73728  0
root@rk3308b-buildroot:/# lsusb
Bus 003 Device 001: ID 1d6b:0001
Bus 002 Device 003: ID 2c7c:6005
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
root@rk3308b-buildroot:/# ifconfig
eth0      Link encap:Ethernet  HWaddr F2:2E:FE:02:6E:60
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:39

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4048 (3.9 KiB)  TX bytes:4048 (3.9 KiB)

root@rk3308b-buildroot:/# ifconfig usb0
ifconfig: usb0: error fetching interface information: Device not found
root@rk3308b-buildroot:/#


要想让usb0接口出现,只需发AT+QCFG="usbnet",3命令让模块切换到模式3(RNDIS模式),然后发AT+CFUN=1,1命令让模块重启。

root@rk3308b-buildroot:/root# insmod usb_wwan.ko
root@rk3308b-buildroot:/root# insmod option.ko
[ 4794.877893] usbcore: registered new interface driver option
[ 4794.878214] usbserial: USB Serial support registered for GSM modem (1-port)
[ 4794.879102] option 2-1:1.2: GSM modem (1-port) converter detected
[ 4794.880421] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 4794.881497] option 2-1:1.3: GSM modem (1-port) converter detected
[ 4794.883058] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
root@rk3308b-buildroot:/root# microcom /dev/ttyUSB1
AT+QCFG="usbnet",3
OK
AT+CFUN=1,1
OK
[ 4815.536085] usb 2-1: USB disconnect, device number 3
[ 4815.539263] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 4815.539742] option 2-1:1.2: device disconnected
[ 4815.545028] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 4815.545563] option 2-1:1.3: device disconnected
root@rk3308b-buildroot:/root# [ 4816.480225] usb 2-1: new high-speed USB device number 4 using ehci-platform
[ 4817.138273] usb 2-1: USB disconnect, device number 4

root@rk3308b-buildroot:/root# [ 4822.800227] usb 2-1: new high-speed USB device number 5 using ehci-platform
[ 4822.936778] rndis_host 2-1:1.0 usb0: register 'rndis_host' at usb-ff440000.usb-1, RNDIS device, c6:be:9f:e6:51:b1
[ 4822.939904] option 2-1:1.2: GSM modem (1-port) converter detected
[ 4822.941051] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
[ 4822.943025] option 2-1:1.3: GSM modem (1-port) converter detected
[ 4822.944221] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1

root@rk3308b-buildroot:/root# ifconfig
eth0      Link encap:Ethernet  HWaddr F2:2E:FE:02:6E:60
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:39

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1140 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:68848 (67.2 KiB)  TX bytes:68848 (67.2 KiB)

usb0      Link encap:Ethernet  HWaddr C6:BE:9F:E6:51:B1
          inet addr:192.168.43.100  Bcast:192.168.43.255  Mask:255.255.255.0
          inet6 addr: fe80::9b64:572a:533b:a4f4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1104 (1.0 KiB)  TX bytes:2698 (2.6 KiB)

root@rk3308b-buildroot:/root# lsmod
Module                  Size  Used by    Tainted: G
option                 53248  0
usb_wwan               20480  1 option
aic8800_bsp            73728  0
root@rk3308b-buildroot:/root#

巨大八爪鱼 2025-12-23 13:41
AT+QCFG="usbnet" 是Quectel 系列4G/5G模块(如EC20、RM500、RG200U等)的AT指令,用于配置USB网络接口模式,即指定模块通过USB连接时使用的网络协议标准。‌
‌指令格式与参数‌
    ‌测试命令‌:AT+QCFG=? 可查询支持的参数值,响应中会列出可用的模式。‌
    ‌设置命令‌:AT+QCFG="usbnet",<net>,其中 <net> 为模式参数:
        0:RMNET 接口(高通标准,通常用于Linux内核驱动)。‌
        1:ECM(ECM 接口,USB设备通信模式,常见于Linux系统)。‌
        2:MBIM(MBIM 接口,微软标准,支持高级功能)。‌
        3:RNDIS(RNDIS 接口,Windows兼容模式,也可在Linux中使用)。‌
    ‌响应‌:成功时返回 OK,失败时返回 ERROR;若省略参数(如 AT+QCFG="usbnet"),会返回当前配置状态。‌

‌配置步骤与注意事项‌
    ‌连接与验证‌:通过串口工具(如minicom)连接模块的调试端口(如 /dev/ttyUSB0),发送 AT 测试通信是否正常。‌
    ‌设置模式‌:例如,设置为ECM模式(自动拨号常用):AT+QCFG="usbnet",1。‌
    ‌重启生效‌:配置后需重启模块(如发送 AT+CFUN=1,1)使设置生效。‌
    ‌系统识别‌:重启后,系统会生成新的网络接口(如 usb0),可通过 ifconfig 或 ip a 查看IP地址分配。‌
巨大八爪鱼 2025-12-23 14:26
AT+CFUN=1,1 是AT指令中用于控制模块功能的命令,具体作用是将模块设置为全功能模式并执行重启操作。‌
    ‌命令含义‌:AT+CFUN 指令用于设定电话功能水平。参数 1 表示全功能模式,即启用模块的所有功能(如无线通信、SIM卡操作等);参数 1 作为第二个值,指示执行重启。重启后,模块会重新初始化并进入全功能状态。
    ‌典型应用场景‌:该命令常用于模块初始化阶段,以确保所有功能正常启动。‌ 例如,在设备上电或故障恢复时,通过此指令激活模块并重启,以便后续执行其他操作(如查询SIM卡状态或网络注册)。‌
    ‌执行注意事项‌:发送此命令后,模块会重启,期间可能需要约 4 秒时间完成初始化。重启后,建议等待片刻再发送后续指令(如查询 IMSI 或信号强度),以避免响应错误。‌此外,确保SIM卡已正确插入且为USIM卡,以避免功能异常。‌

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張