摘要:针对通用控制器组成双机热备冗余架构,提出在任务执行过程中进行数据同步,增加CPU空闲同步线程的方法,减少控制任务周期内定时同步的次数,降低数据同步对控制任务实时性的影响。设计专用程序数据段用于同步数据的提取与拷贝,划分预定义同步数据区,并给出通过编译器链接脚本与C语言编程相结合的具体软件实现。软件运行结果表明,通过软件进行数据同步的方法正确有效,可实现热备冗余技术与业务软件的分离解耦,具有较强的易用性和可移植性。 |
关键词: 双机热备 数据同步 链接脚本 数据段 同步数据区 |
|
Task Data Synchronization Scheme of Dual-Machine Hot Standby System |
CAI Liyuan,GONG Dingfei,HUANG He |
Shanghai Marine Diesel Engine Research Institute, Shanghai 201108, China |
Abstract:Aiming at the dual machine hot standby redundant architecture composed of a universal controller,a method of data synchronization during task execution,increasing CPU idle synchronization threads was proposed,which reduced the number of timed synchronizations within the control task cycle,and reduced the impact of data synchronization on the real-time performance of control tasks.A dedicated program data segment for extracting and copying synchronized data was designed,predefined synchronized data areas was divided,and a specific software implementation method that combines compiler linked scripts with C language programming was provided.The software operation results show that the method of data synchronization through software is correct and effective,can achieve the separation and decoupling of hot standby redundancy technology and business software,and boast strong usability and portability. |
Key words: dual-machine hot standby data synchronization link script data segment synchronized data area |