CN112738786B - Bluetooth communication method, first electronic device and second electronic device - Google Patents

Bluetooth communication method, first electronic device and second electronic device Download PDF

Info

Publication number
CN112738786B
CN112738786B CN202011633986.8A CN202011633986A CN112738786B CN 112738786 B CN112738786 B CN 112738786B CN 202011633986 A CN202011633986 A CN 202011633986A CN 112738786 B CN112738786 B CN 112738786B
Authority
CN
China
Prior art keywords
field
electronic device
standard
specific field
bluetooth communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011633986.8A
Other languages
Chinese (zh)
Other versions
CN112738786A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202011633986.8A priority Critical patent/CN112738786B/en
Publication of CN112738786A publication Critical patent/CN112738786A/en
Application granted granted Critical
Publication of CN112738786B publication Critical patent/CN112738786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The embodiment of the invention provides a Bluetooth communication method, first electronic equipment and second electronic equipment. The method comprises the following steps: sending a control packet to a second electronic device, wherein the control packet comprises the first specific field which is a non-standard field different from a field in a standard Bluetooth communication protocol; receiving a response data packet sent by the second electronic equipment; and establishing connection with the second electronic equipment. The technical scheme of the embodiment of the invention ensures that a thief cannot grab the control packet comprising the non-standard first specific field through the Bluetooth packet grabbing tool and cannot obtain the information in the control packet, thereby avoiding information leakage and realizing safe and confidential communication.

Description

Bluetooth communication method, first electronic device and second electronic device
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of bluetooth communication, and in particular, to a bluetooth communication method, a first electronic device, and a second electronic device.
[ background ] A method for producing a semiconductor device
Bluetooth is a radio technology supporting short-range communication (generally within 10 m) of devices, and can perform wireless information exchange among a plurality of devices including mobile phones, personal Digital Assistants (PDAs), wireless headsets, notebook computers, related peripherals, and the like. By using the bluetooth technology, the communication between mobile communication terminal devices can be effectively simplified, and the communication between the devices and the internet can also be successfully simplified, so that the data transmission becomes faster and more efficient, and the way is widened for wireless communication.
In the standard Bluetooth communication protocol, security procedures such as authentication and encryption can be implemented on the aspect of information security so as to realize secret communication.
However, in the related art, a thief may grab the air data conforming to the standard bluetooth communication protocol through a standard bluetooth packet grabbing tool, and analyze and crack the data packet of the air data, for example, the bluetooth packet grabbing tool may be Frontline or Ellisys, which may cause information leakage and may not implement secure communication.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a bluetooth communication method, a first electronic device, and a second electronic device, which are used to implement secure and secret communication.
In one aspect, an embodiment of the present invention provides a bluetooth communication method, including:
sending a control packet to a second electronic device, wherein the control packet comprises the first specific field which is a non-standard field different from a field in a standard Bluetooth communication protocol;
receiving a response data packet sent by the second electronic equipment;
and establishing connection with the second electronic equipment.
Optionally, the control packet includes an access code and a payload, and the first specific field is a field in the access code and/or a field in the payload.
Optionally, the load includes a first bluetooth device address, clock information, and a logical transport address, and the response data includes a second bluetooth device address;
the establishing of the connection with the second electronic device includes:
and establishing connection with the second electronic equipment through the first Bluetooth equipment address, the clock information, the logic transmission address and the second Bluetooth equipment address.
Optionally, the first specific field is generated by performing a first logical operation on the first standard field.
Optionally, the first standard field is a standard synchronization bit, and the first specific field is a synchronization bit in the access code.
Optionally, the first logical operation is negation; alternatively, the first logical operation is an exclusive or.
Optionally, the control packet is a frequency hopping synchronous FHS data packet.
Optionally, after the connection is established with the second electronic device, the method further includes:
sending a first transmission data packet to the second electronic device, wherein the first transmission data packet comprises the second specific field, and the second specific field is a non-standard field different from a field in a standard Bluetooth communication protocol;
and receiving a second transmission data packet sent by the second electronic equipment.
In another aspect, an embodiment of the present invention provides a bluetooth communication method, including:
receiving a control packet sent by a first electronic device, wherein the control packet comprises a first specific field which is a non-standard field different from a field in a standard Bluetooth communication protocol;
if the received first specific field is the same as the pre-agreed first specific field through comparison, sending a response data packet to the first electronic equipment;
and establishing connection with the first electronic equipment.
Optionally, after the connection is established with the first electronic device, the method further includes:
receiving a first transmission data packet sent by the first electronic device, wherein the first transmission data packet comprises the second specific field, and the second specific field is a non-standard field different from a field in a standard Bluetooth communication protocol;
and if the received second specific field is the same as the pre-agreed second specific field by comparison, sending a second transmission data packet to the first electronic equipment.
In another aspect, an embodiment of the present invention provides a first electronic device, including:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the above-described bluetooth communication method.
In another aspect, an embodiment of the present invention provides a second electronic device, including:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the above-described bluetooth communication method.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, a device where the computer-readable storage medium is located is controlled to execute the bluetooth communication method.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the above-mentioned bluetooth communication method.
In the technical scheme provided by the embodiment of the invention, the first electronic equipment sends a control packet to the second electronic equipment, the control packet comprises a first specific field, receives a response data packet sent by the second electronic equipment and establishes connection with the second electronic equipment, and the first specific field is a nonstandard field different from the field in the standard Bluetooth communication protocol.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of the format of an access code in a standard Bluetooth communication protocol;
FIG. 2 is a schematic diagram of the format of a payload in a standard Bluetooth communication protocol;
fig. 3 is a flowchart of a bluetooth communication method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a bluetooth communication method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating the format of an access code according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a first electronic device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a second electronic device according to an embodiment of the present invention.
[ detailed description ] A
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the description of the invention 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 type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the Basic Rate (BR)/Enhanced Data Rate (EDR) Controller (Controller) section of the bluetooth Core specification (Core _ specification) vol2, a Frequency Hopping Synchronization (FHS) packet may include an access code (access code) and a load (payload), based on a standard bluetooth communication protocol. Fig. 1 is a schematic diagram of a format of an access code in a standard bluetooth communication protocol, and fig. 2 is a schematic diagram of a format of a payload in the standard bluetooth communication protocol.
As shown in fig. 1, the access code may include a Preamble (Preamble), a synchronization bit, and a tail code (tail). In the Standard bluetooth communication protocol, the synchronization bit is a Standard synchronization bit (Standard Syncword). The Access Code may include a Channel Access Code (CAC), a Device Access Code (DAC), a General Inquiry Access Code (GIAC), and a Dedicated Inquiry Access Code (DIAC).
As shown in fig. 2, the payload may include check Bits (Parity Bits), a Lower Address Part (Lower Address Part, LAP), an Extended search Response (EIR), undefined Bits (Un-defined), scan Repetition (SR), reserved Bits (Reserved), an Upper Address Part (UAP), a Non-Significant Address Part (Non-Significant Address Part, NAP), a device type (Class of device), logical Transport addresses (Logical Transport addresses, LT _ resaddr), clock information (CLK 27-2), and a Page Scan mode (Page Scan). The UAP, the NAP, and the Device type form a Bluetooth Device Address (BD _ ADDR), in other words, the BD _ ADDR includes the UAP, the NAP, and the Device type. Also shown in fig. 2 are the Least Significant Bit (LSB) and the Most Significant Bit (MSB).
In the bluetooth communication technology, if the first electronic device and the second electronic device both have bluetooth function modules, the first electronic device and the second electronic device can perform bluetooth communication. In the bluetooth communication process, the first electronic device may be a Master (Master) device, and the second electronic device may be a Slave (Slave) device. For example: the first electronic device may include a cell phone, a tablet computer, a laptop computer, a desktop computer, a PDA, a smart television, a wearable device, or a wireless headset; the second electronic device may include a cell phone, tablet, laptop, desktop, PDA, smart tv, wearable device, or wireless headset.
In order to solve the problems that information leakage is easily caused in the related art bluetooth communication process and secure secret communication cannot be realized, the embodiment of the invention provides a bluetooth communication method.
Fig. 3 is a flowchart of a bluetooth communication method according to an embodiment of the present invention, and fig. 4 is a schematic diagram of a bluetooth communication method according to an embodiment of the present invention, and as shown in fig. 3 and fig. 4, the method includes:
step 102, the first electronic device sends a control packet to the second electronic device, where the control packet includes a first specific field, and the first specific field is a non-standard field different from a field in a standard bluetooth communication protocol.
Alternatively, the first electronic device performs a first logical operation on the first standard field to generate the first specific field.
The first standard field may be a standard field in a standard bluetooth communication protocol, for example: in the embodiment of the present invention, the first specific field is a non-standard field obtained by performing a first logical operation on the first standard field, and the first standard field is subjected to non-standard privatization, that is, the first standard field in the standard bluetooth communication protocol is modified into the non-standard first specific field. The first electronic equipment and the second electronic equipment can pre-agree on a non-standard first specific field which can disturb the sequence of the FHS data packet, so that only the first electronic equipment and the second electronic equipment which pre-agree on the first specific field can perform Bluetooth connection through the FHS data packet comprising the non-standard second specific field, a thief cannot grab the FHS data packet comprising the non-standard second specific field through a Bluetooth packet grabbing tool, information in the FHS data packet cannot be obtained, information leakage is avoided, and safe and secret communication is achieved.
In the embodiment of the present invention, a synchronization bit (Syncword) is described as an example. The first Standard field is a Standard synchronization bit, and as shown in fig. 2, the synchronization bit in the Standard bluetooth communication protocol is a Standard synchronization bit (Standard Syncword). In the embodiment of the invention, the access code is subjected to non-standard privatization, namely, the standard synchronous bit of the access code in the standard Bluetooth communication protocol is modified into the non-standard synchronous bit. Fig. 5 is a schematic format diagram of an access code according to an embodiment of the present invention, and as shown in fig. 5, the access code includes a Preamble (Preamble), a synchronization bit and a tail code (tail), where the synchronization bit is a nonstandard synchronization bit, i.e., a Special synchronization bit (Special sync word) in fig. 5. In the embodiment of the present invention, the first specific field is a synchronization bit in the access code, that is, the first specific field is a non-standard synchronization bit in the access code, that is, an extra synchronization bit in fig. 5.
In the embodiment of the invention, the first logic operation is negation; alternatively, the first logical operation is an exclusive or.
As another alternative, the first specific field may also be any field that is pre-agreed by both the first electronic device and the second electronic device, as long as the first specific field is different from a standard field in a standard bluetooth communication protocol.
In the embodiment of the present invention, the control packet includes an access code and a payload, for example, the format of the access code may be as shown in fig. 5, and the format of the payload may be as shown in fig. 2. As an alternative, the control packet is an FHS data packet (FHS packet). As shown in fig. 2, the payload (payload) includes a first bluetooth device address (BD _ ADDR), clock information (CLK 27-2), and a logical transport address (LT _ ADDR). The FHS packet is an important control packet in the bluetooth connection process, where the first BD _ ADDR, clock information and LT _ ADDR are the information necessary to establish the connection.
The first specific field may be a field in the access code and/or a field in the payload. In the embodiment of the present invention, the first specific field is a synchronization bit in the access code. For example: the first specific field may also be LT _ ADDR in the load, correspondingly, the first standard field is standard LT _ ADDR in the standard bluetooth communication protocol; alternatively, the first specific field may also be a synchronization bit in the access code and a LT _ ADDR in the payload, and correspondingly, the first standard field is a standard synchronization bit in a standard bluetooth communication protocol and a standard LT _ ADDR in the payload.
In this embodiment of the present invention, before step 102, the method may further include:
step 100, the second electronic device sends a DM1 packet to the first electronic device.
And step 104, if the second electronic device compares that the received first specific field is the same as the pre-agreed first specific field, sending a response data packet to the first electronic device.
The first electronic device and the second electronic device may agree on the first specific field in advance. The second electronic device compares that the received first specific field is the same as the pre-agreed first specific field, which indicates that the second electronic device can capture the control packet and acquire the items of information for connection in the control packet, for example, the first bluetooth device address (BD _ ADDR), the clock information (CLK 27-2) and the logical transport address (LT _ ADDR) in the FHS data packet.
Further, the second electronic device transmits a response packet (response packet) including the second bluetooth device address (BD _ ADDR) to the first electronic device. The first Bluetooth equipment address is the Bluetooth equipment address of the first electronic equipment, and the second Bluetooth equipment address is the Bluetooth equipment address of the second electronic equipment.
And the information required by the connection between the first electronic equipment and the second electronic equipment is interactively completed.
And 106, establishing connection between the first electronic equipment and the second electronic equipment.
Specifically, the first electronic device and the second electronic device establish a connection through the first bluetooth device address, the clock information, the logical transmission address, and the second bluetooth device address.
The second electronic device may adopt the clock information sent by the first electronic device to synchronize with the first electronic device, and the two devices enter a connection state.
As shown in fig. 4, the first electronic device and the second electronic device are connected by data over the air before the connection is established. Further, the first electronic device and the second electronic device can also perform secure communication on the air data needing to be kept secret by the Bluetooth communication method of the embodiment of the invention.
In the technical scheme provided by the embodiment of the invention, the first electronic equipment sends a control packet to the second electronic equipment, the control packet comprises a first specific field, receives a response data packet sent by the second electronic equipment and establishes connection with the second electronic equipment, and the first specific field is a nonstandard field different from the field in the standard Bluetooth communication protocol.
Further, the method further comprises:
step 108, the first electronic device sends a first transmission data packet to the second electronic device, wherein the first transmission data packet includes a second specific field, and the second specific field is a non-standard field different from a field in the standard bluetooth communication protocol.
Alternatively, the first electronic device performs a second logical operation on the second standard field to generate a second specific field.
The second standard field may be a standard field in a standard bluetooth communication protocol, for example, a standard synchronization bit in an access code. In the embodiment of the present invention, the second specific field is a non-standard field obtained by performing a second logical operation on the second standard field, and the second standard field is subjected to non-standard privatization, that is, the second standard field in the standard bluetooth communication protocol is modified into the non-standard second specific field. The first electronic device and the second electronic device can agree with the nonstandard second specific field in advance, and the nonstandard second specific field can disturb the sequence of the transmission data packet, so that only the first electronic device and the second electronic device, which agree with the nonstandard first specific field in advance, can perform Bluetooth connection through the transmission data packet comprising the nonstandard second specific field, a thief cannot grab the transmission data packet comprising the nonstandard second specific field through a Bluetooth packet grabbing tool, information in the transmission data packet cannot be obtained, information leakage is avoided, and safe secret communication is achieved.
In the embodiment of the present invention, the second logical operation is negation; alternatively, the second logical operation is an exclusive or.
As another alternative, the second specific field may also be any field agreed in advance by both the first electronic device and the second electronic device, as long as the second specific field is different from a standard field in a standard bluetooth communication protocol.
In an embodiment of the present invention, the first transport packet (following packet) includes an access code (access code), a header (header), and a payload (payload). For example: the structure of the first transport packet can be referred to the description in bluetooth sepc 5.0\, vol2\, partb \, 6.1.
The second specific field may be a field in the access code and/or a field in the payload. In the embodiment of the present invention, the second specific field is a synchronization bit in the access code. For example: the second specific field may also be LT _ ADDR in the load, correspondingly, the second standard field is the standard LT _ ADDR in the standard bluetooth communication protocol; alternatively, the second specific field may also be a synchronization bit in the access code and a LT _ ADDR in the payload, and correspondingly, the second standard field is a standard synchronization bit in a standard bluetooth communication protocol and a standard LT _ ADDR in the payload.
And step 110, if the second electronic device compares that the received second specific field is the same as the pre-agreed second specific field, sending a second transmission data packet to the first electronic device.
The first electronic device and the second electronic device may agree on the second specific field in advance. If the second specific field is compared to be the same as the pre-agreed second specific field, the second electronic device indicates that the second electronic device can capture the first transmission data packet and acquire the information in the first transmission data packet. Further, the second electronic device returns a second transmission packet (following packet) to the first electronic device. For example: the second transmission packet is a response packet.
In the technical solution provided in the embodiment of the present invention, a first electronic device sends a first transmission data packet to a second electronic device, where the first transmission data packet includes a second specific field, and receives a second transmission data packet sent by the second electronic device, and the second specific field in the embodiment of the present invention is a non-standard field different from a field in a standard bluetooth communication protocol, so that only a first electronic device and a second electronic device, which agree with the second specific field in advance, can perform bluetooth data transmission through a data packet including the non-standard second specific field, so that a thief cannot obtain a data packet including the non-standard second specific field through a bluetooth packet capturing tool, cannot obtain information in the data packet including the non-standard second specific field, and thus, information leakage is avoided, and secure communication is achieved.
An embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, a device where the computer-readable storage medium is located is controlled to execute the above-mentioned embodiment of the bluetooth communication method.
An embodiment of the present invention provides a first electronic device, including: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform embodiments of the above-described bluetooth communication method.
Fig. 6 is a schematic diagram of a first electronic device according to an embodiment of the present invention. As shown in fig. 6, the first electronic device 10 of this embodiment includes: a processor 11, a memory 12, and a computer program 13 stored in the memory 12 and capable of running on the processor 11, where the computer program 13 is implemented by the processor 11 to implement the method applied to bluetooth communication in the embodiment, and for avoiding repetition, it is not described herein repeatedly.
The first electronic device 10 includes, but is not limited to, a processor 11, a memory 12. Those skilled in the art will appreciate that fig. 6 is merely an example of the first electronic device 10 and does not constitute a limitation of the first electronic device 10 and may include more or fewer components than shown, or combine certain components, or different components, e.g., a network device may also include an input-output device, a network access device, a bus, etc.
The Processor 11 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 12 may be an internal storage unit of the first electronic device 10, such as a hard disk or a memory of the first electronic device 10. The memory 12 may also be an external storage device of the first electronic device 10, such as a plug-in hard disk provided on the first electronic device 10, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 12 may also include both an internal storage unit of the first electronic device 10 and an external storage device. The memory 12 is used to store computer programs and other programs and data required by the network device. The memory 12 may also be used to temporarily store data that has been output or is to be output.
An embodiment of the present invention provides a second electronic device, including: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform embodiments of the above-described bluetooth communication method.
Fig. 7 is a schematic diagram of a second electronic device according to an embodiment of the invention. As shown in fig. 7, the second electronic device 20 of the embodiment includes: a processor 21, a memory 22, and a computer program 23 stored in the memory 22 and capable of running on the processor 21, wherein the computer program 23 implements the method applied to bluetooth communication in the embodiment when being executed by the processor 21, and is not described herein repeatedly.
The second electronic device 20 includes, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that fig. 7 is merely an example of the second electronic device 20 and does not constitute a limitation of the second electronic device 20 and may include more or fewer components than shown, or combine certain components, or different components, e.g., the network device may also include input-output devices, network access devices, buses, etc.
The Processor 21 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 22 may be an internal storage unit of the second electronic device 20, such as a hard disk or a memory of the second electronic device 20. The memory 22 may also be an external storage device of the second electronic device 20, such as a plug-in hard disk provided on the second electronic device 20, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 22 may also include both an internal storage unit of the second electronic device 20 and an external storage device. The memory 22 is used to store computer programs and other programs and data required by the network device. The memory 22 may also be used to temporarily store data that has been output or is to be output.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a computer readable storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned computer-readable storage medium comprises: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A bluetooth communication method, comprising:
sending a control packet to a second electronic device, wherein the control packet comprises a first specific field, an access code and a load, the first specific field is a non-standard field different from a field in a standard Bluetooth communication protocol, and the first specific field is a field in the access code and/or a field in the load;
receiving a response data packet sent by the second electronic equipment;
and establishing connection with the second electronic equipment.
2. The method of claim 1, wherein the payload comprises a first bluetooth device address, clock information, and a logical transport address, and wherein the response packet comprises a second bluetooth device address;
the establishing of the connection with the second electronic device includes:
and establishing connection with the second electronic equipment through the first Bluetooth equipment address, the clock information, the logic transmission address and the second Bluetooth equipment address.
3. The method of claim 1, wherein the first specific field is generated by performing a first logical operation on a first standard field.
4. The method of claim 3, wherein the first standard field is a standard synchronization bit and the first specific field is a synchronization bit in the access code.
5. The method of claim 3, wherein the first logical operation is an inversion; alternatively, the first logical operation is an exclusive or.
6. A method according to any one of claims 1 to 3, wherein the control packet is a frequency hopping synchronous FHS data packet.
7. The method of claim 1, after establishing the connection with the second electronic device, further comprising:
sending a first transmission data packet to the second electronic device, wherein the first transmission data packet comprises a second specific field which is a nonstandard field different from a field in a standard Bluetooth communication protocol;
and receiving a second transmission data packet sent by the second electronic equipment.
8. A method of bluetooth communication, comprising:
receiving a control packet sent by a first electronic device, wherein the control packet comprises a first specific field, an access code and a load, the first specific field is a non-standard field different from a field in a standard Bluetooth communication protocol, and the first specific field is a field in the access code and/or a field in the load;
if the received first specific field is the same as the pre-agreed first specific field, sending a response data packet to the first electronic equipment;
and establishing connection with the first electronic equipment.
9. The method of claim 8, wherein after the establishing the connection with the first electronic device, further comprising:
receiving a first transmission data packet sent by the first electronic device, wherein the first transmission data packet comprises a second specific field which is a nonstandard field different from a field in a standard Bluetooth communication protocol;
and if the received second specific field is the same as the pre-agreed second specific field, sending a second transmission data packet to the first electronic equipment.
10. A first electronic device, comprising:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the bluetooth communication method of any one of claims 1 to 7.
11. A second electronic device, comprising:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the bluetooth communication method of claim 8 or 9.
12. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the bluetooth communication method according to any one of claims 1 to 7.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein when the program is run, the apparatus on which the computer-readable storage medium is located is controlled to execute the bluetooth communication method according to claim 8 or 9.
CN202011633986.8A 2020-12-31 2020-12-31 Bluetooth communication method, first electronic device and second electronic device Active CN112738786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011633986.8A CN112738786B (en) 2020-12-31 2020-12-31 Bluetooth communication method, first electronic device and second electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011633986.8A CN112738786B (en) 2020-12-31 2020-12-31 Bluetooth communication method, first electronic device and second electronic device

Publications (2)

Publication Number Publication Date
CN112738786A CN112738786A (en) 2021-04-30
CN112738786B true CN112738786B (en) 2022-11-04

Family

ID=75608532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011633986.8A Active CN112738786B (en) 2020-12-31 2020-12-31 Bluetooth communication method, first electronic device and second electronic device

Country Status (1)

Country Link
CN (1) CN112738786B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796847A (en) * 2015-03-11 2015-07-22 南通同洲电子有限责任公司 Bluetooth communication method and system
CN105849579A (en) * 2014-10-08 2016-08-10 华为技术有限公司 Target device positioning method, and mobile terminal
CN108282767A (en) * 2017-12-29 2018-07-13 青岛真时科技有限公司 A kind of matching method, device and system
CN108738008A (en) * 2018-07-10 2018-11-02 深圳市闻耀电子科技有限公司 Bluetooth pairing methods and system
CN112105009A (en) * 2020-09-02 2020-12-18 中移(杭州)信息技术有限公司 Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9918186B2 (en) * 2015-12-18 2018-03-13 Em Microelectronic-Marin Sa Method and device for bluetooth low power communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105849579A (en) * 2014-10-08 2016-08-10 华为技术有限公司 Target device positioning method, and mobile terminal
CN104796847A (en) * 2015-03-11 2015-07-22 南通同洲电子有限责任公司 Bluetooth communication method and system
CN108282767A (en) * 2017-12-29 2018-07-13 青岛真时科技有限公司 A kind of matching method, device and system
CN108738008A (en) * 2018-07-10 2018-11-02 深圳市闻耀电子科技有限公司 Bluetooth pairing methods and system
CN112105009A (en) * 2020-09-02 2020-12-18 中移(杭州)信息技术有限公司 Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN112738786A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US20230016915A1 (en) Method and apparatus for low energy discovery
JP5474135B2 (en) Electronic device and method performed by the electronic device
CN110072219B (en) Electronic device, method, and computer-readable medium for wireless proximity pairing
US8935411B2 (en) Method and apparatus for utilizing advertisements to provide information regarding connection setup
CN101026394B (en) Method and apparatus for secured communication between bluetooth devices
US7912027B2 (en) Controlling visibility of a wireless device in discoverable mode
JP5624217B2 (en) Method and apparatus for authenticating and associating with a wireless device
US8146832B2 (en) Answer to reset (ATR) pushing
US9628979B2 (en) Method and apparatus for utilizing advertisements in conjunction with device discovery
CN112738786B (en) Bluetooth communication method, first electronic device and second electronic device
CN110602693B (en) Networking method and equipment of wireless network
JP2023544602A (en) Method and apparatus for link operation of multilink devices
CA2705256C (en) Answer to reset (atr) pushing
CN116941218A (en) Method for updating shared secret key and electronic device supporting the same
CN113301542B (en) Pairing connection method and device, storage medium and electronic equipment
CN104753969A (en) Method and device for synchronizing clipboard content information
EP4145412A1 (en) Secured seamless authentication for bluetooth just works pairing
EP1760944B1 (en) Controlling visibility of a wireless device in discoverable mode
CN116437346A (en) Communication method, communication device, apparatus, and storage medium
WO2009063401A1 (en) Method and apparatus for providing a shared message

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