mt7688 + AIR720 4G简单测试


  • administrators

    首先,重新编译op,将Kernel modules ---> USB Support ---> 下的
    kmod-usb-net
    kmod-usb-net-rndis

    kmod-usb-serial
    kmod-usb-serial-wwan
    打开

    AT端口是ttyUSB2,但必须要修改内核里usb-serial才行。修改地方参考官方资料:http://ask.openluat.com/article/37
    我懒得改了,直接测rndis。
    启动后,看log

      rndis_host 1-1:1.0 eth1: register 'rndis_host' at usb-101c0000.ehci-1, RNDIS device, ac:62:4f:1f:3a:9d
    

    发现新注册了eth1,我们手动将eth1添加到network中的wan部分。
    /etc/config/network

    config interface 'wan'
            option force_link '1'
            option macaddr '0c:ef:af:d2:a9:f2'
            option proto 'dhcp'
            option ifname 'eth1'
    

    在nr一下(/etc/init.d/network restart)
    ifconfig eth1

    root@Widora:~# ifconfig eth1
    eth1      Link encap:Ethernet  HWaddr 0C:EF:AF:D2:A9:F2  
              inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::eef:afff:fed2:a9f2/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:40 errors:0 dropped:0 overruns:0 frame:0
              TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:3715 (3.6 KiB)  TX bytes:15194 (14.8 KiB)
    

    我们在7688中先尝试ping qq.com

    root@Widora:~# ping qq.com
    PING qq.com (111.161.64.40): 56 data bytes
    64 bytes from 111.161.64.40: seq=0 ttl=53 time=21.816 ms
    64 bytes from 111.161.64.40: seq=1 ttl=53 time=19.773 ms
    64 bytes from 111.161.64.40: seq=2 ttl=53 time=19.538 ms
    64 bytes from 111.161.64.40: seq=3 ttl=53 time=15.324 ms
    ^C
    --- qq.com ping statistics ---
    4 packets transmitted, 4 packets received, 0% packet loss
    round-trip min/avg/max = 15.324/19.112/21.816 ms
    

    此时,ifconfig eth0,发现已经获取IP地址,电脑通过NEO的网口连接,可正常浏览网页,我们测个速。
    屏幕快照 2019-09-09 上午7.11.03.png

    懒人固件: openwrt-ramips-mt7688-WIDORA32128-squashfs-sysupgrade.bin

    值得一提的是上网和测试,CPU使用率一直极低,这应该是rndis接口的好处吧。
    屏幕快照 2019-09-09 上午7.54.45.png


Log in to reply