Font Size: a A A

Research And Implementation Of An Control Software In Pc Based On Embedded System

Posted on:2013-02-05Degree:MasterType:Thesis
Country:ChinaCandidate:Q YuFull Text:PDF
GTID:2218330374452981Subject:Signal and Information Processing
Abstract/Summary:PDF Full Text Request
With the growth requirements of intelligent control equipment in research and industry field, the upgrade of embedded system is becoming more and more frequently. But the upgrade work required a comprehensive and thorough understanding of that embedded equipment, otherwise the upgrade work will take a lot of risks. However, if the embedded system has data and operation communication interface, and the expansion function of the system can be realized in PC, which is a simple and effective method. Based on this idea, we designed a software system in PC that the embedded system can be controlled by PC, and the function of this embedded equipment has been expanded successfully in PC.This paper introduces a kind of solution about how to realize the control to embedded equipment by PC. The embedded equipment of this design is a three-phase power source based on FPGA. This embedded scource communicate with PC through the USB interface.The development of application on PC is the key point of this design. This design scheme use USB2.0transmission protocol as the basis, and then make a communication protocol between PC and embedded device. Finally, develop application in Visual C++6.0using application program interface function provided by driver.This paper firstly introduces the background and significance of this subject, and then introduces the function and use of the embedded three-phase power source, including the hardware design and software design of it. Then the communication protocol between PC and embedded equipment are introduced detailedly, for example the format of asking and response mode, and other command format. What's more, the basic of USB communication agreement is introduced, including USB topology structure, USB enumeration process and USB bag structure, etc. The design of interface between USB chip and micro controller is also introduced.Secondly, this paper summarizes the USB installation process of device driver, as well as function and usage of interface function in application program provided by driver. The key point of this design is developing an application in Visual C++6.0, which can communicate with USB device. This application creates a project of MFC AppWizard(exe) in Visual C++6.0, which will request data from the ground-floor device in every200ms through USB interface. The requested data is consist of amplitude, frequency and phase difference of current and voltage, and then this requested data and waveform gotten by this data will all be show on the main user interface.The application complicated in Visual C++6.0contains several parts including interface operation module, setting operation module, amplitude calibration module and oscilloscope module, nearly all of which have upload and download operation with USB device. Among them, interface operation module can display the insertion status of USB device. Setting operation module can set the operation procedure and make commitments for equipment, making the equipment to execute automatically according to the set steps. Amplitude calibration module can compensate the amplitude fluctuation caused by temperature drift. Oscilloscope module can give a intuitive reaction of the relationship between the voltage and the current.In the last of the paper, the maximum transmission speed that high-speed data communication can achieve is calculated and analyzed. The shortage and the reason to the shortage in this design are also described. In the end, this paper has given the further research suggestion about improving the application and development of USB high-speed data communication.
Keywords/Search Tags:VC++application, Interface and the drive of USB, Protocol ofcomplication, Embedded device
PDF Full Text Request
Related items