Journal of Lanzhou University of Technology ›› 2024, Vol. 50 ›› Issue (1): 104-109.

• Automation Technique and Computer Technology • Previous Articles     Next Articles

Research on automatic generation method of test cases for charging device communication protocol conformance test

HE Xue-feng1, JIA Jun-guo2, LI Xu-ling1   

  1. 1. State Grid Electric Power Research Institute, Nanjing 211106, China;
    2. State Grid Electric Vehicle Service Company Ltd., Beijing 100053, China
  • Received:2021-12-20 Online:2024-02-28 Published:2024-03-04

Abstract: Current communication protocol consistency test methods between the charger and battery management system (BMS) is mainly designed according to expert experience, which lacks theoretical support, resulting in weak test coverage and unconvincing test results. To effectively solve the above problem, a communication protocol consistency test method was designed here based on a finite state machine (FSM). First, through a detailed interpretation of Protocol GB/T 27930—2015, the communication process between the charger and BMS was analyzed using the proposed method to ensure the consistency of communication between different entities of the protocol. Secondly, the unique input/output (UIO) was exploited on FSM to get the test sequence and the final test case set. The recursive algorithm was adopted to consider the pre-test cases so that each test case had complete input and output. The results show that the consistency testing method based on FSM not only provides theoretical support for the communication protocol consistency testing process between charger and BMS, but also has strong reuse ability compared to the experience-based method.

Key words: finite state machine, charger, battery manage system, consistency test

CLC Number: