CN114285688A - Equipment replacement method, device, gateway, system and medium - Google Patents

Equipment replacement method, device, gateway, system and medium Download PDF

Info

Publication number
CN114285688A
CN114285688A CN202111577204.8A CN202111577204A CN114285688A CN 114285688 A CN114285688 A CN 114285688A CN 202111577204 A CN202111577204 A CN 202111577204A CN 114285688 A CN114285688 A CN 114285688A
Authority
CN
China
Prior art keywords
information
sub
equipment
gateway
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111577204.8A
Other languages
Chinese (zh)
Inventor
杨彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Intelligent Lighting and Controls Technology Co Ltd
Original Assignee
Midea Intelligent Lighting and Controls Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Intelligent Lighting and Controls Technology Co Ltd filed Critical Midea Intelligent Lighting and Controls Technology Co Ltd
Priority to CN202111577204.8A priority Critical patent/CN114285688A/en
Publication of CN114285688A publication Critical patent/CN114285688A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the disclosure relates to a device replacement method, a device, a gateway, a system and a medium, wherein the method comprises the following steps: the method comprises the steps of responding to a received device replacing instruction of a server, and obtaining configuration information of first devices; the device replacement instruction is used for indicating that the first device is replaced by the second device, and the configuration information comprises different types of sub information; determining target sub-information to be issued according to the type of the acquired sub-information, and issuing the target sub-information to second equipment so that the second equipment can be configured according to the received target sub-information; replacing the identifier of the first device recorded in the gateway local with the identifier of the second device in response to receiving the configuration completion message of the second device; and reporting a replacement completion message to the server so that the server replaces the identifier of the first device stored in the server with the identifier of the second device. The embodiment of the disclosure can effectively improve the equipment replacement efficiency and ensure the reliability of equipment replacement.

Description

Equipment replacement method, device, gateway, system and medium
Technical Field
The present disclosure relates to the field of intelligent device technologies, and in particular, to a device replacement method, apparatus, gateway, system, and medium.
Background
Smart homes have become popular for use in people's daily lives. People can set relevant parameters of the intelligent household equipment according to requirements, so that the intelligent household equipment can intelligently operate according to a set mode, for example, an intelligent lamp can be turned on/off at regular time according to setting, different light color effects can be displayed under different scenes, and the like.
After the household equipment is damaged, a user usually adds new household equipment (hereinafter, referred to as new equipment) to replace original damaged equipment (hereinafter, referred to as old equipment), most of the related technologies need to manually configure parameters of the new equipment, such as the user needs to record configuration parameters (indicating functions/operation modes and the like of the old equipment) of the old equipment one by one and then set the new equipment one by one according to the recorded parameters, in the process, the problems of missing and wrong memorization of information of the old equipment, wrong information setting of the new equipment and the like easily occur, most of the new equipment also need to be adjusted and modified repeatedly, the operation time is long, and the efficiency of equipment replacement is low.
Disclosure of Invention
In order to solve the technical problem, the present disclosure provides a device replacement method, apparatus, gateway, system, and medium.
The embodiment of the disclosure provides a device replacement method, which is applied to a gateway and comprises the following steps: the method comprises the steps of responding to a received device replacing instruction of a server, and obtaining configuration information of first devices; the device replacement instruction is used for indicating that the first device is replaced by a second device, and the configuration information contains different kinds of sub information; determining target sub-information to be issued according to the type of the acquired sub-information, and issuing the target sub-information to the second device so that the second device performs configuration according to the received target sub-information; replacing the identifier of the first device recorded in the gateway local with the identifier of the second device in response to receiving the configuration completion message of the second device; reporting a replacement completion message to the server so that the server replaces the identifier of the first device stored in the server with the identifier of the second device.
Optionally, the configuration information includes one or more of grouping sub information, local scene sub information, and device linkage scene sub information; wherein: the grouping sub-information includes: the group identification where the first equipment is located; the local scene sub-information includes: at least one local scene corresponding to the first device, and an operation parameter of the first device in each local scene; the device linkage scene sub-information comprises: the system comprises at least one equipment linkage scene containing the first equipment, operation parameters of the first equipment in each equipment linkage scene, and associated operation logic of the first equipment and other equipment.
Optionally, the step of determining the target sub information to be delivered according to the type of the obtained sub information includes: if the acquired sub-information comprises grouping sub-information, determining the grouping sub-information as target sub-information to be issued; and if the acquired sub-information contains local scene sub-information, determining the local scene sub-information as target sub-information to be issued.
Optionally, the target sub-information includes a plurality of types; the step of sending the target sub-information to the second device includes: acquiring the issuing priority corresponding to each kind of the target sub information; determining an information issuing sequence according to the issuing priority; and issuing the target sub-information to the second equipment in sequence based on the information issuing sequence.
Optionally, the target sub-information includes grouping sub-information and/or local scene sub-information, and a delivery priority of the grouping sub-information is higher than a delivery priority of the local scene sub-information.
Optionally, the step of replacing the identifier of the first device recorded in the gateway local with the identifier of the second device includes: if the configuration information comprises grouping sub information, replacing the identification of the first device in the grouping sub information locally recorded by the gateway with the identification of the second device; if the configuration information comprises local scene sub-information, replacing the identifier of the first device in the mapping relation between the first device and the local scene recorded locally by the gateway with the identifier of the second device; if the configuration information comprises equipment linkage scene sub-information, replacing the identifier of the first equipment in a database and an operation linked list which are locally stored in the gateway with the identifier of the second equipment; wherein, the operation linked list comprises the associated operation logic of the first device and other devices.
The embodiment of the present disclosure further provides an apparatus replacement device, which is applied to a gateway, and includes: the information acquisition module is used for responding to a received equipment replacement instruction of the server and acquiring configuration information of the first equipment; the device replacement instruction is used for indicating that the first device is replaced by a second device, and the configuration information contains different kinds of sub information; the information configuration module is used for determining target sub-information to be issued according to the type of the acquired sub-information and issuing the target sub-information to the second equipment so that the second equipment can be configured according to the received target sub-information; a first identifier replacing module, configured to replace, in response to receiving the configuration completion message of the second device, the identifier of the first device recorded in the gateway local by the identifier of the second device; a second identifier replacing module, configured to report a replacement completion message to the server, so that the server replaces the identifier of the first device stored in the server with the identifier of the second device.
An embodiment of the present disclosure further provides a gateway, where the gateway includes: a processor; a memory for storing the processor-executable instructions; the processor is used for reading the executable instructions from the memory and executing the instructions to realize the device replacement method provided by the embodiment of the disclosure.
The embodiment of the disclosure also provides an intelligent home system, which comprises a user terminal, a server, a gateway and at least one home device; the user terminal and the server communicate based on a first communication mode, the server and the gateway communicate based on a second communication mode, and the gateway and the household equipment communicate based on a third communication mode; the user terminal is configured to send a device replacement request to the server, the server is configured to issue a device replacement instruction to the gateway after receiving the device replacement request, and the gateway is configured to execute the device replacement method according to any one of the foregoing embodiments after receiving the device replacement instruction.
The embodiment of the present disclosure also provides a computer-readable storage medium, which stores a computer program for executing the device replacement method provided by the embodiment of the present disclosure.
According to the technical scheme provided by the embodiment of the disclosure, the gateway can respond to the received device replacement instruction (used for indicating that the first device is replaced by the second device) of the server, and obtain the configuration information (containing different types of sub information) of the first device; and then determining target sub-information to be issued according to the type of the acquired sub-information, issuing the target sub-information to second equipment so as to enable the second equipment to configure according to the received target sub-information, then replacing the identifier of the first equipment recorded in the gateway local with the identifier of the second equipment in response to receiving a configuration completion message of the second equipment, and finally reporting the replacement completion message to a server so as to enable the server to replace the identifier of the first equipment stored in the server with the identifier of the second equipment. In the above manner, the gateway may determine, from the configuration information of the first device, target sub-information that needs to be configured locally by the second device, send the target sub-information to the second device for configuration, and sequentially replace the identifier of the first device in the gateway local and the server with the identifier of the second device after the device configuration is completed. In conclusion, the efficient replacement of the equipment is realized in three aspects of the equipment, the gateway and the server, and the reliability of the equipment replacement can be better ensured by adopting a mode of preferentially performing the local replacement of the equipment and then sequentially performing the gateway replacement and the server replacement after the local replacement of the equipment.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of an intelligent home system provided in an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a device replacement method according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a device replacement interaction provided by an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a configuration information processing method according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another configuration information processing method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus replacement device provided in an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a gateway according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
First, an embodiment of the present disclosure provides an intelligent home system, which includes a user terminal, a server (also referred to as a cloud server or a cloud), a gateway, and at least one home device; by way of example, the home device may be, without limitation, a switch panel, a door lock, a light fixture, a door magnet, a window covering, or the like.
In some embodiments, the user terminal and the server communicate based on a first communication mode, the server and the gateway communicate based on a second communication mode, and the gateway and the device communicate based on a third communication mode. The above-mentioned "first", "second" and "third" are only used to distinguish the communication modes between different entities, and should not be regarded as limitations on the communication sequence or importance. In fact, the first communication method, the second communication method, and the third communication method may be the same or different from each other. For example, the first communication mode and the second communication mode may be MQTT (Message Queuing Telemetry Transport) communication or HTTP (Hypertext Transfer Protocol) communication, and the third communication mode may be ZigBee (short-range wireless communication technology) communication or BLE (bluetooth technology) communication.
For convenience of understanding, reference may be made to a schematic structural diagram of an intelligent home system shown in fig. 1, which illustrates that a user terminal (APP) and a server may communicate through MQTT/HTTP, the server and a gateway may communicate through MQTT/HTTP, and the gateway and a home device 1, a home device 2, and … may communicate through ZigBee/BLE.
In the smart home system, the user terminal may interact with the server, for example, the user sends an instruction/request to the server through an APP on the user terminal, so as to control the gateway/home device through the server, or obtain device-related information or gateway-related information provided by the server; the server can execute corresponding operation based on the instruction/request issued by the user terminal, so as to control the gateway/home equipment, and in addition, the server can also store the equipment related information and the gateway related information, and the gateway can control and manage the equipment under the control of the server or the setting of the user. The above is merely an exemplary illustration of the interaction manner between the components in the smart home system, and should not be considered as a limitation.
In a conventional situation, after a home device is damaged, a new home device (hereinafter, referred to as a new device) is usually added to replace an original damaged device (hereinafter, referred to as an old device), and in related technologies, most of functions of the new device need to be manually configured, such as a user needs to record configuration information (indicating functions/operation modes of the old device, etc.) of the old device one by one and then set the new device one by one according to the recorded functions. The smart home system provided in the embodiment of the present disclosure is further improved, and fast device replacement can be implemented, for example, a user only needs to confirm old devices and new devices to be replaced on an APP of a user terminal, the user terminal can send a device replacement request to the server, the server is configured to issue a device replacement instruction to the gateway after receiving the device replacement request, and the gateway is configured to execute the device replacement method provided in the embodiment of the present disclosure after receiving the device replacement instruction, so that the new devices can be configured completely according to the old devices, the device replacement efficiency is greatly improved, and for convenience of understanding, the device replacement method provided in the embodiment of the present disclosure is exemplarily described below:
fig. 2 is a schematic flowchart of a device replacement method provided in an embodiment of the present disclosure, where the method may be executed by a gateway, as shown in fig. 2, the method mainly includes the following steps S202 to S204:
step S202, in response to receiving a device replacement instruction of a server, acquiring configuration information of first equipment; the device replacement instruction is used for indicating that the first device is replaced by the second device, and the configuration information comprises different types of sub information. Wherein the second device may be the same kind or the same device as the first device, having all functions that the first device can implement.
The configuration information mainly includes parameters related to the operation mode of the first device, and in some embodiments, the configuration information includes one or more of grouping sub-information, local scene sub-information, and device linkage scene sub-information. The following description is set forth separately:
the packet sub-information includes: the group identity where the first device is located. In the smart home system, a plurality of devices are usually included, and a user may group the plurality of devices in many cases so as to perform unified control on the devices belonging to the same group. The devices may be divided, such as into groups of living rooms, bedrooms, kitchen groups, etc., based on device location and/or device type. The user can set each device to its group as desired.
The local scene sub-information includes: the method comprises the steps that at least one local scene corresponding to the first equipment and operation parameters of the first equipment under each local scene are obtained. The local scene is an equipment operation scene set by a user, and for the same equipment, operation parameters under different local scenes are different. Taking a lamp as an example, the color temperature parameter/brightness parameter adopted by the same lamp in a small night lamp scene is different from the color temperature parameter/brightness parameter adopted in a learning illumination scene. In practical application, a user can preset a local scene corresponding to the equipment and corresponding equipment operation parameters according to requirements.
The equipment linkage scene sub-information comprises: the system comprises at least one equipment linkage scene containing first equipment, operation parameters of the first equipment in each equipment linkage scene, and associated operation logic of the first equipment and other equipment. The device linkage scene can also be referred to as an automatic scene, and mainly refers to a linkage mode of a plurality of devices, and can also be set by a user according to requirements, such as automatically opening lamps and/or curtains in a room where a door lock is located after the door lock is opened, automatically opening a fresh air system after a range hood is opened, automatically opening a humidifier after the lamps are closed at night, and the like, and device operation parameters in the device linkage scene can also be set by the user according to requirements, and are not described herein again.
Such as grouping sub-information, local scene sub-information and device linkage scene sub-information all belong to configuration information, but it should be noted that it is not necessary for a device to have grouping sub-information, local scene sub-information and device linkage scene sub-information at the same time, for example, some devices may be set with only grouping and local scenes, but not device linkage scenes.
In addition, the configuration information includes, but is not limited to, the grouping sub information, the local scene sub information, and the device linkage scene sub information, and other information related to device operation may be used as the configuration information in practical applications, which is not limited herein.
Step S204, determining the target sub-information to be issued according to the type of the acquired sub-information, and issuing the target sub-information to the second device, so that the second device performs configuration according to the received target sub-information.
In this disclosure, not all the sub information in the acquired configuration information is sent to the second device, but target sub information (that is, target sub information that needs to be configured and stored locally by the second device) that needs to be sent to the second device is determined, and the target sub information is sent to the second device. If the target sub-information is various, the target sub-information can be issued to the second equipment one by one according to a preset sequence, so that the second equipment can configure the target sub-information after receiving one type of target sub-information, compared with a mode of issuing all information together, the in-sequence issuing mode enables the equipment to configure the received information one by one in an orderly manner, omission does not occur, the problem occurrence situation of the equipment in the local configuration process is greatly reduced, and the in-sequence issuing mode is more suitable for the existing communication mode between the gateway and the equipment, such as the existing ZigBee/BLE communication mode, and the reliability of issuing the information can be effectively guaranteed when the target sub-information is issued one by one under the communication mode.
In some embodiments, the configuration information includes multiple kinds of sub information, such as grouping sub information, local scene sub information, and device linkage scene sub information, and the first device does not necessarily have all kinds of sub information, and part of the sub information (such as device linkage scene sub information) does not need to be stored and configured locally by the device, but can be stored and configured by the gateway side. Therefore, in the embodiment of the present disclosure, all the acquired sub information may not be issued to the second device in a unified manner, but the types of the acquired sub information may be checked, and whether the sub information needs to be configured locally in the device is determined according to the type of the acquired sub information, that is, whether the sub information needs to be stored locally in the second device and is configured locally by the second device based on the sub information is determined.
In some embodiments, if the obtained sub-information includes the grouping sub-information, the grouping sub-information is determined as the target sub-information to be delivered; and if the acquired sub-information comprises the local scene sub-information, determining the local scene sub-information as the target sub-information to be issued. That is, in the embodiment of the present disclosure, the grouping sub-information and the local scene sub-information are used as the sub-information that is locally stored and configured by the device, so that the second device directly performs intelligent operation according to the configured grouping sub-information and the local scene sub-information. And if the acquired sub-information comprises grouping sub-information/local scene sub-information, the sub-information can be used as target sub-information and sent to the second equipment. If the acquired sub-information includes the device linkage scene sub-information, the sub-information is not used as the target sub-information, that is, the second device is not required to be configured locally based on the device linkage scene sub-information.
Step S206, in response to receiving the configuration completion message of the second device, replacing the identifier of the first device recorded in the gateway local with the identifier of the second device. The identifier is specifically an identification number of the device, and may be represented by, for example, an ID, a serial number, or the like, and even if the devices are identical, the device identifiers are different.
The second device is the same kind or same device as the first device, and has all functions that can be realized by the first device, in some embodiments after the configuration of the second device is confirmed to be completed, the gateway only needs to replace the identifier of the first device recorded in the local with the identifier of the second device, and the rest information can be unchanged, and after the replacement of the identifier of the device, the original information of the first device is correspondingly changed into the information of the second device at this time. In some embodiments, the step of replacing the identity of the first device recorded locally in the gateway with the identity of the second device includes: if the configuration information comprises grouping sub information, replacing the identifier of the first device in the grouping sub information locally recorded by the gateway with the identifier of the second device; if the configuration information comprises the local scene sub-information, replacing the identifier of the first device in the mapping relation between the first device and the local scene recorded locally by the gateway with the identifier of the second device; if the configuration information comprises equipment linkage scene sub-information, replacing the identifier of the first equipment in a database and an operation linked list which are locally stored by the gateway with the identifier of the second equipment; the operation linked list comprises the associated operation logic of the first device and other devices.
Taking a common scenario as an example, after a first device (set as a lamp a) is damaged, the same lamp (set as a lamp B) is used for replacement, and as can be seen from the foregoing steps, the lamp B can automatically implement local required information configuration (such as grouping configuration and local scene configuration), and after the configuration is completed, the gateway only needs to replace the identifiers of the lamps a stored locally in the gateway with the lamps B, so that the device replacement can be completed on the gateway level, for example, the gateway originally records the following configuration information about the lamps a: (1) the living room group comprises a lamp A; (2) the lamp A has a mapping relation with a first local scene and a third local scene set by a user; (3) the first equipment linkage scene (automation scene) comprises a lamp A and a door lock, and the operation linked list records the automatic control logic of the lamp A and the door lock, the parameters of the lamp A in the first equipment linkage scene and the like. By performing the above identifier replacement, the information record after replacement is: (1) the living room group comprises a lamp B; (2) the lamp B has a mapping relation with a first local scene and a third local scene used for setting; (3) the first equipment linkage scene (automation scene) comprises the lamp B and the door lock, and the operation linked list records the automatic control logic of the lamp B and the door lock, the parameters of the lamp B in the first equipment linkage scene and the like. Through identification replacement, the device information local to the gateway can be quickly replaced without changing other contents. It should be noted that the above is merely an exemplary illustration for facilitating understanding, and should not be considered as a limitation, in practical applications, the gateway includes a table such as a device table, a scene table, an operation link table, and the like, and the identifier of the first device may be directly changed to the identifier of the second device in the table, and the information (such as the operation parameters, the group where the first device is located, and the like) recorded in the table corresponding to the first device naturally becomes the information of the second device.
There may be multiple ways to replace the device identifier, for example, in some embodiments, the identifier of the second device may be added first, and then the identifier of the first device may be deleted; in other embodiments, the identifier of the first device may be deleted first, and then the identifier of the second device may be added; in other embodiments, the identifier of the first device may be directly replaced by the identifier of the second device, and the above embodiments may all achieve the effect of replacing the identifier, and may be implemented specifically according to actual needs, which is not limited herein.
And step S208, reporting a replacement completion message to the server so that the server replaces the identifier of the first device stored in the server with the identifier of the second device.
The method and the achievable effect of the server for replacing the device identifier may refer to the method and the achievable effect of the gateway for replacing the identifier, which are not described herein again. It should be noted that, the above step S206 and step S208 are only a simple implementation manner for the gateway and the server to update the self information during the device replacement process, but should not be considered as a limitation, in practical applications, the gateway and the server may perform other operations besides performing the identifier replacement, for example, assuming that the second device is not completely the same as the first device, the gateway and the server may further record additional information of the second device itself under the configuration of the user, or delete the related information of the first device, separately add the related information of the second device, and the like. However, in configuration information associated with device operation, such as grouping, a mapping relation between a local scene and a device identifier, a device linkage scene, and the like, the final performance is still only the change of the device identifier, and the rest information is not changed, so that the second device has the same operation mode as the first device, and even if the device is replaced, the original functional service is still provided for the user, thereby better meeting the device use habit of the user.
In the above manner provided by the embodiment of the present disclosure, the gateway may determine, from the configuration information of the first device, the target sub-information that needs to be configured locally by the second device, and send the target sub-information to the second device for configuration, and sequentially replace the identifier of the first device in the gateway local and the server with the identifier of the second device after the device configuration is completed. In conclusion, the efficient replacement of the equipment is realized in three aspects of the equipment, the gateway and the server, and the reliability of the equipment replacement can be better ensured by adopting a mode of preferentially performing the local replacement of the equipment and then sequentially performing the gateway replacement and the server replacement after the local replacement of the equipment.
In some embodiments, the target sub-information includes a plurality; based on this, the step of issuing the target sub information to the second device may be performed with reference to the following steps a to c
Step a, acquiring the issuing priority corresponding to each target sub-information. In some embodiments, the corresponding issuing priority may be set according to the configuration order of the sub-information, such as assuming that the information B may be further set only on the basis of the information a that is configured previously, and at this time, the priority of the information a is made higher than that of the information B; in other embodiments, the corresponding issuing priority may also be preset according to the importance degree of the sub-information. Such as priority configuration for priority delivery of important information, and the like, and can be flexibly determined according to actual conditions.
In some embodiments, the target sub-information includes packet sub-information and/or local scene sub-information, and the delivery priority of the packet sub-information is higher than that of the local scene sub-information. Since in some cases the local scene needs to be configured on the packet basis, in case there is no packet sub-information, there is usually no more local scene sub-information. However, there may be a case where only the packet sub information exists but the local scene sub information does not exist.
And b, determining the information issuing sequence according to the issuing priority. The issuing priorities can be sorted, and the higher the priority of the sub-information is, the more forward the issuing sequence is. Such as a packet sub-information that precedes a local scene sub-information in the information delivery order.
And c, successively issuing the target sub-information to the second equipment based on the information issuing sequence. For example, the grouping sub-information is issued to the second device in preference to the local scene sub-information, and the second device performs configuration based on the grouping sub-information and then performs configuration based on the local scene sub-information.
By the method, the reliability of information issuing and the reliability of local information configuration of the equipment can be effectively guaranteed.
On the basis of the foregoing, the embodiment of the present disclosure provides an equipment replacement interaction flowchart as shown in fig. 3, which illustrates an interaction relationship among a user terminal (which may be specifically an APP), a server, a gateway, and a new device. Wherein, the new device is the second device.
Step S302, the user terminal initiates a device replacement request to the server.
Step S304, the server sends a device replacement instruction to the gateway.
Step S306, the gateway acquires the configuration information of the old equipment and determines the target sub-information to be issued from the configuration information.
Step S308, the gateway sends the target sub information to the new equipment.
In step S310, the new device is configured according to the received target sub-information.
In step S312, the new device returns a configuration completion message to the gateway.
In step S314, the gateway replaces the identifier of the old device recorded in the local with the identifier of the new device.
Step S316, the gateway reports the replacement completion message to the server.
In step S318, the server replaces the identifier of the old device recorded in the local area with the identifier of the new device.
Step S320, the server sends a device replacement success message to the user terminal.
In the above manner, the gateway can determine the target sub-information which needs to be configured locally by the new device from the configuration information of the old device, send the target sub-information to the new device for configuration, and sequentially replace the identifiers of the old device in the gateway local and the server with the identifier of the new device after the device configuration is completed. In conclusion, the efficient replacement of the equipment is realized in three aspects of the equipment, the gateway and the server, and the reliability of the equipment replacement can be better ensured by adopting a mode of preferentially performing the local replacement of the equipment and then sequentially performing the gateway replacement and the server replacement after the local replacement of the equipment.
On the basis of the foregoing, in this embodiment, the grouping sub-information and the local scene sub-information are used as information that can be issued to the new device and configured locally by the new device in the device, and the priority of the grouping sub-information is considered to be higher than the priority of the local scene sub-information, specifically referring to the flowchart of the configuration information processing method shown in fig. 4, the method can be executed by the gateway, and mainly includes the following steps S402 to S412:
step S402 is to determine whether the configuration information of the old device (i.e. the first device) includes the grouping sub-information. If yes, go to step S404, if no, go to step S410;
step S404, extracting the grouping sub-information, and sending the grouping sub-information to the new device (i.e. the aforementioned second device).
Step S406, determine whether the configuration information includes the local scene sub-information. If yes, go to step S408, if no, go to step S410,
and step S408, extracting the local scene sub-information and sending the local scene sub-information to the new equipment.
And step S410, replacing the identifiers of the old devices in the gateway local area with the identifiers of the new devices.
Step S412, reporting a replacement completion message to the server.
On the basis of the foregoing, the embodiment of the present disclosure further provides a method for configuring information between a gateway and a device, referring to a flow diagram of another configuration information processing method shown in fig. 5, where the method may be executed by the gateway, and mainly includes the following steps S502 to S518:
step S502, determining whether the configuration information of the old device (i.e. the first device) includes the grouping sub-information. If yes, go to step S504, if no, go to step S514.
Step S504, extracting the grouping sub-information, and sending the grouping sub-information to the new device (i.e. the aforementioned second device).
Step S506, the identification of the old device in the grouping sub information locally recorded by the gateway is replaced by the identification of the new device.
Step S508, determine whether the configuration information includes the local scene sub-information. If yes, go to step S510, and if no, go to step S514.
Step S510, extracting the local scene sub-information, and sending the local scene sub-information to the new device.
Step S512, replacing the identifier of the first device in the mapping relation between the old device and the local scene recorded locally by the gateway with the identifier of the second device.
Step S514, determining whether the configuration information includes the device linkage scene sub-information, if yes, executing step S516, and if no, executing step S518.
Step S516, the identifier of the old device in the database and the operation linked list stored locally by the gateway is replaced with the identifier of the new device.
Step S518, reporting a replacement completion message to the server.
Compared with the foregoing fig. 4, it is clear in fig. 5 that the gateway mainly needs to replace the device identifier in the grouping sub-information, the mapping relationship between the old device and the local scene, and the device linkage scene sub-information stored locally. It should be noted that fig. 5 is only an example of a simple exemplary illustration, and should not be considered as a limitation, for example, in fig. 5, the gateway may change the device identifier under the information stored locally by the gateway after each information is issued, and in practical applications, the identifier local to the gateway may also be changed as a whole after all the information is completely issued (in the manner shown in fig. 4), and no limitation is made herein. In addition, the new device may feed back a configuration completion message of one piece of information to the gateway once after each piece of information is configured, so that the gateway modifies the device identifier under the information correspondingly, or may feed back a configuration completion message of information to the gateway as a whole after all pieces of information are configured, so that the gateway modifies the device identifier as a whole, which may be specifically set according to actual requirements, and is not limited herein.
In summary, the device replacement method provided by the embodiment of the disclosure can effectively improve the device replacement efficiency and ensure the reliability of device replacement.
Corresponding to the foregoing device replacement method, an embodiment of the present disclosure further provides a device replacement apparatus, which may be implemented by software and/or hardware and may be applied to a gateway, and fig. 6 is a schematic structural diagram of the device replacement apparatus provided in the embodiment of the present disclosure, and mainly includes the following modules:
an information obtaining module 602, configured to obtain configuration information of a first device in response to receiving a device replacement instruction of a server; the device replacement instruction is used for indicating that the first device is replaced by the second device, and the configuration information comprises different types of sub information;
the information configuration module 604 is configured to determine target sub-information to be sent according to the type of the obtained sub-information, and send the target sub-information to the second device, so that the second device performs configuration according to the received target sub-information;
a first identifier replacing module 606, configured to replace, in response to receiving the configuration completion message of the second device, the identifier of the first device recorded in the gateway local by the identifier of the second device;
a second identifier replacing module 608, configured to report a replacement completion message to the server, so that the server replaces the identifier of the first device stored in the server with the identifier of the second device.
In the device, the gateway can determine the target sub-information needing to be configured locally by the second equipment from the configuration information of the first equipment, send the target sub-information to the second equipment for configuration, and sequentially replace the identifier of the first equipment in the gateway local and the server with the identifier of the second equipment after the configuration of the equipment is completed. In conclusion, the efficient replacement of the equipment is realized in three aspects of the equipment, the gateway and the server, and the reliability of the equipment replacement can be better ensured by adopting a mode of preferentially performing the local replacement of the equipment and then sequentially performing the gateway replacement and the server replacement after the local replacement of the equipment.
In some embodiments, the configuration information comprises one or more of grouping sub-information, local scene sub-information, device linkage scene sub-information; wherein:
the grouping sub-information includes: the group identification where the first equipment is located;
the local scene sub-information includes: at least one local scene corresponding to the first device, and an operation parameter of the first device in each local scene;
the device linkage scene sub-information comprises: the system comprises at least one equipment linkage scene containing the first equipment, operation parameters of the first equipment in each equipment linkage scene, and associated operation logic of the first equipment and other equipment.
In some embodiments, the information configuring module 604 is specifically configured to: if the acquired sub-information comprises grouping sub-information, determining the grouping sub-information as target sub-information to be issued; and if the acquired sub-information contains local scene sub-information, determining the local scene sub-information as target sub-information to be issued.
In some embodiments, the information configuring module 604 is specifically configured to: acquiring the issuing priority corresponding to each kind of the target sub information; determining an information issuing sequence according to the issuing priority; and issuing the target sub-information to the second equipment in sequence based on the information issuing sequence.
In some embodiments, the target sub-information includes packet sub-information and/or local scene sub-information, and the delivery priority of the packet sub-information is higher than that of the local scene sub-information.
In some embodiments, the first identifier replacement module 606 is specifically configured to: if the configuration information comprises grouping sub information, replacing the identification of the first device in the grouping sub information locally recorded by the gateway with the identification of the second device; if the configuration information comprises local scene sub-information, replacing the identifier of the first device in the mapping relation between the first device and the local scene recorded locally by the gateway with the identifier of the second device; if the configuration information comprises equipment linkage scene sub-information, replacing the identifier of the first equipment in a database and an operation linked list which are locally stored in the gateway with the identifier of the second equipment; wherein, the operation linked list comprises the associated operation logic of the first device and other devices.
The device replacement device provided by the embodiment of the disclosure can execute the device replacement method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatus embodiments may refer to corresponding processes in the method embodiments, and are not described herein again.
An embodiment of the present disclosure provides a gateway, including: a processor; a memory for storing processor-executable instructions; and the processor is used for reading the executable instructions from the memory and executing the instructions to realize the device replacement method.
Fig. 7 is a schematic structural diagram of a gateway according to an embodiment of the present disclosure. As shown in fig. 7, the gateway 700 includes one or more processors 701 and memory 702.
Processor 701 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in gateway 700 to perform desired functions.
Memory 702 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 701 to implement the device replacement method of the embodiments of the present disclosure described above and/or other desired functions. Various contents such as an input signal, a signal component, a noise component, etc. may also be stored in the computer-readable storage medium.
In one example, the gateway 700 may further include: an input device 703 and an output device 704, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 703 may include, for example, a keyboard, a mouse, and the like.
The output device 704 may output various information including the determined distance information, direction information, and the like to the outside. The output devices 704 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the gateway 700 relevant to the present disclosure are shown in fig. 7, omitting components such as buses, input/output interfaces, and the like. In addition, gateway 700 may include any other suitable components depending on the particular application.
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the apparatus replacement method provided by embodiments of the present disclosure.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform a device replacement method provided by embodiments of the present disclosure.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The disclosed embodiments also provide a computer program product comprising a computer program/instructions that when executed by a processor implement the device replacement method in the disclosed embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A device replacement method is applied to a gateway and comprises the following steps:
the method comprises the steps of responding to a received device replacing instruction of a server, and obtaining configuration information of first devices; the device replacement instruction is used for indicating that the first device is replaced by a second device, and the configuration information contains different kinds of sub information;
determining target sub-information to be issued according to the type of the acquired sub-information, and issuing the target sub-information to the second device so that the second device performs configuration according to the received target sub-information;
replacing the identifier of the first device recorded in the gateway local with the identifier of the second device in response to receiving the configuration completion message of the second device;
reporting a replacement completion message to the server so that the server replaces the identifier of the first device stored in the server with the identifier of the second device.
2. The method of claim 1, wherein the configuration information comprises one or more of grouping sub-information, local scene sub-information, and device linkage scene sub-information; wherein:
the grouping sub-information includes: the group identification where the first equipment is located;
the local scene sub-information includes: at least one local scene corresponding to the first device, and an operation parameter of the first device in each local scene;
the device linkage scene sub-information comprises: the system comprises at least one equipment linkage scene containing the first equipment, operation parameters of the first equipment in each equipment linkage scene, and associated operation logic of the first equipment and other equipment.
3. The method according to claim 1 or 2, wherein the step of determining the target sub information to be delivered according to the type of the obtained sub information comprises:
if the acquired sub-information comprises grouping sub-information, determining the grouping sub-information as target sub-information to be issued;
and if the acquired sub-information contains local scene sub-information, determining the local scene sub-information as target sub-information to be issued.
4. The method according to claim 1 or 2, wherein the target sub-information includes a plurality of types; the step of sending the target sub-information to the second device includes:
acquiring the issuing priority corresponding to each kind of the target sub information;
determining an information issuing sequence according to the issuing priority;
and issuing the target sub-information to the second equipment in sequence based on the information issuing sequence.
5. The method according to claim 4, wherein the target sub-information comprises packet sub-information and/or local scene sub-information, and the delivery priority of the packet sub-information is higher than that of the local scene sub-information.
6. The method of claim 1, wherein the step of replacing the identity of the first device recorded locally at the gateway with the identity of the second device comprises:
if the configuration information comprises grouping sub information, replacing the identification of the first device in the grouping sub information locally recorded by the gateway with the identification of the second device;
if the configuration information comprises local scene sub-information, replacing the identifier of the first device in the mapping relation between the first device and the local scene recorded locally by the gateway with the identifier of the second device;
if the configuration information comprises equipment linkage scene sub-information, replacing the identifier of the first equipment in a database and an operation linked list which are locally stored in the gateway with the identifier of the second equipment; wherein, the operation linked list comprises the associated operation logic of the first device and other devices.
7. A device replacement apparatus, applied to a gateway, includes:
the information acquisition module is used for responding to a received equipment replacement instruction of the server and acquiring configuration information of the first equipment; the device replacement instruction is used for indicating that the first device is replaced by a second device, and the configuration information contains different kinds of sub information;
the information configuration module is used for determining target sub-information to be issued according to the type of the acquired sub-information and issuing the target sub-information to the second equipment so that the second equipment can be configured according to the received target sub-information;
a first identifier replacing module, configured to replace, in response to receiving the configuration completion message of the second device, the identifier of the first device recorded in the gateway local by the identifier of the second device;
a second identifier replacing module, configured to report a replacement completion message to the server, so that the server replaces the identifier of the first device stored in the server with the identifier of the second device.
8. A gateway, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instructions from the memory and executing the instructions to realize the device replacement method of any one of the claims 1-6.
9. An intelligent home system is characterized by comprising a user terminal, a server, a gateway and at least one home device;
the user terminal and the server communicate based on a first communication mode, the server and the gateway communicate based on a second communication mode, and the gateway and the household equipment communicate based on a third communication mode;
the user terminal is configured to send a device replacement request to the server, the server is configured to issue a device replacement instruction to the gateway after receiving the device replacement request, and the gateway is configured to execute the device replacement method according to any one of claims 1 to 6 after receiving the device replacement instruction.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the device replacement method of any one of the preceding claims 1-6.
CN202111577204.8A 2021-12-22 2021-12-22 Equipment replacement method, device, gateway, system and medium Pending CN114285688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111577204.8A CN114285688A (en) 2021-12-22 2021-12-22 Equipment replacement method, device, gateway, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111577204.8A CN114285688A (en) 2021-12-22 2021-12-22 Equipment replacement method, device, gateway, system and medium

Publications (1)

Publication Number Publication Date
CN114285688A true CN114285688A (en) 2022-04-05

Family

ID=80873877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111577204.8A Pending CN114285688A (en) 2021-12-22 2021-12-22 Equipment replacement method, device, gateway, system and medium

Country Status (1)

Country Link
CN (1) CN114285688A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242810A (en) * 2022-07-22 2022-10-25 上海庆科信息技术有限公司 Method, device, electronic device, storage medium and system for replacing equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351149A1 (en) * 2012-03-23 2014-11-27 Fujitsu Limited Replacement candidate presentation method and information processing apparatus
CN107294793A (en) * 2017-07-26 2017-10-24 北京小米移动软件有限公司 Replacement method, device, equipment and the storage medium of intelligent home device
JP2018032970A (en) * 2016-08-24 2018-03-01 コニカミノルタ株式会社 Service providing system
CN109587018A (en) * 2018-12-06 2019-04-05 深圳绿米联创科技有限公司 Method, apparatus, network system and the mobile terminal of device configuration
CN109714195A (en) * 2018-12-11 2019-05-03 Oppo广东移动通信有限公司 Apparatus control method, device, electronic equipment and Internet of things system
CN110401583A (en) * 2019-06-21 2019-11-01 深圳绿米联创科技有限公司 Method, apparatus, system, mobile terminal and the storage medium of equipment replacement
CN111930082A (en) * 2020-07-22 2020-11-13 青岛海信智慧家居系统股份有限公司 Method and device for replacing intelligent household equipment
WO2020228032A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Scene pushing method, apparatus and system, and electronic device and storage medium
CN112910675A (en) * 2019-12-04 2021-06-04 云丁网络技术(北京)有限公司 Equipment management method, device and system
CN113498594A (en) * 2019-05-16 2021-10-12 深圳市欢太科技有限公司 Control method and device of intelligent household system, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351149A1 (en) * 2012-03-23 2014-11-27 Fujitsu Limited Replacement candidate presentation method and information processing apparatus
JP2018032970A (en) * 2016-08-24 2018-03-01 コニカミノルタ株式会社 Service providing system
CN107294793A (en) * 2017-07-26 2017-10-24 北京小米移动软件有限公司 Replacement method, device, equipment and the storage medium of intelligent home device
CN109587018A (en) * 2018-12-06 2019-04-05 深圳绿米联创科技有限公司 Method, apparatus, network system and the mobile terminal of device configuration
CN109714195A (en) * 2018-12-11 2019-05-03 Oppo广东移动通信有限公司 Apparatus control method, device, electronic equipment and Internet of things system
WO2020228032A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Scene pushing method, apparatus and system, and electronic device and storage medium
CN113498594A (en) * 2019-05-16 2021-10-12 深圳市欢太科技有限公司 Control method and device of intelligent household system, electronic equipment and storage medium
CN110401583A (en) * 2019-06-21 2019-11-01 深圳绿米联创科技有限公司 Method, apparatus, system, mobile terminal and the storage medium of equipment replacement
CN112910675A (en) * 2019-12-04 2021-06-04 云丁网络技术(北京)有限公司 Equipment management method, device and system
CN111930082A (en) * 2020-07-22 2020-11-13 青岛海信智慧家居系统股份有限公司 Method and device for replacing intelligent household equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242810A (en) * 2022-07-22 2022-10-25 上海庆科信息技术有限公司 Method, device, electronic device, storage medium and system for replacing equipment

