Virtual simulation platform for equipment of battery swap station

By introducing a virtual simulation platform for equipment in the battery swap station, simulating the business logic and functions of peripheral devices, the problems of high resource dependence, high cost, limited environment and insufficient flexibility in the software verification of battery swap stations are solved, and efficient, flexible and accurate software verification and rapid iteration are achieved.

CN119849173APending Publication Date: 2025-04-18SHANGHAI RONGHE ZHIDIAN NEW ENERGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411958835.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The release and verification of existing battery swap software versions have problems such as strong resource dependence, high cost, limited environment and insufficient flexibility.

Method used

It provides a virtual simulation platform for battery swap station equipment, simulates peripheral devices in the battery swap station through multiple device virtual simulation modules, uses built-in business logic to perform business processing, and sends test data to the station control system.

Benefits of technology

It effectively gets rid of the dependence on physical devices, improves the efficiency and flexibility of software function verification, significantly reduces the cost and time consumption of verification, accelerates the iteration and release process of software, and ensures the accuracy and high reliability of verification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119849173A_ABST
    Figure CN119849173A_ABST
Patent Text Reader

Abstract

The invention provides a virtual simulation platform for equipment of a battery swap station, which is characterized in that equipment virtual simulation modules are respectively arranged aiming at various peripheral equipment in the battery swap station, and one or more required equipment virtual simulation modules are adopted to carry out corresponding business processing by utilizing built-in business logic when the software verification requirement of the battery swap station is met. And each equipment virtual simulation module sends the generated test data to the station control system. According to the method and the system, the dependence on entity equipment is effectively eliminated through a mode of virtualizing the peripheral equipment, and the efficiency and the flexibility of software function verification are greatly improved. Besides, the unified code architecture is adopted to comprehensively simulate various business scenes of the battery swap station, the verification cost and time are reduced, the iteration and release process of software is accelerated, the consistency and repeatability of test conditions are ensured, and therefore it is guaranteed that the verification result is accurate and highly reliable. In addition, the scheme is extensible, so that a single code architecture can be widely compatible with various battery swap stations and equipment thereof, and the flexibility and adaptability of the system are greatly enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery swap stations, and in particular to a virtual simulation platform for battery swap station equipment. Background Art

[0002] In the operation of battery swap stations, the stability and functionality of the software system are crucial. Traditionally, the release and verification of battery swap station software versions rely on the hardware equipment of the actual battery swap station, including PLC equipment, chargers, auxiliary equipment, etc. Although this method can ensure the performance of the software in a real environment, it also has a series of defects and shortcomings:

[0003] 1. High resource dependence: Reliance on actual hardware devices means that a large number of hardware resources need to be coordinated and configured during the software verification process. This includes ensuring that all devices are available and making necessary configuration adjustments based on verification requirements. The preparation, configuration, and coordination of hardware resources usually takes a lot of time and may cause delays in the debugging and verification process.

[0004] 2. High cost: The cost of software verification in actual battery swap stations includes not only the purchase, maintenance and update costs of the equipment itself, but also indirect costs such as labor costs and time costs.

[0005] 3. Environmental constraints: When verifying in a real battery swap station environment, external factors (such as equipment failure, environmental factor changes, human operation errors, etc.) may interfere with the verification results, resulting in instability of the test results. These external factors are difficult to fully control and predict, increasing the uncertainty of the verification results.

[0006] 4. Lack of flexibility: For compatibility testing of various types of battery swap stations, traditional methods require multiple deployments and adjustments of actual equipment to adapt to the configuration and interface requirements of different equipment. This results in a lack of flexibility in the verification process and an inability to quickly respond to software iteration and update requirements. Summary of the invention

[0007] In view of the shortcomings of the prior art mentioned above, the purpose of the present invention is to provide a virtual simulation platform for battery swap station equipment, which is used to solve the technical problems of the release and verification of existing battery swap station software versions, such as strong resource dependence, high cost, environmental restrictions and lack of flexibility.

[0008] To achieve the above-mentioned purpose and other related purposes, the present invention provides a virtual simulation platform for battery swap station equipment, which is communicatively connected to a station control system, and the platform includes: multiple equipment virtual simulation modules; each equipment virtual simulation module simulates a peripheral equipment in the battery swap station; each equipment virtual simulation module has built-in business logic with corresponding peripheral equipment business functions, which is used to monitor and control the corresponding battery swap station business in a virtual environment; and the built-in business logic of each equipment virtual simulation module adopts a unified code architecture design; when there is a need for battery swap station software verification, one or more required equipment virtual simulation modules are used to perform corresponding business processing using the built-in business logic, and each equipment virtual simulation module sends the generated test data to the station control system.

[0009] In one embodiment of the present invention, each device virtual simulation module includes: a virtual device module designed respectively for various communication protocols supported by the corresponding simulated peripheral device; wherein each virtual device module includes: a communication interface, designed based on the communication parameters set by the corresponding communication protocol, and used to communicate with the station control system using the corresponding communication protocol; a functional module, designed based on the set device parameters, and used to implement all functions of the corresponding simulated peripheral device.

[0010] In one embodiment of the present invention, the communication interface of each device virtual simulation module is designed in a standardized manner.

[0011] In one embodiment of the present invention, the types of communication protocols include: TCP, CAN, Modbus, RS485, IO, MQTT, HTTP and Redis protocols.

[0012] In one embodiment of the present invention, the communication parameters include: communication rate and data frame format; the device parameters include: simulated peripheral device type and peripheral device function implementation parameters.

[0013] In one embodiment of the present invention, the functional modules include: a monitoring module for real-time monitoring of relevant key parameters and fault status; a business logic module for performing corresponding business processing based on internal business logic and generating corresponding business data; and a report generation module for generating corresponding test reports based on the generated business data.

[0014] In one embodiment of the present invention, the functional module also includes: a display interface module, which is used to display the status data and test report of the equipment virtual simulation module on the interface; and a log module, which is used to print the battery replacement status and related business related information.

[0015] In one embodiment of the present invention, each device virtual simulation module of the platform includes at least: a PLC virtual simulation module for simulating a PLC device and a charger simulation module for simulating a charger.

[0016] In one embodiment of the present invention, each device virtual simulation module of the platform also includes: a battery BMS simulation module that simulates a battery BMS, an RFID test interface simulation module that simulates an RFID test interface, a license plate device setting interface simulation module that simulates a license plate device setting interface, an LED display screen simulation module that simulates an LED display screen, a video inference machine simulation module that simulates a video inference machine, a cloud platform interface simulation module that simulates a cloud platform interface, a battery swap controller simulation module that simulates a battery swap controller, a lidar simulation module that simulates a lidar, a traffic light IO device simulation module that simulates a traffic light IO device, and a 485 fire equipment simulation module that simulates 485 fire equipment.

[0017] In one embodiment of the present invention, the platform further includes: an intelligent detection module for automatically monitoring various message fields of charging and swapping orders from the station control system to identify and locate existing quality problems.

[0018] As described above, the present invention is a virtual simulation platform for battery swap station equipment, which has the following beneficial effects: the present invention sets device virtual simulation modules for various peripheral devices in the battery swap station respectively. When there is a demand for battery swap station software verification, the platform uses the required one or more device virtual simulation modules to use the built-in business logic to perform corresponding business processing, and each device virtual simulation module sends the generated test data to the station control system. The present invention effectively gets rid of the dependence on physical devices by virtualizing peripheral devices, greatly improving the efficiency and flexibility of software function verification. In addition, the use of a unified code architecture to fully simulate various business scenarios of battery swap stations not only significantly reduces the cost and time consumption of verification, but also accelerates the iteration and release process of the software. And by precisely controlling the virtual environment, the consistency and repeatability of the test conditions are ensured, thereby ensuring the accuracy and high reliability of the verification results. In particular, a highly scalable solution is provided, so that a single code architecture can be widely compatible with a variety of battery swap stations and their equipment, thereby greatly enhancing the flexibility and adaptability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Shown is a schematic diagram of the structure of a virtual simulation platform for battery swap station equipment in one embodiment of the present invention.

[0020] Figure 2 Shown is a schematic diagram of virtual simulation modules of various devices set in the virtual simulation platform of battery swap station equipment in one embodiment of the present invention.

[0021] Figure 3 Shown is a schematic structural diagram of an electronic terminal in an embodiment of the present invention. DETAILED DESCRIPTION

[0022] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0023] It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present invention. It should be understood that other embodiments may also be used, and that mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present invention is limited only by the claims of the published patents. The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.

[0024] Throughout the specification, when a part is said to be "connected" to another part, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a part is said to "include" a certain constituent element, unless otherwise stated, it does not exclude other constituent elements, but means that other constituent elements may be included.

[0025] The terms first, second and third mentioned herein are used to describe various parts, components, regions, layers and / or segments, but are not limited thereto. These terms are only used to distinguish a certain part, component, region, layer or segment from other parts, components, regions, layers or segments. Therefore, the first part, component, region, layer or segment described below may refer to the second part, component, region, layer or segment within the scope of the present invention.

[0026] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.

[0027] The present invention provides a virtual simulation platform for battery swap station equipment. By setting device virtual simulation modules for various peripheral devices in the battery swap station, when there is a demand for battery swap station software verification, the platform uses one or more required device virtual simulation modules to use built-in business logic to perform corresponding business processing, and each device virtual simulation module sends the generated test data to the station control system. The present invention effectively gets rid of the dependence on physical devices by virtualizing peripheral devices, greatly improving the efficiency and flexibility of software function verification. In addition, a unified code architecture is used to fully simulate various business scenarios of battery swap stations, which not only significantly reduces the cost and time consumption of verification, but also accelerates the iteration and release process of the software. And by precisely controlling the virtual environment, the consistency and repeatability of the test conditions are ensured, thereby ensuring the accuracy and high reliability of the verification results. In particular, a highly scalable solution is provided, so that a single code architecture can be widely compatible with a variety of battery swap stations and their equipment, thereby greatly enhancing the flexibility and adaptability of the system.

[0028] The following is a detailed description of the embodiments of the present invention with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention. The present invention can be embodied in many different forms and is not limited to the embodiments described herein.

[0029] like Figure 1 A structural schematic diagram of a virtual simulation platform for battery swap station equipment in an embodiment of the present invention is shown.

[0030] The station control system is the core part of the battery swap station. It coordinates the entire battery swap process and performs battery swap control. The station control system of the battery swap station is deployed in the battery swap station and has functions such as battery swap monitoring, charging monitoring, vehicle management, electricity metering, data statistics, etc., to achieve logical control and operation and maintenance monitoring of the battery swap process. The platform establishes a connection with the station control system through a reliable communication protocol and interface;

[0031] The platform includes:

[0032] Multiple equipment virtual simulation modules; each equipment virtual simulation module simulates a specific peripheral device in the battery swap station; each module is embedded with business logic that matches the business functions of the corresponding peripheral device. These business logics are designed based on the actual working principles and business processes of the equipment, and can monitor and control the relevant business of the battery swap station in real time in a virtual environment to ensure the authenticity and effectiveness of the simulation.

[0033] In order to improve the maintainability and scalability of the platform, the business logic built into all device virtual simulation modules adopts a unified code architecture design. This design not only simplifies the interaction between modules, but also reduces the complexity of system upgrades and maintenance.

[0034] When there is a need for software verification of a battery swap station, the platform can select and activate one or more equipment virtual simulation modules according to actual needs. These modules will use the built-in business logic to perform corresponding business processing and generate necessary test data. Subsequently, these test data will be sent to the station control system for further analysis and verification.

[0035] Therefore, the present invention effectively gets rid of the dependence on physical devices by virtualizing peripheral devices, improves software verification efficiency and flexibility, adopts a unified code architecture to comprehensively simulate battery swap station business scenarios, reduces costs and time, and accelerates software iteration. At the same time, it ensures the reliability of verification results by precisely controlling the virtual environment, and provides a highly scalable solution that is widely compatible with a variety of battery swap stations and equipment, greatly enhancing the flexibility and adaptability of the system.

[0036] In one embodiment, in the device virtual simulation module, corresponding virtual device modules are designed for each communication protocol supported by each peripheral device. These virtual device modules are the key parts of simulating peripheral devices. They realize communication with the station control system and simulation of device functions through the communication interface and function modules of the simulated device.

[0037] Each virtual device module includes: a communication interface and a functional module.

[0038] The communication interface is designed based on the communication parameters set by the corresponding communication protocol. These communication parameters ensure that the virtual device module can communicate with the station control system using the corresponding communication protocol.

[0039] Functional modules are designed based on the set device parameters. These device parameters determine the device functions and behaviors that the virtual device module can simulate. The main function of the functional module is to simulate all the functions of the peripheral device. It calls the corresponding algorithm or logic based on the received instructions or data to generate virtual device responses or data. These responses or data can accurately reflect the actual working status and performance of the peripheral device, thereby achieving a comprehensive simulation of the device functions and achieving efficient software verification.

