Reverse configuration method based on whole house type smart home system device data
Through the reverse configuration method, it solves the high configuration difficulty and data security issues of smart home devices during node replacement and data recovery, achieves fast and safe data configuration and debugging, and reduces operation and maintenance costs and error probability.
Patent Information
- Application Number
- CN202410809927.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-10
AI Technical Summary
Existing smart home devices have problems such as long configuration links, high configuration difficulty, data security concerns and high after-sales operation and maintenance costs during the process of node device replacement, host replacement, home data configuration and data recovery, especially the efficiency of reverse data acquisition. Low and high probability of error.
Adopt a reverse configuration method based on the whole-house smart home system, including data association and verification, data decryption processing, device model restoration and full data restoration, collect and transmit data through wireless communication, and perform data disassembly in the device model and binding to ensure data security and integrity.
It achieves fast authorization, convenient configuration and data debugging, reduces time and labor costs, improves data security and configuration efficiency, and simplifies the after-sales operation and maintenance process.
Smart Images

Figure CN118631602A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a reverse configuration method based on whole-house smart home system device data. Background Art
[0002] Smart home configuration data mainly includes: room floor settings, network access devices and configuration parameters, scenario linkage settings, multi-control settings, group control settings, etc. In the field of smart home, data forward configuration is common, that is, the above smart home configuration data is sent from the configuration end to the host and device through the cloud, central control end, etc. according to a certain process. It mainly solves the problem of necessary smart home configuration data synchronization settings when delivering to the owner in the early stage. At present, in the smart home industry, there are problems and difficulties in existing technical means or technical processing solutions:
[0003] 1. The problem of replacing node devices or adding new node devices mainly adopts the network access process through the multi-terminal linkage of devices, hosts, cloud, and mobile terminals. This method belongs to the data forward configuration process, which generally has problems such as long configuration links and high requirements for the network environment during configuration;
[0004] 2. The host replacement problem mainly adopts the method of reconnecting all the equipment in the house to the network and reconfiguring. This method belongs to the data forward configuration process, which generally has problems such as high configuration difficulty, low configuration efficiency, deviation from the original data or high probability of configuration error;
[0005] 3. Home data configuration requires user authorization, and the owner needs to migrate home permissions on site, or even remove the binding permissions of the home host. The various authorization methods and requirements are relatively complex and difficult to process quickly, and may cause users to have a certain degree of psychological concerns about data security.
[0006] 4. The problem of secondary recovery of home data requires professional technicians to restore the data of home space, equipment, scenarios, multi-control, group control, etc. one by one on site. It has high professional and technical requirements for after-sales operation and maintenance personnel, and even requires technical developers to cooperate remotely at the same time, which consumes a lot of manpower and time costs on site.
[0007] It can be seen that the existing forward data synchronization configuration of smart home devices is difficult to solve the after-sales problems encountered by smart home users in long-term use after delivery, especially the efficiency of reverse acquisition of smart home data and data security issues. It is generally time-consuming and labor-intensive, with a high probability of data errors, and it requires high professional and technical skills for after-sales operation and maintenance personnel, requiring a lot of training, and high time and labor costs. Summary of the invention
[0008] The purpose of the present invention is to provide a reverse configuration method based on whole-house smart home system device data in order to solve the above problems.
[0009] To achieve the above object, the present invention adopts the following technical solution: a reverse configuration method based on whole-house smart home system device data, the method comprising the following steps:
[0010] S1. Data association and verification of smart home devices to establish connection channels;
[0011] S2, obtain the data protocol and perform data decryption processing;
[0012] S3, performing data restoration processing according to the device model;
[0013] S4, equipment disassembly and change and restore channel model;
[0014] S5. Fully restore the data based on the intelligent central device.
[0015] In the above-mentioned reverse configuration method based on whole-house smart home system device data, step S1 specifically includes the following steps:
[0016] S11, the process of collecting, compressing, transmitting and restoring smart home device data and associated relationship data through smart central devices;
[0017] S12, the initiator connects to the receiver through the calibration protocol and sends a calibration code;
[0018] S13, the receiving end passes the calibration and establishes a connection channel with the initiating end;
[0019] S14, the receiving end receives the verification code sent by the initiating end and chooses whether to allow the connection. In step S11, the intelligent central device collects the compressed transmission and restoration process based on a wireless method, and the wireless method includes WIFI, Bluetooth, 4G, 5G, and zigbee communication transmission methods;
[0020] In steps S12-S13, the initiator sets a validity period for the sent verification code, and the validity period includes a verification validity period and a connection validity period, that is, the usage time of the connection channel established by the receiving end after verification is set;
[0021] In step S14, when the receiving end chooses to allow the connection, a connection duration selection is provided. When the receiving end chooses not to allow the connection, a connection rejection feedback is sent to the initiating end in a wireless manner.
[0022] In the above-mentioned reverse configuration method based on whole-house smart home system device data, step S2 is specifically divided into the following steps:
[0023] S21, the initiator sends a request to the receiver through the established connection channel to obtain the data protocol;
[0024] S22, after receiving the request to obtain the data protocol, the receiving end sends the data to the initiating end through the existing connection channel in accordance with the data protocol reply;
[0025] S23. After receiving the data, the initiator decrypts the smart home device data and the associated relationship data.
[0026] In step S23, the content of data decryption processing includes:
[0027] ① Obtain the IP and port information of the intelligent hub device through the data protocol and establish a connection through TCP;
[0028] ② The initiator first sends a reverse pull command to the intelligent central device, and the intelligent central device encapsulates the data after receiving the reverse pull command;
[0029] The contents of data encapsulation include:
[0030] a. Room data encapsulation;
[0031] b. Device information encapsulation;
[0032] c. Scene data encapsulation;
[0033] d. Multi-control information encapsulation;
[0034] e. Device binding information encapsulation.
[0035] 6. According to claim 5, a reverse configuration method based on whole-house smart home system device data, the room data encapsulation pulls the room data from the corresponding database through the smart hub device, the room data content includes the room name, room icon, room ID, and the json field of the room data encapsulation is consistent with the field in the issued room information;
[0036] The device information encapsulation pulls the smart home device information from the corresponding database through the smart hub device. The smart home device information includes the device model, device IP and device status control information, and the json field of the device information encapsulation is consistent with the field in the issued room information;
[0037] The scene data encapsulation pulls the scene data information of the smart home from the corresponding database through the smart hub device. The scene data information includes the application scenarios of smart home devices, the application mode at a specific time, and the state changes at different time points. The json fields of the device information encapsulation are consistent with the fields in the scene data information sent;
[0038] The multi-control information encapsulation pulls the multi-control data information from the corresponding database through the intelligent hub device. The multi-control data information includes the state control of the smart home device, the scene control and the associated control between the associated smart home devices 1, and the json field of the multi-control data information encapsulation is consistent with the field in the multi-control data information issued;
[0039] The device binding information encapsulation pulls the device binding information from the corresponding database through the smart hub device. The device binding information includes the ID binding and IP binding between the smart home device and the control terminal, as well as the binding information between the terminal and the sub-terminal. The json fields encapsulated in the device binding information are consistent with the fields in the issued device binding information.
[0040] In step S3, the device model is established based on the pre-stored intelligent configuration data of the smart home device and the node data is stored as the control signals and scene signals of the smart home device change continuously. When the above-mentioned encapsulated data is completed, the control signals and scene signals of the smart home are restored based on the intelligent configuration data of the latest storage node of the device model. Before the data is restored, the default scene and original control data of the smart home device are cleared.
[0041] In step S4, during the data restoration process, the smart configuration data stored in the nearest node of the device model is disassembled and bound to the smart configuration data, the original binding channel of the smart home device is restored according to the smart configuration data and fields stored in the device model, and the channel model of the binding data is restored according to the original binding channel.
[0042] In the above-mentioned reverse configuration method based on the device data of the whole-house smart home system, when the smart configuration data is disassembled, different modes of disassembly are performed according to the characteristics of the smart home devices, and the data of other connection channels are changed by connecting the characteristics of the main channel. For devices with only one connection channel, their channel model is restored according to their binding relationship.
[0043] In step S5, all control signals, scene signals, room information and other information of smart home devices are synchronously restored according to the smart central device. During the synchronous restoration process, the restoration information is sent to the initiator through the TCP connection. The initiator performs a full restoration process on the smart home devices based on the reverse pull information.
[0044] Compared with the prior art, the advantages of the present invention are:
[0045] 1. Reverse configuration includes the functions of owner's fast limited-time authorization, reverse acquisition, data debugging, and data configuration. It is rich in functions and the debugging operation is more convenient;
[0046] 2. Reverse configuration achieves the purpose of quickly debugging and configuring smart home devices in the smart home field, saving adjustment time and reducing time costs;
[0047] 3. Reverse configuration is a set of fast and practical innovative devices for scenarios such as after-sales operation and maintenance, after-sales data debugging, and after-sales equipment replacement for smart homes. It is easy to operate and debug;
[0048] 4. The data source of reverse configuration has double data protection, giving priority to obtaining the host localized data. If the data cannot be obtained due to serious damage to the host, it supports obtaining the latest backup data of smart home devices from the device model storage, achieving the purpose of data security and integrity;
[0049] 5. Reverse configuration improves security through time-limited authorization and special protocol channels. Reverse configuration must be authorized, which ensures the autonomy and security of the owner's smart home data authorization from the business process;
[0050] 6. When the reverse configuration data is acquired, the data transmission process is securely encrypted and decrypted, which technically ensures the security of the user's smart home device data. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a schematic diagram of the present invention;
[0052] Figure 2 is a reverse configuration flow chart of the present invention;
[0053] Figure 3 is a flow chart of the method in the present invention;
[0054] In the figure: smart home device 1, device model 2, channel model 3, smart hub device 4, initiator 5, receiver 6, database 7. DETAILED DESCRIPTION
[0055] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0056] like Figure 1-3 As shown, a reverse configuration method based on whole-house smart home system device data includes the following steps:
[0057] S1, data association and verification of smart home device 1, and establishment of a connection channel;
[0058] S2, obtain the data protocol and perform data decryption processing;
[0059] S3, performing data restoration processing according to device model 2;
[0060] S4, equipment disassembly and change and restore channel model 3;
[0061] S5. Perform full data restoration based on the intelligent central device 4.
[0062] Step S1 specifically includes the following steps:
[0063] S11, the process of collecting, compressing, transmitting and restoring the data of the smart home device 1 and the associated relationship data through the smart central device 4;
[0064] S12, the initiator 5 connects to the receiver 6 through the verification protocol and sends a verification code;
[0065] S13, the receiving end 6 passes the calibration and establishes a connection channel with the initiating end 5;
[0066] S14, the receiving end 6 receives the verification code sent by the initiating end 5 and chooses whether to allow the connection.
[0067] The smart hub device 4 performs secure encryption processing when collecting and compressing the data and associated relationship data of the smart home device 1 to ensure data security.
[0068] After establishing the connection channel, the receiving end 6 chooses whether to allow the initiating end 5 to connect and perform data transmission.
[0069] In step S11, the intelligent hub device 4 collects the compressed transmission and restoration process based on a wireless method, and the wireless method includes a communication transmission method of WIFI, Bluetooth, 4G, 5G, and zigbee;
[0070] In steps S12-S13, the initiator 5 sets a validity period for the sent verification code, and the validity period includes a verification validity period and a connection validity period, that is, the use time of the connection channel established by the receiving end 6 after verification is set;
[0071] Setting an expiration date is used to improve usage security and prevent data leakage caused by long-term connections.
[0072] In step S14, when the receiving end 6 chooses to allow the connection, a connection duration selection is provided. When the receiving end 6 chooses not to allow the connection, a connection rejection feedback is sent to the initiating end 5 in a wireless manner.
[0073] Step S2 is specifically divided into the following steps:
[0074] S21, the initiator 5 sends a request to the receiver 6 through the established connection channel to obtain the data protocol;
[0075] S22, after receiving the request to obtain the data protocol, the receiving end 6 sends the data to the initiating end 5 through the existing connection channel in accordance with the data protocol reply;
[0076] S23. After receiving the data, the initiator 5 performs data decryption processing on the smart home device 1 data and the associated relationship data.
[0077] Step S2 mainly initiates a request for obtaining a data protocol to the receiving end 6 through the initiating end 5. After receiving the request, the receiving end 6 replies with the corresponding smart home device 1 data and associated relationship data according to the data protocol requirements of the initiating end 5.
[0078] In step S23, the content of data decryption processing includes:
[0079] ① Obtain the IP and port information of the intelligent hub device 4 through the data protocol, and establish a connection through TCP;
[0080] ② The initiator 5 first sends a reverse pull instruction to the intelligent central device 4, and the intelligent central device 4 performs data encapsulation after receiving the reverse pull instruction;
[0081] The contents of data encapsulation include:
[0082] a. Room data encapsulation;
[0083] b. Device information encapsulation;
[0084] c. Scene data encapsulation;
[0085] d. Multi-control information encapsulation;
[0086] e. Device binding information encapsulation.
[0087] The data package includes all connection information, scene information, linkage information and control information of the entire smart home device, ensuring the integrity of the packaged content and facilitating subsequent full restore operations.
[0088] Among them, the room data encapsulation pulls the room data from the corresponding database 7 through the intelligent central device 4. The room data content includes the room name, room icon, room ID, and the json field of the room data encapsulation is consistent with the field in the issued room information;
[0089] The device information encapsulation pulls the smart home device 1 information from the corresponding database 7 through the smart hub device 4. The smart home device 1 information includes the device model, device IP and device status control information, and the json field of the device information encapsulation is consistent with the field in the issued room information;
[0090] The scene data encapsulation pulls the scene data information of the smart home from the corresponding database 7 through the smart hub device 4. The scene data information includes the application scene of the smart home device 1, the application mode at a specific time, and the state changes at different time points. The json field of the device information encapsulation is consistent with the field in the scene data information issued;
[0091] The multi-control information encapsulation pulls the multi-control data information from the corresponding database 7 through the smart hub device 4. The multi-control data information includes the state control, scene control and associated control between the smart home devices 1, and the json fields of the multi-control data information encapsulation are consistent with the fields in the multi-control data information sent;
[0092] The device binding information encapsulation pulls the device binding information from the corresponding database 7 through the smart central device 4. The device binding information includes the ID binding, IP binding between the smart home device 1 and the control terminal, and the binding information between the terminal and the branch terminal. The json field encapsulated in the device binding information is consistent with the field in the issued device binding information.
[0093] Data encapsulation ensures the integrity of various types of encapsulated data and the consistency of fields to prevent errors after restoration. Secondly, the database 7 is used to store the smart configuration data of the smart home device 1 and establish the device model 2 for pattern training of the smart configuration data.
[0094] The complete data format after encapsulation is as follows:
[0095]
[0096]
[0097]
[0098]
[0099] In step S3, the device model 2 is established based on the pre-stored intelligent configuration data of the smart home device 1 and the node data is stored as the control signal and scene signal of the smart home device 1 continuously changes. When the above-mentioned encapsulated data is completed, the control signal and scene signal of the smart home are restored based on the intelligent configuration data of the latest storage node of the device model 2. Before the data is restored, the default scene and original control data of the smart home device 1 are cleared.
[0100] When the restoration node of the smart configuration data of the smart home device to be selected is after the latest storage node of device model 2, the smart configuration data of the node to be restored is predicted through the daily training data of device model 2, thereby achieving seamless restoration and avoiding data loss during restoration.
[0101] In step S4, during the data restoration process, the smart configuration data stored in the nearest node of device model 2 is disassembled and bound to the smart configuration data, the original binding channel of smart home device 1 is restored according to the smart configuration data and fields stored in device model 2, and the channel model 3 of the binding data is restored according to the original binding channel.
[0102] In detail, when the smart configuration data is disassembled, different modes are disassembled according to the characteristics of the smart home device 1, and the data of other connection channels are changed by connecting the characteristics of the main channel. For devices with only one connection channel, their channel model 3 is restored according to their binding relationship.
[0103] In step S5, all control signals, scene signals, room information and other information of the smart home device 1 are synchronously restored according to the smart hub device 4. During the synchronous restoration process, the restoration information is sent to the initiator 5 through the TCP connection. The initiator 5 performs a full restoration process on the smart home device 1 according to the reverse pull information.
[0104] In summary, the principle of this embodiment is: the smart configuration data of the smart home device 1 is stored through the database 7 and the device model 2 of the smart home device 1 is established. When the smart configuration data of the smart home device 1 needs to be restored, a connection channel is established through the initiator 5 and the receiving end 6. After the receiving end 6 allows the connection, the smart configuration data of the smart home device 1 is encrypted and transmitted according to the data protocol of the initiator 5. After receiving the data, the initiator 5 decrypts the data and encapsulates the data. After the data encapsulation is completed, the data is fully restored.
[0105] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
[0106] Although this article uses more terms such as smart home device 1, device model 2, channel model 3, smart hub device 4, initiator 5, receiver 6, database 7, etc., it does not exclude the possibility of using other terms. These terms are used only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional restrictions is contrary to the spirit of the present invention.
Claims
1. A reverse configuration method based on whole-house smart home system device data, characterized in that: The method comprises the following steps: S1, data association and verification of smart home devices (1), and establishment of connection channels; S2, obtain the data protocol and perform data decryption processing; S3, performing data restoration processing according to the device model (2); S4, equipment disassembly and change and restore channel model (3); S5. Perform full data restoration based on the intelligent central device (4).
2. A reverse configuration method based on whole-house smart home system device data according to claim 1, characterized in that: Step S1 specifically includes the following steps: S11, the process of collecting, compressing, transmitting and restoring the data of the smart home device (1) and the associated relationship data through the smart central device (4); S12, the initiator (5) connects to the receiver (6) through a verification protocol and sends a verification code; S13, the receiving end (6) passes the calibration and establishes a connection channel with the initiating end (5); S14, the receiving end (6) receives the verification code sent by the initiating end (5) and chooses whether to allow the connection.
3. A reverse configuration method based on whole-house smart home system device data according to claim 2, characterized in that: In step S11, the intelligent central device (4) collects the compressed transmission and restoration process based on a wireless method, and the wireless method includes a communication transmission method including WIFI, Bluetooth, 4G, 5G, and zigbee; In steps S12-S13, the initiator (5) sets a validity period for the sent verification code, and the validity period includes a verification validity period and a connection validity period, that is, the usage time of the connection channel established by the receiving end (6) after verification is set; In step S14, when the receiving end (6) chooses to allow the connection, a connection duration selection is provided. When the receiving end (6) chooses not to allow the connection, a connection rejection feedback is sent to the initiating end (5) via a wireless method.
4. A reverse configuration method based on whole-house smart home system device data according to claim 3, characterized in that: Step S2 is specifically divided into the following steps: S21, the initiating end (5) sends a request to the receiving end (6) through the established connection channel to obtain the data protocol; S22, after receiving the request to obtain the data protocol, the receiving end (6) sends the data to the initiating end (5) through the existing connection channel in accordance with the data protocol reply; S23. After receiving the data, the initiator (5) performs data decryption processing on the smart home device (1) data and the associated relationship data.
5. A reverse configuration method based on whole-house smart home system device data according to claim 4, characterized in that: In step S23, the data decryption process includes: ① Obtain the IP and port information of the intelligent hub device (4) through the data protocol, and establish a connection through TCP; ② The initiator (5) first sends a reverse pull instruction to the intelligent central device (4), and the intelligent central device (4) performs data encapsulation after receiving the reverse pull instruction; The contents of data encapsulation include: a. Room data encapsulation; b. Device information encapsulation; c. Scene data encapsulation; d. Multi-control information encapsulation; e. Device binding information encapsulation.
6. A reverse configuration method based on whole-house smart home system device data according to claim 5, characterized in that: The room data encapsulation pulls the room data from the corresponding database (7) through the intelligent central device (4), wherein the room data content includes the room name, room icon, room ID, and the json field of the room data encapsulation is consistent with the field in the issued room information; The device information encapsulation pulls the smart home device (1) information from the corresponding database (7) through the smart central device (4), wherein the smart home device (1) information includes the device model, the device IP address and the device status control information, and the json field of the device information encapsulation is consistent with the field in the room information sent; The scene data encapsulation pulls the scene data information of the smart home from the corresponding database (7) through the smart central device (4), the scene data information includes the application scene of the smart home device (1), the application mode at a specific time, and the state change at different time points, and the JSON field of the device information encapsulation is consistent with the field in the scene data information sent down; The multi-control information encapsulation pulls multi-control data information from a corresponding database (7) through an intelligent central device (4), wherein the multi-control data information includes state control of the intelligent home device (1), scene control, and associated control between associated intelligent home devices (1), and the JSON field of the multi-control data information encapsulation is consistent with the field in the multi-control data information sent; The device binding information encapsulation pulls the device binding information from the corresponding database (7) through the intelligent central device (4), and the device binding information includes the ID binding and IP binding between the smart home device (1) and the control terminal, as well as the binding information between the terminal and the branch terminal, and the json field of the device binding information encapsulation is consistent with the field in the issued device binding information.
7. A reverse configuration method based on whole-house smart home system device data according to claim 1, characterized in that: In step S3, the device model (2) is established based on the pre-stored intelligent configuration data of the smart home device (1) and changes continuously with the control signal and scene signal of the smart home device (1) and stores the node data. When the above-mentioned encapsulated data is completed, the control signal and scene signal of the smart home are restored based on the intelligent configuration data of the latest storage node of the device model (2). Before the data is restored, the default scene and original control data of the smart home device (1) are cleared.
8. A reverse configuration method based on whole-house smart home system device data according to claim 7, characterized in that: In step S4, during the data restoration process, the intelligent configuration data stored in the nearest node of the device model (2) is disassembled and bound to the intelligent configuration data, the original binding channel of the smart home device (1) is restored according to the intelligent configuration data and fields stored in the device model (2), and the channel model (3) of the binding data is restored according to the original binding channel.
9. A reverse configuration method based on whole-house smart home system device data according to claim 8, characterized in that: When the smart configuration data is disassembled, different modes are disassembled according to the characteristics of the smart home device (1), and the data of other connection channels are changed by connecting the characteristics of the main channel. For devices with only one connection channel, their channel model (3) is restored according to their binding relationship.
10. A reverse configuration method based on whole-house smart home system device data according to claim 9, characterized in that: In step S5, all control signals, scene signals, room information and other information of the smart home device (1) are synchronously restored according to the smart central device (4). During the synchronous restoration process, the restoration information is sent to the initiator (5) through the TCP connection. The initiator (5) performs a full restoration process on the smart home device (1) according to the reverse pull information.
