A control method, device, equipment and storage medium for keeping equipment online

By obtaining and saving the IoT code when the device computer board is powered on for the first time, and re-registering it when reacquisition fails during subsequent power-ups, the problem of cloud data confusion caused by the matching of communication modules in different device computer boards is solved, ensuring Ensure the normal online and operating status monitoring of the equipment.

CN113810449BActive Publication Date: 2024-08-27GUANGDONG PHNIX ECO ENERGY SOLUTION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010555925.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-17
Publication Date
2024-08-27
Estimated Expiration
2040-06-17

AI Technical Summary

Technical Problem

When the communication module is used as a universal accessory for equipment, the communication module is used in computer boards of different equipment, which results in data confusion easily occurring when cloud registration goes online, affecting the online management of the equipment.

Method used

Obtain the IoT code for cloud registration when the device's computer board is powered on for the first time, and save it in the preset storage location. If the acquisition fails during subsequent power-ups, the IoT code is re-obtained from the preset storage location for cloud registration. Ensure that equipment is online normally and monitored for operating status.

Benefits of technology

It reduces cloud data confusion caused by communication module adjustments, ensures the normal online and operational status monitoring of equipment, and improves the stability of online equipment management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113810449B
    Figure CN113810449B
Patent Text Reader

Abstract

The embodiment of the present application discloses a control method, device, equipment and storage medium for keeping a device online. The technical solution provided by the embodiment of the present application obtains the IoT code of the device computer board when the device computer board is powered on for the first time to register and go online in the cloud, and uses the IoT code of the device computer board to register and go online, thereby reducing the situation where cloud data confusion is caused by the adjustment of the communication module, and saves the IoT code in a preset storage location. When the device computer board loses the IoT code and fails to successfully obtain the IoT code during subsequent power-ons, the IoT code is re-obtained from the preset storage location, and then the cloud registration and online is performed based on the IoT code, thereby ensuring the normal online of the device computer board and monitoring of the operating status of the device computer board.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a control method, apparatus, device and storage medium for keeping a device online. Background Art

[0002] Traditional IoT devices generally use the WiFi MAC address or the DTU IMEI as the unique authentication identifier when they are registered and launched in the cloud. This solution is suitable for devices with integrated communication modules (WiFi modules, DTU modules) and device computer boards. The cloud can identify the MAC address / IMEI as the unique identification code of the device.

[0003] However, when the communication module is used as a universal accessory of the device, the communication module can be matched with computer boards of different devices. If the unique identification code (MAC address, IMEI) of the communication module is used as the only authentication mark for cloud registration and online launch, changes in the communication module may easily lead to confusion in the cloud data, which is not conducive to online management of the device. Summary of the invention

[0004] Embodiments of the present application provide a control method, apparatus, device, and storage medium for keeping a device online, so as to optimize the online management of the device.

[0005] In a first aspect, an embodiment of the present application provides a control method for keeping a device online, comprising:

[0006] In response to the first power-on of the device computer board, the IoT code of the device computer board is obtained to register and go online in the cloud;

[0007] Saving the IoT code to a preset storage location;

[0008] In response to a subsequent power-on failure event of the device computer board obtaining the IoT code, obtaining the IoT code from the preset storage location;

[0009] The cloud registration and online operation are performed based on the IoT code.

[0010] Furthermore, the step of saving the IoT code to a preset storage location includes:

[0011] The IoT code is saved to a local storage location and / or the IoT code is saved to the cloud.

[0012] Furthermore, the step of saving the IoT code to the cloud includes:

[0013] Report its own identification code to the cloud, and the cloud will save the corresponding relationship between the IoT code and the identification code.

[0014] Further, in response to the subsequent power-on failure event of obtaining the IoT code on the device computer board, obtaining the IoT code from the preset storage location includes:

[0015] In response to a subsequent power-on failure to obtain the IoT code, obtaining the IoT code from a local storage location; and / or

[0016] In response to a subsequent power-on failure to obtain the IoT code, the corresponding IoT code is obtained from the cloud based on its own identification code.

[0017] Further, in response to the subsequent power-on failure event of obtaining the IoT code on the device computer board, obtaining the IoT code from the preset storage location includes:

[0018] In response to a subsequent power-on failure event of the device computer board obtaining the IoT code, determining whether the IoT code is stored in a local storage location;

[0019] If yes, then get the IoT code from the local storage location;

[0020] Otherwise, the corresponding IoT code is obtained from the cloud based on its own identification code.

[0021] Furthermore, the cloud registration and going online based on the IoT code includes:

[0022] Sending the IoT code to the device computer board so that the device computer board stores the IoT code;

[0023] Obtain the IoT code from the device computer board and register and go online in the cloud based on the IoT code.

[0024] Furthermore, in response to the subsequent power-on failure event of the device computer board obtaining the IoT code, before obtaining the IoT code from the preset storage location, the method further includes:

[0025] In response to the device computer board being subsequently powered on, querying the device computer board to obtain the IoT code;

[0026] If the IoT code is successfully obtained, the cloud registration and online operation will be carried out based on the IoT code;

[0027] If the IoT code is not obtained successfully, the device computer board is confirmed to fail to obtain the IoT code after powering on.

[0028] In a second aspect, an embodiment of the present application provides a control device for keeping a device online, including an initial registration module, an IoT code storage module, an IoT code re-acquisition module, and a subsequent registration module, wherein:

[0029] The first registration module is used to obtain the IoT code of the device computer board to register and go online in the cloud in response to the first power-on of the device computer board;

[0030] An IoT code saving module, used to save the IoT code to a preset storage location;

[0031] An IoT code re-acquisition module, configured to acquire the IoT code from the preset storage location in response to a failure event in which the device computer board subsequently powers on to acquire the IoT code;

[0032] The subsequent registration module is used to register and go online in the cloud based on the IoT code.

[0033] Furthermore, the IoT code storage module is specifically used for:

[0034] Save the IoT code to a local storage location and / or save the IoT code to the cloud

[0035] Furthermore, when the IoT code saving module saves the IoT code to the cloud, specifically: reporting its own identification code to the cloud, and the cloud saves the corresponding relationship between the IoT code and the identification code.

[0036] Furthermore, the IoT code re-acquisition module is specifically used for:

[0037] In response to a subsequent power-on failure to obtain the IoT code, obtaining the IoT code from a local storage location; and / or

[0038] In response to a subsequent power-on failure to obtain the IoT code, the corresponding IoT code is obtained from the cloud based on its own identification code.

[0039] Furthermore, the IoT code re-acquisition module is specifically used for:

[0040] In response to a subsequent power-on failure event of the device computer board obtaining the IoT code, determining whether the IoT code is stored in a local storage location;

[0041] If yes, then get the IoT code from the local storage location;

[0042] Otherwise, the corresponding IoT code is obtained from the cloud based on its own identification code.

[0043] Furthermore, the subsequent registration module is specifically used for:

[0044] Sending the IoT code to the device computer board so that the device computer board stores the IoT code;

[0045] Obtain the IoT code from the device computer board and register and go online in the cloud based on the IoT code.

[0046] Furthermore, the device further comprises a subsequent power-on module, wherein the subsequent power-on module is used for:

[0047] In response to the device computer board being subsequently powered on, querying the device computer board to obtain the IoT code;

[0048] If the IoT code is successfully obtained, the cloud registration and online operation will be carried out based on the IoT code;

[0049] If the IoT code is not obtained successfully, the device computer board is confirmed to fail to obtain the IoT code after powering on.

[0050] In a third aspect, an embodiment of the present application provides a computer device, including: a memory and one or more processors;

[0051] The memory is used to store one or more programs;

