完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
网口测试( test of network interface)
接口属性(interface property)
测试方法(test method) 1) 配置计算机IP configure computer IP 设置计算机有线网卡IP为192.168.18.18 set IP of cable network interface card for computer as 192.168.18.18 2) Eth0连接测试 Eth0 test for Wth0 connection 连接网线:将评估板“eth0”对应的接口与计算机有线网卡的接口用网线相连接 lan line connection:connect interface corresponding to “eth0”on evaluation board with interface of cable network interface card on computer through lan line 设置评估板IP: set IP for evaluation board # ifconfig eth0 192.168.18.36 # configure the eth0 执行测试命令: execute test command # ping 192.168.18.18 -c 2 -w 4 # send ICMP to HOST 观察测试结果:系统会输出类似如下信息: view test result,you can see information outputed by system like below --- 192.168.18.18 ping statistics --- 2packets transmitted, 2 packets received, 0% packet loss 测试结果:“0% packet loss”表示测试通过 test reuslt:“0% packet loss” represent passing of test 附图 figures 3)eth1测试同eth0 USB测试(USB test) 接口属性(interface property)
USB OTG测试(USB OTG test) SD卡测试(SD card test)1) 将MicroUSB转USB的转接线连接到USB1,系统会输出类似如下信息: connect to USB1 with USB switch wiring from MicroUSB,system will output information like below. ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 2 ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00 2) 连接USB设备。即:将U盘插入转接线上的USB口,系统会输出类似如下信息: connect USB device,e.g insert U disk to USD port on the switch wiring,system will output information like below. u*** 2-1: new high-speed USB device number 12 using ci_hdrc u***-storage 2-1:1.0: USB Mass Storage device detected 3) 拔出USB设备,系统会输出类似如下信息: take out USB device,system will output information like below. u*** 2-1: USB disconnect, device number 12 4) 拔下USB转接线,系统会输出类似如下信息: take out USB switch wiring,system will output information like below. ci_hdrc ci_hdrc.0: remove, state 4 u*** u***2: USB disconnect, device number 1 ci_hdrc ci_hdrc.0: USB bus 2 deregistered USB HOST测试(USB HOST test) MY-IMX6-EK140 的USB HOST是插座形式,如要测试HOST功能,需要把自备USB头,并且将插座上的USB HOST信号线连接到USB头,此操作请找自己的硬件工程师请求支持。 MY-IMX6-EK140 USB HOST is socket type,if need to test the function of HOST,need to connect signal line of USB HOST to the USB head self-prepared,?the operation need an assistance from hardware engineer. 另外,请硬件工程师知晓,由于CPU的USB_VBUS供电能力不足,需要将“5V_core”与USB_VBUS相连。 Moreover,please let engineer know that power supply capability of CPU的USB_VBUS is not enough,so need to connect“5V_core”with USB_VBUS 附图(figure) 接口属性(interface property)
测试说明(test instruction) MY-IMX6-EK140的TF卡接口不支持热插拔。 MY-IMX6-EK140的TF card interface doesn't support hot plug 测试方法(test method) 1)为MY-IMX6-EK140断电。 power off MY-IMX6-EK140 2)将TF卡安装好板子的TF卡座上,并确认安装好。 install TF card in TF card holder,and confirm the installation ok 3)为MY-IMX6-EK140上电,待系统启动完成后进入系统。 power on MY-IMX6-EK140,enter the system after booting is finished 5)检查TF卡: check TF card # dmesg | grep "mmc0" TF卡正常则可以看到类似如下信息: if IF card is normal, then you can see information like below. mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new high speed SD card at address 0002 附图(figure) 标准GPIO测试(standard GPIO test) 接口属性(interface property)
测试说明(test instruction) 标准GPIO的测试以GPIO129为例,其它GPIO测试可参照GPIO129的测试方法。 take GPIO129 as an example of standard GPIO test,other GPIO tests refer to the test method of GPIO129 测试方法(test method) 1)设置需要测试的GPIO的IO序号 set IO order number of GPIO which need to be tested # OUT_IO_NUMBER=129 2)导出GPIO lead out GPIO # echo ${OUT_IO_NUMBER} > /sys/class/gpio/export 3)设置GPIO方向 set direction for GPIO # echo "out" > /sys/class/gpio/gpio${OUT_IO_NUMBER}/direction 4)控制输出电平 control output electrical level # echo 0 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value 执行命令后即可用万用表检测到对应的引脚为低电平。 leads detected by multimeter accordingly will be low electrical level after execution of command # echo 1 > /sys/class/gpio/gpio${OUT_IO_NUMBER}/value 执行命令后即可用万用表检测到对应的引脚为高电平。 leads detected by multimeter accordingly will be high electrical level after execution of command 串口测试 1.测试说明 采用串口自发自收测试。 串口属性:
提示:这里只列出测试串口的收发管脚,串口的其他管脚的定义请看原理图。 2.测试方法 (1)进入测试程序目录 # cd /home/root/my-demo/linux-4.1.15/ (2)短接P21的26管脚和25管脚。 (3)./uart_test.out /dev/ttymxc2 “www.myzr.com.cn” 测试结果: CAN测试 1.测试说明 MY-IMX6-EK140P上有两组CAN接口。
采用CAN1发送,CAN0接收的方式。 WIFI测试2.测试方法 (1)将CAN1的CAN_L与CAN2的CAN_L连接;将CAN1的CAN_H与CAN2的CAN_H连接。 (2)# ip link set can0 up type can bitrate 125000 (3)# ip link set can1 up type can bitrate 125000 (4)# candump can0 & (5)# cansend can1 1F334455#1122334455667788 测试结果: 1.测试方法 FXLS8471测试(1)insmod /home/root/my-demo/linux-3.14.52/8188eu.ko (2)wpa_passphrase WIFI名称 WIFI密码 > /etc/wpa_supplicant.conf (3)wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B (4)udhcpc -i wlan0 (5)Ping 百度的ip,如果能ping通,说明测试成功。 1.测试方法 (1)# echo 1 > /sys/class/misc/FreescaleAccelerometer/enable (2)获取传感器数据: # cat /sys/class/misc/FreescaleAccelerometer/data MAG3110测试 (1)# echo 1 > /sys/class/misc/FreescaleGyroscope/enable (2)# evtest 选择“fxas2100x”对应的event0. (3)输入 0 (4)会有数据输出 SPI测试 1.测试说明
(1)评估板一共有2路SPI,SPI1对应的设备文件是/dev/spidev0.0;SPI2对应的文件是/dev/spidev1.0。 (2)以SPI1为测试例子 2.2.测试方法 (1)将P21的3和4脚短接。 (2)执行测试命令:/home/root/my-demo/linux-4.1.15/spidev_test.out -D /dev/spidev0.0 (3)测试结果如下显示则表示测试通过。 |
||||
相关推荐
|
||||
只有小组成员才能发言,加入小组>>
56009 浏览 1 评论
2678 浏览 2 评论
7027 浏览 0 评论
60864 浏览 0 评论
180900 浏览 1 评论
基于峰岹的FU6813L波轮洗衣机控制方案(原理图+PCB+源程序
85493浏览 4评论
2678浏览 2评论
5028浏览 1评论
56013浏览 1评论
7027浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 10:46 , Processed in 1.281146 second(s), Total 73, Slave 54 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号