A method and system for realizing remote restart of multiple heterogeneous devices
By registering and managing IoT devices on the cloud platform, and using the Netty framework and communication protocol to achieve remote restart of heterogeneous devices, the problem of inability to manage uniformly during the restart of heterogeneous devices is solved, improving the real-timeness of restarts and reducing maintenance costs.
Patent Information
- Application Number
- CN202310160919.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2043-02-24
AI Technical Summary
In the Internet of Things environment, the restart process of multiple heterogeneous devices cannot be managed uniformly, the real-time restart is not ideal, and the maintenance cost is high.
Register sub-device and terminal gateways through the cloud platform, load vendor drivers, and use the Netty framework to start the TCP server monitoring device connection. Use the first communication protocol (including restart data packets) to establish a connection with the device, the cloud platform initiates a restart task, the terminal gateway translates and executes restart instructions, the sub-device performs a restart operation, and reports the results.
Remote one-click batch restart of multiple heterogeneous devices is realized, which reduces maintenance costs, improves the real-time restart, and avoids the problem of abnormal system operation.
Smart Images

Figure CN116232782B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of remote restarting equipment, and in particular relates to a method and system for realizing remote restarting of multiple heterogeneous equipment. Background Art
[0002] With the rapid development of the Internet, the demand for intelligence in all aspects of human productivity has increased rapidly, which has led to the rapid popularization of the Internet of Things technology, which is extended and expanded on the basis of the Internet. The Internet of Things is the intelligent perception, identification, transmission and control of object information, and is an important part of the new generation of information technology (IT). Today, the concept of the Internet of Things has spread like wildfire, and the technologies, products, solutions and applications it covers are everywhere.
[0003] In the toB market, the demand for cost reduction and efficiency improvement has stimulated companies to upgrade, adopt automated systems, arrange production processes scientifically and rationally, and provide more sensitive feedback on market demand in order to maintain their own competitiveness in the market; in the toC market, various emerging smart consumer terminals such as health IoT products, wearable devices, sweeping robots, smart speakers, smart door locks, etc. are also being rapidly promoted and have become the biggest driving force for the development of consumer electronics.
[0004] However, as the Internet of Things allows ordinary physical objects with independent addresses to form a fully connected network, the scale of connected devices will increase rapidly. According to IDC's forecast, the number of IoT connected devices worldwide will exceed 41.6 billion in 2025. The huge number of devices will bring many problems and challenges to subsequent maintenance. As an important part of daily maintenance to ensure the normal operation of the IoT application environment, how to break the past dilemma of heavy reliance on on-site operations by maintenance personnel and being restricted by the supplier's SDK has become a difficulty that needs to be solved in order to achieve efficient equipment maintenance in the era of the Internet of Things.
[0005] In the existing IoT environment, since there is no unified standard in the industry, different types of devices exist in different application scenarios and are managed and maintained by different suppliers. Each supplier continues to grow and develop based on its own platform, making the devices on the entire IoT very fragmented.
[0006] A mature IoT application solution must be supported by different types of equipment from different suppliers. In the subsequent maintenance of most IoT applications today, there are two common ways to restart the device: 1. Maintenance personnel go to the site to operate the physical button to restart. 2. Rely on the supplier platform for remote restart.
[0007] In the case of large-scale deployment of devices, the above two restart methods not only have high maintenance costs, but also have obvious disadvantages. The first method is the traditional maintenance method. From the time the device needs to be restarted to the time the maintenance personnel arrive at the site to operate the device, the time required is uncontrollable and the real-time performance is very poor. If the maintenance personnel must go to the site to operate each device, the cost is obviously high. Although the second method is more advanced than the first method, when the number of devices is large and there are multiple suppliers, due to the strong dependence of the device on its own platform, when a large-scale restart is required, it is necessary to first evaluate and record the devices that need to be restarted by each supplier, and then remotely restart them in batches using the platforms provided by each supplier. In this way, maintenance and management will be very chaotic, real-time performance cannot be guaranteed, and data synchronization, missed operations and multiple operations are prone to problems, which pose a potential threat to the normal operation of IoT applications and may also increase the difficulty of troubleshooting when failures occur. Summary of the invention
[0008] In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to solve the problems that a large number of heterogeneous devices cannot be managed uniformly during a large-scale restart process, the restart real-time performance is not ideal, and the maintenance cost is high.
[0009] The present application provides a method for implementing remote restart of multiple heterogeneous devices, including:
[0010] The cloud platform registers the sub-device and the terminal gateway corresponding to the sub-device, and loads the vendor driver that the sub-device and the terminal gateway rely on;
[0011] The cloud platform uses the Netty framework to start the TCP server to monitor the connection status of the registered device;
[0012] The terminal gateway or sub-device establishes a communication connection with the cloud platform using a first communication protocol, wherein the first communication protocol includes a restart data packet;
[0013] The cloud platform initiates a restart task for the designated sub-device according to the restart data packet;
[0014] The cloud platform sends a restart instruction to the communication channel of each sub-device that needs to be restarted;
[0015] After receiving the restart instruction, the terminal gateway translates it into an execution instruction compatible with the sub-device, performs a restart action or forwards the restart instruction to the subordinate sub-device;
[0016] The sub-device performs a restart action after receiving the restart instruction.
[0017] Furthermore, it also includes: after the restart action is completed, the results are reported to the cloud platform step by step.
[0018] Furthermore, the restart data packet defines a device code, a product code, and a unique identifier of the terminal gateway or sub-device.
[0019] Furthermore, the cloud platform initiates a restart task for the designated sub-device according to the restart data packet, including: the cloud platform first determines the supplier driver according to the product code, then determines the communication element according to the device code, and finally determines to initiate the restart task according to the unique identifier.
[0020] A system for remotely restarting multiple heterogeneous devices is also provided, comprising:
[0021] The cloud platform is used to register the sub-device and the terminal gateway corresponding to the sub-device, and load the vendor driver that the sub-device and the terminal gateway rely on; use the Netty framework to start the TCP server to monitor the connection status of the registered device; initiate the restart task of the specified sub-device according to the restart data packet; send a restart instruction to the communication channel of each sub-device that needs to be restarted;
[0022] The terminal gateway establishes a communication connection with the cloud platform using a first communication protocol, wherein the first communication protocol includes the restart data packet; after receiving the restart instruction, the terminal gateway translates the instruction into an execution instruction compatible with the sub-device, performs a restart action or forwards the instruction to the subordinate sub-device;
[0023] The sub-device establishes a communication connection with the cloud platform using a first communication protocol; and performs a restart action after receiving the restart instruction.
[0024] Furthermore, the restart data packet defines the device code, product code and unique identifier of the terminal gateway or sub-device; the cloud platform initiates a restart task for the designated sub-device based on the restart data packet, including: the cloud platform first determines the vendor driver based on the product code, then determines the communication element based on the device code, and finally determines to initiate the restart task based on the unique identifier.
[0025] The improvement of this application brings the following advantages: the method and system provided by this application can achieve the effect of remotely restarting multiple heterogeneous devices in batches with one click on the cloud platform. The cloud platform using this method manages and maintains multiple heterogeneous devices, and the application and maintenance costs will be effectively reduced. At the same time, it can avoid the occurrence of problems such as system operation abnormalities caused by large-scale restarts, and can ensure the real-time performance of large-scale device restarts of heterogeneous devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 An optional system architecture for implementing remote restart of multiple heterogeneous devices provided in an embodiment of the present application.
[0027] Figure 2 A flow chart of a method for implementing remote restart of multiple heterogeneous devices provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention.
[0029] Figure 1 An optional system architecture for implementing remote restart of multiple heterogeneous devices provided in the embodiment of the present application is as follows: Figure 1 The system architecture may include: a cloud platform, a terminal gateway and sub-devices.
[0030] Among them, the cloud platform can be a platform for managing terminal gateways and sub-devices, and can remotely restart terminal gateways and sub-devices; the terminal gateway can be a transit between the cloud platform and sub-devices, and each terminal gateway can connect and manage multiple sub-devices; the sub-devices can be a variety of heterogeneous devices.
[0031] Next, the method for implementing remote restart of multiple heterogeneous devices in this application is introduced. Figure 2 As shown, Figure 2 A flow chart of a method for implementing remote restart of multiple heterogeneous devices provided in an embodiment of the present application is shown. The method may include the following steps:
[0032] S100, the cloud platform registers the sub-device information and the terminal gateway corresponding to the sub-device, and loads the vendor driver that the sub-device and the terminal gateway rely on.
[0033] The information of the sub-device may include: the type of the sub-device, input and output operating voltage and current, deviceCode (device code), productCode (product code) and identifier (unique identifier), etc.
[0034] S200, the cloud platform uses the Netty framework to start the TCP server to monitor the connection status of the registered devices.
[0035] Registered devices refer to the sub-devices and terminal gateways registered on the cloud platform. By monitoring the connection status of registered devices, you can see in real time whether the device is connected, and monitor whether the device is abnormal based on historical data.
[0036] S300, the terminal gateway or sub-device uses the first communication protocol to establish a communication connection with the cloud platform, and the first communication protocol includes a restart data packet.
[0037] S400, the cloud platform initiates a restart task for the designated sub-device according to the restart data packet.
[0038] The cloud platform initiates the restart task of the specified device through the task scheduling center, and can restart it immediately or wait for a certain period of time according to needs.
[0039] S500, the cloud platform sends a restart instruction to the communication channel of each sub-device that needs to be restarted.
[0040] S600: After receiving the restart instruction, the terminal gateway translates it into an execution instruction compatible with the sub-device, performs a restart action or forwards the restart instruction to the subordinate sub-device.
[0041] S700: After receiving the restart instruction, the slave device performs a restart action.
[0042] S800, after the restart action is completed, the results are reported to the cloud platform step by step.
[0043] At this point, the effect of remotely restarting multiple heterogeneous devices in batches with one click can be achieved on the cloud platform.
[0044] Today's mature and popular IoT applications must have a large number of heterogeneous devices. If a large-scale device restart is required every time during the long equipment maintenance cycle, it will consume a lot of resources and take a lot of risks, and the long-term development of the application will be severely restricted. If the devices deployed by the IoT application are uniformly handed over to the cloud platform based on this application to manage and maintain multiple heterogeneous devices, the maintenance cost of the application will be effectively reduced, and at the same time, it can avoid problems such as system operation abnormalities caused by large-scale restarts.
[0045] The method of the embodiment of the present application can remotely restart devices in batches across platforms, and the cost of device maintenance is low.
[0046] Using the method of the embodiment of the present application to restart large-scale equipment can ensure the real-time operation.
[0047] In the process of performing large-scale device restart operations using the method of the embodiment of the present application, each restart task is uniformly managed and scheduled, which can ensure the synchronization of data of each device, and is less likely to cause missed operations or multiple operations, thereby avoiding the normal maintenance of the device from having an adverse effect on the operation of the application.
[0048] The method of the embodiment of the present application defines three types of data: deviceCode (device code), productCode (product code) and identifier (unique identifier), which helps to efficiently and accurately find the restart sub-device.
[0049] A system for remotely restarting multiple heterogeneous devices.
[0050] The cloud platform is used to register the sub-device information and the terminal gateway corresponding to the sub-device, and load the vendor driver that the sub-device and the terminal gateway rely on; use the Netty framework to start the TCP server to monitor the connection status of the registered device; initiate the restart task for the specified sub-device according to the restart data packet; send the restart instruction to the communication channel of each sub-device that needs to be restarted;
[0051] The terminal gateway establishes a communication connection with the cloud platform using a first communication protocol, wherein the first communication protocol includes a restart data packet; after receiving the restart instruction, the terminal gateway translates the instruction into an execution instruction compatible with the sub-device, performs a restart action, or forwards the instruction to a subordinate sub-device;
[0052] The sub-device establishes a communication connection with the cloud platform using the first communication protocol; and performs a restart action after receiving the restart instruction.
[0053] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for implementing remote restart of multiple heterogeneous devices, characterized in that: include: The cloud platform registers the sub-device and the terminal gateway corresponding to the sub-device, and loads the vendor driver that the sub-device and the terminal gateway rely on; The cloud platform uses the Netty framework to start the TCP server to monitor the connection status of the registered device; The terminal gateway or sub-device establishes a communication connection with the cloud platform using a first communication protocol, wherein the first communication protocol includes a restart data packet; The cloud platform initiates a restart task for the designated sub-device according to the restart data packet; The cloud platform sends a restart instruction to the communication channel of each device that needs to be restarted; After receiving the restart instruction, the terminal gateway translates it into an execution instruction compatible with the sub-device, performs a restart action or forwards the restart instruction to the subordinate sub-device; The sub-device performs a restart action after receiving the restart instruction.
2. The method according to claim 1, characterized in that Also includes: After the terminal gateway or sub-device completes the restart action, it reports the result to the cloud platform step by step.
3. The method according to claim 1, characterized in that The restart data packet defines the device code, product code and unique identifier of the terminal gateway or sub-device.
4. The method according to claim 3, characterized in that The cloud platform initiates a restart task for the designated sub-device according to the restart data packet, including: the cloud platform first determines the supplier driver according to the product code, then determines the communication element according to the device code, and finally determines to initiate the restart task according to the unique identifier.
5. A system for implementing remote restart of multiple heterogeneous devices, characterized in that: include: The cloud platform is used to register the sub-device and the terminal gateway corresponding to the sub-device, and load the vendor driver that the sub-device and the terminal gateway rely on; Use the Netty framework to start the TCP server to monitor the connection status of the registered device; initiate the restart task of the specified sub-device according to the restart data packet; send a restart instruction to the communication channel of each sub-device that needs to be restarted; The terminal gateway establishes a communication connection with the cloud platform using a first communication protocol, wherein the first communication protocol includes the restart data packet; after receiving the restart instruction, the terminal gateway translates the instruction into an execution instruction compatible with the sub-device, performs a restart action or forwards the instruction to the subordinate sub-device; The sub-device establishes a communication connection with the cloud platform using a first communication protocol; and performs a restart action after receiving the restart instruction.
6. The system according to claim 5, characterized in that The restart data packet defines the device code, product code and unique identifier of the terminal gateway or sub-device; the cloud platform initiates a restart task for the designated sub-device according to the restart data packet, including: the cloud platform first determines the supplier driver according to the product code, then determines the communication element according to the device code, and finally determines to initiate the restart task according to the unique identifier.
Citation Information
Patent Citations
Method, device and system thereof for calling remote hardware resources
CN103036916A
Method and system for remote startup and shutdown
CN106375476A
Cloud-platform-based remote operation and maintenance system
CN108681288A