[0052] When the one or more programs are executed by the one or more processors, the one or more processors implement the control method for keeping a device online as described in the first aspect.

[0053] In a fourth aspect, an embodiment of the present application provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute the control method for keeping a device online as described in the first aspect.

[0054] The embodiment of the present application obtains the IoT code of the device computer board for cloud registration and online when the device computer board is powered on for the first time, and uses the IoT code of the device computer board to register and go online, thereby reducing the confusion of cloud data caused by adjustment of the communication module, and saves the IoT code in a preset storage location. When the device computer board loses the IoT code and fails to successfully obtain the IoT code on subsequent power-ons, the IoT code is re-obtained from the preset storage location, and then cloud registration and online are performed based on the IoT code, thereby ensuring the normal online of the device computer board and monitoring of the operating status of the device computer board. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 is a flow chart of a control method for keeping a device online provided by an embodiment of the present application;

[0056] Figure 2 is a flow chart of another control method for keeping a device online provided by an embodiment of the present application;

[0057] Figure 3 is a flow chart of another control method for keeping a device online provided by an embodiment of the present application;

[0058] Figure 4 It is a structural schematic diagram of a control device for keeping a device online provided in an embodiment of the present application;

[0059] Figure 5 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0061] Figure 1 A flow chart of a control method for keeping a device online provided in an embodiment of the present application is given. The control method for keeping a device online provided in an embodiment of the present application can be executed by a control device for keeping the device online. The control device for keeping the device online can be implemented by hardware and / or software and integrated in a computer device (such as a communication module).

[0062] The following description is made by taking the control method for keeping a device online executed by the control device for keeping a device online as an example. Figure 1 , the control method for keeping the device online includes:

[0063] S101: In response to the first power-on of the device computer board, the IoT code of the device computer board is obtained to register and go online in the cloud.

[0064] Among them, the IoT code can be the serial number of the device computer board, device ID, IP address, etc., which can be used to uniquely identify the device computer board. This embodiment is described using the serial number of the device computer board as an example.

[0065] Exemplarily, the device computer board is electrically connected to the communication module, and the communication module is connected to the cloud server through the GSM (2G / 3G / 4G) network, the Internet, etc. When the device computer board or the communication module is powered on for the first time, the communication module asks the device computer board for the IoT code. After the device computer board returns the IoT code to the communication module, the communication module registers and goes online in the cloud using the IoT code. After successful registration and online, the cloud server can remotely monitor and manage the device computer board according to the IoT code.

[0066] S102: Save the IoT code to a preset storage location.

[0067] For example, after successfully registering and going online in the cloud using the IoT code of the device computer board, the IoT code is saved in a preset storage location. It is understandable that the preset storage location can be a local storage space or a cloud storage space, which is not limited in this embodiment.

[0068] S103: In response to an event that the device computer board fails to obtain the IoT code upon subsequent power-on, obtaining the IoT code from the preset storage location.

[0069] When the device computer board is powered on subsequently, the communication module inquires the device computer board for the IoT code. If the device computer board fails to return the IoT code correctly or the IoT code is empty, it is determined that a failure has occurred in the subsequent power-on acquisition of the IoT code by the device computer board. The IoT code is then acquired from the preset storage location where the IoT code was stored when the device computer board was powered on for the first time.

[0070] S104: Register and go online in the cloud based on the IoT code.

[0071] For example, after re-obtaining the IoT code from the preset storage location, cloud registration and online operation can be performed based on the IoT code to ensure that the device computer board can be online normally after the second power-on, and the cloud can continue to monitor the operating status of the device.

[0072] It is understandable that after the communication module obtains the IoT code from the preset storage location, it can directly register and go online in the cloud based on the IoT code, or it can send the IoT code to the device computer board and then register and go online in the cloud based on the IoT code returned by the device computer board. This embodiment is not limited to this.

