当前位置:   article > 正文

4G:SIM7600CE-CNSE 4G模组调试_0e8d:7961

0e8d:7961
一、内核配置
  • 打开内核以下配置
CONFIG_USB_SERIAL=y 
CONFIG_USB_SERIAL_WWAN=y 
CONFIG_USB_SERIAL_OPTION=y
CONFIG_USBNET=y 
  • 1
  • 2
  • 3
  • 4
二、拨号上网
  • 将模组插入板卡USB接口后,正常可以识别到设备及5USB串口设备
$ lsusb
Bus 008 Device 002: ID 0e8d:7961 MediaTek Inc. Wireless_Device
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 1e0e:9011 Qualcomm / Option SimTech, Incorporated
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
droid@droid:~$ ll /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Mar  7 11:40 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Mar  7 11:40 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 Mar  7 11:40 /dev/ttyUSB2
crw-rw---- 1 root dialout 188, 3 Mar  7 11:40 /dev/ttyUSB3
crw-rw---- 1 root dialout 188, 4 Mar  7 11:40 /dev/ttyUSB4
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 通过minicom打开ttyUSB2发送以下指令完成拨号
AT+CUSBPIDSWITCH=9011,1,1
可用如下命令进行拨号:
stty -F /dev/ttyUSB2 speed 9600 cs8 -parenb -cstopb  -echo
echo -e "AT+CUSBPIDSWITCH=9011,1,1\r" > /dev/ttyUSB2
  • 1
  • 2
  • 3
  • 4
  • 添加一条udev规则,重命名网卡名称
SUBSYSTEM=="net", ACTION=="add", ATTRS{
   idVendor}=="1e0e", ATTRS{
   idProduct}=="9011", NAME="wwan0"
  • 1
  • 2
  • 3
  • 通过ifconfig -a查看是否多出一个wwan0网卡设备
wwan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 12:78:16:d7:39:ab  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
三、获取IP
  • 使用udhcpc为模组获取IP
sudo udhcpc -i wwan0
  • 1
  • 查看获取到的IP,并ping百度测试
wwan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.225.60  netmask 255.255.255.0  broadcast 192.168.225.255
        inet6 fe80::4cf5:12ff:fed9:c687  prefixlen 64  scopeid 0x20<link>
        ether 4e:f5:12:d9:c6:87  txqueuelen 1000  (Ethernet)
        RX packets 12403  bytes 1518284 (1.5 MB)
        RX errors 77  dropped 0  overruns 0  frame 2
        TX packets 22725  bytes 5865892 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/361141
推荐阅读
相关标签
  

闽ICP备14008679号