<meta name="keywords" content="庄家克星时时彩,imx6,明远智睿,焦点板,开发板,嵌入式" />
检查: 446|回复: 0
打印 上一主题 下一主题

MY-IMX6-EK200 Linux-4.1.15 测试手册 v2.0(5) [复制链接]

myzr123 (离线)
积分
2276
帖子
149
跳转到指定楼层
楼主
揭晓于 2019-5-8 11:13:25 |只看该作者 |倒序浏览
要害词: imx6 , 明远智睿 , 焦点板 , 开发板 , 嵌入式
【接上一章节MY-IMX6-EK200 Linux-4.1.15测试手册v2.0(4)】

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&LTE_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.百度.com -c 2 -w 4

=====> 输入信息:
PING www.百度.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.百度.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毗连正常。
您的一站式,嵌入式妄图供应商!
您须要登录后才可以揭晓议论 登录 | 急速注册

关于我们  -  服务条目  -  应用指南  -  站点舆图  -  友谊链接  -  联系我们
庄家克星时时彩-时时彩qq群-时时彩平台推荐 © 版权一切   | 京公网安备110108881021702
回顶部