Equipment distribution methods, devices, storage media, electronic equipment, and equipment to be distributed to the network
By establishing a communication connection between the electronic device and the device to be configured on the network, a binding application can be directly sent to enable it to enter the network configuration state. This solves the problem of complex manual operation by users in the existing technology, realizes an efficient network configuration process, and improves security and efficiency.
Patent Information
- Application Number
- CN202410061745.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-01-16
AI Technical Summary
In existing technologies, the network configuration process of the devices to be configured requires multiple manual operations by the user, resulting in complex operations and low efficiency.
By establishing a first communication connection between the electronic device and the device to be configured, a binding request is directly sent to enable the device to be configured to enter the configuration state. A second communication connection is established when the gateway is in the listening state, and information exchange is carried out using Bluetooth technology and the Zifeng protocol.
It reduces the complexity of establishing communication connections between devices to be distributed and gateways, improves distribution efficiency, and enhances communication security and data protection.
Smart Images

Figure CN117938651B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network connectivity technology, and more specifically, to a device network configuration method, apparatus, storage medium, electronic device, and device to be networked. Background Technology
[0002] In the relevant technical solutions, during the process of connecting the device to be configured to the gateway, the user needs to manually operate the device to be configured to enter the configuration state.
[0003] The above operation can be triggered by a button. Taking a light fixture as an example, since light fixtures are generally installed on the roof, the traditional way of triggering the network distribution is to use multiple power-on and power-off operations to make it enter the network distribution state. However, the above network distribution method requires the user to operate the light fixture to turn it on and off multiple times. Summary of the Invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0005] Therefore, a first aspect of the present invention is to provide a device network distribution method.
[0006] A second aspect of the present invention is that it provides another method for device network configuration.
[0007] A third aspect of the present invention is that it provides a device for network distribution.
[0008] A fourth aspect of the invention is that it provides another device distribution network device.
[0009] A fifth aspect of the invention is that it provides yet another device for network distribution.
[0010] A sixth aspect of the present invention is that it provides yet another device for network distribution.
[0011] A seventh aspect of the present invention is that a readable storage medium is provided.
[0012] An eighth aspect of the invention is that it provides another readable storage medium.
[0013] A ninth aspect of the present invention is that an electronic device is provided.
[0014] A tenth aspect of the present invention is that a first device to be distributed to a network is provided.
[0015] In view of the above, according to a first aspect of the present invention, the present invention provides a device network configuration method for an electronic device, comprising: when the electronic device establishes a first communication connection with a first device to be configured, sending a binding application to the first device to be configured based on the first communication connection, so as to enable the first device to be configured to enter a network configuration state; sending a network configuration instruction to a first gateway, so as to enable the first gateway to enter a listening state; wherein the first gateway in the listening state is capable of establishing a second communication connection with the first device to be configured in the network configuration state.
[0016] The technical solution of the present invention proposes a device network configuration method. By running the above device network configuration method, the first device to be configured can enter the network configuration state without operating the first device to be configured. And when the first gateway is in the listening state, the first device to be configured can establish a second communication connection with the first gateway.
[0017] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0018] The technical solution of the present invention is based on the following principle. Specifically, as can be seen from the above, in the relevant technical solutions, the user needs to manually turn the lights on and off multiple times in order for the lights to enter the network distribution state. At this time, the first device to be distributed to the network automatically triggers the switch to the network distribution state by recording the number of consecutive turns on and off.
[0019] In the technical solution of the present invention, since the electronic device and the first device to be networked are connected by a first communication connection, the electronic device can directly interact with the first device to be networked. At this time, the binding application is sent directly to the first device to be networked using the first communication connection. When the first device to be networked receives the binding application, it can directly enter the network configuration state. At this time, it can attempt to network with the first gateway in the listening state, thereby realizing the second communication connection between the first device to be networked and the first gateway.
[0020] In some technical solutions, the binding application includes the information required for the first device to be configured on the network and the first gateway to establish a second communication connection, so that the first gateway in the listening state can establish a second communication connection with the first device to be configured on the network in the configuration state.
[0021] In some technical solutions, optionally, the first communication connection uses Bluetooth technology, and the second communication connection uses the Purple Bee protocol.
[0022] In addition, the equipment distribution network method proposed in this invention also has the following additional technical features.
[0023] In some technical solutions, the device network configuration method may optionally include: obtaining device information of a first device to be configured, the device information including connection parameters for a first communication connection; sending a connection request to the first device to be configured based on the connection parameters; and establishing a first communication connection between the electronic device and the first device to be configured upon receiving first feedback information corresponding to the connection request.
[0024] In this technical solution, by obtaining the device information of the first device to be distributed to the network, the electronic device can establish a first communication connection with the first device to be distributed to the network based on the connection parameters in the device information.
[0025] Specifically, a connection request is sent to the first device to be configured on the network based on the connection parameters. Upon receiving the connection request, the first device to be configured on the network responds to the connection request and sends first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0026] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0027] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0028] In some technical solutions, optionally, the first device to be configured on the network includes a connection device for establishing a first communication connection. Based on this, the connection parameters can be the identification information of the connection device, such as the unique identification number of the connection device.
[0029] In some technical solutions, the connecting device can be a Bluetooth module, such as Bluetooth Low Energy (also known as Bluetooth LE, BLE, or the old trademark Bluetooth Smart), which is also called low-power Bluetooth. Based on this, the connection parameters can be the hotspot information of the Bluetooth module.
[0030] In some technical solutions, the device information may optionally include the physical address information of the first device to be configured on the network. Based on the connection parameters, a connection request is sent to the first device to be configured on the network. Specifically, this includes: verifying the legality of the physical address information; and if the verification is successful, sending a connection request to the first device to be configured on the network based on the connection parameters.
[0031] In this technical solution, the legality of the physical address information is verified so that a connection request is sent to the first device to be configured on the network only if the verification is successful. In this process, the legality of the first device to be configured on the network can be verified, reducing the number of illegal devices to be configured on the network and electronic devices that establish a first communication connection. At the same time, it also prevents illegal devices to be configured on the network from establishing a second communication connection with the first gateway.
[0032] In this process, by performing legitimacy verification, the probability of unauthorized network devices establishing communication connections with electronic devices and / or the first gateway can be reduced, thereby improving the security of data in electronic devices and the first gateway, and thus reducing the probability of unauthorized attacks on electronic devices and the first gateway.
[0033] In some technical solutions, verifying the legitimacy of physical address information includes verifying the consistency of physical address information.
[0034] In some technical solutions, the physical address information, also known as the MAC address, or Media Access Control Address, is a location used to identify the location of a network device.
[0035] In some technical solutions, optionally, the physical address information is validated, specifically including: sending the physical address information to a first server; and upon receiving a second feedback message from the first server, determining that the validation of the physical address information has passed.
[0036] In this technical solution, the physical address information is sent to a first server so that the first server can verify the legitimacy of the physical address information. In this process, the legitimacy verification can be transferred from the local machine to the cloud, thereby improving the efficiency of legitimacy verification.
[0037] In some technical solutions, the first server generates a verification result during the process of verifying the legality of the physical address information. The result is either "verification passed" or "verification failed". If the verification is passed, a second feedback message is sent to the electronic device. Upon receiving the second feedback message, the electronic device can directly know that the legality of the physical address information has been verified. At this point, it can be determined that the first device to be configured on the network is not an illegal device to be configured on the network.
[0038] Based on this, a first communication connection is established between the electronic device and the first device to be networked. At this time, the first communication connection is established while ensuring communication security.
[0039] In some technical solutions, the electronic device may optionally include a near-field communication device, and the first device to be distributed to the network is equipped with a device tag. Obtaining the device information of the first device to be distributed to the network specifically includes: reading the device tag through the near-field communication device to obtain the device information of the first device to be distributed to the network.
[0040] In this technical solution, electronic devices can acquire device information using near-field communication (NFC) devices. Specifically, the user only needs to bring the electronic device close to the device tag of the first device to be configured on the network to read the device information from the tag. Clearly, in this technical solution, the user can obtain the device information of a specified device by bringing the electronic device close to the device to be configured on the network.
[0041] For example, if multiple lights are connected in series on the same circuit, and the user only wants to configure one of the lights for network distribution while the other lights are not, in the relevant technical solutions, the other lights will also be turned on and off simultaneously when the target light is turned on and off, so that the other lights are also in the network distribution state. Obviously, the above situation is not what the user wants to see.
[0042] In the technical solution of the present invention, the user can use the first communication connection between the electronic device and the first device to be networked to control the first device to be networked to enter the network distribution state, and then use the cooperation of the near field communication device and the device tag to realize the network distribution of the specified lamps, so as to meet the usage needs in different scenarios.
[0043] In some technical solutions, the near field communication device optionally applies near field communication (NFC) technology, which can be used in conjunction with the device tag to enable the transmission of device information without contact.
[0044] In some technical solutions, optionally, the device configuration method further includes: displaying M gateway identifiers, each of which is associated with one of the M gateways, including a first gateway, where M is a positive integer; receiving selection input for the M gateway identifiers; and, in response to the selection input, using the gateway corresponding to the selection input as the first gateway.
[0045] In this technical solution, for IoT scenarios, multiple gateways will be used to form a centralized network. Users can select the gateway that the first device to be configured needs to access from among the multiple gateways, i.e., the first gateway, according to actual usage needs.
[0046] Based on this, by displaying M gateway identifiers, different gateways can be represented, thereby distinguishing between them. After displaying the M gateway identifiers, the electronic device can select the first gateway based on the user's input.
[0047] During this process, users can use electronic devices to selectively choose the first gateway, thereby ensuring the reliability of the first device to be configured in the centralized network.
[0048] For example, the value of M can be 1, 3, 5, or 2, 4, 6 or other values. The specific values will not be elaborated here.
[0049] In some technical solutions, optionally, when a first gateway in a listening state establishes a second communication connection with a first device to be configured in a configuration state, the first gateway is also used to send registration information to a second server. The device configuration method further includes: upon receiving third feedback information sent by the second server, displaying the binding result corresponding to the binding application; wherein the third feedback information is related to the registration information.
[0050] In this technical solution, since the first gateway also sends registration information to the second server, and the second server can also send third feedback information to the electronic device, the electronic device can know the network configuration status between the first device to be configured and the first gateway based on the received third feedback information, thereby providing feedback on the execution result of the binding application. This allows the user to know the binding result of the binding application when using the electronic device to perform access between the first device to be configured and the first gateway.
[0051] In some technical solutions, the binding result can optionally be represented in text form, such as "binding successful".
[0052] In some technical solutions, the binding result can optionally be represented in the form of a symbol, such as "√".
[0053] According to a second aspect of the present invention, the present invention provides a device network configuration method for a first device to be configured, comprising: entering a network configuration state upon receiving a binding application sent by an electronic device; wherein the first device to be configured in the network configuration state establishes a second communication connection with a first gateway in a monitoring state.
[0054] In this technical solution, when the first device to be configured on the network is able to establish a first communication connection with the electronic device, it can receive a binding request from the electronic device. Upon receiving the binding request, it enters the configuration state. At this time, the first device to be configured on the network in the configuration state can establish a second communication connection with the first gateway in the monitoring state.
[0055] Optionally, in some technical solutions, the binding application includes information required for the first device to be configured to establish a second communication connection with the first gateway, so that the first gateway in the listening state can establish a second communication connection with the first device to be configured in the configuration state.
[0056] In some technical solutions, optionally, the binding application can be a string of code. When the first device to be configured receives the binding application, it can automatically switch its own state. During this process, the first device to be configured can enter the configuration state without operating the first device to be configured. And when the first gateway is in the listening state, the first device to be configured can establish a second communication connection with the first gateway.
[0057] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0058] In addition, the equipment distribution network method proposed in this invention also has the following additional technical features.
[0059] In some technical solutions, the device configuration method may optionally include: upon receiving a connection request from an electronic device, establishing a first communication connection with the electronic device; and receiving a binding application based on the first communication connection.
[0060] In this technical solution, when the first device to be configured on the network receives a connection request, it will respond to the connection request and send first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0061] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0062] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0063] In some technical solutions, the second communication connection may optionally use the Purple Bee protocol for communication; and / or the first communication connection may use Bluetooth technology.
[0064] According to a third aspect of the present invention, the present invention provides a device network configuration apparatus for an electronic device, comprising: a first sending unit, configured to send a binding application to the first device to be configured based on the first communication connection when the electronic device establishes a first communication connection with the first device to be configured, so as to enable the first device to be configured to enter a network configuration state; and a second sending unit, configured to send a network configuration instruction to a first gateway, so as to enable the first gateway to enter a listening state; wherein the first gateway in the listening state is capable of establishing a second communication connection with the first device to be configured in the network configuration state.
[0065] The technical solution of the present invention proposes a device for network configuration, which can enable the first device to be configured to enter the network configuration state without operating the first device to be configured, and enable the first device to be configured to establish a second communication connection with the first gateway when the first gateway is in the listening state.
[0066] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0067] The technical solution of the present invention is based on the following principle. Specifically, as can be seen from the above, in the relevant technical solutions, the user needs to manually turn the lights on and off multiple times in order for the lights to enter the network distribution state. At this time, the first device to be distributed to the network automatically triggers the switch to the network distribution state by recording the number of consecutive turns on and off.
[0068] In the technical solution of the present invention, since the electronic device and the first device to be networked are connected by a first communication connection, the electronic device can directly interact with the first device to be networked. At this time, the binding application is sent directly to the first device to be networked using the first communication connection. When the first device to be networked receives the binding application, it can directly enter the network configuration state. At this time, it can attempt to network with the first gateway in the listening state, thereby realizing the second communication connection between the first device to be networked and the first gateway.
[0069] In some technical solutions, the binding application includes the information required for the first device to be configured on the network and the first gateway to establish a second communication connection, so that the first gateway in the listening state can establish a second communication connection with the first device to be configured on the network in the configuration state.
[0070] In some technical solutions, optionally, the first communication connection uses Bluetooth technology, and the second communication connection uses the Purple Bee protocol.
[0071] In addition, the equipment distribution network device proposed in this invention also has the following additional technical features.
[0072] In some technical solutions, optionally, the first sending unit is further configured to: acquire device information of the first device to be configured on the network, the device information including connection parameters for the first communication connection; send a connection request to the first device to be configured on the network based on the connection parameters; and, upon receiving first feedback information corresponding to the connection request, establish a first communication connection between the electronic device and the first device to be configured on the network.
[0073] In this technical solution, by obtaining the device information of the first device to be distributed to the network, the electronic device can establish a first communication connection with the first device to be distributed to the network based on the connection parameters in the device information.
[0074] Specifically, a connection request is sent to the first device to be configured on the network based on the connection parameters. Upon receiving the connection request, the first device to be configured on the network responds to the connection request and sends first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0075] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0076] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0077] In some technical solutions, optionally, the first device to be configured on the network includes a connection device for establishing a first communication connection. Based on this, the connection parameters can be the identification information of the connection device, such as the unique identification number of the connection device.
[0078] In some technical solutions, the connecting device can be a Bluetooth module, such as Bluetooth Low Energy (also known as Bluetooth LE, BLE, or the old trademark Bluetooth Smart), which is also called low-power Bluetooth. Based on this, the connection parameters can be the hotspot information of the Bluetooth module.
[0079] In some technical solutions, the device information may optionally include the physical address information of the first device to be configured on the network. The first sending unit is specifically used to: verify the legality of the physical address information; and, if the verification is successful, send a connection request to the first device to be configured on the network based on the connection parameters.
[0080] In this technical solution, the legality of the physical address information is verified so that a connection request is sent to the first device to be configured on the network only if the verification is successful. In this process, the legality of the first device to be configured on the network can be verified, reducing the number of illegal devices to be configured on the network and electronic devices that establish a first communication connection. At the same time, it also prevents illegal devices to be configured on the network from establishing a second communication connection with the first gateway.
[0081] In this process, by performing legitimacy verification, the probability of unauthorized network devices establishing communication connections with electronic devices and / or the first gateway can be reduced, thereby improving the security of data in electronic devices and the first gateway, and thus reducing the probability of unauthorized attacks on electronic devices and the first gateway.
[0082] In some technical solutions, verifying the legitimacy of physical address information includes verifying the consistency of physical address information.
[0083] In some technical solutions, the physical address information, also known as the MAC address, or Media Access Control Address, is a location used to identify the location of a network device.
[0084] In some technical solutions, optionally, the first sending unit is specifically used to: send physical address information to the first server; and, upon receiving second feedback information sent by the first server, determine that the legality verification of the physical address information has passed.
[0085] In this technical solution, the physical address information is sent to a first server so that the first server can verify the legitimacy of the physical address information. In this process, the legitimacy verification can be transferred from the local machine to the cloud, thereby improving the efficiency of legitimacy verification.
[0086] In some technical solutions, the first server generates a verification result during the process of verifying the legality of the physical address information. The result is either "verification passed" or "verification failed". If the verification is passed, a second feedback message is sent to the electronic device. Upon receiving the second feedback message, the electronic device can directly know that the legality of the physical address information has been verified. At this point, it can be determined that the first device to be configured on the network is not an illegal device to be configured on the network.
[0087] Based on this, a first communication connection is established between the electronic device and the first device to be networked. At this time, the first communication connection is established while ensuring communication security.
[0088] In some technical solutions, the electronic device may optionally include a near-field communication device, the first device to be distributed to the network is equipped with a device tag, and a first transmitting unit is specifically used to: read the device tag through the near-field communication device to obtain the device information of the first device to be distributed to the network.
[0089] In this technical solution, electronic devices can acquire device information using near-field communication (NFC) devices. Specifically, the user only needs to bring the electronic device close to the device tag of the first device to be configured on the network to read the device information from the tag. Clearly, in this technical solution, the user can obtain the device information of a specified device by bringing the electronic device close to the device to be configured on the network.
[0090] For example, if multiple lights are connected in series on the same circuit, and the user only wants to configure one of the lights for network distribution while the other lights are not, in the relevant technical solutions, the other lights will also be turned on and off simultaneously when the target light is turned on and off, so that the other lights are also in the network distribution state. Obviously, the above situation is not what the user wants to see.
[0091] In the technical solution of the present invention, the user can use the first communication connection between the electronic device and the first device to be networked to control the first device to be networked to enter the network distribution state, and then use the cooperation of the near field communication device and the device tag to realize the network distribution of the specified lamps, so as to meet the usage needs in different scenarios.
[0092] In some technical solutions, the near field communication device optionally applies near field communication (NFC) technology, which can be used in conjunction with the device tag to enable the transmission of device information without contact.
[0093] In some technical solutions, optionally, the second sending unit is further configured to: display M gateway identifiers, wherein the M gateway identifiers are associated with M gateways, and the M gateways include the first gateway, where M is a positive integer; receive selection input for the M gateway identifiers; and in response to the selection input, use the gateway corresponding to the selection input as the first gateway.
[0094] In this technical solution, for IoT scenarios, multiple gateways will be used to form a centralized network. Users can select the gateway that the first device to be configured needs to access from among the multiple gateways, i.e., the first gateway, according to actual usage needs.
[0095] Based on this, by displaying M gateway identifiers, different gateways can be represented, thereby distinguishing between them. After displaying the M gateway identifiers, the electronic device can select the first gateway based on the user's input.
[0096] During this process, users can use electronic devices to selectively choose the first gateway, thereby ensuring the reliability of the first device to be configured in the centralized network.
[0097] For example, the value of M can be 1, 3, 5, or 2, 4, 6 or other values. The specific values will not be elaborated here.
[0098] In some technical solutions, optionally, when the first gateway in the listening state establishes a second communication connection with the first device to be configured in the configuration state, the first gateway is also used to send registration information to the second server, and the second sending unit is also used to: display the binding result corresponding to the binding application when receiving the third feedback information sent by the second server; wherein the third feedback information is related to the registration information.
[0099] In this technical solution, since the first gateway also sends registration information to the second server, and the second server can also send third feedback information to the electronic device, the electronic device can know the network configuration status between the first device to be configured and the first gateway based on the received third feedback information, thereby providing feedback on the execution result of the binding application. This allows the user to know the binding result of the binding application when using the electronic device to perform access between the first device to be configured and the first gateway.
[0100] In some technical solutions, the binding result can optionally be represented in text form, such as "binding successful".
[0101] In some technical solutions, the binding result can optionally be represented in the form of a symbol, such as "√".
[0102] According to a fourth aspect of the present invention, another device configuration apparatus is provided for a first device to be configured, comprising: a receiving unit, configured to enter a configuration state upon receiving a binding application sent by an electronic device; wherein the first device to be configured in the configuration state establishes a second communication connection with a first gateway in a monitoring state.
[0103] In this technical solution, when the first device to be configured on the network is able to establish a first communication connection with the electronic device, it can receive a binding request from the electronic device. Upon receiving the binding request, it enters the configuration state. At this time, the first device to be configured on the network in the configuration state can establish a second communication connection with the first gateway in the monitoring state.
[0104] Optionally, in some technical solutions, the binding application includes information required for the first device to be configured to establish a second communication connection with the first gateway, so that the first gateway in the listening state can establish a second communication connection with the first device to be configured in the configuration state.
[0105] In some technical solutions, optionally, the binding application can be a string of code. When the first device to be configured receives the binding application, it can automatically switch its own state. During this process, the first device to be configured can enter the configuration state without operating the first device to be configured. And when the first gateway is in the listening state, the first device to be configured can establish a second communication connection with the first gateway.
[0106] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0107] In addition, the equipment distribution network device proposed in this invention also has the following additional technical features.
[0108] In some technical solutions, optionally, the receiving unit is also used to: establish a first communication connection with the electronic device upon receiving a connection request sent by the electronic device; and receive a binding application based on the first communication connection.
[0109] In this technical solution, when the first device to be configured on the network receives a connection request, it will respond to the connection request and send first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0110] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0111] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0112] In some technical solutions, the second communication connection may optionally use the Purple Bee protocol for communication; and / or the first communication connection may use Bluetooth technology.
[0113] According to a fifth aspect of the present invention, the present invention provides yet another device distribution network apparatus, including a first processor and a first memory, the first memory storing a program or instructions executable on the first processor, the program or instructions, when executed by the first processor, implementing the steps of the method as described above.
[0114] According to a sixth aspect of the present invention, the present invention provides yet another device distribution network apparatus, including a second processor and a second memory, the second memory storing a program or instructions executable on the second processor, the program or instructions, when executed by the second processor, implementing the steps of the method as described above.
[0115] According to a seventh aspect of the present invention, a readable storage medium is provided on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described above.
[0116] According to an eighth aspect of the invention, the invention provides another readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described above.
[0117] According to a ninth aspect of the present invention, an electronic device is provided, comprising: a network distribution device as described above; and / or a readable storage medium as described above.
[0118] According to a tenth aspect of the present invention, the present invention provides a first device to be distributed to a network, comprising: a distribution device as described above; and / or a readable storage medium as described above.
[0119] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0120] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0121] Figure 1 A schematic flowchart of a device network distribution method according to an embodiment of the present invention is shown;
[0122] Figure 2 This illustration shows one of the interaction diagrams between an electronic device, a first network-configurable device, a first gateway, and a server according to an embodiment of the present invention.
[0123] Figure 3 This is a second schematic diagram illustrating the interaction between an electronic device, a first network-configurable device, a first gateway, and a server according to an embodiment of the present invention.
[0124] Figure 4 This figure shows one of the schematic block diagrams of a device distribution network device according to an embodiment of the present invention;
[0125] Figure 5 This shows a second schematic block diagram of a device distribution network device according to an embodiment of the present invention;
[0126] Figure 6 The third schematic block diagram of a device distribution network device according to an embodiment of the present invention is shown. Detailed Implementation
[0127] To better understand the above aspects, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0128] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0129] In one embodiment of this application, such as Figure 1 As shown, a device network configuration method is provided for electronic devices, including:
[0130] Step 102: When the electronic device establishes a first communication connection with the first device to be configured on the network, a binding request is sent to the first device to be configured on the network based on the first communication connection, so that the first device to be configured on the network enters the network configuration state;
[0131] Step 104: Send a network configuration command to the first gateway to enable the first gateway to enter a listening state; wherein, the first gateway in the listening state can establish a second communication connection with the first device to be configured in the network configuration state.
[0132] The embodiments of the present invention propose a device network configuration method. By running the above device network configuration method, the first device to be configured can enter the network configuration state without operating the first device to be configured. And when the first gateway is in the listening state, the first device to be configured can establish a second communication connection with the first gateway.
[0133] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0134] The embodiments of the present invention are implemented based on the following principle. Specifically, as can be seen from the above, in the relevant embodiments, the user needs to manually turn the lights on and off multiple times in order for the lights to enter the network distribution state. At this time, the first device to be distributed to the network automatically triggers the switch to the network distribution state by recording the number of consecutive turns on and off.
[0135] In an embodiment of the present invention, since the electronic device and the first device to be configured on the network use a first communication connection, the electronic device can directly interact with the first device to be configured on the network. At this time, the first communication connection is used to send a binding request directly to the first device to be configured on the network. When the first device to be configured on the network receives the binding request, it can directly enter the configuration state. At this time, it can attempt to configure the network with the first gateway in the listening state, thereby realizing the second communication connection between the first device to be configured on the network and the first gateway.
[0136] In some embodiments, the binding application includes information required for the first device to be configured to establish a second communication connection with the first gateway, thereby enabling the first gateway in the listening state to establish a second communication connection with the first device to be configured in the configuration state.
[0137] In some embodiments, the first communication connection may optionally use Bluetooth technology, and the second communication connection may use the ZigBee protocol.
[0138] In some embodiments, the device network configuration method may optionally further include: obtaining device information of a first device to be configured, the device information including connection parameters for a first communication connection; sending a connection request to the first device to be configured based on the connection parameters; and establishing a first communication connection between the electronic device and the first device to be configured upon receiving first feedback information corresponding to the connection request.
[0139] In this embodiment, by obtaining the device information of the first device to be configured on the network, the electronic device can establish a first communication connection with the first device to be configured on the network based on the connection parameters in the device information.
[0140] Specifically, a connection request is sent to the first device to be configured on the network based on the connection parameters. Upon receiving the connection request, the first device to be configured on the network responds to the connection request and sends first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0141] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0142] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0143] In some embodiments, the first device to be configured may optionally include a connection device for establishing a first communication connection. Based on this, the connection parameters may be the identification information of the connection device, such as the unique identification number of the connection device.
[0144] In some embodiments, the connecting device may be a Bluetooth module, such as Bluetooth Low Energy (or Bluetooth LE, BLE, formerly known as Bluetooth Smart), also called low-power Bluetooth. Based on this, the connection parameters may be the hotspot information of the Bluetooth module.
[0145] In some embodiments, the device information may optionally include the physical address information of the first device to be configured on the network. Based on the connection parameters, a connection request is sent to the first device to be configured on the network, specifically including: verifying the legality of the physical address information; and if the verification is successful, sending a connection request to the first device to be configured on the network based on the connection parameters.
[0146] In this embodiment, by verifying the legality of the physical address information, a connection request is sent to the first device to be configured on the network only if the verification is successful. In this process, the legality of the first device to be configured on the network can be verified, reducing the number of illegal devices to be configured on the network and electronic devices that establish a first communication connection. At the same time, it also avoids illegal devices to be configured on the network and the first gateway from establishing a second communication connection.
[0147] In this process, by performing legitimacy verification, the probability of unauthorized network devices establishing communication connections with electronic devices and / or the first gateway can be reduced, thereby improving the security of data in electronic devices and the first gateway, and thus reducing the probability of unauthorized attacks on electronic devices and the first gateway.
[0148] In some embodiments, verifying the legality of physical address information includes verifying the consistency of the physical address information.
[0149] In some embodiments, the physical address information, also known as the MAC address, or Media Access Control Address, is a location used to identify the location of a network device.
[0150] In some embodiments, optionally, the physical address information is validated, which specifically includes: sending the physical address information to a first server; and, upon receiving second feedback information sent by the first server, determining that the validation of the physical address information has passed.
[0151] In this embodiment, by sending the physical address information to the first server, the first server can verify the legality of the physical address information. In this process, the legality verification can be transferred from the local to the cloud, thereby improving the efficiency of legality verification.
[0152] In some embodiments, during the process of verifying the legality of the physical address information, the first server generates a legality verification result, which is divided into verification passed and verification failed. If the verification is passed, the server sends a second feedback message to the electronic device. When the electronic device receives the second feedback message, it can directly know that the legality verification of the physical address information has been passed. At this time, it can be determined that the first device to be configured on the network is not an illegal device to be configured on the network.
[0153] Based on this, a first communication connection is established between the electronic device and the first device to be networked. At this time, the first communication connection is established while ensuring communication security.
[0154] In some embodiments, the electronic device may optionally include a near-field communication device, and the first device to be configured on the network is provided with a device tag. Obtaining the device information of the first device to be configured on the network specifically includes: reading the device tag through the near-field communication device to obtain the device information of the first device to be configured on the network.
[0155] In this embodiment, the electronic device can acquire device information using a near-field communication (NFC) device. Specifically, the user only needs to bring the electronic device close to the device tag of the first device to be configured on the network to read the device information from the device tag. Clearly, in this embodiment, the user can obtain the device information of a specified device by bringing the electronic device close to the device to be configured on the network.
[0156] For example, multiple lights are connected in series on the same circuit. If a user only wants to configure one of the lights for network distribution while the other lights are not, in the relevant embodiments, the other lights will also be turned on and off simultaneously when the target light is turned on and off, so that the other lights are also in the network distribution state. Obviously, the above situation is not what the user wants to see.
[0157] In an embodiment of the present invention, a user can use the first communication connection between the electronic device and the first device to be networked to control the first device to be networked to enter the network distribution state, and then use the near-field communication device and the device tag to achieve network distribution of the specified lamps, so as to meet the usage needs in different scenarios.
[0158] In some embodiments, the near field communication device optionally employs near field communication (NFC) technology, which can be used in conjunction with a device tag to enable the transmission of device information without contact.
[0159] In some embodiments, the device configuration method may optionally further include: displaying M gateway identifiers, wherein the M gateway identifiers are associated with M gateways, and the M gateways include a first gateway, where M is a positive integer; receiving selection input for the M gateway identifiers; and, in response to the selection input, using the gateway corresponding to the selection input as the first gateway.
[0160] In this embodiment, in the context of the Internet of Things (IoT) scenario, a centralized network is formed by multiple gateways. Users can select the gateway that the first device to be configured needs to access from among the multiple gateways, i.e., the first gateway, according to actual usage needs.
[0161] Based on this, by displaying M gateway identifiers, different gateways can be represented, thereby distinguishing between them. After displaying the M gateway identifiers, the electronic device can select the first gateway based on the user's input.
[0162] During this process, users can use electronic devices to selectively choose the first gateway, thereby ensuring the reliability of the first device to be configured in the centralized network.
[0163] For example, the value of M can be 1, 3, 5, or 2, 4, 6 or other values. The specific values will not be elaborated here.
[0164] In some embodiments, optionally, when a first gateway in a listening state establishes a second communication connection with a first device to be configured in a configuration state, the first gateway is further configured to send registration information to a second server. The device configuration method further includes: upon receiving third feedback information sent by the second server, displaying the binding result corresponding to the binding application; wherein the third feedback information is related to the registration information.
[0165] In this embodiment, since the first gateway also sends registration information to the second server, and the second server can also send third feedback information to the electronic device, the electronic device can know the network configuration status between the first device to be configured and the first gateway based on the received third feedback information, thereby providing feedback on the execution result of the binding application. This allows the user to know the binding result of the binding application when using the electronic device to perform access between the first device to be configured and the first gateway.
[0166] In some embodiments, the binding result may optionally be represented in text form, such as "binding successful".
[0167] In some embodiments, the binding result may optionally be represented by a symbol, such as "√".
[0168] In one embodiment, the second server and the first server are the same server.
[0169] In one embodiment, the present invention provides a device network configuration method for a first device to be configured, comprising: entering a network configuration state upon receiving a binding application sent by an electronic device; wherein the first device to be configured in the network configuration state establishes a second communication connection with a first gateway in a listening state.
[0170] In this embodiment, when the first device to be configured on the network is able to establish a first communication connection with the electronic device, it can receive a binding request from the electronic device and enter the configuration state upon receiving the binding request. At this time, the first device to be configured on the network in the configuration state can establish a second communication connection with the first gateway in the monitoring state.
[0171] In some embodiments, the binding application may optionally include information required for the first device to be configured to establish a second communication connection with the first gateway, thereby enabling the first gateway in the listening state to establish a second communication connection with the first device to be configured in the configuration state.
[0172] In some embodiments, the binding request can be a string of code. When the first device to be configured receives the binding request, it can automatically switch its own state. In this process, the device can enter the configuration state without operating the first device to be configured. And when the first gateway is in the listening state, the first device to be configured can establish a second communication connection with the first gateway.
[0173] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0174] In addition, the equipment distribution network method proposed in this invention also has the following additional technical features.
[0175] In some embodiments, the device configuration method may optionally further include: upon receiving a connection request sent by an electronic device, establishing a first communication connection with the electronic device; and receiving a binding application based on the first communication connection.
[0176] In this embodiment, when the first device to be configured on the network receives a connection request, it will respond to the connection request and send first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0177] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0178] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0179] In some embodiments, the second communication connection may optionally use the Purple Bee protocol for communication; and / or the first communication connection may use Bluetooth technology.
[0180] In one embodiment, such as Figure 2 As shown, the electronic device has a mobile application (APP) installed on it, and then NFC network configuration is realized by operating the electronic device. That is, the device tag is read by NFC to obtain device information, including the MAC address of the first device to be configured and the BLE hotspot information of the first device to be configured.
[0181] At this point, the electronic device verifies the consistency of the MAC address and confirms its legitimacy through the cloud. Once the legitimacy of the device is confirmed, the electronic device establishes a first communication connection with the first device to be networked, such as a Bluetooth connection.
[0182] Specifically, the electronic device sends a CONNECT_REQ, which is a connection request, to establish a first communication connection with the first device to be configured on the network.
[0183] Based on the establishment of the first communication connection, a binding request is sent. At this time, the first device to be configured on the network clears the local user data and enters the configuration state of the Purple Bee protocol.
[0184] Users can also select the gateway to be bound, i.e. the first gateway, through electronic devices, and complete the sub-device registration based on the establishment of a second communication connection between the first gateway and the first device to be configured, and send a binding notification to the electronic devices.
[0185] As can be seen from the above, if Figure 3 As shown, the first device to be distributed to the network has the capability of a first communication connection and a second communication connection. Based on this, the first device to be distributed to the network includes a first communication module and a second communication module, wherein the first communication module is used to provide the capability of the first communication connection and the second communication module is used to provide the capability of the second communication connection.
[0186] In some embodiments, the first communication module and the second communication module are optionally integrated to form a Zigbee+BLE dual-protocol module.
[0187] In some embodiments, the first device to be configured may optionally include a central processing unit connected to the zigbee+BLE dual-protocol module to drive the zigbee+BLE dual-protocol module to work.
[0188] In some embodiments, the first device to be configured may optionally include a device tag, i.e., an NFC tag, so that electronic devices can read device information.
[0189] Specifically, an NFC tag, or device tag, is generated based on the MAC address and key BLE hotspot information of the first device to be configured for network access, and is embedded within the device. This first device employs a dual-protocol design of Zigbee and BLE, continuously transmitting non-directional BLE connectable broadcasts. The app obtains the MAC address and BLE hotspot information of the first device via NFC tap-to-device communication. The app verifies the device's legitimacy with the server backend. Upon successful verification, a BLE connection is established with the designated device using this information. A binding command is sent via the BLE connection, instructing the Zigbee device to clear its local user data and enter network configuration mode. Simultaneously, the app sends a network configuration command to the corresponding gateway device, instructing it to enter Zigbee binding and listening mode. The first device to be configured for network access and the gateway complete the Zigbee network entry and binding process.
[0190] In one embodiment, such as Figure 4 As shown, the present invention provides a device network configuration apparatus 400 for electronic devices, comprising: a first sending unit 402, configured to send a binding application to the first device to be configured based on the first communication connection when the electronic device establishes a first communication connection with the first device to be configured, so as to enable the first device to be configured to enter the network configuration state; and a second sending unit 404, configured to send a network configuration instruction to a first gateway, so as to enable the first gateway to enter the listening state; wherein the first gateway in the listening state is capable of establishing a second communication connection with the first device to be configured in the network configuration state.
[0191] The embodiments of the present invention provide a device for network configuration, which can enable a first device to be configured to enter a network configuration state without operating the first device to be configured, and enable the first device to be configured to establish a second communication connection with the first gateway when the first gateway is in a listening state.
[0192] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0193] The embodiments of the present invention are implemented based on the following principle. Specifically, as can be seen from the above, in the relevant embodiments, the user needs to manually turn the lights on and off multiple times in order for the lights to enter the network distribution state. At this time, the first device to be distributed to the network automatically triggers the switch to the network distribution state by recording the number of consecutive turns on and off.
[0194] In an embodiment of the present invention, since the electronic device and the first device to be configured on the network use a first communication connection, the electronic device can directly interact with the first device to be configured on the network. At this time, the first communication connection is used to send a binding request directly to the first device to be configured on the network. When the first device to be configured on the network receives the binding request, it can directly enter the configuration state. At this time, it can attempt to configure the network with the first gateway in the listening state, thereby realizing the second communication connection between the first device to be configured on the network and the first gateway.
[0195] In some embodiments, the binding application includes information required for the first device to be configured to establish a second communication connection with the first gateway, thereby enabling the first gateway in the listening state to establish a second communication connection with the first device to be configured in the configuration state.
[0196] In some embodiments, the first communication connection may optionally use Bluetooth technology, and the second communication connection may use the ZigBee protocol.
[0197] In some embodiments, the first sending unit 402 is optionally further configured to: obtain device information of the first device to be configured on the network, the device information including connection parameters of the first communication connection; send a connection request to the first device to be configured on the network based on the connection parameters; and, upon receiving first feedback information corresponding to the connection request, establish a first communication connection between the electronic device and the first device to be configured on the network.
[0198] In this embodiment, by obtaining the device information of the first device to be configured on the network, the electronic device can establish a first communication connection with the first device to be configured on the network based on the connection parameters in the device information.
[0199] Specifically, a connection request is sent to the first device to be configured on the network based on the connection parameters. Upon receiving the connection request, the first device to be configured on the network responds to the connection request and sends first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0200] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0201] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0202] In some embodiments, the first device to be configured may optionally include a connection device for establishing a first communication connection. Based on this, the connection parameters may be the identification information of the connection device, such as the unique identification number of the connection device.
[0203] In some embodiments, the connecting device may be a Bluetooth module, such as Bluetooth Low Energy (or Bluetooth LE, BLE, formerly known as Bluetooth Smart), also called low-power Bluetooth. Based on this, the connection parameters may be the hotspot information of the Bluetooth module.
[0204] In some embodiments, the device information may optionally include the physical address information of the first device to be configured on the network. The first sending unit 402 is specifically used to: verify the legality of the physical address information; and if the verification is successful, send a connection request to the first device to be configured on the network based on the connection parameters.
[0205] In this embodiment, by verifying the legality of the physical address information, a connection request is sent to the first device to be configured on the network only if the verification is successful. In this process, the legality of the first device to be configured on the network can be verified, reducing the number of illegal devices to be configured on the network and electronic devices that establish a first communication connection. At the same time, it also avoids illegal devices to be configured on the network and the first gateway from establishing a second communication connection.
[0206] In this process, by performing legitimacy verification, the probability of unauthorized network devices establishing communication connections with electronic devices and / or the first gateway can be reduced, thereby improving the security of data in electronic devices and the first gateway, and thus reducing the probability of unauthorized attacks on electronic devices and the first gateway.
[0207] In some embodiments, verifying the legality of physical address information includes verifying the consistency of the physical address information.
[0208] In some embodiments, the physical address information, also known as the MAC address, or Media Access Control Address, is a location used to identify the location of a network device.
[0209] In some embodiments, optionally, the first sending unit 402 is specifically configured to: send physical address information to a first server; and, upon receiving second feedback information sent by the first server, determine that the legality verification of the physical address information has passed.
[0210] In this embodiment, by sending the physical address information to the first server, the first server can verify the legality of the physical address information. In this process, the legality verification can be transferred from the local to the cloud, thereby improving the efficiency of legality verification.
[0211] In some embodiments, during the process of verifying the legality of the physical address information, the first server generates a legality verification result, which is divided into verification passed and verification failed. If the verification is passed, the server sends a second feedback message to the electronic device. When the electronic device receives the second feedback message, it can directly know that the legality verification of the physical address information has been passed. At this time, it can be determined that the first device to be configured on the network is not an illegal device to be configured on the network.
[0212] Based on this, a first communication connection is established between the electronic device and the first device to be networked. At this time, the first communication connection is established while ensuring communication security.
[0213] In some embodiments, the electronic device may optionally include a near-field communication device, the first device to be networked is provided with a device tag, and the first transmitting unit 402 is specifically used to: read the device tag through the near-field communication device to obtain the device information of the first device to be networked.
[0214] In this embodiment, the electronic device can acquire device information using a near-field communication (NFC) device. Specifically, the user only needs to bring the electronic device close to the device tag of the first device to be configured on the network to read the device information from the device tag. Clearly, in this embodiment, the user can obtain the device information of a specified device by bringing the electronic device close to the device to be configured on the network.
[0215] For example, multiple lights are connected in series on the same circuit. If a user only wants to configure one of the lights for network distribution while the other lights are not, in the relevant embodiments, the other lights will also be turned on and off simultaneously when the target light is turned on and off, so that the other lights are also in the network distribution state. Obviously, the above situation is not what the user wants to see.
[0216] In an embodiment of the present invention, a user can use the first communication connection between the electronic device and the first device to be networked to control the first device to be networked to enter the network distribution state, and then use the near-field communication device and the device tag to achieve network distribution of the specified lamps, so as to meet the usage needs in different scenarios.
[0217] In some embodiments, the near field communication device optionally employs near field communication (NFC) technology, which can be used in conjunction with a device tag to enable the transmission of device information without contact.
[0218] In some embodiments, optionally, the second sending unit 404 is further configured to: display M gateway identifiers, the M gateway identifiers being associated with M gateways, the M gateways including a first gateway, where M is a positive integer; receive selection input for the M gateway identifiers; and in response to the selection input, use the gateway corresponding to the selection input as the first gateway.
[0219] In this embodiment, in the context of the Internet of Things (IoT) scenario, a centralized network is formed by multiple gateways. Users can select the gateway that the first device to be configured needs to access from among the multiple gateways, i.e., the first gateway, according to actual usage needs.
[0220] Based on this, by displaying M gateway identifiers, different gateways can be represented, thereby distinguishing between them. After displaying the M gateway identifiers, the electronic device can select the first gateway based on the user's input.
[0221] During this process, users can use electronic devices to selectively choose the first gateway, thereby ensuring the reliability of the first device to be configured in the centralized network.
[0222] For example, the value of M can be 1, 3, 5, or 2, 4, 6 or other values. The specific values will not be elaborated here.
[0223] In some embodiments, optionally, when the first gateway in the listening state establishes a second communication connection with the first device to be configured in the configuration state, the first gateway is further configured to send registration information to the second server, and the second sending unit 404 is further configured to: display the binding result corresponding to the binding application when receiving the third feedback information sent by the second server; wherein the third feedback information is related to the registration information.
[0224] In this embodiment, since the first gateway also sends registration information to the second server, and the second server can also send third feedback information to the electronic device, the electronic device can know the network configuration status between the first device to be configured and the first gateway based on the received third feedback information, thereby providing feedback on the execution result of the binding application. This allows the user to know the binding result of the binding application when using the electronic device to perform access between the first device to be configured and the first gateway.
[0225] In some embodiments, the binding result may optionally be represented in text form, such as "binding successful".
[0226] In some embodiments, the binding result may optionally be represented by a symbol, such as "√".
[0227] In one embodiment, the present invention provides another device network configuration apparatus for a first device to be configured, comprising: a receiving unit, configured to enter a network configuration state upon receiving a binding application sent by an electronic device; wherein the first device to be configured in the network configuration state establishes a second communication connection with a first gateway in a listening state.
[0228] In this embodiment, when the first device to be configured on the network is able to establish a first communication connection with the electronic device, it can receive a binding request from the electronic device and enter the configuration state upon receiving the binding request. At this time, the first device to be configured on the network in the configuration state can establish a second communication connection with the first gateway in the monitoring state.
[0229] In some embodiments, the binding application may optionally include information required for the first device to be configured to establish a second communication connection with the first gateway, thereby enabling the first gateway in the listening state to establish a second communication connection with the first device to be configured in the configuration state.
[0230] In some embodiments, the binding request can be a string of code. When the first device to be configured receives the binding request, it can automatically switch its own state. In this process, the device can enter the configuration state without operating the first device to be configured. And when the first gateway is in the listening state, the first device to be configured can establish a second communication connection with the first gateway.
[0231] In this process, the complexity of establishing a second communication connection between the first device to be distributed and the first gateway can be reduced, thereby improving the efficiency of network distribution.
[0232] In some embodiments, optionally, the receiving unit is further configured to: establish a first communication connection with the electronic device upon receiving a connection request sent by the electronic device; and receive a binding application based on the first communication connection.
[0233] In this embodiment, when the first device to be configured on the network receives a connection request, it will respond to the connection request and send first feedback information to the electronic device, thereby using the first feedback information to indicate its agreement to establish a first communication connection with the electronic device.
[0234] For electronic devices, upon receiving the first feedback information, they will directly establish the first communication connection with the first device to be configured on the network.
[0235] During this process, the electronic device can establish a first communication connection with the first device to be distributed to the network based on whether the first device to be distributed to the network needs to be distributed. During this process, it is not necessary for the electronic device to maintain the first communication connection with the first device to be distributed to the network continuously.
[0236] In some embodiments, the second communication connection may optionally use the Purple Bee protocol for communication; and / or the first communication connection may use Bluetooth technology.
[0237] In one embodiment, such as Figure 5 As shown, the present invention provides another device distribution network device 500, including a first processor 502 and a first memory 504. The first memory 504 stores programs or instructions that can be run on the first processor 502. When the programs or instructions are executed by the first processor 502, they implement the steps of the method as described above.
[0238] In one embodiment, such as Figure 6 As shown, the present invention provides another device distribution network device 600, including a second processor 602 and a second memory 604. The second memory 604 stores programs or instructions that can run on the second processor 602. When the programs or instructions are executed by the second processor 602, they implement the steps of the method as described above.
[0239] The first memory 504 and the second memory 604 can be used to store software programs and various data. The first memory 504 and the second memory 604 mainly include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area can store the operating system, application programs or instructions required for at least one function (such as sound playback function, image playback function, etc.). Furthermore, the first memory 504 and the second memory 604 can include volatile memory or non-volatile memory, or both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0240] In one embodiment, the present invention provides a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described above.
[0241] In one embodiment, the present invention provides another readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method as described above.
[0242] In one embodiment, the present invention provides an electronic device, including: a network distribution device as described above; and / or a readable storage medium as described above.
[0243] In one embodiment, the present invention provides a first device to be distributed to a network, comprising: a network distribution device as described above; and / or a readable storage medium as described above.
[0244] In some embodiments, the first device to be networked can be a household appliance, such as one or more of a lamp, water heater, air conditioner, washing machine, and water heater.
[0245] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly include one or more of the features. In the textual description of this invention, unless otherwise stated, "a plurality of" means two or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0246] In the textual description of this invention, it is understood that, unless explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art will understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0247] In the claims, description, and accompanying drawings of this invention, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the invention. In the claims, description, and accompanying drawings of this invention, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0248] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A device network distribution method for electronic equipment, characterized in that, include: When the electronic device establishes a first communication connection with the first device to be configured on the network, a binding request is sent to the first device to be configured on the network based on the first communication connection, so that the first device to be configured on the network enters the network configuration state. Send a network configuration command to the first gateway to put the first gateway into a listening state; The first gateway in the monitoring state can establish a second communication connection with the first device to be configured in the configuration state. The device network configuration method also includes: Obtain the device information of the first device to be configured on the network, the device information including connection parameters with the first communication connection; Based on the connection parameters, a connection request is sent to the first device to be configured on the network. Upon receiving the first feedback information corresponding to the connection request, the electronic device establishes the first communication connection with the first device to be configured on the network.
2. The equipment distribution network method according to claim 1, characterized in that, The device information also includes the physical address information of the first device to be configured on the network. The step of sending a connection request to the first device to be configured on the network based on the connection parameters specifically includes: The validity of the physical address information is verified. If the verification is successful, the connection request is sent to the first device to be configured on the network based on the connection parameters.
3. The equipment distribution network method according to claim 2, characterized in that, The verification of the legality of the physical address information specifically includes: Send the physical address information to the first server; Upon receiving the second feedback information sent by the first server, it is determined that the legality verification of the physical address information has passed.
4. The equipment distribution network method according to claim 1, characterized in that, The electronic device includes a near-field communication device, and the first device to be configured with the network is equipped with a device tag. The step of obtaining the device information of the first device to be configured with the network specifically includes: The device information of the first device to be distributed to the network is obtained by reading the device tag through the near-field communication device.
5. The equipment distribution network method according to any one of claims 1 to 4, characterized in that, The device network configuration method also includes: Display M gateway identifiers, each of which is associated with M gateways, including the first gateway, where M is a positive integer. Receive selection input for the M gateway identifiers; In response to the selection input, the gateway corresponding to the selection input is designated as the first gateway.
6. The equipment distribution network method according to any one of claims 1 to 4, characterized in that, When the first gateway in the listening state establishes the second communication connection with the first device to be configured in the configuration state, the first gateway is also used to send registration information to the second server, and the device configuration method further includes: Upon receiving the third feedback information sent by the second server, the binding result corresponding to the binding application is displayed; The third feedback information is related to the registration information.
7. A method for network distribution of equipment, used for a first equipment to be distributed to the network, characterized in that, include: Upon receiving a binding request from an electronic device, the system enters the network configuration state. Among them, the first device to be configured in the network distribution state establishes a second communication connection with the first gateway in the monitoring state; The electronic device acquires device information of the first device to be configured on the network, the device information including connection parameters for the first communication connection; based on the connection parameters, it sends a connection request to the first device to be configured on the network; and upon receiving first feedback information corresponding to the connection request, the electronic device establishes the first communication connection with the first device to be configured on the network.
8. The equipment distribution network method according to claim 7, characterized in that, The device network configuration method also includes: Upon receiving a connection request from the electronic device, a first communication connection is established with the electronic device; Based on the first communication connection, the binding request is received.
9. The equipment distribution network method according to claim 8, characterized in that, The second communication connection uses the Purple Bee protocol; and / or The first communication connection uses Bluetooth technology.
10. A device distribution network apparatus for electronic equipment, characterized in that, include: The first sending unit is configured to send a binding application to the first network-to-network device based on the first communication connection when the electronic device establishes a first communication connection with the first network-to-network device, so that the first network-to-network device enters the network-to-network state. The second sending unit is used to send a network configuration command to the first gateway so that the first gateway enters a listening state; The first gateway in the monitoring state can establish a second communication connection with the first device to be configured in the configuration state. The first sending unit is further configured to acquire device information of the first device to be configured on the network, the device information including connection parameters for the first communication connection; send a connection request to the first device to be configured on the network based on the connection parameters; and, upon receiving first feedback information corresponding to the connection request, establish a first communication connection between the electronic device and the first device to be configured on the network.
11. A device for network distribution, used for a first device to be distributed, characterized in that, include: The receiving unit is used to enter the network distribution state upon receiving a binding application sent by an electronic device; Among them, the first device to be configured in the network distribution state establishes a second communication connection with the first gateway in the monitoring state; The electronic device acquires device information of the first device to be configured on the network, the device information including connection parameters for the first communication connection; based on the connection parameters, it sends a connection request to the first device to be configured on the network; and upon receiving first feedback information corresponding to the connection request, the electronic device establishes the first communication connection with the first device to be configured on the network.
12. A device for power distribution, characterized in that, It includes a first processor and a first memory, the first memory storing a program or instructions that can run on the first processor, the program or instructions being executed by the first processor to implement the steps of the method as described in any one of claims 1 to 6.
13. A device for power distribution, characterized in that, It includes a second processor and a second memory, the second memory storing a program or instructions that can run on the second processor, the program or instructions being executed by the second processor to implement the steps of the method as described in any one of claims 7 to 9.
14. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 6.
15. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 7 to 9.
16. An electronic device, characterized in that, include: The equipment distribution network device as described in claim 10 or 12; and / or The readable storage medium as described in claim 14.
17. A first device to be distributed to a network, characterized in that, include: The equipment distribution network device as described in claim 11 or 13; and / or The readable storage medium as described in claim 15.
Citation Information
Patent Citations
Network distribution method, device and system for intelligent equipment, electronic equipment and storage medium
CN112752324A
Network distribution method, network distribution system, electronic equipment and computer storage medium
CN113973352A