Data simulation method and system for EMS
By adopting data simulation methods in EMS, using PC terminals to output adjustable data and transmit it through serial port servers and Ethernet switches, the problem of high efficiency and low efficiency of traditional EMS function testing is solved, and flexible, efficient and comprehensive testing is achieved.
Patent Information
- Application Number
- CN202411899420.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-11
AI Technical Summary
Traditional energy management system (EMS) functional testing relies on actual equipment and environment, resulting in high cost and inefficiency.
Using a data simulation method for EMS, adjustable data is output through the PC terminal, including peripheral data and subsystem data, which includes BMS and PCS. The PC terminal is connected to the serial port server and the Ethernet switch. The serial port server and the Ethernet switch receive and transmit the corresponding data, and the EMS receives these data and conducts tests.
Adjusting output data through the PC side improves the flexibility and efficiency of testing, while ensuring the comprehensiveness and accuracy of testing, reducing dependence on actual equipment, and reducing costs.
Smart Images

Figure CN119806932A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data simulation technology for energy management systems, and in particular to a data simulation method and system for EMS. Background Art
[0002] With the widespread application of energy management systems, functional testing of EMS becomes increasingly important.
[0003] But traditional methods often rely on actual equipment and environments, which is not only costly but also inefficient. Summary of the invention
[0004] To solve the above problems, the present application discloses a data simulation method for EMS, comprising:
[0005] The PC end outputs adjustable data, the adjustable data includes peripheral data and subsystem data; the subsystem data includes BMS and PCS; the PC end is connected to the serial port server based on the first path, and the PC end is connected to the Ethernet switch based on the second path and the third path;
[0006] The serial port server receives peripheral data based on the first path; the Ethernet switch receives BMS data based on the second path; and the Ethernet switch receives PCS data based on the third path;
[0007] The EMS is connected to the serial port server and the Ethernet switch to receive the adjustable data, and the EMS receives the adjustable data and performs a test.
[0008] The BMS data includes BMU single cell voltage, and the PC sets the number of clusters, the number of BMUs in the cluster, and the number of BMU voltages for simulation; the BMU single cell voltage is less than the highest single cell voltage and greater than the lowest single cell voltage.
[0009] Wherein, the BMU single-cell voltage simulation includes fixed value, random, increasing and decreasing simulation;
[0010] The fixed value simulation is to set the BMU single voltage to a fixed value on the PC side;
[0011] The random simulation is that the PC randomly sets the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage;
[0012] The incremental simulation is that the PC side sets the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage, and the BMU cell voltage increases in sequence from small to large;
[0013] The decreasing simulation is that the PC end sets the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage, and the BMU cell voltage decreases in sequence from large to small.
[0014] The peripheral data includes the electric meter parameters, and the PC sets the voltage U, current I, power factor PF and frequency f of the three-phase electricity; the apparent power S, active power P and reactive power Q are obtained based on the following formula;
[0015] S = U × I; P = U × I × PF;
[0016] Among them, the peripheral data includes air conditioning data, and the air conditioning data includes operating status, and the operating status includes stop status, cooling status, heating status, dehumidification status and air supply status; the operating status is controlled based on the PC end, the stop status corresponds to 0×00, the cooling status corresponds to 0×01, the heating status corresponds to 0×02, the dehumidification status corresponds to 0×03, and the air supply status corresponds to 0×04; the priority of the air conditioning operating status is cooling>heating>dehumidification>air supply>stop.
[0017] Among them, the air conditioning data also includes sensor data, which is data collected by temperature, humidity, voltage, current, speed, frequency and pressure sensors. Based on the comparison result between the sensor data and preset data, it is determined whether the air conditioner enters the stop state.
[0018] The PCS data includes a fault parameter, which is 0 or 1. The fault parameter is set based on the PC end. If the fault parameter is 0, the PCS is in a normal state; if the fault parameter is 1, the PCS is in a fault state.
[0019] The present application also provides a data simulation system for EMS, comprising:
[0020] A PC end, wherein the PC end is used to execute the data simulation method for EMS as described in any one of the above items;
[0021] A serial port server, the serial port server is connected to the PC end to receive peripheral data;
[0022] An Ethernet switch connected to the PC to receive subsystem data;
[0023] The EMS is connected to the serial port server and the Ethernet switch to receive peripheral device data and subsystem data, and the EMS performs a test based on the received data.
[0024] The system further comprises a display module, and the display module is used to display the adjustable data set on the PC side.
[0025] The system also includes a security module for protecting simulation data and user configuration; the security module supports user authority management, and users of different levels can perform operations of different levels.
[0026] Beneficial effects of the present application: Different from the prior art, the present application provides a data simulation method and system for EMS; wherein the data simulation method for EMS comprises the following steps: the PC end outputs adjustable data, the adjustable data includes peripheral data and subsystem data; the subsystem data includes BMS and PCS; the PC end is connected to the serial port server based on the first path, and the PC end is connected to the Ethernet switch based on the second path and the third path; the serial port server receives peripheral data based on the first path; the Ethernet switch receives BMS data based on the second path, and the Ethernet switch receives PCS data based on the third path; the EMS is connected to the serial port server and the Ethernet switch to receive the adjustable data, and the EMS receives the adjustable data and performs a test; the output data is adjusted by the PC end, thereby improving the flexibility and efficiency of the test, while ensuring the comprehensiveness and accuracy of the test. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] in:
[0029] Figure 1 A schematic diagram of a flow chart of an embodiment of a data simulation method for EMS provided in the present application;
[0030] Figure 2 A schematic diagram of the structure of an embodiment of a data simulation system for EMS provided in the present application. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.
[0032] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0034] like Figure 1 As shown, Figure 1 The flowchart of an embodiment of a data simulation method for EMS provided in the present application includes the following steps:
[0035] Step S11: the PC end outputs adjustable data, the adjustable data includes peripheral data and subsystem data; the subsystem data includes BMS and PCS; the PC end is connected to the serial port server based on the first path, and the PC end is connected to the Ethernet switch based on the second path and the third path.
[0036] The PC side serves as the user interface and control center, allowing users to set and adjust various types of simulation data. These data are divided into two categories: peripheral data (such as meter parameters, air conditioner operating status, etc.) and subsystem data (BMS battery management system and PCS power conversion system);
[0037] The PC side is connected through a serial port server, which is mainly used to transmit peripheral data. This connection method is suitable for scenarios where direct communication with physical devices is required; the PC side is connected through an Ethernet switch, which is used to transmit BMS data and PCS data respectively. Ethernet connection provides higher bandwidth and a more stable network environment, which is suitable for high-speed transmission of large amounts of data.
[0038] Various simulation parameters can be easily adjusted through the PC, allowing users to quickly configure the test environment according to different test requirements without actually changing the hardware settings or field conditions; users can accurately control the value of each variable, including but not limited to BMU cell voltage, air conditioner operating status, meter parameters, etc., to ensure the accuracy and reliability of test results.
[0039] Step S12: The serial port server receives peripheral data based on the first path; sets the connection between the PC and the serial port server to ensure that the path can stably transmit peripheral data; selects a suitable serial communication protocol (such as RS-232, RS-485) and configures the corresponding baud rate, data bit, stop bit and other parameters.
[0040] The Ethernet switch receives BMS data based on the second channel and establishes a connection between the PC and the Ethernet switch, which is specifically used to transmit BMS data. This step includes configuring network parameters such as IP address, subnet mask, default gateway, and ensuring that the Ethernet switch correctly identifies and processes BMS data packets from the PC; the Ethernet switch receives PCS data based on the third channel to ensure its separate transmission from BMS data.
[0041] Ethernet switches provide high-speed data transmission capabilities, and are particularly suitable for real-time transmission of large amounts of BMS and PCS data. In contrast, serial port servers are more suitable for processing relatively simple peripheral data, thereby optimizing overall communication efficiency; by allocating different types of data to different communication channels, it can avoid parsing difficulties and potential errors caused by data mixing, and improve the accuracy and reliability of data transmission.
[0042] Step S13: EMS connects to the serial port server and Ethernet switch to receive adjustable data. EMS receives the adjustable data and performs tests. EMS integrates all received data to form a complete system view. According to the test requirements, EMS can perform real-time monitoring, historical records, trend analysis and other operations on the data. In addition, EMS can also perform the following tasks:
[0043] Data analysis: Checking data to see if it matches expectations and identifying anomalies or potential problems.
[0044] Performance evaluation: Evaluate key indicators such as system response time, data accuracy, and stability.
[0045] Fault diagnosis: Based on the fault parameters in the PCS data, determine whether the system has a fault and locate the fault source.
[0046] Simulation operation: Based on the received data, simulate the system behavior under different working conditions to verify the functions and performance of the EMS.
[0047] It supports multiple types of data input (peripheral data, BMS data, PCS data), and can flexibly adjust test parameters to make the test more comprehensive and detailed. Users can customize test plans according to different test requirements to cover various possible situations.
[0048] In summary, the data simulation method for EMS of the present embodiment includes the following steps: the PC end outputs adjustable data, the adjustable data includes peripheral data and subsystem data; the subsystem data includes BMS and PCS; the PC end is connected to the serial port server based on the first path, and the PC end is connected to the Ethernet switch based on the second path and the third path; the serial port server receives the peripheral data based on the first path; the Ethernet switch receives the BMS data based on the second path, and the Ethernet switch receives the PCS data based on the third path; the EMS is connected to the serial port server and the Ethernet switch to receive the adjustable data, and the EMS receives the adjustable data and performs a test; by adjusting the output data by the PC end, the flexibility and efficiency of the test are improved, while the comprehensiveness and accuracy of the test are ensured.
[0049] In one embodiment, the BMS data includes the BMU cell voltage, and the PC sets the number of clusters, the number of BMUs in the cluster, and the number of BMU voltages for simulation; the number of clusters is the number of battery clusters that the user sets through the PC to be simulated; each cluster can contain multiple BMUs; the number of BMUs in the cluster is the number of BMUs specified by the user in each cluster; the number of BMU voltages is the number of single cells in each BMU set by the user, that is, how many single cell voltages in each BMU need to be simulated. The BMU cell voltage is less than the highest cell voltage and greater than the lowest cell voltage; the user sets the highest value (highest cell voltage) and the lowest value (lowest cell voltage) of the BMU cell voltage on the PC; ensure that all simulated BMU cell voltages fall within this range to meet the safety standards and working conditions of actual battery operation.
[0050] Automatically generate and transmit BMU cell voltage data, reducing manual intervention and improving test efficiency. Users can complete a large number of tests under different conditions in a short time, speeding up the development and verification process.
[0051] In one embodiment, the BMU cell voltage simulation includes fixed value, random, increasing and decreasing simulations;
[0052] Fixed value simulation sets the BMU cell voltage to a fixed value on the PC side; all BMU cell voltages remain consistent, making it easier to analyze the system's behavior in a stable state and helping to identify potential problems.
[0053] Random simulation is to randomly set the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage on the PC side. Random simulation is closer to the voltage changes in actual use and can better reflect the performance of the BMS in a dynamic environment.
[0054] Incremental simulation is to set the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage on the PC side, and the BMU cell voltage increases from small to large. Incremental simulation is suitable for simulating the battery charging process and observing the performance and stability of the system when the voltage gradually increases during the charging process.
[0055] The decreasing simulation is to set the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage on the PC side, and the BMU cell voltage decreases from large to small. The decreasing simulation can simulate the battery discharge process and observe the performance and stability of the system when the voltage gradually decreases, especially the behavior under low voltage conditions.
[0056] In one embodiment, the peripheral data includes meter parameters, and the PC sets the voltage U, current I, power factor PF and frequency f of the three-phase electricity; the apparent power S, active power P and reactive power Q are obtained based on the following formula;
[0057] S = U × I; P = U × I × PF;
[0058] The user sets the line voltage or phase voltage of three-phase electricity through the PC. For a three-phase system, it is usually necessary to input three phase voltages U1, U2 and U3; the user sets the line current or phase current of three-phase electricity. Similarly, it is necessary to input three phase currents I1, I2 and I3; by calculating the apparent power S, active power P and reactive power Q, the overall performance of the power system can be fully evaluated, including energy utilization efficiency, load balance, power factor correction and other aspects.
[0059] In one embodiment, the peripheral data includes air conditioning data, the air conditioning data includes operating status, the operating status includes stop status, cooling status, heating status, dehumidification status and air supply status; based on the PC side controlling the operating status, the stop status corresponds to 0×00, the cooling status corresponds to 0×01, the heating status corresponds to 0×02, the dehumidification status corresponds to 0×03, and the air supply status corresponds to 0×04; the priority of the air conditioning operating status is cooling>heating>dehumidification>air supply>stop.
[0060] Through clear codes and priority rules, each operating state can be accurately controlled and executed, avoiding operational confusion caused by state conflicts; priority rules ensure that when multiple states are requested at the same time, the system can prioritize the most urgent or important tasks, avoiding potential safety risks. For example, in a high temperature environment, the cooling state will take precedence over other states to ensure that the indoor temperature is effectively controlled.
[0061] In summary, the method of controlling the operating status of the air conditioner through the PC and managing it according to predefined priorities not only improves the accuracy and flexibility of the test, but also enhances the safety and economy of the system. It is an important means to conduct efficient and reliable air conditioning system function testing.
[0062] In one embodiment, the air conditioning data also includes sensor data, which is data collected by temperature, humidity, voltage, current, speed, frequency and pressure sensors. Whether the air conditioning enters the stop state is determined based on the comparison result between the sensor data and the preset data; the PC or EMS processes the received sensor data in real time and compares it with the preset threshold range. The specific logic is as follows:
[0063] Temperature and humidity: If the indoor temperature is between the cooling point and the heating point, and the relative humidity is lower than the dehumidification point, the air conditioner will enter the air supply state; if both the temperature and humidity reach the comfortable range, the system can consider entering the stop state.
[0064] Voltage and current: Check whether the supply voltage and operating current are within the safe range. If they are out of range, the system should issue an alarm or take protective measures instead of entering a stop state.
[0065] Speed and frequency: Make sure the fan speed and power frequency are within the normal range. If abnormalities occur, the system should perform fault diagnosis instead of simply stopping.
[0066] Pressure: Check whether the refrigerant pressure is within the normal operating range. If the pressure is too high or too low, the system should take corresponding measures, such as adjusting the working state of the compressor instead of stopping it immediately.
[0067] By comparing sensor data with preset thresholds, the system can automatically determine whether the air conditioner should enter a stopped state, thus achieving intelligent control. This not only improves the automation level of the system, but also reduces the need for manual intervention; by real-time monitoring and comparing sensor data, the system can take timely protective measures when abnormal conditions are detected, such as sounding an alarm or adjusting the working state, to avoid safety risks caused by failures.
[0068] In one embodiment, the PCS data includes a fault parameter, the fault parameter is 0 or 1, and the fault parameter is set based on the PC end. If the fault parameter is 0, the PCS is in a normal state; if the fault parameter is 1, the PCS is in a fault state; the fault parameter is a binary value, indicating the state of the PCS:
[0069] 0: indicates that the PCS is in normal state;
[0070] 1: Indicates that the PCS is in a fault state.
[0071] When the user sets the fault parameter to 1, the PCS enters the fault state. At this time, the EMS can simulate the system response after the fault occurs, such as alarm, protection measures, automatic shutdown, etc. When the user resets the fault parameter to 0, the PCS returns to the normal state. At this time, the EMS can simulate the system behavior after the fault is recovered, such as restart, self-check, and resumption of normal operation.
[0072] like Figure 2 As shown, Figure 2 The structural diagram of an embodiment of a data simulation system for EMS provided in the present application includes:
[0073] PC end, the PC end is used to execute the data simulation method for EMS in any of the above embodiments;
[0074] Serial port server, which is connected to the PC to receive peripheral data;
[0075] Ethernet switch, which is connected to the PC to receive subsystem data;
[0076] EMS, EMS is connected to the serial port server and the Ethernet switch to receive peripheral data and subsystem data, and EMS performs tests based on the received data;
[0077] Using this system to simulate EMS data avoids dependence on actual equipment and reduces purchase and maintenance costs. At the same time, testing in a simulated environment shortens the development cycle and improves work efficiency.
[0078] In one embodiment, the system further includes a display module (not shown), which is used to display the adjustable data set on the PC side; the display module provides a user interaction function, allowing the user to adjust the parameters, and the adjustment method can be a slider, button, input box, etc., without any limitation; the user can view the changes of all adjustable data in real time through the display module, and timely understand the current status of the system. This helps to quickly discover problems and take corresponding measures, improving the response speed and efficiency of the system
[0079] In one embodiment, the system also includes a security module for protecting simulation data and user configuration; the security module supports user authority management, and users of different levels can perform operations of different levels; through user authority management and data encryption, unauthorized access and data leakage are effectively prevented to ensure the security and stability of the system; multi-level user authority is supported, so that users of different levels can perform operations of different levels, which improves the level of management refinement and reduces the risk of misoperation.
[0080] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0081] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0082] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0083] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data simulation method for EMS, characterized in that: include: The PC end outputs adjustable data, the adjustable data includes peripheral data and subsystem data; the subsystem data includes BMS and PCS; the PC end is connected to the serial port server based on the first path, and the PC end is connected to the Ethernet switch based on the second path and the third path; The serial device server receives peripheral device data based on the first path; The Ethernet switch receives BMS data based on the second path, and the Ethernet switch receives PCS data based on the third path; The EMS is connected to the serial port server and the Ethernet switch to receive the adjustable data, and the EMS receives the adjustable data and performs a test.
2. The data simulation method for EMS according to claim 1, characterized in that: The BMS data includes BMU single cell voltage, and the PC side sets the number of clusters, the number of BMUs in the cluster, and the number of BMU voltages for simulation; the BMU single cell voltage is less than the highest single cell voltage and greater than the lowest single cell voltage.
3. The data simulation method for EMS according to claim 2, characterized in that: The BMU single-cell voltage simulation includes fixed value, random, increasing and decreasing simulations; The fixed value simulation is to set the BMU single voltage to a fixed value on the PC side; The random simulation is that the PC randomly sets the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage; The incremental simulation is that the PC side sets the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage, and the BMU cell voltage increases in sequence from small to large; The decreasing simulation is that the PC end sets the BMU cell voltage to a voltage value between the lowest cell voltage and the highest cell voltage, and the BMU cell voltage decreases in sequence from large to small.
4. The data simulation method for EMS according to claim 1, characterized in that: The peripheral data includes the electric meter parameters, and the PC sets the voltage U, current I, power factor PF and frequency f of the three-phase electricity; the apparent power S, active power P and reactive power Q are obtained based on the following formula; S=U×I;P=U×I×PF; 5. The data simulation method for EMS according to claim 1, characterized in that: The peripheral data includes air conditioning data, the air conditioning data includes operating status, and the operating status includes stop status, cooling status, heating status, dehumidification status and air supply status; Based on the PC side controlling the operating state, the stop state corresponds to 0×00, the cooling state corresponds to 0×01, the heating state corresponds to 0×02, the dehumidification state corresponds to 0×03, and the air supply state corresponds to 0×04; the priority of the air conditioning operating state is cooling>heating>dehumidification>air supply>stop.
6. The data simulation method for EMS according to claim 5, characterized in that: The air conditioning data also includes sensor data, which is data collected by temperature, humidity, voltage, current, rotation speed, frequency and pressure sensors. Based on the comparison result between the sensor data and preset data, it is determined whether the air conditioning enters the stop state.
7. The data simulation method for EMS according to claim 1, characterized in that: The PCS data includes a fault parameter, the fault parameter is 0 or 1, and the fault parameter is set based on the PC end. If the fault parameter is 0, the PCS is in a normal state; If the fault parameter is 1, the PCS is in a fault state.
8. A data simulation system for EMS, characterized in that: include: A PC end, wherein the PC end is used to execute the data simulation method for EMS according to any one of claims 1 to 7; A serial port server, the serial port server is connected to the PC end to receive peripheral data; An Ethernet switch connected to the PC to receive subsystem data; The EMS is connected to the serial port server and the Ethernet switch to receive peripheral device data and subsystem data, and the EMS performs a test based on the received data.
9. The data simulation system for EMS according to claim 8, characterized in that: The system also includes a display module, which is used to display adjustable data set on the PC side.
10. The data simulation system for EMS according to claim 9, characterized in that: The system also includes a security module for protecting simulation data and user configuration; the security module supports user authority management, and users of different levels can perform operations of different levels.
Citation Information
Cited By
Simulation test method and device, energy management unit and storage medium
CN120993211A