System and method for actively detecting and reporting working state of intelligent controller
By introducing an active reporting mechanism of edge gateways and intelligent controllers in the active detection and reporting system of the working state of the intelligent controller, the problem of inefficient detection and reporting of terminal equipment in the existing technology is solved, and more efficient device status acquisition and processing is achieved.
Patent Information
- Application Number
- CN202311585416.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-24
- Publication Date
- 2025-05-27
AI Technical Summary
Existing intelligent sensors use process-oriented programming mode and passive polling methods, resulting in inefficient detection and reporting of terminal devices, wasted network resources and heavy load.
Design an active detection and reporting system for the working status of an intelligent controller, including superior equipment/service platform, edge gateway and various types of intelligent controllers. The system establishes an end device information table through an edge gateway, and the intelligent controller actively reports the current status update message of the end device to reduce dependence on the superior device/platform.
It improves the processing efficiency and complexity of device status acquisition, reduces the communication load of superior equipment/platforms, reduces the process of querying the status of the terminal equipment, and improves the processing efficiency.
Smart Images

Figure CN120044912A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of equipment detection, and in particular relates to the detection and reporting of the working state of an intelligent controller. Background Art
[0002] Existing intelligent sensors, such as programmable controllers, use process-oriented programming modes such as ladder diagrams / function blocks, and adopt a passive polling method to query and control the device status of the terminal control devices. After the status of the terminal devices changes, no status messages are sent outwards. When the superior device / platform needs to obtain the status of the terminal devices, it has to query the corresponding programmable controller, resulting in low working efficiency of the superior device / platform and a large waste of information processing capabilities; in order for the superior device / platform to quickly obtain the working status of the terminal devices, it needs to quickly send out query instructions, which greatly occupies network resources and leads to heavy network loads. However, features such as intelligence, high efficiency, and energy saving are the development trends of current programmable controllers and systems. Therefore, it is necessary to improve the working state detection and reporting mechanism of programmable control devices. Summary of the Invention
[0003] To this end, the present invention proposes an active detection and reporting system for the working state of an intelligent controller, which is used to detect and report the current status of one or more terminal devices (60). The system includes: a superior device / service platform (50), an edge gateway (40), and multiple types of intelligent controllers (10, 20, 30); wherein,
[0004] The superior device / service platform (50) is used for: obtaining multiple types of terminal device models and their model configuration information; sending the obtained multiple types of terminal device models and their model configuration information to the edge gateway (40); receiving the current status update messages of one or more terminal devices (60) reported by the edge gateway (40), and performing relevant logic processing based on the received current status update messages;
[0005] The edge gateway (40) is used for: receiving multiple types of terminal device models and their model configuration information sent by the superior device / service platform (50), establishing terminal device information tables corresponding to multiple types of terminal device models, and sending the corresponding type of terminal device model and its model configuration information to the corresponding type of intelligent controller (10, 20, 30); according to the current status update messages of the terminal devices (60) under its control actively reported by one or more intelligent controllers (10, 20, 30) received, updating the current status information of the one or more terminal devices (60) in the terminal device information table managed internally by it, and reporting the current status update messages of the one or more terminal devices (60) to the superior device / service platform (50);
[0006] Intelligent controllers (10, 20, 30) are used to: save the end - device models of corresponding types and their model configuration information received from the edge gateway (40), and establish an end - device status table according to the end - device models of corresponding types and their model configuration information; query the current status of the end - devices (60) under its control according to the model configuration information, and update the current status data of the end - devices (60) under its control in the end - device status table when the current status of the end - devices (60) under its control changes; and send the current status update message of the end - devices (60) under its control to the edge gateway (40).
[0007] Further, the upper - level device / service platform (50) and the edge gateway (40) are also used to: the upper - level device / service platform (50) sends a command to the edge gateway (40) to query the current status of one or more end - devices (60); after receiving the command to query the current status of the one or more end - devices (60), the edge gateway (40) looks up the status values of the one or more end - devices (60) from the end - device information table it manages internally, and sends the current status message of the one or more end - devices (60) to the upper - level device / service platform (50).
[0008] Further, the edge gateway (40) is also used to: when one or more intelligent controllers (10, 20, 30) fail, send alarm information about the failure of the one or more intelligent controllers (10, 20, 30) to the upper - level device / service platform (50) in real - time.
[0009] Further, the model configuration information includes: the operation logic of the end - device (60), the time interval for detecting the operation status, control instructions, and query instructions.
[0010] Further, the types of intelligent controllers (10, 20, 30) include: programmable controllers (10), serial - port control devices (20), and data collectors (30).
[0011] Further, after receiving the end - device models of multiple types and their model configuration information sent by the upper - level device / service platform (50), the edge gateway (40) returns a response message to the upper - level device / service platform (50); after receiving the end - device models of corresponding types and their model configuration sent by the edge gateway (40), the intelligent controllers (10, 20, 30) return a response message to the edge gateway (40).
[0012] The present invention also provides a method for actively detecting and reporting the working status of an intelligent controller, including the following steps:
[0013] Step 1, the upper - level device / service platform (50) obtains the end - device models of multiple types and their model configuration information;
[0014] Step 2, the upper-level device / service platform (50) sends multiple types of end-device models and their model configuration information to the edge gateway (40);
[0015] Step 3, the edge gateway (40) establishes an end-device information table corresponding to multiple types of end-device models according to the multiple types of end-device models and their model configuration information received from the upper-level device / service platform (50); and sends the corresponding type of end-device model and its model configuration information to the intelligent controllers (10, 20, 30) that control the end-devices (60);
[0016] Step 4, the intelligent controllers (10, 20, 30) save the received end-device model and its model configuration information, and establish an end-device status table according to the end-device model and its model configuration information;
[0017] Step 5, the intelligent controllers (10, 20, 30) query the current status of the end-devices (60) under their control according to the model configuration information. When the status of the end-devices (60) under their control changes, update the current status data of the end-devices (60) in the end-device status table; and send a status update message of the end-devices (60) to the edge gateway (40);
[0018] Step 6, the edge gateway (40) updates the status data of the one or more end-devices (60) in the end-device information status table managed internally based on the one or more status update messages of the end-devices (60) reported by one or more intelligent controllers (10, 20, 30), and sends the one or more end-device status update messages to the upper-level device / service platform (50);
[0019] Step 7, the upper-level device / service platform (50) performs relevant logic processing based on the one or more status update messages of the end-devices (60) reported by the edge gateway (40).
[0020] Further, the method further includes the following steps:
[0021] Step A, the upper-level device / service platform (50) sends a command to query the current status of one or more end-devices (60) to the edge gateway (40);
[0022] Step B: After the edge gateway (40) receives a command to query the current status of one or more end devices (60), it looks up the current status of the one or more end devices (60) from the end device information table it manages internally, and sends a status update message of the one or more end devices (60) to the superior device / service platform (50) to update the current status of the one or more end devices (60) in the superior device / service platform (50).
[0023] Further, Step 3 further includes: The edge gateway (40) sends alarm information about the failure of one or more intelligent controllers (10, 20, 30) to the superior device / service platform (50) in real time.
[0024] Further, Step 3 further includes: After the edge gateway (40) receives multiple types of end device models and their model configuration information sent by the superior device / service platform (50), it returns a response message to the superior device / service platform (50); Step 5 further includes: After the intelligent controllers (10, 20, 30) receive the corresponding type of end device model and model configuration sent by the edge gateway (40), they return a response message to the edge gateway (40).
[0025] The present invention makes device status collection become an independent functional module, greatly reducing both the processing efficiency and the processing complexity, significantly reducing the communication load of the superior device / platform, reducing the link for querying the status of end devices, and greatly improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a schematic structural diagram of the active detection and reporting system for the working status of the intelligent controller of the present invention;
[0027] Figure 2 is a flowchart of the method for active detection and reporting of the working status of the intelligent controller of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and in no way limits the present invention and its application or use.
[0029] Figure 1 shows the structure of the active detection and reporting system for the working status of the intelligent controller of the present invention. As Figure 1As shown in the figure, the working state active detection and reporting system of the intelligent controller of the present invention is used to detect and report the current state information of one or more terminal devices 60. The system includes: a superior device / service platform 50, an edge gateway 40, and multiple types of intelligent controllers 10, 20, 30.
[0030] The intelligent controllers 10, 20, 30 are used to collect the states of the terminal devices 60 and control the actions of the terminal devices 60; the terminal devices 60 controlled by the intelligent controllers 10, 20, 30 include sensors and execution devices (such as fans, lamps, etc.). Among them,
[0031] The superior device / service platform 50 is used for:
[0032] Obtain multiple types of terminal device models and their model configuration information; send the obtained multiple types of terminal device models and their model configuration information to the edge gateway 40;
[0033] Receive the current state update messages of one or more terminal devices 60 reported by the edge gateway 40, and perform relevant logical processing based on the received current state update messages;
[0034] The model configuration information includes: the operation logic of the terminal device, the time interval for detecting the operation state, control instructions, and query instructions.
[0035] Specifically, the superior device / service platform 50 can obtain multiple types of terminal device models and their model configuration information in different ways, including: (1) On the superior device / service platform 50, the user programs multiple different types of intelligent controllers 10, 20, 30 and the terminal devices 60 controlled by them to establish multiple types of terminal device models and configure the terminal device models; or, (2) Multiple types of terminal device models and their model configuration information are established in advance and stored in the database. The superior device / service platform 50 can obtain the required type of terminal device models and their model configuration information by calling according to needs.
[0036] The edge gateway 40 is used for:
[0037] Receive multiple types of terminal device models and their model configuration information sent by the superior device / service platform 50, establish a terminal device information table corresponding to multiple types of terminal device models, and send the corresponding type of terminal device models and their model configuration information to the corresponding type of intelligent controllers 10, 20, 30;
[0038] Based on the current status update messages of the terminal devices 60 controlled by one or more intelligent controllers 10, 20, 30 actively reported, the edge gateway 40 updates the current status information of these one or more terminal devices 60 in the terminal device information table it manages internally, and reports the current status update messages (including fault messages and working status) of these one or more terminal devices 60 to the upper-level device / service platform 50;
[0039] After receiving multiple types of terminal device models and their model configuration information sent by the upper-level device / service platform 50, the edge gateway 40 can return response information to the upper-level device / service platform 50 to confirm that the data sent by the upper-level device / service platform 50 has been reliably delivered.
[0040] The edge gateway 40 also supports fault detection of the intelligent controllers 10, 20, 30. When one or more intelligent controllers 10, 20, 30 fail, the edge gateway 40 immediately sends alarm information about the failure of these one or more intelligent controllers 10, 20, 30 to the upper-level device / service platform 50.
[0041] The intelligent controllers 10, 20, 30 are used for:
[0042] Save the corresponding type of terminal device model and its model configuration information received from the edge gateway 40, and establish a terminal device status table according to the corresponding type of terminal device model and its model configuration information;
[0043] Query the current status of the terminal devices 60 controlled by it according to the model configuration information. When the current status of the terminal devices 60 controlled by it changes, update the current status data of the terminal devices 60 it controls in the terminal device status table; and send the current status update messages (including fault messages and working status) of the terminal devices 60 controlled by it to the edge gateway 40.
[0044] When the intelligent controllers 10, 20, 30 of the present invention detect that the current working status of the terminal devices 60 controlled by them changes, they update the current status data of the terminal devices 60 controlled by them in the terminal device status table; and actively report the current status update messages of the terminal devices 60 controlled by them to the edge gateway 40. The edge gateway 40 updates the terminal device information table of this terminal device 60 and sends the current status update message of this terminal device to the upper-level device / service platform 50, so that the upper-level device / service platform 50 does not need to poll the current status of this terminal device 60, greatly reducing the communication load of the upper-level device / service platform 50.
[0045] After receiving the corresponding type of end - device models and their model configurations sent by the edge gateway 40, the intelligent controllers 10, 20, and 30 can return response information to the edge gateway 40 to confirm that the data sent by the edge gateway 40 has been reliably delivered.
[0046] The types of the intelligent controllers 10, 20, and 30 include, but are not limited to: programmable controllers 10, serial - port control devices 20, and data collectors 30.
[0047] When the upper - level device / service platform 50 needs to actively query the current status of one or more end - devices 60, it sends a command to the edge gateway 40 to query the current status of the one or more end - devices 60. After receiving the command to query the current status of the one or more end - devices 60, the edge gateway 40 looks up the status values of the one or more end - devices 60 from the end - device information table it manages internally, and sends the current status messages of the one or more end - devices 60 to the upper - level device / service platform 50.
[0048] When the upper - level device / service platform 50 of the present invention performs initialization work, it needs to query the working status of all end - devices 60 to establish a working environment. After receiving the query command, the edge gateway 40 retrieves the current status values of all end - devices 60 from multiple end - device information tables it manages internally and returns them to the upper - level device / service platform 50, reducing the link of querying the working status of end - devices 60 and greatly improving the processing efficiency.
[0049] Figure 2 Shows the method flow of actively detecting and reporting the working status of the intelligent controller of the present invention. As Figure 2 shown, the method of actively detecting and reporting the working status of the intelligent controller of the present invention includes:
[0050] Step 1, the upper - level device / service platform 50 obtains multiple types of end - device models and their model configuration information;
[0051] Specifically, the upper - level device / service platform 50 can obtain multiple types of end - device models and their model configuration information in different ways, including: (1) On the upper - level device / service platform 50, users program multiple different types of intelligent controllers 10, 20, and 30 and the end - devices 60 they control to establish multiple types of end - device models and configure the end - device models; or, (2) Multiple types of end - device models and their model configuration information are pre - established and stored in a database, and the upper - level device / service platform 50 can obtain the required type of end - device models and their model configuration information by calling as needed.
[0052] Step 2, the upper-level device / service platform 50 sends multiple types of terminal device models and their model configuration information to the edge gateway 40;
[0053] Step 3, based on the multiple types of terminal device models and their model configuration information received from the upper-level device / service platform 50, the edge gateway 40 establishes terminal device information tables corresponding to the multiple types of terminal device models; and sends the corresponding type of terminal device model and its model configuration information to the intelligent controllers 10, 20, 30 that control the terminal device 60;
[0054] Further, step 3 may further include: after receiving the multiple types of terminal device models and their model configuration information sent by the upper-level device / service platform 50, the edge gateway 40 may return a response message to the upper-level device / service platform 50 to confirm that the data sent by the service platform 50 has been reliably delivered.
[0055] Step 4, the intelligent controllers 10, 20, 30 save the received terminal device model and its model configuration information, and establish a terminal device status table according to the terminal device model and its model configuration information;
[0056] Step 5, the intelligent controllers 10, 20, 30 query the current status of the terminal device 60 controlled by them according to the model configuration information. When the status of the terminal device 60 controlled by them changes, update the current status data of the terminal device 60 in the terminal device status table; and send a status update message of the terminal device 60 to the edge gateway 40;
[0057] Further, step 5 may further include: after receiving the corresponding type of terminal device model and model configuration sent by the edge gateway 40, the intelligent controllers 10, 20, 30 may return a response message to the edge gateway 40 to confirm that the data sent by the edge gateway 40 has been reliably delivered.
[0058] Step 6, based on the received status update messages of one or more terminal devices 60 reported by one or more intelligent controllers 10, 20, 30, the edge gateway 40 updates the status data of the one or more terminal devices 60 in the terminal device information status table managed internally by it, and sends the status update messages of the one or more terminal devices to the upper-level device / service platform 50;
[0059] Step 7, the upper-level device / service platform 50 performs relevant logic processing based on the received status update messages of the one or more terminal devices 60 reported by the edge gateway 40.
[0060] When the upper-level device / service platform 50 needs to actively query the current status of one or more terminal devices 60, the method of the present invention may further include the following steps:
[0061] Step 8, the upper-level device / service platform 50 sends a command to the edge gateway 40 to query the current status of one or more terminal devices 60.
[0062] Step 9, after receiving the command to query the current status of one or more terminal devices 60, the edge gateway 40 looks up the current status of the one or more terminal devices 60 from the terminal device information table it manages internally, and sends a status update message of the one or more terminal devices 60 to the upper-level device / service platform 50 to update the current status of the one or more terminal devices 60 in the upper-level device / service platform 50.
[0063] The present invention may further include Step 10. The edge gateway 40 supports fault detection of the intelligent controllers 10, 20, and 30. When one or more of the intelligent controllers 10, 20, and 30 fail, the edge gateway 40 can send fault warning information of the one or more intelligent controllers 10, 20, and 30 to the upper-level device / service platform 50 in real time.
[0064] The above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that: modifications can still be made to the specific implementation manners of the present invention or equivalent replacements can be made to some technical features; without departing from the spirit of the technical solutions of the present invention, they should all be covered within the scope of the technical solutions claimed by the present invention.
Claims
1. An active detection and reporting system for the working state of an intelligent controller, which is used to detect and report the current state of one or more terminal devices (60). Characterized in that the system includes: a superior device / service platform (50), an edge gateway (40), and multiple types of intelligent controllers (10, 20, 30); where the superior device / service platform (50) is used to: obtain multiple types of terminal device models and their model configuration information; send the obtained multiple types of terminal device models and their model configuration information to the edge gateway (40); receive the current state update messages of one or more terminal devices (60) reported by the edge gateway (40), and perform relevant logical processing based on the received current state update messages; the edge gateway (40) is used to: receive multiple types of terminal device models and their model configuration information sent by the superior device / service platform (50), establish terminal device information tables corresponding to multiple types of terminal device models, and send the corresponding type of terminal device model and its model configuration information to the corresponding type of intelligent controller (10, 20, 30); according to the current state update messages of the terminal devices (60) controlled by it actively reported by one or more intelligent controllers (10, 20, 30) received, update the current state information of the one or more terminal devices (60) in the terminal device information table it manages internally, and report the current state update messages of the one or more terminal devices (60) to the superior device / service platform (50); the intelligent controllers (10, 20, 30) are used to: save the corresponding type of terminal device model and its model configuration information received from the edge gateway (40), and establish a terminal device status table according to the corresponding type of terminal device model and its model configuration information; query the current state of the terminal device (60) controlled by it according to the model configuration information, and when the current state of the terminal device (60) controlled by it changes, update the current state data of the terminal device (60) controlled by it in the terminal device status table; and send the current state update message of the terminal device (60) controlled by it to the edge gateway (40).
2. The active detection and reporting system for the working state of an intelligent controller according to claim 1, characterized in that the superior device / service platform (50) and the edge gateway (40) are further used to: the superior device / service platform (50) sends a command to query the current state of one or more terminal devices (60) to the edge gateway (40); after receiving the command to query the current state of the one or more terminal devices (60), the edge gateway (40) looks up the status values of the one or more terminal devices (60) from the terminal device information table it manages internally, and sends the current state messages of the one or more terminal devices (60) to the superior device / service platform (50).
3. The active detection and reporting system for the working state of an intelligent controller according to claim 1, characterized in that The edge gateway (40) is further configured to: when one or more intelligent controllers (10, 20, 30) fail, send alarm information about the failure of the one or more intelligent controllers (10, 20, 30) to the superior device / service platform (50) in real time.
4. The active detection and reporting system for the working state of an intelligent controller as claimed in claim 1, wherein, the model configuration information includes: the operation logic of the terminal device (60), the time interval for detecting the operation state, control instructions, and query instructions.
5. The active detection and reporting system for the working state of an intelligent controller as claimed in claim 1, wherein, the types of the intelligent controllers (10, 20, 30) include: programmable controllers (10), serial port control devices (20), and data collectors (30).
6. The active detection and reporting system for the working state of an intelligent controller as claimed in claim 1, wherein, after receiving multiple types of terminal device models and their model configuration information sent by the superior device / service platform (50), the edge gateway (40) returns a response message to the superior device / service platform (50); after receiving the corresponding type of terminal device model and its model configuration sent by the edge gateway (40), the intelligent controllers (10, 20, 30) return a response message to the edge gateway (40).
7. A method for actively detecting and reporting the working state of an intelligent controller, wherein, Step 1, the superior device / service platform (50) obtains multiple types of terminal device models and their model configuration information; Step 2, the superior device / service platform (50) sends the multiple types of terminal device models and their model configuration information to the edge gateway (40); Step 3, the edge gateway (40) establishes multiple terminal device information tables corresponding to the multiple types of terminal device models according to the multiple types of terminal device models and their model configuration information received from the superior device / service platform (50); and sends the corresponding type of terminal device model and its model configuration information to the intelligent controllers (10, 20, 30) that control the terminal device (60); Step 4, the intelligent controllers (10, 20, 30) save the received terminal device model and its model configuration information, and establish a terminal device status table according to the terminal device model and its model configuration information; Step 5, the intelligent controllers (10, 20, 30) query the current status of the terminal device (60) under their control according to the model configuration information. When the status of the terminal device (60) under their control changes, update the current status data of the terminal device (60) in the terminal device status table; and send a status update message of the terminal device (60) to the edge gateway (40). Step 6, the edge gateway (40) updates the status data of the one or more terminal devices (60) in the internal terminal device information state table it manages based on the received status update messages of the one or more terminal devices (60) reported by one or more intelligent controllers (10, 20, 30), and sends the status update messages of the one or more terminal devices to the upper-level device / service platform (50); Step 7, the upper-level device / service platform (50) performs relevant logic processing based on the received status update messages of the one or more terminal devices (60) reported by the edge gateway (40).
8. The method for actively detecting and reporting the working status of the intelligent controller according to claim 7, characterized in that, the method further includes the following steps: Step A, the upper-level device / service platform (50) sends a command to query the current status of one or more terminal devices (60) to the edge gateway (40); Step B, after receiving the command to query the current status of one or more terminal devices (60), the edge gateway (40) looks up the current status of the one or more terminal devices (60) from the internal terminal device information table it manages, and sends the status update messages of the one or more terminal devices (60) to the upper-level device / service platform (50) to update the current status of the one or more terminal devices (60) in the upper-level device / service platform (50).
9. The method for actively detecting and reporting the working status of the intelligent controller according to claim 7, characterized in that, Step 3 further includes: the edge gateway (40) sends alarm information about the failure of one or more intelligent controllers (10, 20, 30) to the upper-level device / service platform (50) in real time.
10. The method for actively detecting and reporting the working status of the intelligent controller according to claim 7, characterized in that, Step 3 further includes: after receiving multiple types of terminal device models and their model configuration information sent by the upper-level device / service platform (50), the edge gateway (40) returns a response message to the upper-level device / service platform (50); Step 5 further includes: after receiving the corresponding type of terminal device model and model configuration sent by the edge gateway (40), the intelligent controller (10, 20, 30) returns a response message to the edge gateway (40).