查看: 1189|回复: 0

MY-IMX6-EK200 Linux-4.1.15 测试手册 v2.0(5)

[复制链接]
  • TA的每日心情
    无聊
    2016-8-19 09:36
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    发表于 2019-5-8 11:08:14 | 显示全部楼层 |阅读模式
    分享到:
    本帖最后由 明远智睿123 于 2019-5-8 11:09 编辑

    【接上一章节MY-IMX6-EK200 Linux-4.1.15测试手册v2.04)】


    4  第四部分 扩展模块功能演示

    4.1  RTL8188 模块功能演示(WIFI Client)
    【测试说明】:使用RTL8188作为无线网卡连接到WIFI AP。
    【接口标识】:WIFI、WIFI_ANT
    【系统设备】:wlan0
    测试操作
    1. 确定“WIFI”标识处有贴上WIFI模块,否则无需进行测试。
    2. 把WIFI天线连接到“WIFI_ANT”标识的接口上。
    3. 生成 SSID 的 WPA PSK 文件
    命令格式: wpa_passphrase <ssid> [passphrase]
    =====> 输入指令:
    wpa_passphrase MY-TEST-AP myzr2012 > /etc/wpa_supplicant.conf
    pkill wpa_supplicant
    4. 连接
    =====> 输入指令:
    wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf

    =====> 输出信息:
    Successfully initialized wpa_supplicant
    rfkill: Cannot open RFKILL control device
    ==> rtl8188e_iol_efuse_patch
    IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    ......
    5. 获取 IP
    =====> 输入指令:
    udhcpc -i wlan0

    =====> 输出信息:
    udhcpc (v1.23.1) started
    Sending discover...
    Sending select for 192.168.43.121...
    Lease of 192.168.43.121 obtained, lease time 3600
    /etc/udhcpc.d/50default: Adding DNS 192.168.43.1
    6. 测试连接
    =====> 输入指令:
    ping -I wlan0 192.168.43.1 -c 2 -w 4

    =====> 输出信息:
    PING 192.168.43.1 (192.168.43.1) from 192.168.43.130 wlan0: 56(84) bytes of data.
    64 bytes from 192.168.43.1: icmp_seq=1 ttl=64 time=5.66 ms
    64 bytes from 192.168.43.1: icmp_seq=2 ttl=64 time=9.22 ms

    --- 192.168.43.1 ping statistics ---
    2 packets transmitted, 2 received, 0% packet loss, time 1000ms
    rtt min/avg/max/mdev = 5.663/7.444/9.226/1.783 ms
    测试结果
    “0% packet loss”表示WIFI连接正常。


    4.2  RTL8188 模块功能演示(WIFI AP mode)
    【测试说明】:使用RTL8188作为WIFI AP,并把手机连接到此AP。
    【接口标识】:WIFI、WIFI_ANT
    【系统设备】:wlan0
    测试操作
    1. 确定“WIFI”标识处有贴上WIFI模块,否则无需进行测试。
    2. 把WIFI天线连接到“WIFI_ANT”标识的接口上。
    3. 为 wlan0 配置 IP:
    =====> 输入指令:
    ifconfig wlan0 192.168.99.1

    =====> 输出信息:
    ==> rtl8188e_iol_efuse_patch
    IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    4. 为 wlan0 启用 DHCP 服务:
    =====> 输入指令:
    touch /var/lib/misc/udhcpd.leases
    udhcpd -f /etc/my_udhcpd.conf &

    =====> 输出信息:
    [1] 469
    udhcpd (v1.23.1) started
    5. 为 wlan0 启用 Host-AP 功能
    =====> 输入指令:
    hostapd /etc/my_hostapd.conf -B

    =====> 输出信息:
    Configuration file: /etc/my_hostapd.conf
    rfkill: Cannot open RFKILL control device
    Using interface wlan0 with hwaddr e0:b9:4d:7f:e4:40 and ssid "MY_HOSTAP_V25"
    RTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AES
    wlan0: interface state UNINITIALIZED->ENABLED
    wlan0: AP-ENABLED
    6. 客户端设备连接到 Host-AP
    至此,开发板的 Host-AP 功能已启用,客户端设备可搜索“MY_HOSTAP_V25”,通过密码“myzr2012”连接到此AP。
    测试结果
    1. 设备连接成功时产生的信息
    =====> 输出信息:
    Sending OFFER of 192.168.12.20
    Sending OFFER of 192.168.12.20
    Sending ACK to 192.168.12.20
    2. 设备断开连接时产生的信息
    =====> 输出信息:
    RTL871X: OnDeAuth(wlan0) reason=3, ta=b4:0b:44:f5:64:2f
    RTL871X: clear key for addr:b4:0b:44:f5:64:2f, camid:4


    4.3  EC20 模块测试
    【测试说明】:4G连接成功后,开发板向外网发送ICMP报文来验证连接正常。
    【接口标识】:MINI_PCIE
    【系统设备】:eth2
    测试操作
    1. 开发板断电,接上4G模块,接上天线并插入SIM卡后启动评估板。
    2. 使用指令进行网络连接:
    =====> 输入指令:
    /my-demo/gcc-linaro-5.3-arm/quectel-CM &

    =====> 输出信息:
    [1] 540
    [12-18_03:17:06:719] WCDMA<E_QConnectManager_Linux&Android_V1.1.34
    [12-18_03:17:06:720] /my-demo/gcc-linaro-5.3-arm/quectel-CM profile[1] = (null)/(null)/(null)/0, pincode = (null)
    [12-18_03:17:06:723] Find /sys/bus/usb/devices/1-1.2 idVendor=2c7c idProduct=0125
    [12-18_03:17:06:723] Find /sys/bus/usb/devices/1-1.2:1.4/net/eth2
    [12-18_03:17:06:723] Find usbnet_adapter = eth2
    [12-18_03:17:06:723] Find /sys/bus/usb/devices/1-1.2:1.4/GobiQMI/qcqmi2
    [12-18_03:17:06:724] Find qmichannel = /dev/qcqmi2
    [12-18_03:17:06:794] Get clientWDS = 7
    [12-18_03:17:06:826] Get clientDMS = 8
    [12-18_03:17:06:858] Get clientNAS = 9
    [12-18_03:17:06:890] Get clientUIM = 10
    [12-18_03:17:06:922] Get clientWDA = 11
    [12-18_03:17:06:954] requestBaseBandVersion EC20CEFAR02A10M4G
    [12-18_03:17:07:050] requestGetSIMStatus SIMStatus: SIM_READY
    [12-18_03:17:07:082] requestGetProfile[1] cmnet///0
    [12-18_03:17:07:114] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
    [12-18_03:17:07:146] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED
    [12-18_03:17:07:223] requestRegistrationState2 MCC: 460, MNC: 0, PS: Attached, DataCap: LTE
    [12-18_03:17:07:274] requestSetupDataCall WdsConnectionIPv4Handle: 0x8777e7a0
    [12-18_03:17:07:370] requestQueryDataCall IPv4ConnectionStatus: CONNECTED
    [12-18_03:17:07:403] ifconfig eth2 up
    [12-18_03:17:07:452] busybox udhcpc -f -n -q -t 5 -i eth2
    [12-18_03:17:07:492] udhcpc (v1.23.1) started
    [12-18_03:17:07:656] Sending discover...
    [12-18_03:17:07:706] Sending select for 10.25.154.46...
    [12-18_03:17:07:766] Lease of 10.25.154.46 obtained, lease time 7200
    [12-18_03:17:07:888] /etc/udhcpc.d/50default: Adding DNS 211.136.17.107
    [12-18_03:17:07:888] /etc/udhcpc.d/50default: Adding DNS 211.136.20.203
    3. 测试连接
    =====> 输入指令:
    ping -I eth2 www.baidu.com -c 2 -w 4

    =====> 输出信息:
    PING www.baidu.com (14.215.177.38): 56 data bytes
    64 bytes from 14.215.177.38: seq=0 ttl=49 time=15.753 ms
    64 bytes from 14.215.177.38: seq=1 ttl=49 time=11.835 ms

    --- www.baidu.com ping statistics ---
    2 packets transmitted, 2 packets received, 0% packet loss
    round-trip min/avg/max = 11.835/13.794/15.753 ms
    测试结果
    “0% packet loss”表示WIFI连接正常。



    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-5-21 11:35 , Processed in 0.129304 second(s), 18 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.