Smart home fault emergency solution method and electronic equipment
By introducing emergency equipment into the smart home system and replacing the failed central node or backbone node, the functional interruption problem caused by device failure in the smart home system is solved, and the rapid recovery of the system and the improvement of user experience is achieved.
Patent Information
- Application Number
- CN202311294394.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
AI Technical Summary
When the central node or backbone node in the smart home system fails, the IoT device that is suspended cannot be controlled, the user cannot use the smart home system normally, and some functions cannot be used before the device is replaced.
Provide an emergency solution for smart home failure, connect to the smart home system network through electronic devices as emergency equipment, and provide corresponding functions instead of faulty equipment, and send a notification message to instruct the smart home device to connect to the emergency equipment.
It realizes that when the central node or backbone node fails, it quickly replaces the faulty equipment and continues to provide functions to avoid the problem that the smart home system cannot operate normally, and improves the user experience.
Smart Images

Figure CN119717756A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to an emergency solution to smart home failures and an electronic device. Background Art
[0002] With the development of smart homes, various types of Internet of Things (IoT) devices have been widely used in scenarios such as life, entertainment, study and office. The current smart home system usually adopts the architecture of central nodes, backbone nodes and IoT single-product devices, where the central node can be, for example, a hub device, which can control multiple backbone nodes, and the backbone node can be a gateway device of various network types, and the backbone node can control the IoT devices attached to the backbone node, thereby realizing the linkage between smart devices in the whole house.
[0003] Based on the architecture of the above-mentioned smart home system, when a central node or backbone node fails, the IoT devices attached to the failed central node or backbone node will also be unable to be controlled. For example, when a backbone node fails, the smart lamps attached to the backbone node cannot be controlled, and users cannot turn on the smart lamps through the smart home system. Currently, when a central node or backbone node fails in a smart home system, the failed device needs to be replaced. Before the replacement of the new device is completed, some functions in the smart home system cannot be used. Summary of the invention
[0004] The present application provides an emergency solution method and electronic device for solving smart home failures, so as to provide a quick emergency solution method for smart home failures.
[0005] In the first aspect, the present application provides an emergency solution to a smart home fault, which can be performed by an electronic device. The method includes: determining a first fault that occurs in a smart home system network; in response to a first operation by a user, the electronic device accesses the smart home system network as an emergency device and provides a function corresponding to the first device that causes the first fault; and sending a first notification message, the first notification message being used to indicate that a smart home device connected to the first device in the smart home system network is connected to the emergency device.
[0006] In the above method, the electronic device can be connected to the smart home system network as an emergency device to replace the device that caused the failure, thereby continuing to provide users with the functions corresponding to the first device and avoiding the problem that the smart home system cannot operate normally due to failure of individual devices.
[0007] In one possible design, the method also includes: determining a second fault occurring in the smart home system network; in response to a second operation of the user, the electronic device re-connecting to the smart home system network as an emergency device to provide a function corresponding to the second device causing the second fault; and sending a second notification message, wherein the second notification message is used to indicate that the smart home device connected to the second device in the smart home system network is connected to the emergency device.
[0008] Through this design, the electronic device supports multiple types of emergency functions, and the same emergency function of the electronic device can also be used to solve faults of different devices with the same fault type. When multiple faults occur in the smart home system, the electronic device can also serve as an emergency device and call at least one emergency function to solve multiple faults, thereby ensuring user experience.
[0009] In one possible design, the first fault is a network fault; the electronic device is connected to the smart home system network as an emergency device, and provides a function corresponding to the first device that caused the first fault, including: the electronic device is connected to the smart home system network as an emergency network device, and provides a network access function corresponding to the first device that caused the first fault; the sending of the first notification message, the first notification message is used to indicate that the smart home device connected to the first device in the smart home system network is connected to the emergency device, including: sending the first notification message, the first notification message is used to indicate that the routing device in the smart home system network accesses the network provided by the electronic device.
[0010] Through this design, when a network failure occurs in the smart home system network, the electronic device can instruct the routing device to connect to the hotspot created by the electronic device, so that the electronic device can provide an emergency network for the smart home system. Users can continue to use the services provided by the smart home system before the network of the smart home system is repaired, thereby improving the user experience.
[0011] In a possible design, the first notification message is also used to instruct the routing device to modify the routing connection mode.
[0012] In one possible design, the first fault is a fault of the first device; the electronic device is connected to the smart home system network as an emergency device to provide a function corresponding to the first device that caused the first fault, including: sending a request message, the request message is used to request to obtain a function module corresponding to the first device; the function module is used to call the emergency function of the electronic device corresponding to the first fault; receiving the function module corresponding to the first device to provide the function corresponding to the first device that caused the first fault.
[0013] Through this design, when a device failure occurs in the smart home system network, the electronic device can obtain the functional module corresponding to the first device that has failed, so that the emergency function of the electronic device can be called, so that the electronic device can be connected to the smart home system network to replace the first device and continue to provide the corresponding functions, so that the smart home system can operate normally and ensure user experience.
[0014] In a possible design, the method also includes: sending a configuration request message, where the configuration request message is used to request configuration information corresponding to the first device; receiving configuration information corresponding to the first device; and configuring the emergency device according to the configuration information.
[0015] Through this design, the configuration parameters of the emergency device created by the electronic device can be consistent with the configuration parameters of the first device. The emergency device can replace the first device in the smart home system network, and there is no need to reconfigure other electronic devices connected to the first device in the smart home system, thereby improving the efficiency of emergency troubleshooting.
[0016] In one possible design, before sending the notification message, the method also includes: obtaining device information of a smart home device connected to the first device in the smart home system network.
[0017] In one possible design, obtaining the device information of the smart home device connected to the first device in the smart home system network includes: receiving the device information of the smart home device connected to the first device sent by a server or a central device in the smart home system network; or receiving the topological relationship of multiple smart home devices in the smart home system network sent by the server or the central device, and determining the device information of the smart home device connected to the first device based on the topological relationship.
[0018] Through this design, the electronic device can obtain the device information of the smart home device connected to the first device in the smart home system network, so as to notify the smart home device connected to the first device to switch connection to the electronic device, so as to promptly restore and provide the functions corresponding to the first device.
[0019] In one possible design, determining a fault occurring in the smart home system includes: receiving fault information sent by a server or a central device in the smart home system network, and determining a fault occurring in the smart home system network based on the fault information.
[0020] Through this design, when the server or central device detects a fault in the smart home system network, it can send the fault information to the electronic device in a timely manner, so that the electronic device can perform emergency processing for the fault.
[0021] In one possible design, the emergency function of the electronic device is at least one of a network access function, a control function, a display function, a speaker function, a microphone function, a sensor function, and a camera function.
[0022] In one possible design, the network access function includes at least one of a hotspot function, a Bluetooth gateway function, a Wireless Fidelity Wi-Fi gateway function, and a NearLink gateway function.
[0023] In one possible design, after determining the first fault occurring in the smart home system network, the method further includes: displaying a first interface, where the first interface is used to add an emergency device in the smart home system network; detecting the first operation, where the first operation is an operation triggered by the user to add a control corresponding to the emergency device in the first interface.
[0024] Through this design, after a failure occurs in the smart home system network, the user can trigger the first operation of adding an emergency device, thereby connecting the electronic device to the smart home system network as an emergency device.
[0025] In one possible design, after detecting the first operation, the method further includes: displaying a second interface, the second interface including controls corresponding to at least one smart home device in the smart home system network and controls corresponding to the emergency device.
[0026] In one possible design, after the electronic device is connected to the smart home system network as an emergency device and provides a function corresponding to the first device that caused the first fault, the method also includes: displaying a third interface, wherein the third interface is used to indicate that the emergency device has successfully connected to the smart home system network; or displaying a notification message, wherein the notification message is used to indicate that the emergency device has successfully connected to the smart home system network.
[0027] Through this design, after the electronic device is connected to the smart home system network as an emergency device, the electronic device can remind the user that the emergency fault handling has been completed, thereby improving the user experience.
[0028] In a second aspect, the present application provides an emergency solution to a smart home fault, which can be executed by a server or a hub device in a smart home system. The method includes: determining a first fault occurring in a smart home system network, and sending fault information of the first fault to an electronic device. Receive a notification message sent by the electronic device, the notification message being used to indicate that a smart home device connected to a first device in the smart home system network is connected to the electronic device, the first device being the device causing the first fault in the smart home system network.
[0029] In the above method, after determining that the smart home system has a first fault, the server or the central device can send the fault information of the first fault to the electronic device so that the electronic device can execute the emergency fault handling process, and the server or the central device can notify the smart home device connected to the first device to connect to the electronic device to restore the function corresponding to the first device, thereby avoiding the problem that the smart home system cannot operate normally due to the failure of individual devices.
[0030] In one possible design, the method also includes: receiving a request message sent by the electronic device, the request message being used to request obtaining a functional module corresponding to the first device; the functional module being used to call an emergency function of the electronic device corresponding to the first fault; and sending the functional module corresponding to the first device to the electronic device.
[0031] In one possible design, the method also includes: receiving a configuration request message sent by the electronic device, the configuration request message being used to request configuration information corresponding to the first device; and sending the configuration information corresponding to the first device to the electronic device.
[0032] In one possible design, after receiving the notification message sent by the electronic device, the method also includes: sending an indication message to a smart home device connected to the first device in the smart home system network, wherein the indication message is used to indicate that the smart home device connected to the first device is connected to the electronic device.
[0033] In one possible design, the method further includes: sending device information of a smart home device connected to the first device to the electronic device; or sending the topological relationship of multiple smart home devices in the smart home system network to the electronic device.
[0034] In a third aspect, the present application also provides a smart home fault emergency solution system, which includes at least one smart home device and an electronic device, wherein the at least one smart home device includes a hub device. When any of the at least one smart home device causes a fault, the electronic device can be used to execute the method executed by the electronic device in the first aspect and its various embodiments, and the hub device can be used for the method executed by the hub device in the second aspect and its various embodiments.
[0035] In a fourth aspect, the present application provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the method performed by the electronic device in the first aspect and its respective embodiments. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on specific implementations.
[0036] In a fifth aspect, the present application provides an electronic device comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the method executed by the electronic device in the above-mentioned first aspect and its various embodiments.
[0037] In a sixth aspect, the present application provides a computing device, the computing device comprising a plurality of functional modules, the plurality of functional modules interacting with each other to implement the method performed by the server or the hub device in the second aspect and its respective embodiments. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on specific implementations.
[0038] In the seventh aspect, the present application provides a computing device comprising at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the computing device is running, the at least one processor executes the method executed by the server or central device in the above-mentioned second aspect and each embodiment thereof.
[0039] In an eighth aspect, the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method executed by the electronic device in any of the above aspects and each embodiment thereof.
[0040] In a ninth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the method executed by the electronic device in any of the above aspects and its various embodiments.
[0041] In a tenth aspect, the present application also provides a chip, which is used to read a computer program stored in a memory and execute the method executed by the electronic device in any of the above aspects and its various embodiments.
[0042] In the eleventh aspect, the present application further provides a chip system, which includes a processor for supporting a computer device to implement the method executed by an electronic device in any of the above aspects and its various embodiments. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data of the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0043] The technical effects that can be achieved by the technical solutions of any of the third to eleventh aspects mentioned above can be described with reference to the technical effects that can be achieved by the technical solutions of the first to second aspects mentioned above, and the repeated parts will not be repeated. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of the architecture of a smart home system provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of a device replacement process in a smart home scenario provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0047] Figure 4 A software structure block diagram of an electronic device provided in an embodiment of the present application;
[0048] Figure 5 A flow chart of a smart home emergency solution provided by an embodiment of the present application;
[0049] Figure 6 An interface diagram of a smart home application provided in an embodiment of the present application;
[0050] Figure 7 A flowchart of an emergency solution to a smart home failure provided in an embodiment of the present application;
[0051] Figure 8 An interface diagram of a smart home application provided in an embodiment of the present application;
[0052] Fig. 9 A flowchart of an emergency solution to a smart home failure provided in an embodiment of the present application;
[0053] Fig.10 A schematic diagram of an interface of a smart home application provided in an embodiment of the present application;
[0054] Fig.11 A flowchart of an electronic device obtaining configuration information corresponding to a first device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0056] It should be understood that in the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0057] With the development of smart homes, various types of Internet of Things (IoT) devices have been widely used in scenarios such as life and entertainment, study and office. Figure 1 A schematic diagram of the architecture of a smart home system network provided in an embodiment of the present application. Figure 1 The smart home system network adopts the architecture of central node, backbone node and IOT single product device. Among them, the central node can be a hub device, which can be used to control each device in the smart home system network. The hub device can access the network through a routing device, and then send control commands to the IoT device in the smart home system or communicate with the server. In the embodiment of the present application, the central node can control multiple backbone nodes. Figure 1 The backbone nodes can be gateway devices of various network types, such as power line communication (PLC) gateway devices, Bluetooth gateway devices, wireless fidelity (Wi-Fi) gateway devices, and NearLink gateway devices. The NearLink gateway device can replace the Bluetooth gateway device and / or Wi-Fi gateway device to provide corresponding functions. The backbone nodes can also be computing devices with control functions, such as Figure 1The music host shown in the figure can be used to control multiple music slaves hung under the music host so that the music slaves play audio.
[0058] refer to Figure 1 There can be multiple device connection methods in the smart home system network. The hub device, Bluetooth gateway device, Wi-Fi gateway device, and Wi-Fi device can access the routing device to access the network. The smart home system can include multiple routing devices, such as multiple routing devices including a main router and a sub-router. The hub device can access the main router, and the Wi-Fi gateway device and Wi-Fi device can access the sub-router. PLC gateway devices and PLC sub-devices, music host and music sub-devices can access the network through PLC, and Bluetooth gateway devices and Bluetooth sub-devices can establish Bluetooth connections to exchange data.
[0059] exist Figure 1 In the smart home system network shown, multiple backbone nodes can accept the control of the central device, the central device can send control commands to the backbone nodes, and the backbone nodes can send control commands to the devices hanging under the backbone nodes, so as to control the devices to adjust the operating status and provide device-related services to users. For example, the central device can send a control command to the Wi-Fi gateway device, which is used to instruct the Wi-Fi gateway device to control the smart air conditioner to turn on and set the temperature to 25 degrees. After receiving the control command, the Wi-Fi gateway device can send a control instruction to the smart air conditioner, which is used to instruct the air conditioner to turn on and set the temperature to 25 degrees.
[0060] In addition, refer to Figure 1 The scenarios to which the embodiments of the present application are applicable may also include electronic devices used by users, which may be smartphones, tablet computers, wearable devices, etc. used by users. Smart home applications may be installed in the electronic devices, and users may control IoT devices to perform corresponding functions through smart home applications.
[0061] It should be noted that Figure 1 The various devices in the smart home system network shown are only used as examples and not as limitations. In implementation, the function of a certain device can be implemented by multiple devices in collaboration, such as multiple devices collaborating to implement the function of a central device; or the functions of multiple devices can be integrated into one device, such as a central device can integrate the functions of multiple gateway devices, or a central device can also integrate the functions of a routing device, etc. This embodiment of the application does not limit this. In addition, this embodiment of the application Figure 1 The number of devices in the smart home system network shown is also not limited, and specific implementation scenarios may include more or fewer devices.
[0062] based on Figure 1In the smart home system network shown in the figure, when the central node or backbone node fails, the IoT devices connected to the failed central node or backbone node will also become uncontrollable. Figure 1 When a Wi-Fi gateway device in the network fails, the Wi-Fi devices connected to the Wi-Fi gateway device cannot receive control commands sent by the Wi-Fi gateway device, and the Wi-Fi devices cannot respond to control operations triggered by users.
[0063] In one embodiment, when a device corresponding to a central node or a backbone node in a smart home system network fails, the user needs to replace the failed device with a new device, or report a repair request and have an engineer come to repair the failed device. Figure 2 A schematic diagram of a device replacement process in a smart home scenario provided in an embodiment of the present application, with reference to Figure 2 In (a), the smart home application can display the currently faulty devices, such as Figure 2 The PLC gateway device in the system fails. After the user replaces the old device with a new one, he can choose to replace the old device with the new one in the smart home application. Figure 2 In (b), PLC gateway device 1 is a new device. The user can select "Replace other devices with one click" in the menu corresponding to PLC gateway device 1, and choose to replace the faulty PLC gateway device. The smart home application can send the device identification of the old device and the device identification of the new device to the server. The server obtains the configuration information corresponding to the old device according to the device identification of the old device, and sends the configuration information corresponding to the old device to the new device. The new device can be configured according to the received configuration information, thereby replacing the faulty device and restoring the corresponding functions of the smart home system.
[0064] However, before the faulty equipment is repaired in the above manner, some functions in the smart home system cannot be used, resulting in a poor user experience.
[0065] Based on the above problems, an embodiment of the present application provides an emergency solution to smart home failures, which can be executed by an electronic device. In the emergency solution to smart home failures provided in the embodiment of the present application, the electronic device determines a first failure that occurs in the smart home system network. In response to a first operation by a user, the electronic device accesses the smart home system network as an emergency device, and provides a function corresponding to the first device that causes the first failure; the electronic device sends a notification message, which is used to indicate that the smart home device connected to the first device in the smart home system network is connected to the emergency device. Through the emergency solution to smart home failures provided in the embodiment of the present application, the electronic device can be used as an emergency device to replace the device that causes the failure, thereby continuing to provide the user with the function corresponding to the first device, avoiding the problem that the smart home system cannot operate normally due to failure of individual devices.
[0066] The following describes electronic devices and embodiments for using such electronic devices. The electronic devices of the embodiments of the present application may be tablet computers, mobile phones, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), wearable devices, etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0067] In some embodiments of the present application, the electronic device may also be a portable terminal device that also includes other functions such as a personal digital assistant and / or a music player. Exemplary embodiments of the portable terminal device include but are not limited to: Or other portable terminal devices with operating systems.
[0068] Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. Figure 3As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0069] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Among them, different processing units may be independent devices or integrated into one or more processors. Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions. A memory may also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a high-speed cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
[0070] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
[0071] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0072] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0073] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0074] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0075] The display screen 194 is used to display the display interface of the application, such as displaying the display page of the application installed on the electronic device 100. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0076] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0077] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, and software code of at least one application, etc. The data storage area can store data generated during the use of the electronic device 100 (such as captured images, recorded videos, etc.). In addition, the internal memory 121 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, a universal flash storage (UFS), etc.
[0078] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as pictures and videos are stored in the external memory card.
[0079] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0080] Among them, the sensor module 180 may include a pressure sensor 180A, an acceleration sensor 180B, a touch sensor 180C, etc.
[0081] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194 .
[0082] The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194, and the touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0083] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive the button input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, and can also be used to indicate messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into the SIM card interface 195, or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
[0084] Understandably, Figure 3The components shown do not constitute a specific limitation on the electronic device 100. The electronic device may also include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently. Figure 3 The combination / connection relationship between the components can also be adjusted and modified.
[0085] Figure 4 The software structure block diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the software structure of the electronic device can be a layered architecture, for example, the software can be divided into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer (framework, FWK), the runtime (runtime) and the system library, and the kernel layer.
[0086] The application layer can include a series of application packages. Figure 4 As shown, the application layer may include camera, settings, skin module, user interface (UI), third-party applications, etc. Among them, the third-party applications may include gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. In the embodiment of the present application, the application layer may include a target installation package of a target application that the electronic device requests to download from a server, and the function files and layout files in the target installation package are adapted to the electronic device.
[0087] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions. Figure 4 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
[0088] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0089] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0090] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0091] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0092] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0093] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the operating system.
[0094] The core library consists of two parts: one is the function that the Java language needs to call, and the other is the core library of the operating system. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0095] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), image processing library, etc.
[0096] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0097] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0098] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0099] A 2D graphics engine is a drawing engine for 2D drawings.
[0100] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0101] The hardware layer can include various types of sensors, such as accelerometers, gyroscopes, touch sensors, etc.
[0102] It should be noted that Figure 3 and Figure 4 The structure shown is only an example of the electronic device provided by the embodiment of the present application, and cannot be used to limit the electronic device provided by the embodiment of the present application. In specific implementation, the electronic device may have more Figure 3 or Figure 4 More or fewer devices or modules may be included in the structures shown.
[0103] The following is a further introduction to the smart home emergency solution provided in the embodiments of the present application.
[0104] Figure 5 This is a flowchart of a smart home emergency solution provided by an embodiment of the present application, which can be executed by an electronic device. Figure 5 , the method comprises the following steps:
[0105] S501: The electronic device determines that a first fault occurs in the smart home system network.
[0106] In an optional implementation, when a smart home system network fails, the central device or other device that establishes a connection with the electronic device can send fault information of the smart home system network failure to the electronic device, or the central device can report the failure to the server, and the server sends the fault information of the smart home system network to the electronic device. When a central device fails, if the central device can still interact with the server, the central device can report the fault type to the server, and the server can send the fault information of the central device to the electronic device; if the central device is offline due to a failure, the server can determine that the central device has failed when the time for not receiving the heartbeat packet sent by the central device is greater than the set time, and send the fault information of the central device to the electronic device. After the electronic device receives the fault information sent by the central device or the server, it can determine the first fault that has occurred in the smart home system network.
[0107] When the electronic device determines that a fault occurs in the smart home system network, it can display the fault occurring in the smart home system network in the display interface of the smart home application. For example, when a network fault occurs in the smart home system network, the electronic device can display a "network fault" reminder message on the display interface of the smart home system network.
[0108] S502: In response to a first operation by the user, the electronic device is connected to the smart home system network as an emergency device, and provides a function corresponding to the first device that caused the first fault.
[0109] In an embodiment of the present application, when the smart home system network does not fail, the electronic device is not connected to the smart home system. When the smart home system fails, the electronic device can be connected to the smart home system network as an emergency device, so that the electronic device can replace the first device or the functional module of the first device in the smart home system network that causes the first failure, and continue to provide the function corresponding to the first device that causes the first failure, or continue to provide the function corresponding to the functional module of the first device that causes the first failure. For example, when a network failure occurs in the smart home system network, the emergency device can replace the optical modem in the smart home system network and continue to provide network connection for the smart home system network. For another example, when the central device in the smart home system network fails, the emergency device can replace the central device in the smart home system network and provide the user with the control function of controlling the smart home device. For another example, when the Bluetooth gateway in the smart home system network is integrated in the central device, if the Bluetooth gateway functional module of the central device fails, the electronic device can create an emergency device based on the Bluetooth function to access the smart home system network, and the emergency device is used to replace the Bluetooth gateway functional module in the central device.
[0110] Optionally, the first operation may be an operation of adding emergency equipment triggered by a user. Figure 6 This is an interface diagram of a smart home application provided in an embodiment of the present application, refer to Figure 6 , the user can click the "Add Device" control in the smart home application, and click the control corresponding to the emergency device in the redirected interface to trigger the first operation.
[0111] In the embodiments of the present application, various hardware or software functions of the electronic device can be used as emergency functions. For example, the emergency functions that the electronic device can provide include network access function, control function, display function, speaker function, microphone function, sensor function, camera function, etc., wherein the network access function may include at least one of the hotspot function, Bluetooth gateway function, Wi-Fi gateway function, and StarFlash gateway function. It should be noted that the network access function may also include other internal network access functions or external network access functions of the smart home system network, which is not limited in the embodiments of the present application.
[0112] After the electronic device determines that a fault has occurred in the smart home system network, Figure 6 In the interface for adding emergency devices shown, the electronic device can preferentially display the adding controls corresponding to the emergency devices related to the emergency functions corresponding to the fault. For example, when a Bluetooth gateway device in a smart home system network fails, the electronic device can preferentially display the adding controls corresponding to the emergency devices corresponding to the Bluetooth gateway function in the interface for adding emergency devices.
[0113] In one embodiment, in response to a first operation triggered by a user, the electronic device can call an emergency function corresponding to a first fault, so that the electronic device can be connected to the smart home system network as an emergency device. In implementation, the electronic device can directly call the emergency function of the electronic device, or the electronic device can request a server to obtain a function module corresponding to the first fault, and the function module is used to call the emergency function of the electronic device. Optionally, the function module in the embodiment of the present application can be any one of a plug-in, an application, and a mini-program. For example, when a network failure occurs in the smart home system network, the electronic device can directly call the hotspot function of the electronic device, and the electronic device creates a hotspot to provide a network connection for the smart home system network. For another example, when a Bluetooth gateway device in the smart home system network fails, the electronic device can request a server to obtain a function module corresponding to the Bluetooth gateway device, and run the function module to call the Bluetooth function of the electronic device, and use the electronic device as an emergency Bluetooth gateway device.
[0114] In some embodiments, the electronic device can also request the server to obtain configuration information corresponding to the first device. The configuration information may include the topological relationship of the first device in the smart home system network, the configuration parameters of the first device, etc. The electronic device can configure the emergency device according to the configuration information corresponding to the first device, so that the emergency device can provide the same function as the first device, and other smart home devices in the smart home system network can also be quickly connected to the emergency device without reconfiguration.
[0115] S503: The electronic device sends a notification message.
[0116] The notification message is used to instruct the smart home device connected to the first device in the smart home system network to be connected to the emergency device.
[0117] In an optional implementation, the server can store the topological relationship between multiple smart home devices in the smart home system network, and the server can send the device information of the smart home device connected to the first device to the electronic device; or the central device can send the device information of the smart home device connected to the first device to the electronic device; or the server or the central device can send the topological relationship between multiple smart home devices in the smart home system to the electronic device, and the electronic device can determine the device information of the smart home device connected to the first device. The electronic device can send a notification message to the smart home device connected to the first device in the smart home system based on the received device information, so that the smart home device connected to the first device is connected to the emergency device; or the electronic device can send a notification message to the central device, and the central device can notify the smart home device connected to the first device to connect to the emergency device. Optionally, the device information of the smart home device can be a device identifier.
[0118] For example, refer to Figure 1 When a Bluetooth gateway device in the smart home system network fails, the server can send the device information of the central device and the device information of the Bluetooth sub-device to the electronic device. The electronic device can send a notification message to the central device according to the device information of the central device, and send a notification message to the Bluetooth sub-device according to the device information of the Bluetooth sub-device, so as to notify the central device and the Bluetooth sub-device to establish a connection with the emergency device.
[0119] In some embodiments, when an electronic device is connected to a smart home system network as an emergency device, the electronic device may display an interface or notification message in a smart home application to indicate that the emergency device has successfully connected to the smart home system network, thereby notifying the user that the electronic device has completed emergency fault handling and improving the user experience.
[0120] It should be noted that when a functional module of the first device fails, the electronic device can send a notification message to the smart home device connected to the functional module, without sending a notification message to other smart home devices connected to the first device but unrelated to the failed functional module, thereby accurately resolving the fault in the smart home system.
[0121] Through the smart home emergency solution provided by the embodiments of the present application, when the electronic device determines that a smart home system failure has occurred, the electronic device can call the emergency function related to the failure in the electronic device, thereby connecting the electronic device to the smart home system network as an emergency device, providing the functions corresponding to the device that caused the failure, and continuing to provide services to the user, thereby preventing the smart home system from being unable to operate due to failures of individual devices or functional modules, thereby improving the user experience.
[0122] It can be understood that in the smart home emergency solution provided in the embodiment of the present application, the electronic device is connected to the smart home system network as an emergency device by calling the emergency function of the electronic device, and the electronic device supports multiple types of emergency functions, and the same emergency function of the electronic device can also be used to solve faults of different devices with the same fault type. Therefore, when multiple faults occur in the smart home system, the electronic device can also be used as an emergency device and call at least one emergency function to solve multiple faults.
[0123] Specifically, in Figure 5 Based on the provided implementation, the electronic device detects a second fault occurring in the smart home system, and the fault type of the second fault may be the same as or different from that of the first fault. For example, when the smart home system network includes multiple Bluetooth gateway devices, the electronic device detects that the first fault occurring in the smart home system is a first Bluetooth gateway device fault, and the second fault is a second Bluetooth gateway device fault, then the fault types of the first fault and the second fault are the same; or the electronic device detects that the first fault is a network device fault, and the second fault is a Bluetooth gateway device fault, then the fault types of the first fault and the second fault are different.
[0124] In response to the user's second operation, the electronic device reconnects to the smart home system network as an emergency device, provides the function corresponding to the second device that caused the second fault, and the electronic device can send a second notification message, the second notification message is used to indicate that the smart home device connected to the second device in the smart home system network is connected to the emergency device. In implementation, if the electronic device detects the second fault, the electronic device still acts as an emergency device to solve the first fault, then when the types of the first fault and the second fault are the same, the electronic device can act as an emergency device to provide the functions corresponding to the first device and the second device; when the types of the first fault and the second fault are different, the electronic device can act as two emergency devices to provide the functions corresponding to the first device and the functions corresponding to the second device, respectively.
[0125] In specific implementation, the smart home fault emergency solution provided in the embodiment of the present application can be used to solve the problems of network failure and equipment failure in the smart home system. The following introduces the ways in which the smart home fault emergency solution provided in the embodiment of the present application solves network failure and equipment failure respectively.
[0126] Example 1: Emergency solution to network failure in smart home system.
[0127] Figure 7 This is a flowchart of a smart home emergency solution provided by an embodiment of the present application. The method can be executed by an electronic device and a routing device, refer to Figure 7 , the method comprises the following steps:
[0128] S701: A first operation triggered by a user is detected, and the electronic device is connected to the smart home system network as an emergency network device.
[0129] Optionally, the first operation may be an operation triggered by a user for creating an emergency network device, wherein the emergency network device may be a device that provides network access services for other devices based on a hotspot function of the electronic device.
[0130] In an embodiment of the present application, when a user discovers that a network failure has occurred in a smart home system, the user can trigger the use of an electronic device in a smart home application of the electronic device to provide a network connection for the smart home system. A network failure refers to a failure in which a routing device cannot connect to an external network and cannot provide network access services for smart home devices in the smart home system network. Possible causes of network failures include failures of upstream network devices (fiber failures, etc.), failures of optical modems in the smart home system network, failures of network cables between optical modems and routing devices, and network arrears. The embodiments of the present application do not limit the causes of network failures.
[0131] Optionally, the electronic device may also determine that a network failure has occurred in the smart home system, and display a network failure reminder message to remind the user that a network failure has occurred in the smart home system. For example, when the electronic device is within the network coverage provided by the routing device, the electronic device may access the routing device to access the network. When the electronic device accesses the routing device but cannot connect to the network, the electronic device may determine that a network failure has occurred.
[0132] Figure 8 This is an interface diagram of a smart home application provided in an embodiment of the present application, refer to Figure 8 In (a), when a network failure occurs in the smart home system, the smart home application can display a reminder message of the network failure in the application interface. The first operation can be, for example, the user Figure 8 The click operation triggered on the emergency network recovery control in the application interface shown.
[0133] In response to the first operation triggered by the user, the electronic device can connect the electronic device to the smart home system network as an emergency network device to provide a network access function. Figure 8 In (b), the electronic device can create an emergency network device and display the icon of the emergency network device in the interface of the smart home application.
[0134] S702: The electronic device sends a notification message.
[0135] The notification message is used to instruct the routing device in the smart home system network to access the network provided by the electronic device.
[0136] Optionally, in the smart home system network, the routing device can be connected to an optical modem or other device that can provide a network to access the network. After the routing device is connected to the network, other electronic devices in the smart home system network can be connected to the routing device to access the Wi-Fi network. When the routing device establishes a connection with an optical modem or other electronic device that can provide a network, any of a variety of routing connection modes such as network cable connection, bridge connection, AP connection, and soft bus connection can be used.
[0137] In an optional implementation, the electronic device may send a notification message to the routing device, the notification message being used to notify the routing device to access the network provided by the electronic device, such as notifying the routing device to access the hotspot created by the electronic device. The notification message may include information about the network provided by the electronic device, such as the notification message may include information about the hotspot created by the electronic device, and the hotspot information created by the electronic device may include the hotspot name and password. Optionally, the notification message may also instruct the routing device to modify the routing connection mode, such as instructing the routing device to change from a network cable connection mode to a bridge mode.
[0138] In some embodiments, the user can operate the electronic device to access the network configuration interface provided by the routing device, and enter the name and password of the hotspot created by the electronic device in the network configuration interface, thereby sending the name and password of the hotspot created by the electronic device to the routing device through the network configuration interface. Optionally, the user can also modify the routing connection mode of the routing device in the network configuration interface.
[0139] S703: The electronic device turns on the hotspot function.
[0140] After sending the information of the hotspot created by the electronic device to the routing device, the electronic device can disconnect from the routing device and turn on the hotspot, which can be a hotspot turned on by the electronic device based on the cellular network. After turning on the hotspot, the electronic device can provide network access services for other devices.
[0141] S704: The routing device modifies the routing connection mode and accesses the hotspot created by the electronic device.
[0142] In an embodiment of the present application, after receiving a notification message sent by an electronic device or acquiring the routing connection mode configured in the network configuration interface, the routing device can modify the routing connection mode. For example, before an uplink network failure occurs, the routing device is connected to the optical modem via a network cable connection. When the routing device is instructed to modify the routing connection mode to a bridge mode, the routing device can modify the routing connection mode to a bridge mode. The routing device can access the hotspot created by the electronic device based on the information of the hotspot created by the electronic device in the notification message or the information of the hotspot created by the electronic device configured in the network configuration interface. If the information of the hotspot created by the electronic device can include a hotspot name and a password, the routing device can search for nearby available hotspots, select a hotspot created by the electronic device from at least one available hotspot searched based on the hotspot name, and then access the hotspot created by the electronic device based on the hotspot password.
[0143] In this way, when the uplink network of the smart home system fails, the electronic device can instruct the routing device to connect to the hotspot of the electronic device, so that the electronic device can provide an emergency network for the smart home system. Users can continue to use the services provided by the smart home system before the network of the smart home system is repaired, thereby improving the user experience.
[0144] Example 2: Emergency solutions to equipment failures in smart home systems.
[0145] First, the functional modules provided in the embodiments of the present application are introduced. The functional modules are plug-ins, applications or applets developed by developers based on the functions provided by each device in the smart home system network and can be run on electronic devices. Developers can develop multiple functional modules based on the functions of each device in the smart home system, and different functions of the same device can also correspond to different functional modules. The server can store multiple functional modules, and the electronic device obtains the functional module from the server. When the electronic device runs the functional module on the electronic device, the hardware or software of the electronic device can be called to provide the corresponding function to the user. For example, the server can store the functional module corresponding to the hub device. When the electronic device runs the functional module corresponding to the hub device, the electronic device can provide the user with the control function corresponding to the hub device, and the user can operate the electronic device to control each device in the smart home system network.
[0146] The following is an introduction to the emergency solution to device failure in the smart home system network provided by the embodiment of the present application. Fig. 9 This is a flowchart of an emergency solution to a smart home failure provided by an embodiment of the present application. The method can be executed by an electronic device and a server, refer to Fig. 9 , the method comprises the following steps:
[0147] S901: Detecting a first operation triggered by a user.
[0148] Optionally, the first operation may be an operation triggered by a user for adding emergency equipment.
[0149] In an embodiment of the present application, when a first device in a smart home system network fails, the hub device may send device information of the first device to a server, the server may send the device information of the first device to an electronic device, or the hub device may send the device information of the first device to an electronic device. The electronic device may display a reminder message indicating that the first device has failed in a smart home application. For example, Fig.10 A schematic diagram of an interface of a smart home application provided in an embodiment of the present application, Fig.10 The example in the figure shows a Bluetooth gateway device failure. Fig.10 In (a), the electronic device can display a reminder message that the Bluetooth gateway device has failed in the interface of the smart home application. The user can click Fig.10 In (a) of the "Add Device" control, the electronic device can display Fig.10 The interface shown in (b) in Fig.10 In the device adding interface shown in (b) of FIG. 1 , the user can choose to add a new emergency device in the interface corresponding to the emergency device option. The electronic device can recommend to the user what type of emergency device to create based on the function of the first device that has failed, such as Fig.10 In (b), since the first device that fails is a Bluetooth gateway device, the icon of the emergency Bluetooth gateway device can be displayed in the front position. The user can click the add control corresponding to the emergency Bluetooth gateway device to trigger the first operation. After the user triggers the first operation, the electronic device can execute the following S902-S905, so that the electronic device can be connected to the smart home system network as an emergency device. The electronic device can display the controls of the emergency device in the interface of the smart home application, such as Fig.10 As shown in (c), the electronic device can display the controls of the emergency Bluetooth gateway device. When a device in the smart home system network fails, after the electronic device is connected to the smart home system network as an emergency Bluetooth gateway device, the emergency Bluetooth gateway device can automatically replace the failed Bluetooth gateway device. If multiple devices in the smart home system network fail, such as two Bluetooth gateway devices fail, after the electronic device is connected to the smart home system network as an emergency Bluetooth gateway device, the user can choose which failed Bluetooth gateway device to replace with the emergency Bluetooth gateway device. Fig.10 As shown in (d), the user can select an emergency Bluetooth gateway device from the options corresponding to the emergency Bluetooth gateway device to replace the failed Bluetooth gateway device 1 and / or Bluetooth gateway device 2.
[0150] S902: The electronic device sends a request message to the server.
[0151] Optionally, the request message sent by the electronic device to the server can be used to request to obtain a functional module corresponding to the first device.
[0152] In an optional implementation, the request message sent by the electronic device to the server may include the device information of the first device, so that the request message sent by the electronic device can request the server to obtain the functional module corresponding to the first device, and the electronic device can provide the function corresponding to the first device when running the functional module corresponding to the first device. Optionally, the device information of the first device can be a device identifier.
[0153] S903: The server sends the functional module corresponding to the first device to the electronic device.
[0154] After receiving the request message sent by the electronic device, the server can determine the functional module corresponding to the first device from multiple functional modules stored in the server according to the device information corresponding to the first device in the request message, and send the functional module corresponding to the first device to the electronic device.
[0155] S904: The electronic device sends a configuration request message to the server.
[0156] Optionally, the configuration request message sent by the electronic device to the server may be used to request configuration information corresponding to the first device.
[0157] In an embodiment of the present application, the server may store configuration information of each device in the smart home system, and the electronic device may send a configuration request message to the server, and the configuration request message may include device information of the first device.
[0158] S905: The server sends configuration information corresponding to the first device to the electronic device.
[0159] After receiving the configuration request message sent by the electronic device, the server can determine the configuration information corresponding to the first device from the configuration information stored in the server according to the device information of the first device in the configuration request message, and send the configuration information of the first device to the electronic device.
[0160] It should be noted that, during implementation, the electronic device may send a request message to the server to request the functional module corresponding to the first device and the configuration information corresponding to the first device, that is, S902 and S904 may be the same step. After receiving the request message, the server may send the functional module and configuration information corresponding to the first device to the electronic device, then S903 and S904 may also be the same step, and the embodiment of the present application does not limit this.
[0161] In some implementations, the central device of the smart home system network may also store multiple functional modules and configuration information of multiple smart home devices. In this case, the functions performed by the server in the above S902-S905 may also be performed by the central device in the smart home system network. This embodiment of the present application is not limited to this.
[0162] In addition, when the electronic device sends a configuration request message to the server, the server can verify the legitimacy of the electronic device, and after the legitimacy of the electronic device is verified, the server can send the configuration information corresponding to the first device to the electronic device to ensure information security. In a specific implementation, the server can have a distributed architecture, such as a device cloud for receiving request messages sent by electronic devices and responding, and a file cloud for storing configuration information corresponding to each device in the smart home system. Fig.11 A flowchart of an electronic device acquiring configuration information corresponding to a first device provided in an embodiment of the present application. Fig.11 , including the following steps:
[0163] S1101: The electronic device sends a key request message to the device cloud.
[0164] Optionally, the key request message may include device information of the first device, and the key request message is used to request an encryption key for configuration information corresponding to the first device.
[0165] S1102: The device cloud verifies the legitimacy of the electronic device and determines that the legitimacy verification of the electronic device has passed.
[0166] S1103: The device cloud sends the encryption key of the configuration information corresponding to the first device to the electronic device.
[0167] S1104: The electronic device sends a configuration request message to the device cloud.
[0168] Optionally, the configuration request message may include device information of the first device, and the configuration request message is used to request to obtain a download address of configuration information corresponding to the first device.
[0169] S1105: The device cloud verifies the legitimacy of the electronic device and determines that the legitimacy verification of the electronic device has passed.
[0170] S1106: The device cloud sends the download address of the configuration information corresponding to the first device to the electronic device.
[0171] S1107: The electronic device sends a download request message to the file cloud according to the download address of the configuration information corresponding to the first device.
[0172] The download request message is used to request to obtain configuration information corresponding to the first device.
[0173] S1108: The file cloud sends the encrypted configuration information corresponding to the first device to the electronic device.
[0174] S1109: The electronic device decrypts the encrypted configuration information corresponding to the first device according to the encryption key of the configuration information corresponding to the first device, and obtains the configuration information corresponding to the first device.
[0175] S906: The electronic device runs the functional module corresponding to the first device, and configures the emergency device according to the configuration information corresponding to the first device.
[0176] In an embodiment of the present application, after the electronic device obtains the function module corresponding to the first device, it can run the function module corresponding to the first device, so that the emergency function of the electronic device corresponding to the first fault can be called, and the electronic device can be connected to the smart home system network as an emergency device to provide the function corresponding to the first device. For example, when the first device that fails in the smart home system network is a hub device, the electronic device obtains the function module corresponding to the hub device, and after running the function module corresponding to the hub device, it can provide the function of controlling the smart home device. For another example, when the first device that fails in the smart home system is a Bluetooth gateway device, the electronic device obtains the function module corresponding to the Bluetooth gateway device, and after running the function module corresponding to the Bluetooth gateway device, the electronic device can be used as the Bluetooth gateway device of the smart home system by calling the Bluetooth function of the electronic device. For another example, when the first device that fails in the smart home system is a smart speaker, the electronic device obtains the function module corresponding to the smart speaker, and after running the function module corresponding to the smart speaker, the audio module and speaker of the electronic device can be called to provide the function corresponding to the smart speaker.
[0177] In an optional implementation, the electronic device can configure the emergency device according to the configuration information corresponding to the first device, so that the configuration parameters of the emergency device created by the electronic device are consistent with the configuration parameters of the first device. The emergency device can replace the first device in the smart home system network, and there is no need to reconfigure other electronic devices connected to the first device in the smart home system.
[0178] S907: The electronic device sends a notification message to the smart home device connected to the first device in the smart home system.
[0179] The notification message is used to notify the smart home device connected to the first device to connect to the emergency device. The smart home device connected to the first device in the smart home system network is a smart home device that establishes any connection with the first device, such as a smart home device that establishes a Bluetooth connection with the first device, or a smart home device that establishes a Wi-Fi connection with the first device.
[0180] In an optional implementation, the electronic device may receive device information of a smart home device connected to a first device in a smart home system network sent by a server or a central device, or the electronic device may receive the topological relationship of multiple smart home devices in a smart home system network sent by a server or a central device, and determine the device information of the smart home device connected to the first device. The electronic device may send notification messages to the smart home devices connected to the first device respectively according to the device information of the smart home devices connected to the first device.
[0181] In another optional implementation, the electronic device may send a notification message to the central device, and the central device may send a notification message to the smart home device connected to the first device to notify the smart home device connected to the first device to connect to the emergency device.
[0182] It should be noted that the smart home fault emergency solution provided in the embodiment of the present application can also be used to solve faults in functional modules of smart home devices. The electronic device can be connected to the smart home system network as an emergency device based on the emergency function corresponding to the fault. The emergency device can be used to replace the faulty functional module. For specific implementation, please refer to the above Example 2, and the repeated parts will not be repeated.
[0183] Based on the above embodiments, the present application further provides an electronic device, the electronic device comprising a plurality of functional modules; the plurality of functional modules interact with each other to implement the functions performed by the electronic device in each method described in the embodiments of the present application. Figure 5 or Figure 7 The steps performed by the electronic device in the illustrated embodiment. The multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementations.
[0184] Based on the above embodiments, the present application further provides an electronic device, which includes at least one processor and at least one memory, wherein the at least one memory stores computer program instructions, and when the electronic device is running, the at least one processor executes the functions executed by the electronic device in each method described in the embodiments of the present application. Figure 5 or Figure 7 The steps performed by the electronic device in the illustrated embodiment.
[0185] Based on the above embodiments, the present application further provides a computer program product comprising instructions, and when the computer program product is run on a computer, the computer is enabled to execute the methods described in the embodiments of the present application.
[0186] Based on the above embodiments, the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a computer, the computer executes the methods described in the embodiments of the present application.
[0187] Based on the above embodiments, the present application further provides a chip, which is used to read a computer program stored in a memory to implement the methods described in the embodiments of the present application.
[0188] Based on the above embodiments, the present application provides a chip system, which includes a processor for supporting a computer device to implement the methods described in the embodiments of the present application. In one possible design, the chip system also includes a memory, which is used to store the necessary programs and data for the computer device. The chip system can be composed of a chip, or it can include a chip and other discrete devices.
[0189] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0190] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0191] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0192] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0193] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of protection of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An emergency solution to smart home failure, characterized in that: Applied to electronic equipment, the method comprises: Determine the first fault that occurred in the smart home system network; In response to a first operation by a user, the electronic device is connected to the smart home system network as an emergency device, and provides a function corresponding to the first device causing the first fault; A first notification message is sent, where the first notification message is used to instruct a smart home device connected to the first device in the smart home system network to connect to the emergency device.
2. The method according to claim 1, characterized in that The method further comprises: Determine a second fault that occurs in the smart home system network; In response to a second operation by the user, the electronic device is connected to the smart home system network again as an emergency device, and provides a function corresponding to the second device causing the second fault; A second notification message is sent, where the second notification message is used to instruct the smart home device connected to the second device in the smart home system network to connect to the emergency device.
3. The method according to claim 1 or 2, characterized in that The first fault is a network fault; the electronic device is connected to the smart home system network as an emergency device, and provides a function corresponding to the first device causing the first fault, including: The electronic device is connected to the smart home system network as an emergency network device, and provides a network access function corresponding to the first device causing the first fault; The sending of a first notification message, wherein the first notification message is used to instruct a smart home device connected to the first device in the smart home system network to connect to the emergency device, includes: The first notification message is sent, where the first notification message is used to instruct a routing device in the smart home system network to access a network provided by the electronic device.
4. The method according to claim 3, characterized in that The first notification message is also used to instruct the routing device to modify the routing connection mode.
5. The method according to claim 1 or 2, characterized in that: The first fault is a fault of the first device; The electronic device is connected to the smart home system network as an emergency device, and provides a function corresponding to the first device causing the first fault, including: Sending a request message, wherein the request message is used to request to obtain a function module corresponding to the first device; the function module is used to call an emergency function of the electronic device corresponding to the first fault; A function module corresponding to the first device is received to provide a function corresponding to the first device causing the first fault.
6. The method according to claim 5, characterized in that The method further comprises: Sending a configuration request message, where the configuration request message is used to request configuration information corresponding to the first device; Receiving configuration information corresponding to the first device; The emergency device is configured according to the configuration information.
7. The method according to any one of claims 1 to 6, characterized in that: Before sending the notification message, the method further includes: Obtain device information of a smart home device connected to the first device in the smart home system network.
8. The method according to claim 7, characterized in that The acquiring device information of a smart home device connected to the first device in the smart home system network includes: Receiving device information of a smart home device connected to the first device, which is sent by a server or a hub device in the smart home system network; or Receive the topological relationship of multiple smart home devices in the smart home system network sent by the server or the central device, and determine the device information of the smart home device connected to the first device according to the topological relationship.
9. The method according to any one of claims 1 to 8, characterized in that The step of determining a fault of the smart home system comprises: Receive fault information sent by a server or a central device in the smart home system network, and determine the fault occurring in the smart home system network according to the fault information.
10. The method according to any one of claims 1 to 9, characterized in that: The emergency function of the electronic device is at least one of a network access function, a control function, a display function, a speaker function, a microphone function, a sensor function, and a camera function.
11. The method according to claim 10, characterized in that The network access function includes at least one of a hotspot function, a Bluetooth gateway function, a Wireless Fidelity Wi-Fi gateway function, and a NearLink gateway function.
12. The method according to any one of claims 1 to 11, characterized in that: After determining the first fault occurring in the smart home system network, the method further includes: Displaying a first interface, wherein the first interface is used to add an emergency device to the smart home system network; The first operation is detected, where the first operation is an operation triggered by the user to add a control corresponding to the emergency device in the first interface.
13. The method according to claim 12, characterized in that After detecting the first operation, the method further includes: A second interface is displayed, wherein the second interface includes controls corresponding to at least one smart home device in the smart home system network and controls corresponding to the emergency device.
14. The method according to any one of claims 1 to 13, characterized in that: After the electronic device is connected to the smart home system network as an emergency device and provides a function corresponding to the first device causing the first fault, the method further includes: Display a third interface, wherein the third interface is used to indicate that the emergency device has successfully connected to the smart home system network; or A notification message is displayed, where the notification message is used to indicate that the emergency device has successfully connected to the smart home system network.
15. An electronic device, characterized in that: The system comprises at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is configured to read a computer program stored in the at least one memory to execute the method according to any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Replacement method for smart home devices
CN108964994A
Fault processing method and device for intelligent equipment
CN110244686A
Method for controlling smart home devices and network device
CN110515307A
Control system and method for automatically replacing smart home equipment
CN111970182A
Communication method, intelligent device and router system
CN112511420A