摘要
随着WLAN(无线局域网)的普及,各种接口的WLAN网卡层出不穷,像UART,SPI,USB等。为了验证接口的功能、性能和兼容性是否符合需求,在此提出了一种支持UART&SPI接口的验证工具。传统的接口验证采用手动验证的方法,即手动修改UART接口的波特率或SPI接口的大小端等来达到遍历所有用例的目的,传统方法存在效率低,容易漏测测试用例等缺陷。而该工具通过命令通道完成上位机和下位机的协商,保持接口参数同步;数据通道验证在该接口参数下的功能和性能,实现了接口的功能和性能验证的自动化,大大提高了测试效率,保证测试用例的覆盖率。该工具适用于多种平台下的UART和SPI接口验证。
As the WLAN (wireless local area network) service grows popular, WLAN cards of all kinds of interfaces come forth, such as UART, SPI, USB and so on. In order to verify the functionality, performance, compatibility of the interfaces, an interface verification tool for UART & SPI is developed. The traditional way of verifying interface is manual, that is, all the baud rates of UART interface are tested one by one manually. So the traditional way has the disadvantage of low efficiency and unstable test coverage. The consultation between PC and slave computer is finished by the tool through command channel to maintain synchronization of interface parameters. The functionality and performance verification are completed by data channel. The tool can not only improve the efficiency of the test, but also ensure the test coverage. This tool can be applicable to the veri- fication of UART and SPI interfaces in many platforms.
出处
《现代电子技术》
2013年第24期94-98,共5页
Modern Electronics Technique