PC机对嵌入式设备控制软件的研究与实现
发布时间:2018-09-11 14:15
【摘要】:随着研究领域和工业领域对嵌入式设备的功能要求越来越多,这势必引起嵌入式设备的升级工作越来越频繁。但是这种升级工作要求对需升级的嵌入式设备本身有全面而深入的了解,否则升级工作就要冒很大的风险。但如果嵌入式设备配有数据和操作命令的通信接口,并将系统的功能扩展在上位机上实现,不失为一种简单而有效的途径。基于这种思路,本人设计了一种PC机对嵌入式设备实施控制的软件系统,并成功的对一台嵌入式设备实施了功能扩展。 本文阐述了一种基于PC机对嵌入式设备实施控制的解决方案。该设计的嵌入式设备为一台基于FPGA的三相功率源,它通过USB接口与PC机进行数据和操作命令的通信,设计重点在于PC机上的应用程序开发。该方案以USB2.0传输协议为基础,制定了PC机与嵌入式功率源双向的通信协议。然后利用驱动程序提供的应用程序接口函数在Visual C++6.0中开发上位机应用程序。 文中首先介绍课题研究的背景及意义,然后说明了嵌入式三相功率源的功能用途,还包括其硬件设计和软件设计部分,并详细叙述了对于USB通信部分嵌入式设备所要完成的工作。接着设计了PC机与嵌入式设备双方通信协议,如请求应答数据格式和其他命令格式等。 其次,文中概述了USB设备驱动的安装过程及驱动提供的应用程序接口函数的功能及用法。本设计的重点在于利用Visual C++6.0设计与USB设备通信的应用程序。该程序是一个基于对话框的MFC AppWizard(exe)的工程,它在打开设备后会通过USB接口向嵌入式设备请求数据并将参数显示在程序主界面上。 在Visual C++6.0中完成的应用程序包括接口操作模块、操作设置模块、幅值校准模块和示波器显示模块等几个部分,每个部分都包含与USB设备的上传下传操作。其中接口操作模块主要显示USB的插入状态;操作设置模块可以设置操作步骤,为设备制定执行任务书;幅值校准模块可以补偿设备由于温漂造成的幅值波动;示波器模块则是更直观的反应电压及电流的关系。 最后,针对设计中高速数据通信所能达到的最大传输速度做了计算与分析,并叙述了本设计存在的不足和原因,并结合目前的开发成果对该应用程序的改进和USB高速数据通信的发展做出了展望。
[Abstract]:With more and more functional requirements of embedded devices in the field of research and industry, the upgrading of embedded devices is bound to become more and more frequent. However, this kind of upgrade work requires a comprehensive and in-depth understanding of the embedded device to be upgraded, otherwise, the upgrade work will take great risks. However, if the embedded device is equipped with a communication interface of data and operation commands, and the functions of the system are extended to the upper computer, it is a simple and effective way. Based on this idea, I design a kind of software system of PC machine to control embedded device, and successfully extend the function of an embedded device. This paper describes a solution of embedded device control based on PC machine. The embedded device is a three-phase power source based on FPGA. It communicates data and operation commands with PC machine through USB interface. The emphasis of the design is the development of application program on PC computer. Based on USB2.0 transmission protocol, a bi-directional communication protocol between PC and embedded power source is developed. Then the application interface function provided by the driver is used to develop the upper computer application program in Visual C 6.0. This paper first introduces the background and significance of the research, and then explains the function of the embedded three-phase power source, including its hardware design and software design. The work to be accomplished for embedded devices in USB communication part is described in detail. Then the communication protocol between PC and embedded device is designed, such as request response data format and other command format. Secondly, the installation process of USB device driver and the function and usage of the application program interface function provided by the driver are summarized. The emphasis of this design is to use Visual C 6.0 to design the application program of communication with USB equipment. The program is a dialog based MFC AppWizard (exe) project, it will open the device through the USB interface to the embedded device to request data and display the parameters on the main interface of the program. The application program in Visual C 6.0 includes interface operation module, operation setting module, amplitude calibration module and oscilloscope display module. Each part contains the upload and down transmission operation with USB equipment. The interface operation module mainly shows the insert state of the USB, the operation setting module can set up the operation steps, and make the execution task for the equipment, the amplitude calibration module can compensate the amplitude fluctuation caused by the temperature drift of the equipment. Oscilloscope module is more intuitive response voltage and current relationship. Finally, the maximum transmission speed of high-speed data communication in the design is calculated and analyzed, and the shortcomings and reasons of the design are described. The improvement of the application and the development of USB high-speed data communication are prospected.
【学位授予单位】:武汉理工大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP368.1
本文编号:2236929
[Abstract]:With more and more functional requirements of embedded devices in the field of research and industry, the upgrading of embedded devices is bound to become more and more frequent. However, this kind of upgrade work requires a comprehensive and in-depth understanding of the embedded device to be upgraded, otherwise, the upgrade work will take great risks. However, if the embedded device is equipped with a communication interface of data and operation commands, and the functions of the system are extended to the upper computer, it is a simple and effective way. Based on this idea, I design a kind of software system of PC machine to control embedded device, and successfully extend the function of an embedded device. This paper describes a solution of embedded device control based on PC machine. The embedded device is a three-phase power source based on FPGA. It communicates data and operation commands with PC machine through USB interface. The emphasis of the design is the development of application program on PC computer. Based on USB2.0 transmission protocol, a bi-directional communication protocol between PC and embedded power source is developed. Then the application interface function provided by the driver is used to develop the upper computer application program in Visual C 6.0. This paper first introduces the background and significance of the research, and then explains the function of the embedded three-phase power source, including its hardware design and software design. The work to be accomplished for embedded devices in USB communication part is described in detail. Then the communication protocol between PC and embedded device is designed, such as request response data format and other command format. Secondly, the installation process of USB device driver and the function and usage of the application program interface function provided by the driver are summarized. The emphasis of this design is to use Visual C 6.0 to design the application program of communication with USB equipment. The program is a dialog based MFC AppWizard (exe) project, it will open the device through the USB interface to the embedded device to request data and display the parameters on the main interface of the program. The application program in Visual C 6.0 includes interface operation module, operation setting module, amplitude calibration module and oscilloscope display module. Each part contains the upload and down transmission operation with USB equipment. The interface operation module mainly shows the insert state of the USB, the operation setting module can set up the operation steps, and make the execution task for the equipment, the amplitude calibration module can compensate the amplitude fluctuation caused by the temperature drift of the equipment. Oscilloscope module is more intuitive response voltage and current relationship. Finally, the maximum transmission speed of high-speed data communication in the design is calculated and analyzed, and the shortcomings and reasons of the design are described. The improvement of the application and the development of USB high-speed data communication are prospected.
【学位授予单位】:武汉理工大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP368.1
【参考文献】
相关期刊论文 前10条
1 郭俊杰;;基于USB接口的多通道数据采集仪设计[J];兵工自动化;2007年06期
2 钱豪;;USB设备枚举过程及代码设计[J];电脑知识与技术;2010年19期
3 倪明辉;周军;杨庚;;USB在FPGA控制的高速数据采集系统中的应用[J];计算机测量与控制;2006年02期
4 胡伟;张新家;李美峰;张德刚;刘航;;基于FPGA的USB2.0协议分析仪设计[J];计算机测量与控制;2008年09期
5 时向卫;李峥;张少武;;Win2000/XP下USB设备驱动程序研究与设计[J];计算机工程与设计;2008年21期
6 李兰;宁永海;;基于CH372的USB数据采集系统的设计与实现[J];微计算机信息;2007年34期
7 王平;苏涛;方浩俊;;基于USB2.0的高速实时数据采集系统设计[J];现代电子技术;2007年01期
8 刘吉;杨德伟;文怀涛;刘超;;基于USB通信的FPGA高速数据采集系统[J];现代电子技术;2011年10期
9 叶秀羲;朱长青;;基于USB总线的虚拟数字存储示波器的设计与实现[J];移动电源与车辆;2009年03期
10 孟文;马跃;王志成;;伺服系统中USB人机接口的设计与实现[J];组合机床与自动化加工技术;2012年01期
,本文编号:2236929
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2236929.html