A device network distribution method, device, apparatus and storage medium
By receiving Bluetooth broadcast messages, devices that are not bound to a user are identified and displayed on the interface. Users can select operations on the interface to establish a Bluetooth connection with the device, which solves the problem of cumbersome device network configuration in the existing technology, realizes fast and convenient device network configuration, and improves the user experience.
Patent Information
- Application Number
- CN202310943146.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-07-28
AI Technical Summary
In existing technologies, network configuration for smart devices usually requires users to trigger it through physical buttons, which is cumbersome and not intuitive, resulting in a poor user experience.
By receiving Bluetooth broadcast messages, the system identifies devices that are not bound to a user and displays these devices on the interface. Users can select operations on the interface to establish a Bluetooth connection with the device and then bind it to the target gateway, enabling quick and convenient network configuration of the device.
With the Bluetooth auto-discovery feature, users can quickly and easily complete the network configuration of their devices, improving the user experience and simplifying the network access process.
Smart Images

Figure CN116743567B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of data processing, and particularly relates to a device network configuration method and device, apparatus, and storage medium. BACKGROUND
[0002] In daily life, the use of smart devices often needs network configuration, that is, to make the device enter a network configuration state. At present, a physical button triggering method is usually used to configure the network of the device. For example, for a smart lamp, the switch of the smart lamp needs to be turned on and off for multiple times. Obviously, this re-network configuration method needs the user to configure the network of the device through physical contact, which is relatively cumbersome and not intuitive.
[0003] Therefore, how to realize the rapid and convenient network entry of the device to improve the user experience is a technical problem to be solved at present. SUMMARY
[0004] To solve the above technical problem, the present disclosure provides a device network configuration method.
[0005] In a first aspect, the present disclosure provides a device network configuration method, which comprises:
[0006] receiving at least one Bluetooth broadcast message and displaying a device corresponding to a Bluetooth broadcast message carrying a first binding state identifier on an interface; wherein the first binding state identifier is used to identify that the corresponding device is in an unbound user state;
[0007] In response to a selection operation on a target device on the interface, establishing a Bluetooth connection with the target device;
[0008] Based on the Bluetooth connection, controlling the target device to bind with a target gateway.
[0009] In an optional implementation, based on the Bluetooth connection, controlling the target device to bind with a target gateway, comprises:
[0010] Based on the Bluetooth connection, sending a binding request to the target device; wherein the binding request is used to instruct the target device to enter a network configuration state;
[0011] sending a network configuration instruction to the target gateway; wherein the network configuration instruction is used to instruct the target gateway to enter a binding listening state and bind with the target device in the network configuration state.
[0012] In an optional implementation, before the step of establishing a Bluetooth connection with the target device in response to the selection operation on the target device on the interface, the method further comprises:
[0013] check whether the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier has been bound to a user; the second binding state identifier is used to identify that the corresponding device is in a bound-to-user state;
[0014] if it is determined through the check that the device is not bound to a user, display the device on the interface.
[0015] In an optional implementation, the check whether the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier has been bound to a user includes:
[0016] send, to a target server, a query request carrying device identifier information; the device identifier information is used to identify the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier, and the query request is used to instruct the target server to query whether the device identified by the device identifier information belongs to a preset list, the preset list being used to store device identifiers of devices bound to users;
[0017] Correspondingly, the if it is determined through the check that the device is not bound to a user, display the device on the interface includes:
[0018] if a preset response message to the query request is received, display the device identified by the device identifier information on the interface; the preset response message is used to represent that the device is not bound to a user.
[0019] In an optional implementation, the sending, to a target server, a query request carrying device identifier information further includes:
[0020] analyze the Bluetooth broadcast message to obtain the device identifier information carried by the Bluetooth broadcast message.
[0021] In an optional implementation, the device identifier information includes a media access control (MAC) address of the device and / or a device identity (ID) number.
[0022] In an optional implementation, the sending, to a target gateway, a network configuration instruction further includes:
[0023] receive a successful binding message from the target server; the successful binding message is sent by the target server after establishing a binding relationship between the target device and a current account.
[0024] In an optional implementation, the device sending the Bluetooth broadcast message is deployed with a ZigBee (ZigBee) communication module.
[0025] In a second aspect, the present disclosure provides a device network configuration apparatus, the apparatus comprising:
[0026] The first display module is configured to receive at least one Bluetooth broadcast message and display a device corresponding to the Bluetooth broadcast message carrying a first binding state identifier on an interface, wherein the first binding state identifier is used to identify that the corresponding device is in an unbound user state.
[0027] The establishing module is configured to establish a Bluetooth connection with a target device in response to a selection operation on the target device on the interface.
[0028] The control module is configured to control the target device to bind with a target gateway based on the Bluetooth connection.
[0029] In a third aspect, the present disclosure provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and the instructions, when executed on a terminal device, cause the terminal device to implement the method described above.
[0030] In a fourth aspect, the present disclosure provides a device network configuration device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method described above when executing the computer program.
[0031] In a fifth aspect, the present disclosure provides a computer program product, comprising computer programs / instructions, and the computer programs / instructions, when executed on a processor, implement the method described above.
[0032] Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have at least the following advantages:
[0033] The embodiments of the present disclosure provide a device network configuration method, receiving at least one Bluetooth broadcast message and displaying a device corresponding to the Bluetooth broadcast message carrying a first binding state identifier on an interface, wherein the first binding state identifier is used to identify that the corresponding device is in an unbound user state; in response to a selection operation on a target device on the interface, a Bluetooth connection is established with the target device; and based on the Bluetooth connection, the target device is controlled to bind with a target gateway. It can be seen that, by using the Bluetooth self-discovery function, the device in the unbound user state is displayed on the interface, so that the user can quickly and conveniently complete the network configuration operation of the device to be configured based on the device displayed on the interface. BRIEF DESCRIPTION OF DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required by the embodiments or prior art description. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without creative labor.
[0036] Figure 1 A flowchart of a device network configuration method provided by an embodiment of the present disclosure;
[0037] Figure 2 A flowchart of a device network configuration provided by an embodiment of the present disclosure;
[0038] Figure 3 A schematic diagram of a device network configuration system provided by an embodiment of the present disclosure;
[0039] Figure 4 A structural schematic diagram of a device network configuration apparatus provided by an embodiment of the present disclosure;
[0040] Figure 5 A structural schematic diagram of a device network configuration apparatus provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] In order to more clearly illustrate the above-mentioned purposes, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0042] In the following description, many specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure can also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some of the embodiments of the present disclosure, not all the embodiments.
[0043] In daily life, the use of smart devices often needs to be networked, that is, to make the device enter the network configuration state. At present, the device is usually networked by a physical button trigger, for example, for a smart lamp, the switch of the smart lamp needs to be turned on and off for many times. Obviously, this way of re-networking needs the user to network the device by physical contact, which is more troublesome and not intuitive.
[0044] To this end, the embodiment of the present disclosure provides a device network configuration method, receiving at least one Bluetooth broadcast message, and displaying the device corresponding to the Bluetooth broadcast message carrying a first binding state identifier on an interface, wherein the first binding state identifier is used to identify that the corresponding device is in an unbound user state; in response to a selection operation on a target device on the interface, establishing a Bluetooth connection with the target device; based on the Bluetooth connection, controlling the target device to bind with a target gateway. It can be seen that the embodiment of the present disclosure displays the device in the unbound user state on the interface through the Bluetooth self-discovery function, which facilitates the user to quickly and conveniently complete the network configuration operation of the device to be configured based on the device displayed on the interface.
[0045] Based on this, the embodiment of the present disclosure provides a device network configuration method, referring to Figure 1 The flowchart of the device network configuration method provided by the embodiment of the present disclosure, the method specifically comprises:
[0046] S101: receiving at least one Bluetooth broadcast message, and displaying the device corresponding to the Bluetooth broadcast message carrying a first binding state identifier on an interface.
[0047] The first binding state identifier is used to identify that the corresponding device is in an unbound user state.
[0048] The device network configuration method provided by the embodiment of the present disclosure can be applied to a client, for example, the client can include a client deployed on a smart phone, a client deployed on a tablet computer, etc.
[0049] In actual application, most smart devices are deployed with a Bluetooth communication module, in the case that the smart device is powered on, the Bluetooth communication module can constantly send Bluetooth broadcast messages outward, for example, the smart device can constantly send a connectable non-directional advertising packet (ADV_IND) outward, this type of broadcast message is used to indicate that the current device can receive the connection request of any other device, in addition, the device sending the connectable non-directional advertising packet can also be scanned by other devices and establish a Bluetooth connection based on this.
[0050] In the embodiment of the present disclosure, the Bluetooth broadcast message can carry a binding state identifier, wherein the binding state identifier is used to represent whether the corresponding device (i.e. the device sending the Bluetooth broadcast message) has bound a user, therefore, after receiving at least one Bluetooth broadcast message, first determine whether the device sending the Bluetooth broadcast message has bound a user based on the binding state identifier carried in the Bluetooth broadcast message.
[0051] In the embodiment of the present disclosure, the binding state identifier can include a first binding state identifier, wherein the first binding state identifier is used to identify that the corresponding device is in an unbound user state, i.e. the device sending the Bluetooth broadcast message is not bound by a user.
[0052] In the embodiments of the present disclosure, when at least one Bluetooth broadcast message is received, the device corresponding to the Bluetooth broadcast message carrying the first binding state identifier is displayed on the interface, i.e., the device of the unbound user is displayed on the interface, based on the binding state identifier carried in the Bluetooth broadcast message.
[0053] In an optional embodiment, in the process of automatically discovering the device based on the Bluetooth communication module, in order to reduce the risk of misconfiguration, when at least one Bluetooth broadcast message is received, it is also necessary to determine whether the signal strength of the received Bluetooth broadcast message reaches a preset strength value. For the Bluetooth broadcast message with the signal strength meeting the preset strength value, it is determined whether the binding state identifier carried by the Bluetooth broadcast message is the first binding state identifier. If yes, the device corresponding to the Bluetooth broadcast message is displayed on the interface. The preset strength value can be determined based on actual needs, and the embodiments of the present disclosure do not limit this.
[0054] The signal strength of the Bluetooth broadcast message is related to the distance of the device sending the Bluetooth broadcast message. The farther the distance, the smaller the signal strength of the Bluetooth broadcast message, and the closer the distance, the greater the signal strength of the Bluetooth broadcast message. Therefore, the embodiments of the present disclosure filter out a part of devices far away from the client (i.e., devices with signal strength not meeting the preset strength value) based on the signal strength of the Bluetooth broadcast information, thereby reducing the risk of misconfiguration.
[0055] In an optional embodiment, the device sending the Bluetooth broadcast message can be deployed with a ZigBee communication module. ZigBee is a low-speed short-distance transmission wireless network protocol, which is suitable for a series of electronic components and devices with short transmission range and low data transmission rate, and has a relatively wide application in smart devices. Since most devices only deployed with ZigBee communication module do not have a gateway, the user cannot directly connect the client to the ZigBee device. Based on this, the present disclosure provides a to-be-configured network device simultaneously deployed with a ZigBee communication module and a Bluetooth communication module, and realizes the binding between the ZigBee device and the client through Bluetooth connection, which better compensates for the defects of the ZigBee device.
[0056] In another optional embodiment, the device sending the Bluetooth broadcast message can also be a smart device deployed with other communication modules, such as a device deployed with a Wi-Fi (wireless network communication technology) communication module and a Bluetooth communication module, a device deployed with an RS-485 (serial communication technology) communication module and a Bluetooth communication module, and a device deployed with a Thread (home Internet of Things communication protocol technology) communication module and a Bluetooth communication module, etc. The embodiments of the present disclosure do not limit the communication modules deployed on the device sending the Bluetooth broadcast message.
[0057] S102: In response to a selection operation on a target device on the interface, a Bluetooth connection is established with the target device.
[0058] In the embodiments of the present disclosure, when a selection operation of a user on a target device on the interface is received, a Bluetooth connection is established with the selected target device, wherein the target device can be one or more devices displayed on the interface.
[0059] In the embodiments of the present disclosure, the selection operation on the target device on the interface can include a click operation, a long press operation, etc. on the target device, for triggering the Bluetooth connection with the target device.
[0060] For example, it is assumed that devices A, B and C are displayed on the interface, wherein device B is the device corresponding to the Bluetooth broadcast message carrying the first binding state identifier. When a selection operation of a user on devices A and B is received, Bluetooth connections are established with devices A and B respectively, thereby quickly and conveniently realizing the batch network access operation on multiple devices (i.e. devices A and B) and improving the user experience.
[0061] S103: Based on the Bluetooth connection, the target device is controlled to bind with a target gateway.
[0062] In the embodiments of the present disclosure, after the Bluetooth connection with the target device is established, a message or an instruction can be sent to the target device based on the Bluetooth connection to control the target device to bind with the target gateway.
[0063] In an optional implementation, after the Bluetooth connection with the target device is established, a binding request can be sent to the target device based on the Bluetooth connection, wherein the binding request is specifically used to instruct the device to be commissioned to enter a commissioning state; the target device enters the commissioning state when the binding request is received, wherein the target device in the commissioning state can be listened to by the target gateway and supports commissioning through the Bluetooth connection.
[0064] In actual application, for the case that the target device cannot directly connect with the client, the commissioning process of the target device is mainly completed through the target gateway, therefore, after the binding request is sent to the target device based on the Bluetooth connection, a commissioning instruction is also needed to be sent to the target gateway, wherein the commissioning instruction is used to instruct the target gateway to enter a binding listening state and bind with the target gateway.
[0065] In the embodiments of the present disclosure, the target gateway is used to enter a binding listening state when receiving a network configuration instruction from the client, wherein the target gateway in the binding listening state can bind with the target device based on a Bluetooth connection when listening to the target device in the network configuration state; after binding with the target device, the target gateway can register the target device under the target server, that is, establish a binding relationship between the target device and the current account, at this time, the target device can communicate with the target server.
[0066] In an optional implementation, after sending a binding request to the target device based on the Bluetooth connection and sending a network configuration instruction to the target gateway, a successful binding message from the target server can also be received, wherein the successful binding message is sent by the target server after establishing the binding relationship between the target device and the current account, and the successful binding message is used to indicate that the target device and the current account can normally communicate.
[0067] In the device network configuration method provided by the embodiments of the present disclosure, at least one Bluetooth broadcast message is received, and a device corresponding to a Bluetooth broadcast message carrying a first binding state identifier is displayed on an interface, wherein the first binding state identifier is used to identify that the corresponding device is in an unbound user state; in response to a selection operation on a target device on the interface, a Bluetooth connection with the target device is established; and based on the Bluetooth connection, the target device is controlled to bind with a target gateway. It can be seen that, in the embodiments of the present disclosure, the device in the unbound user state is displayed on the interface through the Bluetooth self-discovery function, so that the user can quickly and conveniently complete the network configuration operation of the target device based on the device displayed on the interface.
[0068] In actual application, the received at least one Bluetooth broadcast message can include a Bluetooth broadcast message carrying a second binding state identifier, wherein the second binding state identifier is used to identify that the corresponding device is in a bound user state, and for the device in the bound user state, it is possible that the device has been bound to other users before, but has been deleted from the account, and for the device, the current user can reconfigure the network.
[0069] Therefore, before receiving the selection operation on the target device on the interface and establishing the Bluetooth connection with the target device, it further includes: verifying whether the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier is bound to a user, if it is determined through the verification that the device is not bound to a user, the device is displayed on the interface, so as to facilitate the user to rebind the device after unbinding.
[0070] In actual application, when the Bluetooth broadcast message carrying the second binding state identifier is received, the device identifier information of the corresponding device can be carried in the Bluetooth broadcast message, and the device identifier information can be used to identify the device sending the Bluetooth broadcast message. Therefore, the query request carrying the device identifier information can be sent to the target server, and the target server can check whether the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier has been bound to a user.
[0071] Specifically, the query request carrying the device identifier information is sent to the target server, where the device identifier information is specifically used to identify the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier, and the query request is used to instruct the target server to query whether the device identified by the device identifier information belongs to a preset list.
[0072] In the embodiment of the present disclosure, the preset list stores at least one device identifier of a user-bound device, and the target server can determine whether the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier has been bound to a user by querying whether the device identifier information is stored in the preset list.
[0073] In an optional implementation, the device identifier information can include a media access control (MAC) address of the device and / or a device identification (ID) number, where the MAC address is an address that can be used to uniquely determine the location of the device, and is written in the hardware of the device by the manufacturer during the production of the device to be configured, and cannot be modified after production. The device ID number can also be used to identify the corresponding device.
[0074] In the embodiment of the present disclosure, if a preset response message sent by the target server in response to the query request is received, the device identified by the device identifier information is displayed on the interface, where the preset response message is used to represent that the device is not bound to a user; after the device identified by the device identifier information is displayed on the interface, the user can reconfigure the device not bound to a user based on the interface.
[0075] In an optional implementation, when at least one Bluetooth broadcast message is received, the Bluetooth broadcast message can also be parsed to obtain the device identifier information carried by the Bluetooth broadcast message, so that the query request carrying the device identifier information can be subsequently sent to the target server to instruct the target server to query whether the device identified by the device identifier information belongs to a preset list based on the device identifier information.
[0076] As can be seen, the embodiment of the present disclosure can check the devices in the user-bound state, and display the devices determined to be truly not bound to a user on the interface after being checked, so as to facilitate the user to rebind the devices after being unbound, thereby improving the user experience.
[0077] Based on the above method embodiment, the present disclosure also provides a flowchart of device network configuration, specifically taking a client, a target device, a target gateway, and a target server as examples, as shown in Figure 2 FIG. 1 is a flowchart of device network configuration provided by an embodiment of the present disclosure.
[0078] First, the network configuration personnel opens the Bluetooth self-discovery function of the client, scans the Bluetooth broadcast messages sent by devices within a certain range, and when at least one Bluetooth broadcast message is received, if it is determined that the device is in an unbound user state (i.e., when a Bluetooth broadcast message carrying a first binding state identifier is received), it is directly displayed on the interface, and if it is determined that the device is in an unbound user state (i.e., when a Bluetooth broadcast message carrying a second binding state identifier is received), a query request carrying device identifier information is sent to the target server for checking whether the device has been bound to a user.
[0079] When the target server receives the query request carrying the device identifier information, it queries whether the device identified by the device identifier information belongs to a preset list, and if it is determined that the device identified by the device identifier information belongs to the preset list, it returns a preset response message to the query request to the client.
[0080] When the client receives the preset response message to the query request, it displays the device identified by the device identifier information on the interface.
[0081] When the client receives a selection operation on the target device on the interface, it establishes a Bluetooth connection with the target device, sends a binding request to the target device based on the Bluetooth connection, and when the target device receives the binding request, it clears the local user data and enters a network configuration state.
[0082] At this time, the client also sends a network configuration instruction to the target gateway, and the target gateway, when receiving the network configuration instruction, enters a binding listening state and binds with the target device in the network configuration state, and requests the target server to establish a binding relationship between the target device and the current account.
[0083] After the target server establishes the binding relationship between the target device and the current account, it sends a successful binding message to the client, and when the client receives the successful binding message from the target server, it means that the target device successfully completes the network configuration operation.
[0084] As can be seen, the embodiment of the present disclosure can check the devices in the bound user state, and display the devices that are determined to be truly unbound users after checking and the devices in the unbound user state on the interface, facilitating the user to perform network configuration operations on the unbound user devices based on the interface, or to re-perform network configuration operations on the devices after unbinding, quickly and conveniently completing the network configuration operation of the target device, thereby improving the user experience.
[0085] Based on the above method embodiments, the disclosure further provides a system diagram of device network configuration, wherein the system comprises a client, a target device, a target gateway, and a target server, as shown in Figure 3 FIG. 1 is a schematic diagram of a device network configuration system provided by an embodiment of the disclosure.
[0086] When the client receives at least one Bluetooth broadcast message, the client sends a query request carrying device identification information to the target server, for querying whether the device identification information of the target device corresponding to the Bluetooth broadcast message belongs to the devices in the preset list. If it is determined that the target device identified by the device identification information belongs to the devices in the preset list, the client establishes a Bluetooth connection with the target device, and controls the target device to bind with the target gateway based on the Bluetooth connection.
[0087] The target server establishes a binding relationship between the target device and the current account based on the target gateway, thereby completing the binding of the target device.
[0088] As can be seen, the device network configuration system provided by the embodiment of the disclosure displays the devices in the unbound user state on the interface through the Bluetooth self-discovery function, so that the user can quickly and conveniently complete the network configuration operation of the target device based on the devices displayed on the interface.
[0089] Based on the above method embodiments, the disclosure further provides a device network configuration apparatus, referring to Figure 4 FIG. 2 is a structural schematic diagram of a device network configuration apparatus provided by an embodiment of the disclosure, and the apparatus comprises:
[0090] The first display module 401 is configured to receive at least one Bluetooth broadcast message, and display the device corresponding to the Bluetooth broadcast message carrying the first binding state identifier on the interface; wherein the first binding state identifier is used to identify that the corresponding device is in an unbound user state.
[0091] The establishment module 402 is configured to establish a Bluetooth connection with the target device in response to a selection operation on the target device on the interface.
[0092] The control module 403 is configured to control the target device to bind with the target gateway based on the Bluetooth connection.
[0093] In an optional implementation, the control module comprises:
[0094] The first sending sub-module is configured to send a binding request to the target device based on the Bluetooth connection; wherein the binding request is used to instruct the target device to enter a network configuration state.
[0095] The second sending sub-module is configured to send a network configuration instruction to the target gateway, wherein the network configuration instruction is used to instruct the target gateway to enter a binding listening state and bind with the target device in the network configuration state which is listened to.
[0096] In an optional implementation, the apparatus further includes:
[0097] The checking module is configured to check whether the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier has been bound to a user, wherein the second binding state identifier is used to identify that the corresponding device is in the bound-to-user state.
[0098] The second display module is configured to display the device on the interface if it is determined through the checking that the device is not bound to a user.
[0099] In an optional implementation, the checking module includes:
[0100] The third sending sub-module is configured to send a query request carrying device identifier information to a target server, wherein the device identifier information is used to identify the device corresponding to the Bluetooth broadcast message carrying the second binding state identifier, and the query request is used to instruct the target server to query whether the device identified by the device identifier information belongs to a preset list, and the preset list is used to store device identifiers of devices bound to users.
[0101] Correspondingly, the second display module is specifically configured to:
[0102] If a preset response message to the query request is received, the device identified by the device identifier information is displayed on the interface, wherein the preset response message is used to represent that the device is not bound to a user.
[0103] In an optional implementation, the apparatus further includes:
[0104] The parsing module is configured to parse the Bluetooth broadcast message to obtain device identifier information carried by the Bluetooth broadcast message.
[0105] In an optional implementation, the device identifier information includes a media access control (MAC) address of the device and / or a device identity (ID) number.
[0106] In an optional implementation, the apparatus further includes:
[0107] The receiving module is configured to receive a successful binding message from the target server, wherein the successful binding message is sent by the target server after establishing a binding relationship between the target device and a current account.
[0108] In an alternative implementation, the device sending the Bluetooth broadcast message is provided with a ZigBee communication module.
[0109] In the device network configuration method provided by the embodiments of the present disclosure, at least one Bluetooth broadcast message is received, and a device corresponding to a Bluetooth broadcast message carrying a first binding state identifier is displayed on an interface, where the first binding state identifier is used to identify that the corresponding device is in an unbound user state; in response to a selection operation on a target device on the interface, a Bluetooth connection is established with the target device; and based on the Bluetooth connection, the target device is controlled to be bound with a target gateway. It can be seen that, by using the Bluetooth self-discovery function, the device in the unbound user state is displayed on the interface, so that the user can quickly and conveniently complete the network configuration operation of the target device based on the device displayed on the interface.
[0110] In addition to the method and device described above, the embodiments of the present disclosure further provide a computer-readable storage medium, which stores instructions, and when the instructions are run on a terminal device, the terminal device implements the device network configuration method provided by the embodiments of the present disclosure.
[0111] The embodiments of the present disclosure further provide a computer program product, which includes computer programs / instructions, and when the computer programs / instructions are executed by a processor, the device network configuration method provided by the embodiments of the present disclosure is implemented.
[0112] In addition, the embodiments of the present disclosure further provide a device network configuration device, as shown in Figure 5 may include:
[0113] a processor 501, a memory 502, an input device 503 and an output device 504. The number of processors 501 in the device network configuration device can be one or more, Figure 5 In some embodiments of the present disclosure, the processor 501, the memory 502, the input device 503 and the output device 504 can be connected through a bus or other means, where, Figure 5 In some embodiments of the present disclosure, the processor 501, the memory 502, the input device 503 and the output device 504 can be connected through a bus or other means, where,
[0114] The memory 502 can be used to store software programs and modules, and the processor 501 executes various function applications and data processing of the device commissioning device by running the software programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function, and the like. In addition, the memory 502 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. The input device 503 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the device commissioning device.
[0115] In particular in the present embodiment, the processor 501 loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and runs the application programs stored in the memory 502 by the processor 501, thereby realizing the various functions of the device commissioning device described above.
[0116] It should be noted that in this paper, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0117] The above is only a specific embodiment of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for equipment network distribution, characterized in that, The method includes: Receive at least one Bluetooth broadcast message and display the device corresponding to the Bluetooth broadcast message carrying the first binding status identifier on the interface; wherein, the first binding status identifier is used to indicate that the corresponding device is in an unbound user state; Verify whether the device corresponding to the Bluetooth broadcast message carrying the second binding status identifier has been bound to a user; wherein, the second binding status identifier is used to identify that the corresponding device is in a bound user state; If it is determined through verification that the device is not bound to a user, then the device will be displayed on the interface; In response to a selection operation for a target device on the interface, a Bluetooth connection is established with the target device; Based on the Bluetooth connection, control the target device to bind with the target gateway; The step of controlling the target device to bind with the target gateway based on the Bluetooth connection includes: Based on the Bluetooth connection, a binding request is sent to the target device; wherein, the binding request is used to instruct the target device to enter the network configuration state; Send a network configuration command to the target gateway; wherein the network configuration command is used to instruct the target gateway to enter a binding listening state and bind to the target device that is listening to the network configuration state.
2. The method according to claim 1, characterized in that, The verification of whether the device corresponding to the Bluetooth broadcast message carrying the second binding status identifier has been bound to a user includes: Send a query request carrying device identification information to the target server; wherein, the device identification information is used to identify the device corresponding to the Bluetooth broadcast message carrying the second binding status identifier, and the query request is used to instruct the target server to query whether the device identified by the device identification information belongs to a preset list, and the preset list is used to store device identifiers of bound users; Accordingly, if it is determined through verification that the device is not bound to a user, then displaying the device on the interface includes: If a preset response message is received in response to the query request, the device identified by the device identification information is displayed on the interface; wherein, the preset response message is used to indicate that the device is not bound to a user.
3. The method according to claim 2, characterized in that, Before sending the query request carrying device identification information to the target server, the process also includes: The Bluetooth broadcast message is parsed to obtain the device identification information carried in the Bluetooth broadcast message.
4. The method according to claim 2 or 3, characterized in that, The device identification information includes the device's Media Access Control (MAC) address and / or device identity ID number.
5. The method according to claim 1, characterized in that, After sending the network configuration command to the target gateway, it also includes: Receive a successful binding message from the target server; wherein the successful binding message is sent by the target server after establishing the binding relationship between the target device and the current account.
6. The method according to claim 1, characterized in that, The device sending the Bluetooth broadcast message is equipped with a ZigBee communication module.
7. A device for power distribution, characterized in that, The device includes: The first display module is used to receive at least one Bluetooth broadcast message and display the device corresponding to the Bluetooth broadcast message carrying the first binding status identifier on the interface; wherein, the first binding status identifier is used to indicate that the corresponding device is in an unbound user state; The verification module is used to verify whether the device corresponding to the Bluetooth broadcast message carrying the second binding status identifier has been bound to a user; wherein, the second binding status identifier is used to indicate that the corresponding device is in a bound user state; The second display module is used to display the device on the interface if it is determined through verification that the device is not bound to a user. A module is established to establish a Bluetooth connection with the target device in response to a selection operation on the interface. The control module is used to control the target device to bind with the target gateway based on the Bluetooth connection; The control module includes: The first sending submodule is used to send a binding request to the target device based on the Bluetooth connection; wherein the binding request is used to instruct the target device to enter the network configuration state; The second sending submodule is used to send a network configuration instruction to the target gateway; wherein the network configuration instruction is used to instruct the target gateway to enter a binding listening state and bind to the target device that is listening to the network configuration state.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the method as described in any one of claims 1-6.
9. A network distribution device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1-6.
Citation Information
Patent Citations
Connecting method of Bluetooth device without communication capability and communication device
CN108810865A
Method, device and system for carrying out network configuration on device
CN111586590A