Computer and Modernization

Previous Articles     Next Articles

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

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

CLC Number: