Method and system for replacing smart home equipment
By automatically replacing the physical address of the new device in the smart home system, the operational inconvenience of manually deleting old device information and resetting new device parameters during device replacement is solved, and the degree of automation of the system is improved.
Patent Information
- Application Number
- CN202411702380.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-02-25
AI Technical Summary
In smart home systems, when replacing the device, you need to manually delete the information of the old device and reset the operating parameters of the new device, which leads to inconvenient operation.
By obtaining the access request of the new device, determining its device information and target space, querying the information of offline devices in the target space. If there is a first offline device with the same device type, replace its device physical address with the device physical address of the new device to achieve automatic replacement.
There is no need to manually set the operating parameters of the new device, which simplifies user operations, improves the degree of system automation, and realizes the convenience of equipment replacement.
Smart Images

Figure CN119520483A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a method and system for replacing smart home equipment. Background Art
[0002] Smart home is a new home model that uses advanced electronic technology, communication technology, automation control technology and Internet of Things technology to connect various isolated electrical appliances and home facilities within the home to achieve intelligent control and management.
[0003] At present, the smart home system can intelligently control the working parameters and working status of home appliances through control terminals such as the central control screen, mobile phone APP and voice interaction devices. For example, the water heater setting temperature can be adjusted through the mobile phone APP, the light switch and brightness can be controlled through the central control screen, and the curtains can be opened through voice and voice assistant dialogue. In addition, the smart scene mode can also be set in advance to automatically control the device status after certain conditions are met. For example, when the human presence sensor senses that a person has entered the target space, the lights in the target space will be turned on. When the human presence sensor senses that there is no one in the target space, the lights in the target space will be turned off.
[0004] The premise of the above-mentioned various intelligent controls is that the control end stores the device information of the controlled home appliances, wherein the device information is obtained through pairing when the home appliances are installed. Therefore, when a device fails and is replaced with a new device, and the new device is paired, the control end will store the device information of both the old device and the new device. If the user wants to intelligently control the new device, the scene mode of the new device needs to be re-set, and the information of the old device needs to be manually deleted, which brings a lot of operational inconveniences. Summary of the invention
[0005] The first technical problem solved by the present invention is to provide a method for replacing smart home devices, which effectively solves the problem of inconvenience in replacing smart home devices.
[0006] The second technical problem solved by the present invention is to provide a replacement system for smart home devices, which effectively solves the problem of inconvenience in replacing smart home devices.
[0007] The first technical problem mentioned above is solved by the following technical solution:
[0008] Obtain a new device access request, and determine the device information and target space of the target new device in the new device access request; query the device information of the offline device in the target space, wherein the device information includes at least the device type and the device physical address; if there is a first offline device in the target space whose device type is consistent with the device type of the target new device, replace the device physical address of the first offline device with the device physical address of the target new device.
[0009] Compared with the background technology, the method for replacing smart home devices described in the present invention has the following beneficial effects: the method determines whether it is necessary to replace the device physical address of the first offline device with the device physical address of the target new device by judging the device type of the target new device and the device type of the first offline device in the target space. The control terminal will automatically replace the stored device physical address according to the judgment result, so that the target new device can replace the first offline device to work. The user does not need to manually set the operating parameters of the target new device, which greatly simplifies the user's operation of the control terminal and improves the automation level of the entire system.
[0010] In one embodiment, determining the device information and target space of the target new device in the new device access request includes:
[0011] Acquire device information of the target new device based on the new device access request;
[0012] According to the change of the electric load in each space, the target space where the target new device is located is determined.
[0013] In one embodiment, determining the target space where the target new device is located according to the change of the electric load in each space includes:
[0014] The first change amplitude of the electric load of each space within a preset time before receiving the access request of the new device is obtained, and the space with the largest first change amplitude of the electric load is determined as the target space.
[0015] In one embodiment, the method further comprises:
[0016] If it is detected that a device is in an offline state, it is determined that there is an offline device, and the types of the offline device include a power-off device and a communication failure device;
[0017] Obtaining a second variation amplitude of the electric load in the space where the offline device is located before detecting that the device is in an offline state;
[0018] If the second change amplitude reaches a preset change threshold, the offline device is determined to be a power-off device; if the second change amplitude does not reach the preset change threshold, the offline device is determined to be a communication failure device.
[0019] In one embodiment, the device information further includes working parameters, and the method further includes:
[0020] If there is a first offline device in the target space whose device type is consistent with that of the target new device, the working parameters of the first offline device are updated to the target new device.
[0021] In one embodiment, the method further comprises:
[0022] If there is no first offline device whose device type is consistent with the device type of the target new device, determining that the target new device is a newly accessed device;
[0023] Connect the target new device to the target space.
[0024] In one embodiment, the method further comprises:
[0025] Obtaining a device access request, and determining a device physical address according to the device access request;
[0026] If the device physical address is not recorded locally, it is determined that the device access request is a new device access request.
[0027] In one embodiment, the method further comprises:
[0028] After the device information of the target new device replaces the device information of the first offline device, the device information of the first offline device is cleared.
[0029] In one embodiment, the device information further includes a device model, and if a first offline device having a device type consistent with that of the target new device exists in the target space, replacing the device physical address of the first offline device with the device physical address of the target new device includes:
[0030] If there is a first offline device in the target space whose device type is consistent with the device type of the target new device, determining whether there is a device model of the target new device in a preset whitelist, the preset whitelist corresponding to the device type;
[0031] If the device model of the target new device exists in the preset whitelist, the device physical address of the first offline device is replaced by the device physical address of the target new device.
[0032] The above second technical problem is solved by the following technical solution:
[0033] A smart home device replacement system, the system comprising:
[0034] A control terminal, used to execute the above-mentioned method for replacing smart home devices;
[0035] At least one home appliance, wherein the home appliance is connected to the control terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A schematic diagram of a process for replacing a smart home device according to an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a module of a control system of a smart home device according to an embodiment of the present invention;
[0039] Figure 3 This is a schematic diagram of a module of a central control screen according to an embodiment of the present invention;
[0040] Figure 4 A schematic diagram of a flow chart of a method for determining an offline device according to an embodiment of the present invention;
[0041] Figure 5 The figure is a flow chart of a device access method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] In the description of the present application, it should be understood that the terms "center", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0044] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise specified, "plurality" means two or more.
[0045] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0046] The smart home system integrates a variety of smart devices and functions, and realizes intelligent control and management of the home environment through a unified management platform. The smart home system involves various types of home appliances. If a home appliance fails, the device needs to be replaced or the main control circuit board needs to be replaced, and re-pairing is required. The information of the failed device will still be retained in the control terminal, which needs to be manually deleted by the user, causing many inconveniences. Based on this, an embodiment of the present invention provides a method for replacing smart home devices, which is applied to the control terminal of the smart home. The smart home device replacement system includes a control terminal and at least one home appliance.
[0047] According to an embodiment of the present invention, a method for replacing a smart home device is provided. Figure 1 is a flow chart of a method for replacing a smart home device according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0048] Step S101, obtaining a new device access request, and determining device information and a target space of a target new device in the new device access request.
[0049] The new device access request indicates that the device initiating the access request is a new device. A new device refers to a device that has not been connected to the system before, and the device information related to the new device is not stored in the system. In this step, the new device access request is used to characterize that the device that needs to be newly connected is a target new device. The device information of the target new device can be determined based on the information contained in the new device access request. The target space where the target new device is located can be determined by electrical load detection. For example, the space where the electrical load changes can be determined as the target space where the target new device is located.
[0050] Step S102, querying device information of offline devices in the target space.
[0051] Device information includes device type, device physical address, etc., where the device physical address refers to the device's MAC address (Media Access Control Address). Offline devices refer to home appliances that were originally connected to the system but cannot communicate with the control end due to failure or power outage. The control terminal refers to control devices such as the local central control screen or the user's mobile phone APP. The system stores a list of offline devices corresponding to each space. When there is an offline device, the device information of the offline device will be recorded in the offline device list. After determining the target space, query the device information of all offline devices in the target space to determine whether there are offline devices that are consistent with the device information of the target new device. When querying, first query the device type, and then query the device model according to needs.
[0052] Step S103: If there is a first offline device in the target space whose device type is consistent with that of the target new device, the device physical address of the first offline device is replaced with the device physical address of the target new device.
[0053] After querying the device information, it is determined whether there is a first offline device in the target space whose device type is consistent with the device type of the target new device.
[0054] If it is determined that there is a first offline device in the target space whose device type is consistent with that of the target new device, the device physical address of the stored first offline device is replaced with the device physical address of the target new device. In practical applications, the specific device information that needs to be replaced can also be selected according to the offline type of the first offline device. The device information that needs to be replaced includes but is not limited to the device physical address. The control end can transmit control instructions and working parameters to the target new device according to the device physical address of the target new device. It can be understood that before replacement, when the setting conditions of the smart scene mode are met, the control end controls the controlled device (first offline device) of the smart scene mode according to the device physical address of the first offline device. After replacement, when the setting conditions of the smart scene mode are met, the control end controls the controlled device (target new device) of the smart scene mode according to the device physical address of the target new device.
[0055] The method for replacing smart home devices provided by an embodiment of the present invention includes obtaining a new device access request, determining the device information of the target new device and the target space in the new device access request, querying the device information of the offline device in the target space, and if there is a first offline device in the target space whose device type is consistent with the device type of the target new device, replacing the device physical address of the first offline device with the device physical address of the target new device. This method determines whether it is necessary to replace the device physical address of the first offline device with the device physical address of the target new device by judging the device type of the target new device and the device type of the first offline device in the target space. The control terminal will automatically replace the device physical address according to the judgment result, thereby replacing the original first offline device. The user does not need to manually set the operating parameters of the target new device, which greatly simplifies the user's operation of the control terminal and improves the automation level of the entire system.
[0056] According to an embodiment of the present invention, a method for replacing a smart home device is provided, the method comprising the following steps:
[0057] Step S201, obtaining a new device access request, and determining device information and a target space of a target new device in the new device access request.
[0058] Specifically, the above step S201 includes the following steps:
[0059] Step S2011: acquiring device information of a target new device based on a new device access request.
[0060] The new device access request includes device information of the target new device, wherein the device information includes at least the device type, device model, device physical address, etc.
[0061] Step S2012, determining the target space where the target new device is located according to the change of the electrical load in each space.
[0062] The electric load management module in the system can be used to detect the electric load conditions in each space in real time. When the electric load of a space fluctuates, the space with the electric load fluctuation can be further determined as the target space to which the target new device is connected based on the electric load fluctuation. For example, if the electric load increases, the space with an electric load increment reaching a preset amplitude can be determined as the target space.
[0063] Further, step S2012 includes: obtaining a first change amplitude of electric load of each space within a preset time before receiving a new device access request, and determining a space with a largest first change amplitude of electric load as a target space.
[0064] The system is set with a specific time period, i.e., the preset time. During the preset time before receiving a new device access request, the system will detect and record the change amplitude of the electric load in each space in real time. The change amplitude refers to the increase or decrease amount or change rate of the electric load during the preset time. The first change amplitude of the electric load is used to indicate the change amplitude of the electric load in each space detected during the preset time before the new device access request. The space with the largest first change amplitude of the electric load is determined as the target space.
[0065] Step S202, querying device information of offline devices in the target space.
[0066] For details, please see Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0067] Step S203: If there is a first offline device in the target space whose device type is consistent with that of the target new device, the device physical address of the first offline device is replaced with the device physical address of the target new device.
[0068] Specifically, the device information also includes the device model, and the above step S203 includes the following steps:
[0069] Step S2031: If there is a first offline device in the target space whose device type is consistent with the device type of the target new device, it is determined whether there is a device model of the target new device in the preset whitelist.
[0070] The preset whitelist corresponds to the device type. The preset whitelist stores the device models that can be replaced by the new device, and each device type has its corresponding preset whitelist. If there is a first offline device in the target space whose device type is consistent with the device type of the target new device, the preset whitelist corresponding to the device type is further obtained to query whether the preset whitelist contains the device model of the target new device.
[0071] Step S2032: If the device model of the target new device exists in the preset whitelist, the device physical address of the first offline device is replaced with the device physical address of the target new device.
[0072] If the device model of the target new device exists in the preset whitelist, indicating that the target new device is used to replace the first offline device, the device physical address of the first offline device is replaced by the device physical address of the target new device.
[0073] Taking the device type as lighting equipment as an example, if the device model of the first offline device is model A, and if the preset whitelist corresponding to the lighting device includes model A, model B, and model C. If the target new device is model B, the device physical address of the first offline device can still be replaced by the device physical address of the target new device.
[0074] By presetting the whitelist, the device physical address of the target new device that meets the device model stored in the preset whitelist can be automatically replaced, thereby improving the automation level of the system. It should be noted that in addition to the device physical address, other device information can also be replaced according to actual needs.
[0075] In some optional embodiments, the method for replacing smart home devices provided in the above embodiments also includes: if there is no first offline device whose device type is consistent with the device type of the target new device, determining that the target new device is a newly accessed device; and connecting the target new device to the target space.
[0076] If there is no first offline device in the target space whose device type is consistent with that of the target new device, it indicates that the target new device is not used to replace the offline device, but is a newly connected device, that is, a device newly added to the target space, and the target new device is connected to the target space. After the target new device is connected to the target space, the device information of the target new device can be stored, and the target new device can be detected in real time. Specifically, the detection can be performed by means of a heartbeat packet. If the heartbeat packet fed back by the target new device is not received within a certain period of time, it can be determined that the device is in an offline state.
[0077] In some optional implementations, the method for replacing a smart home device provided in the above implementation further includes: obtaining a device access request, and determining a device physical address based on the device access request; if the device physical address is not recorded locally, determining that the device access request is a new device access request.
[0078] The device access request includes device information, and the device information includes the device physical address. When a device access request is received, it is determined whether the device physical address in the device access request is stored locally. Local refers to the device local of the control terminal. The control terminal stores the device physical addresses of all connected devices locally. If the device physical address in the device access request is not stored locally, it means that a new device needs to be connected, that is, the device access request is a new device access request.
[0079] If the device physical address in the device access request is stored locally, it indicates that the device access request is used to represent the access of the old device. For example, if the old device is a powered-off device, the old device is reconnected and accessed again. At this time, the device access request is an old device access request.
[0080] In some optional implementations, if the control terminal is in the cloud, the device information can be stored in the cloud.
[0081] In some optional implementations, the method for replacing a smart home device provided in the above implementation further includes: after the device information of the target new device replaces the device information of the first offline device, clearing the device information of the first offline device.
[0082] After the device physical address of the target new device replaces the device physical address of the first offline device, the first offline device is replaced with the target new device, and the device information of the first offline device in the system is cleared.
[0083] If the first offline device itself is restored to an online state, the device information of the first offline device in the offline list in the space may also be cleared, indicating that the first offline device has restored to a normal working state.
[0084] According to an embodiment of the present invention, a method for replacing a smart home device is provided, the method comprising the following steps:
[0085] Step S301: If it is detected that a device is in an offline state, it is determined that there is an offline device.
[0086] The types of offline devices include power-off devices and communication failure devices.
[0087] During the operation of the system, the heartbeat packets of each device are periodically detected to promptly detect offline devices. The heartbeat packet is a signal to maintain an active connection between the device and the system. It is sent regularly to indicate that the device is operating normally and is in a communicative state. The system has a built-in monitoring mechanism that is specifically responsible for receiving and processing these heartbeat signals from the device. If the system fails to receive the heartbeat packet of a device within a certain period of time within a preset time period, the system will automatically determine that the device is offline based on the situation. This mechanism ensures that the system can promptly detect and respond to device connection problems, and take appropriate measures, such as issuing an alarm, trying to reestablish a connection, or starting a backup device, to ensure the stability and reliability of the entire system.
[0088] When it is detected that a device is offline, it is determined that there is an offline device currently. Offline devices include at least communication failure devices and power-off devices. Communication failure devices indicate that the communication module of the device is faulty, the communication link is faulty, etc. The function of the communication failure device is not affected and the device can still be used locally. Power-off devices indicate that the device has lost power supply due to certain reasons.
[0089] Step S302, obtaining a second variation range of the electric load in the space where the offline device is located before detecting that the device is in an offline state.
[0090] The electric load management module detects the electric load in each space in real time, and the second variation range represents the variation range of the electric load in the space detected before it is detected that a device is in an offline state.
[0091] Step S303: if the second change amplitude reaches the preset change threshold, the offline device is determined to be a power-off device; if the second change amplitude does not reach the preset change threshold, the offline device is determined to be a communication failure device.
[0092] The preset change threshold represents the threshold of the reduction amount of the electric load change. When the second change amplitude reaches the preset change threshold, it indicates that the electric load in the space has dropped by more than the preset change threshold in a short period of time, and the offline device in the space no longer consumes electricity. The device stops consuming electricity usually because the power supply is disconnected, that is, the device is in a power-off state. Therefore, when the second change amplitude reaches the preset change threshold, the offline device is judged to be a power-off device.
[0093] If the second change amplitude does not reach the preset change threshold, it means that the electric load has not changed abnormally, but the system still detects the offline device, indicating that there may be a problem in the communication between the device and the control terminal, which may be caused by a communication module failure of the device itself, a disconnected communication link, etc. Therefore, when the second change amplitude does not reach the preset change threshold, the offline device is judged to be a communication failure device.
[0094] Furthermore, the device information also includes working parameters. The above-mentioned smart home device replacement method also includes: if there is a first offline device in the target space whose device type is consistent with the device type of the target new device, the working parameters of the first offline device are updated to the target new device.
[0095] Since the types of offline devices include power-off devices and communication failure devices, for power-off devices, the device physical address of the first offline device is replaced with the device physical address of the target new device. In addition, the working parameters of the first offline device are updated to the target new device, and there is no need to set the working parameters of the target new device, so that the new device can be used directly after it is connected. Working parameters refer to the operating parameters of the device when it is working. Taking lighting equipment as an example, the working parameters may include color temperature, color rendering index, light effect, etc. In addition, working parameters also include the operating parameters of the device in the interactive scenario, which may specifically include the response time, interaction mode, recognition accuracy, etc. of the device.
[0096] In this implementation, the corresponding device information can be adaptively replaced according to the type of the offline device, so that the newly connected device can be seamlessly integrated into the system to maintain the stability of the system.
[0097] According to an embodiment of the present invention, a system for replacing smart home devices is provided, the system comprising: a control terminal and at least one home device, the home device is connected to the control terminal, and the control terminal is used to execute the method for replacing smart home devices provided in the above implementation.
[0098] In some optional implementations, the method for replacing a smart home device provided by the present invention is based on a control system of a smart home device, such as Figure 2 As shown in the figure, the system includes a central control panel, an electricity metering module, and smart devices, etc. The smart devices are smart home devices. The central control panel and the electricity metering module, and the central control panel and the smart devices are connected through power lines and perform carrier communication. The central control panel, the electricity metering module, and the smart devices are all connected to the 220V mains. Figure 3 As shown, the central control screen includes a UI (User Interface) interaction module, a PLC (Power Line Communication) communication module, a space management module, a device management module, an electric load management module, a device control module, a scene linkage module and an information storage module. The method for replacing smart home devices provided by the present invention involves a PLC communication module, a space management module, a device management module, an electric load management module and an information storage module.
[0099] Among them, the PLC communication module is used for communication protocol conversion and analysis between the electricity metering module and the intelligent device; the space management module is used for centralized management of the sub-spaces of the whole house; the equipment management module is used for the management of the functions and information of all the equipment in the whole house; the power load management module is used for the metering, analysis and energy management of the power load of the whole house intelligent devices; the information storage module is used to store information such as the parameters, historical data, and configuration information of the whole house intelligent system. When the system is configured and installed, the electricity metering module is bound to the space one by one, and there is only one electricity metering module in each space. When the system is configured and installed, the intelligent devices of each space have been configured in the corresponding space. When the intelligent device joins the system, the device information configuration has been completed. The device information specifically includes the device type, device model, communication address, and working parameters. Among them, the communication address is the MAC address (Media Access Control Address) of the device. Working parameters refer to the operating parameters of the device when it is working. Taking the lamp as an example, the working parameters may include color temperature, color rendering index, light effect, etc. In addition, the working parameters also include the operating parameters of the device in the interactive scene, which may specifically include the response time, interaction mode, recognition accuracy, etc. of the device.
[0100] Based on the above system, an embodiment of the present invention provides a method for determining an offline device, such as Figure 4As shown. During the operation of the system, the heartbeat packet of the device will be monitored regularly. If the heartbeat packet of the device is not received for a long time, it is judged that the device is in an offline state. When it is detected that a device is in an offline state, it is judged whether there is a decrease in the power load in the space corresponding to the offline device. Specifically, it can be judged whether the change amplitude of the power load reaches the preset change threshold. If the judgment result is yes, the offline device is determined to be a power-off device, and the device information A of the power-off device and the space B in which it is located are stored in the power-off device list; if the judgment result is no, the offline device is determined to be a communication failure device, and the device information C of the communication failure device and the space D in which it is located are stored. The device information may include the device type, device model, communication address, etc. of the power-off device. If the offline device is restored to the online state, the stored device information and space of the offline device are cleared.
[0101] Based on the above system, an embodiment of the present invention provides a device access method, such as Figure 5 As shown. When a new device access request is detected, the device information E of the new device is obtained, and the space where the new device is located is determined according to the change of the power load. Whether there is an offline device in the query space, the query process specifically includes: first, whether there is a long-term power-off device in the space is determined. If the judgment result is yes, then further determine whether the device information A of the power-off device is consistent with the device information E. Specifically, the device type and device model in the device information can be compared. If the judgment result is yes, then the device information A of the power-off device is replaced with the device information E of the new device, which includes the scene linkage parameters (i.e., the working parameters in the interactive scene), the control cache, and the physical address of the device. If there is no power-off device in the space, or the device information A is inconsistent with the device information E, then further determine whether there is a communication fault device in the space. If the judgment result is yes, then determine whether the device information C of the communication fault device is consistent with the device information E. If the judgment result is yes, then replace the device information of the communication fault device with the device information of the new device. If there is no communication fault device in the space, or the device information C is inconsistent with the device information E, then determine that the new device is a newly connected device and connect it to the corresponding space.
[0102] When the device information E of a new device replaces the device information A or the device information C, the device information A or the device information C is deleted.
[0103] In the present embodiment, a control terminal is also provided, which is used to implement the above-mentioned embodiments and implementation methods, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0104] This embodiment provides a control terminal, including: a request acquisition module, used to obtain a new device access request, and determine the device information and target space of the target new device in the new device access request; an information query module, used to query the device information of the offline device in the target space, and the device information at least includes the device type and the device physical address; an information replacement module, used to replace the device physical address of the first offline device with the device physical address of the target new device if there is a first offline device in the target space whose device type is consistent with the device type of the target new device.
[0105] In the specific contents of the above-mentioned specific implementation methods, the various technical features can be combined in any non-contradictory manner. In order to make the description concise, not all possible combinations of the above-mentioned technical features are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0106] The specific contents of the above specific embodiments only express several embodiments of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the present invention.
Claims
1. A method for replacing a smart home device, characterized in that: The method comprises: Obtaining a new device access request, and determining device information and a target space of a target new device in the new device access request; Querying device information of offline devices in the target space, wherein the device information includes at least a device type and a device physical address; If a first offline device whose device type is consistent with that of the target new device exists in the target space, the device physical address of the first offline device is replaced with the device physical address of the target new device.
2. The method according to claim 1, characterized in that The determining device information and target space of the target new device in the new device access request includes: Acquire device information of the target new device based on the new device access request; According to the change of the electric load in each space, the target space where the target new device is located is determined.
3. The method according to claim 2, characterized in that The step of determining the target space where the target new device is located according to the change of the electric load in each space includes: The first change amplitude of the electric load of each space within a preset time before receiving the access request of the new device is obtained, and the space with the largest first change amplitude of the electric load is determined as the target space.
4. The method according to claim 1, characterized in that: The method further comprises: If it is detected that a device is in an offline state, it is determined that there is an offline device, and the types of the offline device include a power-off device and a communication failure device; Obtaining a second variation amplitude of the electric load in the space where the offline device is located before detecting that the device is in an offline state; If the second change amplitude reaches a preset change threshold, the offline device is determined to be a power-off device; if the second change amplitude does not reach the preset change threshold, the offline device is determined to be a communication failure device.
5. The method according to claim 4, characterized in that The device information also includes working parameters, and the method further includes: If there is a first offline device in the target space whose device type is consistent with that of the target new device, the working parameters of the first offline device are updated to the target new device.
6. The method according to claim 1, characterized in that The method further comprises: If there is no first offline device whose device type is consistent with the device type of the target new device, determining that the target new device is a newly accessed device; Connect the target new device to the target space.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining a device access request, and determining a device physical address according to the device access request; If the device physical address is not recorded locally, it is determined that the device access request is a new device access request.
8. The method according to claim 1, characterized in that The method further comprises: After the device information of the target new device replaces the device information of the first offline device, the device information of the first offline device is cleared.
9. The method according to claim 1, characterized in that: The device information also includes a device model. If a first offline device whose device type is consistent with that of the target new device exists in the target space, replacing the device physical address of the first offline device with the device physical address of the target new device includes: If there is a first offline device in the target space whose device type is consistent with the device type of the target new device, determining whether there is a device model of the target new device in a preset whitelist, the preset whitelist corresponding to the device type; If the device model of the target new device exists in the preset whitelist, the device physical address of the first offline device is replaced by the device physical address of the target new device.
10. A smart home device replacement system, characterized in that: The system comprises: A control terminal, used to execute the method described in any one of claims 1 to 9 above; At least one home appliance, wherein the home appliance is connected to the control terminal.