CN106658359B - Bluetooth connection method, device and communication system - Google Patents

Bluetooth connection method, device and communication system Download PDF

Info

Publication number
CN106658359B
CN106658359B CN201610888879.7A CN201610888879A CN106658359B CN 106658359 B CN106658359 B CN 106658359B CN 201610888879 A CN201610888879 A CN 201610888879A CN 106658359 B CN106658359 B CN 106658359B
Authority
CN
China
Prior art keywords
role
bluetooth
bluetooth connection
peripheral
equipment
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
CN201610888879.7A
Other languages
Chinese (zh)
Other versions
CN106658359A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610888879.7A priority Critical patent/CN106658359B/en
Publication of CN106658359A publication Critical patent/CN106658359A/en
Application granted granted Critical
Publication of CN106658359B publication Critical patent/CN106658359B/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/11Allocation or use of connection identifiers
    • 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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a Bluetooth connection method, device and system, and belongs to the technical field of communication. The method is applied to a first device, and a Bluetooth configuration file in the first device simultaneously supports a peripheral role and a master role, and the method comprises the following steps: acquiring a role identifier of a second device to be connected by Bluetooth; and judging whether the role indicated by the role identification of the second equipment is a peripheral role or a master role, if so, enabling the first equipment to establish Bluetooth connection with the second equipment in the master role, and if so, enabling the first equipment to establish Bluetooth connection with the second equipment in an external role. According to the invention, the first device can establish Bluetooth connection with the second devices with different role types without customizing the Bluetooth chip, thereby reducing the manufacturing cost and effectively improving the flexibility of Bluetooth connection between the devices.

Description

Bluetooth connection method, device and communication system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a bluetooth connection method, apparatus, and communication system.
Background
With the development of science and technology, external devices (peripheral devices for short) such as earphones, keyboards and sounds begin to establish connection with a main control device (for example, a mobile phone, a computer and the like) by using bluetooth, so that the limitation of wired connection to the use of the device can be effectively avoided.
In the related art, the bluetooth connection process between two devices mainly includes: scanning, authentication (i.e., pairing), and connection. Wherein, the connection step is to connect the Bluetooth configuration files (English) in the two devices. In the connection process, it needs to be ensured that the role supported by the bluetooth profile in one device is a master role, and the role supported by the bluetooth profile in the other device is a peripheral role.
However, for some intelligent peripherals with independent operating systems, the role supported by the bluetooth profile is generally a master control role, and a customized bluetooth chip needs to be arranged in the intelligent peripheral to establish bluetooth connection with master control devices such as a mobile phone and a computer. The intelligent peripheral has higher cost and lower flexibility when Bluetooth connection is carried out between the devices.
Disclosure of Invention
In order to solve the problems in the related art, the invention provides a bluetooth connection method, a device and a communication system, wherein a first device can establish bluetooth connection with a second device in a role different from that of the second device according to a role identifier of the second device to be connected, so that the first device can establish bluetooth connection with the second device in different role types without adopting a customized bluetooth chip, and the flexibility of bluetooth connection between devices is improved.
In a first aspect of an embodiment of the present invention, a bluetooth connection method is provided, which is applied to a first device, where a bluetooth configuration file in the first device supports both a peripheral role and a master role, and the method includes:
acquiring a role identifier of a second device to be connected by Bluetooth;
determining whether the role indicated by the role identification of the second device is a peripheral role or a master role,
if the first device is in the peripheral role, the first device is enabled to establish Bluetooth connection with the second device in the master control role, and if the first device is in the master control role, the first device is enabled to establish Bluetooth connection with the second device in the peripheral role.
In a second aspect of an embodiment of the present invention, a bluetooth connection apparatus is provided, where the bluetooth configuration file in a first device supports both a peripheral role and a master role, the apparatus includes:
the acquisition unit is used for acquiring the role identification of the second device to be connected by the Bluetooth;
and the connection unit is used for judging whether the role indicated by the role identifier of the second equipment is a peripheral role or a master role, if so, the first equipment establishes Bluetooth connection with the second equipment in the master role, and if so, the first equipment establishes Bluetooth connection with the second equipment in the peripheral role and the master role.
In a third aspect of embodiments of the present invention, there is provided a communication system including: at least two devices;
at least one of the at least two devices comprises a bluetooth connection apparatus as described in the second aspect.
The technical scheme provided by the invention has the following beneficial effects:
the invention provides a Bluetooth connection method, a Bluetooth connection device and a Bluetooth connection communication system, wherein the method can be applied to first equipment, a Bluetooth configuration file in the first equipment simultaneously supports a peripheral role and a main control role, and the first equipment can establish Bluetooth connection with second equipment in a role different from that of the second equipment according to a role indicated by a role identification of the second equipment to be connected. Therefore, the first device can be connected with the second devices with different role types without customizing the Bluetooth chip, the manufacturing cost is reduced, and the flexibility of Bluetooth connection between the devices is effectively improved.
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.
FIG. 1 is a flow diagram of a Bluetooth connection method according to one embodiment of the present invention;
fig. 2 is a flowchart of a bluetooth connection method according to another embodiment of the present invention;
fig. 3 is a flowchart of a bluetooth connection method according to still another embodiment of the present invention;
FIG. 4 is a schematic diagram of a Bluetooth connection device according to one embodiment of the present invention;
fig. 5 is a schematic diagram of a communication system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
In the embodiments of the present invention, the bluetooth configuration file set in each device may include a Hands-free Profile (HFP), an audio transmission protocol Profile (A2 DP for short), a telephone directory access Profile (PBAP for short), and the like.
Among other things, bluetooth connection based on the hands-free profile HFP enables peripherals (e.g., bluetooth headset, bluetooth car, etc.) to control the phone of the master device (e.g., cell phone, etc.), such as answer, hang-up, reject, and voice dial. The HFP supports a main role of Audio Gateway (AG) and a peripheral role of Hands-free (HF).
The transmission of audio information can be realized by a bluetooth connection based on the audio transmission protocol profile A2DP, and a typical application of the bluetooth connection is a bluetooth headset. The main role supported by A2DP is output audio component (Source, abbreviated as SRC), and the peripheral role supported is input audio component (Sink, abbreviated as SNK).
The function that the peripheral reads the address book from the main control equipment can be realized based on the Bluetooth connection of the telephone directory access configuration file. The main role supported by the PBAP is (the device at contacts) the source telephone book objects, abbreviated as PCE), and the peripheral role supported by the PBAP is (the device at records telephone book, abbreviated as PSE).
Fig. 1 is a flowchart of a bluetooth connection method according to an embodiment of the present invention, where the method may be applied to a first device, and a bluetooth profile in the first device may support both a peripheral role and a master role, and referring to fig. 1, the method may include:
step 101, obtaining a role identifier of a second device to be connected by Bluetooth.
The role identifier of the second device is used to indicate a role supported by the bluetooth profile in the second device, and the role may be a peripheral role or a master role.
And 102, judging whether the role indicated by the role identification of the second equipment is a peripheral role or a main control role. If yes, go to step 103; if the role is the master role, step 104 is executed.
Step 103, the first device establishes bluetooth connection with the second device in a master role.
And step 104, establishing Bluetooth connection between the first device and the second device in an external role.
Because the role type of the first device is different from the role type supported by the bluetooth configuration file in the second device and is matched with the role type, the bluetooth connection can be successfully established between the two devices. The first device may run in an android operating system, and the second device may run in the android operating system or an apple operating system (IOS).
Further, in the embodiment of the present invention, when the first device establishes the bluetooth connection with the second device, the bluetooth connection may be implemented by an active connection and a passive connection, where the active connection refers to that the first device actively scans the peripheral devices and initiates a bluetooth connection request, and the passive connection refers to that the first device waits for the other device to scan and receives the bluetooth connection request initiated by the other device. The bluetooth connection method provided by the embodiment of the present invention is described in detail with respect to the two connection modes.
In one aspect, for the case that the first device actively initiates the bluetooth connection request, the flowchart of the bluetooth connection method may be as shown in fig. 2, and the method may include:
step 201, the first device starts the bluetooth module to scan other devices within a preset distance range.
In the embodiment of the present invention, the first device may be triggered to start the bluetooth module through a preset operation by a user, for example, when the user clicks a bluetooth icon displayed on a display interface of the first device, the first device may generate a bluetooth start instruction according to the click operation, and start the bluetooth module. After the bluetooth module is started, other devices within a preset distance range (for example, within a range of 10 meters) can be scanned.
Step 202, when a second device capable of performing bluetooth connection is scanned through the bluetooth module, sending a role identifier acquisition request to the second device, and receiving a role identifier returned by the second device.
If the second device is located within a preset distance range from the first device, and the second device also has the bluetooth module turned on and is in a detectable state, the first device can scan the second device and can send a role identifier acquisition request to the second device to acquire the role identifier of the second device. For example, assuming that the second device is an IOS mobile phone and the first device is a peripheral device adopting an android operating system (i.e., an intelligent peripheral device developed by using an android platform), the role identifier of the second device acquired by the first device may be an identifier of a master role. Such as an identification of an AG, an identification of an SRC, or an identification of a PCE.
Step 203, sending a bluetooth connection request to the second device according to the role identifier of the second device, where the bluetooth connection request carries the role identifier of the first device.
After acquiring the role identifier of the second device, the first device may send a bluetooth connection request to the second device in order to establish a bluetooth connection with the second device, where the bluetooth connection request carries the role identifier of the first device, and the role identifier of the first device carried in the bluetooth connection request is different from the role indicated by the role identifier of the second device.
For example, when the role indicated by the role identifier of the IOS handset is a master role, the role identifier carried in the bluetooth connection request sent by the android peripheral to the IOS handset may be an identifier of a peripheral role, such as an identifier of HF, an identifier of SNK, an identifier of PSE, or the like; when the role indicated by the role identifier of the second device is a peripheral role, the role identifier carried in the bluetooth connection request sent by the first device may be an identifier of a master role.
In addition, because a plurality of types of bluetooth profiles may be set in the first device and the second device, when the first device sends a bluetooth connection request to the second device, one bluetooth connection request may be sent based on each type of bluetooth profile, and each bluetooth connection request carries an identifier of a role supported by the type of bluetooth profile. Specifically, for HFP connection, the android peripheral device may initiate a bluetooth connection request to the second device by calling a bluetooth handset/client _ connect () function, where a role identifier carried in the bluetooth connection request is an identifier of an HF role; for the connection of A2DP, the android peripheral device may initiate a bluetooth connection request to the second device by calling a bluetooth A2dpclient. For PBAP connection, the android peripheral device may initiate a bluetooth connection request to the second device through a getpbaplive (). connect () function, and a role identifier carried in the bluetooth connection request is an identifier of a PSE role.
And step 204, updating the display interface of the first device according to the result of the Bluetooth connection.
After receiving the bluetooth connection request sent by the first device, the second device may send a connection response message to the first device, and after receiving the connection response message, the first device may determine that the bluetooth connection is successful and send data to the second device, or receive data sent by the second device; if the first device does not receive the connection response message sent by the second device within the preset time period, it may be determined that the bluetooth connection fails. The first device can update the display interface of the first device according to the judged Bluetooth connection result.
For example, if the bluetooth connection of HFP fails, a prompt message of "no mobile phone audio" may be displayed on the display interface; if the Bluetooth connection of A2DP fails, a prompt message of 'no media audio' can be displayed; if the PBAP fails to connect with the Bluetooth, a prompt message of 'unable to synchronize the address list' can be displayed. If any one of the three bluetooth profiles is successfully connected, a prompt message of "connected" can be displayed, or a specific type of bluetooth connection, such as "mobile phone audio is connected" or "media audio is connected", can be displayed.
It should be noted that, in practical application, a status flag bit may be set in the bluetooth configuration file of the first device, and the first device may determine whether the bluetooth connection of each bluetooth configuration file is successful through the status flag bit, and update the display interface of the first device according to the determination result.
According to the analysis, the peripheral adopting the android operating system can perform bluetooth connection with the IOS device in a role different from that of the IOS device according to the role identifier of the IOS device, so that the function of connecting the android device (such as an android rearview mirror) with the IOS device (such as an IOS mobile phone) can be realized, and the flexibility of bluetooth connection between devices is greatly improved.
On the other hand, for the case that the first device is passively connected, the flowchart of the bluetooth connection method may be as shown in fig. 3, and the method may include:
step 301, a bluetooth module in a first device is started so that a second device can scan the first device.
When the first device needs to be connected with other devices through Bluetooth, the Bluetooth module in the first device can be started first, and the Bluetooth detectable function is started, so that the second device can scan the first device after the Bluetooth module is started.
Step 302, receiving a role identifier obtaining request sent by the second device.
After the bluetooth module is started, the second device actively scans the surrounding devices, and when the second device scans the first device, the second device may first send a role identifier acquisition request to the first device to acquire the role identifier of the first device. The role identifier obtaining request sent by the second device may also carry the role identifier of the second device.
And step 303, analyzing and obtaining the role identifier of the second device in the role identifier obtaining request.
After receiving the role identifier acquisition request sent by the second device, the first device may analyze the role identifier acquisition request and acquire the role identifier of the second device carried in the role identifier acquisition request. For example, assuming that the first device is an android peripheral and the second device is an IOS mobile phone, the role identifier of the IOS mobile phone acquired by the android peripheral may be an identifier of an AG, an identifier of an SRC, an identifier of a PCE, or the like; if the first device is an android mobile phone and the second device is an IOS smart speaker, the role identifier of the IOS smart speaker acquired by the android mobile phone may be an identifier of HF, an identifier of SNK, or an identifier of PSE.
And step 304, sending the role identification of the first device to the second device according to the role identification of the second device.
After the first device obtains the role identifier of the second device, it may first determine whether the role indicated by the role identifier of the second device is a peripheral role or a master role, and if the second device is a peripheral role, the role identifier sent by the first device to the second device may be an identifier of the master role; if the second device is in the master role, the role identifier sent by the first device to the second device may be an identifier of a peripheral role. And the second equipment determines that the Bluetooth connection can be established with the first equipment according to the role identification sent by the first equipment. For example, the android peripheral may send an identification of the HF role in HFP, an identification of the SNK role in A2DP, and an identification of the PSE role in PBAP to the IOS handset.
It should be noted that, in another optional implementation manner of the present invention, if the user already knows the role identifier of the second device to be connected via bluetooth before the first device starts the bluetooth module, the user may actively close the peripheral role or the master role supported in the bluetooth configuration file of the first device according to the role identifier of the second device, so that the bluetooth configuration file only supports one role.
Specifically, when the role indicated by the role identifier of the second device is the master role, the user may close the master role in the bluetooth configuration file of the first device, so that the bluetooth configuration file only supports the peripheral role; when the role indicated by the role identifier of the second device is the peripheral role, the user can close the peripheral role in the bluetooth configuration file, so that the bluetooth configuration file only supports the master role. For example, assuming that the first device is a peripheral running an android operating system, when the android peripheral needs to establish a bluetooth connection with an IOS handset (a role supported by a bluetooth profile of the IOS handset is a master role), a user may close an AG role in HFP, an SNK role in A2DP, and a PCE role in PBAP of the android peripheral, where roles supported by bluetooth profiles in the peripheral are peripheral roles.
Further, the manner of closing a certain role in the bluetooth configuration file may be to close in firmware of the device, or close in the upper layer code by means of a feature value feature, for example, the first device may close an AG role in HFP by a function disabled profile _ supported _ hs _ HFP, close an SRC role in A2DP by a function profile _ supported _ A2dp, and close a PCE role in PBAP by a function profile _ supported _ PBAP.
Step 305, receiving a bluetooth connection request sent by the second device.
After the second device receives the role identifier sent by the first device, because the role indicated by the role identifier of the first device is different from the role supported by the bluetooth profile of the second device, the second device may determine that a bluetooth connection can be established with the first device, and send a bluetooth connection request to the first device to establish a bluetooth connection with the first device.
For example, after receiving the identifier of the HF role, the identifier of the SNK role, and the identifier of the PSE role sent by the android peripheral, the IOS mobile phone may determine the android peripheral as an external device, and send a bluetooth connection request to the android peripheral.
And step 306, performing bluetooth connection with the second device according to the bluetooth connection request.
For example, after receiving a bluetooth connection request sent by an IOS mobile phone, the android peripheral device may establish bluetooth connection with the IOS mobile phone, and the bluetooth connection process may be that an AG role of HFP in the IOS mobile phone connects an HF role of HFP in the android peripheral device, an SRC role of A2DP in the IOS mobile phone connects an SNK role of A2DP in the android peripheral device, or a PCE role of PBAP in the IOS mobile phone connects a PSE role of PBAP in the android peripheral device.
Further, as shown in step 204, after the first device performs bluetooth connection with the second device according to the bluetooth connection request, the display interface of the first device may also be updated according to the result of the bluetooth connection. For the specific updating process, reference may be made to step 204, which is not described in detail herein.
It should be noted that, the order of the steps of the bluetooth connection method provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be correspondingly increased or decreased according to the situation. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure is covered by the protection scope of the present disclosure, and thus, the detailed description thereof is omitted.
The invention provides a Bluetooth connection method, which can be applied to a first device, wherein a Bluetooth configuration file in the first device simultaneously supports a peripheral role and a main control role, and the first device can establish Bluetooth connection with a second device in a role different from that of the second device according to a role identifier of the second device to be connected. Therefore, the first device can be connected with the second devices with different role types without customizing the Bluetooth chip, the manufacturing cost is reduced, and the flexibility of Bluetooth connection between the devices is effectively improved. In addition, the Bluetooth connection method provided by the embodiment of the invention can also realize Bluetooth connection between the android device and the IOS device, thereby further improving the flexibility of Bluetooth connection.
Fig. 4 is a schematic structural diagram of a bluetooth connection apparatus according to an embodiment of the present invention, where the apparatus may be applied to a first device, and a bluetooth profile in the first device supports both a peripheral role and a master role, and referring to fig. 4, the apparatus may include:
an obtaining unit 401, configured to obtain a role identifier of a second device to be connected by bluetooth.
A connection unit 402, configured to determine whether the role indicated by the role identifier of the second device is a peripheral role or a master role, if the role is the peripheral role, enable the first device to establish a bluetooth connection with the second device in the master role, and if the role is the master role, enable the first device to establish a bluetooth connection with the second device in the peripheral role.
In one aspect, the process of acquiring the role identifier of the second device to be connected by bluetooth by the acquiring unit 401 may include:
scanning a second device capable of being connected by Bluetooth through a Bluetooth module, sending a role identification acquisition request to the second device, and receiving a role identification returned by the second device.
On the other hand, the process of acquiring the role identifier of the second device to be connected by bluetooth by the acquiring unit 401 may further include:
and receiving a role identification acquisition request sent by a second device to be connected by Bluetooth, and analyzing to obtain the role identification of the second device in the role identification acquisition request.
Optionally, the peripheral role comprises any of a hands-free component HF, an input audio component SNK and a phonebook reception component PSE.
Optionally, the first device runs in an android operating system; the second device runs in an android operating system or an IOS system.
The invention provides a Bluetooth connection device, which can be applied to a first device, wherein a Bluetooth configuration file in the first device simultaneously supports a peripheral role and a main control role, and the first device can establish Bluetooth connection with a second device in a role different from that of the second device according to a role identifier of the second device to be connected. Therefore, the first device can be connected with the second devices with different role types without customizing the Bluetooth chip, the manufacturing cost is reduced, and the flexibility of Bluetooth connection between the devices is effectively improved.
Fig. 5 is a schematic diagram of a communication system according to an embodiment of the present invention, as shown in fig. 5, the communication system may include: at least two devices 01 and 02, between which the at least two devices 01 and 02 can establish a bluetooth connection; at least one of the at least two devices includes a bluetooth connection apparatus as shown in fig. 4. Wherein, the first device 01 of the at least two devices may be a bluetooth headset running in an android system, a bluetooth speaker, or an intelligent peripheral such as a bluetooth rearview mirror shown in fig. 5.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A Bluetooth connection method is characterized in that the method is applied to a first device, a Bluetooth configuration file in the first device simultaneously supports an external role and a master role, and a state flag bit is arranged in the Bluetooth configuration file; the method comprises the following steps:
acquiring a role identifier of a second device to be connected by Bluetooth;
determining whether the role indicated by the role identification of the second device is a peripheral role or a master role,
if the first device is in the peripheral role, the first device establishes Bluetooth connection with the second device in the main control role,
if the first device is the master control role, enabling the first device to establish Bluetooth connection with the second device through an external role;
judging whether the Bluetooth connection is successful or not through the status flag bit, and updating a display interface of the first device according to a judgment result;
the first device is an intelligent peripheral adopting an android operating system, the second device is a mobile phone adopting an IOS system, a plurality of types of Bluetooth configuration files are arranged in the first device and the second device, when Bluetooth connection is established between the first device and the second device, the first device or the second device sends a Bluetooth connection request based on each type of Bluetooth configuration file, and the Bluetooth connection request carries the identification of the role supported by the type of Bluetooth configuration file.
2. The method of claim 1, wherein obtaining the role identifier of the second device to be bluetooth connected comprises:
scanning a second device capable of being connected by Bluetooth through a Bluetooth module, sending a role identification acquisition request to the second device, and receiving a role identification returned by the second device.
3. The method of claim 1, wherein obtaining the role identifier of the second device to be bluetooth connected comprises:
receiving a role identification obtaining request sent by second equipment to be connected by Bluetooth, and analyzing to obtain the role identification of the second equipment in the role identification obtaining request.
4. The method according to any one of claims 1 to 3,
the peripheral role comprises any of a hands free component HF, an input audio component SNK and a phonebook reception component PSE.
5. A Bluetooth connection device is characterized in that the Bluetooth connection device is applied to a first device, a Bluetooth configuration file in the first device simultaneously supports an external role and a master role, and a state flag bit is arranged in the Bluetooth configuration file; the device comprises:
the acquisition unit is used for acquiring the role identification of the second device to be connected by the Bluetooth;
the connection unit is used for judging whether the role indicated by the role identification of the second equipment is a peripheral role or a main control role, if so, the first equipment establishes Bluetooth connection with the second equipment in the main control role, and if so, the first equipment establishes Bluetooth connection with the second equipment in an external role;
the module is used for judging whether the Bluetooth connection is successful or not through the status flag bit and updating a display interface of the first equipment according to a judgment result;
the first device is an intelligent peripheral adopting an android operating system, the second device is a mobile phone adopting an IOS system, a plurality of types of Bluetooth configuration files are arranged in the first device and the second device, when Bluetooth connection is established between the first device and the second device, the first device or the second device sends a Bluetooth connection request based on each type of Bluetooth configuration file, and the Bluetooth connection request carries the identification of the role supported by the type of Bluetooth configuration file.
6. The apparatus of claim 5, wherein the obtaining unit obtains the role identifier of the second device to be bluetooth connected, and comprises:
scanning a second device capable of being connected by Bluetooth through a Bluetooth module, sending a role identification acquisition request to the second device, and receiving a role identification returned by the second device.
7. The apparatus of claim 5, wherein the obtaining unit obtains the role identifier of the second device to be bluetooth connected, and comprises:
receiving a role identification obtaining request sent by second equipment to be connected by Bluetooth, and analyzing to obtain the role identification of the second equipment in the role identification obtaining request.
8. The apparatus according to any one of claims 5 to 7,
the peripheral role comprises any of a hands free component HF, an input audio component SNK and a phonebook reception component PSE.
9. A communication system, the communication system comprising: at least two devices;
at least one of the at least two devices comprising a bluetooth connection apparatus as claimed in any one of claims 5 to 8.
CN201610888879.7A 2016-10-12 2016-10-12 Bluetooth connection method, device and communication system Active CN106658359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610888879.7A CN106658359B (en) 2016-10-12 2016-10-12 Bluetooth connection method, device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610888879.7A CN106658359B (en) 2016-10-12 2016-10-12 Bluetooth connection method, device and communication system

Publications (2)

Publication Number Publication Date
CN106658359A CN106658359A (en) 2017-05-10
CN106658359B true CN106658359B (en) 2020-09-11

Family

ID=58855198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610888879.7A Active CN106658359B (en) 2016-10-12 2016-10-12 Bluetooth connection method, device and communication system

Country Status (1)

Country Link
CN (1) CN106658359B (en)

Families Citing this family (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106507501B (en) * 2016-10-14 2020-02-11 Oppo广东移动通信有限公司 Bluetooth connection method and device
CN110191443A (en) * 2019-04-30 2019-08-30 努比亚技术有限公司 Bluetooth communication connection method, communication equipment and storage medium
CN110248343A (en) * 2019-04-30 2019-09-17 努比亚技术有限公司 Communication means, equipment, system and readable storage medium storing program for executing
CN110225502A (en) * 2019-04-30 2019-09-10 努比亚技术有限公司 Communication control method, equipment, system and readable storage medium storing program for executing
CN110139258A (en) * 2019-04-30 2019-08-16 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110198536A (en) * 2019-04-30 2019-09-03 努比亚技术有限公司 Communication control method, equipment, system and readable storage medium storing program for executing
CN110225500B (en) * 2019-04-30 2022-04-29 努比亚技术有限公司 Communication method, device, system and readable storage medium
CN110139257A (en) * 2019-04-30 2019-08-16 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110213750A (en) * 2019-04-30 2019-09-06 努比亚技术有限公司 Communication control method, equipment, system and readable storage medium storing program for executing
CN110267240A (en) * 2019-04-30 2019-09-20 努比亚技术有限公司 Communication control method, communication equipment and storage medium
CN110267242A (en) * 2019-04-30 2019-09-20 努比亚技术有限公司 Communication means, equipment, system and readable storage medium storing program for executing
CN110213836A (en) * 2019-04-30 2019-09-06 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110087222B (en) * 2019-04-30 2021-12-03 努比亚技术有限公司 Role switching control method, communication device, and storage medium
CN110691347A (en) * 2019-04-30 2020-01-14 努比亚技术有限公司 Communication connection method, communication device, and storage medium
CN110191444A (en) * 2019-04-30 2019-08-30 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110213749A (en) * 2019-04-30 2019-09-06 努比亚技术有限公司 Communication processing method, communication equipment and storage medium
CN110062368A (en) * 2019-04-30 2019-07-26 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110225498A (en) * 2019-04-30 2019-09-10 努比亚技术有限公司 Communication control method, communication equipment and storage medium
CN110267243A (en) * 2019-04-30 2019-09-20 努比亚技术有限公司 Communication control method, communication equipment and storage medium
CN110225503A (en) * 2019-04-30 2019-09-10 努比亚技术有限公司 Communication control method, equipment, system and readable storage medium storing program for executing
CN110505611A (en) * 2019-04-30 2019-11-26 努比亚技术有限公司 Communication means, equipment, system and readable storage medium storing program for executing
CN110225499A (en) * 2019-04-30 2019-09-10 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110248344A (en) * 2019-04-30 2019-09-17 努比亚技术有限公司 Communication means, equipment, system and readable storage medium storing program for executing
CN110234099A (en) * 2019-04-30 2019-09-13 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110267361B (en) * 2019-04-30 2022-05-03 努比亚技术有限公司 Communication control method, device, system and readable storage medium
CN110121163A (en) * 2019-04-30 2019-08-13 努比亚技术有限公司 Registration handling method, communication equipment and storage medium
CN110225501A (en) * 2019-04-30 2019-09-10 努比亚技术有限公司 Communication control method, equipment, system and readable storage medium storing program for executing
CN110267241A (en) * 2019-04-30 2019-09-20 努比亚技术有限公司 Communication means, equipment, system and readable storage medium storing program for executing
CN110213752A (en) * 2019-04-30 2019-09-06 努比亚技术有限公司 Communication means, equipment, system and readable storage medium storing program for executing
CN110740438B (en) * 2019-04-30 2022-04-29 努比亚技术有限公司 Communication method, device, system and readable storage medium
CN110087223B (en) * 2019-04-30 2022-11-15 努比亚技术有限公司 Communication connection method, communication device, and storage medium
CN110191445A (en) * 2019-04-30 2019-08-30 努比亚技术有限公司 Communication connecting method, communication equipment and storage medium
CN110267244A (en) * 2019-04-30 2019-09-20 努比亚技术有限公司 Communication handover method, equipment, system and readable storage medium storing program for executing
CN110087224B (en) * 2019-04-30 2021-12-03 努比亚技术有限公司 Registration control method, communication device, and storage medium
CN111800836B (en) * 2020-06-30 2024-01-16 北京小米移动软件有限公司 Communication method, device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056256A (en) * 2006-04-11 2007-10-17 创杰科技股份有限公司 Role exchange method for bluetooth radio communication system
CN103686516A (en) * 2013-12-11 2014-03-26 乐视致新电子科技(天津)有限公司 Bluetooth headset capable of sharing audios and control method thereof
CN104539323A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Bluetooth low-power-consumption networking interconnection method and system
CN105490712A (en) * 2015-12-31 2016-04-13 中科创达软件股份有限公司 Bluetooth device connection method and bluetooth device
CN105827282A (en) * 2016-05-24 2016-08-03 卧槽科技(深圳)有限公司 Bluetooth equipment networking method and device and Bluetooth equipment
CN105828281A (en) * 2016-05-19 2016-08-03 北京小米移动软件有限公司 Device connection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179749B (en) * 2006-11-09 2010-05-12 艾威梯科技(北京)有限公司 System and method for supporting automatic establishment and disconnection of wireless cluster connection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056256A (en) * 2006-04-11 2007-10-17 创杰科技股份有限公司 Role exchange method for bluetooth radio communication system
CN103686516A (en) * 2013-12-11 2014-03-26 乐视致新电子科技(天津)有限公司 Bluetooth headset capable of sharing audios and control method thereof
CN104539323A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Bluetooth low-power-consumption networking interconnection method and system
CN105490712A (en) * 2015-12-31 2016-04-13 中科创达软件股份有限公司 Bluetooth device connection method and bluetooth device
CN105828281A (en) * 2016-05-19 2016-08-03 北京小米移动软件有限公司 Device connection method and device
CN105827282A (en) * 2016-05-24 2016-08-03 卧槽科技(深圳)有限公司 Bluetooth equipment networking method and device and Bluetooth equipment

Also Published As

Publication number Publication date
CN106658359A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106658359B (en) Bluetooth connection method, device and communication system
RU2541913C2 (en) System and method for providing wireless cellular connection
US9553973B2 (en) Apparatus and method for disclosing privacy conditions between communication devices
EP3200549A1 (en) Method and device for wireless communication between communication terminals
US20130029604A1 (en) Short-range wireless communication apparatus
CN113411793A (en) Bluetooth communication method and terminal
JP2002125268A (en) Method for specifying radio communication connection destination
CN103379448A (en) Method of reducing a waiting time when cancelling a connection and an electronic device therefor
KR20090098113A (en) Method and apparatus for preventing error of bluetooth communication
WO2019011324A1 (en) Method for determining access method of mobile terminal, storage medium, and mobile terminal
KR20160031798A (en) Electronic device and method for displaying call conversation
US9681290B2 (en) Dummy phone numbers to manage states on mobile phones
CN111132117B (en) Bluetooth connection method and device, vehicle and storage medium
JP6062293B2 (en) Hands-free communication device and computer program
KR20190086325A (en) Electronic device for managing embedded subscriber identity module and method for the same
JP5359198B2 (en) Hands-free device
CN107395661B (en) Vehicle computer system, server and telematics control unit
KR101151850B1 (en) Method for automatic bluetooth pairing in portable terminal
CN115580944A (en) Audio device connection method and device, storage medium and device
CN113810887B (en) Bluetooth protocol connection method and device, storage medium and related equipment
JP2002218556A (en) Communication terminal, communication method and recording medium
CN115209380A (en) Method and equipment for enabling mobile terminal and vehicle-mounted terminal to interact
CN115396870A (en) Call control method and device, call system, wearable device and readable medium
CN113053370A (en) Method and device for awakening application
CN101384046A (en) Data calling method and system in mobile terminal system

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
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder