CN109548184A - Connect the method, apparatus and mobile terminal of mobile terminal and bluetooth equipment - Google Patents

Connect the method, apparatus and mobile terminal of mobile terminal and bluetooth equipment Download PDF

Info

Publication number
CN109548184A
CN109548184A CN201710702455.1A CN201710702455A CN109548184A CN 109548184 A CN109548184 A CN 109548184A CN 201710702455 A CN201710702455 A CN 201710702455A CN 109548184 A CN109548184 A CN 109548184A
Authority
CN
China
Prior art keywords
bluetooth equipment
mobile terminal
equipment
bluetooth
pairing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710702455.1A
Other languages
Chinese (zh)
Other versions
CN109548184B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710702455.1A priority Critical patent/CN109548184B/en
Publication of CN109548184A publication Critical patent/CN109548184A/en
Application granted granted Critical
Publication of CN109548184B publication Critical patent/CN109548184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of method, apparatus and mobile terminal for connecting mobile terminal and bluetooth equipment, this method comprises: mobile terminal detects whether to receive multiple triggering message matched with bluetooth equipment;In the case where receiving multiple triggering message, mobile terminal obtains the facility information of each bluetooth equipment respectively, to realize the successful pairing with each bluetooth equipment;In the case where successfully matching with each bluetooth equipment, mobile terminal establishes corresponding RFECOMM channel according between the multiple equipment information and each bluetooth equipment of acquisition respectively.The present invention becomes the more RFECOMM channel fashions of single pair from traditional one-to-one RFECOMM channel fashion, mobile terminal is set to be matched and be connect with multiple bluetooth equipments simultaneously, pairing connection, the poor problem of user experience can only be carried out with a equipment earphone by solving prior art mobile terminal.

Description

Connect the method, apparatus and mobile terminal of mobile terminal and bluetooth equipment
Technical field
The present invention relates to field of mobile communication, more particularly to a kind of method of connection mobile terminal and bluetooth equipment, dress It sets and mobile terminal.
Background technique
With the development of wireless communication and close range technologies, mobile terminal device is more and more using the scene of bluetooth, moves It can be carried out data transmission by bluetooth between dynamic terminal.At the same time, mobile terminal and bluetooth headset pairing connection use Scene is more and more: can more easily receive calls when driving with bluetooth headset, or carry out sound, video using bluetooth headset It plays.In the prior art, mobile terminal device can only carry out pairing connection with a bluetooth equipment, and match and connect with current device It cannot be matched again when connecing and connect new earphone, user needs manual pairings to connect when being switched to another money equipment from certain a equipment It connects, relatively time-consuming, user experience is poor.
Summary of the invention
The present invention provides a kind of method, apparatus and mobile terminal for connecting mobile terminal and bluetooth equipment, to solve Prior art mobile terminal can only carry out the problem of pairing connection with a bluetooth headset.
In order to solve the above technical problems, on the one hand, the present invention provides a kind of method for connecting mobile terminal and bluetooth equipment, It include: that mobile terminal detects whether to receive multiple triggering message matched with bluetooth equipment;It is multiple described receiving In the case where triggering message, the mobile terminal obtains the facility information of each bluetooth equipment respectively, to realize and each bluetooth The successful pairing of equipment;In the case where successfully matching with each bluetooth equipment, the mobile terminal is set according to the multiple of acquisition Corresponding RFECOMM channel is established respectively between standby information and each bluetooth equipment.
Further, before mobile terminal detects whether to receive multiple triggering message matched with bluetooth equipment, also It include: that the mobile terminal detects whether to receive modification request, wherein the modification request can in predetermined protocol for modifying The default maximum number of connections of access device, the predetermined protocol include: HFP (Hands-free Profile) agreement and A2DP (Advanced Audio Distribution Profile) agreement;In the case where receiving modification request, according to institute It states modification request and modifies the default maximum number of connections.
Further, the mobile terminal obtains the facility information of each bluetooth equipment respectively, is set with realizing with each bluetooth Standby successful pairing, comprising: S21, the mobile terminal send pairing request to the first bluetooth equipment to be accessed;S22, judgement are worked as Whether the quantity of preceding successful matching is greater than default maximum number of connections;S23 is less than or equal in the quantity of the successful matching In the case where the default maximum number of connections, the facility information of the first bluetooth equipment to be accessed described in the acquisition for mobile terminal, To realize the successful pairing with the described first bluetooth equipment to be accessed, and pairing request is sent to the second bluetooth equipment to be accessed; The quantity of successful matching is added 1, repeats S22 and S23 by S24, until the quantity of the successful matching is greater than described pre- If maximum number of connections.
Further, the mobile terminal obtains the facility information of each bluetooth equipment respectively, is set with realizing with each bluetooth After standby successful pairing, further includes: generate pairing identification code according to the facility information of the bluetooth equipment, wherein described to set Standby information includes: title and media intervention address control layer (MAC, Media Access Control) of bluetooth equipment;By institute Title, MAC Address and the pairing identification code for stating bluetooth equipment are stored with stack.
Further, the mobile terminal is according to foundation pair respectively between the multiple equipment information and each bluetooth equipment of acquisition After the RFECOMM channel answered, further includes: in the case where receiving the corresponding request of the predetermined protocol, use predetermined indigo plant Tooth equipment transmits the corresponding data of the predetermined protocol, wherein the predetermined bluetooth equipment is in the information of stack storage The last corresponding bluetooth equipment of information saved on time.
On the other hand, the present invention also provides a kind of devices for connecting mobile terminal and bluetooth equipment, comprising: detection module, For detecting whether receiving multiple triggering message matched with bluetooth equipment;Matching module, for receive it is multiple In the case where the triggering message, the facility information of each bluetooth equipment is obtained, to realize mobile terminal and each bluetooth equipment Successful pairing;Link block is used in the case where mobile terminal and each bluetooth equipment successfully match, according to the more of acquisition Corresponding RFECOMM channel is established between a facility information and each bluetooth equipment respectively.
Further, further includes: the detection module is also used to detect whether to receive modification request, wherein the modification Request for modify in predetermined protocol can access equipment default maximum number of connections, the predetermined protocol include: HFP agreement and A2DP agreement;Modified module, for being modified according to modification request described pre- in the case where receiving modification request If maximum number of connections.
Further, the matching module is specifically used for: S21, sends pairing request to the first bluetooth equipment to be accessed;S22, Judge whether the quantity of current successful matching is greater than default maximum number of connections;S23 is less than in the quantity of the successful matching Or in the case where being equal to the default maximum number of connections, the facility information of first bluetooth equipment to be accessed is obtained, to realize With the successful pairing of the described first bluetooth equipment to be accessed, and pairing request is sent to the second bluetooth equipment to be accessed;S24, will The quantity of successful matching adds 1, repeats S22 and S23, until the quantity of the successful matching is greater than the default maximum Connection number.
Further, further includes: the matching module is also used to generate pairing according to the facility information of the bluetooth equipment and know Other code, wherein the facility information includes: the title and MAC Address of bluetooth equipment;Memory module, for setting the bluetooth Standby title, MAC Address and pairing identification code is stored with stack.
The present invention becomes the more RFECOMM channel fashions of single pair from traditional one-to-one RFECOMM channel fashion, makes mobile whole End can be matched and be connect with multiple bluetooth equipments simultaneously, and solving prior art mobile terminal can only be with a equipment ear Machine carries out pairing connection, the poor problem of user experience.
Detailed description of the invention
Fig. 1 is the method flow diagram that mobile terminal and bluetooth equipment are connected in first embodiment of the invention;
Fig. 2 is the apparatus structure schematic diagram that mobile terminal and bluetooth equipment are connected in second embodiment of the invention;
Fig. 3 is the structural schematic diagram of mobile terminal in third embodiment of the invention;
Fig. 4 is storage schematic diagram of the information in storehouse in third embodiment of the invention.
Specific embodiment
In order to solve the problems, such as that prior art mobile terminal can only carry out pairing connection with a bluetooth headset, the present invention is mentioned A kind of method, apparatus and mobile terminal for connecting mobile terminal and bluetooth equipment has been supplied, below in conjunction with attached drawing and embodiment, The present invention will be described in further detail.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, Do not limit the present invention.
The first embodiment of the present invention provides a kind of method for connecting mobile terminal and bluetooth equipment, and flow chart is as schemed Shown in 1, step S101 to S103 is specifically included:
S101, mobile terminal detect whether to receive multiple triggering message matched with bluetooth equipment;
S102, in the case where receiving multiple triggering message, equipment that mobile terminal obtains each bluetooth equipment respectively Information, to realize the successful pairing with each bluetooth equipment;
S103, in the case where successfully matching with each bluetooth equipment, mobile terminal is according to the multiple equipment information of acquisition Establish corresponding RFECOMM channel respectively between each bluetooth equipment.
Defaulting attachable bluetooth equipment number due to mobile terminal is one, so need to carry out to preset maximum number of connections Modification, can just make mobile terminal while connect multiple bluetooth equipments, i.e., detect whether to receive multiple and bluetooth in mobile terminal Before the triggering message that equipment is matched, detect whether to receive modification request, and the case where receiving modification request Under, default maximum number of connections is modified according to modification request.Wherein, modification request can access equipment for modifying in predetermined protocol Default maximum number of connections.The bluetooth equipment as involved in the present embodiment be bluetooth headset, so predetermined protocol be HFP agreement with And A2DP agreement.
When user opens the Bluetooth function of mobile terminal, mobile terminal can be searched for automatically can institute in join domain at it There is the bluetooth equipment for having been switched on Bluetooth function, and shows the name of all attachable bluetooth equipments on the screen of the mobile terminal Claim, user generates the triggering message matched with bluetooth equipment, when user successively clicks by clicking the title of bluetooth equipment When multiple bluetooth equipments, multiple triggering message are generated.
In the case where receiving multiple triggering message, mobile terminal obtains each bluetooth equipment by following steps respectively Facility information, to realize and the successful pairing of each bluetooth equipment:
S21, mobile terminal send pairing request to the first bluetooth equipment to be accessed;
S22, judges whether the quantity of current successful matching is greater than default maximum number of connections;
S23, in the case where the quantity of successful matching is less than or equal to default maximum number of connections, acquisition for mobile terminal the The facility information of one bluetooth equipment to be accessed, to realize the successful pairing with the first bluetooth equipment to be accessed, and it is waiting to second Enter bluetooth equipment and sends pairing request;
The quantity of successful matching is added 1, repeats S22 and S23 by S24, until the quantity of successful matching is greater than in advance If maximum number of connections.
After mobile terminal and each bluetooth equipment successful matching, the facility information that can all obtain the bluetooth equipment is matched with generating To identification code, wherein the facility information of bluetooth equipment includes the title unique MAC corresponding with the bluetooth equipment of bluetooth equipment Address.Mobile terminal stores title, MAC Address and the pairing identification code of bluetooth equipment by stack.It is understood that It is information corresponding to the more first bluetooth equipment matched with mobile terminal, it is more early to be stored in storehouse.
Mobile terminal is after establishing connection with multiple ear speaker devices, it can carries out answering for phone by bluetooth equipment Or the broadcasting of audio frequency and video.In the case where receiving the corresponding request of predetermined protocol, using described in the transmission of predetermined bluetooth equipment The corresponding data of predetermined protocol, wherein predetermined bluetooth equipment is time upper the last preservation in the information of stack storage The corresponding bluetooth equipment of information.For example, mobile terminal is successively connect with bluetooth headset A, bluetooth headset B, bluetooth headset C, then The information of bluetooth headset is respectively from top to bottom bluetooth headset C, bluetooth headset B, bluetooth headset A in storehouse, is connect in mobile terminal In the case where receiving the corresponding request of HFP agreement, the upper the last letter saved of time in the information of stack storage is used Corresponding bluetooth equipment is ceased, in the present embodiment as bluetooth headset C.
The present embodiment becomes the more RFECOMM channel fashions of single pair from traditional one-to-one RFECOMM channel fashion, makes to move Terminal can be matched and be connect with multiple bluetooth equipments simultaneously, and solving prior art mobile terminal can only be with a equipment Earphone carries out pairing connection, the poor problem of user experience.
The second embodiment of the present invention provides a kind of device for connecting mobile terminal and bluetooth equipment, structural schematic diagram As shown in Fig. 2, connection mobile terminal and the device of bluetooth equipment include the detection module 201 successively coupled, matching module 202 with And link block 203.Wherein, detection module 201 is for detecting whether receive multiple triggerings matched with bluetooth equipment Message;Matching module 202 is used in the case where receiving multiple triggering message, obtains the facility information of each bluetooth equipment, To realize the successful pairing of mobile terminal Yu each bluetooth equipment;Link block 203 in mobile terminal and each bluetooth for setting It is corresponding according to being established respectively between the multiple equipment information of acquisition and each bluetooth equipment in the case where standby successfully pairing RFECOMM channel.
Defaulting attachable bluetooth equipment number due to mobile terminal is one, so need to carry out to preset maximum number of connections Modification, can just make mobile terminal while connect multiple bluetooth equipments, i.e., detect whether to receive multiple and bluetooth in mobile terminal Before the triggering message that equipment is matched, detect whether to receive modification request by detection module 201, and receiving In the case where modification request, modified module can modify default maximum number of connections according to modification request.Wherein, modification request is for repairing Change the default maximum number of connections that can access equipment in predetermined protocol.The bluetooth equipment as involved in the present embodiment is bluetooth ear Machine, so predetermined protocol is HFP agreement and A2DP agreement.
When user opens the Bluetooth function of mobile terminal, mobile terminal can be searched for automatically can institute in join domain at it There is the bluetooth equipment for having been switched on Bluetooth function, and shows the name of all attachable bluetooth equipments on the screen of the mobile terminal Claim, user generates the triggering message matched with bluetooth equipment, when user successively clicks by clicking the title of bluetooth equipment When multiple bluetooth equipments, multiple triggering message are generated.
Preferably, matching module 202 is carrying out the clock synchronization of matching between mobile terminal and bluetooth equipment, specific to execute following step It is rapid:
S31 sends pairing request to the first bluetooth equipment to be accessed;
S32, judges whether the quantity of current successful matching is greater than default maximum number of connections;
It is to be accessed to obtain first in the case where the quantity of successful matching is less than or equal to default maximum number of connections by S33 The facility information of bluetooth equipment to realize the successful pairing with the first bluetooth equipment to be accessed, and is set to the second bluetooth to be accessed Preparation send pairing request;
The quantity of successful matching is added 1, repeats S32 and S33 by S34, until the quantity of successful matching is greater than in advance If maximum number of connections.
After each bluetooth equipment successful matching, matching module 202 can all obtain the facility information of the bluetooth equipment with life At pairing identification code, wherein the facility information of bluetooth equipment includes that the title of bluetooth equipment is corresponding with the bluetooth equipment unique MAC Address.The device for connecting mobile terminal and bluetooth equipment further includes memory module, at least couples, is used for matching module Title, MAC Address and the pairing identification code of bluetooth equipment are stored by stack.It will be appreciated that more first and mobile Information corresponding to the bluetooth equipment that terminal is matched, it is more early to be stored in storehouse.
The device of the connection mobile terminal and bluetooth equipment of the present embodiment, by traditional one-to-one RFECOMM channel fashion Become the more RFECOMM channel fashions of single pair, mobile terminal is allow to be matched and be connect with multiple bluetooth equipments simultaneously, solves Prior art mobile terminal can only carry out pairing connection, the poor problem of user experience with a equipment earphone.
The third embodiment of the present invention provides a kind of mobile terminal, and structural schematic diagram is as shown in Figure 3.As shown in figure 3, Mobile terminal includes being mutually coupled with lower module: bluetooth module 301 and setup module 302.Wherein, bluetooth module 301 is main (this is equivalent to including authenticating unit 3011 (modified module being equivalent in second embodiment of the invention), pairing unit 3012 Matching module in invention second embodiment), connection unit 3013 (being equivalent to the link block in second embodiment of the invention), Telephony unit 3014 and audio and video playing unit 3015;Setup module 302 is mainly presented in a manner of Bluetooth menu to user For be arranged mobile terminal bluetooth title, whether the setting options such as visible and maximum number of connections.
Further, after user clicks Bluetooth menu in setup module 302, setting options is opened, there is maximum number of connections Option after user's selection, can input the maximum number of connections that mobile terminal needs to access.The use of the bottom most software default of mobile terminal It is 1 that family, which can input maximum number of connections, after user inputs the maximum number of connections N for needing to access, can be incited somebody to action by authenticating unit 3011 The numerical value is sent to bottom most software, and the HFP agreement and the maximum of A2DP agreement of being supported mobile terminal by bottom most software connect Number is revised as the maximum number of connections N of user's needs, and the maximum number of connections shown in setup module 302 at this time is that user sets The N set.
For the present embodiment after bottom modifies the maximum number of connections of HFP agreement and A2DP agreement, user's search can nearby use indigo plant When tooth equipment, pairing unit 3012 can be matched with multiple Bluetooth earphone equipments simultaneously, click first earphone to be accessed Second earphone to be accessed can be accessed simultaneously in the process.Mobile terminal and first item bluetooth headset match clock synchronization, the bluetooth headset Essential information (name and MAC Address) can be saved and generate unique pairing identification code, and the bluetooth headset is basic The API of bluetooth can be used to read in information.During obtaining first item Bluetooth earphone equipment essential information, mobile terminal can It is matched with second item bluetooth headset, to obtain and save the essential information of second item bluetooth headset.Each successful matching Bluetooth headset name and MAC Address can all be stored in the form of storehouse, and store mobile terminal simultaneously in storehouse With the pairing identification code of every money bluetooth headset, as shown in figure 4, corresponding to the more first bluetooth equipment matched with mobile terminal Information, it is more early to be stored in storehouse.Meeting and the equipment after corresponding equipment are selected in search process after mobile terminal unlatching bluetooth MAC Address set up connection, what is be different from the prior art can only currently be attached with a equipment, involved in the present embodiment Mobile terminal can carry out pairing simultaneously with a plurality of bluetooth equipments and connect, pairing process becomes parallel side from traditional serial mode Formula, improves pairing joint efficiency, and increasing terminal and multiple bluetooth equipments match connection procedure.In order to increase user experience, when matching Pair number of devices be more than authenticating unit in preset maximum number of connections when, provide user pop up prompt " number of devices to be paired has connect Full, new equipment can not be accessed " prompt.
After successful matching, mobile terminal can carry out pairing connection with a plurality of bluetooth headsets, current by scan for inquiries first The bluetooth equipment collection that terminal device has matched, secondly judge equipment to be accessed whether there is or not unlatching Bluetooth connection service, finally by Connection unit 3013 initiates the connection request, starts the company of initiation from the bottom up in storehouse according to the information of the bluetooth headset of pairing It connecing, connection request is to initiate parallel, according to the device mac address information stored in storehouse, request is initiated the connection to each equipment, Connection is successfully established rear mobile terminal can possess a bluetooth socket on the same RFECOMM with every a earphone, therefore Mobile terminal and multiple earphones, which match clock synchronization, can establish multiple RFECOMM channels, i.e., by traditional one-to-one channel side RFECOMM Formula becomes the more RFECOMM channel modes of single pair.When the number of devices of connection is more than preset maximum number of connections in authentication module, give User pops up the prompt of prompt " equipment to be accessed has filled, and can not access new equipment " out.
When mobile terminal sends a telegram here or electricity is gone to be conversed, at this time if mobile terminal and the built standing of multiple bluetooth headsets Pairing connection, telephony unit 3014 issue instruction, judge the support feelings of the bluetooth headset HFP agreement and A2DP agreement that currently connect Condition, i.e., when bluetooth headset supports HFP agreement, call sound can work as indigo plant correctly from the bluetooth headset outflow for supporting HFP agreement When tooth earphone does not support HFP agreement, call sound cannot never support the bluetooth headset of HFP agreement to spread out of.Mobile terminal to When other mobile terminals remove electricity, storehouse storage sequence when being connected according to bluetooth headset and mobile terminal pairing, if finally with shifting The bluetooth headset of dynamic terminal successful connection supports HFP agreement, then will finally carry out with the bluetooth headset of mobile terminal successful connection Activation also only can finally lead to after other side connects phone with the bluetooth headset of mobile terminal successful connection with other side Words.In communication process, if most latter linked bluetooth headset is closed, inverse can be automatically switched to by storing sequence conversations according to storehouse The bluetooth headset of second connection is conversed, and so on, as long as there is the HFP earphone of connection to be not turned off, call can be just Often carry out.But when finally not supporting HFP agreement with the bluetooth headset of mobile terminal successful connection, then stored according to storehouse suitable Sequence activates penultimate and the bluetooth headset of mobile terminal successful connection, after other side connects phone, also only falls Number second and the bluetooth headset of mobile terminal successful connection can be conversed with other side.In mobile terminal incoming call, Multiple bluetooth headsets of the support HFP agreement of mobile terminal connection have incoming ring tone, and any one support may be selected in user at this time HFP agreement earphone is answered, and the earphone just can talk after answering.
When carrying out audio and video playing on mobile terminals, audio and video playing unit 3015 judges the bluetooth currently connected Whether earphone supports A2DP agreement, if supporting A2DP agreement, audio and video playing sound can be assisted correctly from all support A2DP The bluetooth headset of view plays out, i.e., supports multiple users to listen to the content of mobile phone broadcasting simultaneously;It can matched when audio and video playing All earphones are activated simultaneously in the storehouse of connection, when mobile terminal and a bluetooth headset pairing connection playing audio-video When, at this time and after the pairing connection of second item bluetooth headset, two earphone can carry out sound view if supporting A2DP agreement simultaneously Frequency plays, and plays identical content, at this time if disconnecting wherein a bluetooth headset, the bluetooth headset disconnected do not continue into Row audio and video playing, but in addition the audio and video playing of a bluetooth headset will not postpone.When mobile terminal and bluetooth headset match When carrying out audio and video playing afterwards, all bluetooth headsets for supporting A2DP agreement are closed, audio-video can suspend broadcasting, when at least two When supporting the bluetooth headset active reconnection success of A2DP agreement, click play audio-video, the bluetooth headset having connected then restores to receive Listen audio-video.
If there is incoming call, which bluetooth of 3014 test earphone storehouse of telephony unit storage at this time during playing audio-video Earphone supports HFP agreement, and all bluetooth headsets for supporting HFP agreement have jingle bell sound, and any ear may be selected in user at this time Machine is conversed;If certain bluetooth headset supports HFP agreement, while A2DP agreement is supported, but preferential due to HFP agreement Grade is higher than A2DP agreement, then jingle bell sound occurs in the bluetooth headset when mobile terminal has incoming call and audio-video pause plays, and uses If family selection is received calls using other bluetooth headsets, audio-video will continue to play out after telephone receiving.Play sound If being ready to electricity during video, finally matched with mobile terminal in 3014 test earphone storehouse of telephony unit storage at this time Whether the bluetooth headset of connection supports HFP agreement, if the bluetooth headset supports HFP agreement, which has jingle bell sound;If The bluetooth headset does not support that meeting and so on is judged from top to bottom in storehouse, the indigo plant until detecting support HFP agreement Tooth earphone if certain bluetooth headset supports HFP agreement, and supports A2DP agreement, since the priority of HFP agreement is wanted simultaneously Higher than A2DP agreement, which will appear jingle bell sound, and suspend audio and video playing, will continue to carry out audio-video when the call ends It plays.
In order to facilitate the connection status for using and checking current mobile terminal of user, the present embodiment is set in the terminal It is equipped with widget (widgets) menu, is arranged on the main screen of mobile terminal in above-mentioned widgets menu, for showing movement Terminal currently with the connection status of bluetooth headset, facilitates user to check and has connected the information such as earphone number, earphone current electric quantity.When with When the widgets menu on screen is clicked at family, it can be rapidly introduced into the Bluetooth menu of setup module 302, i.e. widgets menu Interaction mode is remained with setup module 302.
Although for illustrative purposes, the preferred embodiment of the present invention has been disclosed, those skilled in the art will recognize It is various improve, increase and replace be also it is possible, therefore, the scope of the present invention should be not limited to the above embodiments.

Claims (10)

1. a kind of method for connecting mobile terminal and bluetooth equipment characterized by comprising
Mobile terminal detects whether to receive multiple triggering message matched with bluetooth equipment;
In the case where receiving multiple triggering message, the mobile terminal obtains the equipment letter of each bluetooth equipment respectively Breath, to realize the successful pairing with each bluetooth equipment;
In the case where successfully matching with each bluetooth equipment, the mobile terminal is according to the multiple equipment information of acquisition and each Corresponding RFECOMM channel is established between bluetooth equipment respectively.
2. the method as described in claim 1, which is characterized in that mobile terminal detect whether to receive multiple and bluetooth equipment into Before the triggering message of row pairing, further includes:
The mobile terminal detects whether to receive modification request, wherein the modification request can in predetermined protocol for modifying The default maximum number of connections of access device, the predetermined protocol include: HFP agreement and A2DP agreement;
In the case where receiving modification request, the default maximum number of connections is modified according to modification request.
3. the method as described in claim 1, which is characterized in that the equipment that the mobile terminal obtains each bluetooth equipment respectively Information, to realize the successful pairing with each bluetooth equipment, comprising:
S21, the mobile terminal send pairing request to the first bluetooth equipment to be accessed;
S22, judges whether the quantity of current successful matching is greater than default maximum number of connections;
S23, it is described mobile whole in the case where the quantity of the successful matching is less than or equal to the default maximum number of connections End obtains the facility information of first bluetooth equipment to be accessed, to realize that the success with the described first bluetooth equipment to be accessed is matched It is right, and pairing request is sent to the second bluetooth equipment to be accessed;
The quantity of successful matching is added 1, repeats S22 and S23 by S24, until the quantity of the successful matching is greater than institute State default maximum number of connections.
4. method according to any one of claims 1 to 3, which is characterized in that the mobile terminal obtains each indigo plant respectively The facility information of tooth equipment, after realization and the successful pairing of each bluetooth equipment, further includes:
Pairing identification code is generated according to the facility information of the bluetooth equipment, wherein the facility information includes: bluetooth equipment Title and media intervention control layer MAC address;
The title of the bluetooth equipment, MAC Address and pairing identification code are stored with stack.
5. method as claimed in claim 4, which is characterized in that the mobile terminal is according to the multiple equipment information of acquisition and every It is established respectively between a bluetooth equipment after corresponding RFECOMM channel, further includes:
In the case where receiving the corresponding request of the predetermined protocol, predetermined bluetooth equipment is used to transmit the predetermined protocol pair The data answered, wherein the predetermined bluetooth equipment is the time upper the last information saved in the information of stack storage Corresponding bluetooth equipment.
6. a kind of device for connecting mobile terminal and bluetooth equipment characterized by comprising
Detection module, for detecting whether receiving multiple triggering message matched with bluetooth equipment;
Matching module, for obtaining the facility information of each bluetooth equipment in the case where receiving multiple triggering message, To realize the successful pairing of mobile terminal Yu each bluetooth equipment;
Link block is used in the case where mobile terminal and each bluetooth equipment successfully match, according to the multiple equipment of acquisition Corresponding RFECOMM channel is established between information and each bluetooth equipment respectively.
7. device as claimed in claim 6, which is characterized in that further include:
The detection module is also used to detect whether to receive modification request, wherein the modification request is for modifying predetermined association It can access the default maximum number of connections of equipment in view, the predetermined protocol includes: HFP agreement and A2DP agreement;
Modified module, for being preset most according to modification request modification is described in the case where receiving modification request Big connection number.
8. device as claimed in claim 6, which is characterized in that the matching module is specifically used for:
S21 sends pairing request to the first bluetooth equipment to be accessed;
S22, judges whether the quantity of current successful matching is greater than default maximum number of connections;
S23 obtains described the in the case where the quantity of the successful matching is less than or equal to the default maximum number of connections The facility information of one bluetooth equipment to be accessed, with realize with the successful pairing of the described first bluetooth equipment to be accessed, and to second Bluetooth equipment to be accessed sends pairing request;
The quantity of successful matching is added 1, repeats S22 and S23 by S24, until the quantity of the successful matching is greater than institute State default maximum number of connections.
9. the device as described in any one of claim 6 to 8, which is characterized in that further include:
The matching module is also used to generate pairing identification code according to the facility information of the bluetooth equipment, wherein the equipment Information includes: the title and media intervention control layer MAC address of bluetooth equipment;
Memory module, for storing the title of the bluetooth equipment, MAC Address and pairing identification code with stack.
10. a kind of mobile terminal characterized by comprising connection mobile terminal described in any one of claim 6 to 9 with The device of bluetooth equipment.
CN201710702455.1A 2017-08-16 2017-08-16 Method and device for connecting mobile terminal and Bluetooth device and mobile terminal Active CN109548184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710702455.1A CN109548184B (en) 2017-08-16 2017-08-16 Method and device for connecting mobile terminal and Bluetooth device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710702455.1A CN109548184B (en) 2017-08-16 2017-08-16 Method and device for connecting mobile terminal and Bluetooth device and mobile terminal

Publications (2)

Publication Number Publication Date
CN109548184A true CN109548184A (en) 2019-03-29
CN109548184B CN109548184B (en) 2024-03-08

Family

ID=65827803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710702455.1A Active CN109548184B (en) 2017-08-16 2017-08-16 Method and device for connecting mobile terminal and Bluetooth device and mobile terminal

Country Status (1)

Country Link
CN (1) CN109548184B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460984A (en) * 2019-08-16 2019-11-15 深圳市中擎创科技有限公司 More Bluetooth control methods, system, terminal and storage based on distributed storage
CN110996305A (en) * 2019-11-12 2020-04-10 宇龙计算机通信科技(深圳)有限公司 Method, device, electronic equipment and medium for connecting Bluetooth equipment
CN111918258A (en) * 2020-07-29 2020-11-10 东软集团股份有限公司 Method, device and equipment for realizing Bluetooth service connection
WO2021043003A1 (en) * 2019-09-06 2021-03-11 中兴通讯股份有限公司 Bluetooth data transmission method and apparatus, terminal and storage medium
CN113407076A (en) * 2021-06-04 2021-09-17 荣耀终端有限公司 Method for starting application and electronic equipment
WO2021196577A1 (en) * 2020-03-30 2021-10-07 歌尔股份有限公司 Bluetooth earphone connection switching method, apparatus and device, and storage medium
CN114125735A (en) * 2021-12-03 2022-03-01 Oppo广东移动通信有限公司 Earphone connection method and device, computer readable storage medium and electronic equipment
TWI826781B (en) * 2021-04-29 2023-12-21 鈺寶科技股份有限公司 Wireless communication system with automatic pairing mechanism and automatic pairing method of wireless communication

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100130131A1 (en) * 2008-11-21 2010-05-27 Samsung Electronics Co. Ltd. Apparatus and method for connecting with bluetooth devices in a terminal using audio channel
CN101785198A (en) * 2007-08-31 2010-07-21 摩托罗拉公司 The automatic a plurality of method of matching and the equipment that are used for bluetooth equipment
CN103391121A (en) * 2013-07-31 2013-11-13 北京爱德发科技有限公司 Method for pairing and connecting multiple devices and Bluetooth device
CN103518418A (en) * 2012-09-27 2014-01-15 华为终端有限公司 Connecting method between Bluetooth devices and device
CN103636141A (en) * 2012-11-16 2014-03-12 华为终端有限公司 Method for establishing Bluetooth connection, mobile terminal, Bluetooth devices and system
CN104184502A (en) * 2014-08-28 2014-12-03 许磊 Bluetooth pairing device and method
CN105101058A (en) * 2015-07-13 2015-11-25 惠州Tcl移动通信有限公司 Method and equipment for realizing cooperative works of multiple Bluetooth headsets

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101785198A (en) * 2007-08-31 2010-07-21 摩托罗拉公司 The automatic a plurality of method of matching and the equipment that are used for bluetooth equipment
US20100130131A1 (en) * 2008-11-21 2010-05-27 Samsung Electronics Co. Ltd. Apparatus and method for connecting with bluetooth devices in a terminal using audio channel
CN103518418A (en) * 2012-09-27 2014-01-15 华为终端有限公司 Connecting method between Bluetooth devices and device
CN103636141A (en) * 2012-11-16 2014-03-12 华为终端有限公司 Method for establishing Bluetooth connection, mobile terminal, Bluetooth devices and system
CN103391121A (en) * 2013-07-31 2013-11-13 北京爱德发科技有限公司 Method for pairing and connecting multiple devices and Bluetooth device
CN104184502A (en) * 2014-08-28 2014-12-03 许磊 Bluetooth pairing device and method
CN105101058A (en) * 2015-07-13 2015-11-25 惠州Tcl移动通信有限公司 Method and equipment for realizing cooperative works of multiple Bluetooth headsets

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460984A (en) * 2019-08-16 2019-11-15 深圳市中擎创科技有限公司 More Bluetooth control methods, system, terminal and storage based on distributed storage
CN110460984B (en) * 2019-08-16 2022-07-01 中科微电技术(深圳)有限公司 Multi-Bluetooth control method, system, terminal and storage based on distributed storage
WO2021043003A1 (en) * 2019-09-06 2021-03-11 中兴通讯股份有限公司 Bluetooth data transmission method and apparatus, terminal and storage medium
US11991612B2 (en) 2019-09-06 2024-05-21 Zte Corporation Bluetooth data transmission method and apparatus, terminal and storage medium
CN110996305A (en) * 2019-11-12 2020-04-10 宇龙计算机通信科技(深圳)有限公司 Method, device, electronic equipment and medium for connecting Bluetooth equipment
CN110996305B (en) * 2019-11-12 2024-01-05 宇龙计算机通信科技(深圳)有限公司 Method and device for connecting Bluetooth equipment, electronic equipment and medium
WO2021196577A1 (en) * 2020-03-30 2021-10-07 歌尔股份有限公司 Bluetooth earphone connection switching method, apparatus and device, and storage medium
CN111918258A (en) * 2020-07-29 2020-11-10 东软集团股份有限公司 Method, device and equipment for realizing Bluetooth service connection
CN111918258B (en) * 2020-07-29 2024-05-03 东软集团股份有限公司 Method, device and equipment for realizing Bluetooth service connection
TWI826781B (en) * 2021-04-29 2023-12-21 鈺寶科技股份有限公司 Wireless communication system with automatic pairing mechanism and automatic pairing method of wireless communication
CN113407076A (en) * 2021-06-04 2021-09-17 荣耀终端有限公司 Method for starting application and electronic equipment
CN114125735A (en) * 2021-12-03 2022-03-01 Oppo广东移动通信有限公司 Earphone connection method and device, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109548184B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN109548184A (en) Connect the method, apparatus and mobile terminal of mobile terminal and bluetooth equipment
US7890147B2 (en) Portable terminal device
EP2458743B1 (en) Method and system for orderly connection of bluetooth earphone controlled by terminal
CN104025558B (en) The wireless headset and earphone system of diverting call between two telecommunication apparatus
WO2018032455A1 (en) Bluetooth communication method and terminal
CN102761988B (en) The short-distance movement terminal and repeater that can coordinate
CN105101058A (en) Method and equipment for realizing cooperative works of multiple Bluetooth headsets
CN103686516A (en) Bluetooth headset capable of sharing audios and control method thereof
WO2018082335A1 (en) Method, apparatus, system, and device for connecting bluetooth device
CN105516897A (en) Method and device for one-key establishment of communication connection between Bluetooth devices
CN102572584A (en) Intelligent television system and intelligent television method capable of expanding cellphone
CN102857807A (en) Communication terminal voice control method and digital television terminal
CN103391121A (en) Method for pairing and connecting multiple devices and Bluetooth device
CN102131305A (en) Method and system for realizing voice service
CN101924835A (en) Mobile telephone communication method and mobile telephone
CA2784651C (en) Apparatus and method in a wireless device for reestablishing a call
US20090264113A1 (en) Mobile phone that automatically makes conference calls and method for same
CN103841266B (en) A kind of terminal device, auxiliary equipment, collaborative communication method and sound volume regulating system
KR101104354B1 (en) Portable releying apparatus using with portable mobile apparatus
CN101572570B (en) Message processing method and system of wireless network card through mobile termination
CN110248347A (en) Call method for detecting abnormality, device, equipment and storage medium
CN112312368A (en) Data processing method, device, equipment and storage medium
CN113810887B (en) Bluetooth protocol connection method and device, storage medium and related equipment
CN114844736A (en) Equipment and call control method
US10277726B2 (en) Mobile to landline dialer

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