[0073] In the above, by obtaining the IoT code of the device computer board for cloud registration and online when the device computer board is powered on for the first time, the IoT code of the device computer board is used for registration and online, thereby reducing the confusion of cloud data caused by adjustment of the communication module, and saving the IoT code in a preset storage location. When the device computer board loses the IoT code and fails to successfully obtain the IoT code on subsequent power-ons, the IoT code is re-obtained from the preset storage location, and then cloud registration and online are performed based on the IoT code, thereby ensuring the normal online operation of the device computer board and monitoring of the operating status of the device computer board.

[0074] Figure 2 A flowchart of another control method for keeping a device online provided in an embodiment of the present application, wherein the control method for keeping a device online is a specific embodiment of the control method for keeping a device online. Figure 2 , the control method for keeping the device online includes:

[0075] S201: In response to the first power-on of the device computer board, the IoT code of the device computer board is obtained to register and go online in the cloud.

[0076] S202: Save the IoT code to a preset storage location.

[0077] In this embodiment, the preset storage location includes a local storage location and / or a cloud. The local storage location is a storage space local to the communication module, and the storage location in the cloud is a cloud database. The preset storage location can select a local storage location or a cloud according to the layout requirements.

[0078] If the local storage location is selected as the preset storage location, step S202 specifically includes:

[0079] S2021: Save the IoT code to a local storage location.

[0080] Specifically, after the IoT code obtained from the device computer board is successfully registered on the cloud, the IoT code is directly saved in the local storage location of the communication module.

[0081] If the cloud is selected as the preset storage location, step S202 specifically includes:

[0082] S2022: Save the IoT code to the cloud.

[0083] Specifically, saving the IoT code to the cloud specifically includes: reporting its own identification code to the cloud, and the cloud saves the corresponding relationship between the IoT code and the identification code.

[0084] The identification code of the communication module itself is specifically the identification information of the communication module such as the MAC address or IMEI, which can be used to uniquely identify the communication module. After the cloud registration based on the IoT code obtained from the device computer board is successful, the communication module reports its own identification code to the cloud.

[0085] After receiving the identification code, the cloud binds the identification code with the successfully registered IoT code to form a corresponding relationship between the IoT code and the identification code, and saves the corresponding relationship in the cloud database. The corresponding IoT code can be found in the cloud database according to the identification code.

[0086] S203: In response to the device computer board being powered on subsequently, querying the device computer board to obtain the IoT code.

[0087] S204: Determine whether the IoT code is successfully obtained. If yes, jump to step S205; otherwise, jump to step S206.

[0088] S205: Register and go online in the cloud based on the IoT code.

[0089] If the IoT code is successfully obtained, the cloud registration and online operation is performed based on the IoT code. After the device is re-registered and online, the process can jump to step S203 to wait for the device computer board to be powered on again next time.

[0090] S206: Confirm that the device computer board fails to obtain the IoT code after powering on.

[0091] If the IoT code is not successfully obtained, for example, the device computer board times out and does not return the IoT code or the returned IoT code is empty or abnormal, then the subsequent power-on failure event of the device computer board to obtain the IoT code is confirmed, and the process jumps to step S207 to retrieve the IoT code again to ensure that the device computer board can go online normally after the second power-on.

[0092] S207: In response to an event that the device computer board fails to obtain the IoT code upon subsequent power-on, obtaining the IoT code from the preset storage location.

[0093] Specifically, when it is determined that an event of failure to obtain the IoT code when the device computer board is subsequently powered on occurs, the IoT code is obtained from a preset storage location where the IoT code is stored when the device computer board is powered on for the first time.

[0094] If the local storage location is selected as the preset storage location, step S207 specifically includes:

[0095] S2071: In response to a subsequent power-on failure event for obtaining the IoT code, obtain the IoT code from a local storage location.

[0096] When it is determined that the device computer board fails to obtain the IoT code after powering on, the IoT code is directly obtained from the local storage location.