[0040] In one embodiment, in order to simplify the interaction between the device virtual simulation module and the station control system, each communication interface of the device virtual simulation module is standardized. The standardized design ensures that different devices can communicate using a unified communication protocol and data format. This greatly reduces the problems caused by incompatible communications between devices, allowing the device virtual simulation modules of various peripheral devices to be easily connected to the station control system to achieve seamless data exchange. For developers, standardized communication interfaces mean that they do not need to write complex communication code separately for the device virtual simulation module of each device. Instead, they can use a unified interface standard to develop communication modules for peripheral devices, which significantly reduces development costs and time, making system integration more efficient.

[0041] In one embodiment, the types of communication protocols include: TCP (Transmission Control Protocol), CAN (Controller Area Network), Modbus, RS485, IO (Input / Output), MQTT (Message Queuing Telemetry Transport, a lightweight message transmission based on publish / subscribe mode) protocol, HTTP (HyperText Transfer Protocol) and Redis protocol.

[0042] TCP is the Transmission Control Protocol, which is a connection-oriented, reliable, byte-stream-based transport layer communication protocol. CAN is a serial communication protocol, mainly used in fields such as industrial automation and vehicle networks. Modbus is an open serial communication protocol with a master-slave architecture. Modbus supports a variety of electrical interfaces, such as RS-232, RS-485, etc., and can also be transmitted on various media. There are three types of Modbus protocols: Modbus ASCII, Modbus RTU, and Modbus TCP / IP. RS-485 is a serial communication standard for differential signal transmission, which is widely used in industrial automation, remote monitoring and other fields. IO is a general-purpose computer interface. In the communication protocol, IO usually refers to the interface for transmitting data between devices or between devices and computers. The IO interface can be a physical interface (such as USB, serial port, etc.) or a software interface (such as network sockets, etc.). MQTT is a lightweight message transmission protocol based on the publish / subscribe model. It is designed for small devices, low bandwidth, unreliable or high-latency networks. The MQTT protocol achieves low-overhead and high-efficiency communication between devices through a simple message format and flexible communication mode. HTTP is an application layer protocol used to transmit data on the Web. The Redis protocol is the communication protocol used by the Redis database for data exchange between the client and the server.

[0043] It should be noted that if the CAN bus protocol is used, a CAN transceiver is required to connect the device virtual simulation module to the CAN bus.

[0044] In one embodiment, the communication parameters include: communication rate and data frame format; the communication rate, i.e., the rate of data transmission, is usually measured in bits per second (bps). The communication rate determines the speed and efficiency of data transmission. The data frame is the basic transmission unit in network communication, and the data frame format specifies the organizational structure of data during transmission. The correct data frame format can ensure the correct transmission and parsing of data.

[0045] The device parameters include: simulated virtual device type and virtual device function realization parameters. The simulated virtual device type refers to the peripheral device type of the battery swap station simulated by software. For example, PLC devices, chargers, auxiliary equipment, etc. The peripheral device function realization parameters are parameters used to describe and realize the specific functions of virtual peripheral devices. The selection and configuration of these parameters directly affect the performance and function realization of the virtual device.

[0046] In one embodiment, the functional modules include:

[0047] The monitoring module is used to monitor the relevant key parameters and fault status of the corresponding peripheral equipment in real time; analyze the relevant key parameters to determine whether they are within the normal range. If not, fault information is generated and sent to the station control system through the communication interface to alarm.

[0048] The business logic module is used to perform corresponding business processing based on the business logic of the corresponding peripheral device and generate corresponding business data;

[0049] The report generation module is used to generate corresponding test reports based on the generated business data.

[0050] In one embodiment, the business function module further includes:

[0051] The display interface module is used to display the status data, monitoring data and test reports of the device virtual simulation module on the interface; specifically, the display interface module can obtain and display the internal status data of the device virtual simulation module in real time, such as the operating status of the device, parameter settings, simulation results, etc. These data are crucial for users to understand the current status and performance of the device. In addition to the status data of the device virtual simulation module, the display interface module can also display monitoring data. The display interface module can also load and display test reports generated by the report generation module. These reports may contain key information such as device test results, performance evaluation, fault analysis, etc. Users can easily obtain the contents of the test report through the report viewing function on the interface, so as to have a comprehensive understanding of software verification.

