CN111586661B - Adaptive association networking method and device based on BLE - Google Patents
Adaptive association networking method and device based on BLE Download PDFInfo
- Publication number
- CN111586661B CN111586661B CN202010394013.7A CN202010394013A CN111586661B CN 111586661 B CN111586661 B CN 111586661B CN 202010394013 A CN202010394013 A CN 202010394013A CN 111586661 B CN111586661 B CN 111586661B
- Authority
- CN
- China
- Prior art keywords
- fixed
- fixed devices
- mobile device
- equipment
- devices
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The application discloses a BLE-based adaptive association networking method and equipment, which are used for solving the technical problem that the workload is increased by using a traditional Bluetooth connection method in a multi-equipment wireless communication system. The method comprises the following steps: the mobile equipment sends out an association request broadcast with the fixed equipment and receives information from a plurality of fixed equipment for identifying the association request broadcast; respectively establishing connection with n fixed devices in the plurality of fixed devices through BLE; the mobile device receives and records the related information of the fixed devices sent by the n fixed devices through BLE, and records the rsi of the n fixed devices; the mobile device traverses the number of fixed devices with less than or equal to n fixed devices as a base unit to determine the strongest rssi in the number of fixed devices. By the method, the manual participation degree is reduced, the workload is reduced, and the equipment is convenient to install and maintain.
Description
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a method and device for adaptive association networking based on BLE.
Background
In recent years, with the development of communication technology, the application of bluetooth is becoming more and more widespread. Bluetooth technology, as an open global specification for wireless data and voice communications, can establish a wireless communication environment for fixed and mobile devices through low-cost short-range wireless connections. However, when the Bluetooth on the mobile phone or the tablet is kept in an open state for a long time, the power consumption of the mobile phone or the tablet is increased, so that a Bluetooth Low Energy (BLE) is provided for reducing the power consumption and the cost of the Bluetooth, and the BLE is widely applied to communication equipment.
In the bluetooth wireless communication system, the matching association between the mobile device and the fixed device is required to keep the communication between the mobile device and the fixed device stable and orderly. Conventional bluetooth connections are primarily made manually or via nfc, pc, etc. peripheral devices. However, as the number of devices in a wireless communication system increases, the workload of using the conventional method increases sharply, and the deployment of the wireless communication system is also more and more challenging.
Therefore, there is a need for a method for associating networking to solve the above-mentioned technical problem of increased workload of the conventional bluetooth connection method in the multi-device communication system.
Disclosure of Invention
The embodiment of the application provides a BLE-based adaptive association networking method and equipment, and aims to solve the technical problems that workload is increased when a traditional method is used for establishing Bluetooth connection and inconvenience is brought when system deployment is carried out due to the fact that the number of the equipment is too large in an existing wireless communication system.
In one aspect, an embodiment of the present application provides a BLE-based adaptive association networking method, including: the mobile equipment sends out an association request broadcast with the fixed equipment; the association request broadcast comprises the relevant information of the mobile equipment; the mobile equipment receives the information which is from a plurality of fixed equipment and identifies the association request broadcast; the fixed devices are used for identifying the information in the association request broadcast based on the prestored relevant information of the mobile device; the mobile equipment is respectively connected with n fixed equipment in the fixed equipment through the Bluetooth low energy BLE; wherein n is greater than 1 and less than or equal to the number of the plurality of fixed devices; the method comprises the steps that the mobile equipment receives and records relevant information of corresponding fixed equipment respectively sent by n fixed equipment connected with the mobile equipment through BLE, records received signal strength indication rssi of the n fixed equipment connected with the mobile equipment, and determines the strongest rssi of the n fixed equipment connected with the mobile equipment according to a preset rule; the mobile device traverses the plurality of fixed devices with less than or equal to n fixed devices as a base unit to determine the strongest rssi in the plurality of fixed devices.
In an implementation manner of the present application, the traversing, by the mobile device, a plurality of fixed devices with n or less fixed devices as a basic unit specifically includes: the mobile equipment is disconnected with n fixed equipment in the plurality of fixed equipment; the mobile equipment determines the relevant information of the rest fixed equipment which is not connected with the mobile equipment through BLE in the plurality of fixed equipment based on the recorded relevant information of the n fixed equipment in the plurality of fixed equipment; the mobile equipment respectively establishes connection with n fixed equipment in the rest fixed equipment through BLE, wherein n is larger than 1 and smaller than or equal to the number of the rest fixed equipment; the mobile equipment receives and records the related information of the corresponding fixed equipment respectively sent by n fixed equipment in the rest of fixed equipment through BLE, and records the rssi of the n fixed equipment in the rest of fixed equipment; the mobile equipment is disconnected with n fixed equipment in the rest fixed equipment; and the mobile device determines the relevant information of the rest of the fixed devices which are not connected with the mobile device through BLE again until the mobile device and the plurality of fixed devices are all connected through BLE.
In one implementation manner of the present application, after the mobile device and the plurality of fixed devices all establish an over-connection through BLE, the method further includes: based on the rssi of the fixed devices recorded by the mobile device, the mobile device determines the strongest rssi of the fixed devices according to a preset rule; based on the related information of the plurality of fixed devices recorded by the mobile device, the mobile device determines the related information of the fixed device corresponding to the strongest rssi in the plurality of fixed devices, and establishes connection with the fixed device corresponding to the strongest rssi in the plurality of fixed devices through BLE.
In an implementation manner of the present application, the traversing, by the mobile device, a plurality of fixed devices with n or less fixed devices as a basic unit specifically includes: the mobile equipment only keeps the connection with the fixed equipment corresponding to the strongest rssi in the n fixed equipment connected with the mobile equipment, and disconnects the connection between the rest n-1 fixed equipment in the n fixed equipment connected with the mobile equipment; the mobile equipment determines relevant information of the rest fixed equipment which is not connected with the mobile equipment through BLE in the plurality of fixed equipment based on the recorded relevant information of the n fixed equipment in the plurality of fixed equipment; the mobile equipment is respectively connected with n-1 fixed equipment in the rest fixed equipment through BLE; wherein n-1 is greater than 1 and less than or equal to the number of remaining fixed devices; the mobile equipment receives and records the related information of the corresponding fixed equipment respectively sent by n-1 fixed equipment in the rest of fixed equipment through BLE, and records the rssi of the n-1 fixed equipment in the rest of fixed equipment; determining the strongest rssi of the n fixed devices currently connected with the mobile device according to a preset rule; the mobile equipment only keeps the connection between the fixed equipment corresponding to the strongest rssi in the currently connected n fixed equipment, and disconnects the connection between the mobile equipment and the rest n-1 fixed equipment in the currently connected n fixed equipment; and the mobile device determines the relevant information of the rest of the fixed devices which are not connected with the mobile device through BLE again until the mobile device is connected with the plurality of fixed devices through BLE.
In an implementation manner of the present application, the information related to the fixed device, which is received and recorded by the mobile device, corresponds to the rssi of the fixed device, which is recorded by the mobile device.
In one implementation of the present application, the mobile device related information includes any one or more of: a device code of the mobile device, a device name of the mobile device, and a MAC address of the mobile device; the fixed equipment related information comprises any one or more of: the device code of the fixed device, the device name of the fixed device, and the MAC address of the fixed device.
In one implementation of the present application, the method further comprises: in the event of a mobile device location shift, the strongest rssi value among several fixed devices changes dynamically.
In one implementation of the present application, the method further comprises: the mobile equipment determines whether the variation value of the strongest rssi in the fixed equipment is lower than a first preset threshold value; and when the variation value of the strongest rssi in the fixed devices is lower than a first preset threshold value or the variation value of the strongest rssi in the fixed devices is 0, the mobile device continuously maintains the connection with the fixed device corresponding to the strongest rssi in the fixed devices.
In one implementation manner of the present application, when a variation value of a strongest rssi in a plurality of fixed devices is higher than or equal to a first preset threshold, the mobile device disconnects the fixed device corresponding to the strongest rssi in the plurality of fixed devices; and, the mobile device re-issues an association request broadcast with the fixed device.
On the other hand, an embodiment of the present application further provides an adaptive association networking device based on BLE, including: a processor and a memory; the memory has stored thereon executable code that, when executed, causes the processor to perform a BLE-based adaptive association networking method as described above.
According to the adaptive association networking method and device based on BLE, the mobile device records and traverses a plurality of fixed devices, records related information of the fixed devices connected with the mobile device and received signal strength indication rssi, determines the strongest rssi in the plurality of fixed devices in a wireless communication system, establishes connection with the fixed device corresponding to the strongest rssi, and communicates. The method and the device realize the process of self-adaptively selecting the fixed equipment for associated networking by the mobile equipment, reduce the manual participation and further reduce the error probability caused by the manual participation.
In addition, according to the association networking method based on BLE provided by the embodiment of the application, the mobile device does not repeatedly connect with one fixed device in the connection process by recording the relevant information of the fixed device connected with the mobile device. The method improves the information transmission efficiency of the communication system, overcomes the disadvantage that the mobile equipment and the fixed equipment use the conventional association method in the multi-equipment wireless communication system, and abandons the conventional complex association method, so that the multi-equipment wireless communication system is more convenient to install and maintain the mobile equipment and the fixed equipment in the implementation process.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of a topology of a multi-device wireless communication system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a BLE-based adaptive association networking method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating an association process between a mobile device and a fixed device according to an embodiment of the present application;
fig. 4 is a schematic internal structure diagram of an adaptive association networking device based on BLE according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In a bluetooth wireless communication system including a plurality of mobile devices and a plurality of fixed devices, the communication between the mobile devices and the fixed devices needs to be kept stable and orderly, and matching association between the mobile devices and the fixed devices is required. One method that is more common in the art is to use correlation manually or with the aid of peripheral devices (nfc, PC, phone, etc.).
However, as the number of mobile devices and fixed devices in a wireless communication system increases, the workload is greatly increased by establishing a connection between the mobile devices and the fixed devices using a conventional method; moreover, when the wireless communication system is deployed and implemented, the workers also face greater challenges, increasing the difficulty of deployment, implementation and maintenance.
In addition, the traditional method of establishing connection manually can greatly improve the error probability caused by manual participation.
It should be noted that, the mobile device mentioned in this embodiment of the present application refers to a bluetooth slave device, and may actively send a broadcast request signal to a bluetooth gateway, or perform data interaction with the bluetooth gateway through a connection method. The fixed equipment is a Bluetooth main equipment which can receive and transmit Bluetooth signals and communicate with the Bluetooth equipment. Such as bluetooth gateways, cell phones, etc.
The embodiment of the application provides a BLE-based adaptive association networking method and equipment, which aim to solve the problem that the workload is increased sharply when the conventional Bluetooth connection method is applied to a multi-equipment wireless communication system; and when deployment is carried out, inconvenience is brought to installation and maintenance of workers; and the error rate can be greatly improved due to the manual participation. The technical solutions provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic view of a topology of a multi-device wireless communication system according to an embodiment of the present disclosure. As shown in fig. 1, the wireless communication system includes a plurality of fixed devices such as a fixed device 1, a fixed device 2, and a fixed device 3, and a plurality of types of mobile devices. Wherein the number of mobile devices of each type is variable. And a plurality of fixed devices can communicate with the upper server and upload data information sent by various types of mobile devices.
When a mobile device needs to communicate with a fixed device, the mobile device issues an association request broadcast with multiple fixed devices. The association request broadcast can be received by a plurality of fixed devices, the mobile device establishes connection with the fixed devices as much as possible, and when the mobile device is successfully associated with the fixed device with the strongest received signal strength, the communication process between the mobile device and the fixed device can be orderly. The specific implementation process is shown in fig. 2.
Fig. 2 is a schematic flowchart of a method for adaptive association networking based on BLE according to an embodiment of the present disclosure.
As shown in fig. 2, an adaptive association networking method based on BLE according to an embodiment of the present application is implemented by the following steps:
In a wireless communication system including a plurality of mobile devices and a plurality of fixed devices, when the mobile devices need to communicate with the fixed devices or the mobile devices need to upload data information to a server, the mobile devices send out association request broadcast with the fixed devices.
In one embodiment of the present application, the association request broadcast from the mobile device includes information about the mobile device.
In another embodiment of the application, the relevant information of the mobile device includes any one or more of: device code of the mobile device, MAC address of the mobile device, device name of the mobile device.
Further, after the mobile device sends out an association request broadcast including the related information of the mobile device, the plurality of fixed devices identify whether the mobile device belongs to the wireless communication system in which the fixed device is located or determine whether the mobile device and the fixed device belong to one manufacturer by associating the related information of the mobile device included in the request broadcast.
Furthermore, when the fixed devices successfully identify the association request broadcast information sent by the mobile device through the pre-stored relevant information of the mobile device, the fixed devices can all successfully establish connection with the mobile device.
In step 202, the mobile device establishes a connection with n fixed devices in the plurality of fixed devices through BLE.
The mobile device establishes a connection relationship with n fixed devices of the plurality of fixed devices through Bluetooth Low Energy (BLE). Wherein n is more than 1 and less than or equal to the number of the plurality of fixed devices.
In one embodiment of the present application, the plurality of fixed devices refer to fixed devices that have received the association request broadcast and that, based on the pre-stored relevant information of the mobile device, identify the fixed device that successfully associates the information in the request broadcast.
In one embodiment of the present application, the association request broadcast is received by multiple fixed devices in the same communication system after the mobile device issues the association request broadcast. When several fixed devices receive the association request broadcast and identify information in the successful association request broadcast, the several fixed devices may all attempt to connect to the mobile device that originated the association request broadcast. And the mobile device has the capability of establishing connection with one or more fixed devices, and when the association request broadcast sent by the mobile device is received by a plurality of fixed devices and the identification is successful, the mobile device can establish connection with the fixed devices as much as possible.
However, since the number of fixed devices to which the mobile device can connect through BLE is limited, the mobile device establishes a connection with n fixed devices of several fixed devices.
For example, the wireless communication system includes 20 fixed devices, and among them, there are 12 related information broadcast by the association request sent by the mobile device, identifying the successful mobile device, and determining that the mobile device and the fixed device belong to the same manufacturer or the same wireless communication system. But the mobile device can only establish connection relation with 4 fixed devices at the same time through BLE. Therefore, the mobile device will first establish a connection relationship with 4 fixed devices out of 12 fixed devices.
It should be noted that n fixed devices of the plurality of fixed devices connected to the mobile device may be connected by random selection, may also be connected according to the sequence of the identification of the successful associated broadcast, and may also be connected by selection according to other setting conditions, which is not limited in this application.
After the mobile device establishes connection with n fixed devices of the plurality of fixed devices, the mobile device receives relevant information of the corresponding fixed devices sent by the n fixed devices connected with the mobile device through BLE, and receives Received Signal Strength Indication (rssi) of the n fixed devices connected with the mobile device.
In one embodiment of the present application, the related information of the fixed device recorded by the mobile device corresponds to the rssi of the recorded fixed device one to one.
And, the mobile device can uniquely determine the related information of the fixed device corresponding to the rssi through the rssi of the fixed device.
In one embodiment of the present application, the information about the fixed device is used to enable the mobile device to record the fixed device that has established an over-connection with the mobile device through BLE. And after the mobile device sends the association request broadcast once, the mobile device does not repeatedly establish a connection relationship with one or more fixed devices through BLE until the next association request broadcast is sent.
In one embodiment of the application, the information related to the fixed device comprises any one or more of: the device code of the fixed device, the device name of the fixed device, and the MAC address of the fixed device.
In another embodiment of the application, the mobile device records rssis of the n fixed devices connected to the mobile device, and the recorded rssis are sorted in descending order to determine the strongest rssi of the n fixed devices connected to the mobile device.
And step 204, the mobile device traverses a plurality of fixed devices by taking the number of the fixed devices smaller than or equal to n as a basic unit.
After the mobile device establishes a connection relationship with n fixed devices of the plurality of fixed devices and records the relevant information and the rssi of the n fixed devices connected with the mobile device, the mobile device traverses the plurality of fixed devices to determine the strongest rssi of the plurality of fixed devices, so that the mobile device establishes a connection relationship with the fixed device corresponding to the strongest rssi of the plurality of fixed devices.
The mobile device traverses a plurality of fixed devices, which can be realized by the following two ways:
mode 1: and traversing a plurality of fixed devices by taking the n fixed devices as basic units.
In one embodiment of the application, the mobile device disconnects from n fixed devices in the fixed devices, and establishes a connection relationship with n fixed devices in the remaining fixed devices, which are not connected with the mobile device through BLE, in the fixed devices.
In one embodiment of the application, the mobile device determines, through the recorded information about the fixed devices with which the connection was established, information about remaining fixed devices, from among the plurality of fixed devices, with which the connection was not established through BLE, of the mobile device.
Further, after the mobile device and the n fixed devices in the remaining fixed devices successfully establish a connection relationship through BLE, the relevant information of the corresponding fixed devices sent by the n fixed devices in the remaining fixed devices through BLE and the rsi of the n fixed devices in the remaining fixed devices are received. Wherein n is greater than 1 and less than or equal to the number of remaining fixtures.
Further, the mobile device disconnects from the n fixed devices of the remaining fixed devices.
Further, the mobile device determines again the related information of the rest of the plurality of fixed devices which are not in the connection relationship with the mobile device through the BLE until all of the plurality of fixed devices are in the connection relationship with the mobile device through the BLE.
It should be noted that, the fixed devices herein refer to the fixed devices that identify the broadcast information of the successful association request through the pre-stored relevant information of the mobile device; the remaining fixed devices refer to fixed devices that have not established an over-connection with the mobile device through BLE, among several fixed devices that identify successful association request broadcasts. In addition, in the process that the mobile device traverses the fixed devices by taking n fixed devices as a basic unit, the number of a plurality of fixed devices does not change, but the number of the remaining fixed devices is gradually reduced by taking n as a basic unit and is finally 0. That is, the mobile device eventually establishes an over-connection with all of the fixed devices through BLE.
At this point, the mobile device records the relevant information and rssi of all the fixed devices in the fixed devices, and sorts the rssi according to the descending order to determine the strongest rssi in the fixed devices.
After the strongest rssi of the plurality of fixed devices is determined, the mobile device determines the relevant information of the fixed device corresponding to the strongest rssi of the plurality of fixed devices according to the recorded relevant information of the plurality of fixed devices, and establishes a connection relation with the fixed device corresponding to the strongest rssi of the plurality of fixed devices, thereby completing the communication process.
Mode 2: and traversing a plurality of fixed devices by taking n-1 fixed devices as a basic unit.
In an embodiment of the application, after the mobile device records the relevant information and the rssi of the n fixed devices connected with the mobile device and determines the strongest rssi of the n fixed devices connected with the mobile device according to a preset rule, the mobile device only keeps the connection between the fixed devices corresponding to the strongest rssi of the n fixed devices connected with the mobile device, and disconnects the connection between the remaining n-1 fixed devices of the n fixed devices connected with the mobile device.
Further, the mobile device establishes connection with n-1 fixed devices in the remaining fixed devices, and records relevant information and rssi of the reconnected n-1 fixed devices.
Further, the mobile device determines the strongest rssi of the currently connected n fixed devices and only maintains the connection with the fixed device corresponding to the strongest rssi of the currently connected n fixed devices, disconnecting the remaining n-1 fixed devices.
Further, the mobile device determines the relevant information of the remaining fixed devices again until all of the fixed devices establish an over-connection relationship with the mobile device through BLE.
So far, the mobile device only keeps the connection relationship with one fixed device, and the currently connected fixed device is the fixed device corresponding to the strongest rssi in the fixed devices.
It will be apparent to those skilled in the art that both of these approaches can enable the mobile device to establish a connection with the fixed device corresponding to the strongest rssi. The two modes differ in that mode 1 has n fixtures as a basic unit. Namely, n fixed devices are connected each time, after relevant information and rssi of the currently connected n fixed devices are recorded, all the fixed devices are disconnected, and the n fixed devices which are not connected before are reconnected. Finally, the related information and the rssi of all the fixed devices in the plurality of fixed devices are recorded, then the strongest rssi is determined, and finally the connection with the fixed device corresponding to the strongest rssi is reestablished. And the mode 2 is that n-1 fixed devices are used as basic units, the mobile device always keeps the connection with the fixed device corresponding to the strongest rssi among the currently connected n fixed devices, the n-1 fixed devices in the rest fixed devices are connected each time, finally, all the fixed devices in the fixed devices are established with connection, and finally, one fixed device is kept to be connected, namely, the fixed device corresponding to the strongest rssi in the fixed devices.
In one embodiment of the present application, if the mobile device moves in position during a communication, the strongest rssi value of several fixed devices may also change.
In an embodiment of the present application, when the variation value of the strongest rssi is lower than the first preset threshold, or the variation value of the strongest rssi is 0, it indicates that the location movement range of the mobile device is small, and the BLE connection relationship between the mobile device and the fixed device corresponding to the strongest rssi is not affected, and at this time, the mobile device continues to maintain the connection between the fixed devices corresponding to the strongest rssi.
In another embodiment of the present application, if the variation value of the strongest rssi is greater than the first preset threshold, or the variation value of the strongest rssi is equal to the first preset threshold, it indicates that the location movement range of the mobile device is large, and the BLE connection relationship between the mobile device and the fixed device is affected. At this point, the mobile device disconnects the fixed device corresponding to the strongest rssi and re-issues an association request broadcast with the fixed device.
Fig. 3 is a schematic diagram of an association process between a mobile device and a fixed device according to an embodiment of the present application.
As shown in fig. 3, the mobile device sends an association request broadcast to the fixed devices 1, 2, and 3. The association request broadcast comprises the relevant information of the mobile equipment, so that the fixed equipment can authenticate the mobile equipment through the prestored relevant information of the mobile equipment, and identify whether the mobile equipment and the fixed equipment belong to the same wireless communication system or belong to the same manufacturer.
After the fixed devices 1, 2 and 3 receive the association request broadcast and the related information of the mobile device is successfully identified, connection is established with the mobile device through BLE, and then the related information of the fixed device is sent to the mobile device. The information related to the fixed device is used for enabling the mobile device to determine whether the fixed device and the mobile device establish an over-connection through BLE through the information related to the fixed device.
And, the mobile device records the rssi of fixed device 1, the rssi of fixed device 2, and the rssi of fixed device 3, and then determines the strongest rssi. As can be seen from fig. 3, the fixed device corresponding to the strongest rssi is the fixed device 3.
Finally, the mobile device disconnects from the fixed devices 1 and 2, and only the connection relation with the fixed device 3 is reserved.
Based on the same inventive concept, the embodiment of the present application further provides a BLE-based adaptive association networking device, and an internal structure of the BLE-based adaptive association networking device is shown in fig. 4.
Fig. 4 is a schematic internal structure diagram of an adaptive association networking device based on BLE according to an embodiment of the present application. As shown in fig. 4, the internal structure includes a processor 401 and a memory 402.
The memory 402 has stored thereon executable code, which when executed, causes the processor 401 to perform one BLE-based adaptive association networking method described above.
In one embodiment of the present application, the processor 401 is configured to cause the mobile device to issue an association request broadcast with the fixed device; wherein, the association request broadcast comprises the relevant information of the mobile device; and for causing the mobile device to receive a message from the plurality of fixed devices identifying the association request broadcast; the fixed equipment identifies the information in the association request broadcast based on the prestored relevant information of the mobile equipment; the mobile device is also used for establishing connection with n fixed devices in the plurality of fixed devices through the Bluetooth low energy BLE; wherein n is greater than 1 and less than or equal to the number of the plurality of fixed devices; the mobile equipment is also used for receiving and recording related information of the corresponding fixed equipment respectively sent by the n fixed equipment connected with the mobile equipment through BLE, recording received signal strength indication rssi of the n fixed equipment connected with the mobile equipment, and determining the strongest rssi of the n fixed equipment connected with the mobile equipment according to a preset rule; and traversing the plurality of fixed devices with less than or equal to n fixed devices as a base unit to determine a strongest rssi of the plurality of fixed devices.
How the processor 401 enables the mobile device to perform a detailed process of adaptive association networking with a plurality of fixed devices is described with reference to fig. 2 and corresponding contents.
According to the adaptive association networking method and device based on BLE provided by the embodiment of the application, the mobile device records the relevant information and the rsi of the fixed device which is connected with the mobile device, determines the strongest rsi of a plurality of fixed devices which are connected with the mobile device, and establishes connection with the fixed device corresponding to the strongest rsi through BLE. The self-adaptive associated networking method in the multi-device wireless communication system is realized, the artificial participation is reduced, and the workload of workers is reduced; the mobile equipment automatically completes the self-adaptive associated networking process, and the communication process between the fixed equipment and the mobile equipment is kept to be performed in a consistent manner. And the error probability caused by manual participation is reduced; and the mobile equipment does not need to establish connection with the fixed equipment by means of peripheral equipment, and convenience is brought to deployment and implementation of workers.
In addition, the adaptive association networking method and device based on BLE provided by the embodiment of the application are also suitable for a wireless communication system with multiple devices, and a conventional tedious method such as address binding is abandoned. In the implementation process of the system, the workload of constructors is reduced, and great convenience is brought to installation and maintenance of fixed equipment and mobile equipment in the wireless communication system by the constructors.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (2)
1. A BLE-based adaptive association networking method, the method comprising:
the mobile equipment sends out an association request broadcast with the fixed equipment; the association request broadcast comprises the relevant information of the mobile equipment;
the mobile device receives a message from a plurality of fixed devices identifying the association request broadcast; the fixed devices respectively identify the information in the association request broadcast based on the prestored relevant information of the mobile device;
the mobile device establishes connection with n fixed devices in the fixed devices through the Bluetooth Low Energy (BLE) respectively; wherein n is greater than 1 and less than or equal to the number of the plurality of fixed devices;
the mobile device receives and records relevant information of corresponding fixed devices respectively sent by the n fixed devices connected with the mobile device through BLE, records received signal strength indication rssi of the n fixed devices connected with the mobile device, and determines the strongest rssi of the n fixed devices connected with the mobile device according to a preset rule;
the mobile device traverses the fixed devices by taking the number of the fixed devices smaller than or equal to n as a basic unit to determine the strongest rssi of the fixed devices;
the traversing the plurality of fixed devices by the mobile device with the number of the fixed devices smaller than or equal to n as a basic unit specifically includes:
the mobile equipment is disconnected with n fixed equipment in the fixed equipment;
the mobile device determines relevant information of the rest of the plurality of fixed devices which are not connected with the mobile device through BLE based on the recorded relevant information of the n fixed devices in the plurality of fixed devices;
the mobile device establishes connection with n fixed devices in the remaining fixed devices through BLE respectively, wherein n is greater than 1 and less than or equal to the number of the remaining fixed devices;
the mobile device receives and records the relevant information of the corresponding fixed devices respectively sent by the n fixed devices in the remaining fixed devices through BLE, and records the rssi of the n fixed devices in the remaining fixed devices;
the mobile device disconnects from n of the remaining fixed devices;
the mobile device determines the relevant information of the rest fixed devices which are not connected with the mobile device through BLE again in the rest fixed devices until the mobile device and the fixed devices are all connected through BLE;
after the mobile device establishes an over-connection with all of the number of fixed devices through BLE, the method further comprises:
based on the rssi of the fixed devices recorded by the mobile device, the mobile device determines the strongest rssi of the fixed devices according to a preset rule;
based on the relevant information of the fixed devices recorded by the mobile device, the mobile device determines the relevant information of the fixed device corresponding to the strongest rssi in the fixed devices, and establishes connection with the fixed device corresponding to the strongest rssi in the fixed devices through BLE;
the traversing the plurality of fixed devices by the mobile device with the number of the fixed devices smaller than or equal to n as a basic unit specifically includes:
the mobile device only maintains the connection with the fixed device corresponding to the strongest rssi in the n fixed devices connected with the mobile device, and disconnects the connection between the remaining n-1 fixed devices in the n fixed devices connected with the mobile device;
the mobile device determines relevant information of the rest fixed devices which are not connected with the mobile device through BLE in the fixed devices based on the recorded relevant information of the n fixed devices in the fixed devices;
the mobile equipment is respectively connected with n-1 fixed equipment in the rest of fixed equipment through BLE; wherein n-1 is greater than 1 and less than or equal to the number of remaining fixtures;
the mobile device receives and records relevant information of the corresponding fixed devices respectively sent by n-1 fixed devices in the remaining fixed devices through BLE, and records the rssi of the n-1 fixed devices in the remaining fixed devices; determining the strongest rssi of the n fixed devices currently connected with the mobile device according to a preset rule;
the mobile equipment only keeps the connection between the mobile equipment and the fixed equipment corresponding to the strongest rssi in the currently connected n fixed equipment, and disconnects the connection between the mobile equipment and the rest n-1 fixed equipment in the currently connected n fixed equipment;
the mobile device determines the relevant information of the rest fixed devices which are not connected with the mobile device through BLE again in the rest fixed devices until the mobile device and the fixed devices are all connected through BLE;
the mobile equipment receives and records the relevant information of the fixed equipment, and the relevant information is in one-to-one correspondence with the rssi of the fixed equipment recorded by the mobile equipment;
the relevant information of the mobile device comprises any one or more of the following: a device code of the mobile device, a device name of the mobile device, a MAC address of the mobile device;
the relevant information of the fixed equipment comprises any one or more of the following items: the equipment code of the fixed equipment, the equipment name of the fixed equipment and the MAC address of the fixed equipment;
the method further comprises the following steps:
in the case of position movement of the mobile device, dynamically changing the strongest rssi value in the plurality of fixed devices;
the mobile device determining whether the variation value of the strongest rssi in the plurality of fixed devices is lower than a first preset threshold value;
when the variation value of the strongest rssi in the plurality of fixed devices is lower than a first preset threshold value, or the variation value of the strongest rssi in the plurality of fixed devices is 0, the mobile device continues to maintain the connection with the fixed device corresponding to the strongest rssi in the plurality of fixed devices;
when the variation value of the strongest rssi in the fixed devices is higher than or equal to a first preset threshold, the mobile device disconnects the fixed device corresponding to the strongest rssi in the fixed devices;
and, the mobile device re-issues an association request broadcast with the fixed device.
2. An adaptive association networking device based on BLE, the device comprising:
a processor;
and a memory having executable code stored thereon that, when executed, cause the processor to perform a BLE-based adaptive association networking method of claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010394013.7A CN111586661B (en) | 2020-05-11 | 2020-05-11 | Adaptive association networking method and device based on BLE |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010394013.7A CN111586661B (en) | 2020-05-11 | 2020-05-11 | Adaptive association networking method and device based on BLE |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111586661A CN111586661A (en) | 2020-08-25 |
CN111586661B true CN111586661B (en) | 2022-09-02 |
Family
ID=72124870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010394013.7A Active CN111586661B (en) | 2020-05-11 | 2020-05-11 | Adaptive association networking method and device based on BLE |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111586661B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375939A (en) * | 2016-08-29 | 2017-02-01 | 山东康威通信技术股份有限公司 | Dual-mode Bluetooth-based data transmission system and method in underground tunnel |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105516896A (en) * | 2015-12-02 | 2016-04-20 | 惠州Tcl移动通信有限公司 | Bluetooth interconnection method and system for wearable device and mobile terminal |
US10645559B2 (en) * | 2016-06-27 | 2020-05-05 | Huawei Technologies Co., Ltd. | Bluetooth connection method and terminal |
CN207354634U (en) * | 2017-05-18 | 2018-05-11 | 欧普照明股份有限公司 | The configuration system of radio network configuration equipment and wireless network node |
CN107205210B (en) * | 2017-05-18 | 2023-06-09 | 欧普照明股份有限公司 | Method, device, system and computer program for configuring wireless network node |
CN109041082B (en) * | 2018-07-25 | 2022-02-22 | 朔联科技(上海)有限公司 | Positioning information transmission method |
CN110232810B (en) * | 2019-06-11 | 2021-02-09 | 公牛集团股份有限公司 | Method, system and electronic equipment for positioning remote controller based on Bluetooth mesh network |
CN111025232A (en) * | 2019-11-29 | 2020-04-17 | 泰康保险集团股份有限公司 | Bluetooth positioning method, Bluetooth positioning device, electronic equipment and storage medium |
-
2020
- 2020-05-11 CN CN202010394013.7A patent/CN111586661B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375939A (en) * | 2016-08-29 | 2017-02-01 | 山东康威通信技术股份有限公司 | Dual-mode Bluetooth-based data transmission system and method in underground tunnel |
Also Published As
Publication number | Publication date |
---|---|
CN111586661A (en) | 2020-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7970408B2 (en) | Wireless switched network | |
US7447503B2 (en) | Method of designating a future network coordinator | |
USRE47488E1 (en) | Method, apparatus, and computer program product for wireless device discovery process | |
US20140064198A1 (en) | Method for a wireless target device to automatically connect to a target network, wireless network system with automatic network setting ability, and wireless target device thereof | |
US20070159997A1 (en) | Wireless Security Setup between Station and AP Supporting MSSID | |
CN103491569A (en) | Method, apparatus, and computer program product for wireless short-range communication disconnection | |
CN105075386A (en) | Network-assisted D2D communication using D2D capability information | |
JP2006191455A (en) | Radio mobile communication method, radio mobile communication system, base station controller and radio mobile terminal | |
CN108834121B (en) | Bluetooth device ad hoc network method and system | |
KR20040040040A (en) | Wireless communication system and a hand-off method using the same | |
CN102119571A (en) | Adaptive channel selection by wireless nodes for improved operating range | |
CN110268739B (en) | Access control method, device and readable storage medium | |
WO2015008714A1 (en) | Control device and communication terminal | |
US8463268B2 (en) | Mobile radio terminal apparatus | |
CN111586661B (en) | Adaptive association networking method and device based on BLE | |
CN111464996B (en) | DECT resource coordination method and system based on network | |
JP5049756B2 (en) | Mobile communication terminal and wireless communication method | |
CN101827349A (en) | Adjoining base station determining method and management device | |
CN106102133B (en) | Method and system for realizing dynamic wireless network based on mobile terminal | |
CN105101336A (en) | Wi-Fi access method and apparatus, mobile terminal, and server | |
US20080008123A1 (en) | Touch type bluetooth match system, bluetooth devices for same | |
CN102387537B (en) | Wireless network system and wireless access points thereof | |
CN111954274B (en) | Cellular network communication method and system based on LoRa technology | |
US20130301493A1 (en) | Method of transmitting data | |
KR101401966B1 (en) | Apparatus and method for updating the idle channel and idle channel lists |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |