节点文献

基于嵌入式的网控电源分配单元的软件设计与实现

【作者】 刘永刚

【导师】 赖小红; 王玉春;

【作者基本信息】 电子科技大学 , 软件工程, 2011, 硕士

【摘要】 自动化测试已经成为当前许多企业面临的问题,而在自动化测试过程中必然需要测试工具,当前企业迫切需要将一些测试过程固定且重复率极高的测试过程用测试工具来完成,同时企业为了节约成本也需要一些节能工具的帮助,这些都是当前许多企业需要解决的问题。本论文正是针对上述问题,采用了基于嵌入式的技术,并且根据实际使用的需要采用两种控制途径,一种是通过串口进行控制网控电源分配单元进而达到控制目标设备的目的,如果控制者距离网控电源分配单元比较远的话就需要很长的串口线,不仅使用不便,而且串口的通信速率很低,但它的优点是比较简单稳定方便调试。另一种方式是通过网络途径进行控制,这是一种比较理想的控制方式,不需要特别的连接,只要是网络互通的计算机都可以控制我们的网控电源分配单元,并且具有很高的通信效率。本文的主要目标是完成下面几个任务:(1)移植嵌入式实时操作系统uC/OS-II;(2)设计通道控制模块,已达到对现有四个通道的即时上电和下电操作;(3)设计通道时间控制相关的模块。第一、通道的循环控制模块,实现对目标设备进行循环上下电的操作,可以使由用户自行在命令中设置循环上下电的时间间隔,且上电和下电的时间间隔独立设置;第二、通道的延时控制模块,实现对通道的延时上电或延时下电功能,由用户设置延时时间段;第三、通道的定时控制模块,用户可以设置一个时间点,然后在这个时间点对目标设备进行上电或下电操作。(4)设计和实现一个基于Flash的简单文件系统,用于保存一些基本信息,例如用户名密码,IP地址和MAC地址等。(5)设计和实现I2C、Flash、串口和RTC驱动程序。基于上述目标,本文选用了STM32 Cortex-M3微控制器和uc/os-ii嵌入式实时操作系统作为基础平台设计并实现了网控电源分配单元。

【Abstract】 Automated testing has become the current problems faced by many enterprises, and in the process of automated testing tools must be tested, the current urgent need for some testing companies during a high repetition rate is fixed and the testing process to be completed with test tool, while enterprises in order to save costs Also need some energy-saving tools to help, these are many companies need to address the current problems.This paper is to address the problem using techniques based embedded and used according to the needs of the actual use of two control channels, a control network is controlled via the serial port power distribution unit to control the target device then the purpose, if the control Those who control power distribution unit from the network relatively far, then you need a very long serial cable, not only inconvenient to use, and the serial communication rate is low, but it has the advantage of relatively simple and stable to facilitate debugging. Another way is through the network control means, which is an ideal control, no special connections, as long as the network of interconnected computers that can control the power of our distribution network control unit, and has high communication Efficiency.The main goal is to complete several tasks the following:(1) transplantation of embedded real-time operating system, uC / OS-II;(2) Design-channel control module has reached the four existing channels of power and the next instant electric operation;(3) design the control channel time-related modules. First, the channel loop control module to achieve the target device to loop up and down the operation of power can make in the command by the user to set the upper and lower power cycle the time interval, and the electric power and the next time interval independent settings; second , the channel delay control module, the delay of the channel under the electric power or function of delay, delay time period set by the user; the third, the channel timing control module, the user can set a time point, and at this time Point on the target device is powered on or under the power operation. (4) Design and implement a simple Flash-based file system to store some basic information such as username and password, IP address and MAC address.(5) design and implementation of I2C, Flash, Serial and RTC drivers.Based on the above objectives, the paper chose the STM32 Cortex-M3 microcontroller and uc / os-ii embedded real time operating system as the basic platform design and implementation of network control power distribution unit.

【关键词】 电源分配单元嵌入式自动化测试
【Key words】 PDUEmbeddedAutomated testing
  • 【分类号】TP368.12
  • 【被引频次】5
  • 【下载频次】90
节点文献中: