Real-time Multitask Software Design of Communication Server Based on VxWorks

YANG Xiao-jing,HU Min-qiang,WU Zai-jun,LI Cheng
DOI: https://doi.org/10.3969/j.issn.1006-6047.2007.03.021
2007-01-01
Abstract:A software design of communication server based on embedded RTOS(Real-Time Operating System) VxWorks is proposed to satisfy requirements of electric power dispatch automation system for high reliability and real-time performance.The hardware is designed based on embedded microprocessor AT91RM 9200,and the software realizes protocol conversion and data transfer.The software system adopts double-layer client / server structure.To downstream channels,the communication server acts as a client,requesting data of protection units and supporting protocol IEC-60870-103.To upstream channel,the communication server acts as a server,responding the data request of dispatch master station and supporting protocol CDT(Cyclic Digital Transmission),IEC-60870-101 and IEC-60870-104.The software architecture consists of models of system initialization,system configuration,data request and processing of downstream channels,data processing of upstream channel and database management.The data stream and the multitask division of communication server based on H.GEMMA rule are analyzed.Task priority is determined and it can be changed by calling taskPrioritySet function.The communication server uses semaphore and message queue as communication modes to guarantee the real-time performance of system.The main program flow of communication server is given.
What problem does this paper attempt to address?