A pairing connection method, system and storage medium for TWS wireless Bluetooth headset
By extracting, training and encrypting the feature shape images of wireless Bluetooth headphones, and determining the pairing connection method based on multiple evaluation results, the security and stability of pairing connection of wireless Bluetooth headphones is solved, and personalized and stable pairing connection is achieved.
Patent Information
- Application Number
- CN202410905235.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The existing wireless Bluetooth headset pairing technology has insufficient security, the complex password verification process is cumbersome and vulnerable to decryption attacks, and cannot effectively improve the security and stability of the pairing connection.
By acquiring and training feature shape images, extracting models and encrypting models using predefined image features, generating and comparing headphone pairing codes, and determining the pairing connection method based on multiple evaluation results, realizing personalized and stable pairing connections.
Improves the security and stability of wireless Bluetooth headset pairing connection, prevents unauthorized pairing, and realizes personalized and stable pairing connection.
Smart Images

Figure CN118785124B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Bluetooth communication connection technology, and in particular to a pairing connection method, system and storage medium for a TWS wireless Bluetooth headset. Background Art
[0002] With the increasing popularity of smartphones and mobile internet, people are increasingly focused on wireless connectivity and portability. As a representative of wireless audio devices, TWS earphones, also known as true wireless stereo earphones, are gradually becoming the preferred choice among consumers. The convenience and stability of their pairing and connection methods are crucial to the user experience.
[0003] Existing TWS headset pairing connection technologies mainly include Bluetooth pairing and smart pairing. Bluetooth pairing is to pair and connect with the headset through the Bluetooth function of the smartphone, while smart pairing involves touch operation of the headset and voice assistant wake-up.
[0004] For example, the patent application with publication number CN112040457A discloses a pairing and connection method, device and system for TWS wireless Bluetooth headsets, including: when the headset storage box detects that the lid is open, it determines whether there is a first wireless headset and / or a second wireless headset in the headset storage box; if so, the headset storage box generates an activation instruction for activating the first wireless headset and / or the second wireless headset; based on the activation instruction, the first wireless headset and / or the second wireless headset is activated, and the Bluetooth broadcast signal of the terminal to be connected is received; the first wireless headset and / or the second wireless headset sends a connection request to the terminal to be connected based on the Bluetooth broadcast signal; the terminal to be connected performs pairing and connection based on the pairing connection instruction generated by the connection request.
[0005] For example, the invention patent announcement with announcement number: CN111629369B discloses a pairing and connection method, device, Bluetooth headset and TWS headset for Bluetooth headsets, including: after the first headset is BLE paired and connected with the second headset and the terminal, the first headset obtains the Bluetooth connection unique identification information of the terminal; the Bluetooth connection unique identification information is sent to the second headset, so that the second headset can be BLE paired and connected with the terminal by performing a directional BLE broadcast to the terminal based on the Bluetooth connection unique identification information.
[0006] However, in the process of implementing the technical solutions of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems:
[0007] In the prior art, in order to enhance security, existing wireless Bluetooth headset pairing technology generally uses unique identification, complex passwords or supports multi-step verification. However, the process is cumbersome and complicated and may still be attacked by various decryption methods and security cannot be guaranteed. There is a problem that the pairing connection security of wireless Bluetooth headsets cannot be effectively improved. Summary of the Invention
[0008] The embodiments of the present application solve the problem in the prior art that the pairing and connection security of wireless Bluetooth headsets cannot be effectively improved by providing a pairing and connection method, system and storage medium for TWS wireless Bluetooth headsets, thereby effectively improving the pairing and connection security of wireless Bluetooth headsets.
[0009] An embodiment of the present application provides a pairing and connection method for a TWS wireless Bluetooth headset, comprising the following steps: obtaining a first target characteristic shape image and a second target characteristic shape image; training the first target characteristic shape image and the second target characteristic shape image through a predefined image feature extraction model to generate a first target characteristic image code and a second target characteristic image code; encrypting the first target characteristic image code and the second target characteristic image code respectively through a predefined image code encryption model to obtain a first target headset pairing code and a second target headset pairing code, comparing and analyzing the first target headset pairing code with the second target headset pairing code to obtain a target headset pairing code; comparing and analyzing the target headset pairing code with a preset target headset pairing code to obtain a target headset pairing code comparison and analysis result; comprehensively evaluating based on multiple evaluation results to obtain a comprehensive quality value of the target headset pairing connection and determine the pairing and connection mode of the TWS wireless Bluetooth headset.
[0010] Furthermore, the specific acquisition process of obtaining the first target characteristic shape image and the second target characteristic shape image is as follows: when the TWS wireless Bluetooth headset receives a wireless Bluetooth pairing connection request, the TWS wireless Bluetooth headset enters a pairing connection image acquisition mode, and performs a camera scan through the first intelligent image acquisition device to obtain a first target acquisition image of the first intelligent device. After the first target acquisition interval time, the camera scan is performed through the first intelligent image acquisition device to obtain a second target acquisition image of the first intelligent device; the first target acquisition image of the first intelligent device is compared with the second target acquisition image of the first intelligent device, and the difference value between the first target acquisition image of the first intelligent device and the second target acquisition image of the first intelligent device is recorded as The first smart device collects an image difference value, and the first smart device collects an image difference value used to describe the difference level between the first target collected image of the first smart device and the second target collected image of the first smart device; if the first smart device collects an image difference value greater than a preset image collection threshold, the TWS wireless Bluetooth headset exits the pairing connection image collection mode; if the first smart device collects an image difference value less than the preset image collection threshold, the TWS wireless Bluetooth headset enters the pairing connection image collection and processing mode, and performs digitization, feature extraction, matching and classification processing on the first target collected image of the first smart device and the second target collected image of the first smart device to obtain a first target characteristic shape image and a second target characteristic shape image.
[0011] Furthermore, the specific process of training the first target characteristic shape image and the second target characteristic shape image through the predefined image feature extraction model is as follows: a characteristic shape standard image database, the characteristic shape standard image database contains characteristic shape standard images and headphone standard pairing codes, and the characteristic shape standard images contain image feature data of the first target characteristic shape image and the second target characteristic shape image; obtaining several groups of characteristic shape standard images and several groups of headphone standard pairing codes through the characteristic shape standard image database, training the predefined image feature extraction model through the several groups of characteristic shape standard images and several groups of headphone standard pairing codes, evaluating the performance of the predefined image feature extraction model to obtain an image feature extraction model performance value, and the image feature extraction model performance value is used to evaluate the performance level of the predefined image feature extraction model; gradually adjusting the predefined image feature extraction model parameters according to the image feature extraction model performance value using an optimization algorithm, transforming the first target characteristic shape image and the second target characteristic shape image through the predefined image feature extraction model training to obtain the first target characteristic image code and the second target characteristic image code.
[0012] Furthermore, the specific encryption process of encrypting the first target characteristic image code and the second target characteristic image code respectively through the predefined image code encryption model is: performing data conversion on the first target characteristic image code and the second target characteristic image code, converting the first target characteristic image code and the second target characteristic image code into binary data format to obtain the first target image code to be encrypted and the second target image code to be encrypted; the headphone standard pairing code database, the headphone standard pairing code database contains the target headphone pairing code, the headphone standard pairing public key code and the headphone standard pairing private key code; using the predefined image code encryption model to encrypt the first target image code to be encrypted and the second target image code to be encrypted with the headphone standard pairing public key code respectively, to generate the first target symmetric encryption code and the second target symmetric encryption code; using the predefined image code encryption model to encrypt the first target symmetric encryption code and the second target symmetric encryption code respectively with the headphone standard pairing private key code, to generate the first target headphone pairing code and the second target headphone pairing code.
[0013] Furthermore, the specific analysis process of comparing and analyzing the first target headphone pairing code with the second target headphone pairing code is: performing encryption security evaluation on the first target headphone pairing code and the second target headphone pairing code respectively to obtain security cracking resistance level values of the first target headphone pairing code and the second target headphone pairing code, and the security cracking resistance level values are used to evaluate the resistance level of the first target headphone pairing code and the second target headphone pairing code to password security cracking; comparing and analyzing the security cracking resistance level value of the first target headphone pairing code with the security cracking resistance level value of the second target headphone pairing code, if the security cracking resistance level value of the first target headphone pairing code is higher, the first target headphone pairing code is recorded as the target headphone pairing code, and if the security cracking resistance level value of the second target headphone pairing code is higher, the second target headphone pairing code is recorded as the target headphone pairing code.
[0014] Furthermore, the specific process of obtaining the comparative analysis result of the target earphone pairing code is as follows: comparing and analyzing the target earphone pairing code with the preset target earphone pairing code, comprehensively evaluating the comparative analysis difference between the target earphone pairing code and the preset target earphone pairing code, and obtaining a target earphone pairing difference evaluation value, wherein the target earphone pairing difference evaluation value is used to quantitatively evaluate the comparative analysis difference between the target earphone pairing code and the preset target earphone pairing code; if the target earphone pairing difference evaluation value is greater than the first difference allowed by the preset target earphone pairing code, the target earphone pairing code is determined to be an unqualified pairing code; if the target earphone pairing difference evaluation value is not greater than the first difference allowed by the preset target earphone pairing code, the target earphone pairing code is determined to be a qualified pairing code.
[0015] Furthermore, the specific process of obtaining the target headset pairing connection comprehensive quality value is: the target headset pairing connection comprehensive quality value is obtained by comprehensively analyzing and evaluating the image difference value collected by the first smart device, the image feature extraction model performance value, the security cracking resistance level value and the target headset pairing difference evaluation value. The target headset pairing connection comprehensive quality value is used to describe the comprehensive quality level of the pairing connection of the TWS wireless Bluetooth headset.
[0016] Furthermore, the determination of the TWS wireless Bluetooth headset pairing connection mode specifically includes: if the target headset pairing code is determined to be an unqualified pairing code, the target headset pairing connection comprehensive quality value is fixed to a predefined first fixed value, and the TWS wireless Bluetooth headset pairing connection mode is set to not agree to the wireless Bluetooth pairing connection request; if the target headset pairing code is determined to be a qualified pairing code, the target headset pairing connection comprehensive quality value is compared and analyzed with the preset target headset pairing connection comprehensive quality threshold, and if the difference between the two is not greater than the predefined allowable error value, the TWS wireless Bluetooth headset pairing connection mode is set to agree to the wireless Bluetooth pairing connection request; if the target headset pairing code is determined to be a qualified pairing code, the target headset pairing connection comprehensive quality value is compared and analyzed with the preset target headset pairing connection comprehensive quality threshold, and if the difference between the two is greater than the predefined allowable error value, the TWS wireless Bluetooth headset pairing connection mode is set to not agree to the wireless Bluetooth pairing connection request.
[0017] The embodiment of the present application provides a pairing connection, system and storage medium system of a TWS wireless Bluetooth headset, including: a TWS wireless Bluetooth headset pairing data acquisition module, a TWS wireless Bluetooth headset pairing processing module, a TWS wireless Bluetooth headset pairing analysis module and a TWS wireless Bluetooth headset pairing judgment module; a TWS wireless Bluetooth headset pairing data acquisition module for acquiring a first target feature shape image and a second target feature shape image; a TWS wireless Bluetooth headset pairing processing module for training the first target feature shape image and the second target feature shape image through a predefined image feature extraction model, and training to generate a first target feature image code and a second target feature image code ... The wireless Bluetooth headset pairing comparison module is used to encrypt the first target feature image code and the second target feature image code respectively through a predefined image code encryption model to obtain the first target headset pairing code and the second target headset pairing code, and compare and analyze the first target headset pairing code with the second target headset pairing code to obtain the target headset pairing code; the TWS wireless Bluetooth headset pairing analysis module is used to compare and analyze the target headset pairing code with the preset target headset pairing code to obtain the target headset pairing code comparison analysis result; the TWS wireless Bluetooth headset pairing determination module is used to comprehensively evaluate based on multiple evaluation results, obtain the comprehensive quality value of the target headset pairing connection, and determine the TWS wireless Bluetooth headset pairing connection method.
[0018] An embodiment of the present application provides a computer-readable storage medium for storing a program, which, when executed by a processor, implements a pairing and connection method for a TWS wireless Bluetooth headset.
[0019] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:
[0020] 1. By extracting, training, encrypting and comprehensively evaluating the first target characteristic shape image and the second target characteristic shape image, unauthorized pairing and connection can be effectively prevented, and the security of wireless headphones can be improved. This effectively improves the pairing and connection security of wireless Bluetooth headphones, and effectively solves the problem in the existing technology that the pairing and connection security of wireless Bluetooth headphones cannot be effectively improved.
[0021] 2. By obtaining the first target characteristic shape image and the second target characteristic shape image, the first target characteristic shape image and the second target characteristic shape image are trained using a predefined image feature extraction model, and the first target characteristic image code and the second target characteristic image code are generated through training, thereby achieving personalized pairing, thereby improving the uniqueness of the pairing connection of the wireless Bluetooth headset.
[0022] 3. By combining multiple evaluation results for comprehensive evaluation, the comprehensive quality value of the target headset pairing connection is obtained, and the pairing connection method of the TWS wireless Bluetooth headset is determined, so as to comprehensively evaluate the effect of using image feature extraction and encryption technology, facilitate subsequent judgment and adjustment, and thus achieve the improvement of the stability of the pairing connection of the wireless Bluetooth headset. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 Flowchart of the pairing and connection method of the TWS wireless Bluetooth headset provided in an embodiment of the present application;
[0024] Figure 2 A schematic diagram of the structure of determining the pairing and connection mode of the TWS wireless Bluetooth headset provided in an embodiment of the present application;
[0025] Figure 3 This is a structural diagram of the pairing and connection system of the TWS wireless Bluetooth headset provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The embodiments of the present application solve the problem in the prior art that the pairing and connection security of wireless Bluetooth headsets cannot be effectively improved by providing a pairing and connection method, system and storage medium for TWS wireless Bluetooth headsets. The pairing and connection method of the TWS wireless Bluetooth headset is determined by performing feature extraction, training, encryption and comprehensive evaluation on the first target feature shape image and the second target feature shape image, thereby effectively improving the pairing and connection security of the wireless Bluetooth headset.
[0027] The technical solution in the embodiments of the present application is to solve the above-mentioned problem of not being able to effectively improve the pairing connection security of wireless Bluetooth headsets. The overall idea is as follows:
[0028] By performing feature extraction, training, encryption and comprehensive evaluation on the first target characteristic shape image and the second target characteristic shape image, the pairing connection method of the TWS wireless Bluetooth headset is determined, thereby effectively improving the pairing connection security of the wireless Bluetooth headset.
[0029] In order to better understand the above technical solution, the above technical solution will be described in detail below with reference to the accompanying drawings and specific implementation methods.
[0030] like Figure 1 As shown, it is a flow chart of the pairing and connection method of the TWS wireless Bluetooth headset provided in an embodiment of the present application, and the method includes the following steps: obtaining a first target characteristic shape image and a second target characteristic shape image;
[0031] The first target feature shape image and the second target feature shape image are trained through a predefined image feature extraction model to generate a first target feature image code and a second target feature image code; the first target feature image code and the second target feature image code are respectively encrypted through a predefined image code encryption model to obtain a first target earphone pairing code and a second target earphone pairing code, and the first target earphone pairing code is compared and analyzed with the second target earphone pairing code to obtain the target earphone pairing code; the target earphone pairing code is compared and analyzed with the preset target earphone pairing code to obtain the target earphone pairing code comparison and analysis result; a comprehensive evaluation is conducted based on multiple evaluation results to obtain the comprehensive quality value of the target earphone pairing connection and determine the pairing connection method of the TWS wireless Bluetooth earphone.
[0032] In this embodiment, the predefined image feature extraction model is an algorithm that has been widely studied and applied in the field of machine learning, which captures important features in the image, such as image recognition, classification, detection and segmentation. The predefined image feature extraction models include convolutional neural networks, sparse coding, independent component analysis and principal component analysis; the predefined image code encryption models are encryption algorithms specially designed for image data. These algorithms can ensure the security of image content while maintaining image availability. The predefined image code encryption models include a combination of scrambling and encryption algorithms, image encryption based on genetic algorithms, image encryption based on wavelet transforms and image encryption based on chaos theory.
[0033] Furthermore, the specific acquisition process of obtaining the first target characteristic shape image and the second target characteristic shape image is as follows: when the TWS wireless Bluetooth headset receives a wireless Bluetooth pairing connection request, the TWS wireless Bluetooth headset enters a pairing connection image acquisition mode, and performs a camera scan through a first intelligent image acquisition device to obtain a first target acquisition image of the first intelligent device. After the first target acquisition interval time, a camera scan is performed through the first intelligent image acquisition device to obtain a second target acquisition image of the first intelligent device; the first target acquisition image of the first intelligent device is compared with the second target acquisition image of the first intelligent device, and the first target acquisition image of the first intelligent device is compared with the second target acquisition image of the first intelligent device. Prepare a difference value of the image captured by the second target, which is recorded as the difference value of the image captured by the first smart device. The difference value of the image captured by the first smart device is used to describe the difference level between the first target captured image of the first smart device and the second target captured image of the first smart device; if the difference value of the image captured by the first smart device is greater than the preset captured image threshold, the TWS wireless Bluetooth headset exits the pairing connection image acquisition mode; if the difference value of the image captured by the first smart device is not greater than the preset captured image threshold, the TWS wireless Bluetooth headset enters the pairing connection image acquisition and processing mode, and performs digitization, feature extraction, matching and classification processing on the first target captured image of the first smart device and the second target captured image of the first smart device to obtain the first target characteristic shape image and the second target characteristic shape image.
[0034] In this embodiment, a wireless Bluetooth pairing connection request refers to the process of establishing a connection between two Bluetooth devices. When a Bluetooth device wants to pair with another device, it will start searching for surrounding Bluetooth devices. This process is called "Bluetooth discovery." In addition to using professional image evaluation software such as ImageJ and MATLAB, which provide a wealth of tools and algorithms for evaluation and analysis, the image difference value collected by the first smart device can also be obtained through a calculation formula. The specific calculation formula is as follows:
[0035]
[0036] In the formula, β represents the difference value of the image collected by the first intelligent device, α represents the noise correction factor of the image collected by the first intelligent device, and the image feature points corresponding to the first target image collected by the first intelligent device and the second target image collected by the first intelligent device are numbered in sequence, A0=1,2,...,A, A0 represents the number of the image feature points, A represents the total number of the image feature points, Indicates the sharpness value of the A0th image feature point of the first target image captured by the first smart device, represents the sharpness value of the A0th image feature point of the image captured by the first smart device and the second target, XF1 represents the resolution value of the image captured by the first smart device and the second target, XF2 represents the resolution value of the image captured by the first smart device and the second target, XD1 represents the contrast extreme value of the image captured by the first smart device and the second target, XD2 represents the contrast extreme value of the image captured by the first smart device and the second target.
[0037] Furthermore, the specific process of training the first target characteristic shape image and the second target characteristic shape image through the predefined image feature extraction model is as follows: a characteristic shape standard image database, the characteristic shape standard image database contains characteristic shape standard images and headphone standard pairing codes, and the characteristic shape standard images contain image feature data of the first target characteristic shape image and the second target characteristic shape image; obtaining several groups of characteristic shape standard images and several groups of headphone standard pairing codes through the characteristic shape standard image database, training the predefined image feature extraction model through several groups of characteristic shape standard images and several groups of headphone standard pairing codes, evaluating the performance of the predefined image feature extraction model to obtain an image feature extraction model performance value, and the image feature extraction model performance value is used to evaluate the performance level of the predefined image feature extraction model; gradually adjusting the predefined image feature extraction model parameters according to the image feature extraction model performance value using an optimization algorithm, and transforming the first target characteristic shape image and the second target characteristic shape image through the predefined image feature extraction model training to obtain the first target characteristic image code and the second target characteristic image code.
[0038] In this embodiment, the predefined image feature extraction model can select 3D U-Net. 3D U-Net is an image segmentation algorithm that consists of an encoding layer and a decoding layer. It is particularly suitable for segmenting images of human ear cartilage and its substructures. This algorithm can effectively extract detailed anatomical structure information from the feature image, thereby providing a unique code for each individual. In addition, although there are other algorithms such as multi-layer Mumford-Shah image segmentation, denoising and reconstruction methods based on the level set layer-by-layer iterative algorithm that can be used for image processing, 3D U-Net is more suitable for achieving the task of obtaining a unique code based on the human body feature image due to its high efficiency and accuracy in processing complex medical images. In addition to using K-fold cross-validation analysis to obtain the performance value of the image feature extraction model, it can also be obtained through a calculation formula. The specific calculation formula is as follows:
[0039]
[0040] Where δ represents the performance value of the image feature extraction model, C0 = 1, 2, ..., C, C0 represents the number of times the image feature extraction model is tested, and C represents the total number of times the image feature extraction model is tested. represents the accuracy of the image feature extraction model tested in the C0th image feature extraction model, represents the accuracy of the image feature extraction model tested in the C0th image feature extraction model. represents the area under the ROC curve of the C0th image feature extraction model test, φ1 represents the weight factor of the image feature extraction model accuracy corresponding to the image feature extraction model performance value, and φ2 represents the weight factor of the image feature extraction model precision corresponding to the image feature extraction model performance value.
[0041] The area under the ROC curve (AUC) is a statistical indicator used to evaluate the performance of a classification model. The AUC value ranges from 0.5 to 1. The larger the value, the stronger the classification ability of the model.
[0042] Furthermore, the specific encryption process of encrypting the first target characteristic image code and the second target characteristic image code respectively through the predefined image code encryption model is: performing data conversion on the first target characteristic image code and the second target characteristic image code, converting the first target characteristic image code and the second target characteristic image code into binary data format to obtain the first target image code to be encrypted and the second target image code to be encrypted; the headphone standard pairing code database, the headphone standard pairing code database contains the target headphone pairing code, the headphone standard pairing public key code and the headphone standard pairing private key code; using the predefined image code encryption model to encrypt the first target image code to be encrypted and the second target image code to be encrypted with the headphone standard pairing public key code respectively, to generate the first target symmetric encryption code and the second target symmetric encryption code; using the predefined image code encryption model to encrypt the first target symmetric encryption code and the second target symmetric encryption code respectively with the headphone standard pairing private key code, to generate the first target headphone pairing code and the second target headphone pairing code.
[0043] In this embodiment, the headset standard pairing code database contains public and private keys. The public key can be made public and is used to encrypt data, while the private key must be kept secret and is used to decrypt data. Symmetric encryption algorithms such as AES, DES, and 3DES are used to generate the first-target and second-target symmetric encryption codes. Symmetric encryption uses the same key for both encryption and decryption. Asymmetric encryption algorithms include RSA, ECC, and Diffie-Helpman key exchange.
[0044] Furthermore, the specific analysis process of comparing and analyzing the first target headphone pairing code with the second target headphone pairing code is as follows: performing encryption security evaluation on the first target headphone pairing code and the second target headphone pairing code respectively to obtain security cracking resistance level values of the first target headphone pairing code and the second target headphone pairing code, and the security cracking resistance level values are used to evaluate the resistance level of the first target headphone pairing code and the second target headphone pairing code to password security cracking; comparing and analyzing the security cracking resistance level value of the first target headphone pairing code with the security cracking resistance level value of the second target headphone pairing code, if the security cracking resistance level value of the first target headphone pairing code is higher, the first target headphone pairing code is recorded as the target headphone pairing code, and if the security cracking resistance level value of the second target headphone pairing code is higher, the second target headphone pairing code is recorded as the target headphone pairing code.
[0045] In this embodiment, the security cracking resistance level value is obtained not only by analyzing the potential security vulnerabilities and risks of the protocol used in the headphone pairing process, but also by a calculation formula. The specific calculation formula is as follows:
[0046]
[0047] Wherein, Z=1,2 is set. When Z=1, it represents the first target headset pairing code. When Z=2, it represents the second target headset pairing code. ω1 represents the security cracking resistance level value of the first target headset pairing code. ω2 represents the security cracking resistance level value of the second target headset pairing code. H0=1,2,...,H, H0 represents the number of encryption security evaluation times of the first target headset pairing code and the second target headset pairing code respectively. H represents the total number of encryption security evaluation times. Indicates the number of special characters in the pairing code of the first target headset for the H0th encryption security evaluation. Indicates the number of special characters in the second target headset pairing code for the H0th encryption security evaluation. Indicates the total number of character standards for the pairing code for the H0th encryption security assessment. Indicates the number of decryption attempts for the first target headset pairing code in the H0th encryption security assessment. represents the number of limited decryption attempts for the second target earphone pairing code of the H0th encryption security assessment, θ1 represents the weight factor of the number of special characters corresponding to the security cracking resistance level value, θ2 represents the weight factor of the limited decryption attempts corresponding to the security cracking resistance level value, and θ3 represents the weight factor of the ratio of the number of special characters to the total number of characters in the pairing code corresponding to the security cracking resistance level value.
[0048] The number of special characters indicates that when this formula is used to evaluate the first target headphone pairing code, it is the number of special characters in the first target headphone pairing code. The same applies to other data. This formula is used to evaluate the security cracking resistance level value of the first target headphone pairing code and the security cracking resistance level value of the second target headphone pairing code.
[0049] Furthermore, the specific process of obtaining the comparison and analysis results of the target earphone pairing code is as follows: comparing and analyzing the target earphone pairing code with the preset target earphone pairing code, comprehensively evaluating the comparison and analysis differences between the target earphone pairing code and the preset target earphone pairing code, and obtaining a target earphone pairing difference evaluation value, which is used to quantitatively evaluate the comparison and analysis differences between the target earphone pairing code and the preset target earphone pairing code; if the target earphone pairing difference evaluation value is greater than the first difference allowed by the preset target earphone pairing code, the target earphone pairing code is determined to be an unqualified pairing code; if the target earphone pairing difference evaluation value is not greater than the first difference allowed by the preset target earphone pairing code, the target earphone pairing code is determined to be a qualified pairing code.
[0050] In this embodiment, the target headphone pairing difference evaluation value can be obtained by calculating the correlation coefficient between the target headphone pairing code and the preset pairing code through correlation analysis, or by analyzing the following formula:
[0051]
[0052] Where, represents the target headset pairing difference evaluation value, Q0=1,2,...,Q, Q0 represents the number of times the target headset pairing code is compared and analyzed with the preset target headset pairing code, Q represents the total number of times the target headset pairing code is compared and analyzed with the preset target headset pairing code, Indicates the matching degree value of the pairing code for the Q0th comparison and analysis difference comprehensive evaluation times, The number of pairings when the pairing code pairing is successful after the Q0th comparison and analysis difference comprehensive evaluation number is obtained, and ψ represents the correction factor of the underlying protocol of the pairing connection of the wireless Bluetooth headset.
[0053] The pairing code matching degree value represents the degree of difference between the target headset pairing code and the preset target headset pairing code. The target headset pairing code and the preset target headset pairing code are compared to see whether the values of the same digits are the same. The ratio of the same digits to the total number of digits is the pairing code matching degree value.
[0054] Furthermore, the specific process of obtaining the comprehensive quality value of the target earphone pairing connection is: the comprehensive quality value of the target earphone pairing connection is obtained by comprehensively analyzing and evaluating the image difference value collected by the first smart device, the image feature extraction model performance value, the security cracking resistance level value and the target earphone pairing difference evaluation value. The comprehensive quality value of the target earphone pairing connection is used to describe the comprehensive quality level of the pairing connection of the TWS wireless Bluetooth headset.
[0055] In this embodiment, the target headphone pairing connection comprehensive quality value may be obtained by the above steps or analyzed by the following formula:
[0056]
[0057] In the formula, ζ represents the comprehensive quality value of the target headset pairing connection, β represents the difference value of the image collected by the first smart device, δ represents the performance value of the image feature extraction model, and ω represents the security cracking resistance level value. Indicates the target headset pairing difference evaluation value.
[0058] Furthermore, the pairing and connection mode of the TWS wireless Bluetooth headset is determined, specifically including: if the target headset pairing code is determined to be an unqualified pairing code, the target headset pairing connection comprehensive quality value is fixed to a predefined first fixed value, and the TWS wireless Bluetooth headset pairing connection mode is set to not agree to the wireless Bluetooth pairing connection request; if the target headset pairing code is determined to be a qualified pairing code, the target headset pairing connection comprehensive quality value is compared and analyzed with the preset target headset pairing connection comprehensive quality threshold, and if the difference between the two is not greater than the predefined allowable error value, the TWS wireless Bluetooth headset pairing connection mode is set to agree to the wireless Bluetooth pairing connection request; if the target headset pairing code is determined to be a qualified pairing code, the target headset pairing connection comprehensive quality value is compared and analyzed with the preset target headset pairing connection comprehensive quality threshold, and if the difference between the two is greater than the predefined allowable error value, the TWS wireless Bluetooth headset pairing connection mode is set to not agree to the wireless Bluetooth pairing connection request.
[0059] In this embodiment, if Figure 2 As shown, it is a structural diagram of determining the pairing and connection mode of the TWS wireless Bluetooth headset provided in an embodiment of the present application.
[0060] like Figure 3As shown, it is a structural diagram of the pairing and connection system of the TWS wireless Bluetooth headset provided in an embodiment of the present application. The pairing system of the TWS wireless Bluetooth headset provided in an embodiment of the present application includes: a TWS wireless Bluetooth headset pairing data acquisition module, a TWS wireless Bluetooth headset pairing processing module, a TWS wireless Bluetooth headset pairing analysis module and a TWS wireless Bluetooth headset pairing judgment module; the TWS wireless Bluetooth headset pairing data acquisition module is used to obtain the first target feature shape image and the second target feature shape image; the TWS wireless Bluetooth headset pairing processing module is used to train the first target feature shape image and the second target feature shape image through a predefined image feature extraction model, and the training generates the first target feature image code and the second target feature shape image. The first target characteristic image code is encrypted by a predefined image code encryption model, and the second target characteristic image code is encrypted by a predefined image code encryption model to obtain a first target headset pairing code and a second target headset pairing code, and the first target headset pairing code is compared and analyzed with the second target headset pairing code to obtain a target headset pairing code; the TWS wireless Bluetooth headset pairing analysis module is used to compare and analyze the target headset pairing code with the preset target headset pairing code to obtain a target headset pairing code comparison and analysis result; the TWS wireless Bluetooth headset pairing determination module is used to comprehensively evaluate multiple evaluation results to obtain a comprehensive quality value of the target headset pairing connection and determine the pairing connection mode of the TWS wireless Bluetooth headset.
[0061] Among them, an embodiment of the present application also provides a computer-readable storage medium for storing a program, which, when executed by a processor, implements a pairing and connection method for a TWS wireless Bluetooth headset.
[0062] The technical solutions in the above-mentioned embodiments of the present application have at least the following technical effects or advantages: relative to the pairing and connection method, device and system of a TWS wireless Bluetooth headset disclosed in the patent application with publication number: CN112040457A, the embodiment of the present application obtains a first target feature shape image and a second target feature shape image, and uses a predefined image feature extraction model to train the first target feature shape image and the second target feature shape image to generate a first target feature image code and a second target feature image code, thereby achieving personalized pairing, and thus improving the uniqueness of the pairing connection of the wireless Bluetooth headset; relative to the pairing and connection method, device, Bluetooth headset and TWS headset of the invention patent announcement with publication number: CN111629369B, the embodiment of the present application obtains a comprehensive quality value of the target headset pairing connection by combining multiple evaluation results for comprehensive evaluation, determines the pairing and connection mode of the TWS wireless Bluetooth headset, thereby comprehensively evaluating the effect of using image feature extraction and encryption technology, facilitating subsequent judgment and adjustment, and thus achieving the improvement of the stability of the pairing connection of the wireless Bluetooth headset.
[0063] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0064] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0065] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0066] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0067] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0068] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A pairing and connection method for a TWS wireless Bluetooth headset, characterized in that: The following steps are included: Acquire a first target characteristic shape image and a second target characteristic shape image; The first target characteristic shape image and the second target characteristic shape image are trained by a predefined image feature extraction model to generate a first target characteristic image code and a second target characteristic image code; Encrypt the first target characteristic image code and the second target characteristic image code respectively using a predefined image code encryption model to obtain a first target headset pairing code and a second target headset pairing code, and compare and analyze the first target headset pairing code with the second target headset pairing code to obtain a target headset pairing code; Compare and analyze the target headset pairing code with the preset target headset pairing code to obtain the target headset pairing code comparison analysis result; Combine multiple evaluation results to obtain the target headset pairing connection comprehensive quality value and determine the TWS wireless Bluetooth headset pairing connection method; The specific process of obtaining the target headphone pairing connection comprehensive quality value is as follows: The comprehensive quality value of the target earphone pairing connection is obtained by comprehensively analyzing and evaluating the image difference value collected by the first smart device, the image feature extraction model performance value, the security cracking resistance level value and the target earphone pairing difference evaluation value. The comprehensive quality value of the target earphone pairing connection is used to describe the comprehensive quality level of the pairing connection of the TWS wireless Bluetooth headset.
2. The pairing and connection method of a TWS wireless Bluetooth headset according to claim 1, characterized in that: The specific acquisition process of acquiring the first target characteristic shape image and the second target characteristic shape image is as follows: When the TWS wireless Bluetooth headset receives a wireless Bluetooth pairing connection request, the TWS wireless Bluetooth headset enters a pairing connection image acquisition mode, performs a camera scan through the first intelligent image acquisition device, obtains a first target captured image of the first intelligent device, and after the first target capture interval time, performs a camera scan through the first intelligent image acquisition device to obtain a second target captured image of the first intelligent device; Comparing the first target image captured by the first smart device with the second target image captured by the first smart device, and recording a difference value between the first target image captured by the first smart device and the second target image captured by the first smart device as a first smart device captured image difference value, wherein the first smart device captured image difference value is used to describe a difference level between the first target image captured by the first smart device and the second target image captured by the first smart device; If the difference value of the image captured by the first smart device is greater than the preset image capture threshold, the TWS wireless Bluetooth headset exits the pairing connection image capture mode; If the difference value of the image captured by the first smart device is not greater than the preset image capture threshold, the TWS wireless Bluetooth headset enters the pairing connection image capture and processing mode, and performs digitization, feature extraction, matching and classification processing on the first target captured image of the first smart device and the second target captured image of the first smart device to obtain the first target characteristic shape image and the second target characteristic shape image.
3. The pairing and connection method of a TWS wireless Bluetooth headset according to claim 1, characterized in that: The specific process of training the first target characteristic shape image and the second target characteristic shape image by using the predefined image feature extraction model is as follows: A characteristic shape standard image database, wherein the characteristic shape standard image database includes characteristic shape standard images and a standard pairing code for headphones, wherein the characteristic shape standard images include image feature data of a first target characteristic shape image and a second target characteristic shape image; Acquiring a plurality of sets of standard feature shape images and a plurality of sets of standard headphone pairing codes from a standard feature shape image database, training a predefined image feature extraction model using the plurality of sets of standard feature shape images and the plurality of sets of standard headphone pairing codes, and evaluating the performance of the predefined image feature extraction model to obtain an image feature extraction model performance value, wherein the image feature extraction model performance value is used to evaluate the performance level of the predefined image feature extraction model; The predefined image feature extraction model parameters are gradually adjusted using an optimization algorithm according to the performance value of the image feature extraction model. The first target feature shape image and the second target feature shape image are transformed through predefined image feature extraction model training to obtain the first target feature image code and the second target feature image code.
4. The pairing and connection method of a TWS wireless Bluetooth headset according to claim 1, characterized in that: The specific encryption process of encrypting the first target feature image code and the second target feature image code respectively through the predefined image code encryption model is as follows: Performing data conversion on the first target characteristic image code and the second target characteristic image code, converting the first target characteristic image code and the second target characteristic image code into a binary data format to obtain a first target image code to be encrypted and a second target image code to be encrypted; A headset standard pairing code database, wherein the headset standard pairing code database includes a target headset pairing code, a headset standard pairing public key code, and a headset standard pairing private key code; Use a predefined image code encryption model to encrypt the first target image code to be encrypted and the second target image code to be encrypted with the headset standard pairing public key code to generate a first target symmetric encryption code and a second target symmetric encryption code; The first target symmetric encryption code and the second target symmetric encryption code are respectively encrypted with the headset standard pairing private key code using a predefined image code encryption model to generate a first target headset pairing code and a second target headset pairing code.
5. The pairing and connection method of a TWS wireless Bluetooth headset according to claim 1, characterized in that: The specific analysis process of comparing and analyzing the first target headset pairing code with the second target headset pairing code is as follows: Performing encryption security assessments on the first target headset pairing code and the second target headset pairing code, respectively, to obtain security cracking resistance values of the first target headset pairing code and the second target headset pairing code, wherein the security cracking resistance values are used to assess the resistance levels of the first target headset pairing code and the second target headset pairing code to password security cracking; The security cracking resistance level value of the first target headphone pairing code is compared and analyzed with the security cracking resistance level value of the second target headphone pairing code. If the security cracking resistance level value of the first target headphone pairing code is higher, the first target headphone pairing code is recorded as the target headphone pairing code. If the security cracking resistance level value of the second target headphone pairing code is higher, the second target headphone pairing code is recorded as the target headphone pairing code.
6. The pairing and connection method of a TWS wireless Bluetooth headset according to claim 1, characterized in that: The specific process of obtaining the comparison and analysis results of the target headset pairing code is as follows: Comparing and analyzing the target headset pairing code with the preset target headset pairing code, and comprehensively evaluating the difference between the comparison analysis of the target headset pairing code and the preset target headset pairing code to obtain a target headset pairing difference evaluation value, wherein the target headset pairing difference evaluation value is used to quantitatively evaluate the difference between the comparison analysis of the target headset pairing code and the preset target headset pairing code; If the target headset pairing difference evaluation value is greater than the preset first allowable difference value of the target headset pairing code, the target headset pairing code is determined to be an unqualified pairing code; If the target earphone pairing difference evaluation value is not greater than the preset first allowable difference value of the target earphone pairing code, the target earphone pairing code is determined to be a qualified pairing code.
7. The pairing and connection method of a TWS wireless Bluetooth headset according to claim 6, characterized in that: Determining the TWS wireless Bluetooth headset pairing connection method specifically includes: If the target headset pairing code is determined to be an unqualified pairing code, the target headset pairing connection comprehensive quality value is fixed to a predefined first fixed value, and the TWS wireless Bluetooth headset pairing connection mode is set to not agree to the wireless Bluetooth pairing connection request; If the target headset pairing code is determined to be a qualified pairing code, the target headset pairing connection comprehensive quality value is compared and analyzed with the preset target headset pairing connection comprehensive quality threshold. If the difference between the two is not greater than the predefined allowable error value, the TWS wireless Bluetooth headset pairing connection mode is set to agree to the wireless Bluetooth pairing connection request; If the target headset pairing code is determined to be a qualified pairing code, the target headset pairing connection comprehensive quality value is compared and analyzed with the preset target headset pairing connection comprehensive quality threshold. If the difference between the two is greater than the predefined allowable error value, the TWS wireless Bluetooth headset pairing connection mode is set to not agree to the wireless Bluetooth pairing connection request.
8. A pairing and connection system for a TWS wireless Bluetooth headset, characterized in that: include: TWS wireless Bluetooth headset pairing data acquisition module, TWS wireless Bluetooth headset pairing processing module, TWS wireless Bluetooth headset pairing analysis module and TWS wireless Bluetooth headset pairing judgment module; A TWS wireless Bluetooth headset pairing data acquisition module is used to acquire a first target characteristic shape image and a second target characteristic shape image; A TWS wireless Bluetooth headset pairing processing module is used to train the first target feature shape image and the second target feature shape image through a predefined image feature extraction model to generate a first target feature image code and a second target feature image code; The TWS wireless Bluetooth headset pairing comparison module is used to encrypt the first target feature image code and the second target feature image code respectively through a predefined image code encryption model to obtain the first target headset pairing code and the second target headset pairing code, and compare and analyze the first target headset pairing code with the second target headset pairing code to obtain the target headset pairing code; The TWS wireless Bluetooth headset pairing analysis module is used to compare and analyze the target headset pairing code with the preset target headset pairing code to obtain the target headset pairing code comparison analysis result; The TWS wireless Bluetooth headset pairing determination module is used to comprehensively evaluate multiple evaluation results, obtain the comprehensive quality value of the target headset pairing connection, and determine the TWS wireless Bluetooth headset pairing connection method; The specific process of obtaining the target headphone pairing connection comprehensive quality value is as follows: The comprehensive quality value of the target earphone pairing connection is obtained by comprehensively analyzing and evaluating the image difference value collected by the first smart device, the image feature extraction model performance value, the security cracking resistance level value and the target earphone pairing difference evaluation value. The comprehensive quality value of the target earphone pairing connection is used to describe the comprehensive quality level of the pairing connection of the TWS wireless Bluetooth headset.
9. A computer-readable storage medium for storing a program, characterized in that: When the program is executed by the processor, the pairing and connection method of the TWS wireless Bluetooth headset as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
A Bluetooth headset, its pairing and connection method, device, and TWS earphones
CN111629369B
Pairing connection method, device and system of TWS wireless Bluetooth headset
CN112040457A
Pairing method and system of Bluetooth device
CN104378145A
Pairing method, pairing apparatus, smart terminal, and smart card
WO2017076249A1