| The design of peripheral interface is an important problem in the field of computer technology. The tradutional attachment menthod has several limitations such as critical system resources, non-shareable interfaces, limited number of peripheral attachment and no hot attachment. It is neccessary to find out a new technology to solve these problems.As a newly developed, token-based and asymmetrical serial bus standard,the USB approach widely uses advanced techniques of communication and network field,provided a single interface and overcomes the above shortcomings.lt is a star-tier topology, including host,hub and USB device,decreasing the cost of communication.lt also provides a transparent data communication link pipe to reduce the complexity of device driver.Embedded system is a newly developing domain in computer technology and has wide applications.Quick attachment and convenient use of devices is a goal in embedded system.In consequence, USB is a good selection to embedded systemTraffic Illegality Shot system is one of the important field of the intelligent traffic project. It demands reliable transimitting data, remote controlling, steady operation system and USB interface with hot attachment so as to meet the open air condition.The realtime and small-sized embeded equipment just completely meets the viarious demands of the Traffic Illegality Shot system. VxWorks, developped by WindRiver company, is the kernal of high qualified realtime operation system with leading industrial position. It has advanced network function. Its main character is being embedded, realtime, steady and reliable. Its open structure and support for industrial standard enable programmer design high-efficiency embedded system and embed it into other various processors.In this thesis, firstly USB protocol is studied and analyzed. Then it is designed on embedded platform in a Traffic Illegality Shot system. It includes USB driver, USB device driver and USB host protocol stack .The whole system runs steadily. |