CN107770760B - A kind of method and mobile terminal of the type identifying bluetooth equipment - Google Patents

A kind of method and mobile terminal of the type identifying bluetooth equipment Download PDF

Info

Publication number
CN107770760B
CN107770760B CN201710971471.0A CN201710971471A CN107770760B CN 107770760 B CN107770760 B CN 107770760B CN 201710971471 A CN201710971471 A CN 201710971471A CN 107770760 B CN107770760 B CN 107770760B
Authority
CN
China
Prior art keywords
bluetooth
bluetooth equipment
type
equipment
mobile terminal
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
CN201710971471.0A
Other languages
Chinese (zh)
Other versions
CN107770760A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710971471.0A priority Critical patent/CN107770760B/en
Publication of CN107770760A publication Critical patent/CN107770760A/en
Application granted granted Critical
Publication of CN107770760B publication Critical patent/CN107770760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes

Landscapes

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

Abstract

The present invention provides the method and mobile terminal of a kind of type for identifying bluetooth equipment, this method comprises: mobile terminal and bluetooth equipment establish connection;When receiving from the first preset instructions of the bluetooth equipment, determine that the bluetooth equipment is blue tooth vehicular equipment;When receiving from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is bluetooth headset.The type for the preset instructions from bluetooth equipment that the present invention can be received according to mobile terminal, determines the type of bluetooth equipment, improves the accuracy of identification bluetooth equipment type.

Description