[0052] The log module is used to record the running status of the device virtual simulation module and related business information. The log module can capture and save various status information of the device virtual simulation module in real time during operation, including but not limited to the start, stop, abnormal interruption, parameter change, etc. of the module. In addition to the running status of the device virtual simulation module, the log module is also responsible for recording other important business-related information, such as user operation records, system configuration changes, business processing procedures, etc.

[0053] In one embodiment, the platform comprises at least:

[0054] PLC virtual simulation module that simulates the PLC equipment of the battery swap station; the PLC virtual simulation module can simulate the actual operating environment of the PLC equipment in the battery swap station. Through this module, the PLC program can be written, tested and debugged in a virtual environment without actually connecting to the physical PLC equipment. The functions of the simulated PLC equipment include: status monitoring, fault alarm, business logic processing, etc.

[0055] The charger simulation module simulates the charger of the battery swap station; the charger simulation module can simulate the actual charging process of the charger in the battery swap station. Through this module, various tests can be performed on the charger in a virtual environment to verify its performance and reliability, while reducing the risks and costs in actual testing.

[0056] In one embodiment, the communication between the PLC device and the station control system of the battery swap station usually adopts the CAN protocol, Modbus protocol and TCP protocol. Therefore, the PLC virtual simulation module can have a virtual device module corresponding to the CAN protocol communication, the Modbus protocol communication and the TCP protocol communication. That is, it has a communication interface for the CAN protocol communication, the Modbus protocol communication and the TCP protocol communication, and the functions of the simulated PLC device may include status monitoring, fault alarm, business logic processing, etc.

[0057] The communication between the charger and the station control system of the battery swap station usually adopts the CAN protocol, Modbus protocol and TCP protocol. Therefore, the charger simulation module can have a virtual device module corresponding to the CAN protocol communication, the Modbus protocol communication and the TCP protocol communication. That is, it has a communication interface for the CAN protocol communication, the Modbus protocol communication and the TCP protocol communication. The functions of the simulated charger may include: data reporting, fault alarm, charge and discharge control, command reception, etc.

[0058] In one embodiment, if Figure 2 The platform further includes one or more of the following device virtual simulation modules for simulating auxiliary devices:

[0059] A battery BMS simulation module that simulates the battery BMS of a battery swap station; preferably, the battery BMS communicates with the station control system of the battery swap station usually using the CAN communication protocol, that is, the BMS simulation module has a communication interface for CAN protocol communication, and the simulated battery BMS functions may include: status monitoring of various parameters of the battery pack, reporting the status information and data of the battery BMS to the station control system for overall scheduling and management by the station control system.

[0060] An RFID test interface simulation module that simulates the RFID test interface of the battery swap station; preferably, the RFID test interface communicates with the station control system of the battery swap station usually using the testassist communication protocol, that is, the RFID test interface simulation module has a testassist interface, and the simulated RFID test interface functions may include: vehicle information detection function of the battery swap station, specifically vehicle identification, vehicle status monitoring, etc.

[0061] A license plate device setting interface simulation module that simulates the license plate device setting interface of a battery swap station; preferably, the license plate device setting interface communicates with the station control system of the battery swap station usually using CAN communication protocol, testassist communication protocol, and .SO replacement method; the .SO replacement method is a replacement for the standard .so file loading and communication method, that is, the license plate device setting interface simulation module has a communication interface of CAN communication protocol, testassist communication protocol, and .SO replacement method, and the functions of the simulated license plate device setting interface include: identifying the license plate number of the vehicle at the battery swap station through a camera, etc.

[0062] An LED display screen simulation module that simulates the LED display screen of a battery swap station; preferably, the LED display screen communicates with the station control system of the battery swap station usually using the .SO substitution method, that is, the LED display screen simulation module has a .SO substitution method communication interface, and the functions of the simulated LED display screen include: vehicle status display in the battery swap station, for example, displaying whether the vehicle in the battery swap station has left.

[0063] A video inference machine simulation module that simulates the video inference machine of a battery swap station; preferably, the video inference machine communicates with the station control system of the battery swap station usually using HTTP communication protocol and TPC communication protocol, that is, the video inference machine simulation module has communication interfaces of HTTP communication protocol and TPC communication protocol, and the functions of the simulated video inference machine include: monitoring abnormalities of the battery swap station, whether someone has triggered an alarm, etc.

[0064] A cloud platform interface simulation module that simulates the cloud platform interface of the battery swap station; preferably, the cloud platform interface communicates with the station control system of the battery swap station usually using the MQTT communication protocol, that is, the cloud platform interface simulation module has a communication interface of the MQTT communication protocol, and the simulated cloud platform interface functions include: synchronizing the real-time data of the station control system to the cloud server, realizing real-time update and backup of data, etc.

[0065] A battery swap controller simulation module that simulates the battery swap controller of a battery swap station; preferably, the battery swap controller communicates with the station control system of the battery swap station usually using the HTTP communication protocol and the TPC communication protocol, that is, the battery swap controller simulation module has communication interfaces for the HTTP communication protocol and the TPC communication protocol, and the simulated battery swap controller functions include: receiving instructions from the station control system, locking or unlocking the battery swap lock on the vehicle, etc.

[0066] A laser radar simulation module that simulates the laser radar of a battery swap station; preferably, the laser radar and the station control system of the battery swap station usually communicate using the Redis protocol, Modbus protocol, and TCP protocol. That is, the laser radar simulation module has a communication interface for Redis protocol, Modbus protocol communication, and TCP protocol communication, and the functions of the simulated laser radar include positioning monitoring of whether the vehicle is parked in place, etc.

[0067] Traffic light IO device simulation module that simulates the traffic light IO device of the battery swap station; preferably, the traffic light IO device usually communicates with the station control system of the battery swap station using the Redis protocol and the Modbus protocol. That is, the traffic light IO device simulation module has a communication interface for Redis protocol and Modbus protocol communication, and the simulated traffic light IO device functions include: traffic light control of the battery swap station and other functions.

[0068] A 485 fire equipment simulation module that simulates the 485 fire equipment of the battery swap station; preferably, the 485 fire equipment communicates with the station control system of the battery swap station usually using the Redis protocol and the TCP protocol. That is, the 485 fire equipment simulation module has a communication interface for Redis protocol and TCP protocol communication, and the simulated 485 fire equipment functions include fire alarm, temperature and humidity monitoring, etc.

[0069] In one embodiment, if Figure 1 The platform also includes: an intelligent detection module for automatically monitoring each message field of the charging and swapping order from the station control system to identify and locate existing quality problems; the present invention embeds an intelligent detection module, which can automatically monitor each message field of the charging and swapping order and quickly identify and locate possible quality problems. This function ensures rapid feedback during the software verification process, which helps to improve the overall quality of the system.

[0070] In order to better describe the virtual simulation platform for battery swap station equipment, a specific embodiment will now be described.

[0071] Embodiment: PLC virtual simulation module of the virtual simulation platform of the battery swap station equipment; the PLC virtual simulation module simulates the PLC (programmable logic controller) equipment of the battery swap station and is connected to the station control system using the CAN bus communication method.

[0072] The PLC virtual simulation module includes:

[0073] The communication interface is designed based on the communication parameters set by the CAN bus (ISO11898 standard); the communication parameters include: communication rate: 250Kbps; data frame format: standard CAN extended frame, including identifier, data field, data length, CRC, etc.;

[0074] Functional modules designed based on set equipment parameters; the equipment parameters include: simulated peripheral equipment type: PLC equipment; peripheral equipment function realization parameters: status monitoring, fault alarm, business logic processing and other parameters.

[0075] A CAN transceiver is required to connect the communication interface to the CAN bus.

[0076] The functional modules include:

[0077] The status monitoring module monitors the key parameters of the battery swap station charger and the battery swap process in real time, including but not limited to the battery swap status (such as battery swap in progress, battery swap completed, battery swap failed, etc.), battery swap step code (indicating the current step of the battery swap), battery parameters (such as voltage, current, temperature, etc.), and equipment status (such as heater status, cooling system status, etc.).

[0078] The fault monitoring module determines whether various indicators are within the normal range. Once an abnormality is detected, the fault information is immediately sent to the relevant station control system via the CAN bus so that timely measures can be taken.

[0079] The business logic module processes the received messages in combination with the actual business logic, including parsing the message content, determining the message type, and performing corresponding operations.

[0080] The log module records key events and status changes during the battery swap process, including the start of battery swap, changes in battery swap steps, fault alarms, battery swap completion, and related business information.

[0081] The display interface module provides a user interaction interface for displaying the status data, test result report and fault alarm information of the equipment virtual simulation module.

[0082] The report generation module generates the corresponding test report based on the generated message processing result data, including an overview of the battery replacement process, test result analysis, fault records, etc.

[0083] The specific steps include:

[0084] When the battery swap operation starts, the log module prints the battery swap status and related business information; the status monitoring module continuously collects data during the battery swap process and updates it in real time on the interface module. The fault detection module analyzes the collected data in real time. Once an abnormal indicator is detected, it immediately triggers a fault alarm and sends the fault information through the CAN bus. The business logic module performs corresponding operations or adjusts the battery swap strategy based on the received message and the current battery swap status. When the battery swap process is completed, the report module generates a battery swap test report based on the data and processing results of the battery swap process.

[0085] The PLC virtual simulation module can effectively monitor the status of battery swapping services and ensure the normal operation of business processes.

[0086] The virtual simulation platform for the power swap station equipment provided in the embodiment of the present invention can be implemented on the terminal side or the server side. As for the hardware structure of the electronic terminal, please refer to Figure 3 , is an optional hardware structure diagram of an electronic terminal 1000 provided in an embodiment of the present invention. The terminal 1000 may be a mobile phone, a computer device, a tablet device, a personal digital processing device, a factory background processing device, etc. The terminal 1000 includes: at least one processor 1001, a memory 1002, at least one network interface 10010 and a user interface 1009. The various components in the device are coupled together through a bus system 1005. It can be understood that the bus system 1005 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1005 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 3 In the specification, various buses are labeled as bus systems.

[0087] The user interface 1009 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.

[0088] It is understood that the memory 1002 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of exemplary but not limiting explanation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.

[0089] The memory 1002 in the embodiment of the present invention is used to store various categories of data to support the operation of the terminal 1000. Examples of these data include: any executable program for operating on the terminal 1000, such as an operating system 10021 and an application 10022; the operating system 10021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 10022 may include various applications, such as a media player (MediaPlayer), a browser (Browser), etc., for implementing various application services. The virtual simulation platform for the battery swap station equipment provided by the embodiment of the present invention may be included in the application 10022.

[0090] The method disclosed in the above embodiment of the present invention can be applied to the processor 1001, or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 1001 or the instruction in the form of software. The above processor 1001 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 1001 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 1001 can be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0091] In an exemplary embodiment, the terminal 1000 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.

[0092] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[0093] In the embodiments provided in the present application, the computer readable and writable storage medium may include a read-only memory, a random access memory, an EEPROM, a CD-ROM or other optical disk storage device, a disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store a desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. However, it should be understood that computer readable and writable storage media and data storage media do not include connections, carriers, signals, or other temporary media, but are intended to be non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.

[0094] Compared with the prior art, the present invention has the following advantages:

[0095] 1. Improved computing efficiency: This invention greatly improves the computing efficiency of software verification and testing through virtualization technology and unified code architecture. The test cycle is shortened from several days or even weeks in traditional methods to several hours, which can achieve rapid iteration and support frequent software version updates and launches.

[0096] 2. Resource conservation and energy reduction: Since no actual equipment is required for verification, the present invention greatly reduces the reliance on and use of hardware resources, thereby reducing hardware maintenance costs and energy consumption. The simulated test environment can be run on a virtual server, reducing the energy consumption and maintenance requirements of physical equipment.

[0097] 3. Improved productivity: The present invention can locate software problems in a timely manner, reducing service interruptions and losses caused by software defects. A higher test pass rate means a higher software productivity, and ultimately improves the overall efficiency of the battery swap station operation.

[0098] 4. Improved accuracy: Virtualization technology provides a controllable environment to ensure the consistency and accuracy of repeated tests. Combined with intelligent detection functions, the compliance of each parameter can be analyzed more carefully, thereby improving the accuracy and stability of software performance.

[0099] 5. Simplified process: In the traditional test process, manual coordination and equipment configuration are involved in multiple links. The present invention simplifies the business test process of different types of battery swap stations through the configuration file mechanism, allowing operators to quickly change the configuration, reducing the number of manual interventions and optimizing the test process.

[0100] 6. Convenient control: The present invention provides a set of standardized interfaces and protocols to simplify the interaction and control between devices. Operators can easily manage and operate virtual devices through a unified control platform, which reduces the difficulty of operation and improves the convenience of control.

[0101] 7. Demonstration of useful performance: The battery swap station demonstrates higher reliability, adaptability and intelligence in terms of functional verification. By reducing manpower requirements and operational complexity, the overall performance of the system is greatly improved, which enables a quick response to market changes and customer needs.

