引用本文: | 吴尧辉,刘思,吴昊珍,等.基于μC/OS-III的供电综合保护器设计[J].电力系统保护与控制,2018,46(12):122-127.[点击复制] |
WU Yaohui,LIU Si,WU Haozhen,et al.Design of power supply integrated protector based on μC/OS-III[J].Power System Protection and Control,2018,46(12):122-127[点击复制] |
|
摘要: |
针对供电综合保护系统功能和硬实时特性的要求,使用Cotex-M3内核MCU,基于μC/OS-III实时操作系统,应用库开发方式完成了供电综合保护器的设计。根据系统要求,将保护功能划分为数据采集处理、保护和GUI显示等10个优先级不同的应用任务。基于优先级对应用任务进行管理,任务间通过信号量、任务消息队列和事件标志组等内核对象实现通信和同步,从而达到系统实时运行。经系统仿真监测实验,表明基于μC/OS-III的保护程序设计能可靠实现多任务系统的实时运行。通过对μC/OS-III系统任务的监测功能的合理配置,可对软件系统运行状态进行监测,并发现软件运行细节的不足,有利于后期优化升级改进。 |
关键词: 供电综合保护 μC/OS-III实时操作系统 多任务管理 通信与同步 内核对象 |
DOI:10.7667/PSPC170888 |
投稿时间:2017-06-13修订日期:2017-09-05 |
基金项目:国家自然科学基金项目资助(61340015);河南省教育厅自然科学研究计划项目资助(2010A470003,2009B 470003) |
|
Design of power supply integrated protector based on μC/OS-III |
WU Yaohui,LIU Si,WU Haozhen,WEI Hua |
(School of Electrical Engineering and Automation, Henan Polytechnic University, Jiaozuo 454000, China;Intelligent Power Supply System for Underground Coal Mine, Henan Polytechnic University-XJ Electric Co., Ltd, Jiaozuo 454000, China;Zhengzhou Technology and Business University, Zhengzhou 450000, China;Jiaozuo Water Co., Ltd, Jiaozuo 454000, China) |
Abstract: |
To meet the power supply integrated protection functional requirements and hard real-time requirement, a kind of integrated protector to power supply is designed, using Cotex-M3 chip MCU and source library function and based on μC/OS-III real-time operating system. According to the system requirements, the protective functions are divided into 10 tasks, including data process task, protection task, GUI task, etc. With the task communication and synchronization realized by kernel objects of μC/OS-III, such as task semaphore, task message queue and event flag group, the tasks are managed based on task priority, so that the system runs real-timely. And it is indicated that the software design based on μC/OS-III can realize stably real-time running of the multitask protective system by monitoring experiment. Through the correct set to detective function of μC/OS-III system task, the system state and the operational details of software are detected, making for later software upgrade. This work is supported by National Natural Science Foundation of China (No. 61340015) and Natural Science Research Project of Education Department of Henan Province (No. 2010A470003 and No. 2009B470003). |
Key words: power supply integrated protection μC/OS-III real-time operating system multitask management communication and synchronization kernel object |