CN116614806A - Bluetooth pairing method and device, electronic equipment and storage medium - Google Patents

Bluetooth pairing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116614806A
CN116614806A CN202310882005.0A CN202310882005A CN116614806A CN 116614806 A CN116614806 A CN 116614806A CN 202310882005 A CN202310882005 A CN 202310882005A CN 116614806 A CN116614806 A CN 116614806A
Authority
CN
China
Prior art keywords
electronic device
bluetooth
target
power parameter
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310882005.0A
Other languages
Chinese (zh)
Other versions
CN116614806B (en
Inventor
唐能福
智钢
龚卫林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310882005.0A priority Critical patent/CN116614806B/en
Publication of CN116614806A publication Critical patent/CN116614806A/en
Application granted granted Critical
Publication of CN116614806B publication Critical patent/CN116614806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/041Key generation or derivation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a Bluetooth pairing method, a Bluetooth pairing device, electronic equipment and a storage medium, equipment information, current time and power parameters of first electronic equipment are acquired, an initial key pair is generated according to the equipment information, and rolling iteration times n are calculated according to the current time. And rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key. Generating Bluetooth broadcasting information comprising a power parameter ciphertext, and broadcasting the Bluetooth broadcasting information so that the second electronic device can judge whether to carry out Bluetooth pairing with the first electronic device according to the Bluetooth broadcasting information, wherein the power parameter ciphertext is obtained by encrypting a target public key. Because the target key pair of the encryption power parameter is related to the equipment information of the first electronic equipment, a malicious attacker cannot acquire the initial key pair, and the password strength of the target key pair is further improved in a rolling iteration mode, so that the safety of Bluetooth pairing is improved.

Description

Bluetooth pairing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of wireless technologies, and in particular, to a bluetooth pairing method, a bluetooth pairing device, an electronic device, and a storage medium.
Background
In the existing Bluetooth pairing technology, when a Bluetooth headset is close to a mobile phone, the mobile phone can be Bluetooth paired with and connected with the mobile phone after the Bluetooth headset is found. After the Bluetooth connection is established, the Bluetooth headset can realize the business processes of music playing, call receiving/making and the like on the mobile phone based on the Bluetooth protocol.
The Bluetooth headset can send Bluetooth low-power-consumption broadcast in the process of approaching to the mobile phone; the mobile phone can carry out broadcast scanning, and after the mobile phone scans the Bluetooth low-power-consumption broadcast sent by the Bluetooth headset, the distance between the Bluetooth headset and the mobile phone can be determined according to the Bluetooth low-power-consumption broadcast. When the distance between the mobile phone and the Bluetooth headset is smaller than or equal to a preset value, the mobile phone determines that the Bluetooth headset is nearby, and pops up a pairing connection interface on a display screen. After the user indicates the pairing connection, the mobile phone and the Bluetooth earphone are subjected to Bluetooth pairing and Bluetooth connection is established.
However, when a malicious attacker acquires the bluetooth low energy broadcast format, the bluetooth low energy broadcast is forged, and the bluetooth low energy broadcast is transmitted with maximum power, so that the terminals of surrounding users can pop up a dialog box indicating whether to pair with the bluetooth device. At this time, if the user determines to pair with the bluetooth device, a malicious attacker may acquire personal information such as a phone, a short message record, etc. of the user through a bluetooth protocol, so that personal information security of the user cannot be ensured.
Disclosure of Invention
The embodiment of the application aims to provide a Bluetooth pairing method, a Bluetooth pairing device, electronic equipment and a storage medium, so as to improve the safety of Bluetooth pairing. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a bluetooth pairing method, applied to a first electronic device, where the method includes:
acquiring equipment information, current time and power parameters of the first electronic equipment;
generating an initial key pair according to the equipment information;
according to the current time, calculating to obtain the rolling iteration times n;
rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key;
generating Bluetooth broadcasting information comprising power parameter ciphertext, and broadcasting the Bluetooth broadcasting information so that second electronic equipment judges whether to carry out Bluetooth pairing with first electronic equipment according to the Bluetooth broadcasting information, wherein the power parameter ciphertext is obtained through encryption of the target public key.
In a possible embodiment, the bluetooth broadcast information includes a first bluetooth broadcast message and a second bluetooth broadcast message;
The method further comprises the steps of:
acquiring an association code;
the generating bluetooth broadcast information including the power parameter ciphertext and broadcasting the bluetooth broadcast information includes:
generating a first Bluetooth broadcast message comprising the association code and the target public key; encoding the power parameter by using the target public key to obtain a power parameter ciphertext; generating a second Bluetooth broadcast message comprising the power parameter ciphertext and the association code;
and broadcasting the first Bluetooth broadcast message and the second Bluetooth broadcast message.
In one possible embodiment, the first bluetooth broadcast message is a bluetooth low energy broadcast message and the second bluetooth broadcast message is a near discovery broadcast message.
In a possible embodiment, the calculating the number of rolling iterations n according to the current time includes:
acquiring the curing time of the first electronic equipment;
and calculating the difference between the current time and the curing time, and dividing the difference by a preset value to obtain the rolling iteration number n.
In one possible embodiment, the method further comprises:
detecting the system time of the first electronic equipment after the first electronic equipment is powered on;
Receiving a third Bluetooth broadcast message broadcast by the second electronic device under the condition that the system time of the first electronic device is the initial system time, wherein the third Bluetooth broadcast message comprises the system time of the second electronic device;
and updating the system time of the first electronic equipment according to the system time in the third Bluetooth broadcast message.
In a possible embodiment, the generating an initial key pair according to the device information includes:
performing abstract calculation on the equipment information to obtain abstract information;
the summary information is divided into an initial private key and an initial public key of an initial key pair.
In a second aspect, an embodiment of the present application provides a bluetooth pairing method, applied to a cloud platform, where the method includes:
acquiring equipment information of first electronic equipment;
generating an initial key pair of the first electronic device according to the device information;
acquiring current time, and calculating to obtain rolling iteration times n according to the current time;
rolling the initial key pair for n times to obtain a target key pair of the first electronic device, wherein the target key pair comprises a target public key and a target private key;
Adding the target key pair of the first electronic equipment to a preset list;
and responding to the request of the second electronic device, and sending the target key pair to the second electronic device so that the second electronic device performs Bluetooth pairing with the first electronic device based on the target key pair.
In a third aspect, an embodiment of the present application provides a bluetooth pairing method, applied to a second electronic device, where the method includes:
after receiving Bluetooth broadcast information of a first electronic device, acquiring a target private key of the first electronic device; the Bluetooth broadcasting information comprises a power parameter ciphertext, and the power parameter ciphertext is obtained by encrypting the power parameter of the first electronic device through a target public key of the first electronic device;
decrypting the power parameter ciphertext by using the target private key to obtain the power parameter of the first electronic device;
calculating the distance between the first electronic equipment and the second electronic equipment according to the power parameter of the first electronic equipment;
and when the distance is smaller than a preset distance threshold, controlling the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment.
In a possible embodiment, the bluetooth broadcast information includes a first bluetooth broadcast message and a second bluetooth broadcast message; the first Bluetooth broadcast message comprises the target public key and an associated code; the second Bluetooth broadcast message comprises an association code and a power parameter ciphertext;
after receiving the bluetooth broadcast information of the first electronic device, obtaining a target private key of the first electronic device includes:
after receiving a first Bluetooth broadcast message of a first electronic device, analyzing the first Bluetooth broadcast message to obtain a target public key and an association code of the first electronic device;
acquiring a target private key of the first electronic device according to the target public key;
after receiving a second Bluetooth broadcast message, analyzing the second Bluetooth broadcast message to obtain an association code and a power parameter ciphertext;
decrypting the power parameter ciphertext by using the target private key to obtain the power parameter of the first electronic device, including:
and when the association code in the first Bluetooth broadcast message is the same as the association code in the second Bluetooth broadcast message, decrypting the power parameter ciphertext in the second Bluetooth broadcast message by using the target private key to obtain the power parameter of the first electronic device.
In a possible embodiment, the obtaining, according to the target public key, a target private key of the first electronic device includes:
sending a request for acquiring a target private key of the first electronic device to a cloud platform, wherein the request comprises a target public key;
and acquiring a target private key obtained by the cloud platform through searching the target public key.
In a fourth aspect, an embodiment of the present application provides a bluetooth pairing device, applied to a first electronic device, where the device includes:
the first acquisition module is used for acquiring equipment information, current time and power parameters of the first electronic equipment;
the first generation module is used for generating an initial key pair according to the equipment information;
the first calculation module is used for calculating the rolling iteration times n according to the current time;
the first iteration module is used for carrying out rolling iteration on the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key;
and the second generation module is used for generating Bluetooth broadcast information comprising a power parameter ciphertext and broadcasting the Bluetooth broadcast information so that the second electronic equipment judges whether to carry out Bluetooth pairing with the first electronic equipment according to the Bluetooth broadcast information, wherein the power parameter ciphertext is obtained by encrypting the target public key.
In a possible embodiment, the bluetooth broadcast information includes a first bluetooth broadcast message and a second bluetooth broadcast message;
the apparatus also includes means for performing an acquisition of the association code;
the second generation module is used for generating a first Bluetooth broadcast message comprising the association code and the target public key; encoding the power parameter by using the target public key to obtain a power parameter ciphertext; generating a second Bluetooth broadcast message comprising the power parameter ciphertext and the association code; and broadcasting the first Bluetooth broadcast message and the second Bluetooth broadcast message.
In one possible embodiment, the first bluetooth broadcast message is a bluetooth low energy broadcast message and the second bluetooth broadcast message is a near discovery broadcast message.
In a possible embodiment, the first iteration module is configured to obtain a curing time of the first electronic device; and calculating the difference between the current time and the curing time, and dividing the difference by a preset value to obtain the rolling iteration number n.
In one possible embodiment, the apparatus further comprises means for:
detecting the system time of the first electronic equipment after the first electronic equipment is powered on;
Receiving a third Bluetooth broadcast message broadcast by the second electronic device under the condition that the system time of the first electronic device is the initial system time, wherein the third Bluetooth broadcast message comprises the system time of the second electronic device;
and updating the system time of the first electronic equipment according to the system time in the third Bluetooth broadcast message.
In a possible embodiment, the first generating module is configured to perform summary calculation on the device information to obtain summary information; the summary information is divided into an initial private key and an initial public key of an initial key pair.
In a fifth aspect, a bluetooth pairing device is applied to a cloud platform, and the device includes:
the second acquisition module is used for acquiring the equipment information of the first electronic equipment;
a third generation module, configured to generate an initial key pair of the first electronic device according to the device information;
the second calculation module is used for obtaining the current time and calculating the rolling iteration times n according to the current time;
the second iteration module is used for carrying out rolling iteration on the initial key pair for n times to obtain a target key pair of the first electronic device, wherein the target key pair comprises a target public key and a target private key;
The adding module is used for adding the target key pair of the first electronic equipment to a preset list;
and the sending module is used for responding to the request of the second electronic equipment and sending the target key pair to the second electronic equipment so as to enable the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment based on the target key pair.
In a sixth aspect, a bluetooth pairing device is applied to a second electronic device, and the device includes:
the third acquisition module is used for acquiring a target private key of the first electronic equipment after receiving Bluetooth broadcast information of the first electronic equipment; the Bluetooth broadcasting information comprises a power parameter ciphertext, and the power parameter ciphertext is obtained by encrypting the power parameter of the first electronic device through a target public key of the first electronic device;
the decryption module is used for decrypting the power parameter ciphertext by utilizing the target private key to obtain the power parameter of the first electronic device;
a third calculation module for calculating the distance between the first electronic device and the second electronic device according to the power parameter of the first electronic device;
and the pairing module is used for controlling the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment when the distance is smaller than a preset distance threshold value.
In a possible embodiment, the bluetooth broadcast information includes a first bluetooth broadcast message and a second bluetooth broadcast message; the first Bluetooth broadcast message comprises the target public key and an associated code; the second Bluetooth broadcast message comprises an association code and a power parameter ciphertext;
the third obtaining module is configured to analyze a first bluetooth broadcast message of a first electronic device after receiving the first bluetooth broadcast message, to obtain a target public key and an association code of the first electronic device; acquiring a target private key of the first electronic device according to the target public key; after receiving a second Bluetooth broadcast message, analyzing the second Bluetooth broadcast message to obtain an association code and a power parameter ciphertext;
and the decryption module is used for decrypting the power parameter ciphertext in the second Bluetooth broadcast message by using the target private key when the association code in the first Bluetooth broadcast message is the same as the association code in the second Bluetooth broadcast message, so as to obtain the power parameter of the first electronic device.
In a possible embodiment, the third obtaining module is configured to send a request for obtaining a target private key of the first electronic device to a cloud platform, where the request includes a target public key;
And acquiring a target private key obtained by the cloud platform through searching the target public key.
In a seventh aspect, an embodiment of the present application provides an electronic device, including:
one or more processors and memory;
the memory is coupled to the one or more processors, the memory is configured to store computer program code, the computer program code comprising computer instructions that the one or more processors invoke the computer instructions to cause the electronic device to perform the bluetooth pairing method according to any of the present applications.
In an eighth aspect, an embodiment of the present application further provides a computer readable storage medium, including a computer program, where the computer program when executed on an electronic device causes the electronic device to execute the bluetooth pairing method according to any one of the present application.
The embodiment of the application has the beneficial effects that:
according to the Bluetooth pairing method, the Bluetooth pairing device, the electronic equipment and the storage medium, equipment information, current time and power parameters of the first electronic equipment are acquired, an initial key pair is generated according to the equipment information, and rolling iteration times n are calculated according to the current time. And rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key. Generating Bluetooth broadcasting information comprising a power parameter ciphertext, and broadcasting the Bluetooth broadcasting information so that the second electronic device can judge whether to carry out Bluetooth pairing with the first electronic device according to the Bluetooth broadcasting information, wherein the power parameter ciphertext is obtained by encrypting a target public key. Because the target key pair of the encryption power parameter is related to the device information of the first electronic device, the initial key pair cannot be obtained under the condition that a malicious attacker does not know the device information of the first electronic device, and the password strength of the target key pair is further improved in a rolling iteration mode. Therefore, the problem that personal information of a user cannot be ensured due to the fact that a malicious attacker realizes Bluetooth pairing through forging Bluetooth low-power-consumption broadcasting can be avoided to a great extent, and the safety of Bluetooth pairing is improved.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the application, and other embodiments may be obtained according to these drawings to those skilled in the art.
FIG. 1a is a schematic diagram of a Bluetooth pairing scenario;
FIG. 1b is a schematic diagram of a Bluetooth pairing method in the related art;
fig. 2 is a schematic hardware structure of a first electronic device according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of a second electronic device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 5 is a first schematic diagram of a bluetooth pairing method according to an embodiment of the present application;
fig. 6 is a second schematic diagram of a bluetooth pairing method according to an embodiment of the application;
fig. 7 is a third schematic diagram of a bluetooth pairing method according to an embodiment of the application;
Fig. 8 is a fourth schematic diagram of a bluetooth pairing method according to an embodiment of the application;
fig. 9 is a fifth schematic diagram of a bluetooth pairing method according to an embodiment of the application;
fig. 10 is a first schematic diagram of a bluetooth pairing device according to an embodiment of the application;
fig. 11 is a second schematic diagram of a bluetooth pairing device according to an embodiment of the application;
fig. 12 is a third schematic diagram of a bluetooth pairing device according to an embodiment of the application;
fig. 13 is a schematic diagram of an electronic device according to an embodiment of the application.
Detailed Description
For a better understanding of the technical solution of the present application, the following detailed description of the embodiments of the present application refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one way of describing an association of associated objects, meaning that there may be three relationships, e.g., a and/or b, which may represent: the first and second cases exist separately, and the first and second cases exist separately. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Fig. 1a is a schematic diagram of a bluetooth pairing scenario provided in an embodiment of the present application, and referring to fig. 1a, the implementation environment includes a first electronic device 110 (in the figure, a bluetooth headset is taken as an example), a cloud platform 120, and a second electronic device 130 (in the figure, a mobile phone is taken as an example).
Bluetooth connection can be performed between the first electronic device 110 and the second electronic device 130, and network connection can be performed between the second electronic device 130 and the cloud platform 120. In one possible embodiment, the first electronic device 110 may be a bluetooth headset, a bluetooth watch, a bluetooth bracelet, a bluetooth speaker, a bluetooth keyboard, or the like. Cloud platform 120 is a server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, distribution networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. The second electronic device 130 may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like. The types of the first electronic device 110, the cloud platform 120, and the second electronic device 130 are not limited in the embodiments of the present application.
Fig. 1b is a schematic diagram of a bluetooth pairing method in the related art, referring to fig. 1b, in the related art, a bluetooth headset starts a page scan & inquiry scan required scan mode, and sends a close discovery broadcast message to a mobile phone. The handset determines the distance between the bluetooth headset and the handset based on the received signal strength indication (received signal strength indication, RSSI). When the distance between the mobile phone and the Bluetooth headset is smaller than or equal to a preset value, the mobile phone determines that the Bluetooth headset is nearby, and pops up a popup frame on the display screen, wherein the popup frame is used for indicating whether a user performs pairing or not. After the user indicates the pairing connection, a pairing request is sent to the Bluetooth headset, so that Bluetooth pairing is carried out between the mobile phone and the Bluetooth headset, and Bluetooth connection is established.
However, when a malicious attacker acquires the bluetooth low energy broadcast format, the bluetooth low energy broadcast is forged, and the bluetooth low energy broadcast is transmitted with maximum power, so that surrounding mobile phones of users can pop up a frame indicating whether bluetooth pairing is performed. At this time, if the user determines to perform bluetooth pairing, a malicious attacker can obtain personal information such as a phone call, a short message record and the like of the user through a bluetooth protocol, and the personal information security of the user cannot be ensured.
In order to reduce the situation that a malicious attacker illegally acquires personal information of a user by forging Bluetooth low-power-consumption broadcasting to a certain extent, the embodiment of the application provides a Bluetooth pairing method, a Bluetooth pairing device, electronic equipment and a storage medium.
In one embodiment, a first electronic device may include:
one or more processors and memory;
the memory is coupled to the one or more processors, the memory is for storing computer program code comprising computer instructions that the one or more processors invoke the computer instructions to cause the electronic device to perform any of the Bluetooth pairing methods of the present application applied to the first electronic device.
Referring to fig. 2, fig. 2 is a schematic hardware structure of a first electronic device according to an embodiment of the present application, and in one possible embodiment, the first electronic device includes: a voice trigger module 1102, an audio IC module 1105, a bluetooth low energy module 1103, a conventional bluetooth module 1104, a microphone 1101, and a speaker 1106. The audio IC module 1105 has the processor and the memory of the first electronic device integrated therein. The conventional bluetooth module 1104 is in a sleep state when the first electronic device 110 is powered off or is in a non-connected phone call. The voice trigger module 1102 is electrically connected with the microphone 1101, the bluetooth low energy module 1103 and the conventional bluetooth module 1104, respectively, the audio IC module 1105 is electrically connected with the speaker 1106, the bluetooth low energy module 1103 and the conventional bluetooth module 1104, respectively, and the bluetooth low energy module 1103 is electrically connected with the conventional bluetooth module 1104.
In one possible embodiment, the microphone 1101 is always in a state of listening for user voice commands and forwards received voice commands to the voice trigger module 1102.
The voice trigger module 1102 transmits the received voice command to the bluetooth low energy module 1103.
The bluetooth low energy module 1103 wakes up when receiving the wake-up signal, prepares for a subsequent voice interaction with the second electronic device 130, and sends a feedback voice to the audio IC module 1105 while being woken up.
The speaker 1106 sends feedback voice to the audio IC module 1105 at the same time as the bluetooth low energy module 1103 is awake.
The audio IC module 1105 is configured to receive a voice signal sent by the bluetooth low energy module 1103 and transmit the voice signal to the speaker 1106.
The conventional bluetooth module 1104 is configured to establish a bluetooth connection with the second electronic device 130 after being awakened, and cooperate with the audio IC module 1105 to complete a voice call, and after the call is completed, the bluetooth module 1103 controls the bluetooth module to enter a sleep state again.
Referring to fig. 3, fig. 3 is a schematic hardware structure of a second electronic device according to an embodiment of the present application, where the electronic device may be a mobile phone, a tablet computer, or the like; the second electronic device includes:
One or more processors 310 and a memory 330;
the memory 330 is coupled to the one or more processors 310, the memory 330 is configured to store computer program code comprising computer instructions that the one or more processors 310 invoke to cause the second electronic device to perform any of the Bluetooth pairing methods of the present application as applied to the second electronic device.
In a possible embodiment, the second electronic device may further comprise a transceiver 320, a display unit 370. The display unit 370 may include a display screen. The processor 310, the transceiver 320 and the memory 330 may communicate with each other via an internal connection path for transferring control and/or data signals, the memory 330 being adapted to store a computer program, the processor 310 being adapted to call and run the computer program from the memory 330.
In one possible embodiment, the second electronic device may further include an antenna 340 for transmitting the wireless signal output by the transceiver 320.
The processor 310 may be combined with the memory 330 as a single processing device, more commonly a separate component, and the processor 310 is configured to execute program code stored in the memory 330 to perform the functions described above. In particular, the memory 330 may also be integrated into the processor 310 or may be separate from the processor 310.
In addition, in order to further improve the functionality of the second electronic device, the second electronic device may further comprise one or more of an input unit 360, an audio circuit 380, a camera 390, a sensor 301, etc., and the audio circuit may further comprise a speaker 381, a microphone 382, etc.
In one possible embodiment, the second electronic device may further include a power supply 350 for providing power to various devices or circuits in the second electronic device.
It will be appreciated that the operations and/or functions of the respective modules in the second electronic device shown in fig. 3 are respectively for implementing the corresponding flows in the method embodiments described below. In particular, reference will be made to the following description of the method embodiments, and detailed descriptions will be omitted here as appropriate to avoid redundancy.
It will be appreciated that the processor 310 in the second electronic device shown in fig. 3 may include one or more processing units, such as: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (imagesigna lprocessor, ISP), a controller, a video codec, a digital signal processor (digitalsignal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interfaces may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulsecode modulation, PCM) interface, a universal asynchronous receiver transmitter (universalasynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not limit the structure of the second electronic device. In other embodiments of the present application, the second electronic device may also use different interfacing manners, or a combination of multiple interfacing manners, in the foregoing embodiments.
It will be appreciated that the power supply 350 shown in fig. 3 is used to power the processor 310, the memory 330, the display unit 370, the camera 390, the input unit 360, the transceiver 320, and the like. The antenna 340 is used for transmitting and receiving electromagnetic wave signals. Each antenna in the second electronic device may be operable to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 340 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
Transceiver 320 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (globalnavigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., for use on a second electronic device. Transceiver 320 may be one or more devices that integrate at least one communication processing module. The transceiver 320 receives electromagnetic waves via the antenna 340, modulates the electromagnetic wave signals and filters the signals, and transmits the processed signals to the processor 310. The transceiver 320 may also receive signals to be transmitted from the processor 310, frequency modulate them, amplify them, and convert them to electromagnetic waves for radiation via the antenna 340.
In some embodiments, the antenna 340 and transceiver 320 of the second electronic device are coupled such that the second electronic device may communicate with the network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (codedivision multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (globalnavigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellitesystem, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The second electronic device implements display functions through the GPU, the display unit 370, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display unit 370 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display unit 370 is for displaying images, videos, and the like. The display unit 370 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light emitting diode (organic lightemitting diode, OLED), an active matrix organic light emitting diode or active matrix organic light emitting diode (activematrix organiclight emitting diode, AMOLED), a flexible light emitting diode (flex light-emitting diode, FLED), a mini, micro led, micro-OLED, a quantum dot light emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the second electronic device may include 1 or N display units 370, N being a positive integer greater than 1.
The second electronic device may implement a photographing function through the ISP, the camera 390, the video codec, the GPU, the display unit 370, the application processor, and the like.
The ISP is used to process the data fed back by the camera 390. For example, when video is recorded, the camera is turned on, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image.
The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, an ISP may be provided in the camera 390. The camera 390 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, the second electronic device may include 1 or N cameras 390, N being a positive integer greater than 1. The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the second electronic device selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The second electronic device may support one or more video codecs. In this way, the second electronic device may play or record video in multiple encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. The NPU may implement applications such as intelligent cognition of the second electronic device, for example: image recognition, face recognition, speech recognition, text understanding, etc.
Memory 330 may be used to store computer-executable program code that includes instructions. Memory 330 may include a stored program area and a stored data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the second electronic device (e.g., audio data, phonebook, etc.), and so on. In addition, the memory 330 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 310 performs various functional applications of the second electronic device and data processing by executing instructions stored in the memory 330 and/or instructions stored in a memory provided in the processor.
The second electronic device may implement audio functions through audio circuitry 380, speaker 381, microphone 382, and an application processor, among others. Such as music playing, recording, etc.
Audio circuit 380 is used to convert digital audio information to an analog audio signal output and also to convert an analog audio input to a digital audio signal. The audio circuit 380 may also be used to encode and decode audio signals. In some embodiments, audio circuit 380 may be disposed in processor 310, or some of the functional blocks of audio circuit 380 may be disposed in processor 310.
A speaker 381, also known as a "horn", is used to convert audio electrical signals into sound signals. The second electronic device may listen to music, or to hands-free conversations, through speaker 381.
A microphone 382, also known as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a sound signal to the microphone 382 by making a sound near the microphone 382. The second electronic device may be provided with at least one microphone 382. In other embodiments, the second electronic device may be provided with two microphones 382, which may also perform a noise reduction function in addition to collecting sound signals. In other embodiments, the second electronic device may also be provided with three, four or more microphones 382 to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The bluetooth pairing method in the embodiment of the present application may be implemented by a system architecture shown in fig. 4, referring to fig. 4, where the system architecture of the second electronic device includes a kernel portion, a frame layer portion, and an application layer portion; the kernel part comprises a driving layer and a real-time operating system, wherein the driving layer comprises a GPU (graphic processor), a display driver (in the figure, an LCD driver is concrete), a TP driver (touch screen driver), keys and the like; the real-time operating system comprises interrupt management, task scheduling and MEM (memory management); the frame layer includes: system basic capability, underlying software services, hardware service capability, etc.; the application layer comprises: system applications (e.g., mail, contacts, browser, etc.), third party applications (e.g., social applications provided by a third party, video applications, etc.). The system application or the third party application includes a bluetooth application for implementing a bluetooth pairing function (in fig. 4, the bluetooth application belongs to the system application as an example), and the bluetooth application is used for calling a hardware service to implement pairing with an external bluetooth device.
Referring to fig. 5, fig. 5 is a schematic diagram of a bluetooth pairing method according to an embodiment of the present application, and referring to fig. 5, an example is given in which an execution body is a first electronic device, and the method includes the following steps.
S501, acquiring device information, current time and power parameters of the first electronic device.
The first electronic device is a device with a Bluetooth function, and can be a Bluetooth earphone, a Bluetooth watch, a Bluetooth bracelet, a Bluetooth sound box or a Bluetooth keyboard and the like. The embodiment of the present application is not limited thereto. The device information of the first electronic device is used to describe an attribute of the first electronic device, and may be, for example, a globally unique identification number or a product serial number of the first electronic device. In one possible embodiment, the device information of the first electronic device may include a peripheral type, a software version number, and a vendor code of the first electronic device.
S502, generating an initial key pair according to the device information.
Wherein the initial key pair includes an initial public key and an initial private key.
The device information may be calculated to obtain an initial key pair using a related key pair generation algorithm. For example, a corresponding digest algorithm may be used to calculate a digest of the device information, and then a specified field is selected from the digest as the initial public key and the initial private key, respectively, to obtain the initial key pair.
S503, according to the current time, calculating to obtain the rolling iteration times n.
The current time may be represented in the form of a time stamp, in one example, the value of the current time is positively correlated with the number of scroll iterations n, i.e., the larger the value of the current time stamp, the larger the number of scroll iterations n.
S504, rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key.
And rolling the initial key pair by using a related iterative algorithm for the iteration number n to obtain a target key pair. The iterative algorithm here can be selected by self-defining according to practical situations, such as elliptic encryption algorithm (Elliptic Curve Cryptography, ecc), elGamal or Diffie-Hellman, etc.
S505, generating Bluetooth broadcast information comprising a power parameter ciphertext, and broadcasting the Bluetooth broadcast information so that the second electronic device determines whether to carry out Bluetooth pairing with the first electronic device according to the Bluetooth broadcast information, wherein the power parameter ciphertext is obtained through target public key encryption.
Encrypting the power parameter by using the target public key to obtain a power parameter ciphertext; and adding the power parameter ciphertext into the Bluetooth broadcasting information for broadcasting. The second electronic equipment analyzes the Bluetooth broadcasting information to obtain a power parameter ciphertext, and decrypts the power parameter ciphertext by utilizing the target private key to obtain a power parameter; and the second electronic equipment calculates the distance between the first electronic equipment and the second electronic equipment according to the obtained power parameters, when the distance is smaller than a preset distance threshold value, a prompting frame for Bluetooth pairing is displayed, and after confirmation operation of a user is received, the second electronic equipment performs Bluetooth pairing with the first electronic equipment.
According to the technical scheme provided by the embodiment of the application, the first electronic device acquires the device information, the current time and the power parameter, generates an initial key pair according to the device information, and obtains the rolling iteration times n according to the current time. And rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key. Generating Bluetooth broadcasting information comprising a power parameter ciphertext, and broadcasting the Bluetooth broadcasting information so that the second electronic device can judge whether to carry out Bluetooth pairing with the first electronic device according to the Bluetooth broadcasting information, wherein the power parameter is obtained through target public key encryption. Because the target key pair of the encryption power parameter is related to the equipment information of the first electronic equipment, a malicious attacker cannot acquire the initial key pair, and the password strength of the target key pair is further improved in a rolling iteration mode, so that the safety of Bluetooth pairing is improved.
Fig. 6 is a schematic diagram of a bluetooth pairing method according to an embodiment of the present application, referring to fig. 6, taking an execution subject as a cloud platform as an example, the method includes the following steps.
S601, acquiring device information of the first electronic device.
The description about the first electronic device and the device information is referred to the description about step S201, and is not repeated here.
S602, generating an initial key pair of the first electronic device according to the device information.
Wherein the initial key pair includes an initial public key and an initial private key.
S603, obtaining the current time, and calculating to obtain the rolling iteration times n according to the current time.
S604, rolling the initial key pair for n times to obtain a target key pair of the first electronic device, wherein the target key pair comprises a target public key and a target private key.
S605, adding the target key pair of the first electronic device to a preset list.
In one example, in the preset list, a target public key in the target key pair may be used as a key, a target private key in the target key pair may be used as a value, and the target key pair may be stored as a key value pair.
And S606, responding to the request of the second electronic device, and sending the target key pair to the second electronic device so that the second electronic device performs Bluetooth pairing with the first electronic device based on the target key pair.
According to the technical scheme provided by the embodiment of the application, the cloud platform acquires the equipment information of the first electronic equipment, generates the initial key pair of the first electronic equipment according to the equipment information, acquires the current time, and acquires the rolling iteration times n according to the current time. And rolling the initial key pair for n times to obtain a target key pair of the first electronic device, wherein the target key pair comprises a target public key and a target private key. And adding the target key pair of the first electronic device to a preset list, and responding to the request of the second electronic device, and sending the target key pair to the second electronic device so that the second electronic device can be paired with the first electronic device based on the target key pair. Because the target key pair of the encryption power parameter is related to the equipment information of the first electronic equipment, a malicious attacker cannot acquire the initial key pair, and the password strength of the target key pair is further improved in a rolling iteration mode, so that the safety of Bluetooth pairing is improved.
Fig. 7 is a schematic diagram of a bluetooth pairing method according to an embodiment of the present application, referring to fig. 7, taking an execution subject as a second electronic device as an example, the method includes the following steps.
S701, after receiving Bluetooth broadcast information of a first electronic device, acquiring a target private key of the first electronic device; the Bluetooth broadcasting information comprises a power parameter ciphertext, and the power parameter ciphertext is obtained by encrypting the power parameter of the first electronic device through a target public key of the first electronic device.
The target private key of the first electronic device may be obtained from the cloud platform in real time for the second electronic device, or may be stored locally in the second electronic device in advance. In one example, the second electronic device may periodically request, from the cloud platform, to obtain the target private key of the first electronic device according to a preset period, and then store the target private key of the first electronic device locally. In one example, the second electronic device may request the target private key of the first electronic device from the cloud platform after receiving the bluetooth broadcast information of the first electronic device.
S702, decrypting the power parameter ciphertext by using the target private key to obtain the power parameter of the first electronic device.
S703, calculating the distance between the first electronic device and the second electronic device according to the power parameter of the first electronic device.
The manner of calculating the distance between devices using the power parameter may be referred to in the prior art, and the present application is not particularly limited.
And S704, controlling the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment when the distance is smaller than a preset distance threshold value.
The second electronic device is a device capable of bluetooth connection with other electronic devices, for example, a mobile phone, a computer, a tablet, etc. When the distance between the first electronic device and the second electronic device is smaller than a preset distance threshold, the second electronic device can display Bluetooth pairing prompt information, and when a user agrees to carry out Bluetooth pairing, the second electronic device responds to the operation of agreeing to Bluetooth pairing of the user and carries out Bluetooth pairing with the first electronic device.
According to the technical scheme provided by the embodiment of the application, after the Bluetooth broadcast information of the first electronic device is received, the target private key of the first electronic device is obtained. And decrypting the power parameter ciphertext included in the Bluetooth broadcast information by using the target private key to obtain the power parameter of the first electronic device. And calculating the distance between the first electronic device and the second electronic device according to the power parameter of the first electronic device. And when the distance is smaller than a preset distance threshold, controlling the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment. Because the target key pair of the encryption power parameter is related to the equipment information of the first electronic equipment, a malicious attacker cannot acquire the initial key pair, and the password strength of the target key pair is further improved in a rolling iteration mode, so that the safety of Bluetooth pairing is improved.
The steps S501-S505, S601-S606, and steps S701-S704 are a simple description of the bluetooth pairing method according to the embodiment of the application, and the bluetooth pairing method according to the embodiment of the application will be described below with reference to some examples, and fig. 8 is a schematic diagram of a bluetooth pairing method according to the embodiment of the application, and referring to fig. 8, the method includes the following steps.
S801, the first electronic device acquires device information, current time and power parameters of the first electronic device.
The first electronic device is a device with a Bluetooth function, and can be a Bluetooth earphone, a Bluetooth watch, a Bluetooth bracelet, a Bluetooth sound box or a Bluetooth keyboard and the like. The embodiment of the present application is not limited thereto.
In one possible embodiment, the device information of the first electronic device may include a peripheral type, a software version number, and a vendor code of the first bluetooth device, where the first electronic device stores the device information in a file system of the first electronic device after the equipment/production line/product line completes the programming of the software version, and synchronizes to the cloud server.
Acquiring the current time of the first electronic device, including: detecting the system time of the first electronic equipment after the first electronic equipment is powered on; and receiving a third Bluetooth broadcast message broadcast by the second electronic device under the condition that the system time of the first electronic device is the initial system time, wherein the third Bluetooth broadcast message comprises the system time of the second electronic device.
For example, when the system time of the first electronic device is You Nake stunix timestamp, a bluetooth low energy time synchronization broadcast message, which is sent by the second electronic device every a first preset duration and has a duration of a second preset duration, is received through a filter configured by the first electronic device, where the bluetooth low energy time synchronization broadcast message includes the system time of the second electronic device, such as a date, a time, and a time zone of the second electronic device. And determining the current time of the first electronic device according to the system time of the second electronic device. The first preset time period is longer than a second preset time period, for example, the first preset time period is 5 minutes, and the second preset time period is 30 seconds.
S802, the first electronic device generates an initial key pair according to the device information.
In one possible embodiment, generating an initial key pair from device information includes: and performing abstract calculation on the equipment information to obtain abstract information, and dividing the abstract information into an initial private key and an initial public key of the initial key pair.
The algorithm used for performing the digest calculation can be selected by self-definition according to the actual situation, for example, digest algorithms such as MD5, SHA1, SHA256 and the like can be adopted. In one possible embodiment, the digest calculation may be performed by using an MD5 information digest algorithm according to the peripheral type, the software version number, and the manufacturer code of the first electronic device, to obtain a digest result, where a previous portion of the digest result is used as an initial private key, and a subsequent portion of the digest result is used as an initial public key.
The MD5 digest algorithm is a widely used cryptographic hash function that generates a 128 bit (16 byte) hash value that is used to ensure that the information transfer is complete and consistent.
S803, the first electronic device calculates the rolling iteration number n according to the current time.
In one possible embodiment, the number of rolling iterations n is calculated according to the current time, including: acquiring the curing time of the first electronic equipment; and calculating the difference between the current time and the curing time, and dividing the difference by a preset value to obtain the rolling iteration number n.
In one possible embodiment, the curing time of the first electronic device may be a software version compile time of the first electronic device, where the software version compile time is that the first electronic device stores device information into a file system of the first electronic device by the equipment/production line after completing the programming of the software version by the equipment/production line, and synchronizes to the cloud server. The preset value may be in the unit of date, in the unit of week, or in the unit of month. For example, when taking a week as a unit, the user only needs to connect the cloud platform at least once a week.
And S804, the first electronic device scrolls the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key.
In one possible embodiment, the initial key pair is scrolled n times using a preset algorithm to obtain the target key pair.
For example, rolling the initial key pair n times using equation (1) yields the target key pair:
(1);
wherein,,for the ith scroll iterationThe resulting key pair.
S805, the cloud platform acquires device information of the first electronic device.
In one possible embodiment, the device information of the first electronic device is synchronized to the cloud server when it is saved in the file system of the first electronic device.
And S806, the cloud platform generates an initial key pair of the first electronic device according to the device information.
S807, the cloud platform acquires the current time, and calculates the rolling iteration number n according to the current time.
And S808, the cloud platform iterates the initial key pair rolling for n times to obtain a target key pair of the first electronic equipment.
The process of acquiring the target key pair in steps S805 to S808 is similar to the process of acquiring the target key pair in steps S801 to S804, and therefore, the process of acquiring the target key pair in steps S805 to S808 may refer to the relevant content of the process of acquiring the target key pair in steps S801 to S804, and will not be described herein. And the sequence of the first electronic device executing steps S801-S804 and the cloud platform executing steps S805-S808 is not limited.
S809, the cloud platform adds the target key pair of the first electronic device to a preset list.
In a possible embodiment, the preset list is established based on target key pairs of all first electronic devices, so that subsequent second electronic devices can construct a hash map based on the preset list, wherein the target public key is used as a key and the target private key is used as a value.
S810, the first electronic device generates Bluetooth broadcasting information comprising a power parameter ciphertext, and broadcasts the Bluetooth broadcasting information, wherein the power parameter ciphertext is obtained by encrypting a target public key.
In one possible embodiment, the bluetooth broadcast information includes a first bluetooth broadcast message and a second bluetooth broadcast message, where the first bluetooth broadcast message may be a bluetooth low energy broadcast message, and the second bluetooth broadcast message may be a near discovery broadcast message.
In one possible embodiment, the association code is obtained, and a first bluetooth broadcast message including the association code and the target public key is generated; encoding the power parameter by using the target public key to obtain a power parameter ciphertext, and generating a second Bluetooth broadcast message comprising the power parameter ciphertext and the association code; the association code is used for indicating that the first Bluetooth broadcast message is associated with the second Bluetooth broadcast message; and broadcasting a first Bluetooth broadcast message and a second Bluetooth broadcast message.
In a possible embodiment, the target public key is used to encode the preset threshold and the power parameter to obtain a power parameter ciphertext and a preset threshold ciphertext; and generating a second Bluetooth broadcast message comprising the power parameter ciphertext, the preset threshold ciphertext and the association code.
S811, the second electronic device acquires the target private key of the first electronic device after receiving the Bluetooth broadcast information of the first electronic device.
In one possible embodiment, after receiving the first bluetooth broadcast message sent by the first electronic device, the first bluetooth broadcast message is analyzed to obtain the target public key and the association code of the first electronic device. And acquiring the target private key of the first electronic device according to the target public key.
In one possible embodiment, the second electronic device receives, through the filter, the first bluetooth broadcast message sent by the first electronic device.
In a possible embodiment, the second electronic device may acquire the target private key corresponding to the target public key from the hash map constructed by the second electronic device based on the acquired target public key, or may send a request for acquiring the target private key of the first electronic device to the cloud platform, where the request includes the target public key; and acquiring a target private key obtained by the cloud platform through target public key searching.
And S812, the second electronic device decrypts the power parameter ciphertext by using the target private key to obtain the power parameter of the first electronic device.
In one possible embodiment, after receiving the second bluetooth broadcast message, parsing the second bluetooth broadcast message to obtain the association code and the power parameter ciphertext; and when the association code in the first Bluetooth broadcast message is the same as the association code in the second Bluetooth broadcast message, decrypting the power parameter ciphertext in the second Bluetooth broadcast message by using the target private key to obtain the power parameter of the first electronic device.
In one possible embodiment, when the association code in the first bluetooth broadcast message is the same as the association code in the second bluetooth broadcast message, the target private key is used to decrypt the power parameter ciphertext and the preset threshold ciphertext in the second bluetooth broadcast message, so as to obtain the power parameter and the preset threshold of the first electronic device.
S813, the second electronic device calculates the distance between the first electronic device and the second electronic device according to the power parameter of the first electronic device.
In one possible embodiment, dB is calculated according to the power parameter of the first electronic device using equation (2):
(2);
where dB (Decibel) is a pure unit of count and p is the power parameter of the first electronic device.
According to the RSSI, calculating the distance between the first electronic equipment and the second electronic equipment by using a formula (2):
(2);
wherein F is the frequency and D is the distance between the first electronic device and the second electronic device.
And S814, controlling the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment when the distance is smaller than a preset distance threshold.
In one possible embodiment, when the distance is smaller than a preset distance threshold, a pairing frame is displayed, and when a confirmation instruction triggered by a user holding the second electronic device for the pairing frame is received, bluetooth pairing is performed on the first electronic device and the second electronic device.
The second electronic device is a device capable of bluetooth connection with other electronic devices, for example, a mobile phone, a computer, a tablet, etc.
According to the scheme provided by the embodiment of the application, the equipment information, the current time and the power parameter of the first electronic equipment are acquired, an initial key pair is generated according to the equipment information, and the rolling iteration number n is calculated according to the current time. And rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key. Generating Bluetooth broadcasting information comprising a power parameter ciphertext, and broadcasting the Bluetooth broadcasting information so that the second electronic device can judge whether to carry out Bluetooth pairing with the first electronic device according to the Bluetooth broadcasting information, wherein the power parameter is obtained through target public key encryption. Because the target key pair of the encrypted power parameter ciphertext is related to the current time of the first electronic device, the password strength of the target key pair is improved, and further the safety of Bluetooth pairing is improved.
The bluetooth pairing method provided by the embodiment of the present application is described below with reference to fig. 9 and the above-mentioned alternative embodiments in steps S801 to S814.
Referring to fig. 9, assume that the first electronic device is a bluetooth headset and the second electronic device is a mobile phone.
Step 1: the Bluetooth headset completes software version programming on equipment/production line.
Step 2: the equipment/production line writes the peripheral type, software version number, software version compiling time and manufacturer code of the Bluetooth headset into a file system of the Bluetooth headset for storage.
Step 3: the equipment/production line synchronizes the peripheral type, software version number, software version compiling time and manufacturer code of the Bluetooth headset into the cloud server.
Step 4: the handset transmits a time broadcast.
Every 5 minutes, the time (including the year, month, day, hour, minute, second and time zone) is broadcasted, and each time lasts 30 seconds, and the time is transmitted through the Bluetooth low-power-consumption broadcast constructed by the mobile phone.
Step 5: starting up the Bluetooth headset, and checking whether the current date exists; and starting scanning until the current time is acquired.
And detecting the system time of the Bluetooth headset, if the system time is unix time, starting scanning, scanning Bluetooth low-power-consumption time synchronous broadcasting continuously transmitted by the mobile phone through a filter constructed by the Bluetooth headset, updating the current system time, and acquiring the current time according to the updated system date.
Step 6: and the Bluetooth headset carries out abstract calculation by adopting an MD5 information abstract algorithm according to the peripheral type, the software version number and the manufacturer code of the first electronic equipment to obtain an abstract result, wherein the former part of the abstract result is used as an initial private key, and the latter part of the abstract result is used as an initial public key.
Step 7: and the Bluetooth headset calculates the rolling iteration times N according to the current date.
Subtracting the date of the compiling time of the software version stored in the file system from the current date to obtain a difference value; and dividing the difference by a preset value to obtain the rolling iteration number N.
Step 8: the Bluetooth headset scrolls the initial key pair N times to obtain a target key pair.
Step 9: the cloud server generates an initial key pair.
And generating an initial key pair by the same algorithm based on the peripheral type, the software version number and the manufacturer code which are acquired synchronously.
And step 10, the cloud server scrolls the initial key pair for N times to obtain a target key pair.
Step 11: the mobile phone acquires a list containing target key pairs of all Bluetooth headsets from the cloud server, and constructs hash mapping in a memory of the mobile phone.
Step 12: the bluetooth headset transmits bluetooth low energy broadcasts.
The association code and the target public key are broadcast as broadcast content.
Step 12: the bluetooth headset transmits the proximity discovery broadcast.
And encrypting the threshold field and the power parameter field in the near discovery broadcast by using the target public key, backfilling the encrypted information into the near discovery broadcast data, and adding an association code in the near discovery broadcast for associating with the immediately preceding broadcast.
Step 13: the mobile phone construction filter is used for scanning broadcast content which is sent by the Bluetooth headset and comprises the association code and the target public key, and obtaining the association code and the target public key.
Step 14: the mobile phone construction filter is used for scanning the near discovery broadcast sent by the Bluetooth headset to obtain the association code, the encrypted threshold field and the encrypted power parameter field.
Step 15: after receiving the near discovery broadcast, the mobile phone analyzes the association code, and then finds the target public key from the broadcast content through the association code.
Step 16: and the mobile phone finds the target private key from the hash map according to the target public key.
Step 17: and decrypting the encrypted threshold field and the encrypted power parameter field by using the target private key.
Step 18: and calculating the distance according to a spatial attenuation algorithm.
Step 19: and judging whether the distance is in the range of the bullet frame pairing.
Step 20: if yes, the mobile phone performs the flick frame display.
The embodiment of the application also provides a Bluetooth pairing device, referring to fig. 10, applied to a first electronic device, the device comprises:
a first obtaining module 1001, configured to obtain device information, a current time, and a power parameter of a first electronic device;
a first generation module 1002, configured to generate an initial key pair according to device information;
a first calculation module 1003, configured to calculate, according to the current time, a rolling iteration number n;
a first iteration module 1004, configured to iterate the initial key pair for n times to obtain a target key pair, where the target key pair includes a target public key and a target private key;
the second generating module 1005 is configured to generate bluetooth broadcast information including a power parameter ciphertext, and broadcast the bluetooth broadcast information, so that the second electronic device determines whether to perform bluetooth pairing with the first electronic device according to the bluetooth broadcast information, where the power parameter ciphertext is obtained by encrypting a target public key.
In one possible embodiment, the bluetooth broadcast information includes a first bluetooth broadcast message and a second bluetooth broadcast message;
the apparatus further includes means for performing the acquiring of the association code;
the second generation module is used for generating a first Bluetooth broadcast message comprising the association code and the target public key; encoding the power parameter by using the target public key to obtain a power parameter ciphertext; generating a second Bluetooth broadcast message comprising a power parameter ciphertext and an associated code; and broadcasting a first Bluetooth broadcast message and a second Bluetooth broadcast message.
In one possible embodiment, the first bluetooth broadcast message is a bluetooth low energy broadcast message and the second bluetooth broadcast message is a near discovery broadcast message.
In one possible embodiment, a first iteration module is configured to obtain a curing time of the first electronic device; and calculating the difference between the current time and the curing time, and dividing the difference by a preset value to obtain the rolling iteration number n.
In one possible embodiment, the apparatus further comprises means for:
detecting the system time of the first electronic equipment after the first electronic equipment is powered on;
receiving a third Bluetooth broadcast message broadcast by the second electronic device under the condition that the system time of the first electronic device is the initial system time, wherein the third Bluetooth broadcast message comprises the system time of the second electronic device;
and updating the system time of the first electronic device according to the system time in the third Bluetooth broadcast message.
In a possible embodiment, the first generating module is configured to perform summary calculation on the device information to obtain summary information; the digest information is divided into an initial private key and an initial public key of an initial key pair.
The embodiment of the application also provides a Bluetooth pairing device, which is applied to a cloud platform, and comprises the following components in part by weight:
A second obtaining module 1101, configured to obtain device information of the first electronic device;
a third generating module 1102, configured to generate an initial key pair of the first electronic device according to the device information;
a second calculating module 1103, configured to obtain a current time, and calculate a rolling iteration number n according to the current time;
a second iteration module 1104, configured to iterate the initial key pair for n times to obtain a target key pair of the first electronic device, where the target key pair includes a target public key and a target private key;
an adding module 1105, configured to add the target key pair of the first electronic device to a preset list;
and a sending module 1106, configured to send the target key pair to the second electronic device in response to the request of the second electronic device, so that the second electronic device performs bluetooth pairing with the first electronic device based on the target key pair.
The embodiment of the application also provides a bluetooth pairing device, referring to fig. 12, applied to a second electronic device, the device comprises:
a third obtaining module 1201, configured to obtain a target private key of the first electronic device after receiving bluetooth broadcast information of the first electronic device; the Bluetooth broadcasting information comprises a power parameter ciphertext, wherein the power parameter ciphertext is obtained by encrypting the power parameter of the first electronic equipment through a target public key of the first electronic equipment;
A decryption module 1202, configured to decrypt the power parameter ciphertext by using the target private key to obtain a power parameter of the first electronic device;
a third calculation module 1203, configured to calculate a distance between the first electronic device and the second electronic device according to the power parameter of the first electronic device;
and the pairing module 1204 is used for controlling the second electronic device to carry out Bluetooth pairing with the first electronic device when the distance is smaller than a preset distance threshold.
In one possible embodiment, the bluetooth broadcast information includes a first bluetooth broadcast message and a second bluetooth broadcast message; the first Bluetooth broadcast message comprises a target public key and an associated code; the second Bluetooth broadcast message comprises an association code and a power parameter ciphertext;
the third acquisition module is used for analyzing the first Bluetooth broadcast message after receiving the first Bluetooth broadcast message of the first electronic device to obtain a target public key and an association code of the first electronic device; acquiring a target private key of the first electronic device according to the target public key; after receiving the second Bluetooth broadcast message, analyzing the second Bluetooth broadcast message to obtain an association code and a power parameter ciphertext;
and the decryption module is used for decrypting the power parameter ciphertext in the second Bluetooth broadcast message by using the target private key when the association code in the first Bluetooth broadcast message is the same as the association code in the second Bluetooth broadcast message, so as to obtain the power parameter of the first electronic device.
In a possible embodiment, the third obtaining module is configured to send a request for obtaining a target private key of the first electronic device to the cloud platform, where the request includes the target public key;
and acquiring a target private key obtained by the cloud platform through target public key searching.
The embodiment of the application also provides an electronic device, as shown in fig. 13, including:
a memory 1301 for storing a computer program;
the processor 1302, when executing the program stored in the memory 1301, performs the following steps:
acquiring equipment information, current time and power parameters of first electronic equipment;
generating an initial key pair according to the equipment information;
according to the current time, calculating to obtain the rolling iteration times n;
rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key;
generating Bluetooth broadcasting information comprising power parameter ciphertext, and broadcasting the Bluetooth broadcasting information so that the second electronic device can judge whether to carry out Bluetooth pairing with the first electronic device according to the Bluetooth broadcasting information, wherein the power parameter ciphertext is obtained through target public key encryption.
And the electronic device may further include a communication bus and/or a communication interface, where the processor 1302, the communication interface, and the memory 1301 may communicate with each other via the communication bus.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry StandardArchitecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. In a possible embodiment, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (DigitalSignal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program which when executed by a processor implements the steps of any of the bluetooth pairing methods described above.
In yet another embodiment of the present application, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the bluetooth pairing methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a Solid State Disk (SSD), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, electronic devices and storage medium embodiments, the description is relatively simple as it is substantially similar to method embodiments, as relevant points are found in the partial description of method embodiments.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (15)

1. A bluetooth pairing method, applied to a first electronic device, the method comprising:
acquiring equipment information, current time and power parameters of the first electronic equipment;
generating an initial key pair according to the equipment information;
according to the current time, calculating to obtain the rolling iteration times n;
rolling the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key;
generating Bluetooth broadcasting information comprising power parameter ciphertext, and broadcasting the Bluetooth broadcasting information so that second electronic equipment judges whether to carry out Bluetooth pairing with first electronic equipment according to the Bluetooth broadcasting information, wherein the power parameter ciphertext is obtained through encryption of the target public key.
2. The method of claim 1, wherein the bluetooth broadcast information comprises a first bluetooth broadcast message and a second bluetooth broadcast message;
The method further comprises the steps of:
acquiring an association code;
the generating bluetooth broadcast information including the power parameter ciphertext and broadcasting the bluetooth broadcast information includes:
generating a first Bluetooth broadcast message comprising the association code and the target public key; encoding the power parameter by using the target public key to obtain a power parameter ciphertext; generating a second Bluetooth broadcast message comprising the power parameter ciphertext and the association code;
and broadcasting the first Bluetooth broadcast message and the second Bluetooth broadcast message.
3. The method of claim 2, wherein the first bluetooth broadcast message is a bluetooth low energy broadcast message and the second bluetooth broadcast message is a near discovery broadcast message.
4. The method according to claim 1, wherein the calculating the number of rolling iterations n according to the current time includes:
acquiring the curing time of the first electronic equipment;
and calculating the difference between the current time and the curing time, and dividing the difference by a preset value to obtain the rolling iteration number n.
5. The method according to claim 1, wherein the method further comprises:
Detecting the system time of the first electronic equipment after the first electronic equipment is powered on;
receiving a third Bluetooth broadcast message broadcast by the second electronic device under the condition that the system time of the first electronic device is the initial system time, wherein the third Bluetooth broadcast message comprises the system time of the second electronic device;
and updating the system time of the first electronic equipment according to the system time in the third Bluetooth broadcast message.
6. The method of claim 1, wherein generating an initial key pair from the device information comprises:
performing abstract calculation on the equipment information to obtain abstract information;
the summary information is divided into an initial private key and an initial public key of an initial key pair.
7. A bluetooth pairing method, applied to a cloud platform, the method comprising:
acquiring equipment information of first electronic equipment;
generating an initial key pair of the first electronic device according to the device information;
acquiring current time, and calculating to obtain rolling iteration times n according to the current time;
rolling the initial key pair for n times to obtain a target key pair of the first electronic device, wherein the target key pair comprises a target public key and a target private key;
Adding the target key pair of the first electronic equipment to a preset list;
and responding to the request of the second electronic device, and sending the target key pair to the second electronic device so that the second electronic device performs Bluetooth pairing with the first electronic device based on the target key pair.
8. A bluetooth pairing method, applied to a second electronic device, the method comprising:
after receiving Bluetooth broadcast information of a first electronic device, acquiring a target private key of the first electronic device; the Bluetooth broadcasting information comprises a power parameter ciphertext, and the power parameter ciphertext is obtained by encrypting the power parameter of the first electronic device through a target public key of the first electronic device;
decrypting the power parameter ciphertext by using the target private key to obtain the power parameter of the first electronic device;
calculating the distance between the first electronic equipment and the second electronic equipment according to the power parameter of the first electronic equipment;
and when the distance is smaller than a preset distance threshold, controlling the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment.
9. The method of claim 8, wherein the bluetooth broadcast information comprises a first bluetooth broadcast message and a second bluetooth broadcast message; the first Bluetooth broadcast message comprises the target public key and an associated code; the second Bluetooth broadcast message comprises an association code and a power parameter ciphertext;
after receiving the bluetooth broadcast information of the first electronic device, obtaining a target private key of the first electronic device includes:
after receiving a first Bluetooth broadcast message of a first electronic device, analyzing the first Bluetooth broadcast message to obtain a target public key and an association code of the first electronic device;
acquiring a target private key of the first electronic device according to the target public key;
after receiving a second Bluetooth broadcast message, analyzing the second Bluetooth broadcast message to obtain an association code and a power parameter ciphertext;
decrypting the power parameter ciphertext by using the target private key to obtain the power parameter of the first electronic device, including:
and when the association code in the first Bluetooth broadcast message is the same as the association code in the second Bluetooth broadcast message, decrypting the power parameter ciphertext in the second Bluetooth broadcast message by using the target private key to obtain the power parameter of the first electronic device.
10. The method of claim 9, wherein the obtaining the target private key of the first electronic device from the target public key comprises:
sending a request for acquiring a target private key of the first electronic device to a cloud platform, wherein the request comprises a target public key;
and acquiring a target private key obtained by the cloud platform through searching the target public key.
11. A bluetooth pairing device for use with a first electronic device, the device comprising:
the first acquisition module is used for acquiring equipment information, current time and power parameters of the first electronic equipment;
the first generation module is used for generating an initial key pair according to the equipment information;
the first calculation module is used for calculating the rolling iteration times n according to the current time;
the first iteration module is used for carrying out rolling iteration on the initial key pair for n times to obtain a target key pair, wherein the target key pair comprises a target public key and a target private key;
and the second generation module is used for generating Bluetooth broadcast information comprising a power parameter ciphertext and broadcasting the Bluetooth broadcast information so that the second electronic equipment judges whether to carry out Bluetooth pairing with the first electronic equipment according to the Bluetooth broadcast information, wherein the power parameter ciphertext is obtained by encrypting the target public key.
12. A bluetooth pairing device, characterized by being applied to a cloud platform, the device comprising:
the second acquisition module is used for acquiring the equipment information of the first electronic equipment;
a third generation module, configured to generate an initial key pair of the first electronic device according to the device information;
the second calculation module is used for obtaining the current time and calculating the rolling iteration times n according to the current time;
the second iteration module is used for carrying out rolling iteration on the initial key pair for n times to obtain a target key pair of the first electronic device, wherein the target key pair comprises a target public key and a target private key;
the adding module is used for adding the target key pair of the first electronic equipment to a preset list;
and the sending module is used for responding to the request of the second electronic equipment and sending the target key pair to the second electronic equipment so as to enable the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment based on the target key pair.
13. A bluetooth pairing device for use with a second electronic device, the device comprising:
the third acquisition module is used for acquiring a target private key of the first electronic equipment after receiving Bluetooth broadcast information of the first electronic equipment; the Bluetooth broadcasting information comprises a power parameter ciphertext, and the power parameter ciphertext is obtained by encrypting the power parameter of the first electronic device through a target public key of the first electronic device;
The decryption module is used for decrypting the power parameter ciphertext by utilizing the target private key to obtain the power parameter of the first electronic device;
a third calculation module for calculating the distance between the first electronic device and the second electronic device according to the power parameter of the first electronic device;
and the pairing module is used for controlling the second electronic equipment to carry out Bluetooth pairing with the first electronic equipment when the distance is smaller than a preset distance threshold value.
14. An electronic device, comprising:
one or more processors and memory;
the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-10.
15. A computer readable storage medium comprising a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1 to 10.
CN202310882005.0A 2023-07-18 2023-07-18 Bluetooth pairing method and device, electronic equipment and storage medium Active CN116614806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310882005.0A CN116614806B (en) 2023-07-18 2023-07-18 Bluetooth pairing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310882005.0A CN116614806B (en) 2023-07-18 2023-07-18 Bluetooth pairing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116614806A true CN116614806A (en) 2023-08-18
CN116614806B CN116614806B (en) 2023-10-20

Family

ID=87682130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310882005.0A Active CN116614806B (en) 2023-07-18 2023-07-18 Bluetooth pairing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116614806B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101095318A (en) * 2004-05-10 2007-12-26 索尼爱立信移动通讯股份有限公司 Method and device for bluetooth pairing
CN111246440A (en) * 2017-06-13 2020-06-05 天地融科技股份有限公司 Method and system for safe communication of Bluetooth equipment
CN111343634A (en) * 2020-03-05 2020-06-26 深圳市丰鑫科技服务有限公司 Safe connection method and data transmission method between low-power-consumption Bluetooth devices
CN111800273A (en) * 2020-06-30 2020-10-20 联想(北京)有限公司 Information processing method, electronic device, and storage medium
CN113366439A (en) * 2018-12-26 2021-09-07 荣耀终端有限公司 Method and device for connecting Bluetooth device
CN114124502A (en) * 2021-11-15 2022-03-01 兰州乐智教育科技有限责任公司 Message transmission method, device, equipment and medium
CN115208557A (en) * 2021-04-09 2022-10-18 中国移动通信集团安徽有限公司 Data encryption method and device, electronic equipment and computer storage medium
CN115550895A (en) * 2022-09-30 2022-12-30 浙江大华技术股份有限公司 Bluetooth connection method, device, system, equipment and medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101095318A (en) * 2004-05-10 2007-12-26 索尼爱立信移动通讯股份有限公司 Method and device for bluetooth pairing
US20080013601A1 (en) * 2004-05-10 2008-01-17 Patric Lind Method and Device for Bluetooth Pairing
CN111246440A (en) * 2017-06-13 2020-06-05 天地融科技股份有限公司 Method and system for safe communication of Bluetooth equipment
CN113366439A (en) * 2018-12-26 2021-09-07 荣耀终端有限公司 Method and device for connecting Bluetooth device
CN111343634A (en) * 2020-03-05 2020-06-26 深圳市丰鑫科技服务有限公司 Safe connection method and data transmission method between low-power-consumption Bluetooth devices
CN111800273A (en) * 2020-06-30 2020-10-20 联想(北京)有限公司 Information processing method, electronic device, and storage medium
CN115208557A (en) * 2021-04-09 2022-10-18 中国移动通信集团安徽有限公司 Data encryption method and device, electronic equipment and computer storage medium
CN114124502A (en) * 2021-11-15 2022-03-01 兰州乐智教育科技有限责任公司 Message transmission method, device, equipment and medium
CN115550895A (en) * 2022-09-30 2022-12-30 浙江大华技术股份有限公司 Bluetooth connection method, device, system, equipment and medium

Also Published As

Publication number Publication date
CN116614806B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
WO2021052178A1 (en) Wi-fi connection method and device
CN111405681B (en) Wi-Fi Aware link establishment method, wi-Fi Aware link establishment system, electronic equipment and storage medium
US12081971B2 (en) Key information synchronization method and system, and device
WO2021104114A1 (en) Method for providing wireless fidelity (wifi) network access service, and electronic device
WO2021017909A1 (en) Method, electronic device and system for realizing functions through nfc tag
WO2021184264A1 (en) Data saving method, data access method, and related apparatus and device
WO2021104259A1 (en) Method and terminal for data sharing between fast application and native application
CN115696322A (en) Key updating method, system and related device in Beidou communication system
CN114697955A (en) Encrypted call method, device, terminal and storage medium
CN111274043B (en) Near field communication method, near field communication device, near field communication system, storage medium and electronic equipment
CN115250544B (en) Equipment networking method, electronic equipment and storage medium
WO2022007750A1 (en) Screen sharing method, terminal, and storage medium
CN116614806B (en) Bluetooth pairing method and device, electronic equipment and storage medium
US20240296007A1 (en) Projection method and related apparatus
CN111526321B (en) Voice communication method, voice communication device, storage medium and electronic equipment
CN113436635B (en) Self-calibration method and device of distributed microphone array and electronic equipment
CN116261124A (en) Data transmission method and device, electronic equipment and intelligent terminal
CN114327198A (en) Control function pushing method and device
WO2024037500A1 (en) Communication method and related apparatus
CN114866243B (en) Certificate revocation list management method and device and electronic equipment
WO2023071730A1 (en) Voiceprint registration method and electronic devices
WO2023160177A1 (en) Ranging method, apparatus and system, and readable storage medium
WO2022228213A1 (en) Data tracking method and related apparatus
CN114845297B (en) Application program access method, electronic device and storage medium
CN114449492B (en) Data transmission method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant