Equipment network distribution method and device, electronic equipment and computer readable storage medium
Through the home host, the matching authentication and binding of smart home devices is solved, and the problem of network distribution without external network connection is realized, and the configuration without external network access and cloud platform control is realized, which improves user experience and operation convenience.
Patent Information
- Application Number
- CN202411862621.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-25
AI Technical Summary
During the smart home device distribution process, the home network usually has no external network connection, which causes installation and maintenance personnel to be unable to connect to the cloud server during installation, which leads to network distribution difficulties.
The device information of the device to be bound is obtained through the home host for storage and processing. When the binding request of the target device is received, it is matched with the stored device information. If the match is successful, the binding process will be performed. This method avoids information leakage through matching authentication rather than direct binding, and synchronizes device information to the cloud platform after connecting to the external network.
It realizes the network access configuration of home appliances without external network, simplifies the user's operation process, and centrally controls home appliances through the cloud platform, improving user convenience.
Smart Images

Figure CN119892621A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a device network configuration method, a device network configuration apparatus, an electronic device and a computer-readable storage medium. Background Art
[0002] With the continuous development of sensor technology and information technology, all aspects of life have become more intelligent. People are no longer satisfied with the traditional way of information transmission, and pursue wireless, high-speed, safe and convenient information transmission methods, and the Internet of Things came into being.
[0003] At present, many smart homes are pre-wired and then installed, and the equipment is equipped by professional installation and maintenance personnel arranged by the developer. The network in a general home is installed by the owner, so when the installation and maintenance workers go to install, there is no external network and it is impossible to connect to the cloud server, which brings great difficulties to the network configuration. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a device network configuration method, a device network configuration apparatus, an electronic device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0005] An embodiment of the present invention discloses a device network configuration method, the method comprising:
[0006] When device information of at least one device to be bound is obtained, each device information is stored and processed;
[0007] In response to a binding request of a target device, matching the target device information of the target device with each stored device information;
[0008] If the match is successful, the target device is bound.
[0009] In one or more embodiments, further comprising:
[0010] determining a type of the target device;
[0011] If the type is the first type, the target device information is used to update each stored device information to obtain updated device information;
[0012] If the type is the second type, each stored device information is updated using the target device information to obtain updated device information, and the updated device information is sent to the target device.
[0013] In one or more embodiments, before responding to the binding request of the target device, the method further includes:
[0014] Sending device scanning information by broadcasting, so that the candidate device that obtains the device scanning information responds to the device scanning information, generates reply information, and returns the reply information;
[0015] When the reply information is obtained, the candidate device corresponding to the reply information is determined as the target device.
[0016] In one or more embodiments, further comprising:
[0017] In response to the interaction instruction for the bound device, a control instruction is sent to the bound device so that the bound device performs a corresponding interaction action.
[0018] In one or more embodiments, further comprising:
[0019] When the connection with the cloud platform is successful, the information of each device is uploaded to the cloud platform.
[0020] The embodiment of the present invention further discloses a device network configuration method, the method comprising:
[0021] Performing device scanning in response to a device scanning instruction to obtain a device identification list;
[0022] In response to a confirmation instruction for at least one target device identifier in the device identifier list, acquiring device information of a to-be-bound device corresponding to each target device identifier;
[0023] Send the device information of each device to be bound to the home host.
[0024] In one or more embodiments, performing device scanning in response to a device scanning instruction to obtain a device identification list includes:
[0025] Performing device scanning in response to a device scanning instruction to obtain a candidate device identification list;
[0026] The candidate device identifications of devices in the candidate device identification list whose signal strength does not exceed the signal strength threshold are filtered to obtain a filtered device identification list.
[0027] Accordingly, an embodiment of the present invention discloses a device for network distribution, the device comprising:
[0028] A first acquisition module, used to acquire device information of at least one device to be bound;
[0029] A storage module is used to store and process the information of each device;
[0030] A matching module, configured to match the target device information of the target device with each stored device information in response to a binding request of the target device;
[0031] The binding module is used to perform binding processing on the target device if the match is successful.
[0032] In one or more embodiments, further comprising:
[0033] A first determining module, used to determine the type of the target device;
[0034] An updating module, configured to update each stored device information using the target device information if the type is the first type, to obtain updated device information;
[0035] The first sending module is used to call the updating module and send updated device information to the target device if the type is the second type.
[0036] In one or more embodiments, further comprising:
[0037] A broadcast module, configured to send device scanning information by broadcasting before responding to the binding request of the target device, so that the candidate device that obtains the device scanning information responds to the device scanning information, generates reply information, and returns the reply information;
[0038] The second determination module is configured to determine, when the reply information is acquired, a candidate device corresponding to the reply information as a target device.
[0039] In one or more embodiments, the sending module is further configured to:
[0040] In response to the interaction instruction for the bound device, a control instruction is sent to the bound device so that the bound device performs a corresponding interaction action.
[0041] In one or more embodiments, further comprising:
[0042] The upload module is used to upload the information of each device to the cloud platform when the connection with the cloud platform is successful.
[0043] Correspondingly, an embodiment of the present invention further discloses a device for network distribution, the device comprising:
[0044] A scanning module, used to perform device scanning in response to a device scanning instruction and obtain a device identification list;
[0045] A second acquisition module, configured to acquire device information of a to-be-bound device corresponding to each target device identification in response to a confirmation instruction for at least one target device identification in the device identification list;
[0046] The second sending module is used to send the device information of each device to be bound to the home host.
[0047] In one or more embodiments, the scanning module is specifically used to:
[0048] Performing device scanning in response to a device scanning instruction to obtain a candidate device identification list;
[0049] The candidate device identifications of devices in the candidate device identification list whose signal strength does not exceed the signal strength threshold are filtered to obtain a filtered device identification list.
[0050] Correspondingly, an embodiment of the present invention discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, each step of the above-mentioned device network configuration method embodiment is implemented.
[0051] Accordingly, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each step of the above-mentioned device network configuration method embodiment is implemented.
[0052] The embodiments of the present invention include the following advantages:
[0053] When the home host obtains the device information of at least one device to be bound, the device information is stored and processed. When the binding request of the target device is obtained, the target device information of the target device is matched with the stored device information. If the match is successful, the target device is bound. In this way, after obtaining the binding request of the home appliance, the home host can authenticate the target device by matching, instead of directly binding the target device, so that the target device can be filtered to avoid information leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 This is a flowchart of the steps of Embodiment 1 of a device network configuration method of the present invention;
[0055] Figure 2 It is a schematic diagram of an application scenario of a whole-house smart home including a home host of the present invention;
[0056] Figure 3 This is a flow chart of the steps of Embodiment 2 of a device network configuration method of the present invention;
[0057] Figure 4 This is a flowchart of the steps of Embodiment 3 of a device network configuration method of the present invention;
[0058] Figure 5 This is a flowchart of the steps of Embodiment 4 of a device network configuration method of the present invention;
[0059] Figure 6 This is a flowchart of the steps of Embodiment 5 of a device network configuration method of the present invention;
[0060] Figure 7 It is a structural block diagram of a first embodiment of a device network distribution device of the present invention;
[0061] Figure 8 It is a structural block diagram of a second embodiment of a device distribution network device of the present invention. DETAILED DESCRIPTION
[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0063] Reference Figure 1 , which shows a flow chart of the steps of a device network configuration method embodiment 1 of the present invention. The embodiment of the present invention can be applied to a home host. The application scenario of the whole house smart home including the home host can refer to Figure 2 , wherein the home host can be connected to a router (not shown in the figure), and the router can also be connected to a terminal device and at least one home appliance. When each home appliance is not yet connected to the router, the user can obtain the device information of each home appliance through the terminal device and send it to the home host through the router. The home host binds each home appliance through the device information. After the binding is completed, the home host can be connected to each home appliance. When the router is connected to the external network, the home host can synchronize the device information to the cloud platform through the router.
[0064] The home host is the hub of control in the smart home, including but not limited to saving device information, issuing control instructions and data synchronization. The home host can be connected to home appliances wirelessly or wired, and can be connected to CAN type home appliances and 485 type home appliances by wired means.
[0065] The terminal device is used to obtain device information of home appliances and send the device information to the home host through the router.
[0066] Home host and terminal devices can have the following features:
[0067] (1) In terms of hardware system, the device has a central processing unit, memory, input components and output components, that is, the device is often a microcomputer device with communication function. In addition, it can also have multiple input methods, such as keyboard, mouse, touch screen, microphone and camera, and the input can be adjusted as needed. At the same time, the device often has multiple output methods, such as receiver, display screen, etc., which can also be adjusted as needed;
[0068] (2) In terms of software system, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, etc. At the same time, these operating systems are becoming more and more open, and personalized applications developed based on these open operating system platforms are emerging in an endless stream, such as address books, calendars, notepads, calculators, and various games, which greatly meet the needs of personalized users;
[0069] (3) In terms of communication capabilities, the device has flexible access methods and high-bandwidth communication performance, and can automatically adjust the selected communication method according to the selected service and the environment, so as to facilitate user use. The device can support 3GPP (3rd Generation Partnership Project), 4GPP (4th Generation Partnership Project), 5GPP (5th Generation Partnership Project), 6GPP (6th Generation Partnership Project), LTE (Long Term Evolution), WIMAX (World Interoperability for Microwave Access) mobile communications, computer network communications based on TCP / IP (Transmission Control Protocol / Internet Protocol) and UDP (User Datagram Protocol) protocols, and short-range wireless transmission methods based on Bluetooth and infrared transmission standards, supporting not only voice services, but also a variety of wireless data services;
[0070] (4) In terms of functional use, the equipment pays more attention to humanization, personalization and multi-functionality. With the development of computer technology, the equipment has moved from a "device-centric" model to a "people-centric" model, integrating embedded computing, control technology, artificial intelligence technology and biometric authentication technology, fully reflecting the people-oriented purpose. Due to the development of software technology, the equipment can adjust the settings according to personal needs and become more personalized. At the same time, the equipment itself integrates a lot of software and hardware, and its functions are becoming more and more powerful.
[0071] The method may specifically include the following steps:
[0072] Step 101: When device information of at least one device to be bound is obtained, each device information is stored.
[0073] Before the router is connected to the external network, the home host can be connected to the router to form a local area network. In this way, when the home host obtains the device information of at least one home appliance that needs to be bound (for ease of understanding, recorded as "device to be bound") sent by the terminal device through the local area network, the information of each device can be stored and processed.
[0074] Among them, the home host can be connected to the router via a wired method, can be connected to the router via a wireless method, or can be connected to the router via other methods. In actual applications, the connection method between the home host and the router can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0075] Furthermore, a storage device may be provided in the home host to store device information, or the home host may be connected to an external storage device to store device information in the external storage device. Device information may also be stored in other ways. In actual applications, the specific storage method of device information may be set according to actual needs, and the embodiments of the present invention do not limit this.
[0076] Step 102: In response to a binding request from a target device, target device information of the target device is matched with each stored device information.
[0077] When the home host obtains the binding request of the home appliance device (referred to as "target device"), it can obtain the device information of the target device (referred to as "target device information"), and then match the target device information with each stored device information.
[0078] It should be noted that the target device and the device to be bound may be different, that is, it is possible that the user's own home appliance has also initiated a binding request. For example, a home appliance in a neighbor's house is close to the user's home host, so it also initiated a binding request. After binding, for certain types of home appliances, the home host needs to synchronize all device information to the home appliance. If the home appliances are not filtered, information leakage will occur. Therefore, in this case, after obtaining the binding request of the home appliance, the home host needs to authenticate through matching, rather than directly binding the home appliance, so that the home appliance can be filtered to avoid information leakage.
[0079] Step 103: If the match is successful, the target device is bound.
[0080] If the target device information matches the stored device information successfully, it means that the target device sending the binding request is one of the devices to be bound, that is, the target device is authenticated successfully and the binding process can be performed on the target device.
[0081] In the embodiment of the present invention, when the home host obtains the device information of at least one device to be bound, the device information is stored and processed. When the binding request of the target device is obtained, the target device information of the target device is matched with the stored device information. If the match is successful, the target device is bound. In this way, after obtaining the binding request of the home appliance, the home host can authenticate the target device by matching, instead of directly binding the target device, so that the target device can be filtered to avoid information leakage.
[0082] Reference Figure 3 , shows a flow chart of the steps of Embodiment 2 of a device network configuration method of the present invention, which may specifically include the following steps:
[0083] Step 301: When device information of at least one device to be bound is obtained, each device information is stored.
[0084] Before the router is connected to the external network, the home host can be connected to the router to form a local area network. In this way, when the home host obtains the device information of at least one device to be bound sent by the terminal device through the local area network, the information of each device can be stored and processed.
[0085] Among them, the home host can be connected to the router via a wired method, can be connected to the router via a wireless method, or can be connected to the router via other methods. In actual applications, the connection method between the home host and the router can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0086] Furthermore, a storage device may be provided in the home host to store device information, or the home host may be connected to an external storage device to store device information in the external storage device. Device information may also be stored in other ways. In actual applications, the specific storage method of device information may be set according to actual needs, and the embodiments of the present invention do not limit this.
[0087] Step 302: In response to a binding request from a target device, target device information of the target device is matched with each stored device information.
[0088] After the home host obtains the binding request of the target device, it can obtain the device information of the target device, and then match the target device information with each stored device information.
[0089] It should be noted that the target device and the device to be bound may be different, that is, it is possible that the user's own home appliance has also initiated a binding request. For example, a home appliance in a neighbor's house is close to the user's home host, so it also initiated a binding request. After binding, for certain types of home appliances, the home host needs to synchronize all device information to the home appliance. If the home appliances are not filtered, information leakage will occur. Therefore, in this case, after obtaining the binding request of the home appliance, the home host needs to authenticate through matching, rather than directly binding the home appliance, so that the home appliance can be filtered to avoid information leakage.
[0090] Step 303: If the match is successful, the target device is bound.
[0091] If the target device information matches the stored device information successfully, it means that the target device sending the binding request is one of the devices to be bound, that is, the target device is authenticated successfully and the binding process can be performed on the target device.
[0092] Step 304, determining the type of the target device;
[0093] Step 305, if the type is the first type, the target device information is used to update each stored device information to obtain updated device information;
[0094] Step 306: If the type is the second type, the target device information is used to update each stored device information to obtain updated device information, and the updated device information is sent to the target device.
[0095] Specifically, in the smart home of the whole house, some home appliances are equipped with a central control device, such as a central control screen, so that the status of the home appliances in the whole house can be displayed in any home appliance with a central control screen, so as to control the home appliances in the whole house. Therefore, for such home appliances, the family needs to synchronize the information of each device to the home appliance. Therefore, after the home host successfully binds the target device, the type of the target device can be further obtained. The type may include a first type without a central control device, and a second type with a central control device. Of course, a device without a central control device may also be of the second type, and a device with a central control device may be of the first type. In actual applications, the specific division method of the type may be set according to actual needs, and the embodiment of the present invention does not limit this.
[0096] If the type of the target device is the first type without a central control device, the target device information of the target device can be obtained, and the historical device information corresponding to the target device in each stored device information can be replaced, thereby obtaining updated each device information.
[0097] If the type of the target device is the second type with a central control device, then after obtaining the target device information of the target device, the historical device information corresponding to the target device in the stored device information can be replaced to obtain updated device information, and then the updated device information can be synchronized to the target device. In this way, the device information in the home host is the same as the device information in the target device.
[0098] In the embodiment of the present invention, when the home host obtains the device information of at least one device to be bound, the device information is stored and processed. When the binding request of the target device is obtained, the target device information of the target device is matched with the stored device information. If the match is successful, the target device is bound. In this way, after obtaining the binding request of the home appliance, the home host can authenticate the target device by matching, instead of directly binding the target device, so that the target device can be filtered to avoid information leakage.
[0099] Furthermore, after binding the target device, the home host can determine whether the device information needs to be synchronized to the target device based on the type of the target device. In this way, the user can control the home appliances in the whole house on multiple home appliances, which improves the convenience of user use.
[0100] Reference Figure 4 , shows a flow chart of the steps of Embodiment 3 of a device network configuration method of the present invention, which may specifically include the following steps:
[0101] Step 401: When device information of at least one device to be bound is obtained, each device information is stored.
[0102] Before the router is connected to the external network, the home host can be connected to the router to form a local area network. In this way, when the home host obtains the device information of at least one device to be bound sent by the terminal device through the local area network, the information of each device can be stored and processed.
[0103] Among them, the home host can be connected to the router via a wired method, can be connected to the router via a wireless method, or can be connected to the router via other methods. In actual applications, the connection method between the home host and the router can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0104] Furthermore, a storage device may be provided in the home host to store device information, or the home host may be connected to an external storage device to store device information in the external storage device. Device information may also be stored in other ways. In actual applications, the specific storage method of device information may be set according to actual needs, and the embodiments of the present invention do not limit this.
[0105] Step 402, sending device scanning information by broadcasting, so that the candidate device that obtains the device scanning information responds to the device scanning information, generates reply information, and returns the reply information;
[0106] Step 403: When the reply information is obtained, the candidate device corresponding to the reply information is determined as the target device.
[0107] Specifically, the home host can send device scanning information through broadcasting, and the home appliance device (referred to as "candidate device") that obtains the device scanning information can generate corresponding reply information and then return the reply information to the home host.
[0108] When the home host obtains the reply information, the corresponding candidate device can be determined as the target device.
[0109] It should be noted that the candidate device and the device to be bound may also be different. For example, if the home host is close to a home appliance of a neighbor, then when the home host sends device scanning information through broadcast, it may also be sent to the home appliance, thereby identifying a home appliance in the neighbor's home as a target device.
[0110] Furthermore, when broadcasting, the home host can broadcast through UDP (User Datagram Protocol) or IP (Internet Protocol). In actual applications, the specific protocol used in broadcasting can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0111] Step 404: In response to the binding request of the target device, match the target device information of the target device with each stored device information.
[0112] After the home host obtains the binding request of the target device, it can obtain the device information of the target device, and then match the target device information with each stored device information.
[0113] It should be noted that the target device and the device to be bound may be different, that is, it is possible that the user's own home appliance has also initiated a binding request. For example, a home appliance in a neighbor's house is close to the user's home host, so it also initiated a binding request. After binding, for certain types of home appliances, the home host needs to synchronize all device information to the home appliance. If the home appliances are not filtered, information leakage will occur. Therefore, in this case, after obtaining the binding request of the home appliance, the home host needs to authenticate through matching, rather than directly binding the home appliance, so that the home appliance can be filtered to avoid information leakage.
[0114] Step 405: If the match is successful, the target device is bound.
[0115] If the target device information matches the stored device information successfully, it means that the target device sending the binding request is one of the devices to be bound, that is, the target device is authenticated successfully and the binding process can be performed on the target device.
[0116] Step 406, determining the type of the target device;
[0117] Step 407, if the type is the first type, the target device information is used to update each stored device information to obtain updated device information;
[0118] Step 408: If the type is the second type, the target device information is used to update each stored device information to obtain updated device information, and the updated device information is sent to the target device.
[0119] Specifically, in the smart home of the whole house, some home appliances are equipped with a central control device, such as a central control screen, so that the status of the home appliances in the whole house can be displayed in any home appliance with a central control screen, so as to control the home appliances in the whole house. Therefore, for such home appliances, the family needs to synchronize the information of each device to the home appliance. Therefore, after the home host successfully binds the target device, the type of the target device can be further obtained. The type may include a first type without a central control device, and a second type with a central control device. Of course, a device without a central control device may also be of the second type, and a device with a central control device may be of the first type. In actual applications, the specific division method of the type may be set according to actual needs, and the embodiment of the present invention does not limit this.
[0120] If the type of the target device is the first type without a central control device, the target device information of the target device can be obtained, and the historical device information corresponding to the target device in each stored device information can be replaced, thereby obtaining updated each device information.
[0121] If the type of the target device is the second type with a central control device, then after obtaining the target device information of the target device, the historical device information corresponding to the target device in the stored device information can be replaced to obtain updated device information, and then the updated device information can be synchronized to the target device. In this way, the device information in the home host is the same as the device information in the target device.
[0122] In the embodiment of the present invention, when the home host obtains the device information of at least one device to be bound, the device information is stored and processed, and then the target device is determined by broadcasting. When the binding request of the target device is obtained, the target device information of the target device is matched with the stored device information. If the match is successful, the target device is bound. In this way, after obtaining the binding request of the home appliance, the home host can authenticate the target device by matching, instead of directly binding the target device, so that the target device can be filtered to avoid information leakage.
[0123] Furthermore, after binding the target device, the home host can determine whether the device information needs to be synchronized to the target device based on the type of the target device. In this way, the user can control the home appliances in the whole house on multiple home appliances, which improves the convenience of user use.
[0124] Reference Figure 5 , shows a flow chart of the steps of a fourth embodiment of a device network configuration method of the present invention, which may specifically include the following steps:
[0125] Step 501: When device information of at least one device to be bound is obtained, each device information is stored.
[0126] Before the router is connected to the external network, the home host can be connected to the router to form a local area network. In this way, when the home host obtains the device information of at least one device to be bound sent by the terminal device through the local area network, the information of each device can be stored and processed.
[0127] Among them, the home host can be connected to the router via a wired method, can be connected to the router via a wireless method, or can be connected to the router via other methods. In actual applications, the connection method between the home host and the router can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0128] Furthermore, a storage device may be provided in the home host to store device information, or the home host may be connected to an external storage device to store device information in the external storage device. Device information may also be stored in other ways. In actual applications, the specific storage method of device information may be set according to actual needs, and the embodiments of the present invention do not limit this.
[0129] Step 502, sending device scanning information by broadcasting, so that the candidate device that obtains the device scanning information responds to the device scanning information, generates reply information, and returns the reply information;
[0130] Step 503: When the reply information is obtained, the candidate device corresponding to the reply information is determined as the target device.
[0131] Specifically, the home host can send device scanning information through broadcasting, and the home appliance device (referred to as "candidate device") that obtains the device scanning information can generate corresponding reply information and then return the reply information to the home host.
[0132] When the home host obtains the reply information, the corresponding candidate device can be determined as the target device.
[0133] It should be noted that the candidate device and the device to be bound may also be different. For example, if the home host is close to a home appliance of a neighbor, then when the home host sends device scanning information through broadcast, it may also be sent to the home appliance, thereby identifying a home appliance in the neighbor's home as a target device.
[0134] Furthermore, when broadcasting, the home host can broadcast through UDP (User Datagram Protocol) or IP (Internet Protocol). In actual applications, the specific protocol used in broadcasting can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0135] Step 504: In response to the binding request of the target device, match the target device information of the target device with each stored device information.
[0136] After the home host obtains the binding request of the target device, it can obtain the device information of the target device, and then match the target device information with each stored device information.
[0137] It should be noted that the target device and the device to be bound may be different, that is, it is possible that the user's own home appliance has also initiated a binding request. For example, a home appliance in a neighbor's house is close to the user's home host, so it also initiated a binding request. After binding, for certain types of home appliances, the home host needs to synchronize all device information to the home appliance. If the home appliances are not filtered, information leakage will occur. Therefore, in this case, after obtaining the binding request of the home appliance, the home host needs to authenticate through matching, rather than directly binding the home appliance, so that the home appliance can be filtered to avoid information leakage.
[0138] Step 505: If the match is successful, the target device is bound.
[0139] If the target device information matches the stored device information successfully, it means that the target device sending the binding request is one of the devices to be bound, that is, the target device is authenticated successfully and the binding process can be performed on the target device.
[0140] Step 506, determining the type of the target device;
[0141] Step 507, if the type is the first type, the target device information is used to update each stored device information to obtain updated device information;
[0142] Step 508: If the type is the second type, the target device information is used to update each stored device information to obtain updated device information, and the updated device information is sent to the target device.
[0143] Specifically, in the smart home of the whole house, some home appliances are equipped with a central control device, such as a central control screen, so that the status of the home appliances in the whole house can be displayed in any home appliance with a central control screen, so as to control the home appliances in the whole house. Therefore, for such home appliances, the family needs to synchronize the information of each device to the home appliance. Therefore, after the home host successfully binds the target device, the type of the target device can be further obtained. The type may include a first type without a central control device, and a second type with a central control device. Of course, a device without a central control device may also be of the second type, and a device with a central control device may be of the first type. In actual applications, the specific division method of the type may be set according to actual needs, and the embodiment of the present invention does not limit this.
[0144] If the type of the target device is the first type without a central control device, the target device information of the target device can be obtained, and the historical device information corresponding to the target device in each stored device information can be replaced, thereby obtaining updated each device information.
[0145] If the type of the target device is the second type with a central control device, then after obtaining the target device information of the target device, the historical device information corresponding to the target device in the stored device information can be replaced to obtain updated device information, and then the updated device information can be synchronized to the target device. In this way, the device information in the home host is the same as the device information in the target device.
[0146] Step 509: In response to the interaction instruction for the bound device, a control instruction is sent to the bound device, so that the bound device performs a corresponding interaction action.
[0147] Specifically, users can initiate interactive commands for bound devices in the home host, such as turning on devices, adjusting temperature, etc. After obtaining the interactive commands, the home host can send corresponding control commands to the bound devices, and the bound devices can perform corresponding interactive actions after obtaining the control commands. In this way, after the binding is completed, users can control home appliances through the home host, and can also use the home host to check whether the binding is successful.
[0148] Furthermore, the number of bound devices corresponding to the interaction instruction may be one or more. For example, an interaction instruction may be initiated for one bound device or for multiple bound devices at the same time. In actual applications, the specific number of bound devices corresponding to the interaction instruction may be set according to actual needs, and the embodiments of the present invention do not limit this.
[0149] Step 5010, when the connection with the cloud platform is successful, upload the information of each device to the cloud platform.
[0150] Specifically, when the router is successfully connected to the external network, the home host can be connected to the cloud platform through the router. After the connection is successful, the home host can upload the stored and latest information of each device to the cloud platform.
[0151] It should be noted that, in actual applications, the execution order of step 509 and step 5010 can be set according to actual needs, for example, step 5010 is executed first and then step 509, and the implementation of the present invention does not impose any limitation on this.
[0152] In the embodiment of the present invention, when the home host obtains the device information of at least one device to be bound, the device information is stored and processed, and then the target device is determined by broadcasting. When the binding request of the target device is obtained, the target device information of the target device is matched with the stored device information. If the match is successful, the target device is bound. In this way, after obtaining the binding request of the home appliance, the home host can authenticate the target device by matching, instead of directly binding the target device, so that the target device can be filtered to avoid information leakage.
[0153] Furthermore, after binding the target device, the home host can determine whether the device information needs to be synchronized to the target device based on the type of the target device. In this way, the user can control the home appliances in the whole house on multiple home appliances, which improves the convenience of user use.
[0154] Furthermore, after the home host is bound, the user can control the home appliances through the home host, and can also use the home host to check whether the binding is successful. Moreover, when the router is successfully connected to the external network, the home host can connect to the cloud platform through the router. After the connection is successful, the home host can upload the stored and latest information of each device to the cloud platform. The user does not need to configure the network access for each home appliance again, which not only simplifies the user's operation process, but also allows the user to observe the status of each home appliance through the cloud platform, and control each home appliance through the cloud platform, realizing the completion of the network access configuration of home appliances without an external network.
[0155] Reference Figure 6 , showing a step flow chart of a fifth embodiment of a device network configuration method of the present invention. The embodiment of the present invention can be applied to a terminal device, and a mini-program or application client can be deployed in the terminal device. The user can execute the embodiment of the present invention through the mini-program or application client. Of course, in addition to this, other methods can also be used to execute the embodiment of the present invention.
[0156] Furthermore, the terminal device may include a display device, so that the user can execute the embodiment of the present invention through the display device.
[0157] The method may specifically include the following steps:
[0158] Step 601: perform device scanning in response to a device scanning instruction to obtain a device identification list.
[0159] The user can initiate a device scanning command in the terminal device. After obtaining the device scanning command, the terminal device can scan the home appliances and generate a device identification list based on the scanned home appliances. The device identification list includes the device identifications of the scanned home appliances.
[0160] In the embodiment of the present invention, the step of performing device scanning in response to a device scanning instruction to obtain a device identification list includes:
[0161] Performing device scanning in response to a device scanning instruction to obtain a candidate device identification list;
[0162] The candidate device identifications of devices in the candidate device identification list whose signal strength does not exceed the signal strength threshold are filtered to obtain a filtered device identification list.
[0163] Specifically, after the home appliance is initialized, it can release the Bluetooth hotspot. The terminal device can identify each home appliance by scanning the Bluetooth hotspot, and then obtain the device identification of each home appliance to obtain a device identification list (referred to as a "candidate device identification list").
[0164] Since household appliances in the home are within a certain distance range, a signal strength threshold can be set according to the signal strength between the farthest household appliance and the home host. After the terminal device determines the candidate device identification list, it can filter the candidate device identification list according to the signal strength threshold, and filter the candidate device identifications of devices whose signal strength does not exceed the signal strength threshold, thereby obtaining a filtered device identification list. In this way, household appliances whose signal strength is lower than the signal strength threshold can be automatically filtered, thereby reducing the display of redundant devices.
[0165] It should be noted that, in actual applications, all scanned home appliances may also be displayed, that is, whether the device identification list needs to be filtered can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0166] Step 602: In response to a confirmation instruction for at least one target device identification in the device identification list, device information of a to-be-bound device corresponding to each target device identification is obtained.
[0167] After the terminal device generates the device identification list, it can display the device identification list on the display device. The user can select at least one device identification (referred to as "target device identification") from the device identification list and confirm it. The terminal device can then obtain the device information of the device to be bound corresponding to each target device identification. In this way, the user can confirm each scanned home appliance, thereby determining the user's own home appliance.
[0168] Step 603: Send the device information of each device to be bound to the home host.
[0169] After the terminal device obtains the device information of each device to be bound, it can send all the device information to the home host through the router.
[0170] In the embodiment of the present invention, the terminal device performs device scanning in response to the device scanning instruction, obtains a device identification list, and in response to the confirmation instruction for at least one target device identification in the device identification list, obtains the device information of the device to be bound corresponding to each target device identification, and sends the device information of each device to be bound to the home host. In this way, in the absence of an external network, the user can store the device information of the home appliances that need to be connected to the network in the home host through the terminal device, and when the home host is connected to the cloud platform, the home appliances that need to be connected to the network can be automatically configured for network access.
[0171] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0172] Reference Figure 7 , shows a structural block diagram of a device network distribution device embodiment 1 of the present invention, which may specifically include the following modules:
[0173] A first acquisition module 701 is used to acquire device information of at least one device to be bound;
[0174] Storage module 702, used for storing and processing each device information;
[0175] A matching module 703, configured to match the target device information of the target device with each stored device information in response to a binding request of the target device;
[0176] The binding module 704 is used to perform binding processing on the target device if the match is successful.
[0177] In an embodiment of the present invention, it also includes:
[0178] A first determining module, used to determine the type of the target device;
[0179] An updating module, configured to update each stored device information using the target device information if the type is the first type, to obtain updated device information;
[0180] The first sending module is used to call the updating module and send updated device information to the target device if the type is the second type.
[0181] In an embodiment of the present invention, it also includes:
[0182] A broadcast module, configured to send device scanning information by broadcasting before responding to the binding request of the target device, so that the candidate device that obtains the device scanning information responds to the device scanning information, generates reply information, and returns the reply information;
[0183] The second determination module is configured to determine, when the reply information is acquired, a candidate device corresponding to the reply information as a target device.
[0184] In the embodiment of the present invention, the sending module is further used for:
[0185] In response to the interaction instruction for the bound device, a control instruction is sent to the bound device so that the bound device performs a corresponding interaction action.
[0186] In an embodiment of the present invention, it also includes:
[0187] The upload module is used to upload the information of each device to the cloud platform when the connection with the cloud platform is successful.
[0188] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0189] Reference Figure 8 , shows a structural block diagram of a second embodiment of a device network distribution device of the present invention, which may specifically include the following modules:
[0190] The scanning module 801 is used to perform device scanning in response to a device scanning instruction and obtain a device identification list;
[0191] The second acquisition module 802 is used to obtain device information of a to-be-bound device corresponding to each target device identification in response to a confirmation instruction for at least one target device identification in the device identification list;
[0192] The second sending module 803 is used to send the device information of each device to be bound to the home host.
[0193] In the embodiment of the present invention, the scanning module is specifically used for:
[0194] Performing device scanning in response to a device scanning instruction to obtain a candidate device identification list;
[0195] The candidate device identifications of devices in the candidate device identification list whose signal strength does not exceed the signal strength threshold are filtered to obtain a filtered device identification list.
[0196] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0197] An embodiment of the present invention further provides an electronic device, including:
[0198] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned device configuration method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0199] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned device network configuration method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0200] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0201] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0202] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0203] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0204] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0205] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0206] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0207] The above is a detailed introduction to a device network configuration method and a device network configuration device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A device network configuration method, characterized in that: The method comprises: When device information of at least one device to be bound is obtained, each device information is stored and processed; In response to a binding request of a target device, matching the target device information of the target device with each stored device information; If the match is successful, the target device is bound.
2. The device network configuration method according to claim 1, characterized in that: Also includes: determining a type of the target device; If the type is the first type, the target device information is used to update each stored device information to obtain updated device information; If the type is the second type, each stored device information is updated using the target device information to obtain updated device information, and the updated device information is sent to the target device.
3. The device network configuration method according to claim 1, characterized in that: Before responding to the binding request of the target device, the method further includes: Sending device scanning information by broadcasting, so that the candidate device that obtains the device scanning information responds to the device scanning information, generates reply information, and returns the reply information; When the reply information is obtained, the candidate device corresponding to the reply information is determined as the target device.
4. The device network configuration method according to claim 1, characterized in that: Also includes: In response to the interaction instruction for the bound device, a control instruction is sent to the bound device so that the bound device performs a corresponding interaction action.
5. The device network configuration method according to claim 1, characterized in that: Also includes: When the connection with the cloud platform is successful, the information of each device is uploaded to the cloud platform.
6. A device network configuration method, characterized in that: The method comprises: Performing device scanning in response to a device scanning instruction to obtain a device identification list; In response to a confirmation instruction for at least one target device identifier in the device identifier list, acquiring device information of a to-be-bound device corresponding to each target device identifier; Send the device information of each device to be bound to the home host.
7. The device network configuration method according to claim 6, characterized in that: The step of performing device scanning in response to the device scanning instruction to obtain a device identification list includes: Performing device scanning in response to a device scanning instruction to obtain a candidate device identification list; The candidate device identifications of devices in the candidate device identification list whose signal strength does not exceed the signal strength threshold are filtered to obtain a filtered device identification list.
8. A device for network distribution, characterized in that: The device comprises: A first acquisition module, used to acquire device information of at least one device to be bound; A storage module is used to store and process the information of each device; A matching module, configured to match the target device information of the target device with each stored device information in response to a binding request of the target device; The binding module is used to perform binding processing on the target device if the match is successful.
9. A device for network distribution, characterized in that: The device comprises: A scanning module, used to perform device scanning in response to a device scanning instruction and obtain a device identification list; A second acquisition module, configured to acquire device information of a to-be-bound device corresponding to each target device identification in response to a confirmation instruction for at least one target device identification in the device identification list; The second sending module is used to send the device information of each device to be bound to the home host.
10. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the device network configuration method as described in any one of claims 1 to 5 or 6 to 7 are implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device network configuration method as described in any one of claims 1 to 5 or 6 to 7 are implemented.
Citation Information
Patent Citations
Method for automatically registering intelligent home appliance in network by one key
CN102769619A
Smart home, smart home control method, control system and electronic equipment
CN104375497A
Method and device for adding ZigBee device
CN105871666A
Binding method, computer equipment and storage medium
CN112788545A
Network distribution method of smart home equipment, computer readable storage medium and processor
CN117319990A