Summary: | 碩士 === 國立成功大學 === 資訊工程學系碩博士班 === 95 === Since has appeared on the market, the Universal Serial Bus (USB) has obtained the quite huge success. Nearly all of the exterior equipments use USB to communicate with computer. Because it has the unitary communication interface, the support of hot plug, good extensibility and the inexpensive price, more and more host computers and the consumer electronic products consider USB interface as necessary. The master/slave architecture makes the host computer to be in charge of all the communications and the device just need to answer these requests. Therefore the device can be very simple and cheap. The congenital on design causes to the peripheral device is unable to exchange data with another peripheral device. As a result, the USB Implementers Forum has promulgated the On-The-Go subsidiary agreement. Peripheral which is based on this supplement implements the restricted host abilities and then achieve information transmission between peripherals. In this thesis, we use Cypress CY3663 development platform to implement an OTG dual-role device. The work encompasses the firmware layer design, host drivers design, peripheral device driver design, and the upper applications which are used to confirm the device. We designed three scenarios to test the device. In the first scenario, the device plays the host role and can support legacy mass storage device and USB speaker. In the second scenario, the device plays the peripheral role and can be considered as a mass storage device when connects to a desktop computer. In the final scenario, we test the OTG capability by connecting the device to the Chesen OXDK3800 and change their roles without reverse the cable. Therefore the capabilities of SRP and HNP of the device can be verified.
|