[0097] If the cloud is selected as the preset storage location, step S207 specifically includes:

[0098] S2072: In response to a subsequent power-on failure to obtain the IoT code event, obtain a corresponding IoT code from the cloud based on the own identification code.

[0099] When it is determined that the device computer board fails to obtain the IoT code after powering on, the communication module generates an IoT code acquisition request carrying its own identification code and sends the IoT code acquisition request to the cloud. After receiving the IoT code acquisition request, the cloud obtains the identification code carried in the IoT code acquisition request, determines the IoT code previously used by the communication module to register online based on the corresponding relationship between the identification code and the IoT code, and returns the IoT code to the communication module.

[0100] S208: Send the IoT code to the device computer board so that the device computer board saves the IoT code.

[0101] Specifically, after obtaining the IoT code from the preset storage location, the IoT code is sent to the device computer board. After receiving the IoT code sent by the communication module, the device computer board saves the IoT code or replaces the abnormal local IoT code, so that the device computer board has the original IoT code again, ensuring that the device computer board can normally return the IoT code to the communication module when it is powered on later.

[0102] S209: Obtain the IoT code from the device computer board and register and go online in the cloud based on the IoT code.

[0103] Specifically, after the IoT code is re-injected into the device computer board, the IoT code is asked from the device computer board again. At this time, the device computer board returns the stored IoT code to the communication module, and the communication module can re-register on the cloud based on the IoT code.

[0104] In a possible embodiment, if the IoT code is still not successfully obtained, the IoT code is obtained from the preset storage location and injected back to the device computer board until the preset injection number is reached. If the IoT code is still not successfully obtained after the preset injection number is reached, an error is reported through the cloud.

[0105] As mentioned above, by obtaining the IoT code of the device computer board for cloud registration and online when the device computer board is powered on for the first time, the IoT code of the device computer board is used for registration and online, so as to reduce the confusion of cloud data caused by the adjustment of the communication module, and save the IoT code in the preset storage location. When the device computer board loses the IoT code and fails to successfully obtain the IoT code at the subsequent power-on, the IoT code is re-obtained in the preset storage location, and then the cloud registration and online is performed based on the IoT code, so as to ensure the normal online of the device computer board and the monitoring of the operation status of the device computer board. At the same time, according to the layout needs, the local storage location or the cloud can be selected as the preset storage location, the IoT code of the device computer board can be effectively recorded, and the IoT code can be re-injected into the device computer board, so that the device computer board can regain the original IoT code, effectively reducing the situation where the device cannot go online normally when the IoT code is lost or abnormal due to after-sales processing of electronic control or other reasons.

[0106] Figure 3 A flowchart of another control method for keeping a device online provided in an embodiment of the present application, wherein the control method for keeping a device online is a specific embodiment of the control method for keeping a device online. Figure 3 , the control method for keeping the device online includes:

[0107] S301 responds to the first power-on of the device computer board, and obtains the IoT code of the device computer board to register and go online in the cloud.

[0108] S302: Save the IoT code to a local storage location and the cloud.

[0109] This embodiment uses both the local storage location and the cloud as the preset storage location. Specifically, after the cloud registration is successful based on the IoT code obtained from the device computer board, the communication module saves the IoT code to the local storage location and reports its own identification code to the cloud. The cloud binds the identification code with the successfully registered IoT code to form a corresponding relationship between the IoT code and the identification code, and saves the corresponding relationship in the cloud database.

[0110] S303: In response to the device computer board being powered on subsequently, querying the device computer board to obtain the IoT code.

[0111] S304: Determine whether the IoT code is successfully obtained. If yes, jump to step S305; otherwise, jump to step S306.

[0112] S305: Register and go online in the cloud based on the IoT code.

[0113] If the IoT code is successfully obtained, the cloud registration and online operation is performed based on the IoT code. After the device is re-registered and online, the process can jump to step S303 to wait for the device computer board to be powered on again next time.