[0102] In summary, the equipment virtual simulation platform of the battery swap station of the present invention sets equipment virtual simulation modules for various peripheral devices in the battery swap station respectively. When there is a demand for software verification of the battery swap station, the platform uses one or more required equipment virtual simulation modules to use the built-in business logic to perform corresponding business processing, and each equipment virtual simulation module sends the generated test data to the station control system. The present invention effectively gets rid of the dependence on physical devices by virtualizing peripheral devices, greatly improving the efficiency and flexibility of software function verification. In addition, the use of a unified code architecture to fully simulate various business scenarios of the battery swap station not only significantly reduces the cost and time consumption of verification, but also accelerates the iteration and release process of the software. And by precisely controlling the virtual environment, the consistency and repeatability of the test conditions are ensured, thereby ensuring the accuracy and high reliability of the verification results. In particular, a highly scalable solution is provided, so that a single code architecture can be widely compatible with a variety of battery swap stations and their equipment, thereby greatly enhancing the flexibility and adaptability of the system. Therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.

[0103] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A virtual simulation platform for battery swap station equipment, characterized in that: The communication platform is connected to the station control system, and the platform includes: Multiple equipment virtual simulation modules; each equipment virtual simulation module simulates a peripheral device in the battery swap station; each equipment virtual simulation module has built-in business logic with corresponding peripheral device business functions, which is used to monitor and control the corresponding battery swap station business in a virtual environment; and the built-in business logic of each equipment virtual simulation module adopts a unified code architecture design; When there is a need for software verification of a battery swap station, one or more required device virtual simulation modules are used to perform corresponding business processing using built-in business logic, and each device virtual simulation module sends the generated test data to the station control system.

2. According to the virtual simulation platform for battery swap station equipment in claim 1, it is characterized in that: Each device virtual simulation module includes: virtual device modules designed for various communication protocols supported by the simulated peripheral device; Each virtual device module includes: The communication interface is designed based on the communication parameters set by the corresponding communication protocol and is used to communicate with the station control system using the corresponding communication protocol; Functional modules are designed based on the set device parameters and are used to implement all functions of the corresponding simulated peripheral devices.

3. According to the virtual simulation platform for battery swap station equipment in claim 2, it is characterized in that: The communication interface of each device's virtual simulation module is designed in a standardized manner.

4. According to the virtual simulation platform for battery swap station equipment in claim 2, it is characterized in that: The types of communication protocols include: TCP, CAN, Modbus, RS485, IO, MQTT, HTTP and Redis protocols.

5. According to the virtual simulation platform for battery swap station equipment in claim 2, it is characterized in that: The communication parameters include: communication rate and data frame format; the device parameters include: simulated peripheral device type and peripheral device function implementation parameters.

6. The virtual simulation platform for battery swap station equipment according to claim 2, characterized in that: The functional modules include: Monitoring module, used to monitor relevant key parameters and fault status in real time; The business logic module is used to perform corresponding business processing based on the internal business logic and generate corresponding business data; The report generation module is used to generate corresponding test reports based on the generated business data.

7. The virtual simulation platform for battery swap station equipment according to claim 6, characterized in that: The functional module also includes: a display interface module, which is used to display the status data and test report of the device virtual simulation module on the interface; The log module is used to print the battery replacement status and related business information.

8. The virtual simulation platform for battery swap station equipment according to claim 1, characterized in that: Each device virtual simulation module of the platform at least includes: a PLC virtual simulation module that simulates a PLC device and a charger simulation module that simulates a charger.

9. The virtual simulation platform for battery swap station equipment according to claim 8, characterized in that: The virtual simulation modules of each device of the platform also include: a battery BMS simulation module that simulates a battery BMS, an RFID test interface simulation module that simulates an RFID test interface, a license plate device setting interface simulation module that simulates a license plate device setting interface, an LED display screen simulation module that simulates an LED display screen, a video inference machine simulation module that simulates a video inference machine, a cloud platform interface simulation module that simulates a cloud platform interface, a battery swap controller simulation module that simulates a battery swap controller, a lidar simulation module that simulates a lidar, a traffic light IO device simulation module that simulates a traffic light IO device, and a 485 fire equipment simulation module that simulates 485 fire equipment.

10. The virtual simulation platform for battery swap station equipment according to claim 1, characterized in that: The platform also includes: an intelligent detection module for automatically monitoring various message fields of charging and swapping orders from the station control system to identify and locate existing quality problems.

Citation Information

Cited By

  • Battery replacement compatibility test method and system

    CN121142223A