摘要
为了满足两个USB设备之间直接进行数据通信的需求,通过对现有USB OTG协议和相关应用的研究,在国产SoC芯片SEP6200平台上设计并实现了基于Linux内核的USB OTG模块驱动。首先介绍了OTG标准中的对话请求协议(SRP)和主机交换协议(HNP),然后制定并设计了基于USB控制芯片USB3343的硬件模块方案,最后根据Linux内核中已有的USB驱动架构完成了USB OTG设备驱动的设计,并最终实现了SEP6200嵌入式平台USB Host和De-vice角色的自由转换功能。
= This paper proposed a design of USB OTG driver using Linux embedded operation system, which based on domestic SOC SEP6200 platform. This OTG driver satisfied the requirement of direct data communication between two USB devices. The Host Negotiation Protocol and Session Request Protocol in USB OTG standard is introduced at first, and then the hardware scheme of USB OTG module which depended on USB transceiver USB3343 is provided. Finally, the USB OTG driver is designed on the basis of existing USB driver framework in Linux kernel. The SEP6200 platform can act as host or device, it can also change between this two roles.
出处
《单片机与嵌入式系统应用》
2013年第4期22-24,共3页
Microcontrollers & Embedded Systems