Equipment power supply control system and method based on MODBUS
The MODBUS-based device power control system addresses complexity and cross-platform challenges by using a centralized control architecture, ensuring efficient and simple device power management with offline detection and fault tolerance.
Patent Information
- Application Number
- CN202411419015.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-12-31
AI Technical Summary
Existing IoT control systems based on MODBUS are complex, cumbersome to configure and operate, and difficult to achieve cross-platform operations, leading to high costs and delays.
A device power control system utilizing a central control server, MODBUS server, IoT intelligent switch group, control terminal, device database, and client host, connected via network protocols, enabling cross-platform operation without relying on WEB services, allowing for efficient and simple device power management.
The system achieves efficient, lightweight, and easy-to-use device power control with offline detection and fault tolerance, supporting cluster and individual device control, and reducing deployment complexity.
Smart Images

Figure CN119225503A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things control, and in particular to a device power control system and method based on MODBUS. Background Art
[0002] The MODBUS network is an industrial communication system, which is composed of programmable controllers with intelligent terminals and computers connected through public lines or local dedicated lines. Its system structure includes both hardware and software. Through this protocol, controllers can communicate with each other and with other devices via a network (such as Ethernet). It has now become a universal industrial standard. By building a MODBUS network, control devices produced by different manufacturers can be connected into an industrial network for centralized monitoring.
[0003] However, existing IoT control systems are generally complex, with cumbersome configuration and operation, which is not conducive to installation, deployment and maintenance. Most of them are B / S architectures and rely on WEB services, which not only have high delays and costs, but also make it difficult to achieve cross-platform operations. Summary of the invention
[0004] In view of this, the present application proposes a device power control system based on MODBUS to solve the problems reflected in the above background technology.
[0005] According to one aspect of the present application, a MODBUS-based device power control system is provided, the system comprising: a central control server, a MODBUS server, an Internet of Things intelligent switch group, a control terminal, a device database and a client host; wherein the various parts of the system are connected via a network protocol; there is at least one of the MODBUS server, the Internet of Things intelligent switch group, the control terminal and the client host; the device database is used to record device information and is connected to the central control server; the control terminal obtains and displays the device information through the central control server, and sends instructions to the MODBUS server to control the Internet of Things intelligent switch group to achieve device power control; the client host is connected to the control terminal via the central control server.
[0006] Furthermore, the client host is bound to part of the MODBUS server.
[0007] Furthermore, the central control server obtains the status information of the MODBUS server by periodically polling the MODBUS server, and registers with the central control server.
[0008] Furthermore, the client host periodically transmits status information of the client host to the central control server and registers with the central control server.
[0009] Furthermore, when the control terminal executes the instruction, the central control server is used to query the status information of the MODBUS server, and the Internet of Things intelligent switch group is controlled by sending instructions to the online MODBUS server.
[0010] Furthermore, controlling the IoT intelligent switch group by sending instructions to the online MODBUS server includes: performing cluster control on the IoT intelligent switch group corresponding to the MODBUS server, or individually controlling switches of the IoT intelligent switch group.
[0011] Furthermore, when the instruction is a shutdown instruction, it also includes: if the MODBUS server is bound to the client host, the shutdown operation of the client host is first triggered, and after a predetermined time, it is determined whether the client host is shut down; if the client host is shut down, the IoT smart switch group is controlled to shut down.
[0012] Furthermore, after determining whether the client host is shut down after a predetermined time, the method further includes: if the host device is not shut down, stopping the shut down instruction and performing problem troubleshooting.
[0013] According to one aspect of the present application, a device power control method based on MODBUS is also proposed. The method is implemented by the device power control system based on MODBUS described above, and includes the following steps:
[0014] Configuring the device information in the device database;
[0015] The central control server periodically polls the status information of the MODBUS server; and registers with the central control server;
[0016] The client host periodically transmits the status information of the client host to the central control server and registers with the central control server;
[0017] The control terminal controls the IoT intelligent switch group through the central control server and the MODBUS server.
[0018] Furthermore, the control terminal controls the IoT intelligent switch group through the central control server and the MODBUS server, including:
[0019] The control terminal executes an opening instruction, uses the central control server to query the status information of the MODBUS server, and controls the IoT intelligent switch group by sending an opening instruction to the online MODBUS server;
[0020] The control terminal executes the shutdown command and uses the central control server to query the status information of the MODBUS server. If the MODBUS server is bound to the client host, the shutdown operation of the client host is triggered first, and it is determined whether the client host is shut down after a predetermined time. If the client host is shut down, the IoT smart switch group is controlled to shut down; if the host device is not shut down, the shutdown command is stopped and the problem is checked.
[0021] Beneficial effects:
[0022] The present application provides a device power control system based on MODBUS, including: a central control server, a MODBUS server, an IoT intelligent switch group, a control terminal, a device database and a client host; wherein the various parts of the system are connected through a network protocol; the MODBUS server, the IoT intelligent switch group, the control terminal and the client host are at least one; the device database is used to record device information and is connected to the central control server; the control terminal obtains and displays the device information through the central control server, and sends instructions to the MODBUS server to control the IoT intelligent switch group to realize device power control; the client host is connected to the control terminal through the central control server. Through the above system, it is possible to achieve cross-platform operation without relying on WEB services, and does not require complex deployment, is lightweight and efficient, and is simple to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a system block diagram of a device power control system based on MODBUS according to an embodiment of the present application;
[0024] Figure 2 This is a schematic diagram of the module-based flow chart of a device power control system based on MODBUS according to an embodiment of the present application;
[0025] Figure 3 The figure is a flow chart of a device power control method based on MODBUS according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0027] Among them, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application or simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0028] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0029] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0030] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0031] The solution of this application is applied to the Internet of Things. A simple and efficient equipment power management system is built using network protocols such as ModBus, TCP / IP, UDP, and databases. It is cross-platform, does not require complex deployment, is easy to use, can control hardware individually, and can be divided into hardware groups for cluster control. It has the characteristics of offline detection, fast response, disconnection reconnection, and safe power off.
[0032] Example 1
[0033] Figure 1 The system block diagram of the device power management system based on MODBUS according to an embodiment of the present application is shown. Figure 1 The system includes: a central control server 100, a MODBUS server 200, an IoT intelligent switch group 300, a control terminal 400, a device database 500 and a client host 600. The various parts of the system are connected through network protocol communication.
[0034] Specifically, see Figure 2, Figure 2 The following is a schematic diagram of the module-based flow of a device power management system based on MODBUS according to an embodiment of the present application. The various parts of the system can be connected by wire and communicated through a network protocol, and communicate through the central control server 100. Different from the B / S architecture, the system does not need to rely on WEB services, so that cross-platform operation can be achieved.
[0035] The central control server 100 is used to connect various parts of the system for communication. Specifically, the central control server 100 is connected to the MODBUS server 200, the control terminal 400, the device database 500, and the client host 600 through the network protocol, and is responsible for the communication of each part. The central control server 100 will periodically poll the MODBUS server 200 to obtain the status information of the MODBUS server 200, including online information, and whether it is bound to the client host, and register in the central control server 100.
[0036] The central control server 100 can be run in a computer host or in a platform system, and the network can use LAN or WAN as a transmission endpoint, which is not specifically limited here.
[0037] The MODBUS server 200 is used to control the IoT smart switch group 300 according to the instructions of the control terminal 400. Specifically, there may be one or more MODBUS servers 200, and each MODBUS server 200 corresponds to an IoT smart switch group 300. Through the MODBUS server, devices produced by different manufacturers can be compatible, and each IoT smart switch group can communicate with the central control server 100 through the corresponding MODBUS server, thereby building an industrial network for centralized monitoring.
[0038] The IoT smart switch group 300 is used to control the device and realize the device power management. By controlling the power on and off of the IoT device, the IoT device can be turned on and off, and the IoT device can be turned on and off. Specifically, the IoT smart switch group 300 can be one or more. By dividing different IoT smart switch groups, cluster control of devices can be realized, and devices in the cluster can also be controlled individually, taking into account both efficiency and flexibility.
[0039] The control terminal 400 is used to send instructions to control the device. Specifically, the following steps are included:
[0040] The control terminal 400 first obtains the status of the central control server 100 by communicating with the central control server 100, and determines whether the central control server 100 is online. If it is not online, it is displayed as offline. If it is online, the next step is performed.
[0041] The control terminal 400 queries and displays the device information through the central control server 100, and the central control server 100 obtains the device information transmission through the device database 500.
[0042] When the control terminal 400 sends an opening instruction, the control terminal 400 queries the status of the MODBUS server 200 through the central control server 100, and if it is not online, it is marked as offline; if it is online, it sends an opening instruction to the MODBUS server 200, and MODBUS controls the corresponding IoT smart switch group according to the instruction, thereby realizing the opening operation of the device power supply.
[0043] When the control terminal 400 sends a shutdown command, the control terminal 400 queries the status of the MODBUS server 200 through the central control server 100, and if it is not online, it is marked as offline; if it is online, it determines whether the MODBUS device is bound to the client host 600. If bound, the client host 600 is first shut down, and a shutdown command is sent to the client host 600. After the predetermined time arrives, it determines whether the client host 600 is shut down successfully. If it is shut down successfully, a shutdown command is sent to the MODBUS server 200. MODBUS controls the corresponding IoT smart switch group according to the command, thereby realizing the power off operation of the device, that is, shutting down the corresponding IoT device; if the shutdown fails, the shutdown command is stopped and the fault is checked.
[0044] Through the above steps, the power supply of the device can be controlled, and the properties of offline detection and fault detection can be achieved.
[0045] The device database 500 is used to configure device information. Specifically, the device information includes the device type and the device ownership. The device database contains information about all devices, including the central control server, the MODBUS server, the client host, the control terminal, and the IoT intelligent switch group. Each IoT intelligent switch group will contain control switches for multiple different IoT components, and the IoT components and devices in the IoT intelligent switch group can be opened and closed through the MODBUS server. Each device can be connected through a communication line and can communicate through the modbus communication protocol. After configuring the device information, the device database 500 is connected to the central control server 100 through the network, and the central control server 100 can query in the device database 500 to provide device information to the control terminal 400. This makes it easier for the operator to view the device status and manage the device. Among them, the client host of this system refers to the corresponding IoT intelligent switch group and the IoT device corresponding to the IoT intelligent switch group, which is equipped by the manufacturer or the corresponding service host. When controlling in this system, the client host corresponding to the corresponding IoT device is first turned off, and then the power is disconnected through the MODBUS server. Ensure the normal operation of the client host corresponding to the IoT device.
[0046] The client host 600 is used to record device information and transmit the status information of the client host 600 to the central control server 100. Specifically, the client host 600 will periodically transmit the status information of the client host 600 to the central control server 100, including heartbeat information, to determine the online status and connection status of the client host, and register with the central control server 100. The client host 600 is bound to some MODBUS servers 200, so as to record device information during device operation and realize safety monitoring.
[0047] Obviously, those skilled in the art should understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. The modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by computing devices, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.
[0048] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0049] Example 2
[0050] Figure 3 A flow chart showing a method for controlling a device power supply based on MODBUS according to an embodiment of the present application is shown in FIG. Figure 3 , the flow chart includes:
[0051] Step 1100, configure device information in the device database.
[0052] Step 1200: The central control server periodically polls the status information of the MODBUS server and registers on the central control server. In this step, when the MODBUS server is connected to the entire control system, it can first register on the central control server. When the central control server controls the IoT smart switch group, it controls the IoT smart switch group through the MODBUS server.
[0053] Step 1300: The client host periodically transmits the client host status information to the central control server and registers with the central control server. In this step, each client host can register with the central control server before accessing the entire control system. When the central control server controls the IoT smart switch group, it will query whether there is a registered client host, and if there is a registered host, it will control the client host first, and then control the IoT smart switch group through the MODBUS server.
[0054] Step 1400: The control terminal controls the IoT intelligent switch group through the central control server and the MODBUS server.
[0055] Specifically, step 1400 includes:
[0056] Step 1410, the control terminal executes the opening instruction, uses the central control server to query the status information of the MODBUS server, and controls the IoT intelligent switch group by sending an opening instruction to the online MODBUS server;
[0057] Step 1420, the control terminal executes the shutdown command and uses the central control server to query the status information of the MODBUS server. If the MODBUS server is bound to the client host, the shutdown operation of the client host is triggered first, and it is determined whether the client host is shut down after a predetermined time. If the client host is shut down, the IoT smart switch group is controlled to shut down; if the host device is not shut down, the shutdown command is stopped and the problem is checked.
[0058] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A device power control system based on MODBUS, characterized in that: The system includes: a central control server, a MODBUS server, an Internet of Things intelligent switch group, a control terminal, a device database and a client host; wherein the various parts of the system are connected through a network protocol; there is at least one of the MODBUS server, the Internet of Things intelligent switch group, the control terminal and the client host; the device database is used to record device information and is connected to the central control server; the control terminal obtains and displays the device information through the central control server, and sends instructions to the MODBUS server to control the Internet of Things intelligent switch group to realize device power control; the client host is connected to the control terminal through the central control server.
2. The device power control system based on MODBUS according to claim 1, characterized in that: The client host is bound to a portion of the MODBUS server.
3. The device power control system based on MODBUS according to claim 1, characterized in that: The central control server obtains the status information of the MODBUS server by periodically polling the MODBUS server and registers with the central control server.
4. The device power control system based on MODBUS according to claim 1, characterized in that: The client host periodically transmits the status information of the client host to the central control server and registers with the central control server.
5. The MODBUS-based device power control system according to any one of claims 1 to 4, characterized in that: When the control terminal executes the instruction, the central control server is used to query the status information of the MODBUS server, and the Internet of Things intelligent switch group is controlled by sending instructions to the online MODBUS server.
6. The device power control system based on MODBUS according to claim 5, characterized in that: The controlling the IoT intelligent switch group by sending instructions to the online MODBUS server includes: performing cluster control on the IoT intelligent switch group corresponding to the MODBUS server, or individually controlling switches in the IoT intelligent switch group.
7. The device power control system based on MODBUS according to claim 5, characterized in that: When the instruction is a shutdown instruction, it also includes: if the MODBUS server is bound to the client host, the shutdown operation of the client host is first triggered, and after a predetermined time, it is determined whether the client host is shut down; if the client host is shut down, the IoT smart switch group is controlled to shut down.
8. The MODBUS-based device power control system according to claim 6, characterized in that: After determining whether the client host is shut down after a predetermined time, the method further includes: if the host device is not shut down, stopping the shut down instruction and performing problem troubleshooting.
9. A device power control method based on MODBUS, the method being implemented by the device power control system based on MODBUS according to claim 1, characterized in that: The following steps are involved: Configuring device information in the device database; The MODBUS server is registered with the central control server; The central control server periodically polls the status information of the MODBUS server; The client host registers with the central control server; The client host periodically transmits the status information of the client host to the central control server. The control terminal sends instructions to the MODBUS server through the central control server, thereby controlling the Internet of Things intelligent switch group through the MODBUS server.
10. The device power control method based on MODBUS according to claim 9, characterized in that: The control terminal controls the IoT intelligent switch group through the central control server and the MODBUS server, including: The control terminal executes an opening instruction, uses the central control server to query the status information of the MODBUS server, and controls the IoT intelligent switch group by sending an opening instruction to the online MODBUS server; The control terminal executes the shutdown command and uses the central control server to query the status information of the MODBUS server. If the MODBUS server is bound to the client host, the shutdown operation of the client host is triggered first, and it is determined whether the client host is shut down after a predetermined time. If the client host is shut down, the IoT smart switch group is controlled to shut down; if the host device is not shut down, the shutdown command is stopped and the problem is checked.
Citation Information
Cited By
Method, device and equipment for controlling multiple programmable power supplies and medium
CN121363034A
