Modbus slave station equipment simulation monitoring method for EMS equipment debugging
Through the interaction of the Modbus slave device simulation platform monitor, simulation platform registration center and target Modbus slave device simulation platform, the existing Modbus slave device simulation tool has solved the problem of single functions and cumbersome operations in EMS device debugging, and the automated management and remote operation of Modbus slave device simulation operation are realized, thereby improving debugging efficiency.
Patent Information
- Application Number
- CN202411664376.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-11
AI Technical Summary
During the debugging process of EMS equipment, the existing Modbus slave device simulation tool has problems such as single simulation functions, inconvenient start and shutdown of device simulation operation, only supporting simple parameter reading and writing, and the inability to remote operation.
It provides a Modbus slave device simulation monitoring method, through the interaction of the Modbus slave device simulation platform monitor, the simulation platform registration center and the target Modbus slave device simulation platform, it realizes the automated management of the Modbus slave device simulation operation, and supports remote operation and complex scene simulation.
It realizes one-click start and stop for Modbus slave equipment simulation operation, supports remote operation and complex scenario simulation, and improves the efficiency and automation level of EMS equipment debugging.
Smart Images

Figure CN119603210A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of ESM equipment debugging, and in particular relates to a Modbus slave station equipment simulation monitoring method for EMS equipment debugging. Background Art
[0002] EMS (Energy Management System) equipment is a device used to monitor, control and optimize energy use. It collects and analyzes energy data in real time by integrating various hardware devices and software tools, thereby helping enterprises to effectively manage energy consumption, improve energy efficiency and reduce energy costs. In the process of developing and testing EMS equipment based on embedded Linux system (i.e., a UNIX-like operating system that is free to use and freely disseminated), it is necessary to simulate Modbus slave equipment (i.e., an energy slave equipment based on the serial communication protocol Modbus) to facilitate the debugging of EMS equipment.
[0003] At present, the common practice of simulating Modbus slave devices is to use tools such as Modbus Slave (which is a host computer software that simulates the Modbus protocol slave, mainly used to simulate the process of testing the communication with other host devices). However, the existing simulation tools have the following disadvantages: (1) Each time when multiple slave devices are started / closed, the device simulation program must be manually started one by one, and the serial port and baud rate must be set, and the same is true when they are ended, which makes the operation cumbersome and inefficient; (2) When the slave device needs to simulate certain scenarios, the device parameters can only be modified manually, and cannot be modified remotely; (3) After the slave device parameters are modified by the EMS device, the change time and change record of the modified parameters cannot be queried, which is indispensable when verifying the EMS device's instruction issuance time and device data refresh time; (4) The functions of the existing simulation tools are relatively limited and cannot simulate complex scenarios (such as the power generation of a photovoltaic power station that changes with the light time or the charging and discharging of energy storage cabinets). Summary of the invention
[0004] The purpose of the present invention is to provide a Modbus slave device simulation monitoring method for EMS device debugging, so as to solve the problems of the existing Modbus slave device simulation tool in the EMS device debugging process, such as single simulation function, inconvenient start and close of device simulation operation, only supporting simple parameter reading and writing, and being unable to be remotely operated.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] The present invention provides a Modbus slave device simulation monitoring method for EMS device debugging, comprising:
[0007] After receiving a Modbus slave device operation request from a user, the Modbus slave device simulation platform monitor determines whether the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform exist in the local cache and have not expired. If so, the Modbus slave device operation request is forwarded to the target Modbus slave device simulation platform using the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache. Otherwise, an IP address and port update request is sent to a simulation platform registration center, wherein the Modbus slave device simulation platform monitor is respectively connected to the target Modbus slave device simulation platform and the simulation platform registration center in communication, and the target Modbus slave device The device simulation platform is communicatively connected to the EMS device to be debugged, the Modbus slave device operation request carries a Modbus slave device operation instruction and a unique identifier of the target Modbus slave device simulation platform, the Modbus slave device operation instruction includes a Modbus slave device simulation operation start instruction, a Modbus slave device simulation parameter modification instruction, a Modbus slave device simulation parameter query instruction, a Modbus slave device simulation parameter change record query instruction, a Modbus slave device simulation operation stop instruction and / or a Modbus slave device simulation operation recovery instruction, and the IP address and port update request carries a unique identifier of the target Modbus slave device simulation platform;
[0008] The simulation platform registration center responds to the IP address and port update request initiated by the Modbus slave device simulation platform monitor, and after finding the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache, returns the IP address and port update request response carrying the search result to the Modbus slave device simulation platform monitor;
[0009] The Modbus slave device simulation platform monitor monitors the IP address and port update request response, and after updating the cache and the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform, uses the update result to forward the Modbus slave device operation request to the target Modbus slave device simulation platform;
[0010] The target Modbus slave device simulation platform responds to the Modbus slave device operation request by executing the Modbus slave device operation instruction;
[0011] After executing the Modbus slave device operation instruction, the target Modbus slave device simulation platform feeds back a Modbus slave device operation result corresponding to the Modbus slave device operation instruction to the Modbus slave device simulation platform monitor;
[0012] After receiving the Modbus slave device operation result, the Modbus slave device simulation platform monitor forwards the Modbus slave device operation result to the user or outputs and displays the Modbus slave device operation result to the user.
[0013] Based on the above invention content, a Modbus slave device simulation monitoring scheme suitable for debugging EMS equipment is provided, that is, the Modbus slave device simulation platform monitor, the simulation platform registration center and the target Modbus slave device simulation platform in the Modbus slave device simulation monitoring architecture are interactively executed, wherein the monitor is respectively communicated with the simulation platform and the simulation platform registration center, and the simulation platform is communicated with the EMS device to be debugged, and through their functional limitations and mutual cooperation, the Modbus slave device simulation operation start, simulation parameter modification, simulation parameter query, simulation parameter change record query, simulation operation stop and / or simulation operation recovery operations can be completed, so that the single / batch slave device simulation operation can be started or stopped with one key, avoiding manual operation of the slave devices one by one each time, and also supporting remote operation of the slave devices, including starting, stopping, resuming operation, setting device parameters, querying device parameters, recording device parameter change information and querying device parameter change records, etc., laying the foundation for the automated testing of EMS equipment, facilitating practical application and promotion.
[0014] In one possible design, the method further includes:
[0015] Any Modbus slave device simulation platform sends an IP address and port registration request to the simulation platform registration center immediately after startup, wherein any Modbus slave device simulation platform is respectively communicatively connected to the simulation platform registration center, the EMS device and the Modbus slave device simulation platform monitor, and the IP address and port registration request carries the unique identification, IP address and port of any Modbus slave device simulation platform;
[0016] The simulation platform registration center responds to the IP address and port registration request, and after successful registration, locally caches the unique identifier, IP address and port of any Modbus slave device simulation platform.
[0017] In one possible design, the method further includes:
[0018] The simulation platform registration center is started earlier than all Modbus slave device simulation platforms and later than the Modbus slave device simulation platform monitor, and after startup, it monitors the IP address and port registration request from any Modbus slave device simulation platform and the IP address and port update request from the Modbus slave device simulation platform monitor in real time.
[0019] In a possible design, after initiating the IP address and port update request to the simulation platform registration center, the Modbus slave device simulation platform monitor monitors the IP address and port update request response from the simulation platform registration center in real time, and adds a response timeout judgment mechanism to end the monitoring after the response timeout is found.
[0020] In one possible design, the method further includes:
[0021] Any Modbus slave device simulation platform has been configured with slave device parameters that match the device configuration parameters of the EMS device before startup.
[0022] In one possible design, the target Modbus slave device simulation platform is connected to the EMS device via Modbus gateway communication.
[0023] In a possible design, when the target Modbus slave device simulation platform is a computer device running a Modbus slave device simulation software program, the target Modbus slave device simulation platform is connected to the Modbus gateway via 485-to-serial port communication.
[0024] In one possible design, the method further includes:
[0025] When the simulation platform registration center fails to find the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache, it returns another IP address and port update request response with a search result of null to the Modbus slave device simulation platform monitor;
[0026] After receiving the other IP address and port update response, the Modbus slave device simulation platform monitor forwards to the user or outputs to the user an operation failure message corresponding to the Modbus slave device operation request.
[0027] In a possible design, the Modbus slave device simulation platform monitor is connected to the target Modbus slave device simulation platform by calling the externally open interface of the target Modbus slave device simulation platform for communication.
[0028] In one possible design, the IP address and port update request carries unique identifiers of multiple target Modbus slave device simulation platforms.
[0029] Beneficial effects of the above scheme:
[0030] (1) The present invention creatively provides a Modbus slave device simulation monitoring solution suitable for debugging EMS equipment, that is, the Modbus slave device simulation platform monitor, the simulation platform registration center and the target Modbus slave device simulation platform in the Modbus slave device simulation monitoring architecture are interactively executed, wherein the monitor is respectively connected to the simulation platform and the simulation platform registration center in communication, and the simulation platform is connected to the EMS device to be debugged in communication, and through their functional limitation and mutual cooperation, the Modbus slave device simulation operation startup, simulation parameter modification, simulation parameter query, simulation parameter The system can query the number of change records, stop the simulation operation and / or resume the simulation operation, so that the simulation operation of a single / batch slave device can be started or stopped with one click, avoiding the manual operation of the slave devices one by one each time. It also supports remote operation of slave devices, including starting, stopping, resuming operation, setting device parameters, querying device parameters, recording device parameter change information (including change time) and querying device parameter change records, laying the foundation for the automated testing of EMS equipment (that is, it can be used for performance verification of EMS equipment, including stress testing of the maximum number of supported devices, collection of data refresh time and instruction issuance time, etc.);
[0031] (2) Support batch / individual start and stop of slave device simulation operation;
[0032] (3) Device parameter templates are configurable and reusable, and support multiple types, which is conducive to simulating slave devices from multiple manufacturers;
[0033] (4) Support remote modification of device parameters, query of device parameters, and recording and query of device parameter change information;
[0034] (5) Supports simultaneous operation of multiple simulation devices and construction of complex scenarios, facilitating practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A flow chart of a Modbus slave device simulation monitoring method for EMS device debugging provided in an embodiment of the present application.
[0037] Figure 2 A schematic diagram of the structure of a Modbus slave device simulation monitoring architecture for EMS device debugging provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.
[0039] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.
[0040] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.
[0041] Example
[0042] like Figures 1-2 As shown, the Modbus slave device simulation monitoring method provided in this embodiment and used for EMS device debugging is as follows Figure 2 The Modbus slave device simulation platform monitor, simulation platform registration center and target Modbus slave device simulation platform in the Modbus slave device simulation monitoring architecture shown are interactively executed, including but not limited to the following steps S1 to S6.
[0043] S1. After receiving a Modbus slave device operation request from a user, the Modbus slave device simulation platform monitor determines whether the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform exist in the local cache and have not expired. If so, the Modbus slave device operation request is forwarded to the target Modbus slave device simulation platform using the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache. Otherwise, an IP address and port update request is sent to the simulation platform registration center, wherein the Modbus slave device simulation platform monitor is respectively connected to the target Modbus slave device simulation platform and the simulation platform registration center in communication, and the target Modbus slave device simulation platform The communication connection is with the EMS device to be debugged, the Modbus slave device operation request carries but is not limited to Modbus slave device operation instructions and the unique identification of the target Modbus slave device simulation platform, the Modbus slave device operation instructions include but are not limited to Modbus slave device simulation operation start operation instructions, Modbus slave device simulation parameter modification operation instructions, Modbus slave device simulation parameter query operation instructions, Modbus slave device simulation parameter change record query operation instructions, Modbus slave device simulation operation stop operation instructions and / or Modbus slave device simulation operation recovery operation instructions, and the IP address and port update request carries but is not limited to the unique identification of the target Modbus slave device simulation platform, etc.
[0044] In step S1, the Modbus slave device simulation platform monitor is used to provide an interface to the user so as to complete various operations on the target Modbus slave device simulation platform. Specifically, the Modbus slave device operation request can come from an electronic device held by the user (such as a smart phone or a personal computer, etc.), or it can be generated after the user operates the human-computer interaction interface (such as a touch screen) of the Modbus slave device simulation platform monitor. In addition, the Modbus slave device simulation platform monitor can be specifically a computer device running a Modbus slave device simulation platform monitoring software program.
[0045] In the step S1, the target Modbus slave device simulation platform is a Modbus slave device simulation tool used as a user monitoring target object during the EMS device debugging process, which provides an open interface and supports responding to remote commands to complete Modbus slave device simulation operation startup operation, Modbus slave device simulation parameter modification operation, Modbus slave device simulation parameter query operation, Modbus slave device simulation parameter change record query operation (correspondingly having the function of automatically recording Modbus slave device simulation parameter change information such as change time and / or change content, etc.), Modbus slave device simulation operation stop operation and / or Modbus slave device simulation operation recovery operation, etc. Specifically, the target Modbus slave device simulation platform can be connected to the EMS device (such as a Modbus gateway) through Modbus gateway communication. Figure 2 As shown, there are Modbus gateway 1 and Modbus gateway 2; the number of the aforementioned Modbus gateways is indefinite and can be flexibly expanded); and when the target Modbus slave device simulation platform is specifically another computer device running a Modbus slave device simulation software program, the target Modbus slave device simulation platform can also be connected to the Modbus gateway via 485 to serial port communication. In addition, the Modbus slave device simulation platform monitor can be connected to the target Modbus slave device simulation platform by calling the external open interface communication of the target Modbus slave device simulation platform.
[0046] In the step S1, the simulation platform registration center is used to uniformly register and manage the IP (Internet Protocol) addresses and ports of all Modbus slave device simulation platforms, that is, before step S1, the IP address and port of the target Modbus slave device simulation platform need to be registered on the simulation platform registration center. Specifically, the method also includes but is not limited to the following steps S101 to S102.
[0047] S101. Any Modbus slave device simulation platform sends an IP address and port registration request to the simulation platform registration center immediately after startup, wherein any Modbus slave device simulation platform is communicatively connected to the simulation platform registration center, the EMS device and the Modbus slave device simulation platform monitor respectively, and the IP address and port registration request carries but is not limited to the unique identification, IP address and port of any Modbus slave device simulation platform.
[0048] In the step S101, any Modbus slave device simulation platform includes but is not limited to the target Modbus slave device simulation platform (i.e., any Modbus slave device simulation platform will become the target Modbus slave device simulation platform after becoming the monitoring target object of the user). In order to ensure that any Modbus slave device simulation platform can be used for debugging the EMS device, specifically, any Modbus slave device simulation platform needs to have configured the slave device parameters that match the device configuration parameters of the EMS device before startup (i.e., the device parameters of the EMS device need to be configured first, and the slave device parameters of the Modbus slave device simulation platform are also configured and matched with the EMS device parameters).
[0049] S102. The simulation platform registration center responds to the IP address and port registration request, and after successful registration, locally caches the unique identifier, IP address and port of any Modbus slave device simulation platform.
[0050] In step S102, the specific process of responding to the IP address and port registration request is an existing conventional registration technical means. In addition, if the registration fails, the subsequent steps for any Modbus slave device simulation platform cannot be completed.
[0051] In step S1, Figure 1 As shown, specifically, the simulation platform registration center needs to be started earlier than all Modbus slave device simulation platforms and later than the Modbus slave device simulation platform monitor, and after startup, it monitors the IP address and port registration request from any Modbus slave device simulation platform and the IP address and port update request from the Modbus slave device simulation platform monitor in real time. In addition, in order to achieve the purpose of one-click operation of multiple target Modbus slave device simulation platforms, the IP address and port update request preferably carries the unique identification of multiple target Modbus slave device simulation platforms.
[0052] S2. The simulation platform registration center responds to the IP address and port update request initiated by the Modbus slave device simulation platform monitor, and after finding the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache, returns an IP address and port update request response carrying but not limited to the search results to the Modbus slave device simulation platform monitor.
[0053] In step S2, the specific process of responding to the IP address and port update request is an existing conventional search technology. At the same time, considering that the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform may not exist in the cache of the simulation platform registration center, in order to achieve the purpose of complete monitoring logic, preferably, the method also includes but is not limited to the following steps S201 to S202.
[0054] S201. When the simulation platform registration center fails to find the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache, it returns another IP address and port update request response with empty search results to the Modbus slave device simulation platform monitor.
[0055] S202. After receiving the other IP address and port update response, the Modbus slave device simulation platform monitor forwards to the user or outputs to the user an operation failure message corresponding to the Modbus slave device operation request.
[0056] In the step S202, specifically, if the Modbus slave device operation request comes from the electronic device held by the user, the operation failure message is forwarded to the electronic device held by the user, and if the Modbus slave device operation request is generated after the user operates the human-computer interaction interface of the Modbus slave device simulation platform monitor, the operation failure message is output and displayed on the human-computer interaction interface.
[0057] S3. The Modbus slave device simulation platform monitor monitors the IP address and port update request response, and after updating the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the cache, uses the update result to forward the Modbus slave device operation request to the target Modbus slave device simulation platform.
[0058] In step S3, the specific process of monitoring the IP address and port update request response and performing IP address and port update cache is an existing conventional storage technology. In addition, the Modbus slave device simulation platform monitor needs to monitor the IP address and port update request response from the simulation platform registration center in real time after initiating the IP address and port update request to the simulation platform registration center, and add a response timeout judgment mechanism so as to terminate the monitoring in time after finding the response timeout.
[0059] S4. The target Modbus slave device simulation platform responds to the Modbus slave device operation request by executing the Modbus slave device operation instruction.
[0060] In step S4, for example, when the Modbus slave device operation instruction is a Modbus slave device simulation operation start operation instruction, the target Modbus slave device simulation platform will start the Modbus slave device simulation operation, if successful, the simulation device operation is successful, and the EMS device will display the corresponding Modbus slave device online, and if failed, the simulation device operation fails, and the EMS device will not display the corresponding Modbus slave device online. In addition, when the Modbus slave device operation instruction is other operation instructions such as Modbus slave device simulation parameter modification operation instruction, Modbus slave device simulation parameter query operation instruction, Modbus slave device simulation parameter change record query operation instruction, Modbus slave device simulation operation stop operation instruction and / or Modbus slave device simulation operation recovery operation instruction, there will also be similar Modbus slave device operation results of successful or failed operation.
[0061] S5. After executing the Modbus slave device operation instruction, the target Modbus slave device simulation platform feeds back the Modbus slave device operation result corresponding to the Modbus slave device operation instruction to the Modbus slave device simulation platform monitor.
[0062] S6. After receiving the Modbus slave device operation result, the Modbus slave device simulation platform monitor forwards the Modbus slave device operation result to the user or outputs and displays the Modbus slave device operation result to the user.
[0063] In the step S6, specifically, if the Modbus slave device operation request comes from the electronic device held by the user, the Modbus slave device operation result is forwarded to the electronic device held by the user, and if the Modbus slave device operation request is generated after the user operates the human-computer interaction interface of the Modbus slave device simulation platform monitor, the Modbus slave device operation result is output and displayed on the human-computer interaction interface.
[0064] In summary, the Modbus slave device simulation monitoring method provided by this embodiment has the following technical effects:
[0065] (1) This embodiment provides a Modbus slave device simulation monitoring solution suitable for debugging EMS equipment, that is, the Modbus slave device simulation platform monitor, the simulation platform registration center and the target Modbus slave device simulation platform in the Modbus slave device simulation monitoring architecture are interactively executed, wherein the monitor is respectively connected to the simulation platform and the simulation platform registration center, and the simulation platform is connected to the EMS device to be debugged, and through their functional limitations and mutual cooperation, the Modbus slave device simulation operation startup, simulation parameter modification, simulation parameter query, and simulation parameter Operations such as change record query, simulation operation stop and / or simulation operation recovery can be started or stopped with one click for single / batch slave device simulation operation, avoiding manual operation of slave devices one by one each time. It also supports remote operation of slave devices, including start, stop, resume operation, set device parameters, query device parameters, record device parameter change information (including change time) and query device parameter change records, laying the foundation for automated testing of EMS devices (that is, it can be used for performance verification of EMS devices, including stress testing of the maximum number of supported devices, collection of data refresh time and instruction issuance time, etc.);
[0066] (2) Support batch / individual start and stop of slave device simulation operation;
[0067] (3) Device parameter templates are configurable and reusable, and support multiple types, which is conducive to simulating slave devices from multiple manufacturers;
[0068] (4) Support remote modification of device parameters, query of device parameters, and recording and query of device parameter change information;
[0069] (5) Supports simultaneous operation of multiple simulation devices and construction of complex scenarios, facilitating practical application and promotion.
[0070] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A Modbus slave device simulation monitoring method for EMS equipment debugging, characterized in that: include: After receiving a Modbus slave device operation request from a user, the Modbus slave device simulation platform monitor determines whether the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform exist in the local cache and have not expired. If so, the Modbus slave device operation request is forwarded to the target Modbus slave device simulation platform using the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache. Otherwise, an IP address and port update request is sent to a simulation platform registration center, wherein the Modbus slave device simulation platform monitor is respectively connected to the target Modbus slave device simulation platform and the simulation platform registration center in communication, and the target Modbus slave device The device simulation platform is communicatively connected to the EMS device to be debugged, the Modbus slave device operation request carries a Modbus slave device operation instruction and a unique identifier of the target Modbus slave device simulation platform, the Modbus slave device operation instruction includes a Modbus slave device simulation operation start instruction, a Modbus slave device simulation parameter modification instruction, a Modbus slave device simulation parameter query instruction, a Modbus slave device simulation parameter change record query instruction, a Modbus slave device simulation operation stop instruction and / or a Modbus slave device simulation operation recovery instruction, and the IP address and port update request carries a unique identifier of the target Modbus slave device simulation platform; The simulation platform registration center responds to the IP address and port update request initiated by the Modbus slave device simulation platform monitor, and after finding the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache, returns the IP address and port update request response carrying the search result to the Modbus slave device simulation platform monitor; The Modbus slave device simulation platform monitor monitors the IP address and port update request response, and after updating the cache and the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform, uses the update result to forward the Modbus slave device operation request to the target Modbus slave device simulation platform; The target Modbus slave device simulation platform responds to the Modbus slave device operation request by executing the Modbus slave device operation instruction; After executing the Modbus slave device operation instruction, the target Modbus slave device simulation platform feeds back a Modbus slave device operation result corresponding to the Modbus slave device operation instruction to the Modbus slave device simulation platform monitor; After receiving the Modbus slave device operation result, the Modbus slave device simulation platform monitor forwards the Modbus slave device operation result to the user or outputs and displays the Modbus slave device operation result to the user.
2. The Modbus slave device simulation monitoring method as claimed in claim 1, wherein: The method further comprises: Any Modbus slave device simulation platform sends an IP address and port registration request to the simulation platform registration center immediately after startup, wherein any Modbus slave device simulation platform is respectively communicatively connected to the simulation platform registration center, the EMS device and the Modbus slave device simulation platform monitor, and the IP address and port registration request carries the unique identification, IP address and port of any Modbus slave device simulation platform; The simulation platform registration center responds to the IP address and port registration request, and after successful registration, locally caches the unique identifier, IP address and port of any Modbus slave device simulation platform.
3. The Modbus slave device simulation monitoring method as claimed in claim 2, characterized in that, The method further comprises: The simulation platform registration center is started earlier than all Modbus slave device simulation platforms and later than the Modbus slave device simulation platform monitor, and after startup, it monitors the IP address and port registration request from any Modbus slave device simulation platform and the IP address and port update request from the Modbus slave device simulation platform monitor in real time.
4. The Modbus slave device simulation monitoring method as claimed in claim 1, characterized in that, After initiating the IP address and port update request to the simulation platform registration center, the Modbus slave device simulation platform monitor monitors the IP address and port update request response from the simulation platform registration center in real time, and adds a response timeout judgment mechanism to end the monitoring after finding the response timeout.
5. The Modbus slave device simulation monitoring method as claimed in claim 2, characterized in that, The method further comprises: Any Modbus slave device simulation platform has been configured with slave device parameters that match the device configuration parameters of the EMS device before startup.
6. The Modbus slave device simulation monitoring method according to claim 1, wherein: The target Modbus slave device simulation platform is connected to the EMS device via Modbus gateway communication.
7. The Modbus slave device simulation monitoring method as claimed in claim 6, characterized in that: When the target Modbus slave device simulation platform is a computer device running a Modbus slave device simulation software program, the target Modbus slave device simulation platform is connected to the Modbus gateway via 485-to-serial port communication.
8. The Modbus slave device simulation monitoring method according to claim 1, wherein: The method further comprises: When the simulation platform registration center fails to find the IP address and port bound to the unique identifier of the target Modbus slave device simulation platform in the local cache, it returns another IP address and port update request response with a search result of null to the Modbus slave device simulation platform monitor; After receiving the other IP address and port update response, the Modbus slave device simulation platform monitor forwards to the user or outputs to the user an operation failure message corresponding to the Modbus slave device operation request.
9. The Modbus slave device simulation monitoring method according to claim 1, wherein: The Modbus slave device simulation platform monitor is connected to the target Modbus slave device simulation platform by calling the externally open interface of the target Modbus slave device simulation platform for communication.
10. The Modbus slave device simulation monitoring method according to claim 1, wherein: The IP address and port update request carries unique identifiers of multiple target Modbus slave device simulation platforms.