摘要
针对Android平台的USB通信技术的广阔应用前景,对Android设备与单片机的USB通信技术进行了研究;搭建了Android设备与单片机进行USB通信的硬件平台;以Android USBHost通信技术为核心,开发了Android端与单片机端的USB应用程序;着重阐述了Android端USB应用程序的完整开发过程,给出了其所需API类的功能描述、使用方法以及程序的开发流程图、主要功能实现的关键代码;对Android开发板与单片机之间的数据通信过程进行了测试,结果表明两者通信正常,实现了Android平台下的USB通信功能。
For the wide implementation prospect of USB communication technologies on the Android platform, studied the USB commu- nication process between Android platform and MCU. Built USB communication hardware platform between Android platform and MCU. Centered on communication technology of Android USB Host, developed the USB application of Android and MCU. And introduced the de- tails of functional description and using methods of all the API classes needed in the program development. Described the whole USB applica- tion developing progress in Android side, and gave the flowchart of the program and key code of the main function. Tested the data communi- cation process between Android development board and the MCU, and the results showed that the communication between them was on the rails. Implemented the USB communication functions under Android platform successfully.
出处
《计算机测量与控制》
2015年第12期4121-4123,4127,共4页
Computer Measurement &Control