[0114] S306: Confirm that the device computer board fails to obtain the IoT code after powering on.

[0115] If the IoT code is not successfully obtained, for example, the device computer board times out and does not return the IoT code or the returned IoT code is empty or abnormal, then the subsequent power-on failure event of the device computer board to obtain the IoT code is confirmed, and the process jumps to step S307 to retrieve the IoT code again to ensure that the device computer board can go online normally after the second power-on.

[0116] S307: Determine whether the IoT code is stored in the local storage location. If yes, jump to step S308; otherwise, jump to step S309.

[0117] Specifically, when the device computer board fails to obtain the IoT code when it is powered on subsequently, first determine whether the IoT code is saved in the local storage location. If the IoT code can be found in the local storage location, jump to step S308; otherwise, jump to step S309 to obtain the IoT code from the cloud.

[0118] S308: Obtain the IoT code from the local storage location.

[0119] When it is determined that the IoT code is found in the local storage location, the IoT code is directly obtained, and the process jumps to step S310 to register and go online in the cloud.

[0120] S309: Obtain the corresponding IoT code from the cloud based on its own identification code.

[0121] If the IoT code cannot be found in the local storage location of the communication module, the communication module generates an IoT code acquisition request carrying its own identification code and sends the IoT code acquisition request to the cloud. After receiving the IoT code acquisition request, the cloud obtains the identification code carried in the IoT code acquisition request, determines the IoT code previously used by the communication module to register online based on the corresponding relationship between the identification code and the IoT code, and returns the IoT code to the communication module.

[0122] S310: Register and go online in the cloud based on the IoT code.

[0123] Specifically, after obtaining the IoT code from a local storage location or the cloud, the IoT code is sent to the device computer board so that the device computer board can save the IoT code or replace the local abnormal IoT code, so that the device computer board can regain the original IoT code.

[0124] Furthermore, after the IoT code is re-injected into the device computer board, the device computer board is asked for the IoT code again. At this time, the device computer board returns the stored IoT code to the communication module, and the communication module can re-register on the cloud based on the IoT code.

[0125] As mentioned above, when the device computer board is powered on for the first time, the IoT code of the device computer board is obtained for cloud registration and online, and the IoT code of the device computer board is used for registration and online, so as to reduce the confusion of cloud data caused by the adjustment of the communication module, and save the IoT code in the preset storage location. When the device computer board loses the IoT code and fails to successfully obtain the IoT code in the subsequent power-on, the IoT code is re-obtained in the preset storage location, and then the cloud registration and online is performed based on the IoT code, so as to ensure the normal online of the device computer board and the monitoring of the operation status of the device computer board. At the same time, the IoT code is stored synchronously in the local storage location and the cloud. When the IoT code cannot be found in the local storage location, the IoT code is re-injected from the cloud, so as to effectively record the IoT code. When the IoT code in the local storage location is lost, it can also be retrieved from the cloud, so as to further ensure the normal online of the device computer board.

[0126] In a possible embodiment, when the device computer board fails to obtain the IoT code when it is subsequently powered on and the IoT code is obtained from the local storage location, the validity of the IoT code is judged to determine whether the formats of the IoT code meet the IoT code format requirements. If not, the IoT code is obtained again from the cloud and replaces the original IoT code in the local storage location.

[0127] Figure 4 A schematic diagram of the structure of a control device for keeping a device online provided by an embodiment of the present application is given. Figure 4 The control device for keeping the device online provided in this embodiment includes an initial registration module 41, an IoT code storage module 42, an IoT code re-acquisition module 43 and a subsequent registration module 44.

[0128] Among them, the first registration module 41 is used to respond to the first power-on of the device computer board, obtain the IoT code of the device computer board for cloud registration and online; the IoT code saving module 42 is used to save the IoT code to a preset storage location; the IoT code re-acquisition module 43 is used to respond to the subsequent power-on failure event of obtaining the IoT code of the device computer board, and obtain the IoT code from the preset storage location; the subsequent registration module 44 is used to perform cloud registration and online based on the IoT code.

