CN104284025A - Mobile terminal Bluetooth accessory and automatic pairing method thereof - Google Patents

Mobile terminal Bluetooth accessory and automatic pairing method thereof Download PDF

Info

Publication number
CN104284025A
CN104284025A CN201410520116.8A CN201410520116A CN104284025A CN 104284025 A CN104284025 A CN 104284025A CN 201410520116 A CN201410520116 A CN 201410520116A CN 104284025 A CN104284025 A CN 104284025A
Authority
CN
China
Prior art keywords
accessory
bluetooth
mobile terminal
module
usb
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410520116.8A
Other languages
Chinese (zh)
Inventor
林春德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meitu Mobile Technology Co Ltd
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201410520116.8A priority Critical patent/CN104284025A/en
Publication of CN104284025A publication Critical patent/CN104284025A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a mobile terminal Bluetooth accessory and an automatic pairing method thereof. A power module, a Bluetooth module, a power amplifier module and a USB HOST controller are arranged on the Bluetooth accessory. A USB interface is used as a command transmission channel, and a Bluetooth wireless interface is used as a music data transmission channel, so that the charging function, the loudspeaker box function, the communication function and the automatic pairing function of the Bluetooth accessory are achieved. When the user uses a mobile terminal, the mobile terminal can be charged only by being connected to the Bluetooth accessory; if the mobile terminal plays music, the music can be automatically switched to be output to the Bluetooth accessory, the manual wireless connection process is not needed completely, and the user experience is greatly improved.

Description

A kind of mobile terminal Bluetooth accessory and automatic matching method thereof
Technical field
The present invention relates to a kind of Mobile terminal accessory, particularly relate to a kind of mobile terminal Bluetooth accessory, and the automatic matching method between this Bluetooth accessory and mobile terminal.
Background technology
Along with the development of technology, mobile terminal becomes the control centre of various equipment at leisure, can control increasing equipment.Having the equipment charging and play the such function of the music be stored in mobile terminal to mobile terminal also has much, and the scheme that these equipment adopts is seat charging mostly, the music of wired connection or blue teeth wireless music.This scheme has and there is such inconvenience: during wired connection, and such equipment moving is just very inconvenient; Even if when adopting blue teeth wireless music, when this device first to be connected with mobile terminal use time, first to carry out Bluetooth pairing connection, could music be play; When particularly mobile phone can search multiple Bluetooth audio equipment, also need to select to confirm that just can complete pairing connects, the operating procedure of these complexity is for still slightly inconvenience many users, and experience is just poor.
Summary of the invention
The present invention, for solving the problem, provides a kind of mobile terminal Bluetooth accessory, and it can not only realize seat and fill function, acoustic function, and can realize the full-automatic Bluetooth pairing function of accessory and mobile terminal.
For achieving the above object, the technical solution used in the present invention is:
A kind of mobile terminal Bluetooth accessory, it is characterized in that, it comprises:
Power module, provides power supply for described accessory and with the mobile terminal that this accessory matches;
Bluetooth module, the audio signal that mobile terminal receive wirelessly sends, and be decoded into audio analog signals;
Power amplifier module, carries out amplification process by audio analog signals, and exports the audio analog signals after amplifying by audio interface;
USB HOST controller, it realizes the communication between accessory and mobile terminal by USB interface, and provides the power supply needed for charging for mobile terminal.
Preferably, described USB HOST controller realizes the communication between accessory and mobile terminal by USB interface, mainly mobile terminal sends instruction to read the Bluetooth MAC address of this accessory by USB interface to accessory, and mobile terminal carries out automatic matching according to the Bluetooth MAC address of this accessory and this accessory.
Preferably, described accessory also comprises microcontroller, is controlled by the broadcasting of this microcontroller to the communication of USB HOST controller, the charging of power module, the reception of the audio signal of bluetooth module and the audio analog signals of power amplifier module.
In addition, present invention also offers the automatic matching method of above-mentioned Bluetooth accessory and mobile terminal, it is characterized in that, comprise the following steps:
10. mobile terminal carries out accessory access detection;
If 20. detect that accessory accesses, then judge that this accessory is USB HOST controller further; If so, the USB PID of this accessory is then read.
According to described USB PID, 30. judge whether described accessory comprises bluetooth module; If comprise, then read the Bluetooth MAC address of this accessory;
40. according to the Bluetooth accessory of described accessory Bluetooth MAC address search coupling, and carry out automatic matching and be connected with bluetooth;
The audio signal of mobile terminal is transferred to described Bluetooth accessory by Bluetooth wireless technology by 50. to be play.
Preferably, in described step 30, mobile terminal opens the bluetooth module of mobile terminal after reading the Bluetooth MAC address of accessory, and receives the Bluetooth MAC address preserving described accessory.
Preferably, with the automatic matching of Bluetooth accessory in described step 40, mainly by judging whether the Bluetooth accessory searched matched, if matched, then directly carried out bluetooth connection; If do not matched, then first matched, then carried out bluetooth connection.
Preferably, in described step 50, the audio signal of mobile terminal is transferred to described Bluetooth accessory by Bluetooth wireless technology to play, mainly by the audio signal of the bluetooth module mobile terminal receive of described Bluetooth accessory, and be decoded into audio analog signals, then by the power amplifier module of Bluetooth accessory, audio analog signals is carried out amplification process, and carry out music by the audio analog signals after audio interface exports amplification.
The invention has the beneficial effects as follows:
A kind of mobile terminal Bluetooth accessory of the present invention and automatic matching method thereof, it by arranging power module in Bluetooth accessory, bluetooth module, power amplifier module and USB HOST controller, using USB interface as command transfer passage, using bluetooth wireless interface as music data transmissions passage, thus realize the charge function of Bluetooth accessory, function of loudspeaker box, communication function, full-automatic matching function, when user uses, only mobile terminal need be connected to this Bluetooth accessory to charge, if originally mobile terminal playing music, will be outputted on this accessory automatically by music, do not need manual wireless connection procedure completely, significantly improve Consumer's Experience.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structured flowchart of a kind of mobile terminal Bluetooth accessory of the present invention;
Fig. 2 is the general flow chart of the automatic matching method of a kind of mobile terminal Bluetooth accessory of the present invention.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, a kind of mobile terminal Bluetooth accessory of the present invention, it comprises:
Power module 100, provides power supply for described accessory and with the mobile terminal that this accessory matches;
Bluetooth module 200, the audio signal that mobile terminal receive wirelessly sends, and be decoded into audio analog signals;
Power amplifier module 300, carries out amplification process by audio analog signals, and exports the audio analog signals after amplifying by audio interface;
USB HOST controller 400, it realizes the communication between accessory and mobile terminal by USB interface, and provides the power supply needed for charging for mobile terminal.
Described USB HOST controller 400 realizes the communication between accessory and mobile terminal by USB interface, mainly mobile terminal sends instruction to read the Bluetooth MAC address of this accessory by USB interface to accessory, and mobile terminal carries out automatic matching according to the Bluetooth MAC address of this accessory and this accessory.
Described accessory also comprises microcontroller (MCU) 500, is controlled by the broadcasting of this microcontroller to the communication of USB HOST controller, the charging of power module, the reception of the audio signal of bluetooth module and the audio analog signals of power amplifier module.
As shown in Figure 2, present invention also offers the automatic matching method of above-mentioned Bluetooth accessory and mobile terminal, it is characterized in that, comprise the following steps:
10. mobile terminal carries out accessory access detection;
If 20. detect that accessory accesses, then judge that this accessory is USB HOST controller further; If so, the USB PID of this accessory is then read.
According to described USB PID, 30. judge whether described accessory comprises bluetooth module; If comprise, then read the Bluetooth MAC address of this accessory;
40. according to the Bluetooth accessory of described accessory Bluetooth MAC address search coupling, and carry out automatic matching and be connected with bluetooth;
The audio signal of mobile terminal is transferred to described Bluetooth accessory by Bluetooth wireless technology by 50. to be play.
In described step 30, judge whether described accessory comprises bluetooth module according to described USB PID, mainly because all USB device Dou You suppliers ID (VID) and product ID (PID), main frame distinguishes different equipment by different VID and PID, VID and PID is two byte longs, wherein, supplier ID (VID) performs forum by supplier to USB and applies for, the VID of each supplier is unique, PID is decided in its sole discretion by supplier, different products, the different model of like products, the product of the different designs of same model generally adopts different PID, to distinguish the distinct device of identical producer.Further, in described step 30, mobile terminal opens the bluetooth module of mobile terminal after reading the Bluetooth MAC address of accessory, and receives the Bluetooth MAC address preserving described accessory.
With the automatic matching of Bluetooth accessory in described step 40, mainly by judging whether the Bluetooth accessory searched matched, if matched, then directly carried out bluetooth connection; If do not matched, then first matched, then carried out bluetooth connection.
In described step 50, the audio signal of mobile terminal is transferred to described Bluetooth accessory by Bluetooth wireless technology to play, mainly by the audio signal of the bluetooth module mobile terminal receive of described Bluetooth accessory, and be decoded into audio analog signals, then by the power amplifier module of Bluetooth accessory, audio analog signals is carried out amplification process, and carry out music by the audio analog signals after audio interface exports amplification.
The course of work of mobile terminal and Bluetooth accessory is described respectively below in conjunction with specific embodiment:
The software processing flow of mobile terminal:
1, when mobile terminal has detected that USB accessory accesses, start detection flow process;
2, the USB accessory first judging to access is USB HOST controller, if not, then detection of end flow process; If USB HOST controller, enter next step and continue;
3, the USB PID of accessory is read by USB HOST controller;
4, the USB PID returned according to the 3rd step judges whether seat fills and adds this accessory of Baffle Box of Bluetooth, if not, detection of end flow process; If so, enter next step to continue;
5, send out an order by USB interface to Bluetooth accessory, read the Bluetooth MAC address of Bluetooth accessory:
6, open the bluetooth module of mobile terminal, receive the MAC Address of preserving Bluetooth accessory;
7, the Bluetooth accessory of coupling is searched according to MAC Address, the speed of acceleration search Bluetooth accessory;
8, judge whether the Bluetooth accessory searched matched, if matched, directly carried out bluetooth connection; If do not matched, first matched, then connected;
9, music is put from be outward switched to and play by Bluetooth accessory.
The software processing flow of Bluetooth accessory:
1, when Bluetooth accessory detects that USB accesses, open to the power module of mobile terminal charging, and start bluetooth module.
2, connecting Bluetooth accessory and mobile terminal by USB HOST, is mobile terminal charging;
3, the order that mobile terminal sends is resolved, according to next step operation of command execution;
4, USB PID is sent to mobile terminal by USB interface;
5, wait-receiving mode order again, resolves the order that mobile terminal sends, according to next step operation of command execution;
6, USB interface can be crossed and send MAC Address to mobile terminal;
7, bluetooth module is made to be in searched state;
8, judge whether to need pairing, if do not need pairing, directly connect;
9, by the voice data that blue teeth wireless mobile terminal receive sends, and open power amplifier, carry out music.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection range of claims of the present invention.

Claims (7)

1. a mobile terminal Bluetooth accessory, is characterized in that, it comprises:
Power module, provides power supply for described accessory and with the mobile terminal that this accessory matches;
Bluetooth module, the audio signal that mobile terminal receive wirelessly sends, and be decoded into audio analog signals;
Power amplifier module, carries out amplification process by audio analog signals, and exports the audio analog signals after amplifying by audio interface;
USB HOST controller, it realizes the communication between accessory and mobile terminal by USB interface, and provides the power supply needed for charging for mobile terminal.
2. a kind of mobile terminal Bluetooth accessory according to claim 1, it is characterized in that: described USB HOST controller realizes the communication between accessory and mobile terminal by USB interface, mainly mobile terminal sends instruction to read the Bluetooth MAC address of this accessory by USB interface to accessory, and mobile terminal carries out automatic matching according to the Bluetooth MAC address of this accessory and this accessory.
3. a kind of mobile terminal Bluetooth accessory according to claim 1, it is characterized in that: described accessory also comprises microcontroller, controlled by the broadcasting of this microcontroller to the communication of USB HOST controller, the charging of power module, the reception of the audio signal of bluetooth module and the audio analog signals of power amplifier module.
4. an automatic matching method for mobile terminal Bluetooth accessory, is characterized in that, comprise the following steps:
10. mobile terminal carries out accessory access detection;
If 20. detect that accessory accesses, then judge that this accessory is USB HOST controller further; If so, the USB PID of this accessory is then read.
According to described USB PID, 30. judge whether described accessory comprises bluetooth module; If comprise, then read the Bluetooth MAC address of this accessory;
40. according to the Bluetooth accessory of described accessory Bluetooth MAC address search coupling, and carry out automatic matching and be connected with bluetooth;
The audio signal of mobile terminal is transferred to described Bluetooth accessory by Bluetooth wireless technology by 50. to be play.
5. the automatic matching method of a kind of mobile terminal Bluetooth accessory according to claim 4, it is characterized in that: in described step 30, mobile terminal opens the bluetooth module of mobile terminal after reading the Bluetooth MAC address of accessory, and receives the Bluetooth MAC address preserving described accessory.
6. the automatic matching method of a kind of mobile terminal Bluetooth accessory according to claim 4, it is characterized in that: with the automatic matching of Bluetooth accessory in described step 40, mainly by judging whether the Bluetooth accessory searched matched, if matched, then directly carried out bluetooth connection; If do not matched, then first matched, then carried out bluetooth connection.
7. the automatic matching method of a kind of mobile terminal Bluetooth accessory according to claim 4, it is characterized in that: in described step 50, the audio signal of mobile terminal is transferred to described Bluetooth accessory by Bluetooth wireless technology and play, mainly by the audio signal of the bluetooth module mobile terminal receive of described Bluetooth accessory, and be decoded into audio analog signals, then by the power amplifier module of Bluetooth accessory, audio analog signals is carried out amplification process, and carry out music by the audio analog signals after audio interface exports amplification.
CN201410520116.8A 2014-09-30 2014-09-30 Mobile terminal Bluetooth accessory and automatic pairing method thereof Pending CN104284025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410520116.8A CN104284025A (en) 2014-09-30 2014-09-30 Mobile terminal Bluetooth accessory and automatic pairing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410520116.8A CN104284025A (en) 2014-09-30 2014-09-30 Mobile terminal Bluetooth accessory and automatic pairing method thereof

Publications (1)

Publication Number Publication Date
CN104284025A true CN104284025A (en) 2015-01-14

Family

ID=52258489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410520116.8A Pending CN104284025A (en) 2014-09-30 2014-09-30 Mobile terminal Bluetooth accessory and automatic pairing method thereof

Country Status (1)

Country Link
CN (1) CN104284025A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872882A (en) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 Method and terminal for matched connection of Bluetooth earphones and Bluetooth earphones
CN108388140A (en) * 2018-03-13 2018-08-10 广东欧珀移动通信有限公司 Control method, apparatus, electronic equipment and the storage medium of smart machine
CN109743714A (en) * 2019-01-07 2019-05-10 优奈柯恩(北京)科技有限公司 Device pairing method and device
US10841118B2 (en) 2016-11-09 2020-11-17 Sercomm Corporation Automatic pairing method and server
WO2023051083A1 (en) * 2021-09-30 2023-04-06 Oppo广东移动通信有限公司 Audio control method, electronic device, and audio playback system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494474A (en) * 2008-11-28 2009-07-29 中兴通讯股份有限公司 Method and terminal equipment for automatic connection of Bluetooth vehicle-mounted hands-free equipment
CN101710833A (en) * 2009-11-25 2010-05-19 中兴通讯股份有限公司 Method and device for communication between mobile terminal and Bluetooth hands-free device
CN202394239U (en) * 2011-08-03 2012-08-22 北京握奇数据系统有限公司 Card reading device and transaction system
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103427883A (en) * 2013-08-07 2013-12-04 珠海市杰理科技有限公司 Bluetooth audio adapter and audio player
CN103715577A (en) * 2013-12-27 2014-04-09 北京奇虎科技有限公司 USB Hub and Bluetooth pairing method through USB Hub

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494474A (en) * 2008-11-28 2009-07-29 中兴通讯股份有限公司 Method and terminal equipment for automatic connection of Bluetooth vehicle-mounted hands-free equipment
CN101710833A (en) * 2009-11-25 2010-05-19 中兴通讯股份有限公司 Method and device for communication between mobile terminal and Bluetooth hands-free device
CN202394239U (en) * 2011-08-03 2012-08-22 北京握奇数据系统有限公司 Card reading device and transaction system
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103427883A (en) * 2013-08-07 2013-12-04 珠海市杰理科技有限公司 Bluetooth audio adapter and audio player
CN103715577A (en) * 2013-12-27 2014-04-09 北京奇虎科技有限公司 USB Hub and Bluetooth pairing method through USB Hub

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872882A (en) * 2016-04-29 2016-08-17 乐视控股(北京)有限公司 Method and terminal for matched connection of Bluetooth earphones and Bluetooth earphones
US10841118B2 (en) 2016-11-09 2020-11-17 Sercomm Corporation Automatic pairing method and server
CN108388140A (en) * 2018-03-13 2018-08-10 广东欧珀移动通信有限公司 Control method, apparatus, electronic equipment and the storage medium of smart machine
CN109743714A (en) * 2019-01-07 2019-05-10 优奈柯恩(北京)科技有限公司 Device pairing method and device
WO2023051083A1 (en) * 2021-09-30 2023-04-06 Oppo广东移动通信有限公司 Audio control method, electronic device, and audio playback system

Similar Documents

Publication Publication Date Title
US10299042B2 (en) Method and apparatus for controlling portable audio devices
CN104284025A (en) Mobile terminal Bluetooth accessory and automatic pairing method thereof
US11909239B2 (en) Wireless charging dock
US9729211B2 (en) Proximity based wireless audio connection
US11184724B2 (en) Sound output device pairing with closest external speaker and content source
US8208917B2 (en) Wireless and dockable audio interposer device
CN101917514B (en) Application control method and system, terminal and earphones
TW201528128A (en) Mobile audio string broadcasting method and system
CN201887835U (en) System capable of controlling household appliances by utilizing intelligent mobile phone
US11271770B2 (en) Information processing method, information processing apparatus, and information processing system
CN109151647A (en) Interaction control method, device, Earphone box and the storage medium of Earphone box
JP3213242U (en) Composite earphone
CN103974163A (en) Earphone compatible method, earphone compatible device and mobile terminal
CN108513196B (en) Wireless earphone and pairing method thereof
WO2016150190A1 (en) Audio playing control method and apparatus, and loudspeaker box
CN109639902A (en) Interaction control method, device, Earphone box and the storage medium of Earphone box
CN111757307A (en) Wireless earphone control method, wireless earphone and readable storage medium
US20120185071A1 (en) Method and apparatus for identifying accessaries using non-contact interface
CN104715769B (en) Method and system for controlling wireless music through phototonus
CN207117880U (en) Earphone
CN102334107B (en) Optimize the method and apparatus from the playback of the media content of digital handheld equipment
CN114885261A (en) Earphone assembly, wireless audio playing system and communication method thereof
CN103945305A (en) Information processing method and electronic equipment
JP3209363U (en) Auxiliary equipment and family smart systems
CN110968233A (en) Music playing switching operation method, system, storage medium and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150114

RJ01 Rejection of invention patent application after publication