Intelligent device exception recovery method and apparatus, electronic device, and device area network
By acquiring black-box summary information and broadcasting a rescue request when a fault occurs through intelligent devices, and then reading and upgrading the network-connected devices, the problem of efficient and reliable recovery from faults during the operation of intelligent devices is solved, and the efficiency of fault location and handling is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HAIER YOUJIA INTELLIGENT TECH (BEIJING) CO LTD
- Filing Date
- 2026-04-20
- Publication Date
- 2026-07-14
Smart Images

Figure CN122394983A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home technology, and in particular to a method, apparatus, electronic device, and device local area network for recovering from abnormalities in smart devices. Background Technology
[0002] With the booming development of smart devices and the increasing prevalence of smart modules, smart homes, smart security, and smart energy are being implemented on a large scale, leading to an exponential surge in the number of smart devices. However, the increasing complexity of device hardware and software, along with the more diverse operating environments, has resulted in frequent issues during actual use. On the one hand, program execution often encounters anomalies, such as crashes, infinite loops, and module failures; on the network side, Wi-Fi or BLE link failures cause network disconnections; and system resources are often excessively consumed, resulting in abnormal CPU, memory, and RF channel usage.
[0003] Existing technologies have many shortcomings in addressing these issues. While software watchdog restart mechanisms can restart devices, they cannot obtain information about the abnormal situation, and restarting can also cause data loss. User feedback and on-site troubleshooting methods are time-consuming and inefficient. Manual analysis based on logs is difficult to identify and resolve problems due to the highly scattered nature of abnormal data.
[0004] Therefore, how to efficiently and reliably recover from malfunctions that occur during the operation of smart devices is a technical problem that urgently needs to be solved. Summary of the Invention
[0005] This invention provides a method, apparatus, electronic device, and device local area network for recovering from abnormalities in smart devices, in order to overcome the above-mentioned defects in the prior art and to efficiently and reliably recover from faults that occur in smart devices during operation.
[0006] This invention provides a method for recovering from anomalies in smart devices, applicable to smart devices within a local area network. The method includes the following steps: The system determines that it has malfunctioned; obtains black-box summary information of the current fault status data; broadcasts an anomaly rescue request within the device's local area network; wherein, after detecting the broadcast of the anomaly rescue request, the network interconnection device establishes a connection with the smart device and reads the black-box summary information from the smart device; receives an update packet sent by the network interconnection device; wherein, the update packet corresponds to the black-box summary information; the update packet is received from the cloud server after the network interconnection device reports the black-box summary information to the cloud server; and performs an online upgrade operation based on the update packet.
[0007] According to a method for abnormal recovery of a smart device provided by the present invention, the method further includes: generating a data fingerprint of the black box digest information; generating an abnormal recovery request based on the data fingerprint of the black box digest information; wherein, after receiving the abnormal recovery request, the network interconnection device uses the data fingerprint of the black box digest information carried in the abnormal recovery request as a key to read the black box digest information from the smart device.
[0008] According to a method for abnormal recovery of a smart device provided by the present invention, the smart device is a Bluetooth Low Energy device; the step of generating the abnormal rescue request based on the data fingerprint of the black box digest information includes: constructing a broadcast packet based on the data fingerprint of the black box digest information; wherein the broadcast packet carries the data fingerprint of the black box digest information and the rescue communication endpoint of the smart device; writing a preset general attribute profile service identifier into the broadcast packet to obtain the abnormal rescue request; wherein the general attribute profile service identifier carries a first self-rescue service identifier; the first self-rescue service identifier is used to identify the broadcast packet as an abnormal rescue request; wherein, after receiving the broadcast packet, the network interconnection device reads the black box digest information from the rescue communication endpoint of the smart device through the Bluetooth Low Energy GATT service, using the data fingerprint of the black box digest information as a key.
[0009] According to a method for abnormal recovery of a smart device provided by the present invention, the smart device is a Wi-Fi device; the step of generating the abnormal rescue request based on the data fingerprint of the black box digest information includes: constructing a Wi-Fi management frame based on the data fingerprint of the black box digest information to obtain the abnormal rescue request; wherein, the vendor-specific information element field of the Wi-Fi management frame includes the data fingerprint of the black box digest information, the rescue communication endpoint of the smart device, and a second self-rescue service identifier; wherein, the second self-rescue service identifier is used to identify the Wi-Fi management frame as an abnormal rescue request; wherein, after receiving the Wi-Fi management frame, the network interconnection device reads the black box digest information from the rescue communication endpoint of the smart device through the Wi-Fi protocol, using the data fingerprint of the black box digest information as a key.
[0010] This invention also provides a method for recovering from anomalies in smart devices, applied to network interconnection devices within a local area network, the method comprising: The system detects broadcasts of abnormal rescue requests, establishes a connection with the smart device broadcasting the abnormal rescue request, and reads black-box summary information of fault status data from the smart device; wherein, the abnormal rescue request is broadcast by the smart device after it determines that it has malfunctioned; the black-box summary information is obtained by the smart device after it determines that it has malfunctioned; the black-box summary information is reported to a cloud server; an update package is received from the cloud server; wherein, the update package corresponds to the black-box summary information; the update package is sent to the smart device to instruct the smart device to perform an online upgrade operation based on the update package.
[0011] According to a method for abnormal recovery of a smart device provided by the present invention, the abnormal rescue request is obtained by writing a preset general attribute profile service identifier into a broadcast packet, wherein the broadcast packet is constructed by the smart device based on the data fingerprint of the black-box digest information; wherein the broadcast packet carries the data fingerprint of the black-box digest information and the rescue communication endpoint of the smart device; the general attribute profile service identifier carries a first self-rescue service identifier; the first self-rescue service identifier is used to identify the broadcast packet as an abnormal rescue request; establishing a connection with the smart device broadcasting the abnormal rescue request includes: parsing the broadcast packet carrying the general attribute profile service identifier according to the abnormal rescue request, wherein the attribute profile service identifier... The system carries the first self-rescue service identifier; establishes a connection with the smart device via Bluetooth Low Energy (GATT) service; or, the abnormal rescue request is obtained by constructing a Wi-Fi management frame based on the data fingerprint of the black-box digest information; wherein, the vendor-specific information element field of the Wi-Fi management frame includes the data fingerprint of the black-box digest information, the rescue communication endpoint of the smart device, and the second self-rescue service identifier; wherein, the second self-rescue service identifier is used to identify the Wi-Fi management frame as an abnormal rescue request; establishing a connection with the smart device broadcasting the abnormal rescue request includes: parsing the Wi-Fi management frame according to the abnormal rescue request; and establishing a connection with the smart device via the Wi-Fi protocol.
[0012] According to a method for recovering from an anomaly in a smart device provided by the present invention, the step of reading the black box digest information from the smart device includes: using the data fingerprint of the black box digest information as a key to read the black box digest information from the rescue communication endpoint of the smart device.
[0013] The present invention also provides a smart device anomaly recovery device, for smart devices installed in a local area network, the device comprising the following modules: The system includes: a determination module for determining if a fault has occurred; an acquisition module for acquiring black-box summary information of the current fault status data; a broadcast module for broadcasting an anomaly rescue request within the device's local area network; wherein, after detecting the broadcast of the anomaly rescue request, the network interconnection device establishes a connection with the smart device and reads the black-box summary information from the smart device; a receiving module for receiving an update packet sent by the network interconnection device; wherein, the update packet corresponds to the black-box summary information; the update packet is received from the cloud server after the network interconnection device reports the black-box summary information to the cloud server; and an upgrade module for performing an online upgrade operation based on the update packet.
[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any of the above-described intelligent device anomaly recovery methods.
[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the intelligent device anomaly recovery method as described above.
[0016] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the intelligent device abnormal recovery method as described above.
[0017] This invention also provides a device local area network (LAN), including a network interconnection device and a smart device; wherein the smart device and the network interconnection device perform the following interactive operations: the smart device determines that it has malfunctioned; obtains black-box summary information of the fault status data at the current moment; broadcasts an abnormal rescue request within the device LAN; the network interconnection device detects the broadcast of the abnormal rescue request, establishes a connection with the smart device, reads the black-box summary information from the smart device; reports the black-box summary information to a cloud server; receives an update package from the cloud server; wherein the update package corresponds to the black-box summary information; sends the update package to the smart device; the smart device receives the update package; and performs an online upgrade operation based on the update package.
[0018] The present invention provides a method, apparatus, electronic device, and device local area network for intelligent device anomaly recovery. After determining that a fault has occurred, the intelligent device obtains a black-box summary of its current fault status data, which supports subsequent fault location. The intelligent device actively broadcasts anomaly rescue requests within its local area network, exposing the abnormal status to interconnected network devices within the network without relying on external network connectivity. Upon detecting the broadcast of the anomaly rescue request, the interconnected network devices can actively establish a connection with the intelligent device, read the black-box summary information, and obtain the update package corresponding to the black-box summary information. The intelligent device performs an online upgrade operation based on the update package, achieving automatic fault repair and service recovery. Through the structured generation and broadcasting mechanism of black-box summary information, the efficiency of fault location and processing is significantly improved, avoiding the data loss problem caused by restarts in traditional solutions. Therefore, faults occurring during the operation of intelligent devices can be recovered efficiently and reliably. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the hardware environment for an interaction method of a smart device according to an embodiment of the present invention; Figure 2 This is one of the flowcharts of the intelligent device anomaly recovery method provided by the present invention.
[0021] Figure 3 This is the second flowchart of the intelligent device anomaly recovery method provided by the present invention.
[0022] Figure 4 This is a schematic diagram of the structure of the device local area network provided by the present invention.
[0023] Figure 5 This is a schematic diagram of the structure of the intelligent device anomaly recovery device provided by the present invention.
[0024] Figure 6 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0025] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0026] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0027] According to one aspect of the embodiments of this application, an interaction method for smart home devices is provided. This interaction method for smart home devices is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned interaction method for smart home devices can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0028] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.
[0029] The following is combined with Figures 2-4 The present invention describes a method for recovering from anomalies in smart devices.
[0030] Figure 2 This is one of the flowcharts illustrating the intelligent device anomaly recovery method provided by this invention. For example... Figure 2 As shown, the method includes the following: Step 201: Determine if a malfunction has occurred.
[0031] A fault is a state in which a smart device is unable to perform its expected functions due to hardware abnormalities, software crashes, or external interference. Examples include program crashes, network disconnections, abnormal main business functions, and radio frequency abnormalities.
[0032] In practice, intelligent devices can determine that they have malfunctioned in various ways, and are not limited by the description in this manual.
[0033] Step 202: Obtain the black-box summary information of the fault status data at the current moment.
[0034] Fault status data is quantitative information recording the operating parameters of equipment when a fault occurs. Fault status data may include, but is not limited to: The complete crash stack describes the call hierarchy information at the time of the program crash, which is used to locate the crash location.
[0035] Network and radio frequency statistics include network connection quality (such as RSSI, SNR) and wireless communication status (such as Wi-Fi channel, BLE connection count).
[0036] Recent business process data is used to record key business process nodes recently executed by the device.
[0037] Register snapshots are used to capture the values of CPU registers (such as PC and SP) at the time of a crash, aiding in the analysis of the cause of the crash.
[0038] Sensor / peripheral status snapshots are used to record the real-time status of device peripherals (such as temperature and accelerometer data).
[0039] In the specific implementation process, after the intelligent device determines that it is in an abnormal state, it initiates the following self-rescue mode: stops non-critical business; starts a minimized operating environment; analyzes the source of the abnormality trigger; and obtains black-box summary information of the fault status data based on the source of the abnormality trigger.
[0040] As an example only, smart devices can extract the following key data from fault status data to form black-box summary information: register snapshot, crash stack fingerprint, main service call chain summary; network connection status, radio frequency status (BLE / Wi-Fi channel, Tx / Rx status); most recent uptime; block health, such as the operating status of "Bluetooth stack / sensor driver / service module", etc.
[0041] The register snapshot may include, but is not limited to, the following data: PC (Program Counter), which stores the address of the next instruction to be executed; LR (Link Register), which stores the function return address (used when a subroutine is called); SP (Stack Pointer), which points to the top address of the current stack; and xPSR (Extended Program Status Register), which contains condition flags (such as the zero flag and carry flag) and status information.
[0042] The network connection status may include, but is not limited to, the following data: RSSI (Received Signal Strength Indicator), which measures the power strength of the wireless signal (unit: dBm); SNR (Signal-to-Noise Ratio), which represents the ratio of signal power to noise power (unit: dB); AP (Access Point), which is the central node in a wireless local area network (such as a Wi-Fi router); BSSID (Basic Service Set Identifier), which is the MAC address of the wireless access point (uniquely identifying the AP).
[0043] The radio frequency status may include, but is not limited to, the following data information: BLE (Bluetooth Low Energy), a short-range wireless communication technology (suitable for low-power devices); Tx / Rx (Transmit / Receive), describing the communication direction of the wireless device (Tx for transmitting, Rx for receiving).
[0044] The above black-box summary information has a lightweight structure, suitable for transmission via broadcast protocols.
[0045] After obtaining the black-box digest information, the smart device can generate a data fingerprint of the black-box digest information (e.g., hash value, CRC check value, etc.); based on the data fingerprint of the black-box digest information, an anomaly rescue request can be generated.
[0046] After receiving an abnormal rescue request, the network interconnection device uses the data fingerprint of the black box digest information carried in the abnormal rescue request as a key to read the black box digest information from the smart device.
[0047] Network interconnection devices are hardware / software systems that enable data exchange or protocol conversion between different devices or subnets within a local area network (LAN). Examples of network interconnection devices include smart gateways and user terminals.
[0048] In some embodiments, the smart device is a Bluetooth Low Energy (BLE) device, which can construct a broadcast packet based on the data fingerprint of the black-box digest information; wherein the broadcast packet carries the data fingerprint of the black-box digest information and the rescue communication endpoint of the smart device; a preset General Attribute Profile Service Identifier (GATT ServiceUUID) is written into the broadcast packet to obtain an abnormal rescue request; wherein the General Attribute Profile Service Identifier carries a first self-rescue service identifier; the first self-rescue service identifier is used to identify the broadcast packet as an abnormal rescue request.
[0049] Rescue communication endpoints are logical or physical nodes that intelligent devices can use for information exchange in the event of a failure.
[0050] For example, in BLE (Bluetooth Low Energy) communication, the rescue communication endpoint can be a rescue connection channel established through advertising channels or specific service channels (e.g., GATT-based service channels).
[0051] For example, in a Wi-Fi network, the rescue communication endpoint could be a TCP / UDP port used for emergency communication or device management.
[0052] In some embodiments, the broadcast packet may also carry an exception type code indicating a malfunction in the smart device and an identifier required for OTA (Over-The-Air) proxying. The exception type code can be initially determined by the smart device based on black-box summary information. The identifier required for OTA proxying is used for subsequent OTA upgrades.
[0053] In the specific implementation process, the intelligent device can write the data fingerprint of the black box summary information, the rescue communication endpoint, the anomaly type code, and the identifier required by the OTA agent into the Vendor Specific field of the BLE broadcast packet; and set the first self-rescue service identifier in the preset field of GATT ServiceUUID.
[0054] After receiving the broadcast packet, the network interconnection device uses the Bluetooth Low Energy GATT service to read the black box digest information from the rescue communication endpoint of the smart device, using the data fingerprint of the black box digest information as a key.
[0055] In the embodiments provided by the present invention, by broadcasting the broadcast packet constructed in the above manner within the device's local area network, the network interconnection device can detect the broadcast packet without the need for network configuration, and learn from the broadcast packet that the smart device has malfunctioned and needs rescue.
[0056] In some embodiments, the smart device is a Wi-Fi device, which can construct a Wi-Fi management frame based on the data fingerprint of the black-box summary information to obtain an abnormal rescue request; wherein, the vendor-specific information element field (Vendor IE) of the Wi-Fi management frame contains the data fingerprint of the black-box summary information, the rescue communication endpoint of the smart device, and the second self-rescue service identifier; wherein, the second self-rescue service identifier is used to identify that the Wi-Fi management frame is an abnormal rescue request.
[0057] In practice, Wi-Fi management frames, such as Beacon / Probe Response frames, carry a custom Vendor IE. The Vendor IE may contain: a data fingerprint of black-box summary information, a rescue communication endpoint (e.g., rescue port number UDP 5353), a second self-rescue service identifier, an exception type code of the smart device failure, and the identifier required by the OTA (Over-The-Air) proxy.
[0058] In the embodiments provided by the present invention, by constructing the Wi-Fi management frame in the above manner, the network interconnection device can detect the Wi-Fi management frame without affecting the existing network structure and without the smart device needing to actively connect to the AP (Access Point), thereby knowing that the smart device has malfunctioned and needs rescue.
[0059] After receiving the Wi-Fi management frame, the network interconnection device uses the Wi-Fi protocol to read the black box digest information from the rescue communication endpoint of the smart device, using the data fingerprint of the black box digest information as a key.
[0060] Step 203: Broadcast an anomaly rescue request within the device's local area network.
[0061] In practice, smart devices can broadcast emergency rescue requests within the device's local area network using various common methods, without being limited by the descriptions in this manual.
[0062] After detecting an abnormal rescue request broadcast, the network interconnection device establishes a connection with the smart device and reads the black box summary information from the smart device.
[0063] Step 204: Receive the update packet sent by the network interconnection device.
[0064] An update package is a software or firmware upgrade file containing fault fixes, such as a differential patch or a full firmware image. The update package corresponds to black-box summary information; it is received from the cloud server after the network-connected device reports the black-box summary information.
[0065] In practice, the update package may be an existing patch or version package for the black-box summary information, or a patch or version package generated by relevant personnel based on the black-box summary information, and is not limited to the description in this manual.
[0066] Step 205: Perform an online upgrade based on the update package.
[0067] In practice, network interconnection devices can act as OTA agents to guide smart devices to perform online upgrades based on update packages.
[0068] After completing the online upgrade, the smart device exits the self-rescue mode, goes back online, and resumes normal operations.
[0069] Figure 3 This is the second flowchart illustrating the intelligent device anomaly recovery method provided by this invention. This method is executed by network interconnection devices in the device's local area network, such as... Figure 3 As shown, the method includes the following: Step 301: Detect the broadcast of an abnormal rescue request, establish a connection with the smart device broadcasting the abnormal rescue request, and read the black box summary information from the smart device; wherein, the abnormal rescue request is broadcast by the smart device after it determines that it has malfunctioned; the black box summary information is obtained by the smart device after it determines that it has malfunctioned.
[0070] For a detailed description of the abnormal rescue request and black-box summary information, please refer to the relevant content in steps 202 and 203, which will not be repeated here. In practice, network interconnection devices can scan for broadcast services within the device's local area network at preset time intervals; once any broadcast service carrying a self-rescue service identifier is detected, the rescue process is triggered.
[0071] In some embodiments, an abnormal rescue request is obtained by writing a preset general attribute profile service identifier into a broadcast packet. The broadcast packet is constructed by the smart device based on the data fingerprint of the black-box digest information. The broadcast packet carries the data fingerprint of the black-box digest information and the rescue communication endpoint of the smart device. The general attribute profile service identifier carries a first self-rescue service identifier. The first self-rescue service identifier is used to identify the broadcast packet as an abnormal rescue request. For a detailed description of this embodiment, please refer to the relevant content in step 203, which will not be repeated here.
[0072] In this embodiment, a broadcast packet carrying a general attribute profile service identifier can be parsed based on an abnormal rescue request. The attribute profile service identifier carries a first self-rescue service identifier. A connection is established with a smart device through the Bluetooth Low Energy (GATT) service.
[0073] In some embodiments, the abnormal rescue request is constructed by creating a Wi-Fi management frame based on the data fingerprint of the black-box digest information. The vendor-specific information element field of the Wi-Fi management frame includes the data fingerprint of the black-box digest information, the rescue communication endpoint of the smart device, and a second self-rescue service identifier. The second self-rescue service identifier is used to identify the Wi-Fi management frame as an abnormal rescue request. For a detailed description of this embodiment, please refer to the relevant content in step 203, which will not be repeated here.
[0074] In this embodiment, after parsing the Wi-Fi management frame according to the abnormal rescue request, the network interconnection device can establish a connection with the smart device through the Wi-Fi protocol (e.g., SoftAP mode or direct connection mode).
[0075] In practice, network interconnection devices can use the data fingerprint of the black box digest information as a key to read the black box digest information from the rescue communication endpoint of the smart device.
[0076] Step 302: Report the black-box summary information to the cloud server.
[0077] In the specific implementation process, the cloud server can complete the following tasks based on the uploaded black-box summary information: anomaly classification (including crash type matching and business flow anomaly identification), cause inference (through register pattern matching and business flow comparison analysis), patch matching (comparison with the version repository), and decision on the distribution of available OTA update packages.
[0078] If no available update package is available, the cloud server can push black box summary information to relevant personnel to assist in locating and generating the update package.
[0079] Step 303: Receive the update package from the cloud server; wherein the update package corresponds to the black-box summary information.
[0080] Update packages are software or firmware upgrade files containing bug fixes, such as differential patches or full firmware images. Update packages correspond to black-box summary information.
[0081] In practice, the update package may be an existing patch or version package for the black-box summary information, or a patch or version package generated by relevant personnel based on the black-box summary information, and is not limited to the description in this manual.
[0082] Step 304: Send the update package to the smart device to instruct the smart device to perform an online upgrade operation based on the update package.
[0083] Figure 4 This is the device local area network provided by the present invention. For example... Figure 4 As shown, the device local area network 400 includes a smart device 410 and a network interconnection device 420; wherein, the smart device 410 and the network interconnection device 420 perform the following interactive operations: The intelligent device determines that it has malfunctioned.
[0084] Obtain the black-box summary information of the fault status data at the current moment.
[0085] Broadcast an emergency rescue request within the device's local area network.
[0086] The network interconnection device detects the broadcast of an abnormal rescue request, establishes a connection with the smart device, and reads black-box summary information from the smart device.
[0087] The black-box summary information is reported to the cloud server.
[0088] Receive an update package from the cloud server; wherein the update package corresponds to the black-box summary information.
[0089] The update package is sent to the smart device.
[0090] The smart device receives the update package.
[0091] Based on the update package, perform an online upgrade.
[0092] For a detailed description of the above steps, please refer to [link / reference]. Figure 2 and Figure 3 The relevant content will not be repeated here.
[0093] The intelligent device anomaly recovery device provided by the present invention is described below. The intelligent device anomaly recovery device described below and the intelligent device anomaly recovery method described above can be referred to in correspondence.
[0094] Figure 5 This is a schematic diagram of the intelligent device anomaly recovery device provided by the present invention. Figure 5 As shown, the intelligent device anomaly recovery device 500 includes the following modules: The determination module 510 is used to determine if a fault has occurred within itself.
[0095] The acquisition module 520 is used to acquire the black-box summary information of the fault status data at the current moment.
[0096] The broadcast module 530 is used to broadcast an abnormal rescue request within the device's local area network; wherein, after the network interconnection device detects the broadcast of the abnormal rescue request, it establishes a connection with the smart device and reads the black box summary information from the smart device.
[0097] The receiving module 540 is configured to receive an update packet sent by the network interconnection device; wherein the update packet corresponds to the black box summary information; the update packet is received from the cloud server after the network interconnection device reports the black box summary information to the cloud server.
[0098] Upgrade module 550 is used to perform online upgrade operations based on the update package.
[0099] Figure 6 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 6As shown, the electronic device may include: a processor 610, a communications interface 620, a memory 630, and a communication bus 640, wherein the processor 610, communications interface 620, and memory 630 communicate with each other through the communication bus 640. The processor 610 can call logical instructions in the memory 630 to execute a smart device anomaly recovery method. This method includes: determining that it has malfunctioned; obtaining black-box summary information of the current fault status data; broadcasting an anomaly rescue request within the device's local area network; wherein, after detecting the broadcast of the anomaly rescue request, the network interconnection device establishes a connection with the smart device and reads the black-box summary information from the smart device; receiving an update package sent by the network interconnection device; wherein the update package corresponds to the black-box summary information; the update package is received from the cloud server after the network interconnection device reports the black-box summary information to the cloud server; and performing an online upgrade operation based on the update package.
[0100] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0101] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the intelligent device anomaly recovery method provided by the above methods. The method includes: determining that it has malfunctioned; obtaining black-box summary information of the current fault status data; broadcasting an anomaly rescue request within the device's local area network; wherein, after detecting the broadcast of the anomaly rescue request, the network interconnection device establishes a connection with the intelligent device and reads the black-box summary information from the intelligent device; receiving an update package sent by the network interconnection device; wherein the update package corresponds to the black-box summary information; the update package is received from the cloud server after the network interconnection device reports the black-box summary information to the cloud server; and performing an online upgrade operation based on the update package.
[0102] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the intelligent device anomaly recovery method provided by the above methods. The method includes: determining that a fault has occurred; obtaining black-box summary information of the fault status data at the current moment; broadcasting an anomaly rescue request within the device's local area network; wherein, after detecting the broadcast of the anomaly rescue request, the network interconnection device establishes a connection with the intelligent device and reads the black-box summary information from the intelligent device; receiving an update package sent by the network interconnection device; wherein the update package corresponds to the black-box summary information; the update package is received from the cloud server after the network interconnection device reports the black-box summary information to the cloud server; and performing an online upgrade operation based on the update package.
[0103] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0104] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for recovering from anomalies in intelligent devices, characterized in that, The method, applied to intelligent devices within a local area network, includes: Determine that a malfunction has occurred; Obtain the black-box summary information of the fault status data at the current moment; An abnormal rescue request is broadcast within the device's local area network; wherein, after the network interconnection device detects the broadcast of the abnormal rescue request, it establishes a connection with the smart device and reads the black box summary information from the smart device; The network interconnection device receives an update packet; wherein the update packet corresponds to the black box summary information; the update packet is received from the cloud server after the network interconnection device reports the black box summary information to the cloud server; Based on the update package, perform an online upgrade.
2. The intelligent device anomaly recovery method according to claim 1, characterized in that, The method further includes: Generate the data fingerprint of the black-box summary information; The abnormal rescue request is generated based on the data fingerprint of the black-box summary information; Upon receiving the abnormal rescue request, the network interconnection device uses the data fingerprint of the black-box digest information carried in the abnormal rescue request as a key to read the black-box digest information from the smart device.
3. The intelligent device anomaly recovery method according to claim 2, characterized in that, The smart device is a Bluetooth Low Energy device; The generation of the abnormal rescue request based on the data fingerprint of the black-box digest information includes: A broadcast packet is constructed based on the data fingerprint of the black-box digest information; wherein the broadcast packet carries the data fingerprint of the black-box digest information and the rescue communication endpoint of the smart device; A preset general attribute configuration file service identifier is written into the broadcast packet to obtain the abnormal rescue request; wherein, the general attribute configuration file service identifier carries a first self-rescue service identifier; the first self-rescue service identifier is used to identify the broadcast packet as an abnormal rescue request; Upon receiving the broadcast packet, the network interconnection device uses the Bluetooth Low Energy GATT service to read the black box digest information from the rescue communication endpoint of the smart device, using the data fingerprint of the black box digest information as a key.
4. The intelligent device anomaly recovery method according to claim 2, characterized in that, The smart device is a Wi-Fi device; The generation of the abnormal rescue request based on the data fingerprint of the black-box digest information includes: Based on the data fingerprint of the black-box summary information, a Wi-Fi management frame is constructed to obtain the abnormal rescue request; wherein, the vendor-specific information element field of the Wi-Fi management frame includes the data fingerprint of the black-box summary information, the rescue communication endpoint of the smart device, and the second self-rescue service identifier; the second self-rescue service identifier is used to identify the Wi-Fi management frame as an abnormal rescue request; After receiving the Wi-Fi management frame, the network interconnection device uses the Wi-Fi protocol to read the black box digest information from the rescue communication endpoint of the smart device, using the data fingerprint of the black box digest information as a key.
5. A method for recovering from anomalies in intelligent devices, characterized in that, The method, applied to network interconnection devices within a device local area network, includes: The system detects broadcasts of abnormal rescue requests, establishes a connection with the smart device broadcasting the abnormal rescue request, and reads black-box summary information of fault status data from the smart device; wherein, the abnormal rescue request is broadcast by the smart device after it determines that it has malfunctioned; and the black-box summary information is obtained by the smart device after it determines that it has malfunctioned. The black-box summary information is reported to the cloud server; Receive an update package from a cloud server; wherein the update package corresponds to the black-box digest information; The update package is sent to the smart device to instruct the smart device to perform an online upgrade operation based on the update package.
6. The intelligent device anomaly recovery method according to claim 5, characterized in that, The abnormal rescue request is obtained by writing a preset general attribute configuration file service identifier into a broadcast packet. The broadcast packet is constructed by the smart device based on the data fingerprint of the black box digest information. The broadcast packet carries the data fingerprint of the black box digest information and the rescue communication endpoint of the smart device. The general attribute configuration file service identifier carries a first self-rescue service identifier. The first self-rescue service identifier is used to identify the broadcast packet as an abnormal rescue request. Establishing a connection with the smart device that broadcasts the abnormal rescue request includes: Based on the abnormal rescue request, a broadcast packet carrying a general attribute configuration file service identifier is obtained by parsing, and the attribute configuration file service identifier carries the first self-rescue service identifier; Establish a connection with the smart device via Bluetooth Low Energy GATT service; Alternatively, the abnormal rescue request is obtained by constructing a Wi-Fi management frame based on the data fingerprint of the black box summary information; wherein, the vendor-specific information element field of the Wi-Fi management frame includes the data fingerprint of the black box summary information, the rescue communication endpoint of the smart device, and the second self-rescue service identifier; wherein, the second self-rescue service identifier is used to identify the Wi-Fi management frame as an abnormal rescue request; Establishing a connection with the smart device that broadcasts the abnormal rescue request includes: Based on the abnormal rescue request, the Wi-Fi management frame is obtained through parsing; A connection is established with the smart device via the Wi-Fi protocol.
7. The intelligent device anomaly recovery method according to claim 5 or claim 6, characterized in that, The step of reading the black-box digest information from the smart device includes: The data fingerprint of the black box digest information is used as a key to read the black box digest information from the rescue communication endpoint of the smart device.
8. A smart device anomaly recovery device, characterized in that, The device is a smart device located within a local area network of the device, and the device includes: The determination module is used to determine if a fault has occurred within itself; The acquisition module is used to acquire black-box summary information of the fault status data at the current moment; A broadcast module is used to broadcast anomaly rescue requests within the device's local area network; wherein, after the network interconnection device detects the broadcast of the anomaly rescue request, it establishes a connection with the smart device and reads the black box summary information from the smart device; A receiving module is configured to receive an update packet sent by the network interconnection device; wherein the update packet corresponds to the black-box summary information; the update packet is received from the cloud server after the network interconnection device reports the black-box summary information to the cloud server; The upgrade module is used to perform online upgrade operations based on the update package.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the intelligent device anomaly recovery method as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the intelligent device anomaly recovery method as described in any one of claims 1 to 7.
11. A device local area network, characterized in that, This includes network interconnection devices and smart devices; wherein the smart devices and the network interconnection devices perform the following interactive operations: The intelligent device determines that it has malfunctioned; Obtain the black-box summary information of the fault status data at the current moment; Broadcast an emergency rescue request within the device's local area network; The network interconnection device detects the broadcast of an abnormal rescue request, establishes a connection with the smart device, and reads the black box summary information from the smart device; The black-box summary information is reported to the cloud server; Receive an update package from a cloud server; wherein the update package corresponds to the black-box digest information; The update package is sent to the smart device; The smart device receives the update package; Based on the update package, perform an online upgrade.