Configuration method of wireless communication equipment, cloud, gateway and medium
By receiving and analyzing the broadcast information of wireless communication devices, the association between the gateway and the device is dynamically adjusted, which solves the problem of fixed and sequential dependence between the gateway and the device, and improves the maintenance efficiency of the Internet of Things.
Patent Information
- Application Number
- CN202411092784.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the association between the gateway and the wireless communication device is fixed and cannot be easily adjusted, which affects the efficiency of IoT maintenance and needs to be bound in a specific order, making maintenance difficult.
By receiving the broadcast information of wireless communication devices collected by the gateway, the device identification and signal strength are obtained, the reference gateway is determined based on the device group identification, and the device identification is recorded in the controllable information list of the target gateway, and the connection relationship between the gateway and the device is dynamically adjusted. Use signal strength and device group identification to quickly determine connectable devices.
It realizes dynamic adjustment of gateways and wireless communication devices, solves the problem of fixed association relationships, improves maintenance efficiency, eliminates the need for association in a specific order, and simplifies the connection process between gateways and devices.
Smart Images

Figure CN118741645A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart devices. Specifically, the present application relates to a configuration method, a cloud, a gateway and a medium of a wireless communication device. Background Art
[0002] With the development of Internet of Things technology, more and more wireless communication devices are connected to the network through gateways. However, in related technologies, it is necessary to first establish a gateway and bind the network, and then bind and configure the wireless communication devices. Therefore, it is necessary to establish a connectable relationship between the gateway and the wireless communication device in a specific order of operations. This results in the inability to easily adjust the association relationship between the gateway and the wireless communication device, affecting the efficiency of Internet of Things maintenance. Summary of the invention
[0003] The embodiments of the present application provide a configuration method, cloud, gateway and medium for a wireless communication device, which are used to solve the technical problem that the relationship between the gateway and the wireless communication device is fixed and the gateway and the wireless communication device need to be bound in a specific order.
[0004] According to a first aspect of an embodiment of the present application, a configuration method for a wireless communication device is provided, which is applied to a cloud, and the method includes: receiving broadcast information of each wireless communication device collected by each gateway; the broadcast information includes a device identification of the wireless communication device, a signal strength, and a device group identification of a device group bound to the wireless communication device; Obtain the device group identifier of the device group bound to each gateway, and determine the reference gateway corresponding to each wireless communication device in combination with the device group identifier of the device group bound to each wireless communication device, wherein each wireless communication device is bound to the same device group identifier as the corresponding reference gateway; For each wireless communication device, based on the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the wireless communication device, and the device identification of the wireless communication device is recorded in the controllable information list of the target gateway. The controllable information list of each gateway is used to record the device identification of the wireless communication device that uses the gateway as the target gateway; Each gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
[0005] In one possible implementation, broadcast information of each wireless communication device collected by each gateway is periodically received; for each cycle, based on the signal strength of the wireless communication device in the current cycle collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the current cycle of the wireless communication device.
[0006] In another possible implementation, if the device identifier of the wireless communication device is the first device identifier to be recorded in the current cycle of the target gateway, a controllable information list of the current cycle of the target gateway is created, and the device identifier of the wireless communication device is recorded in the controllable information list of the current cycle; If the device identification is not the first device identification to be recorded in the current cycle of the target gateway, the device identification is recorded in the controllable information list of the current cycle of the target gateway.
[0007] In yet another possible implementation, after recording the device identifier of the wireless communication device in the controllable information list of the target gateway, for the first cycle, the controllable information list of the first cycle is sent to the target gateway, so that the target gateway connects to the wireless communication device according to the controllable information list of the first cycle; For a non-first cycle, if it is determined that the device identifications of all wireless communication devices corresponding to the target gateway have been recorded in the controllable information list of the current cycle corresponding to the target gateway, then the controllable information list of the previous cycle of the target gateway is obtained; If the controllable information list of the current period corresponding to the target gateway is inconsistent with the controllable information list of the previous period, the controllable information list of the current period corresponding to the target gateway is sent.
[0008] In yet another possible implementation, for each target gateway, acquiring attribute information of the target gateway; The communication link between the target gateway and the cloud is determined according to the attribute information, and the controllable information list of the current cycle is sent to the target gateway through the communication link.
[0009] According to a second aspect of an embodiment of the present application, a configuration method for a wireless communication device is provided, which is applied to a gateway, and the method includes: Scan each wireless communication device to obtain broadcast information of each wireless communication device; the broadcast information includes: device identification of the wireless communication device, signal strength and device group identification of the device group bound to the wireless communication device; Send broadcast information of each wireless communication device to the cloud, so that the cloud obtains the controllable information list of the current period corresponding to the gateway according to the device group identifier of the device group bound to the gateway and the broadcast information; The gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
[0010] In a possible implementation, each wireless communication device is scanned periodically to obtain broadcast information of each wireless communication device; and the broadcast information of each wireless communication device is sent to the cloud periodically.
[0011] In yet another possible implementation, a controllable information list of a current period sent by a cloud is received; If an interaction request of a wireless communication device is scanned, obtaining a device identification of the wireless communication device; If the device identification is stored in the controllable information list of the current cycle, a connection with the wireless communication device is established.
[0012] In yet another possible implementation, the broadcast information further includes a first flag, and the first flag is used to indicate that the wireless communication device needs to perform information interaction; Scan each wireless communication device periodically to obtain broadcast information, and if the broadcast information includes the first mark, obtain the device identification of the wireless communication device.
[0013] According to a third aspect of an embodiment of the present application, a cloud is provided, the device comprising: A receiving module, used to receive broadcast information of each wireless communication device collected by each gateway; the broadcast information includes a device identification of the wireless communication device, a signal strength and a device group identification of a device group bound to the wireless communication device; An acquisition module is used to acquire the device group identifier of the device group bound to each gateway, and determine the reference gateway corresponding to each wireless communication device in combination with the device group identifier of the device group bound to each wireless communication device, wherein each wireless communication device is bound to the same device group identifier as the corresponding reference gateway; A recording module is used to, for each wireless communication device, use the reference gateway corresponding to the maximum signal strength as the target gateway corresponding to the wireless communication device according to the signal strength of the wireless communication device collected by each reference gateway, and record the device identification of the wireless communication device in the controllable information list of the target gateway. The controllable information list of each gateway is used to record the device identification of the wireless communication device that uses the gateway as the target gateway; Each gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
[0014] According to a fourth aspect of an embodiment of the present application, a gateway is provided, the device comprising: A scanning module is used to scan each wireless communication device and obtain broadcast information of each wireless communication device; the broadcast information includes: a device identification of the wireless communication device, a signal strength and a device group identification of a device group bound to the wireless communication device; The sending module is used to send the broadcast information of each wireless communication device to the cloud, so that the cloud can obtain the controllable information list of the current period corresponding to the gateway according to the device group identifier of the device group bound to the gateway and the broadcast information; The gateway is used to connect to the wireless communication devices recorded in the corresponding controllable information list.
[0015] According to a fifth aspect of an embodiment of the present application, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory, and when the processor executes the program, the steps of the method provided in the first aspect are implemented.
[0016] According to a sixth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in the first aspect are implemented.
[0017] According to the seventh aspect of the embodiment of the present application, a computer program product is provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. When a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, so that the computer device executes the steps of implementing the method provided in the first aspect.
[0018] The beneficial effects of the technical solution provided by the embodiment of the present application are: The configuration method of wireless communication devices applied to the cloud provided in the embodiment of the present application receives broadcast information of each wireless communication device uploaded by each gateway, obtains the device group identifier of the device group bound to each gateway, and determines the reference gateway consistent with the device identifier of the device group bound to each wireless communication device according to the device group identifier of the device group bound to each wireless communication device. Since the broadcast information of the same wireless communication device may be reported by multiple gateways, for each wireless communication device, according to the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the wireless communication device, that is, the gateway with the largest signal strength is selected as the target gateway to which the wireless communication device can be connected, and the device identifier of the wireless communication device is recorded in the controllable information list of the target gateway, so that the device identifier of the wireless communication device currently connectable to each gateway can be obtained, so that the gateway can dynamically adjust the connectable wireless communication devices of each gateway according to the actual situation in time according to the wireless communication device recorded in the controllable information list corresponding to the connection through the reported broadcast information, thereby solving the problem of fixed connection relationship between the gateway and the process device, and the signal strength and the device group identifier of the bound device group can help the gateway quickly determine the nearby connectable devices, thereby solving the problem of needing to associate the gateway with the wireless communication device in a specific order. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0020] Figure 1A schematic diagram of a system architecture for implementing a configuration method for a wireless communication device provided in an embodiment of the present application; Figure 2 A flowchart of a configuration method for a wireless communication device applied to the cloud provided in an embodiment of the present application; Figure 3 A flowchart of a method for configuring a wireless communication device applied to a gateway provided in an embodiment of the present application; Figure 4 A schematic diagram of an interactive process of a configuration method for a wireless communication device provided in an embodiment of the present application; Figure 5 A schematic diagram of a cloud structure provided in an embodiment of the present application; Figure 6 A schematic diagram of the structure of a gateway provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0022] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0023] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0024] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0025] Figure 1 A schematic diagram of a system architecture provided for implementation of an embodiment of the present application, wherein the system architecture includes: a wireless communication device 120, a cloud 140 and a gateway 160.
[0026] The wireless communication device 120 is used to broadcast broadcast information.
[0027] The gateway 160 is used to scan the broadcast information of the wireless communication device and report the broadcast information to the cloud 140 .
[0028] The cloud 140 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, the cloud 140 includes a processor 144 and a memory 142, and the memory 142 includes a display module 1421, a control module 1422, and a receiving module 1423. The cloud 140 is used to provide background services for the application program of the method for connecting a wireless communication device.
[0029] Optionally, the device types of the wireless communication device include: at least one of a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer and a desktop computer.
[0030] Those skilled in the art will appreciate that the number of the wireless communication devices may be more or less. For example, the number of the wireless communication devices may be only one, or the number of the wireless communication devices may be dozens or hundreds, or more. The embodiment of the present application does not limit the number and type of wireless communication devices.
[0031] The present application provides a configuration method for a wireless communication device, which is applied to the cloud. Figure 2 As shown, the method includes: S101, receiving broadcast information of each wireless communication device collected by each gateway.
[0032] The broadcast information in the embodiment of the present application may include at least one of a device identification of the wireless communication device, a signal strength, and a device group identification of a device group to which the wireless communication device is bound.
[0033] In the embodiments of the present application, wireless communication devices refer to devices that can transmit and communicate data through wireless technology. These devices use radio waves or other wireless technologies to exchange information without being connected through a physical interface. Wireless communication devices can be low-power near-field communication devices such as Bluetooth, Zigbee, etc., such as smart door locks, smart lights, and smart clothes drying poles.
[0034] In an embodiment of the present application, the device identification in the broadcast information may refer to the Mac address of the wireless communication device, which is a unique identifier of the wireless communication device and is used to identify the wireless communication device in a Bluetooth network.
[0035] In an embodiment of the present application, the signal strength in the broadcast information refers to the signal strength when the gateway receives the wireless communication device. The signal strength is used to evaluate the connection quality between devices. The signal strength of the wireless communication device can be used to help the cloud select the best gateway for the wireless communication device to provide the best wireless connection.
[0036] In the embodiment of the present application, the device group identifier of the device group to which the wireless communication device is bound is a classification of different wireless communication devices. Wireless communication devices belonging to the same device group refer to the same type of wireless communication devices. For example, they can be divided according to the manufacturer of the wireless communication device, so the wireless communication devices of the same manufacturer belong to the same device group and have the same device group identifier; the wireless communication devices can also be divided according to the user of the wireless communication device, so the wireless communication devices of the same user belong to the same device group; the wireless communication devices can also be divided according to the purchaser of the wireless communication device, so the wireless communication devices of the same purchaser belong to the same device group. In the embodiment of the present application, if the wireless communication device is within the broadcast information scanning range of the gateway, the gateway can scan the broadcast information of the wireless communication device. Therefore, as long as the gateway and the wireless communication device are within the broadcast information scanning range, different gateways can receive the broadcast information broadcast by the same wireless communication device.
[0037] In an embodiment of the present application, the cloud receives broadcast information of each wireless communication device collected by each gateway. Since the broadcast information of the same wireless communication device will be scanned by different gateways and different gateways are located at different locations, the signal strengths in the same broadcast information scanned by different gateways are different. By receiving the broadcast information of the wireless communication device uploaded by the gateway, the cloud can understand the category of the wireless communication device and the signal strength between the wireless communication device and the scanned gateway.
[0038] S102, obtaining the device group identifier of the device group bound to each gateway, and determining the reference gateway corresponding to each wireless communication device in combination with the device group identifier of the device group bound to each wireless communication device, wherein each wireless communication device is bound to the same device group identifier as the corresponding reference gateway.
[0039] In an embodiment of the present application, the device group identifier of the device group bound to each gateway is first determined, that is, the device group to which each gateway belongs is determined, and based on the device group identifier of each gateway and the device group identifier of each wireless communication device, a gateway that is consistent with the device group identifier of the wireless communication device is determined, that is, a reference gateway corresponding to each wireless communication device is determined.
[0040] In an example, gateway A, gateway B and gateway C all uploaded broadcast information of wireless communication devices. The device group identifiers of the device groups bound to gateway A, gateway B and gateway C are S1, S2 and S1 respectively. By parsing the broadcast information, the device group identifier of the device group bound to the wireless communication device is S1. Then, it can be determined that the reference gateways corresponding to the wireless communication devices are gateway A and gateway C.
[0041] In another example, the device group identifier of the bound device group can be the company identifier of the company, the company identifier bound to gateway A is company A, the uploaded broadcast information is the broadcast information of the wireless communication device X1 and the wireless communication device X2, and the company identifier of the company bound to X1 is A, and the company identifier of the company bound to X2 is B. Through the above-mentioned company identifier bound to the gateway and the company identifier bound to the wireless communication device, it is determined whether each wireless communication device and the gateway are from the same company. When the wireless communication device and the gateway are from the same company, that is, the company identifiers of the bound companies are consistent, it is considered that the wireless communication device X1 can connect to the gateway A, otherwise, the wireless communication device X2 cannot connect to the gateway A.
[0042] In the above solution, the specific company logo may be the logo of the company that manufactures the wireless communication device, the logo of the company that uses the wireless communication device, or the logo of the company that purchases the wireless communication device.
[0043] In the above scheme, the company logo of the company bound to the gateway and the company logo of the company bound to the wireless communication device in advance can help the cloud to quickly screen the connectable wireless communication devices of the same company to which the gateway belongs, thereby ensuring that the reference gateway of the wireless communication device can be accurately identified on the basis of improving efficiency.
[0044] S103, for each wireless communication device, based on the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the wireless communication device, and the device identification of the wireless communication device is recorded in the controllable information list of the target gateway.
[0045] In the embodiment of the present application, the controllable information list of each gateway is used to record the device identification of the wireless communication device that uses the gateway as the target gateway; each gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
[0046] In an embodiment of the present application, since there may be multiple corresponding reference gateways for the same wireless communication device, the gateway with the strongest signal strength with the wireless communication device is determined as the target gateway based on the signal strength in the broadcast information uploaded by each reference gateway, so that the target gateway can establish a Bluetooth connection with the wireless communication device when the wireless communication device needs to interact with information.
[0047] In an embodiment of the present application, after the target gateway of each wireless communication device is determined, the device identification of the wireless communication device is recorded in the controllable information list of the target gateway, so that all wireless communication devices that each gateway can currently connect to can be determined based on the controllable information list that records the device identification.
[0048] In an embodiment of the present application, after determining the wireless communication devices that each gateway can connect to through the controllable information list of each gateway, each gateway can connect to the wireless communication devices recorded in the controllable information list, that is, the gateway can only connect to the wireless communication device according to the controllable information list, and the wireless communication device that is not recorded in the controllable information list cannot be connected to the corresponding gateway.
[0049] In an embodiment of the present application, broadcast information of each wireless communication device collected by each gateway is periodically received; for each cycle, based on the signal strength of the current cycle of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the current cycle of the wireless communication device.
[0050] In an embodiment of the present application, the gateway periodically scans the wireless communication devices to obtain the broadcast information of the wireless communication devices and upload it to the cloud. Correspondingly, the cloud periodically receives the broadcast information of each wireless communication device uploaded by each gateway, and each period will use the reference gateway corresponding to the maximum signal strength as the target gateway of the wireless communication device based on the signal strength of the current period of the wireless communication device collected by the reference gateway, that is, re-determine the target gateway of the wireless communication device, so that the cloud can determine the wireless communication devices that each gateway can currently connect to based on the latest broadcast information.
[0051] In an embodiment of the present application, if the device identifier of the wireless communication device is the first device identifier to be recorded in the current cycle of the target gateway, a controllable information list of the current cycle of the target gateway is created, and the device identifier of the wireless communication device is recorded in the controllable information list of the current cycle; if the device identifier is not the first device identifier to be recorded in the current cycle of the target gateway, the device identifier is recorded in the controllable information list of the current cycle of the target gateway.
[0052] In an embodiment of the present application, new broadcast information is received in each cycle, and the Bluetooth devices that each gateway can connect to are re-determined based on the new broadcast information. Therefore, before determining the target gateway of each wireless communication device and recording the device identification of the wireless communication device, it is necessary to determine whether to create a controllable information list for the current cycle. If the device identification to be recorded is the first device identification recorded in the current cycle of the target gateway, then it is necessary to create a controllable information list for the current cycle for the above-mentioned target gateway to record the device identification of the wireless communication device that the target gateway can currently connect to; if the device identification is not the first device identification to be recorded in the current cycle of the target gateway, then the device identification is directly recorded in the controllable information list of the current cycle of the target gateway.
[0053] By recording the wireless communication devices corresponding to each target gateway in each cycle, when it is determined that it is the first device identifier with a record of the target gateway, a controllable information list of the current cycle is generated, so that the device identifier in the controllable information list of the current cycle of the target gateway can be compared with the device identifier in the controllable information list of the previous cycle to determine whether the device that the gateway can connect to has changed.
[0054] In an embodiment of the present application, for the first cycle, a controllable information list of the first cycle is sent to the target gateway, so that the target gateway connects to the wireless communication device according to the controllable information list of the first cycle.
[0055] In an embodiment of the present application, when the cloud receives the broadcast information uploaded by each gateway in the first cycle and obtains the controllable information list of the first cycle of each gateway based on the broadcast information, the controllable information list of the first cycle is directly sent to the target gateway, so that the target gateway is connected to the wireless communication device according to the corresponding controllable information list of the first cycle.
[0056] In an embodiment of the present application, for a non-first cycle, if it is determined that the device identification of all wireless communication devices corresponding to the target gateway has been recorded in the controllable information list of the current cycle corresponding to the target gateway, the controllable information list of the previous cycle of the target gateway is obtained; if the controllable information list of the current cycle corresponding to the target gateway is inconsistent with the controllable information list of the previous cycle, the corresponding controllable information list of the current cycle is sent to the target gateway.
[0057] In an embodiment of the present application, if it is not the first cycle to receive the broadcast information uploaded by each gateway, then after the device identification of all wireless communication devices has been recorded in the controllable information list of the current cycle of the corresponding target gateway, the controllable information list of the previous cycle of the target gateway is obtained, and the controllable information list of the previous cycle is compared with the controllable information list of the current cycle. The controllable information list of the current cycle is inconsistent with the controllable information list of the previous cycle, indicating that the wireless communication device that the current target gateway can connect to has changed, and the target gateway needs to connect to the wireless communication device according to the controllable information list of the current cycle. Therefore, the corresponding controllable information list of the current cycle is sent to the target gateway.
[0058] In an embodiment of the present application, if the controllable information list of the current cycle is consistent with the controllable information list of the previous cycle, it means that the wireless communication device that the current target gateway can connect to has not changed. The target gateway can continue to connect to the wireless communication device according to the controllable information list of the previous cycle without sending the controllable information list of the current cycle.
[0059] Since the wireless communication devices that the target gateway can connect to may change at any time, a controllable information list corresponding to the gateway is created in each cycle, and the device identifications of all wireless communication devices corresponding to the gateway are recorded in the controllable information list of the current cycle. By comparing whether the controllable information list of the current cycle is consistent with the controllable information list of the previous cycle, it is ensured that when the wireless communication devices that the gateway can connect to change, the gateway can be connected in time according to the controllable information list of the current cycle. That is, the method provided in the embodiment of the present application can adjust the connectable wireless communication devices of the gateway according to actual conditions, and do not take any action when they are consistent, so that the gateway continues to use the controllable information list of the previous cycle for connection, thereby avoiding waste of cloud and gateway processing resources.
[0060] In an embodiment of the present application, for each target gateway, the attribute information of the target gateway is obtained; the communication link between the target gateway and the cloud is determined based on the attribute information, and a controllable information list of the current cycle is sent to the target gateway through the communication link.
[0061] In an embodiment of the present application, before sending the controllable information list of the current cycle to the target gateway, the communication link between the target gateway and the cloud is determined based on the attribute information of the target gateway, and then the controllable information list of the current cycle is sent to the target gateway through the corresponding communication link.
[0062] In the embodiment of the present application, the most appropriate communication link is selected according to the attribute information, device capabilities, application scenario requirements and security requirements of the gateway, so as to achieve safe and efficient data exchange between the gateway and the cloud.
[0063] Transmitting the controllable information list through the communication link corresponding to the attribute information can reduce the amount of data transmission and improve the data transmission efficiency.
[0064] The configuration method of wireless communication devices applied to the cloud provided in the embodiment of the present application receives broadcast information of each wireless communication device uploaded by each gateway, obtains the device group identifier of the device group bound to each gateway, and determines the reference gateway consistent with the device identifier of the device group bound to each wireless communication device according to the device group identifier of the device group bound to each wireless communication device. Since the broadcast information of the same wireless communication device may be reported by multiple gateways, for each wireless communication device, according to the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the wireless communication device, that is, the gateway with the largest signal strength is selected as the target gateway to which the wireless communication device can be connected, and the device identifier of the wireless communication device is recorded in the controllable information list of the target gateway, so that the device identifier of the wireless communication device currently connectable to each gateway can be obtained, so that the gateway can dynamically adjust the connectable wireless communication devices of each gateway according to the actual situation in time according to the wireless communication device recorded in the controllable information list corresponding to the connection through the reported broadcast information, thereby solving the problem of fixed connection relationship between the gateway and the process device, and the signal strength and the device group identifier of the bound device group can help the gateway quickly determine the nearby connectable devices, thereby solving the problem of needing to associate the gateway with the wireless communication device in a specific order.
[0065] The present application provides a configuration method for a wireless communication device, which is applied to a gateway, such as Figure 3 As shown, the method includes: S201, scanning each wireless communication device to obtain broadcast information of each wireless communication device.
[0066] In the embodiment of the present application, the broadcast information includes: a device identification of the wireless communication device, a signal strength, and a device group identification of a device group to which the wireless communication device is bound.
[0067] In an embodiment of the present application, the gateway scans each wireless communication device and obtains the broadcast information broadcast by the wireless communication device. The device identifier in the broadcast information is used to identify the wireless communication device in the Bluetooth network. The device identifier of the wireless communication device can be a Mac address. The signal strength in the broadcast information can be used to evaluate the connection quality or distance between the wireless communication device and the gateway. The device group is a classification of different wireless communication devices. Wireless communication devices belonging to the same device group refer to wireless communication devices of the same category.
[0068] In an embodiment of the present application, the gateway publishes the broadcast information of each wireless communication device in MQTT format to a specific MQTT topic subscribed by the gateway by connecting to an MQTT (Message Queuing Telemetry Transport) agent, so that the cloud that has subscribed to the above-mentioned specific MQTT topic can receive the broadcast information of each wireless communication device.
[0069] S202, sending broadcast information of each wireless communication device to the cloud, so that the cloud obtains a controllable information list of the current period corresponding to the gateway according to the device group identifier of the device group bound to the gateway and the broadcast information; The gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
[0070] In an embodiment of the present application, after receiving the broadcast information of each wireless communication device, the gateway sends the broadcast information of each wireless communication device to the cloud, so that the cloud determines a reference gateway consistent with the device group identifier of the wireless communication device from each gateway based on the device group identifier of the device group bound to each gateway and the device group identifier of the device group bound to each wireless communication device. Based on the signal strength of the wireless communication device collected by each reference gateway, the reference gateway with the largest signal strength is used as the target gateway corresponding to the wireless communication device, and the device identifier of the wireless communication device is recorded in the controllable information list of the target gateway, so that the gateway can connect to the wireless communication device recorded in the controllable information list according to the controllable information list.
[0071] In an embodiment of the present application, each wireless communication device is scanned periodically to obtain broadcast information of each wireless communication device; and the broadcast information of each wireless communication device is sent to the cloud periodically.
[0072] In an embodiment of the present application, the gateway periodically scans each wireless communication device, that is, it will obtain new broadcast information of each wireless communication device in each cycle, and then periodically send the obtained wireless communication devices to the cloud, so that the cloud can determine whether the wireless communication devices that each gateway can connect to have changed based on the latest broadcast information of each wireless communication device.
[0073] In an embodiment of the present application, a list of controllable information of the current period sent by the cloud is received; if an interaction request of a wireless communication device is scanned, the device identification of the wireless communication device is obtained; if the device identification is stored in the list of controllable information of the current period, a connection with the wireless communication device is established.
[0074] In an embodiment of the present application, after the gateway receives the controllable information list of the current period sent by the cloud, the current controllable information list is cached. If a controllable information list has been cached, the cached controllable information list is cleared and the controllable information list of the current period is cached.
[0075] In an embodiment of the present application, if the gateway scans an interaction request broadcast by a wireless communication device, it means that the wireless communication device currently needs to connect to the gateway to exchange information. Therefore, the gateway determines the device identification of the wireless communication device. If the above device identification is stored in the cached controllable information list of the current period, it means that the gateway can establish a connection with the above wireless communication device. Therefore, the gateway establishes a connection with the wireless communication device; if the gateway determines that the above wireless communication device is not in the stored controllable information list, it means that the gateway cannot establish a connection with the above wireless communication device. Therefore, a response message indicating that the connection cannot be established is returned to the wireless communication device.
[0076] In an embodiment of the present application, the broadcast information also includes a first flag, which is used to indicate that the wireless communication device needs to interact with information; each wireless communication device is periodically scanned to obtain the broadcast information, and if the broadcast information includes the first flag, the device identification of the wireless communication device is obtained.
[0077] In an embodiment of the present application, the wireless communication device can carry a first flag in the broadcast information to indicate that the wireless communication device currently needs to interact with information. Therefore, the gateway periodically scans the broadcast information broadcast by the wireless communication device. When the first flag is detected in the broadcast information, the wireless communication device needs to interact with information. Therefore, the device identification of the wireless communication device is obtained, and then it is determined whether a connection can be established with the above-mentioned wireless communication device based on the device identification and the cached controllable information list.
[0078] The configuration method of the wireless communication device applied to the gateway provided in the embodiment of the present application scans the broadcast information of each wireless communication device and sends the broadcast information to the cloud, so that the cloud can determine the latest connectable wireless communication device of the gateway according to the broadcast information of each wireless communication device, and connect with the wireless communication device according to the controllable information list determined by the cloud, thereby enabling the gateway to perform Bluetooth connection of the wireless communication device according to the current actual situation.
[0079] refer to Figure 4 As shown, it exemplarily shows an interactive flow chart of a connectable wireless communication device, and the specific contents are as follows: S301, the gateway periodically scans each wireless communication device to obtain broadcast information of each wireless communication device; S302, the gateway periodically sends broadcast information of each wireless communication device to the cloud; S303, the cloud receives broadcast information of wireless communication devices collected by each gateway, obtains the device group identifier of the device group bound to each gateway, and determines the reference gateway corresponding to each wireless communication device in combination with the device group identifier of the device group bound to each wireless communication device; S304. For each wireless communication device, the cloud uses the reference gateway corresponding to the maximum signal strength as the target gateway corresponding to the wireless communication device according to the signal strength of the wireless communication device collected by each reference gateway; S305. If the device identification of the wireless communication device is the first device identification to be recorded in the current cycle of the target gateway, create a controllable information list of the current cycle of the target gateway, and record the device identification of the wireless communication device in the controllable information list of the current cycle; otherwise, directly record the device identification in the controllable information list of the current cycle of the target gateway; S306. If the preset conditions are met, send the controllable information list of the current cycle to the gateway, and the preset conditions include: in the first cycle, the cloud directly sends the controllable information list of the first cycle to the target gateway; in the first cycle again, if it is determined that the device identifications of all wireless communication devices corresponding to the target gateway have been recorded in the controllable information list of the current cycle corresponding to the target gateway, then obtain the controllable information list of the previous cycle of the target gateway; if the controllable information list of the current cycle corresponding to the target gateway is inconsistent with the controllable information list of the previous cycle, then send the corresponding controllable information list of the current cycle to the target gateway; S307, the gateway caches a list of controllable information in the current cycle; S308, the gateway periodically scans each wireless communication device to obtain broadcast information of each wireless communication device, and if the broadcast information of the wireless communication device carries the first flag, obtains the device identification of the wireless communication device; S309. The gateway determines whether the device identification is stored in the cached controllable information list. If so, a connection is established with the wireless communication device. If not, a response message indicating a connection failure is returned to the wireless communication device.
[0080] Through the configuration method of the wireless communication device provided in the embodiment of the present application, the association between the wireless communication device and the gateway is automatically completed when the gateway and the wireless communication device meet the association conditions, which solves the problem in the prior art that the wireless communication device and the gateway need to be associated according to a specific process at the house construction site.
[0081] In one example, in an environment of a house construction site where a large number of smart door locks (wireless communication) need to be installed, through the solution provided by the embodiment of the present application, there is no need to wait for the network to be connected and the gateway to be set up before installing and binding the door locks. The wireless communication equipment can be installed at the construction site first, and then the set gateway can be waited for to scan the broadcast information broadcast by the smart door locks. After the cloud receives the broadcast information of each smart door lock scanned by the gateway, the cloud determines the best target gateway that can communicate with the smart door lock based on the signal strength in the broadcast information and the device group identifier of the bound device group, thereby automatically completing the association between the smart door lock and the gateway.
[0082] In the above scheme, there is no need to associate the smart door lock and the gateway according to a specific construction sequence. All parties need to complete the corresponding initial settings. That is, after meeting specific conditions, the smart door lock and the gateway can be automatically bound according to the information broadcast by the smart door lock, which solves the problem of implementation difficulties caused by different installation progress of the gateway and the smart door lock.
[0083] The present application embodiment provides a cloud, such as Figure 5 As shown, the cloud 50 may include: a receiving module 501, an acquisition module 502 and a recording module 503, wherein: The receiving module 501 is used to receive the broadcast information of each wireless communication device collected by each gateway; the broadcast information includes the device identification of the wireless communication device, the signal strength and the device group identification of the device group bound to the wireless communication device; An acquisition module 502 is used to acquire the device group identifier of the device group bound to each gateway, and determine the reference gateway corresponding to each wireless communication device in combination with the device group identifier of the device group bound to each wireless communication device, wherein each wireless communication device is bound to the same device group identifier as the corresponding reference gateway; A recording module 503 is used to, for each wireless communication device, use the reference gateway corresponding to the maximum signal strength as the target gateway corresponding to the wireless communication device according to the signal strength of the wireless communication device collected by each reference gateway, and record the device identification of the wireless communication device in the controllable information list of the target gateway. The controllable information list of each gateway is used to record the device identification of the wireless communication device that uses the gateway as the target gateway; Each gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
[0084] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0085] Furthermore, in a possible implementation, broadcast information of each wireless communication device collected by each gateway is periodically received; for each cycle, based on the signal strength of the current cycle of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the current cycle of the wireless communication device.
[0086] In another possible implementation, if the device identifier of the wireless communication device is the first device identifier to be recorded in the current cycle of the target gateway, a controllable information list of the current cycle of the target gateway is created, and the device identifier of the wireless communication device is recorded in the controllable information list of the current cycle; If the device identification is not the first device identification to be recorded in the current cycle of the target gateway, the device identification is recorded in the controllable information list of the current cycle of the target gateway.
[0087] In yet another possible implementation, after recording the device identifier of the wireless communication device in the controllable information list of the target gateway, for the first cycle, the controllable information list of the first cycle is sent to the target gateway, so that the target gateway connects to the wireless communication device according to the controllable information list of the first cycle; For a non-first cycle, if it is determined that the device identifications of all wireless communication devices corresponding to the target gateway have been recorded in the controllable information list of the current cycle corresponding to the target gateway, then the controllable information list of the previous cycle of the target gateway is obtained; If the controllable information list of the current period corresponding to the target gateway is inconsistent with the controllable information list of the previous period, the controllable information list of the current period corresponding to the target gateway is sent.
[0088] In yet another possible implementation, for each target gateway, acquiring attribute information of the target gateway; The communication link between the target gateway and the cloud is determined according to the attribute information, and the controllable information list of the current cycle is sent to the target gateway through the communication link.
[0089] The present application embodiment provides a gateway, such as Figure 6 As shown, the gateway 60 may include: a scanning module 601 and a sending module 602, wherein: The scanning module 601 is used to scan each wireless communication device and obtain the broadcast information of each wireless communication device; the broadcast information includes: the device identification of the wireless communication device, the signal strength and the device group identification of the device group bound to the wireless communication device; The sending module 602 is used to send broadcast information of each wireless communication device to the cloud, so that the cloud obtains the controllable information list of the current period corresponding to the gateway according to the device group identifier of the device group bound to the gateway and the broadcast information; The gateway is used to connect to the wireless communication devices recorded in the corresponding controllable information list.
[0090] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0091] Furthermore, in a possible implementation, each wireless communication device is scanned periodically to obtain broadcast information of each wireless communication device; and the broadcast information of each wireless communication device is sent to the cloud periodically.
[0092] In yet another possible implementation, a controllable information list of a current period sent by a cloud is received; If an interaction request of a wireless communication device is scanned, obtaining a device identification of the wireless communication device; If the device identification is stored in the controllable information list of the current cycle, a connection with the wireless communication device is established.
[0093] In yet another possible implementation, the broadcast information further includes a first flag, and the first flag is used to indicate that the wireless communication device needs to perform information interaction; Scan each wireless communication device periodically to obtain broadcast information, and if the broadcast information includes the first mark, obtain the device identification of the wireless communication device.
[0094] In an embodiment of the present application, an electronic device (computer device / equipment / system) is provided, including a memory, a processor and a computer program stored in the memory, and the processor executes the above-mentioned computer program to implement the steps of the configuration method of the wireless communication device. Compared with the related art, it can be achieved: by receiving the broadcast information of each wireless communication device uploaded by each gateway, obtaining the device group identifier of the device group bound to each gateway, and determining the reference gateway consistent with the device identifier of the device group bound to each wireless communication device according to the device group identifier of the device group bound to each wireless communication device. Since the broadcast information of the same wireless communication device may be reported by multiple gateways, for each wireless communication device, according to the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is determined. The gateway is used as the target gateway corresponding to the wireless communication device, that is, the gateway with the largest signal strength is selected as the target gateway to which the wireless communication device can connect, and the device identification of the wireless communication device is recorded in the controllable information list of the target gateway, so that the device identification of the wireless communication device currently connectable to each gateway can be obtained, so that the gateway can dynamically adjust the connectable wireless communication devices of each gateway in time according to the actual situation according to the wireless communication device recorded in the controllable information list corresponding to the connection through the reported broadcast information, thereby solving the problem of fixed connection relationship between the gateway and the process device, and through the signal strength and the device group identification of the bound device group, it can help the gateway quickly determine the nearby connectable devices, thereby solving the problem of needing to associate the gateway with the wireless communication device in a specific order. In an alternative embodiment, an electronic device is provided, such as Figure 7 As shown, Figure 7 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0095] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0096] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0097] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0098] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.
[0099] Among them, the electronic equipment package may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0100] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented. Compared with the prior art, the present invention can achieve: by receiving the broadcast information of each wireless communication device uploaded by each gateway, obtaining the device group identifier of the device group bound to each gateway, and determining the reference gateway with the same device identifier as the device group bound to each wireless communication device according to the device group identifier of the device group bound to each wireless communication device. Since the broadcast information of the same wireless communication device may be reported by multiple gateways, for each wireless communication device, according to the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the wireless communication device, that is, the gateway with the maximum signal strength is selected as the target gateway to which the wireless communication device can be connected, and the device identifier of the wireless communication device is recorded in the controllable information list of the target gateway, so that the device identifier of the wireless communication device currently connectable to each gateway can be obtained, so that the gateway can dynamically adjust the connectable wireless communication devices of each gateway according to the actual situation in time according to the wireless communication device recorded in the controllable information list corresponding to the connection through the reported broadcast information, thereby solving the problem of fixed connection relationship between the gateway and the process device, and the signal strength and the device group identifier of the bound device group can help the gateway quickly determine the nearby connectable devices, thereby solving the problem of needing to associate the gateway with the wireless communication device in a specific order.
[0101] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0102] The present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the above method embodiments when executed by a processor. Compared with the prior art, it can achieve: By receiving the broadcast information of each wireless communication device uploaded by each gateway, the device group identifier of the device group bound to each gateway is obtained, and according to the device group identifier of the device group bound to each wireless communication device, a reference gateway with the same device identifier as the device group bound to each wireless communication device is determined. Since the broadcast information of the same wireless communication device may be reported by multiple gateways, for each wireless communication device, according to the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the wireless communication device, that is, the gateway with the largest signal strength is selected as the target gateway to which the wireless communication device can be connected, and the device identifier of the wireless communication device is recorded in the controllable information list of the target gateway, so that the device identifier of the wireless communication device currently connectable to each gateway can be obtained, so that the gateway can dynamically adjust the connectable wireless communication devices of each gateway according to the actual situation in time according to the wireless communication device recorded in the controllable information list corresponding to the connection through the reported broadcast information, thereby solving the problem of fixed connection relationship between the gateway and the process device, and the signal strength and the device group identifier of the bound device group can help the gateway quickly determine the nearby connectable devices, thereby solving the problem of needing to associate the gateway with the wireless communication device in a specific order.
[0103] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0104] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0105] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A method for configuring a wireless communication device, characterized in that: Applied in the cloud, including: Receive broadcast information of each wireless communication device collected by each gateway; the broadcast information includes a device identification of the wireless communication device, a signal strength, and a device group identification of a device group bound to the wireless communication device; Obtain the device group identifier of the device group bound to each gateway, and determine the reference gateway corresponding to each wireless communication device in combination with the device group identifier of the device group bound to each wireless communication device, wherein each wireless communication device is bound to the same device group identifier as the corresponding reference gateway; For each wireless communication device, based on the signal strength of the wireless communication device collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the wireless communication device, and the device identification of the wireless communication device is recorded in the controllable information list of the target gateway. The controllable information list of each gateway is used to record the device identification of the wireless communication device that uses the gateway as the target gateway; Each gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
2. The method according to claim 1, characterized in that: The receiving broadcast information of each wireless communication device collected by each gateway includes: periodically receiving broadcast information of each wireless communication device collected by each gateway; The step of using the reference gateway corresponding to the maximum signal strength as the target gateway corresponding to the wireless communication device according to the signal strength of the wireless communication device collected by each reference gateway includes: For each cycle, according to the signal strength of the wireless communication device in the current cycle collected by each reference gateway, the reference gateway corresponding to the maximum signal strength is used as the target gateway corresponding to the current cycle of the wireless communication device.
3. The method according to claim 2, characterized in that The recording of the device identification of the wireless communication device in the controllable information list of the target gateway includes: If the device identification of the wireless communication device is the first device identification to be recorded in the current cycle of the target gateway, creating a controllable information list of the current cycle of the target gateway, and recording the device identification of the wireless communication device in the controllable information list of the current cycle; If the device identification is not the first device identification to be recorded in the current cycle of the target gateway, the device identification is recorded in the controllable information list of the current cycle of the target gateway.
4. The method according to claim 3, characterized in that For each target gateway, recording the device identification of the wireless communication device in the controllable information list of the target gateway, and then further comprising: For a first cycle, sending the controllable information list of the first cycle to the target gateway, so that the target gateway connects to the wireless communication device according to the controllable information list of the first cycle; For a non-first cycle, if it is determined that the device identifications of all wireless communication devices corresponding to the target gateway have been recorded in the controllable information list of the current cycle corresponding to the target gateway, then the controllable information list of the previous cycle of the target gateway is obtained; If the controllable information list of the current period corresponding to the target gateway is inconsistent with the controllable information list of the previous period, the controllable information list of the current period corresponding to the target gateway is sent to the target gateway.
5. The method according to claim 4, characterized in that The sending the corresponding controllable information list of the current period to the target gateway includes: For each target gateway, obtaining attribute information of the target gateway; A communication link between the target gateway and the cloud is determined according to the attribute information, and a controllable information list of the current period is sent to the target gateway through the communication link.
6. A method for configuring a wireless communication device, characterized in that: Applied to gateways, including: Scan each wireless communication device to obtain broadcast information of each wireless communication device; the broadcast information includes: a device identification of the wireless communication device, a signal strength, and a device group identification of a device group bound to the wireless communication device; Sending broadcast information of each wireless communication device to the cloud, so that the cloud obtains a controllable information list of the current period corresponding to the gateway according to the device group identifier of the device group bound to the gateway and in combination with the broadcast information; The gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
7. The method according to claim 6, characterized in that The scanning of each wireless communication device to obtain broadcast information of each wireless communication device includes: Periodically scan each wireless communication device to obtain broadcast information of each wireless communication device; The sending of broadcast information of each wireless communication device to the cloud includes: Periodically send broadcast information of each wireless communication device to the cloud.
8. The method for configuring a wireless communication device according to claim 6, characterized in that: The method further includes sending broadcast information of each wireless communication device to the cloud: Receiving a controllable information list of the current period sent by the cloud; If an interaction request of a wireless communication device is scanned, obtaining a device identification of the wireless communication device; If the device identification is stored in the controllable information list of the current cycle, a connection with the wireless communication device is established.
9. The method for configuring a wireless communication device according to claim 8, characterized in that: The broadcast information further includes a first flag, and the first flag is used to indicate that the wireless communication device needs to perform information interaction; If an interaction request of a wireless communication device is scanned, obtaining a device identification of the wireless communication device includes: Periodically scan each wireless communication device to obtain broadcast information, and if the broadcast information includes the first flag, obtain the device identification of the wireless communication device.
10. A cloud, characterized in that: include: A receiving module, used to receive broadcast information of each wireless communication device collected by each gateway; The broadcast information includes a device identification of the wireless communication device, a signal strength, and a device group identification of a device group to which the wireless communication device is bound; An acquisition module is used to acquire the device group identifier of the device group bound to each gateway, and determine the reference gateway corresponding to each wireless communication device in combination with the device group identifier of the device group bound to each wireless communication device, wherein each wireless communication device is bound to the same device group identifier as the corresponding reference gateway; a recording module, configured to, for each wireless communication device, use the reference gateway corresponding to the maximum signal strength as the target gateway corresponding to the wireless communication device according to the signal strength of the wireless communication device collected by each reference gateway, and record the device identification of the wireless communication device in the controllable information list of the target gateway, wherein the controllable information list of each gateway is used to record the device identification of the wireless communication device that uses the gateway as the target gateway; Each gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
11. A gateway, characterized in that: include: A scanning module, used to scan each wireless communication device and obtain broadcast information of each wireless communication device; The broadcast information includes: a device identification of the wireless communication device, a signal strength, and a device group identification of a device group bound to the wireless communication device; A sending module, used to send broadcast information of each wireless communication device to the cloud, so that the cloud obtains a controllable information list of the current period corresponding to the gateway according to the device group identifier of the device group bound to the gateway and in combination with the broadcast information; The gateway is used to connect to the wireless communication device recorded in the corresponding controllable information list.
12. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 9.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
