计算机与现代化

• 软件工程 • 上一篇    下一篇

基于命名管道和异构通信机制的多应用场景下驱动升级策略

  

  1. (1.东北师范大学信息科学与技术学院,吉林长春130117;2.广州大学化学化工学院分析科学技术研究中心,
    广东广州510006;3.广州大学土木工程学院,广东广州510006)
  • 收稿日期:2019-10-20 出版日期:2020-05-20 发布日期:2020-05-21
  • 作者简介:杨贵福(1975-),男,吉林通化人,教授,硕士生导师,博士,研究方向:仪器研发,E-mail: young@nenu.edu.cn; 胡佑蓉(1995-),女,湖南常德人,硕士研究生,研究方向:软件工程与仪器研发,E-mail: 1304434586@qq.com; 刘淑霞(1995-),女,江西吉安人,硕士研究生,研究方向:软件工程与仪器研发,E-mail: 1801431855@qq.com; 通信作者:刘振邦(1989-),男,吉林长春人,博士后,研究方向:电化学分析仪器设计及电化学分析方法,E-mail: lzb1989830@hotmail.com; 包宇(1982-),男,吉林德惠人,教授,博士,研究方向:电化学分析仪器设计及电化学分析方法,E-mail: baoyu@gzhu.edu.cn。
  • 基金资助:
    国家自然科学基金专项基金资助项目(21527806); 吉林省教育厅基金资助项目(JJKH20190292KJ)

Driver Upgrade Strategy Based on Named Pipes and Heterogeneous Communication Mechanisms in Multiple Application Scenarios

  1. (1. School of Information Science and Technology, Northeast Normal University, Changchun 130117, China;
    2. Center for Analytical Science and Technology, College of Chemistry and Chemical Engineering, Guangzhou University,
    Guangzhou 510006, China; 3. School of Civil Engineering, Guangzhou University, Guangzhou 510006, China)
  • Received:2019-10-20 Online:2020-05-20 Published:2020-05-21

摘要: 针对电化学遗留系统驱动不兼容新的操作系统的问题,本文提出一种基于命名管道和异构通信机制的驱动升级策略。使用命名管道和WinUSB作为中间件,来完成上位机与下位机的通信,从而减少设备对驱动的依赖,提高通信的灵活性。结果表明本文所述的方法与原驱动的实验数据相对误差在0.000~0.001之间,将升级后的系统结果与原驱动的实验值进行比较,两者数据在误差允许的范围内结果一致。本文所述的方法通过修改少量代码来解决驱动与新操作系统的兼容性问题,既方便了驱动不适应新的操作系统的用户,也方便了工程开发人员对遗留系统的维护工作,实现了系统的低耦合和代码复用,并在某电化学软件得到了应用。

关键词: 命名管道, 遗留系统, 异构通信, 中间件, 驱动升级, 复用

Abstract: In view of the problem that the electrochemistry legacy system drivers are not compatible with new operating systems, this study proposes a driver upgrade strategy based on named pipes and heterogeneous communication mechanisms. The named pipe and WinUSB are used as the middleware to complete the communication between the upper computer and the lower computer, so as to reduce the dependence of the device on the driver and improve the flexibility of communication. The results show that the relative error of experimental data between the proposed method and the original driver is 0.000~0.001. Comparing the upgraded system results with the original driver experimental data, it is consistent within the allowable error range. The method described in the article only needs to modify a small amount of legacy code to solve the compatibility problem between the driver and the new operating system. It not only facilitates the users who are not suitable for the new operating system, but also facilitates the maintenance work of the engineering developers on the legacy system, which realizes the low coupling and code reuse of the system, and has been applied in an electrochemical software.

Key words: named pipe, legacy system, heterogeneous communication, middleware, driver upgrade, reuse

中图分类号: