Pairing connection method and system of TWS wireless Bluetooth earphone, and storage medium

By performing feature extraction, training and encryption processing on the characteristic shape image of the wireless Bluetooth headset, the problem of insufficient pairing security of the wireless Bluetooth headset in the existing technology is solved, and efficient pairing connection security and stability are achieved.

CN118785124AActive Publication Date: 2024-10-15NANXIONG SANSHENG INTELLIGENT ELECTRONICS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410905235.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-15
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

The existing wireless Bluetooth headset pairing technology has insufficient security. The complex password and multi-step verification process are cumbersome and vulnerable to decryption attacks, which cannot effectively improve the security of the pairing connection.

Method used

By obtaining the target feature shape image of the headset, using a predefined image feature extraction model for training and encryption processing, the headset pairing code is generated, and the pairing connection method is determined through comprehensive evaluation to prevent unauthorized pairing and improve security and uniqueness.

Benefits of technology

It effectively improves the security and stability of the pairing connection of wireless Bluetooth headsets, prevents unauthorized pairing, and achieves personalized pairing and high-quality connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118785124A_ABST
    Figure CN118785124A_ABST
Patent Text Reader

Abstract

The invention discloses a pairing connection method and system of a TWS wireless Bluetooth earphone and a storage medium. The pairing connection method of the TWS wireless Bluetooth earphone comprises the following steps: acquiring a first target feature shape image and a second target feature shape image; training to generate a first target feature image code and a second target feature image code; analyzing to obtain a target earphone pairing code; performing comparative analysis on the target earphone pairing code and a preset target earphone pairing code to obtain a comparative analysis result of the target earphone pairing code; and determining a TWS wireless Bluetooth earphone pairing connection mode. According to the invention, the pairing connection mode of the TWS wireless Bluetooth headset is determined by carrying out feature extraction, training, encryption and comprehensive evaluation on the first target feature shape image and the second target feature shape image, so that the effect of effectively improving the pairing connection safety of the wireless Bluetooth headset is achieved; the problem that the pairing connection safety of the wireless Bluetooth headset cannot be effectively improved in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

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 popularity of smartphones and mobile Internet, people pay more and more attention to wireless connection and portability. TWS earphones, that is, true wireless stereo earphones, as the representative of wireless audio devices, have gradually become the first choice of consumers. The convenience and stability of its pairing connection method 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 earphone 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 earphone storage box; if so, the earphone 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 and connection instruction generated by the connection request.

[0005] For example, the invention patent with announcement number: CN111629369B announces 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 perform BLE pairing and connection with the terminal by performing a directional BLE broadcast to the terminal according to the Bluetooth connection unique identification information.

[0006] However, in the process of implementing the technical solution 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, the existing wireless Bluetooth headset pairing technology generally uses unique identification, adopts complex passwords or supports multi-step verification, but the process is cumbersome and complicated and may still be attacked by various decryption methods and cannot guarantee security. 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 achieving the effect of effectively improving the pairing and connection security of wireless Bluetooth headsets.

[0009] The embodiment of the present application provides a pairing and connection method for a TWS wireless Bluetooth headset, including 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; and comprehensively evaluating in combination with 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, the characteristic shape standard image contains 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, 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, and obtaining 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; a headphone standard pairing code database, the headphone standard pairing code database contains a target headphone pairing code, a headphone standard pairing public key code and a 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 a first target symmetric encryption code and a 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 with the headphone standard pairing private key code respectively, to generate a first target headphone pairing code and a 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 target headphone pairing code comparison and analysis result is: comparing and analyzing the target headphone pairing code with the preset target headphone pairing code, comprehensively evaluating the comparison and analysis difference between the target headphone pairing code and the preset target headphone pairing code, and obtaining a target headphone pairing difference evaluation value, wherein the target headphone pairing difference evaluation value is used to quantitatively evaluate the comparison and analysis difference between the target headphone pairing code and the preset target headphone pairing code; if the target headphone pairing difference evaluation value is greater than the first difference allowed by the preset target headphone pairing code, the target headphone pairing code is determined to be an unqualified pairing code; if the target headphone pairing difference evaluation value is not greater than the first difference allowed by the preset target headphone pairing code, the target headphone pairing code is determined to be a qualified pairing code.

[0015] Furthermore, the specific process of obtaining the comprehensive quality value of the pairing connection of the target headset is: the comprehensive quality value of the pairing connection of the target headset is obtained by comprehensive analysis and evaluation based on 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 comprehensive quality value of the pairing connection of the target headset is used to describe the comprehensive quality level of the pairing connection of the TWS wireless Bluetooth headset.

