CN113498045A - Communication equipment pairing connection method, communication terminal and device with storage function - Google Patents

Communication equipment pairing connection method, communication terminal and device with storage function Download PDF

Info

Publication number
CN113498045A
CN113498045A CN202010251468.3A CN202010251468A CN113498045A CN 113498045 A CN113498045 A CN 113498045A CN 202010251468 A CN202010251468 A CN 202010251468A CN 113498045 A CN113498045 A CN 113498045A
Authority
CN
China
Prior art keywords
paired
equipment
bluetooth
mode
connection
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.)
Pending
Application number
CN202010251468.3A
Other languages
Chinese (zh)
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.)
Hytera Communications Corp Ltd
Original Assignee
Hytera Communications Corp 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 Hytera Communications Corp Ltd filed Critical Hytera Communications Corp Ltd
Priority to CN202010251468.3A priority Critical patent/CN113498045A/en
Publication of CN113498045A publication Critical patent/CN113498045A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a communication equipment pairing connection method, a communication terminal and a device with a storage function. The method comprises the following steps: the method comprises the steps that a main device receives a broadcast data packet broadcast by a device to be paired; judging whether the distance between the equipment to be paired and the main equipment is within a preset first range or not by utilizing the signal intensity of the broadcast data packet; if yes, judging whether the equipment information to be paired contained in the broadcast data packet is preset equipment information or not; and if so, carrying out Bluetooth pairing and connection with the equipment to be paired. Through the mode, the communication equipment can be connected quickly and accurately.

Description

Communication equipment pairing connection method, communication terminal and device with storage function
Technical Field
The present invention relates to the field of communications, and in particular, to a method for pairing and connecting communication devices, a communication terminal, and an apparatus having a storage function.
Background
The pairing and connection of the bluetooth are relatively complex processes, even experienced users need to gradually pair and connect according to product specifications, the pairing and connection can be completed within 1 minute generally, and the conditions that pairing and connection are wrong and other bluetooth devices are paired and connected easily occur.
For example, when the user uses the bluetooth device for the first time, the user may not know the usage method, and the connection may not be successful. For example, in a small area such as a police car or a room, when a plurality of police stations simultaneously turn on the intercom with bluetooth built therein to pair with the bluetooth headset, one intercom may search several bluetooth headsets with the same name, and the user may not accurately select the correct bluetooth headset to connect. Or because the bluetooth headset in the hand of the person is connected with the interphone in the hand of the person before, the bluetooth headset and the interphone can be automatically connected, and the person can be manually disconnected to be re-paired. The use of the user is greatly inconvenient, especially the time is short when the police is out, and the interphone and the Bluetooth headset need to be connected in a quick matching mode.
Although bluetooth with NFC (near field communication) function can simplify bluetooth pairing connection, NFC has not been widely applied to bluetooth products for reasons of cost, size, power consumption, and the like.
Disclosure of Invention
The invention mainly solves the technical problem of providing a communication equipment pairing connection method, a communication terminal and a device with a storage function, which can realize the quick and accurate connection of communication equipment.
In order to solve the technical problems, the invention adopts a technical scheme that: provided is a communication device pairing connection method, including: the method comprises the steps that a main device receives a broadcast data packet broadcast by a device to be paired; judging whether the distance between the equipment to be paired and the main equipment is within a preset first range or not by utilizing the signal intensity of the broadcast data packet; if yes, judging whether the to-be-paired equipment information contained in the broadcast data packet is preset equipment information or not; and if so, carrying out Bluetooth pairing and connection with the equipment to be paired.
In order to solve the technical problem, the invention adopts another technical scheme that: a communication terminal is provided, comprising a processor, a memory and a communication circuit, wherein the processor is coupled with the memory and the communication circuit respectively; the memory is used for storing program instructions, and the processor is used for executing the program instructions in the memory to realize the steps in the device pairing connection method.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided an apparatus having a storage function, storing program instructions executable to implement the steps in the device pairing connection method as described above.
The invention has the beneficial effects that: different from the situation of the prior art, when the main device receives the broadcast data packet broadcast by the device to be paired and judges that the device to be paired meets the pairing condition, the main device is connected with the device to be paired in a pairing mode according to the broadcast data packet, and when the distance between the main device and the main device is within a first range, the device to be paired of which the information to be paired in the broadcast data packet is preset device information is connected, so that the connection between the main device and the preset device to be paired can be realized, the operation steps of pairing connection are reduced, the device to be paired which is connected wrongly due to the fact that the device identifiers are the same or the connection history is over are avoided, and the communication device is connected quickly and accurately.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced 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 to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flow chart of a method for pairing and connecting communication devices according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a master device and a device to be paired according to the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a method for pairing communication devices provided by the present application;
figure 4 is a schematic structural diagram of a BLE broadcast packet in the method for pairing connection of communication devices provided in the present application;
fig. 5 is a schematic structural diagram of an embodiment of a communication terminal provided in the present application;
fig. 6 is a schematic structural diagram of an embodiment of a device with a storage function provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1 and fig. 2 in combination, fig. 1 is a flowchart illustrating a method for pairing and connecting communication devices according to a first embodiment of the present invention. Fig. 2 is a schematic structural diagram of a master device and a device to be paired according to the present invention. The method for pairing and connecting the communication equipment comprises the following steps:
s101: the main device receives a broadcast data packet broadcast by the device to be paired.
In a specific implementation scenario, the master device 10 includes a main control module 11, a bluetooth module 12, and a communication interface 13. The main control module 11 and the bluetooth module 12 are connected through a communication interface 13. The bluetooth module 12 supports two bluetooth modes: a classic Bluetooth mode and a BLE (Bluetooth Low Energy) mode. The classic bluetooth mode refers to a conventional bluetooth application, such as a bluetooth headset HFP (Hand-free Profile) application, a bluetooth speaker A2DP (Advanced Audio Distribution Profile) stereo music application, a bluetooth SPP (virtual Port Profile) application, and the like. The communication Interface 13 is a UART (Universal Asynchronous Receiver/Transmitter) Interface, and in other implementation scenarios, may also be a USB (Universal Serial Bus)/SPI (Serial Peripheral Interface)/I2C (Inter-Integrated Circuit) Interface.
The device to be paired 20 includes a Bluetooth module 21, and the Bluetooth module 21 supports a classic Bluetooth mode and a BLE (Bluetooth Low Energy) mode. In other implementation scenarios, bluetooth module 21 may also support only BLE mode. In this implementation scenario, the device To be paired 20 has a PPT (Push To Talk) function and is an intercom.
The bluetooth module 21 of the device 20 to be paired is in a broadcast state, and broadcasts a broadcast data packet to the outside. Other bluetooth devices may receive the broadcast packet. The bluetooth module 12 of the master device 10 performs a search action and may receive the broadcast packet. Specifically, the bluetooth module 21 of the device to be paired 20 is in the BLE mode, and broadcasts BLE data packets to the outside. The bluetooth module 12 of the master device 10 is in the BLE mode, performs BLE search action, and may receive BLE data packets broadcast by the device 20 to be paired.
In this implementation scenario, the bluetooth module 12 of the host device 10 starts the search function after being powered on, and in other implementation scenarios, the bluetooth module 12 of the host device 10 may also start the search function after receiving a start instruction or a search instruction input by a user, for example, the user inputs the search instruction by triggering a shortcut key of the host device 10, or the user starts the bluetooth module 12 through a host menu, so that the bluetooth module 12 starts the search function. It is also possible that the bluetooth module 12 detects that the current bluetooth connection is lost and initiates the search function.
In this implementation scenario, the bluetooth module 21 of the device 20 to be paired starts the broadcast function after being powered on, and in other implementation scenarios, the bluetooth module 21 of the device 20 to be paired may also start the broadcast function after receiving a start instruction or a broadcast instruction input by a user, for example, the user inputs the broadcast instruction by triggering a shortcut key of the device 20 to be paired, or the user starts the bluetooth module 21 through a host menu, so that the bluetooth module 21 starts the broadcast function. It is also possible that the bluetooth module 21 detects that the current bluetooth connection is lost and thus starts the broadcast function.
In fig. 2, only one device 20 to be paired is shown, in other implementation scenarios, there may be multiple devices 20 to be paired that broadcast the broadcast data packet, and the master device 10 will receive the broadcast data packet broadcast by the multiple devices to be paired.
In this implementation scenario, the host device 10 and the device to be paired 20 are both bluetooth devices, and in other implementation scenarios, the host device 10 and the device to be paired 20 may also be other communication devices, such as NFC (near field communication) devices, infrared devices, and the like.
S102: and judging whether the distance between the equipment to be paired and the main equipment is within a preset first range or not by utilizing the signal intensity of the broadcast data packet. . If yes, go to step S103.
In a specific implementation scenario, after receiving the broadcast data packet, the main device 10 obtains information included in and/or carried by the broadcast data packet, and determines whether the device to be paired 10 corresponding to the broadcast data packet meets the pairing condition according to the information.
In a specific implementation scenario, the RSSI (Received Signal Strength Indication) of the BLE may be obtained from the Received BLE broadcast packet. The RSSI of the received BLE broadcast packet is related to the distance between the device 20 to be paired and the master device 10. Therefore, the distance between the device to be paired 20 and the master device 10 can be obtained according to the RSSI of the received BLE broadcast packet.
In this implementation scenario, the distance between the device to be paired 20 and the master device 10 is obtained according to the RSSI of the received BLE broadcast packet. And judging whether the distance is within a preset first range. In other implementation scenarios, it may also be directly determined whether the RSSI value is within a preset second range, where the second range is set corresponding to the first range according to a proportional relationship between the RSSI and the distance between the device to be paired 20 and the master device 10. When the RSSI value of the received BLE broadcast packet is within the second range, the distance between the device to be paired 20 and the master device 10 corresponding to the RSSI value is also within the first range. When the RSSI value of the received BLE broadcast packet is not within the second range, the distance between the device to be paired 20 and the master device 10 corresponding to the RSSI value is also not within the first range.
In this embodiment, the first range may be preset by the user. In other implementation scenarios, if the master device 10 receives BLE broadcast packets broadcast by multiple devices to be paired 20 at the same time, the device to be paired 20 corresponding to the BLE broadcast packet with the highest RSSI is selected.
S103: and judging whether the to-be-paired equipment information contained in the broadcast data packet is preset equipment information, if so, executing the step S104.
In a specific implementation scenario, the master device 10 parses the content in the received BLE broadcast packet, and obtains the to-be-paired device information of the to-be-paired device 20 included in the BLE broadcast packet 40. With continued reference to fig. 4, in the present implementation scenario, the device information to be paired includes at least one of the device types included in the accessory type 431 (such as a motorcycle panel/bluetooth law enforcement recorder/bluetooth handheld, etc.), whether applications such as AGHFP/HFP/SPP are supported, and the types of supported private customized protocols.
And comparing the acquired to-be-paired device information of the to-be-paired device 20 with preset device information, and judging whether the obtained to-be-paired device information is consistent or matched. For example, if the preset device information is that the device type is a bluetooth law enforcement recorder, and the device type described in the accessory type 431 in the received BLE broadcast data packet 40 is the bluetooth law enforcement recorder, it is determined that the device information to be paired included in the BLE broadcast data is the preset device information.
S104: and carrying out Bluetooth pairing and connection with the equipment to be paired.
In a specific implementation scenario, if the master device 10 determines that the device to be paired information included in the broadcast data of the device to be paired 20 is preset device information, the master control module 11 of the master device 10 notifies the bluetooth module 12 to perform bluetooth pairing and connection with the bluetooth module 21 of the device to be paired 20 through the communication interface 13.
In this implementation scenario, when performing bluetooth pairing and connection, the master device 10 needs to select a suitable bluetooth mode for connection according to the bluetooth mode supported by the device 20 to be paired. The master device 10 may obtain the bluetooth mode supported by the device 20 to be paired from the broadcast packet broadcast by the device 20 to be paired. If the to-be-paired equipment only supports the low-power-consumption Bluetooth mode, performing Bluetooth pairing connection on the to-be-paired equipment by adopting the low-power-consumption Bluetooth mode; and if the equipment to be paired supports both the low-power-consumption Bluetooth mode and the classic Bluetooth mode, performing Bluetooth pairing connection with the equipment to be paired by adopting the classic Bluetooth mode or the low-power-consumption Bluetooth mode. The classic pairing mode includes at least one of a virtual serial port data connection mode and a voice connection mode established on the basis of SLC (service level connection).
The master device 10 reads the address of the device to be paired included in the broadcast packet, and connects with the device to be paired 20 in a pairing manner according to the address.
As can be seen from the above description, in this embodiment, when it is determined that the distance between the device to be paired and the main device is within the preset first range according to the broadcast data packet broadcast by the device to be paired, and it is further determined that the device information to be paired in the broadcast data packet is the preset device information, the device to be paired is connected in a pairing manner according to the broadcast data packet, so that the main device and the preset device to be paired are connected, operation steps of pairing connection can be reduced, the device to be paired with a connection error is avoided, and thus the communication device is connected quickly and accurately.
Referring to fig. 2 and fig. 3 in combination, fig. 3 is a flowchart illustrating a method for pairing and connecting communication devices according to a second embodiment of the present disclosure. The communication equipment pairing connection provided by the application comprises:
s301: the main device receives a broadcast data packet broadcast by the device to be paired.
In one particular implementation scenario, the bluetooth module 12 of the master device 10 initiates the search function while the bluetooth module 12 is in BLE mode. The bluetooth module 21 of the device 20 to be paired is in BLE broadcast mode, and broadcasts BLE broadcast data packets. In this implementation scenario, the bluetooth module 12 of the master device 10 supports both the classic mode and the BLE mode, the bluetooth module 21 of the device to be paired 20 supports only the BLE mode, and in other implementation scenarios, the bluetooth module 21 of the device to be paired 20 supports both the classic mode and the BLE mode.
S302: and reading the content of the broadcast data packet, and acquiring the communication mode supported by the equipment to be paired.
In a specific implementation scenario, after receiving a BLE broadcast packet, the bluetooth module 12 of the master device 10 reads content in the BLE broadcast packet, where the BLE broadcast packet includes protocol information, and the master device 10 may obtain a bluetooth mode supported by the bluetooth module 21 of the device 20 to be paired according to the protocol information. For example, in the present implementation scenario, the bluetooth module 21 of the device To be paired 20 supports only the BLE mode, for example, supports a PTT (Push To Talk) function.
Specifically, please refer to fig. 4, fig. 4 is a schematic structural diagram of a BLE broadcast packet in the method for pairing connection of communication devices according to the present application. In this implementation scenario, the BLE broadcast packet includes a PDU (Protocol Data Unit). The PDU conforms to the protocol format of the BLE broadcast data packet of the Bluetooth 4.0 and above. The size of the PDU is typically 2-39 bytes. The BLE broadcast data 40 comprises a data header 41, a bluetooth address 42 and bluetooth broadcast packet data 43, wherein the data header 41 occupies 2 bytes, the bluetooth address 42 occupies 6 bytes and the bluetooth broadcast packet data 43 occupies 0-31 bytes. There are 2 types of bluetooth addresses 42, one being a real accessory bluetooth address and the other being a randomly generated accessory bluetooth address. The data defined by the bluetooth broadcast data packet 43 in the bluetooth protocol may be 0-31 bytes, the number and content of these data may be flexibly written into the bluetooth BLE broadcast data packet, and may be 0 byte or 16 bytes, the longest is 31 bytes, and the data content may be defined by the product itself. And broadcast to other devices via bluetooth. A BLE bluetooth beacon broadcast packet length such as ibeacon (beacon) is fixed to 31 bytes.
The bluetooth broadcast packet data 43 includes accessory type 431, accessory address 432, extended reservation 433. The accessory type 431 occupies 0-3 bytes, the accessory address 432 occupies 0-6 bytes, and the extended reservation 433 occupies 22-31 bytes. The accessory type 431 is used to describe the type of the device 20 to be paired, such as dual-mode bluetooth or single-mode bluetooth (i.e. supporting several bluetooth modes), the type of the device (e.g. motorcycle panel/bluetooth law enforcement recorder/bluetooth handheld, etc.), whether applications such as AGHFP/HFP/SPP are supported, the kind of supported proprietary customized protocols, and so on. The accessory address 432 is the bluetooth address of the device 20 to be paired, and if the bluetooth address 42 in the BLE broadcast packet 40 is a random address, the real bluetooth accessory address is filled in the accessory address 432; if the bluetooth address 42 in the BLE broadcast packet 40 is the real accessory bluetooth address, then the accessory address 432 may not be filled in with the bluetooth address.
In this implementation scenario, the master device 10 obtains the bluetooth mode supported by the device to be paired 20 from the accessory type 431 of the BLE broadcast packet 40. In this implementation scenario, the bluetooth module 21 of the device to be paired 20 only supports the BLE mode, and therefore the bluetooth mode of the bluetooth module 12 of the master device 10 is also set to the BLE mode accordingly to establish a BLE bluetooth connection.
S303: and judging whether the distance between the equipment to be paired and the main equipment is within a preset first range or not by utilizing the signal intensity of the broadcast data packet. If yes, go to step S304.
S304: determining whether the device information to be paired included in the broadcast data packet is preset device information, if yes, executing step S305.
In a specific implementation scenario, steps S303 to S304 are substantially the same as steps S102 to S103 in the method for pairing and connecting communication devices provided by the present invention, and are not described herein again.
S305: and reading the address of the equipment to be paired included in the broadcast data packet, and connecting the equipment to be paired according to the address in a pairing manner.
In a specific implementation scenario, please continue to refer to fig. 4, the master device 10 reads the content in the bluetooth address 42 and the accessory address 432, if the accessory address 432 has content, the content in the accessory address 432 is the real bluetooth address of the device 20 to be paired, and if the accessory address 432 has no content, the content in the bluetooth address 42 is the real bluetooth address of the device 20 to be paired. And establishing connection with the device to be paired according to the acquired real Bluetooth address of the device to be paired 20.
In this implementation scenario, according to the communication mode supported by the device to be paired 20 acquired in step S302, the master device 10 selects a corresponding bluetooth mode to establish a bluetooth connection. For example, in this implementation scenario, the device to be paired 20 only supports the BLE mode, and then the master device establishes a BLE bluetooth connection with the device to be paired 20 in the BLE mode, and BLE pairing and connection can be completed within 150 ms. In other implementation scenarios, if the device to be paired 20 supports BLE mode and classic mode, the master device 10 establishes a connection with the device to be paired 20 in classic mode, for example, an SLC service connection or an SPP data connection or a BLE connection. The time for the method to establish a classic bluetooth connection can be achieved within 8 seconds.
In other implementation scenarios, the order of steps S302-S304 may be reversed or at least one step may be performed simultaneously, or at least one of the steps may be selected for execution.
As can be seen from the above description, in this embodiment, whether the direct distance between the device to be paired and the host device meets the requirement is determined through the received broadcast data packet, whether the device information to be paired is the preset device information is determined, and the bluetooth mode and the bluetooth address supported by the device to be paired are obtained, so that manual operation by a user is not required, screening can be automatically performed, and a suitable device to be paired can be quickly and accurately found to establish connection.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an embodiment of a communication terminal provided in the present application. The communication terminal 50 includes: a processor 51, a memory 52 and a communication circuit 53. The communication circuit 53 is used for communication with other devices. The memory 52 is used for storing program instructions, and the processor 51 is used for executing the program instructions in the memory 52 to implement the method according to any of the above embodiments. In one implementation scenario, the memory 52 includes a non-volatile storage portion for storing the program instructions. The processor 51 controls the memory 52 and the communication circuit 53 to implement the method of any of the above embodiments.
The processor 51 may also be referred to as a CPU (Central Processing Unit). The processor 51 may be an integrated circuit chip having signal processing capabilities. The processor 51 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 51 may be commonly implemented by a plurality of circuit-forming chips.
In this implementation scenario, the communication device 50 is a master device, the communication circuit 53 receives a broadcast data packet broadcast by another to-be-paired communication device to be paired with the communication device 50, the processor 51 determines whether the to-be-paired device meets a pairing condition by using the broadcast data packet, and if the processor 51 determines that the to-be-paired device meets the pairing condition, the communication circuit 53 is controlled to perform bluetooth pairing and connection with the to-be-paired communication device meeting the pairing condition.
As can be seen from the above description, in this embodiment, when the communication device receives the broadcast data packet broadcast by the device to be paired and determines that the device to be paired meets the pairing condition, the communication device is paired and connected with the device to be paired according to the broadcast data packet, so that the operation steps of pairing and connection can be reduced, the device to be paired with a connection error can be avoided, and the communication device can be quickly and accurately connected.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a device with a storage function provided in the present application. The means 60 with memory function has stored therein at least one program instruction 61, the program instruction 61 being for performing a method of pairing communication devices as shown in fig. 1 or fig. 3. In one embodiment, the apparatus 60 with storage function may be a memory chip in a terminal, a hard disk, or a removable hard disk or other readable and writable storage tool such as a flash disk, an optical disk, or the like, and may also be a server or the like.
As can be seen from the above description, the program instruction stored in the apparatus with a storage function in this embodiment may be used to perform pairing connection with the device to be paired according to the broadcast data packet when it is determined that the device to be paired meets the pairing condition according to the broadcast data packet broadcast by the device to be paired, so as to reduce operation steps of pairing connection, avoid connecting a wrong device to be paired, and implement quick and accurate connection of the communication device.
Different from the prior art, the communication equipment pairing method provided by the application judges whether the equipment to be paired meets the pairing condition or not by receiving the broadcast data packet broadcast by the equipment to be paired, if so, the equipment to be paired is connected with the equipment to be paired according to the broadcast data packet, so that the pairing connection operation can be reduced, the equipment to be paired is automatically screened, and the connection with the equipment to be paired is accurately and quickly established.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A communication device pairing connection method is characterized by comprising the following steps:
the method comprises the steps that a main device receives a broadcast data packet broadcast by a device to be paired;
judging whether the distance between the equipment to be paired and the main equipment is within a preset first range or not by utilizing the signal intensity of the broadcast data packet;
if yes, judging whether the to-be-paired equipment information contained in the broadcast data packet is preset equipment information or not;
and if so, carrying out Bluetooth pairing and connection with the equipment to be paired.
2. The method according to claim 1, wherein the device information to be paired included in the broadcast packet is a type of the device to be paired.
3. The method according to claim 1, wherein the determining whether the distance between the device to be paired and the master device is within a preset first range includes:
judging whether the signal strength indicated value of the received broadcast data packet is within a preset second range or not;
and if the signal strength indicating value is within a preset second range, the distance between the device to be paired and the main device is within the preset first range.
4. The method according to claim 1, wherein the bluetooth pairing and connection with the device to be paired comprises:
reading the content of the broadcast data packet, and acquiring a communication mode supported by the equipment to be paired;
and selecting a proper communication mode according to the communication mode supported by the equipment to be paired to perform Bluetooth pairing connection with the equipment to be paired.
5. The method according to claim 4, wherein selecting a suitable communication mode according to the communication mode supported by the device to be paired to connect with the device to be paired comprises:
and if the equipment to be paired only supports the low-power-consumption Bluetooth mode, performing Bluetooth pairing connection with the equipment to be paired by adopting the low-power-consumption Bluetooth mode.
6. The method according to claim 5, wherein selecting a suitable communication mode according to the communication mode supported by the device to be paired to connect with the device to be paired comprises:
and if the equipment to be paired supports both the low-power-consumption Bluetooth mode and the classic Bluetooth mode, performing Bluetooth pairing connection with the equipment to be paired by adopting the classic Bluetooth mode or the low-power-consumption Bluetooth mode.
7. The method of claim 5 or 6, wherein the classical pairing mode comprises at least one of a virtual serial data connection mode, and a voice connection mode established over a service level connection.
8. The method according to claim 1, wherein the pairing connection with the device to be paired according to the broadcast data packet further comprises:
and reading the address of the equipment to be paired included in the broadcast data packet, and connecting the equipment to be paired according to the address in a pairing manner.
9. A communication terminal comprising a processor, a memory, and a communication circuit, the processor being coupled to the memory and the communication circuit, respectively;
the memory is used for storing program instructions, and the processor is used for executing the program instructions in the memory to realize the steps in the device pairing connection method according to any one of claims 1 to 8.
10. An apparatus having storage functionality, characterized in that program instructions are stored which are executable to implement the steps in the device pairing connection method according to any of claims 1-8.
CN202010251468.3A 2020-04-01 2020-04-01 Communication equipment pairing connection method, communication terminal and device with storage function Pending CN113498045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010251468.3A CN113498045A (en) 2020-04-01 2020-04-01 Communication equipment pairing connection method, communication terminal and device with storage function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010251468.3A CN113498045A (en) 2020-04-01 2020-04-01 Communication equipment pairing connection method, communication terminal and device with storage function

Publications (1)

Publication Number Publication Date
CN113498045A true CN113498045A (en) 2021-10-12

Family

ID=77994446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010251468.3A Pending CN113498045A (en) 2020-04-01 2020-04-01 Communication equipment pairing connection method, communication terminal and device with storage function

Country Status (1)

Country Link
CN (1) CN113498045A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499040A (en) * 2022-09-09 2022-12-20 安克创新科技股份有限公司 Bluetooth adapter and connection method thereof
US20230050968A1 (en) * 2021-07-09 2023-02-16 Beken Corporation Method and system of automatically connecting a wireless device to network via phone

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230050968A1 (en) * 2021-07-09 2023-02-16 Beken Corporation Method and system of automatically connecting a wireless device to network via phone
US11689989B2 (en) * 2021-07-09 2023-06-27 Beken Corporation Method and system of automatically connecting a wireless device to network via phone
CN115499040A (en) * 2022-09-09 2022-12-20 安克创新科技股份有限公司 Bluetooth adapter and connection method thereof
CN115499040B (en) * 2022-09-09 2024-05-07 安克创新科技股份有限公司 Bluetooth adapter and connection method thereof

Similar Documents

Publication Publication Date Title
CN109600694B (en) Wireless earphone pairing method and device, terminal and charging box
CN107864469B (en) Wireless connection method and device
CN101690125B (en) Communication of information between a host device and an accessory via an intermediate device
US8761673B2 (en) Short-range wireless communication apparatus
US7953400B2 (en) Automatic pairing method for Bluetooth®-enabled mobile terminal
US9106309B2 (en) Vehicular communication system, vehicular communication apparatus and portable terminal apparatus
WO2011145314A1 (en) Short-range wireless communication apparatus
WO2012142794A1 (en) Method for pairing bluetooth accessory with bluetooth device, and bluetooth accessory
US20210345081A1 (en) Extended connection method and extended connection system for bluetooth devices
CN113348685B (en) Method and device for establishing Bluetooth data channel
KR20200110086A (en) Method for establishing wireless communication link and electronic device supporting the same
US10735054B2 (en) Wireless communication device and method for transferring communication rights between electronic devices
CN110784846B (en) Vehicle-mounted Bluetooth equipment identification method and device, electronic equipment and storage medium
CN107148649B (en) Audio reproducing apparatus and audio reproducing system
CN113498045A (en) Communication equipment pairing connection method, communication terminal and device with storage function
JP2014175814A (en) On-vehicle electronic device, on-vehicle system, hands-free call program, and hands-free call method
KR20200106743A (en) Electronic device for transmitting response message in bluetooth network environment and method thereof
US20060044120A1 (en) Car audio system and method combining with MP3 player
CN106408912A (en) AVRCP (audio video remote control profile) instruction allocation method and system based on device types
CN107820229B (en) Terminal detection method and communication equipment
CN112235677A (en) Master-slave switching method of wireless earphone, wireless earphone and readable storage medium
CN113766406B (en) Earphone testing method, system and device
CN113316129B (en) Method for acquiring coding and decoding capabilities in Bluetooth device and electronic device
CN109743715B (en) Processing method and system and electronic equipment
CN115209380A (en) Method and equipment for enabling mobile terminal and vehicle-mounted terminal to interact

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