[0129] In the above, by obtaining the IoT code of the device computer board for cloud registration and online when the device computer board is powered on for the first time, the IoT code of the device computer board is used for registration and online, thereby reducing the confusion of cloud data caused by adjustment of the communication module, and saving the IoT code in a preset storage location. When the device computer board loses the IoT code and fails to successfully obtain the IoT code on subsequent power-ons, the IoT code is re-obtained from the preset storage location, and then cloud registration and online are performed based on the IoT code, thereby ensuring the normal online operation of the device computer board and monitoring of the operating status of the device computer board.

[0130] In a possible embodiment, the IoT code storage module 42 is specifically used for:

[0131] Save the IoT code to a local storage location and / or save the IoT code to the cloud

[0132] In a possible embodiment, when the IoT code saving module 42 saves the IoT code to the cloud, specifically: reporting its own identification code to the cloud, and the cloud saves the corresponding relationship between the IoT code and the identification code.

[0133] In a possible embodiment, the IoT code re-acquisition module 43 is specifically used to:

[0134] In response to a subsequent power-on failure to obtain the IoT code, obtaining the IoT code from a local storage location; and / or

[0135] In response to a subsequent power-on failure to obtain the IoT code, the corresponding IoT code is obtained from the cloud based on its own identification code.

[0136] In a possible embodiment, the IoT code re-acquisition module 43 is specifically used to:

[0137] In response to a subsequent power-on failure event of the device computer board obtaining the IoT code, determining whether the IoT code is stored in a local storage location;

[0138] If yes, then get the IoT code from the local storage location;

[0139] Otherwise, the corresponding IoT code is obtained from the cloud based on its own identification code.

[0140] In a possible embodiment, the subsequent registration module 44 is specifically used for:

[0141] Sending the IoT code to the device computer board so that the device computer board stores the IoT code;

[0142] Obtain the IoT code from the device computer board and register and go online in the cloud based on the IoT code.

[0143] In a possible embodiment, the device further includes a subsequent power-on module, and the subsequent power-on module is used to:

[0144] In response to the device computer board being subsequently powered on, querying the device computer board to obtain the IoT code;

[0145] If the IoT code is successfully obtained, the cloud registration and online operation will be carried out based on the IoT code;

[0146] If the IoT code is not obtained successfully, the device computer board is confirmed to fail to obtain the IoT code after powering on.

[0147] The embodiment of the present application also provides a computer device, which can integrate the control device for keeping the device online provided in the embodiment of the present application. Figure 5 Schematic diagram of a computer device provided in an embodiment of the present application. Figure 5 The computer device includes: an input device 53, an output device 54, a memory 52 and one or more processors 51; the memory 52 is used to store one or more programs; when the one or more programs are executed by the one or more processors 51, the one or more processors 51 implement the control method for keeping the device online as provided in the above embodiment. The input device 53, the output device 54, the memory 52 and the processor 51 can be connected by a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0148] The memory 52, as a computing device readable storage medium, can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the control method for keeping the device online described in any embodiment of the present application (for example, the first registration module 41, the IoT code storage module 42, the IoT code re-acquisition module 43 and the subsequent registration module 44 in the control device for keeping the device online). The memory 52 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 52 may further include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0149] The input device 53 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 54 may include a display device such as a display screen.

[0150] The processor 51 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 52, that is, implements the above-mentioned control method for keeping the device online.

[0151] The control device, system and computer for keeping a device online provided above can be used to execute the control method for keeping a device online provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0152] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a control method for keeping a device online as provided in the above embodiment, and the control method for keeping a device online includes: in response to the first power-on of a device computer board, obtaining an Internet of Things code of the device computer board for cloud registration and online; saving the Internet of Things code to a preset storage location; in response to a subsequent power-on failure event of obtaining the Internet of Things code on the device computer board, obtaining the Internet of Things code from the preset storage location; and performing cloud registration and online based on the Internet of Things code.

[0153] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0154] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present application is not limited to the control method for keeping a device online as described above, and can also execute related operations in the control method for keeping a device online provided in any embodiment of the present application.

[0155] The control apparatus, device and storage medium for keeping the device online provided in the above embodiments can execute the control method for keeping the device online provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the control method for keeping the device online provided in any embodiment of the present application.

[0156] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A control method for keeping a device online, executed by a communication module integrated in the device, characterized in that: include: In response to the first power-on of the device computer board, the IoT code of the device computer board is obtained to register and go online in the cloud, and the communication module is connected to the device computer board; Saving the IoT code to a preset storage location, including: saving the IoT code to a local storage location of the communication module and / or saving the IoT code to the cloud; In response to a subsequent power-on failure event of the device computer board obtaining the IoT code, obtaining the IoT code from the preset storage location; Register and go online in the cloud based on the IoT code; The step of saving the IoT code to the cloud includes: Report its own identification code to the cloud, and the cloud saves the corresponding relationship between the IoT code and the identification code, wherein its own identification code is the identification code of the communication module.

2. The control method for keeping equipment online according to claim 1, characterized in that: The step of obtaining the IoT code from the preset storage location in response to a subsequent power-on failure event of the device computer board obtaining the IoT code comprises: In response to a subsequent power-on failure to obtain the IoT code, obtaining the IoT code from a local storage location; and / or In response to a subsequent power-on failure to obtain the IoT code, the corresponding IoT code is obtained from the cloud based on its own identification code.

3. The control method for keeping equipment online according to claim 1, characterized in that: The step of obtaining the IoT code from the preset storage location in response to a subsequent power-on failure event of the device computer board obtaining the IoT code comprises: In response to a subsequent power-on failure event of the device computer board obtaining the IoT code, determining whether the IoT code is stored in a local storage location; If yes, then get the IoT code from the local storage location; Otherwise, the corresponding IoT code is obtained from the cloud based on its own identification code.

4. The control method for keeping equipment online according to claim 1, characterized in that: The cloud registration and going online based on the IoT code includes: Sending the IoT code to the device computer board so that the device computer board stores the IoT code; Obtain the IoT code from the device computer board and register and go online in the cloud based on the IoT code.

5. The control method for keeping equipment online according to claim 1, characterized in that: In response to the subsequent power-on failure event of the device computer board obtaining the IoT code, before obtaining the IoT code from the preset storage location, the method further includes: In response to the device computer board being subsequently powered on, querying the device computer board to obtain the IoT code; If the IoT code is successfully obtained, the cloud registration and online operation will be carried out based on the IoT code; If the IoT code is not obtained successfully, the device computer board is confirmed to fail to obtain the IoT code after powering on.

6. A control device for keeping a device online, characterized in that: It includes the first registration module, IoT code saving module, IoT code re-acquisition module and subsequent registration module, among which: The first registration module is used to obtain the IoT code of the device computer board to register and go online in the cloud in response to the first power-on of the device computer board; An IoT code saving module, used to save the IoT code to a preset storage location, specifically to save the IoT code to a local storage location and / or to save the IoT code to the cloud, and specifically to report its own identification code to the cloud, so that the cloud saves the corresponding relationship between the IoT code and the identification code; An IoT code re-acquisition module, configured to acquire the IoT code from the preset storage location in response to a failure event in which the device computer board subsequently powers on to acquire the IoT code; The subsequent registration module is used to register and go online in the cloud based on the IoT code.

7. A computer device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the control method for keeping a device online as described in any one of claims 1-5.

8. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the control method for keeping a device online as described in any one of claims 1 to 5 when executed by a computer processor.