A kind of method and mobile terminal of the type identifying bluetooth equipment
Technical field
The present invention relates to the methods and movement of field of communication technology more particularly to a kind of type for identifying bluetooth equipment eventually End.
Background technique
With the development of communication technology, the mode of audio frequency of mobile terminal output is more and more abundant.Such as: mobile terminal can be with After establishing connection by Bluetooth technology and blue tooth vehicular equipment, (such as: loudspeaker or sound equipment by the audio output apparatus of automobile Deng) output audio data;Audio can also be exported by bluetooth headset after establishing connection by Bluetooth technology and bluetooth headset Data;Audio data directly can also be exported by the audio output apparatus (such as: earpiece or loudspeaker) of mobile terminal itself.
Currently, mobile terminal is after establishing connection with blue tooth vehicular equipment, the loudspeaker of the voice signal of mobile terminal from automobile Or sound equipment outflow;After mobile terminal is that bluetooth headset establishes connection, mobile terminal voice signal is spread out of from bluetooth headset. However, if mobile terminal incoming call answering in the state of establishing connection with blue tooth vehicular, the sound of caller will pass through automobile Loudspeaker or sound equipment outflow, cause the privacy of user that cannot be effectively guaranteed;If mobile terminal is built with bluetooth headset Music is played in the state of vertical connection, then music will be spread out of by bluetooth headset, and leading to driver, there are higher security risks. Therefore, in order to overcome the problems referred above, mobile terminal needs to identify the type of the bluetooth equipment currently connected.
However, in the prior art, for how to identify the type of bluetooth equipment that mobile terminal currently connects, do not have also at present There is relevant solution, therefore, it is necessary to propose solution to the type for how identifying bluetooth equipment that mobile terminal currently connects Certainly scheme.
Summary of the invention
The embodiment of the present invention provides the method and mobile terminal of a kind of type for identifying bluetooth equipment, to be directed to mobile terminal The identification of the type of the bluetooth equipment currently connected proposes solution.
In a first aspect, the embodiment of the invention provides a kind of methods of type for identifying bluetooth equipment, this method comprises:
Connection is established with bluetooth equipment;
When receiving from the first preset instructions of the bluetooth equipment, determine that the bluetooth equipment sets for blue tooth vehicular It is standby;When receiving from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is bluetooth headset.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, which includes:
Link block, for establishing connection with bluetooth equipment;
Determining module, for determining that the bluetooth is set when receiving from the first preset instructions of the bluetooth equipment Standby is blue tooth vehicular equipment;When receiving from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is Bluetooth headset.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, the mobile terminal include processor, memory and It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing The step of method of the type of identification bluetooth equipment as described above is realized when device executes.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage medium It is stored with computer program in matter, identification bluetooth equipment as described above is realized when the computer program is executed by processor The step of method of type.
In the embodiment of the present invention, mobile terminal and bluetooth equipment establish connection;When receiving from the bluetooth equipment When the first preset instructions, determine that the bluetooth equipment is blue tooth vehicular equipment;When receiving second from the bluetooth equipment When preset instructions, determine that the bluetooth equipment is bluetooth headset.What the present invention can be received according to mobile terminal comes from bluetooth The type of the preset instructions of equipment determines the type of bluetooth equipment, improves the accuracy of identification bluetooth equipment type.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of the method for the type for the identification bluetooth equipment that one embodiment of the invention provides;
Fig. 2 is the flow chart of the method for the type for the identification bluetooth equipment that further embodiment of this invention provides;
Fig. 3 is the structure chart for the mobile terminal that one embodiment of the invention provides;
Fig. 4 is the structure chart for the mobile terminal that further embodiment of this invention provides;
Fig. 5 is the structure chart for the mobile terminal that further embodiment of this invention provides;
Fig. 6 is the structure chart for the mobile terminal that further embodiment of this invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It is the flow chart of the method for the type for the identification bluetooth equipment that one embodiment of the invention provides referring to Fig. 1, Fig. 1, such as Shown in Fig. 1, the present embodiment identification bluetooth equipment type method the following steps are included:
Step 101 establishes connection with bluetooth equipment.
In the step, after mobile terminal receives the Bluetooth signal of bluetooth equipment broadcast, by completing Bluetooth pairing and indigo plant Tooth equipment establishes connection.
In certain specific embodiments, mobile terminal can be sent out after establishing connection with bluetooth equipment to bluetooth equipment The first solicited message is sent, supports the bluetooth equipment of multimedia browsing function to be based on above-mentioned first solicited message to movement for triggering Terminal replies preset instructions, the type for the preset instructions that mobile terminal is replied according to bluetooth equipment determine that bluetooth equipment is bluetooth vehicle Carry equipment or bluetooth headset.In practical applications, the first solicited message can be expressed as A/V_Remote Control SDP (Audio/Video_Remote ControlSession Description Protocol, audio/video remote control session Agreement is described) request.
Mobile terminal can also send the second solicited message to bluetooth equipment, be used for after establishing connection with bluetooth equipment Triggering supports the bluetooth equipment of digital audio compression algorithm to be based on above-mentioned second solicited message and reply preset instructions to mobile terminal, The type for the preset instructions that mobile terminal is replied according to bluetooth equipment determines that bluetooth equipment is blue tooth vehicular equipment or bluetooth ear Machine.In practical applications, the second solicited message can be expressed as " GET_CAPABILITIES " request.
Step 102, when receiving from the first preset instructions of the bluetooth equipment, determine the bluetooth equipment for indigo plant Tooth mobile unit;When receiving from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is bluetooth ear Machine.
In the embodiment of the present invention, bluetooth equipment is interacted after establishing connection with mobile terminal with mobile terminal, without Difference existing for interactive process between the bluetooth equipment and mobile terminal of same type, therefore, mobile terminal of the invention can be with For difference existing for the interactive process between different types of bluetooth equipment and mobile terminal, specifically, mobile terminal can be with According to the type of the preset instructions from bluetooth equipment received, the type of bluetooth equipment is determined.It is current to detect mobile terminal The type of the bluetooth equipment of connection.Wherein, the type of bluetooth equipment can be blue tooth vehicular equipment, bluetooth headset or bluetooth sound Case, but it is not limited only to this.
In view of most blue tooth vehicular equipment supports multimedia browsing, synchronous contact person and/or request song information Etc. functions, do not support that electricity is shown and Atp-X coding, i.e. functions such as digital audio compression algorithm;And most bluetooth headset Support electricity is shown and/or the functions such as digital audio compression algorithm, does not support multimedia browsing, synchronous contact person and request song The functions such as information.Therefore, optionally, first preset instructions include but are not limited at least one in following preset instructions It is a: to be used to indicate the preset instructions that the bluetooth equipment supports multimedia browsing;The bluetooth equipment is used to indicate to support to synchronize The preset instructions of contact person;It is used to indicate the preset instructions that the bluetooth equipment supports request song information.Described second is default Instruction includes but are not limited at least one of following preset instructions: being used to indicate the bluetooth equipment and supports what electricity was shown Preset instructions;It is used to indicate the preset instructions that the bluetooth equipment supports digital audio compression algorithm.
Wherein, blue tooth vehicular equipment is just sent out to mobile terminal after the first solicited message for receiving mobile terminal transmission It send and is used to indicate the preset instructions that the bluetooth equipment supports multimedia browsing.In practical applications, it is used to indicate the bluetooth Equipment supports the preset instructions of multimedia browsing that can be expressed as carrying the letter that multimedia browsing feature is " Supported " Breath;Being used to indicate the bluetooth equipment supports the preset instructions of synchronous contact person that can be expressed as " AT+CPBR ", or passes through It is Phonebook Access Profile (telephone directory that OBEX (Object Exchange, Object Exchange), which sends target, Access configuration file) connectivity request message;It is used to indicate the bluetooth equipment and supports that the preset instructions of request song information can To be expressed as " Get Element Attribute " solicited message.
Bluetooth headset is just used to indicate to mobile terminal transmission after the second solicited message for receiving mobile terminal transmission The bluetooth equipment supports the preset instructions of digital audio compression algorithm.In practical applications, it is used to indicate the bluetooth equipment Support the preset instructions of digital audio compression algorithm that can be expressed as the information that Vendor ID (supplier's mark) is APT ltd; " AT+XAPL " information can be expressed as by being used to indicate the preset instructions that the bluetooth equipment supports electricity to show.
In certain specific embodiments, mobile terminal can be in conjunction with mobile terminal and different Bluetooth devices type in interaction Corresponding at least two different characteristic in the process improves the reliable of the type for the bluetooth equipment that detection mobile terminal currently connects Property.
Such as: if the bluetooth equipment that is used to indicate that mobile terminal receives bluetooth equipment transmission supports what electricity was shown Preset instructions then illustrate that the bluetooth equipment that mobile terminal currently connects very likely is bluetooth headset.To improve bluetooth equipment class The reliability that type determines, mobile terminal, which may further determine whether to receive, is used to indicate the digital sound of bluetooth equipment support The preset instructions of frequency compression algorithm, and the default of the bluetooth equipment support digital audio compression algorithm is used to indicate receiving When instruction, the bluetooth equipment extremely bluetooth headset that mobile terminal currently connects is determined.
If mobile terminal does not receive the bluetooth equipment of being used to indicate of bluetooth equipment transmission, to support that electricity is shown pre- If instruction, then illustrate that the bluetooth equipment that mobile terminal currently connects very likely is blue tooth vehicular equipment.To improve bluetooth equipment The reliability of type decision, mobile terminal, which may further determine whether to receive, is used to indicate the more matchmakers of the bluetooth equipment support The preset instructions of body browsing, and when receiving the preset instructions for being used to indicate the bluetooth equipment support multimedia browsing, really Determine the bluetooth equipment extremely blue tooth vehicular equipment that mobile terminal currently connects.
Certainly, in other embodiments, mobile terminal further can determine the bluetooth equipment by other conditions Type, and then improve the reliability of the type decision of the bluetooth equipment.Such as: whether mobile terminal, which receives, is used to indicate institute State the preset instructions that bluetooth equipment supports synchronous contact person;Or/and mobile terminal receives and is used to indicate the bluetooth equipment branch Hold the preset instructions of request song information.
In the embodiment of the present invention, mobile terminal can be mobile phone, tablet computer (Tablet Personal Computer), Laptop computer (Laptop Computer), personal digital assistant (personal digital assistant, abbreviation PDA), Mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
The method of the type of the identification bluetooth equipment of the present embodiment, mobile terminal and bluetooth equipment establish connection;Work as reception When to the first preset instructions from the bluetooth equipment, determine that the bluetooth equipment is blue tooth vehicular equipment;Come when receiving When from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is bluetooth headset.The embodiment of the present invention being capable of root According to the type for the preset instructions from bluetooth equipment that mobile terminal receives, determines the type of bluetooth equipment, improve identification The accuracy of bluetooth equipment type.
Referring to fig. 2, Fig. 2 is the flow chart of the method for the type for the identification bluetooth equipment that further embodiment of this invention provides, The main distinction of the present embodiment and above-described embodiment is, has made further limit to the method for the type of identification bluetooth equipment It is fixed, specifically: identify the type of mobile terminal audio data to be output, and according to preset audio data type and indigo plant The corresponding relationship of tooth device type determines the corresponding target Bluetooth devices type of the type of the audio data;The determining institute State bluetooth equipment be blue tooth vehicular equipment the step of after, further includes: judge the blue tooth vehicular equipment whether with the target Bluetooth equipment type matching;If the blue tooth vehicular equipment and the target Bluetooth devices type mismatch, the shifting is controlled The audio output apparatus of dynamic terminal exports the audio data.
Step 201 establishes connection with bluetooth equipment.
Step 202, when receiving from the first preset instructions of the bluetooth equipment, determine the bluetooth equipment for indigo plant Tooth mobile unit;When receiving from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is bluetooth ear Machine.
Wherein, step 201 is identical as the step 101 in above method embodiment, in step 202 and above method embodiment Step 102 it is identical, specifically refer to the description in above method embodiment, to avoid repeating, details are not described herein.
The type of step 203, the identification mobile terminal audio data to be output, and according to preset audio data class The corresponding relationship of type and bluetooth equipment type determines the corresponding target Bluetooth devices type of the type of the audio data.
In the embodiment of the present invention, audio data type can with but be not limited only to include call audio and music VF.Sound Frequency data type and the corresponding relationship of bluetooth equipment type are preset.The embodiment of the present invention is that Driving Scene is with application scenarios Example is illustrated, if audio data type is call audio, can preset the corresponding bluetooth equipment class of the audio data type Type is bluetooth headset, in this way, mobile terminal incoming call answering in the state of connecting with bluetooth headset, then the sound of caller will lead to It crosses bluetooth headset and is transferred to user, thereby may be ensured that the privacy of user is not leaked, improve the reliability of audio output;If Audio data type is music VF, then can preset the corresponding bluetooth equipment type of the audio data type and set for blue tooth vehicular Standby or Baffle Box of Bluetooth, in this way, mobile terminal plays music in the state of connecting with bluetooth headset, then music will pass through automobile Sound equipment or the transmission of loudspeaker or Baffle Box of Bluetooth, so as to realize the shared of music, raising user experience.
In the embodiment of the present invention, it can identify that mobile terminal is to be transmitted when detecting that mobile terminal is on call Audio data type be call audio;Audio number to be transmitted can be identified when detecting playing music by mobile terminal According to type be music VF.
Mobile terminal, can be by searching for preset audio data type after the type for identifying audio data to be output With the corresponding relationship of bluetooth equipment type, the corresponding target Bluetooth devices type of the type of the audio data is determined.Such as: if The type of audio data is call audio, then target Bluetooth devices type is bluetooth headset;If the type of audio data is music Audio, then target Bluetooth devices type is blue tooth vehicular equipment or Baffle Box of Bluetooth.
It should be noted that the not sequential relationship between conditioning step 201 and step 203, i.e. step of the embodiment of the present invention 201 can execute before step 203, can also execute after step 203.
Step 204, judge the blue tooth vehicular equipment whether with the target Bluetooth devices type matching.
In the step, mobile terminal is receiving the first preset instructions from the bluetooth equipment, determines the bluetooth Equipment is after blue tooth vehicular equipment, blue tooth vehicular equipment target whether corresponding with the type of audio data to be transmitted is stated in judgement Bluetooth equipment type matching is exported from different equipment with controlling audio data according to judging result.
Specifically, if stating blue tooth vehicular equipment and target Bluetooth devices type matching, can continue to control mobile terminal The audio data is exported by stating blue tooth vehicular equipment.Specifically, mobile terminal can continue through Bluetooth technology to bluetooth Mobile unit sends the audio data, and the data are transmitted to the audio output apparatus of automobile by blue tooth vehicular equipment in turn, Such as loudspeaker or sound equipment, so that the loudspeaker of automobile or sound equipment export the audio data;If bluetooth equipment is bluetooth headset, move Dynamic terminal continues through Bluetooth technology and sends the audio data to bluetooth headset, so that the bluetooth headset exports the audio Data.
If stating blue tooth vehicular equipment and target Bluetooth devices type mismatching, step 205 can be executed.
If step 205, the blue tooth vehicular equipment of stating are mismatched with the target Bluetooth devices type, the shifting is controlled The audio output apparatus of dynamic terminal exports the audio data.
It is mobile whole if stating blue tooth vehicular equipment and target Bluetooth devices type mismatch in the embodiment of the present invention End can control the audio output apparatus of its own such as: earpiece or loudspeaker export the audio data, so as to avoid Audio data improves the reliable of audio frequency of mobile terminal output by exporting with the unmatched bluetooth equipment of the audio data type Property.
Specifically, if the type of mobile terminal audio data to be transmitted is call audio, target Bluetooth devices type is Bluetooth headset, but the type of bluetooth equipment that mobile terminal currently connects is blue tooth vehicular equipment or Baffle Box of Bluetooth, with target indigo plant Tooth device type mismatches, then the earpiece that can control mobile terminal exports the audio data, so as to avoid caller Call audio heard by other people, realize the secret protection to user's communication audio, improve audio frequency of mobile terminal output Reliability.
Optionally, after the step of determination bluetooth equipment is bluetooth headset, further includes:
Judge the bluetooth headset whether with the target Bluetooth devices type matching;
If the bluetooth headset and the target Bluetooth devices type mismatch, the audio for controlling the mobile terminal is defeated Equipment exports the audio data out.
In the step, mobile terminal is receiving the second preset instructions from the bluetooth equipment, determines the bluetooth Equipment be bluetooth headset after, judge the bluetooth headset whether with the target Bluetooth devices type matching, with according to judgement tie Fruit control audio data is exported from different equipment.
Specifically, if the type of mobile terminal audio data to be transmitted is music VF, target Bluetooth devices type is Blue tooth vehicular equipment or Baffle Box of Bluetooth, but the type of bluetooth equipment that mobile terminal currently connects is bluetooth headset, with target indigo plant Tooth device type mismatches, then the loudspeaker that can control mobile terminal exports the audio data, so as to realize music Sharing for data, improves the experience of user, improves the reliability of audio frequency of mobile terminal output.
In the present embodiment, the type and mobile terminal for the bluetooth equipment that mobile terminal is currently connected in mobile terminal are to be output The type corresponding target Bluetooth devices type of audio data when mismatching, control the audio output apparatus of the mobile terminal Export the audio data.To which the present invention can be to avoid audio data by setting with the unmatched bluetooth of audio data type Standby output, improves the reliability of audio frequency of mobile terminal output.
It is the structure chart for the mobile terminal that one embodiment of the invention provides referring to Fig. 3, Fig. 3, as shown in figure 3, mobile terminal 300 include: link block 301 and determining module 302.
Wherein, link block 301, for establishing connection with bluetooth equipment;
Determining module 302, for determining the bluetooth when receiving from the first preset instructions of the bluetooth equipment Equipment is blue tooth vehicular equipment;When receiving from the second preset instructions of the bluetooth equipment, the bluetooth equipment is determined For bluetooth headset.
Optionally, first preset instructions include at least one of following preset instructions:
It is used to indicate the preset instructions that the bluetooth equipment supports multimedia browsing;
It is used to indicate the preset instructions that the bluetooth equipment supports synchronous contact person;
It is used to indicate the preset instructions that the bluetooth equipment supports request song information.
Optionally, second preset instructions include at least one of following preset instructions:
It is used to indicate the preset instructions that the bluetooth equipment supports electricity to show;
It is used to indicate the preset instructions that the bluetooth equipment supports digital audio compression algorithm.
Optionally, as shown in figure 4, mobile terminal 300 further include:
Identification module 303, the type of mobile terminal audio data to be output for identification, and according to preset sound The corresponding relationship of frequency data type and bluetooth equipment type determines the corresponding target Bluetooth devices class of the type of the audio data Type;
First judgment module 304, for judging the bluetooth after determining that the bluetooth equipment is blue tooth vehicular equipment Mobile unit whether with the target Bluetooth devices type matching;
First control module 305 is used for when the blue tooth vehicular equipment and the target Bluetooth devices type mismatch, The audio output apparatus for controlling the mobile terminal exports the audio data.
Optionally, as shown in figure 5, mobile terminal 300 further include:
Second judgment module 306, for judging the bluetooth headset after determining that the bluetooth equipment is bluetooth headset Whether with the target Bluetooth devices type matching;
Second control module 307, for controlling when the bluetooth headset and the target Bluetooth devices type mismatch The audio output apparatus of the mobile terminal exports the audio data.
Mobile terminal 300 can be realized each process and reach that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2 To identical beneficial effect, to avoid repeating, which is not described herein again.
Referring to FIG. 6, Fig. 6 is the structure chart for the mobile terminal that further embodiment of this invention provides, which can be with The hardware structural diagram of a kind of mobile terminal of each embodiment to realize the present invention, as shown in fig. 6, mobile terminal 600 wraps It includes but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display The components such as unit 606, user input unit 607, interface unit 608, memory 609, processor 610 and power supply 611.This Field technical staff is appreciated that mobile terminal structure shown in Fig. 6 does not constitute the restriction to mobile terminal, mobile terminal It may include perhaps combining certain components or different component layouts than illustrating more or fewer components.Of the invention real It applies in example, mobile terminal includes but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable Equipment and pedometer etc..
Wherein, processor 610 are used for: establishing connection with bluetooth equipment;When receiving first from the bluetooth equipment When preset instructions, determine that the bluetooth equipment is blue tooth vehicular equipment;It is default when receiving second from the bluetooth equipment When instruction, determine that the bluetooth equipment is bluetooth headset.
Optionally, first preset instructions include at least one of following preset instructions:
It is used to indicate the preset instructions that the bluetooth equipment supports multimedia browsing;
It is used to indicate the preset instructions that the bluetooth equipment supports synchronous contact person;
It is used to indicate the preset instructions that the bluetooth equipment supports request song information.
Optionally, second preset instructions include at least one of following preset instructions:
It is used to indicate the preset instructions that the bluetooth equipment supports electricity to show;
It is used to indicate the preset instructions that the bluetooth equipment supports digital audio compression algorithm.
Optionally, the processor 610 is also used to: identify the type of mobile terminal audio data to be output, and According to the corresponding relationship of preset audio data type and bluetooth equipment type, the corresponding mesh of the type of the audio data is determined Mark bluetooth equipment type;After determining that the bluetooth equipment is blue tooth vehicular equipment, whether the blue tooth vehicular equipment is judged With the target Bluetooth devices type matching;If the blue tooth vehicular equipment and the target Bluetooth devices type mismatch, The audio output apparatus for controlling the mobile terminal exports the audio data.
Optionally, the processor 610 is also used to: after determining that the bluetooth equipment is bluetooth headset, described in judgement Bluetooth headset whether with the target Bluetooth devices type matching;If the bluetooth headset and the target Bluetooth devices type are not Matching, the then audio output apparatus for controlling the mobile terminal export the audio data.
It should be noted that above-mentioned mobile terminal 600 can be embodiment of the method in the embodiment of the present invention in the present embodiment In any embodiment mobile terminal, i.e., any embodiment of mobile terminal is all in embodiment of the method in the embodiment of the present invention It can be realized by the above-mentioned mobile terminal 600 in the present embodiment, and reach identical beneficial effect, to avoid repeating, this Place repeats no more.
It should be understood that the embodiment of the present invention in, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 610 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 602 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 603 can be received by radio frequency unit 601 or network module 602 or in memory 609 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 600 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 603 includes loudspeaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor (Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can be deposited Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike Wind 6042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 601 is converted in the case where telephone calling model.
Mobile terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when mobile terminal 600 is moved in one's ear Display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 6061.
User input unit 607 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 607 include touch panel 6071 and Other input equipments 6072.Touch panel 6071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel 6071 Neighbouring operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receiving area It manages the order that device 610 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments 6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touching The type for touching event provides corresponding visual output on display panel 6061.Although in Fig. 6, touch panel 6071 and display Panel 6061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 6071 and display panel 6061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 608 is the interface that external device (ED) is connect with mobile terminal 600.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 600 or can be used in 600 He of mobile terminal Data are transmitted between external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 609 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in storage Data in device 609 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611 Can be logically contiguous by power-supply management system and processor 610, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 600 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 610, and memory 609 is stored in On memory 609 and the computer program that can run on the processor 610, the computer program are executed by processor 610 Each process of the above-mentioned image processing method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned image processing method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of method for the type for identifying bluetooth equipment, is applied to mobile terminal characterized by comprising
Connection is established with bluetooth equipment;
When receiving from the first preset instructions of the bluetooth equipment, determine that the bluetooth equipment is blue tooth vehicular equipment; When receiving from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is bluetooth headset;
Further include:
Identify the type of mobile terminal audio data to be output, and according to preset audio data type and bluetooth equipment The corresponding relationship of type determines the corresponding target Bluetooth devices type of the type of the audio data, the audio data type Including call audio and music VF;
After the step of determination bluetooth equipment is blue tooth vehicular equipment, further includes:
Judge the blue tooth vehicular equipment whether with the target Bluetooth devices type matching;
If the blue tooth vehicular equipment and the target Bluetooth devices type mismatch, the audio for controlling the mobile terminal is defeated Equipment exports the audio data out.
2. the method for the type of identification bluetooth equipment according to claim 1, which is characterized in that first preset instructions Including at least one of following preset instructions:
It is used to indicate the preset instructions that the bluetooth equipment supports multimedia browsing;
It is used to indicate the preset instructions that the bluetooth equipment supports synchronous contact person;
It is used to indicate the preset instructions that the bluetooth equipment supports request song information.
3. the method for the type of identification bluetooth equipment according to claim 1, which is characterized in that second preset instructions Including at least one of following preset instructions:
It is used to indicate the preset instructions that the bluetooth equipment supports electricity to show;
It is used to indicate the preset instructions that the bluetooth equipment supports digital audio compression algorithm.
4. the method for the type of identification bluetooth equipment according to claim 1, which is characterized in that the determination bluetooth After the step of equipment is bluetooth headset, further includes:
Judge the bluetooth headset whether with the target Bluetooth devices type matching;
If the bluetooth headset and the target Bluetooth devices type mismatch, the audio output for controlling the mobile terminal is set It is standby to export the audio data.
5. a kind of mobile terminal characterized by comprising
Link block, for establishing connection with bluetooth equipment;
Determining module, for when receiving from the first preset instructions of the bluetooth equipment, determining that the bluetooth equipment is Blue tooth vehicular equipment;When receiving from the second preset instructions of the bluetooth equipment, determine that the bluetooth equipment is bluetooth Earphone;
Further include:
Identification module, the type of mobile terminal audio data to be output for identification, and according to preset audio data The corresponding relationship of type and bluetooth equipment type determines the corresponding target Bluetooth devices type of the type of the audio data, institute Stating audio data type includes call audio and music VF;
First judgment module, for judging that the blue tooth vehicular is set after determining that the bluetooth equipment is blue tooth vehicular equipment It is standby whether with the target Bluetooth devices type matching;
First control module, for controlling institute when the blue tooth vehicular equipment and the target Bluetooth devices type mismatch The audio output apparatus for stating mobile terminal exports the audio data.
6. mobile terminal according to claim 5, which is characterized in that first preset instructions include following preset instructions At least one of:
It is used to indicate the preset instructions that the bluetooth equipment supports multimedia browsing;
It is used to indicate the preset instructions that the bluetooth equipment supports synchronous contact person;
It is used to indicate the preset instructions that the bluetooth equipment supports request song information.
7. mobile terminal according to claim 5, which is characterized in that second preset instructions include following preset instructions At least one of:
It is used to indicate the preset instructions that the bluetooth equipment supports electricity to show;
It is used to indicate the preset instructions that the bluetooth equipment supports digital audio compression algorithm.
8. mobile terminal according to claim 5, which is characterized in that further include:
Second judgment module, for determine the bluetooth equipment be bluetooth headset after, judge the bluetooth headset whether with The target Bluetooth devices type matching;
Second control module, for controlling the shifting when the bluetooth headset and the target Bluetooth devices type mismatch The audio output apparatus of dynamic terminal exports the audio data.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4 The step of method of the type of described in any item identification bluetooth equipments.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes identification bluetooth equipment according to any one of claims 1 to 4 when the computer program is executed by processor Type method the step of.
CN201710971471.0A 2017-10-18 2017-10-18 A kind of method and mobile terminal of the type identifying bluetooth equipment Active CN107770760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710971471.0A CN107770760B (en) 2017-10-18 2017-10-18 A kind of method and mobile terminal of the type identifying bluetooth equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710971471.0A CN107770760B (en) 2017-10-18 2017-10-18 A kind of method and mobile terminal of the type identifying bluetooth equipment

Publications (2)

Publication Number Publication Date
CN107770760A CN107770760A (en) 2018-03-06
CN107770760B true CN107770760B (en) 2019-11-26

Family

ID=61268808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710971471.0A Active CN107770760B (en) 2017-10-18 2017-10-18 A kind of method and mobile terminal of the type identifying bluetooth equipment

Country Status (1)

Country Link
CN (1) CN107770760B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108834122A (en) * 2018-07-02 2018-11-16 Oppo(重庆)智能科技有限公司 A kind of bluetooth recognition method, apparatus, equipment and storage medium
CN111556466A (en) * 2019-02-12 2020-08-18 青岛海信移动通信技术股份有限公司 Bluetooth vehicle-mounted equipment identification method and terminal
CN109819529A (en) * 2019-03-18 2019-05-28 维沃移动通信有限公司 A kind of target switching method and terminal device
CN112469009A (en) * 2019-09-06 2021-03-09 中兴通讯股份有限公司 Bluetooth data transmission method, device, terminal and storage medium
CN110784846B (en) * 2019-10-10 2023-06-27 RealMe重庆移动通信有限公司 Vehicle-mounted Bluetooth equipment identification method and device, electronic equipment and storage medium
CN111225346B (en) * 2019-11-28 2022-07-12 深圳传音控股股份有限公司 Connection switching method of wireless earphone, wireless earphone and storage medium
CN110972334B (en) * 2019-12-09 2023-04-25 上海传英信息技术有限公司 Bluetooth pairing connection method, device and readable storage medium
CN111124351B (en) * 2019-12-24 2021-11-16 RealMe重庆移动通信有限公司 Audio output method, audio output device, electronic equipment and storage medium
CN112954760B (en) * 2021-03-15 2023-09-22 维沃移动通信有限公司 Bluetooth equipment connection method and device and electronic equipment
CN115309360A (en) * 2021-04-21 2022-11-08 华为技术有限公司 Audio output method, recording method of media file and electronic equipment
CN113660636A (en) * 2021-08-13 2021-11-16 Oppo广东移动通信有限公司 Method, device, equipment and storage medium for determining equipment type

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752029A (en) * 2011-04-18 2012-10-24 中兴通讯股份有限公司 Method for matching Bluetooth accessory with Bluetooth devices and Bluetooth accessory
CN105812905A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Playing control method and device in audio-video playing system
CN106408912A (en) * 2016-09-09 2017-02-15 惠州Tcl移动通信有限公司 AVRCP (audio video remote control profile) instruction allocation method and system based on device types
CN106604204A (en) * 2016-11-03 2017-04-26 惠州Tcl移动通信有限公司 Remote Bluetooth terminal application control method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752029A (en) * 2011-04-18 2012-10-24 中兴通讯股份有限公司 Method for matching Bluetooth accessory with Bluetooth devices and Bluetooth accessory
CN105812905A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Playing control method and device in audio-video playing system
CN106408912A (en) * 2016-09-09 2017-02-15 惠州Tcl移动通信有限公司 AVRCP (audio video remote control profile) instruction allocation method and system based on device types
CN106604204A (en) * 2016-11-03 2017-04-26 惠州Tcl移动通信有限公司 Remote Bluetooth terminal application control method and system

Also Published As

Publication number Publication date
CN107770760A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107770760B (en) A kind of method and mobile terminal of the type identifying bluetooth equipment
CN109408168A (en) A kind of remote interaction method and terminal device
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN110062104A (en) Application program launching method, device and mobile terminal
CN108900695A (en) A kind of display processing method and terminal device
CN108494639A (en) Network access method and mobile terminal
CN109144703A (en) A kind of processing method and its terminal device of multitask
CN110267145A (en) A kind of state display method and terminal device
CN110096203A (en) A kind of screenshot method and mobile terminal
CN109888928A (en) A kind of terminal and wireless charging control method
CN109192153A (en) A kind of terminal and terminal control method
CN109101151A (en) A kind of information display processing method and terminal device
CN108769202A (en) A kind of information push method and its server and terminal device
CN109451144A (en) A kind of message treatment method and terminal device
CN109639738A (en) The method and terminal device of voice data transmission
CN109831582A (en) Non- response events processing method and terminal
CN110312035A (en) A kind of control method of terminal, mobile terminal and computer readable storage medium
CN109788114A (en) A kind of call handling method and terminal
CN109743454A (en) A kind of call handling method and mobile terminal
CN108924911A (en) A kind of starting wifi hotspot shares the method and device of network
CN108540951A (en) A kind of recharge method and mobile terminal
CN108419283A (en) A kind of method and mobile terminal of WIFI hot spot scanning
CN108307075A (en) A kind of incoming call processing method and mobile terminal
CN109947389A (en) Audio switching method, wearable device and computer readable storage medium
CN110366182A (en) A kind of data transmission method and terminal device

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