Similar Documents

Publication Publication Date Title
US10985973B2 (en) System for connecting and controlling multiple devices
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
CA2996130C (en) Building automation system data management
US7870090B2 (en) Building automation system date management
CN107078930B (en) Method and apparatus for generating and using user-defined scenarios for home automation
US8055387B2 (en) Building automation system data management
US7917232B2 (en) Building automation system data management
US8055386B2 (en) Building automation system data management
US11563819B2 (en) Operation triggering method and apparatus for machine-to-machine communications
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
US10489221B2 (en) Method for creating context aware application and user terminal
TW200910829A (en) Networked control system using logical addresses
CN111142456A (en) Internet of things automation smart home linkage method and system
CN114285688A (en) Equipment replacement method, device, gateway, system and medium
CN110794773A (en) Click-type scene creating method and device
CN109218085B (en) Equipment automation and scene configuration management method and device and mobile terminal
US11947944B2 (en) System and method for producing an update report
CN111209613A (en) Rapid design method and system of intelligent product
CN114114936A (en) Grouping method and grouping device for intelligent lamps, intelligent equipment and storage medium
CN116744270A (en) Lighting equipment identification method and device, storage medium and electronic equipment
CN116962116A (en) Gateway linkage method, device, equipment and storage medium
CN115934200A (en) Resource pushing method and device, storage medium and electronic device
CN115600842A (en) System, method and device for realizing space scene recognition based on types and quantity of electric products, processor and storage medium thereof
CN114995179A (en) Smart home control method and device and electronic equipment
CN116527426A (en) Control method and device for household appliance, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220405