[0016] Furthermore, the determination of the pairing and connection mode of the TWS wireless Bluetooth headset 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 with a preset target headset pairing connection comprehensive quality threshold, and if the difference between the two is not greater than a 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 with a 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, used to acquire a first target feature shape image and a second target feature shape image; a TWS wireless Bluetooth headset pairing processing module, used to train the first target feature shape image and the second target feature shape image through a predefined image feature extraction model, and train to generate a first target feature image code and a second target feature image code; a TWS wireless Bluetooth headset pairing processing module, used to train the first target feature shape image and the second target feature shape image through a predefined image feature extraction model, and train 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 and analysis result; the TWS wireless Bluetooth headset pairing determination module is used to comprehensively evaluate based on multiple evaluation results, obtain the target headset pairing connection comprehensive quality value, and determine the TWS wireless Bluetooth headset pairing connection mode.

[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 the present application have at least the following technical effects or advantages:

[0020] 1. By performing feature extraction, training, encryption and comprehensive evaluation on the first target characteristic shape image and the second target characteristic shape image, unauthorized pairing and connection can be effectively prevented, the security of wireless headphones can be improved, and the effect of effectively improving the pairing and connection security of wireless Bluetooth headphones can be achieved, which effectively solves the problem in the prior art that the pairing and connection security of wireless Bluetooth headphones cannot be effectively improved.

[0021] 2. By acquiring the first target characteristic shape image and the second target characteristic shape image, a predefined image feature extraction model is used to train the first target characteristic shape image and the second target characteristic shape image, and the training generates the first target characteristic image code and the second target characteristic image code, thereby realizing personalized pairing, and further realizing the improvement of 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, which is convenient for subsequent judgment and adjustment, thereby achieving the improvement of the stability of the pairing connection of the wireless Bluetooth headset. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A flowchart of a pairing and connection method for a TWS wireless Bluetooth headset provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a structure for determining a pairing and connection mode of a TWS wireless Bluetooth headset according to a pairing and connection method of a TWS wireless Bluetooth headset provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of the structure of a pairing and connection system for a 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 mode 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 embodiment of the present application is to solve the above-mentioned problem that the pairing connection security of the wireless Bluetooth headset cannot be effectively improved. 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 mode 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 in conjunction with the accompanying drawings and specific implementation methods.

[0030] like Figure 1 As shown, it is a flow chart of a pairing and connection method of a TWS wireless Bluetooth headset provided in an embodiment of the present application, and the method comprises the following steps: acquiring 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 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 a preset target earphone pairing code to obtain a target earphone pairing code comparison and analysis result; a comprehensive evaluation is conducted based on multiple evaluation results to obtain a comprehensive quality value of the target earphone pairing connection, and determine the TWS wireless Bluetooth earphone pairing connection method.

[0032] In this embodiment, the predefined image feature extraction model is an algorithm that is 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 encrypting 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 a first target acquisition interval, 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. The difference value of the image captured by the first smart device and the second target 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 image capture 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 image capture threshold, the TWS wireless Bluetooth headset enters the pairing connection image acquisition 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, the 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 other devices, 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 can provide a wealth of tools and algorithms for evaluation and analysis, the first smart device can also obtain the image difference value 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, A 0 =1,2,...,A,A 0 represents the number of image feature points, A represents the total number of image feature points, Indicates that the first smart device captures the first target image A 0 The sharpness value of the image feature points, Indicates that the first smart device and the second target collect image A0 XF1 represents the sharpness value of the image feature point of the first image, XF2 represents the resolution value of the image captured by the first smart device for the first target, XD1 represents the contrast extreme value of the image captured by the first smart device for the first target, and XD2 represents the contrast extreme value of the image captured by the first smart device for 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, 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; according to the image feature extraction model performance value, the predefined image feature extraction model parameters are gradually adjusted using an optimization algorithm, and the first target characteristic shape image and the second target characteristic shape image are transformed 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, which consists of a coding 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 level set layer-by-layer iterative algorithms that can be used for image processing, 3D U-Net is more suitable for achieving the task of obtaining a unique code based on human feature images 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, and the specific calculation formula is as follows:

[0039]

[0040] In the formula, δ represents the performance value of the image feature extraction model, C 0 =1,2,...,C,C 0represents the number of times the image feature extraction model is tested, C represents the total number of times the image feature extraction model is tested, Indicates C 0 The accuracy of the image feature extraction model tested by the image feature extraction model. Indicates C 0 The accuracy of the image feature extraction model tested by the image feature extraction model, Indicates C 0 The area under the ROC curve of the 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 for short) 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, and obtaining the first target image code to be encrypted and the second target image code to be encrypted; a 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 with the headphone standard pairing private key code respectively, 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 a public key and a private key. The public key can be made public and used to encrypt data, while the private key must be kept secret and used to decrypt data; the generation of the first target symmetric encryption code and the second target symmetric encryption code uses symmetric encryption algorithms including AES, DES and 3DES. The characteristic of symmetric encryption is that the same key is used for encryption and decryption; asymmetric encryption algorithms include RSA, ECC and Diffie-Hel lman 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 can be obtained by analyzing the possible security vulnerabilities and risks of the protocol used in the earphone pairing process, and can also be obtained by a calculation formula. The specific calculation formula is as follows:

[0046]

[0047] In the formula, 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. H 0 =1,2,...,H,H 0 represents the number of encryption security evaluations performed on the first target headset pairing code and the second target headset pairing code, respectively, H represents the total number of encryption security evaluations, Indicates H 0 The number of special characters in the pairing code of the first target headset for encryption security assessment, Indicates H 0 The number of special characters in the pairing code of the second target headset for the second encryption security assessment, Indicates H 0 The total number of pairing code character standards for the encryption security assessment, Indicates H 0 The number of decryption attempts for the first target headset pairing code in the encryption security assessment, Indicates H 0The second target earphone pairing code of the encryption security assessment is limited to the number of decryption attempts, θ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 number of decryption attempts corresponding to the security cracking resistance level value, θ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 is true for 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 result of the target headphone pairing code is as follows: comparing and analyzing the target headphone pairing code with the preset target headphone pairing code, comprehensively evaluating the comparison and analysis difference between the target headphone pairing code and the preset target headphone pairing code, and obtaining a target headphone pairing difference evaluation value, wherein the target headphone pairing difference evaluation value is used to quantitatively evaluate the comparison and analysis difference between the target headphone pairing code and the preset target headphone pairing code; if the target headphone pairing difference evaluation value is greater than the first difference allowed by the preset target headphone pairing code, the target headphone pairing code is determined to be an unqualified pairing code; if the target headphone pairing difference evaluation value is not greater than the first difference allowed by the preset target headphone pairing code, the target headphone pairing code is determined to be a qualified pairing code.

[0050] In this embodiment, the target headset pairing difference evaluation value can be obtained by calculating the correlation coefficient between the target headset pairing code and the preset pairing code through correlation analysis, or can be analyzed by the following formula:

[0051]

[0052] In the formula, represents the target headset pairing difference evaluation value, Q0=1,2,...,Q,Q 0 represents the number of times the target headset pairing code is compared with the preset target headset pairing code, and Q represents the total number of times the target headset pairing code is compared with the preset target headset pairing code, and Indicates Q 0 The matching degree value of the pairing code for the number of times of comparative analysis and difference comprehensive evaluation, Indicates Q 0 The number of pairings when the pairing code is successfully paired with the number of times of comparative analysis and comprehensive evaluation, ψ 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 pairing connection of the target earphone is as follows: the comprehensive quality value of the pairing connection of the target earphone is obtained by comprehensive analysis and evaluation based on 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 pairing connection of the target earphone is used to describe the comprehensive quality level of the pairing connection of the TWS wireless Bluetooth headset.

[0055] In this embodiment, the target headset pairing connection comprehensive quality value may be obtained by the above steps, or may be 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 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 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 schematic 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 3, which is a structural schematic diagram of a pairing and connection system of a TWS wireless Bluetooth headset provided in an embodiment of the present application, the pairing system of a 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; a TWS wireless Bluetooth headset pairing data acquisition module, used to acquire a first target feature shape image and a second target feature shape image; a TWS wireless Bluetooth headset pairing processing module, used to train the first target feature shape image and the second target feature shape image through a predefined image feature extraction model, and train to generate a first target feature image code and a second target feature shape image. The module is used for encrypting the first target characteristic image code and the second target characteristic image code through a predefined image code encryption model, obtaining the first target earphone pairing code and the second target earphone pairing code, comparing and analyzing the first target earphone pairing code with the second target earphone pairing code, and obtaining the target earphone pairing code through analysis; the module is used for comparing and analyzing the target earphone pairing code with the preset target earphone pairing code, and obtaining the comparison and analysis result of the target earphone pairing code; the module is used for determining the pairing of the TWS wireless Bluetooth headset by combining multiple evaluation results for comprehensive evaluation, obtaining the comprehensive quality value of the pairing connection of the target earphone, and determining 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 scheme in the above-mentioned embodiment of the present application has at least the following technical effects or advantages: relative to a pairing 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, and trains to generate a first target feature image code and a second target feature image code, thereby realizing personalized pairing, and further realizing the improvement of the uniqueness of the pairing connection of the wireless Bluetooth headset; relative to a pairing connection method, device, Bluetooth headset and TWS headset of a Bluetooth headset announced in the invention patent with announcement number: CN111629369B, the embodiment of the present application comprehensively evaluates by combining multiple evaluation results to obtain a comprehensive quality value of the pairing connection of the target headset, and determines the pairing 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 further realizing the improvement of the stability of the pairing connection of the wireless Bluetooth headset.

[0063] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, 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 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 flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, 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 flowchart and / or block diagram. 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 capable of directing a computer or other programmable data processing device to operate 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 A 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 operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions 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 other 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 can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A pairing and connection method for a TWS wireless Bluetooth headset. It is characterized in that The steps include: Acquire a first target characteristic shape image and a second target characteristic shape image; The first target feature shape image and the second target feature shape image are trained by a predefined image feature extraction model to generate a first target feature image code and a second target feature image code; Encrypt the first target feature image code and the second target feature 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, 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 and analysis result; Combined with multiple evaluation results, the comprehensive quality value of the target headset pairing connection is obtained to determine the TWS wireless Bluetooth headset pairing connection method.

2. The pairing and connection method of the TWS wireless Bluetooth headset as claimed in claim 1, Features: 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 acquisition image of the first intelligent device, and after the first target acquisition interval time, performs a camera scan through the first intelligent image acquisition device to obtain a second target acquisition image of the first intelligent device; Compare the first target captured image of the first smart device with the second target captured image of the first smart device, and record the difference value between the first target captured image of the first smart device and the second target captured image of the first smart device as the first smart device captured image difference value, which 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 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 the TWS wireless Bluetooth headset as claimed in claim 1, Features: The specific process of training the first target feature shape image and the second target feature 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; Acquire a plurality of groups of characteristic shape standard images and a plurality of groups of headphone standard pairing codes through a characteristic shape standard image database, train a predefined image feature extraction model through the plurality of groups of characteristic shape standard images and the plurality of groups of headphone standard pairing codes, evaluate the performance of the predefined image feature extraction model to obtain an image feature extraction model performance value, and use the image feature extraction model performance value 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 image feature extraction model performance value, and the first target feature shape image and the second target feature shape image are transformed through the 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 the TWS wireless Bluetooth headset as claimed in claim 1, Features: 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: 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, and obtaining 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 the TWS wireless Bluetooth headset as claimed in claim 1, Features: The specific analysis process of comparing and analyzing the first target headset pairing code with the second target headset pairing code is as follows: Perform encryption security evaluation on the first target headset pairing code and the second target headset pairing code respectively, and obtain security cracking resistance level values ​​of the first target headset pairing code and the second target headset pairing code, wherein the security cracking resistance level values ​​are used to evaluate the resistance level 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 the TWS wireless Bluetooth headset as claimed in claim 1, Features: The specific process of obtaining the comparison and analysis result 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 comparison and analysis difference between 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 comparison and analysis difference between 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 target headset pairing code allowed first difference value, the target headset pairing code is determined to be an unqualified pairing code; If the target headset pairing difference evaluation value is not greater than the preset target headset pairing code allowed first difference, the target headset pairing code is determined to be a qualified pairing code.

7. The pairing and connection method of the TWS wireless Bluetooth headset as claimed in claim 6, Features: The specific process of obtaining the target headset pairing connection comprehensive quality value is as follows: The comprehensive quality value of the target earphone pairing connection is obtained by comprehensive analysis and evaluation based on 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 target earphone pairing connection comprehensive quality value is used to describe the comprehensive quality level of the pairing connection of the TWS wireless Bluetooth headset.

8. The pairing and connection method of the TWS wireless Bluetooth headset as claimed in claim 6, Features: 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.

9. A pairing and connection system for a TWS wireless Bluetooth headset. It is 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 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 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.

10. A computer-readable storage medium for storing a program, It is 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 8 is implemented.

Citation Information

Patent Citations

  • Pairing method and system of Bluetooth device

    CN104378145A

  • Earphone with camera shooting function, and method and device for outputting control signal

    CN109862274A

  • Learning earphone intelligent unhealthy sound eliminating method based on air conduction

    CN115662395A

  • Pairing method, pairing apparatus, smart terminal, and smart card

    WO2017076249A1