A Bluetooth encrypted communication system
By introducing pairing evaluation modules and data storage modules in the Bluetooth encrypted communication system, the pairing evaluation values of Bluetooth terminals can be calculated and recorded, and users can choose secure connections, which solves the problem of users recklessly selecting pairing objects and improves information security and privacy protection.
Patent Information
- Application Number
- CN202410105184.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-01-25
AI Technical Summary
When using Bluetooth to encrypt communication, users may rashly select or accept unscrupulously paired objects, resulting in unsafe Bluetooth pairing, which may cause issues of information security and privacy violations.
Design a Bluetooth encrypted communication system, including Bluetooth pairing module, pairing evaluation module and human-computer interaction module. By obtaining Bluetooth broadcast signal or pairing request information, computing device unique identifier and pairing evaluation value, it is recommended that users choose a secure connection to avoid Familiar Bluetooth terminal pairing and record pairing history through the data storage module to evaluate the security of subsequent encrypted communications.
It effectively avoids users' incorrect selection of pairing objects, improves information security and privacy protection, ensures secure connections between Bluetooth terminals, reduces unnecessary failed pairing times, and enhances users' trust in pairing objects.
Smart Images

Figure CN117939449B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of Bluetooth wireless communication, in particular to a Bluetooth encrypted communication system. Background Art
[0002] Bluetooth is a short-range wireless communication technology. In order to prevent unauthorized devices from accessing and intercepting communication content, an encryption mechanism is used to ensure that data transmission via Bluetooth is secure and private during the transmission process.
[0003] When Bluetooth encrypted communication is required, the initial Bluetooth device pairing process is involved. Generally, the user selects the pairing object completely based on his / her own will, so that the user may rashly select a Bluetooth device for pairing, or may rashly receive a pairing request or confirmation without carefully verifying the device identity, resulting in unsafe Bluetooth pairing. In order to solve the above problems, the present invention proposes a Bluetooth encrypted communication system. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a Bluetooth encrypted communication system, which solves the problem of how to prevent users from rashly selecting a pairing object when using Bluetooth encrypted communication.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A Bluetooth encrypted communication system, comprising: a plurality of Bluetooth terminals, each of which is provided with a Bluetooth pairing module, a pairing evaluation module, a data storage module and a human-computer interaction module, and information is exchanged between the modules;
[0007] The Bluetooth pairing module is used to obtain Bluetooth broadcast signals or pairing request information sent by other Bluetooth terminals and send them to the pairing evaluation module, extract the device unique identifier of the corresponding Bluetooth broadcast signal or pairing request information and the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier from the pairing evaluation module for analysis, and send the analysis result to the human-computer interaction interface for display. The user decides whether to establish a secure connection between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier through the human-computer interaction interface, and collects the Bluetooth data of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier and sends them to the data storage module for storage;
[0008] The pairing evaluation module is used to parse and analyze the acquired Bluetooth broadcast signal or pairing request information, obtain the device unique identifier contained in the corresponding Bluetooth broadcast signal or pairing request information, calculate the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, and send the device unique identifier contained in the Bluetooth broadcast signal or pairing request information and the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier to the Bluetooth pairing module.
[0009] Furthermore, the pairing method of the Bluetooth pairing module includes:
[0010] The current Bluetooth terminal is in a pairing state and sends Bluetooth broadcast signals to the surrounding area, scans nearby Bluetooth channels, and listens to Bluetooth broadcast signals sent by other Bluetooth terminals in each Bluetooth channel;
[0011] After collecting at least one Bluetooth broadcast signal acquired within a second preset time, a Bluetooth broadcast signal set is generated; obtaining from a pairing evaluation module a device unique identifier contained in each Bluetooth broadcast signal in the Bluetooth broadcast signal set and a pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the device unique identifier;
[0012] Arrange the pairing evaluation values between the Bluetooth terminal corresponding to the device unique identifier contained in each Bluetooth broadcast signal in the acquired Bluetooth broadcast signal set and the current Bluetooth terminal in descending order, select the Bluetooth terminal with the device unique identifier corresponding to the largest pairing evaluation value as the best pairing object for the current Bluetooth terminal, and mark the device unique identifier of the best pairing object as the best;
[0013] The device unique identifiers of each Bluetooth broadcast signal in the Bluetooth broadcast signal set are sent to the human-computer interaction module in the form of a list for display; the user confirms whether to pair with the Bluetooth terminal corresponding to at least one device unique identifier displayed by the human-computer interaction module within a second preset time;
[0014] If the second preset time is exceeded, the human-computer interaction module updates the device unique identifier of each Bluetooth broadcast signal in the Bluetooth broadcast signal set;
[0015] If the pairing is confirmed with the Bluetooth terminal corresponding to the unique identifier of the corresponding device within the second preset time, a pairing request message is generated and sent to the Bluetooth terminal corresponding to the unique identifier of the corresponding device;
[0016] Within the second preset time after the pairing request information is sent, if the pairing confirmation information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is not obtained, or the pairing rejection information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is obtained, then 1 is added to the original number of failed pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier; and the Bluetooth communication data of the number of failed pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is sent to the data storage module;
[0017] Within the second preset time after the pairing request information is sent, if the pairing confirmation information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is obtained, the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier establish a secure connection; at the same time, 1 is added to the original number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, and the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier when the secure connection is established are recorded, and the continuous communication time after this successful pairing begins to be recorded; after the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier are disconnected, the Bluetooth communication data of the obtained number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier when the secure connection is established, and the continuous communication time after this successful pairing are sent to the data storage module.
[0018] Furthermore, if no Bluetooth broadcast signal emitted by other Bluetooth terminals is heard in the corresponding Bluetooth channel within the first preset time, the system switches to the adjacent Bluetooth channel to continue listening. Once the Bluetooth broadcast signal of other Bluetooth terminals is heard, the Bluetooth broadcast signal is sent to the pairing evaluation module, and the Bluetooth broadcast signals in each Bluetooth channel continue to be listened to.
[0019] Furthermore, the pairing method of the Bluetooth pairing module also includes: if the current Bluetooth terminal obtains the pairing request information sent by other Bluetooth terminals, the current Bluetooth terminal needs to determine whether to confirm or reject the obtained pairing request information, and return the pairing confirmation or rejection information; including:
[0020] If the pairing request information sent by other Bluetooth terminals is obtained, the pairing request information is sent to the pairing evaluation module;
[0021] Acquire, from a pairing evaluation module, a device unique identifier of the corresponding pairing request information and a pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier;
[0022] Compare the obtained pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier with the preset pairing evaluation threshold; evaluate and recommend returning information on pairing confirmation or rejection;
[0023] If the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device is less than the preset pairing evaluation threshold, a prompt message suggesting to return pairing rejection is generated and sent to the human-computer interaction module; if the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device is greater than or equal to the preset pairing evaluation threshold, a prompt message suggesting to return pairing confirmation is generated and sent to the human-computer interaction module;
[0024] The user decides to return the pairing confirmation or rejection information by himself through the suggestion displayed by the human-computer interaction module of the current Bluetooth terminal;
[0025] If the user does not return the pairing confirmation message or return the pairing rejection message within the second preset time, then add 1 to the original failed pairing times of the current Bluetooth terminal and the corresponding device unique identifier; and send the acquired Bluetooth communication data of the failed pairing times of the current Bluetooth terminal and the corresponding device unique identifier to the data storage module;
[0026] If the user returns the pairing confirmation information, the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device establish a secure connection; at the same time, 1 is added to the original number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device, and the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when the secure connection is established are recorded, and the continuous communication time after this successful pairing begins to be recorded; after the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device are disconnected, the obtained Bluetooth communication data of the number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device, the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when the secure connection is established, and the continuous communication time after this successful pairing are sent to the data storage module.
[0027] Furthermore, the data storage module classifies and stores the acquired Bluetooth communication data; including:
[0028] The device unique identifier corresponding to the Bluetooth communication data is obtained, and the historical device unique identifier list and the Bluetooth communication data set mapped to the corresponding device unique identifier in the historical device unique identifier list are updated according to the device unique identifier corresponding to the Bluetooth communication data.
[0029] Furthermore, the historical device unique identifier list includes the device unique identifiers of the Bluetooth terminals corresponding to each Bluetooth broadcast signal monitored by the Bluetooth terminal in the past or each pairing request information received; each device unique identifier included in the historical device unique identifier list is mapped with a Bluetooth communication data set.
[0030] Furthermore, the processing of the pairing evaluation module includes:
[0031] Acquire the corresponding Bluetooth broadcast signal or the corresponding pairing request information in real time, parse the acquired corresponding Bluetooth broadcast signal or the corresponding pairing request information, and acquire the corresponding device unique identifier contained in the corresponding Bluetooth broadcast signal or the corresponding pairing request information; match the acquired corresponding device unique identifier with the historical device unique identifier list;
[0032] If the corresponding device unique identifier does not exist in the historical device unique identifier list, the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is set to 0;
[0033] If the corresponding device unique identifier exists in the historical device unique identifier list, the Bluetooth communication data set mapped to the corresponding device unique identifier is extracted from the data storage module according to the corresponding device unique identifier; the Bluetooth communication data set includes the number of failed pairings si,j, the number of successful pairings gi,j, and the continuous communication time after the successful pairing for the fi,jth time between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier. And the geographical location coordinates (Xi, Yi, Zi) and (Xj, Yj, Zj) of both parties when establishing a secure connection;
[0034] Wherein, i represents the unique device identifier of the current Bluetooth terminal, j represents the unique device identifier of the Bluetooth terminal corresponding to the corresponding Bluetooth broadcast signal or pairing request information; si,j and gi,j are both integers greater than or equal to 0, and fi,j=1,2…gi,j;
[0035] According to the obtained Bluetooth communication data set mapped by the corresponding device unique identifier, the pairing evaluation value Pi,j between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is calculated, and the formula is as follows:
[0036]
[0037] Wherein, a1, a2 and a3 are respectively the preset proportional coefficients of the successful pairing ratio, the total continuous communication time of the successful pairing and the distance between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when establishing a secure connection; 0<a1<a2<a3, and a1+a2+a3=1;
[0038] The calculated pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is bound to the corresponding device unique identifier and then sent to the Bluetooth pairing module.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] 1. In the present invention, a Bluetooth broadcast signal or pairing request information sent by other Bluetooth terminals is obtained through a Bluetooth pairing module, and the obtained Bluetooth broadcast signal or pairing request information is sent to a pairing evaluation module to obtain a corresponding device unique identifier and a pairing evaluation value; the best pairing object is determined according to the device unique identifier and the pairing evaluation value of the corresponding Bluetooth broadcast signal, and the corresponding device unique identifier is marked as the best, and when each obtained device unique identifier is sent to a human-computer interaction module for display, the user can select the device unique identifier marked as the best according to the suggestion, thereby selecting a Bluetooth terminal with more successful pairings, shorter distances, and longer continuous communication time; or, according to the device unique identifier and the pairing evaluation value of the corresponding pairing request information, if the obtained pairing evaluation value is lower than a preset pairing evaluation value, it is recommended that the current Bluetooth terminal reject the pairing request; thereby avoiding connection to unfamiliar Bluetooth terminals, which infringe on the user's information security and privacy, and also avoiding incorrect connections.
[0041] 2. In this application, the pairing evaluation module is used to analyze the number of failed pairings, the number of successful pairings, the continuous communication time after successful pairing, and the Bluetooth communication data of the geographical location coordinates of both parties when a secure connection is established between Bluetooth terminals, and calculate the pairing evaluation value to comprehensively judge whether the pairing of the corresponding Bluetooth terminal with the current Bluetooth terminal is safe, which also ensures the information security of subsequent encrypted communications to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 The figure is a block diagram of a Bluetooth encrypted communication system of the present invention. DETAILED DESCRIPTION
[0043] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] like Figure 1 As shown, a Bluetooth encrypted communication system includes: a plurality of Bluetooth terminals, each of which is provided with a Bluetooth pairing module, a pairing evaluation module, a data storage module and a human-computer interaction module, and information is exchanged between the modules;
[0045] The Bluetooth pairing module is used to obtain Bluetooth broadcast signals or pairing request information sent by other Bluetooth terminals and send them to the pairing evaluation module, extract the device unique identifier of the corresponding Bluetooth broadcast signal or pairing request information and the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier from the pairing evaluation module for analysis, and send the analysis result to the human-computer interaction interface for display. The user decides through the human-computer interaction interface whether to establish a secure connection between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, and collects the Bluetooth data of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier and sends them to the data storage module; thereby realizing subsequent Bluetooth encrypted communication between the two parties; including:
[0046] The current Bluetooth terminal is in a pairing state and sends Bluetooth broadcast signals to the surrounding area, scans nearby Bluetooth channels, and listens to Bluetooth broadcast signals sent by other Bluetooth terminals in each Bluetooth channel;
[0047] If no Bluetooth broadcast signal from other Bluetooth terminals is detected in the corresponding Bluetooth channel within the first preset time, the module switches to an adjacent Bluetooth channel to continue monitoring. Once a Bluetooth broadcast signal from another Bluetooth terminal is detected, the Bluetooth broadcast signal is sent to the pairing evaluation module, and the module continues to monitor the Bluetooth broadcast signals in each Bluetooth channel.
[0048] After collecting at least one Bluetooth broadcast signal acquired within a second preset time, generating a Bluetooth broadcast signal set;
[0049] Acquire, from a pairing evaluation module, a device unique identifier contained in each Bluetooth broadcast signal in a Bluetooth broadcast signal set and a pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the device unique identifier;
[0050] Arrange the pairing evaluation values between the Bluetooth terminal corresponding to the device unique identifier contained in each Bluetooth broadcast signal in the acquired Bluetooth broadcast signal set and the current Bluetooth terminal in descending order, select the Bluetooth terminal with the device unique identifier corresponding to the largest pairing evaluation value as the best pairing object for the current Bluetooth terminal, and mark the device unique identifier of the best pairing object as the best;
[0051] Sending the device unique identifier of each Bluetooth broadcast signal in the Bluetooth broadcast signal set to the human-computer interaction module in the form of a list for display;
[0052] The user confirms within a second preset time whether to pair with the Bluetooth terminal corresponding to at least one device unique identifier displayed by the human-computer interaction module;
[0053] It is understandable that in this application, although the corresponding device unique identifier is marked as the best, the user can still select the Bluetooth terminal corresponding to other device unique identifiers when selecting, but to a certain extent, it can avoid the wrong connection of Bluetooth for the user;
[0054] If the second preset time is exceeded, the human-computer interaction module updates the device unique identifier of each Bluetooth broadcast signal in the Bluetooth broadcast signal set;
[0055] If the pairing is confirmed with the Bluetooth terminal corresponding to the unique identifier of the corresponding device within the second preset time, a pairing request message is generated and sent to the Bluetooth terminal corresponding to the unique identifier of the corresponding device;
[0056] Within the second preset time after the pairing request information is sent, if the pairing confirmation information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is not obtained, or the pairing rejection information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is obtained, then 1 is added to the original number of failed pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier; and the Bluetooth communication data of the number of failed pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is sent to the data storage module;
[0057] Within the second preset time after the pairing request information is sent, if the pairing confirmation information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is obtained, the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier establish a secure connection; at the same time, 1 is added to the original number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, and the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier when the secure connection is established are recorded, and the continuous communication time after this successful pairing begins to be recorded; after the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier are disconnected, the Bluetooth communication data of the obtained number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier when the secure connection is established, and the continuous communication time after this successful pairing are sent to the data storage module;
[0058] Optionally, if the current Bluetooth terminal obtains pairing request information sent by other Bluetooth terminals, the current Bluetooth terminal needs to determine whether to confirm or reject the obtained pairing request information, and return pairing confirmation or rejection information; including:
[0059] If the pairing request information sent by other Bluetooth terminals is obtained, the pairing request information is sent to the pairing evaluation module;
[0060] Acquire, from a pairing evaluation module, a device unique identifier of the corresponding pairing request information and a pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier;
[0061] Compare the obtained pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier with the preset pairing evaluation threshold; evaluate and recommend returning information on pairing confirmation or rejection;
[0062] If the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is less than the preset pairing evaluation threshold, a prompt message suggesting to return pairing rejection is generated and sent to the human-computer interaction module;
[0063] If the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is greater than or equal to the preset pairing evaluation threshold, a prompt message suggesting to return pairing confirmation is generated and sent to the human-computer interaction module;
[0064] The user decides to return the pairing confirmation or rejection information by himself through the suggestion displayed by the human-computer interaction module of the current Bluetooth terminal;
[0065] It is understandable that in this application, although the suggested prompt information is given, it is still up to the user to decide, but it can avoid wrong Bluetooth connection for the user to a certain extent;
[0066] If the user does not return the pairing confirmation message or return the pairing rejection message within the second preset time, then add 1 to the original failed pairing times of the current Bluetooth terminal and the corresponding device unique identifier; and send the acquired Bluetooth communication data of the failed pairing times of the current Bluetooth terminal and the corresponding device unique identifier to the data storage module;
[0067] If the user returns the pairing confirmation information, the current Bluetooth terminal establishes a secure connection with the Bluetooth terminal corresponding to the unique identifier of the corresponding device; at the same time, 1 is added to the original number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device, and the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when the secure connection is established are recorded, and the continuous communication time after this successful pairing begins to be recorded; after the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device are disconnected, the obtained Bluetooth communication data of the number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device, the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when the secure connection is established, and the continuous communication time after this successful pairing are sent to the data storage module;
[0068] In this embodiment, the data storage module is used to classify and store the acquired Bluetooth communication data; including:
[0069] Obtain a device unique identifier corresponding to the Bluetooth communication data, and update a historical device unique identifier list and a Bluetooth communication data set mapped to a corresponding device unique identifier in the historical device unique identifier list according to the device unique identifier corresponding to the Bluetooth communication data;
[0070] The historical device unique identifier list includes the device unique identifiers of the Bluetooth terminals corresponding to the various Bluetooth broadcast signals monitored by the Bluetooth terminal in the past or the various pairing request messages received; each device unique identifier included in the historical device unique identifier list is mapped with a Bluetooth communication data set;
[0071] The pairing evaluation module is used to parse and analyze the acquired Bluetooth broadcast signal or pairing request information, obtain the device unique identifier contained in the corresponding Bluetooth broadcast signal or pairing request information, calculate the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, and send the device unique identifier contained in the Bluetooth broadcast signal or pairing request information and the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier to the Bluetooth pairing module; including:
[0072] Acquire the corresponding Bluetooth broadcast signal or the corresponding pairing request information in real time, and parse the acquired corresponding Bluetooth broadcast signal or the corresponding pairing request information to obtain the corresponding device unique identifier contained in the corresponding Bluetooth broadcast signal or the corresponding pairing request information; in this embodiment, the parsed content of the corresponding Bluetooth broadcast signal or the corresponding pairing request information includes the device unique identifier of the Bluetooth terminal corresponding to the corresponding Bluetooth broadcast signal or the corresponding pairing request information;
[0073] Matching the obtained corresponding device unique identifier with the historical device unique identifier list;
[0074] If the corresponding device unique identifier does not exist in the historical device unique identifier list, the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is set to 0;
[0075] If the corresponding device unique identifier exists in the historical device unique identifier list, the Bluetooth communication data set mapped to the corresponding device unique identifier is extracted from the data storage module according to the corresponding device unique identifier; the Bluetooth communication data set includes the number of failed pairings si,j, the number of successful pairings gi,j, and the continuous communication time after the successful pairing for the fi,jth time between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier. And the geographical location coordinates (Xi, Yi, Zi) and (Xj, Yj, Zj) of both parties when establishing a secure connection;
[0076] Wherein, i represents the unique device identifier of the current Bluetooth terminal, j represents the unique device identifier of the Bluetooth terminal corresponding to the corresponding Bluetooth broadcast signal or pairing request information; si,j and gi,j are both integers greater than or equal to 0, and fi,j=1,2…gi,j;
[0077] According to the obtained Bluetooth communication data set mapped by the corresponding device unique identifier, the pairing evaluation value Pi,j between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is calculated, and the formula is as follows:
[0078]
[0079] Wherein, a1, a2 and a3 are respectively the preset proportional coefficients of the successful pairing ratio, the total continuous communication time of the successful pairing and the distance between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when establishing a secure connection; 0<a1<a2<a3, and a1+a2+a3=1;
[0080] It can be understood that, when the successful pairing ratio is greater, the total successful pairing continuous communication time is greater, and the distance between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is smaller when a secure connection is established, the greater the pairing evaluation value is, indicating that the possibility of correct pairing between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is greater;
[0081] The calculated pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is bound to the corresponding device unique identifier and then sent to the Bluetooth pairing module.
[0082] The above formulas are all calculated by removing dimensions and taking numerical values. The formula is a formula that is closest to the actual situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and preset thresholds in the formula are set by technical personnel in this field according to actual conditions or obtained by simulating a large amount of data.
[0083] In the embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation; the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the method of this embodiment.
[0084] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A Bluetooth encrypted communication system, characterized in that: include: Several Bluetooth terminals, each of which is equipped with a Bluetooth pairing module, a pairing evaluation module, a data storage module and a human-computer interaction module, and information is exchanged between the modules; The Bluetooth pairing module is used to obtain Bluetooth broadcast signals or pairing request information sent by other Bluetooth terminals and send them to the pairing evaluation module, extract the device unique identifier of the corresponding Bluetooth broadcast signal or pairing request information and the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier from the pairing evaluation module for analysis, and send the analysis result to the human-computer interaction interface for display. The user decides whether to establish a secure connection between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier through the human-computer interaction interface, and collects the Bluetooth data of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier and sends them to the data storage module for storage; The pairing evaluation module is used to parse and analyze the acquired Bluetooth broadcast signal or pairing request information, obtain the device unique identifier contained in the corresponding Bluetooth broadcast signal or pairing request information, calculate the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, and send the device unique identifier contained in the Bluetooth broadcast signal or pairing request information and the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier to the Bluetooth pairing module; The pairing methods of the Bluetooth pairing module include: The current Bluetooth terminal is in a pairing state and sends Bluetooth broadcast signals to the surrounding area, scans nearby Bluetooth channels, and listens to Bluetooth broadcast signals sent by other Bluetooth terminals in each Bluetooth channel; After collecting at least one Bluetooth broadcast signal acquired within a second preset time, a Bluetooth broadcast signal set is generated; obtaining from a pairing evaluation module a device unique identifier contained in each Bluetooth broadcast signal in the Bluetooth broadcast signal set and a pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the device unique identifier; Arrange the pairing evaluation values between the Bluetooth terminal corresponding to the device unique identifier contained in each Bluetooth broadcast signal in the acquired Bluetooth broadcast signal set and the current Bluetooth terminal in descending order, select the Bluetooth terminal with the device unique identifier corresponding to the largest pairing evaluation value as the best pairing object for the current Bluetooth terminal, and mark the device unique identifier of the best pairing object as the best; The device unique identifiers of each Bluetooth broadcast signal in the Bluetooth broadcast signal set are sent to the human-computer interaction module in the form of a list for display; the user confirms whether to pair with the Bluetooth terminal corresponding to at least one device unique identifier displayed by the human-computer interaction module within a second preset time; If the second preset time is exceeded, the human-computer interaction module updates the device unique identifier of each Bluetooth broadcast signal in the Bluetooth broadcast signal set; If the pairing is confirmed with the Bluetooth terminal corresponding to the unique identifier of the corresponding device within the second preset time, a pairing request message is generated and sent to the Bluetooth terminal corresponding to the unique identifier of the corresponding device; Within the second preset time after the pairing request information is sent, if the pairing confirmation information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is not obtained, or the pairing rejection information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is obtained, then 1 is added to the original number of failed pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier; and the Bluetooth communication data of the number of failed pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is sent to the data storage module; Within the second preset time after the pairing request information is sent, if the pairing confirmation information returned by the Bluetooth terminal corresponding to the corresponding device unique identifier is obtained, the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier establish a secure connection; at the same time, 1 is added to the original number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, and the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier when the secure connection is established are recorded, and the continuous communication time after this successful pairing begins to be recorded; after the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier are disconnected, the Bluetooth communication data of the obtained number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier, the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier when the secure connection is established, and the continuous communication time after this successful pairing are sent to the data storage module; The pairing method of the Bluetooth pairing module also includes: if the current Bluetooth terminal obtains the pairing request information sent by other Bluetooth terminals, the current Bluetooth terminal needs to determine whether to confirm or reject the obtained pairing request information, and return the pairing confirmation or rejection information; including: If the pairing request information sent by other Bluetooth terminals is obtained, the pairing request information is sent to the pairing evaluation module; Acquire, from a pairing evaluation module, a device unique identifier of the corresponding pairing request information and a pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier; Compare the obtained pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier with the preset pairing evaluation threshold; evaluate and recommend returning information on pairing confirmation or rejection; If the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device is less than the preset pairing evaluation threshold, a prompt message suggesting to return pairing rejection is generated and sent to the human-computer interaction module; if the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device is greater than or equal to the preset pairing evaluation threshold, a prompt message suggesting to return pairing confirmation is generated and sent to the human-computer interaction module; The user decides to return the pairing confirmation or rejection information by himself through the suggestion displayed by the human-computer interaction module of the current Bluetooth terminal; If the user does not return the pairing confirmation message or return the pairing rejection message within the second preset time, then add 1 to the original failed pairing times of the current Bluetooth terminal and the corresponding device unique identifier; and send the acquired Bluetooth communication data of the failed pairing times of the current Bluetooth terminal and the corresponding device unique identifier to the data storage module; If the user returns the pairing confirmation information, the current Bluetooth terminal establishes a secure connection with the Bluetooth terminal corresponding to the unique identifier of the corresponding device; at the same time, 1 is added to the original number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device, and the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when the secure connection is established are recorded, and the continuous communication time after this successful pairing begins to be recorded; after the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device are disconnected, the obtained Bluetooth communication data of the number of successful pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device, the current geographical location coordinates of the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when the secure connection is established, and the continuous communication time after this successful pairing are sent to the data storage module; The processing of the pairing evaluation module includes: Acquire the corresponding Bluetooth broadcast signal or the corresponding pairing request information in real time, parse the acquired corresponding Bluetooth broadcast signal or the corresponding pairing request information, and acquire the corresponding device unique identifier contained in the corresponding Bluetooth broadcast signal or the corresponding pairing request information; match the acquired corresponding device unique identifier with the historical device unique identifier list; If the corresponding device unique identifier does not exist in the historical device unique identifier list, the pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is set to 0; If the corresponding device unique identifier exists in the historical device unique identifier list, the Bluetooth communication data set mapped to the corresponding device unique identifier is extracted from the data storage module according to the corresponding device unique identifier; the Bluetooth communication data set includes the number of failed pairings between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier. i,j , Number of successful pairings g i,j , after successful pairing i,j The continuous communication time Tf i,j and the geographical coordinates of both parties when establishing a secure connection (X i ,Y i ,Z i ) and (X j ,Y j ,Z j ); Wherein, i represents the unique device identifier of the current Bluetooth terminal, j represents the unique device identifier of the Bluetooth terminal corresponding to the corresponding Bluetooth broadcast signal or pairing request information; s i,j and g i,j are all integers greater than or equal to 0, and f i,j =1,2…g i,j ; According to the obtained Bluetooth communication data set mapped by the corresponding device unique identifier, the pairing evaluation value P between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is calculated. i,j , the formula is as follows: Wherein, a1, a2 and a3 are respectively the preset proportional coefficients of the successful pairing ratio, the total continuous communication time of the successful pairing and the distance between the current Bluetooth terminal and the Bluetooth terminal corresponding to the unique identifier of the corresponding device when establishing a secure connection; 0<a1<a2<a3, and a1+a2+a3=1; The calculated pairing evaluation value between the current Bluetooth terminal and the Bluetooth terminal corresponding to the corresponding device unique identifier is bound to the corresponding device unique identifier and then sent to the Bluetooth pairing module.
2. A Bluetooth encrypted communication system according to claim 1, characterized in that: If no Bluetooth broadcast signal emitted by other Bluetooth terminals is heard in the corresponding Bluetooth channel within the first preset time, switch to the adjacent Bluetooth channel to continue listening. Once the Bluetooth broadcast signal of other Bluetooth terminals is heard, the Bluetooth broadcast signal is sent to the pairing evaluation module, and the Bluetooth broadcast signals in each Bluetooth channel are continued to be listened to.
3. A Bluetooth encrypted communication system according to claim 1, characterized in that: The data storage module classifies and stores the acquired Bluetooth communication data; including: The device unique identifier corresponding to the Bluetooth communication data is obtained, and the historical device unique identifier list and the Bluetooth communication data set mapped to the corresponding device unique identifier in the historical device unique identifier list are updated according to the device unique identifier corresponding to the Bluetooth communication data.
4. A Bluetooth encrypted communication system according to claim 3, characterized in that: The historical device unique identifier list includes the device unique identifiers of the Bluetooth terminals corresponding to each Bluetooth broadcast signal monitored by the Bluetooth terminal in the past or each pairing request information received; each device unique identifier included in the historical device unique identifier list is mapped with a Bluetooth communication data set.
