CN105100477B - Terminal notifying device and method - Google Patents

Terminal notifying device and method Download PDF

Info

Publication number
CN105100477B
CN105100477B CN201510452684.3A CN201510452684A CN105100477B CN 105100477 B CN105100477 B CN 105100477B CN 201510452684 A CN201510452684 A CN 201510452684A CN 105100477 B CN105100477 B CN 105100477B
Authority
CN
China
Prior art keywords
external equipment
earpiece holes
mobile terminal
access
information
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
CN201510452684.3A
Other languages
Chinese (zh)
Other versions
CN105100477A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510452684.3A priority Critical patent/CN105100477B/en
Publication of CN105100477A publication Critical patent/CN105100477A/en
Application granted granted Critical
Publication of CN105100477B publication Critical patent/CN105100477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a kind of terminal notifying device, the terminal notifying device includes: detecting module, the external equipment of the earpiece holes access for mobile terminal where detecting it;Module is obtained, for obtaining the identification information of the external equipment of access earpiece holes when having detected the external equipment access earpiece holes;Cue module, for exporting the corresponding prompt information of the identification information.The invention also discloses a kind of terminal notifying methods.The present invention enables to mobile terminal flexibly to carry out earpiece holes access prompt operation.

Description

Terminal notifying device and method
Technical field
The present invention relates to intelligent terminal technical field more particularly to a kind of terminal notifying device and methods.
Background technique
Currently, with the continuous development of intelligent terminal technology, such as the setting of mobile phone mobile terminal earpiece holes gradually It is changed into general data input/output interface by dedicated audio input/output interface, for example, user can connect earphone Enter earpiece holes and listen song, OK a karaoke club access earpiece holes can also will be drawn to carry out mobile-phone payment, keyboard special can also be accessed earpiece holes Carry out keyboard input etc..
But in the prior art, as long as mobile terminal detects that earpiece holes have external equipment access, by showing The status bar at interface shows that the mode of earphone icon carries out earpiece holes access prompt operation, and there are the accesses of the earpiece holes of mobile terminal The problem of prompting malfunction.
Summary of the invention
The main purpose of the present invention is to provide a kind of terminal notifying device and methods, it is intended to solve the earphone of mobile terminal The problem of hole access prompt malfunction.
To achieve the above object, the present invention provides a kind of terminal notifying device, which includes:
Detecting module, the external equipment of the earpiece holes access for mobile terminal where detecting it;
Module is obtained, for obtaining the outside of access earpiece holes when having detected the external equipment access earpiece holes The identification information of equipment;
Cue module, for exporting the corresponding prompt information of the identification information.
Preferably, whether the detecting module is also used to detect has process to be communicated with default process, wherein is detecting The earpiece holes are accessed to external equipment when having process to be communicated with the default process, has been detected.
Preferably, the progress information for obtaining module and being also used to obtain the process communicated with the default process, And identification information of the progress information that will acquire as the external equipment for accessing the earpiece holes.
Preferably, the detecting module is also used to detect whether the earpiece holes have electric signal to input or export, wherein When detecting the earpiece holes has electric signal to input or export, external equipment is detected and has accessed the earpiece holes.
Preferably, the feature that the acquisition module is also used to obtain the characteristic information of the electric signal, and will acquire Identification information of the information as the external equipment for accessing the earpiece holes.
In addition, to achieve the above object, the present invention also provides a kind of terminal notifying method, which includes:
Mobile terminal detects the external equipment of earpiece holes access;
When having detected the external equipment access earpiece holes, the outside of the acquisition for mobile terminal access earpiece holes is set Standby identification information;
The mobile terminal exports the corresponding prompt information of the identification information.
Preferably, the step of external equipment of the mobile terminal detecting earpiece holes access includes:
Whether the mobile terminal detecting has process to be communicated with default process, wherein in the process of having detected and institute When stating default process and being communicated, external equipment is detected and has accessed the earpiece holes.
Preferably, described when having detected the external equipment access earpiece holes, the acquisition for mobile terminal accesses ear The step of identification information of the external equipment in machine hole includes:
The progress information for the process that the acquisition for mobile terminal is communicated with the default process, and will acquire described Identification information of the progress information as the external equipment for accessing the earpiece holes.
Preferably, the step of external equipment of the mobile terminal detecting earpiece holes access includes:
The mobile terminal detects whether the earpiece holes have electric signal to input or export, wherein is detecting the ear When machine hole has electric signal to input or export, external equipment is detected and has accessed the earpiece holes.
Preferably, described when having detected the external equipment access earpiece holes, the acquisition for mobile terminal accesses ear The step of identification information of the external equipment in machine hole includes:
The characteristic information of electric signal described in the acquisition for mobile terminal, and the characteristic information that will acquire is as access institute State the identification information of the external equipment of earpiece holes.
The present invention is by when having detected external equipment and accessing earpiece holes, based on the external equipment for accessing the earpiece holes Identification information, determine the function type of the external equipment, and then according to the determining corresponding prompt letter of function type output Breath, to carry out earpiece holes access prompt operation.No matter which kind of external equipment is earpiece holes access compared to the prior art, by The status bar of display interface shows that the mode of earphone icon carries out the mode of earpiece holes access prompt operation, and the present invention enables to Mobile terminal flexibly carries out earpiece holes access prompt operation.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the functional block diagram of terminal notifying device first embodiment of the present invention;
Fig. 4 is earpiece holes detection circuit schematic diagram;
Fig. 5 is the flow diagram of terminal notifying method first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111 It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video It broadcasts-holds (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121 Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110 It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122 Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or Person's interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti- It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each implementation of terminal notifying device of the present invention is proposed Example.
Referring to Fig. 3, in the first embodiment of terminal notifying device of the present invention, the terminal notifying device includes:
Detecting module 10, the external equipment of the earpiece holes access for mobile terminal where detecting it;
The terminal notifying device that the present embodiment proposes can be applied in the earpiece holes access prompt operation of mobile terminal, example Such as, when earpiece holes of the user by earphone (or sound equipment) access mobile terminal, mobile terminal shows default in current display interface Earphone icon is to show prompt;When user is by the earpiece holes for drawing OK a karaoke club access mobile terminal, mobile terminal is in current display interface Show default paid icon to show prompt;When earpiece holes of the user by keyboard access mobile terminal, mobile terminal is shown currently Show that interface display presets keyboard icon to show prompt.It should be noted that mobile terminal described in the present embodiment may include hand Machine, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia Player) and navigation device etc. be provided with the mobile terminal of earpiece holes.
By taking the mobile terminal based on android system as an example, in Android system, the access state in test earphone hole It is to be realized by broadcast, specifically, dynamic registration " android.intent.action.HEADSET_PLUG " in code Broadcast, can be realized by following code:
After the registration of completion " android.intent.action.HEADSET_PLUG " broadcast, detecting module 10 exists Listening broadcast in broadcast Receiver:
Wherein, state is that 0 expression earpiece holes do not have external equipment access, and state is that 1 expression earpiece holes have external equipment Access.
Module 20 is obtained, for obtaining the outer of access earpiece holes when having detected the external equipment access earpiece holes The identification information of portion's equipment;
In the present embodiment, when having detected the external equipment access earpiece holes, obtains module 20 and obtain described in access The identification information of the external equipment of earpiece holes.Wherein, the identification information is used to characterize the function type of the external equipment.Example Such as, such as earphone, sound equipment audio class external equipment are indicated using identification information " 1 ", is indicated using identification information " 2 " as drawn OK a karaoke club (hardware) etc. pays class external equipment, indicates that such as keyboard inputs class external equipment using identification information " 3 ".
It should be noted that external equipment is when accessing mobile terminal by earpiece holes, mobile terminal can be run accordingly Application program it is matched, realize hardware capability.For example, the earphone of operation music class application program and access earpiece holes Cooperation realizes that the immersion of music plays;Operation mobile-phone payment class application program is matched with the drawing OK a karaoke club (hardware) for accessing earpiece holes It closes, realizes mobile-phone payment.Therefore, after detecting module 10 has detected external equipment access earpiece holes, obtaining module 20 can lead to The function type for crossing the application program of the currently used earpiece holes communication of mobile terminal where obtaining it determines the external equipment of access Function type, that is, will acquire currently used earpiece holes communication application program functional type information as access earpiece holes External equipment identification information.
Cue module 30, for exporting the corresponding prompt information of the identification information.
In the present embodiment, after acquisition module 20 gets and accesses the identification information of the external equipment of the earpiece holes, mention Show incidence relation of the module 30 based on preset identification information and prompt information, obtains the corresponding prompt letter of the identification information Breath;And when getting the corresponding prompt information of the identification information, export the prompt information of acquisition.Wherein, described Prompt information may include voice class prompt information, image class prompt information and vibration prompt information etc..Preferably, for each The external equipment of type, cue module 30 are previously provided with the prompt information of corresponding at least one type.For example, detecting Earpiece holes have external equipment access, and identify access external equipment be audio class external equipment when, cue module 30 passes through The mode of voice exports " having audio frequency apparatus access "
Preferably, by taking image class prompt information as an example, it is previously provided with the earphone icon of corresponding audio class external equipment, it is right The paid icon of class external equipment and the keyboard icon of corresponding input class external equipment should be paid, for example, working as user for earphone When (or sound equipment) accesses the earpiece holes of mobile terminal, cue module 30 shows default earphone figure in mobile terminal current display interface It is marked with and shows prompt;When user is by the earpiece holes for drawing OK a karaoke club access mobile terminal, cue module 30 is currently shown in mobile terminal Interface display presets paid icon to show prompt;When earpiece holes of the user by keyboard access mobile terminal, cue module 30 exists Mobile terminal current display interface shows default keyboard icon to show prompt.
The terminal notifying device that the present embodiment proposes, when having detected external equipment access earpiece holes, based on access institute The identification information for stating the external equipment of earpiece holes determines the function type of the external equipment, and then according to determining function class Type exports corresponding prompt information, to carry out earpiece holes access prompt operation.No matter what earpiece holes access compared to the prior art Kind external equipment, carrying out earpiece holes access prompt operation in such a way that the status bar of display interface shows earphone icon Mode, the present invention enable to mobile terminal flexibly to carry out earpiece holes access prompt operation.
Further, it is based on first embodiment, the second embodiment of terminal notifying device of the present invention is proposed, in the present embodiment In, whether the detecting module 10 is also used to detect has process to be communicated with default process, wherein in the process of having detected and When the default process is communicated, external equipment is detected and has accessed the earpiece holes.
Referring to Fig. 4, detection pin (left channel pin, AUDIO LEFT in Fig. 4) passes through the pull-up resistor and VCC phase of 1K Ω Even, when no external equipment accesses earpiece holes, since detection pin is directly connected with VCC, the voltage for detecting pin will be with VCC Maintain an equal level, is "high" voltage;When external equipment accesses earpiece holes, detection pin and other pins constitute performance loop, and detection is drawn The voltage of foot will be pulled low, and be " low " voltage, triggering GPIO is interrupted, and then is triggered " android.intent.action.HEADSET_PLUG " broadcast.But there are certain false detection probability, examples for this detection mode Such as, foreign matter insertion leads to detect short circuit between pin and GND, it will the voltage for dragging down detection pin in turn results in erroneous detection.
In view of this, the present embodiment proposes that a kind of earpiece holes in software view access detection mode.Specifically, mould is detected Whether the detecting of block 10 has process to be communicated with default process, wherein is led in the process of having detected and the default process When letter, identification currently has external equipment to access earpiece holes.Whether the detecting of detecting module 10 has process and default process to carry out Communication can be real-time perfoming, be also possible to listening to " android.intent.action.HEADSET_PLUG " broadcast After carry out.
It should be noted that the Interprocess Communication Mechanism of android system is Binder Interprocess Communication Mechanism, Binder framework By server-side, three parts of Binder driving and client are constituted.Wherein server-side and client are in user's space, Binder driving is in kernel spacing.
Server end, a Binder server end are exactly the object of a Binder class.When one Binder pairs of creation As rear, inside may turn on a thread, this thread is used to receive the information that binder driving is sent, after receiving message, meeting Execute relevant service code.
Binder driving, after server-side successfully creates a Binder object, Binder driving also can accordingly create one A mRemote object, the type of the object are also Binder class.Client can access far by this mRemote object Journey service.
Client, client must just obtain the Binder object of remote service to the remote service of access Binder In the corresponding mRemote reference of binder driving layer.After getting the reference of mRemote object, so that it may call corresponding The service of Binder object.
In conclusion client is to call the related service of server-side by Binder driving.Firstly, being created in server-side A Binder object is built, then accordingly creates a Binder object in Binder driving, then client passes through acquisition The service of Binder object quoted to call server-side in Binder driving.It is exactly driven by Binder in Binder mechanism It moves the component bind (adhesion) between different processes together, realizes communication.
The purport that the present embodiment is realized is to detect by the call-by mechanism principle of Binder to be communicated with default process Process.In the present embodiment, detecting module 10 will correspond to earpiece holes and realize the Audio process of data input and output as described in Default process implements detecting, it will be appreciated by persons skilled in the art that such as music, mobile-phone payment application program is being System level is embodied in the form of process, when earphone access earpiece holes are listened song by user, is based on music application program Process and Audio process communication realize;When user will draw OK a karaoke club access earpiece holes to carry out mobile-phone payment, it is based on mobile phone branch The communication for paying the process and Audio process of application program is realized.Therefore, when the process of having detected is communicated with Audio process, It can determine that there is external equipment access in current earphone hole.
Further, in the present embodiment, the acquisition module 20 is also used to obtain and be communicated with the default process Process progress information, and identification letter of the progress information that will acquire as the external equipment for accessing the earpiece holes Breath.
It should be noted that progress information described in the present embodiment is the information of characterization process, including process name and process Number.In the implementation procedure of process, the process number of process is distributed by system in the process of initialization, and a usual process is by system The process number of each load and execution is different, it is contemplated that the uncertainty of process number, the present embodiment is preferably using process name as institute State progress information.
In android system, the process name of process is usually identical as the corresponding packet name of application program, for example, passing through ear Machine hole accesses external equipment and realizes that the process of the drawing OK a karaoke club (application program) of mobile-phone payment is entitled " com.lakala.android ", The process of music more meters of music of class application program is entitled " com.duomi.android ".Description based on previous embodiment, It will be appreciated by persons skilled in the art that when detect be process entitled " com.duomi.android " process and Audio When process communication, that is, it can determine that the external equipment of current earphone hole access is earphone;It is that process is entitled when detecting When the process and Audio process communication of " com.lakala.android ", that is, it can determine that the external equipment of current earphone hole access To draw OK a karaoke club (hardware).Therefore, the process name for the process communicated with the default process that the present embodiment will acquire, as Access earpiece holes external equipment identification information be meet it is actual.
Further, it is based on first embodiment, the 3rd embodiment of terminal notifying device of the present invention is proposed, in the present embodiment In, the detecting module 10 is also used to detect whether the earpiece holes have electric signal to input or export, wherein described detecting When earpiece holes have electric signal to input or export, external equipment is detected and has accessed the earpiece holes.
The present embodiment also proposes that a kind of earpiece holes in hardware view access detection mode.Specifically, detecting module 10 is detectd Survey whether the earpiece holes have electric signal to input or export, wherein there is electric signal to input or export detecting the earpiece holes When, identification currently has external equipment to access the earpiece holes.The detecting module 10 detects whether the earpiece holes have electric signal Input or output can be real-time perfoming, be also possible to listening to " android.intent.action.HEADSET_ It is carried out after PLUG " broadcast.
It will be appreciated by persons skilled in the art that either in simulation electronic field still in digital and electronic field, number According to being to transmit as electronic signals, for example, representing " 1 " using the sinusoidal electric signals that the frequency in four periods is 2KHz, make The sinusoidal electric signals that frequency with two periods is 1KHz represent " 0 ".Therefore, detect earpiece holes have electric signal input or it is defeated When out, illustrates currently there is external equipment to carry out data transmission by the earpiece holes with mobile terminal, that is, have external equipment access The earpiece holes.Wherein, left channel pin that earpiece holes include or right channel pin etc. can be passed through to the detection of electric signal The pin that can carry out data transmission is realized.The present embodiment passes through the input/output electric signal in test earphone hole, can be more accurate The access state in test earphone hole.
Further, in the present embodiment, the characteristic information for obtaining module 20 and being also used to obtain the electric signal, and Identification information of the characteristic information that will acquire as the external equipment for accessing the earpiece holes.
It should be noted that when such as earphone and drawing OK a karaoke club (hardware) external equipment access mobile terminal by earpiece holes, Its data transmission between mobile terminal is realized based on modulated electric signal.It and is by changing base band to the modulation of electric signal What the frequency of electric signal, amplitude or phase were realized, therefore, in the present embodiment using the frequency of electric signal, amplitude and phase as The characteristic information.Feature by acquiring the electric signal that external equipment is communicated by earpiece holes with mobile terminal in advance is believed Breath, and stored after the characteristic information of acquisition is associated with external equipment into preset characteristic information data library;In use, detecing Measuring earpiece holes has electric signal to input or output, and after getting the characteristic information of the electric signal, the characteristic information that will acquire It is compared with each characteristic information in the characteristic information data library, in the characteristic information data inventory in the institute with acquisition When stating the matched characteristic information of characteristic information, that is, can recognize external equipment that the earpiece holes are currently accessed be with described in acquisition External equipment associated by the matched characteristic information of characteristic information.Therefore, the present embodiment will be inputted based on the earpiece holes Or output electric signal characteristic information as access earpiece holes external equipment identification information be meet it is actual.
The present invention further provides a kind of terminal notifying methods, and referring to Fig. 5, first in terminal notifying method of the present invention is real It applies in example, the terminal notifying method includes:
S10, mobile terminal detect the external equipment of earpiece holes access;
The terminal notifying method that the present embodiment proposes can be applied in the earpiece holes access prompt operation of mobile terminal, example Such as, when earpiece holes of the user by earphone (or sound equipment) access mobile terminal, mobile terminal shows default in current display interface Earphone icon is to show prompt;When user is by the earpiece holes for drawing OK a karaoke club access mobile terminal, mobile terminal is in current display interface Show default paid icon to show prompt;When earpiece holes of the user by keyboard access mobile terminal, mobile terminal is shown currently Show that interface display presets keyboard icon to show prompt.It should be noted that mobile terminal described in the present embodiment may include hand Machine, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia Player) and navigation device etc. be provided with the mobile terminal of earpiece holes.
By taking the mobile terminal based on android system as an example, in Android system, the access state in test earphone hole It is to be realized by broadcast, specifically, dynamic registration " android.intent.action.HEADSET_PLUG " in code Broadcast, can be realized by following code:
After the registration of completion " android.intent.action.HEADSET_PLUG " broadcast, in broadcast Listening broadcast in Receiver:
Wherein, state is that 0 expression earpiece holes do not have external equipment access, and state is that 1 expression earpiece holes have external equipment Access.
S20, when having detected the external equipment access earpiece holes, outside the acquisition for mobile terminal access earpiece holes The identification information of portion's equipment;
In the present embodiment, when having detected the external equipment access earpiece holes, the acquisition for mobile terminal accesses institute State the identification information of the external equipment of earpiece holes.Wherein, the identification information is used to characterize the function type of the external equipment. For example, indicating such as earphone, sound equipment audio class external equipment using identification information " 1 ", indicate to block as drawn using identification information " 2 " The payment such as (hardware) class external equipment is drawn, indicates that such as keyboard inputs class external equipment using identification information " 3 ".
It should be noted that external equipment is when accessing mobile terminal by earpiece holes, mobile terminal can be run accordingly Application program it is matched, realize hardware capability.For example, the earphone of operation music class application program and access earpiece holes Cooperation realizes that the immersion of music plays;Operation mobile-phone payment class application program is matched with the drawing OK a karaoke club (hardware) for accessing earpiece holes It closes, realizes mobile-phone payment.Therefore, mobile terminal can currently be made after having detected external equipment access earpiece holes by obtaining The function type of the application program communicated with earpiece holes determines the function type of the external equipment of access, that is, what be will acquire currently makes Identification information of the functional type information for the application program for using earpiece holes to communicate as the external equipment for accessing earpiece holes.
S30, the mobile terminal export the corresponding prompt information of the identification information.
In the present embodiment, after getting and accessing the identification information of the external equipment of the earpiece holes, the mobile terminal Incidence relation based on preset identification information and prompt information obtains the corresponding prompt information of the identification information;And When getting the corresponding prompt information of the identification information, the prompt information of acquisition is exported.Wherein, the prompt information can To include voice class prompt information, image class prompt information and vibration prompt information etc..Preferably, for all types of outsides Equipment is previously provided with the prompt information of corresponding at least one type.For example, mobile terminal has outside detecting earpiece holes Equipment access, and identify access external equipment be audio class external equipment when, being exported by way of voice " has audio to set Standby access "
Preferably, by taking image class prompt information as an example, it is previously provided with the earphone icon of corresponding audio class external equipment, it is right The paid icon of class external equipment and the keyboard icon of corresponding input class external equipment should be paid, for example, working as user for earphone When (or sound equipment) accesses the earpiece holes of mobile terminal, mobile terminal shows that default earphone icon is mentioned to show in current display interface Show;When user is by the earpiece holes for drawing OK a karaoke club access mobile terminal, mobile terminal shows default payment figure in current display interface It is marked with and shows prompt;When earpiece holes of the user by keyboard access mobile terminal, mobile terminal shows default in current display interface Keyboard icon is to show prompt.
The terminal notifying method that the present embodiment proposes, when having detected external equipment access earpiece holes, based on access institute The identification information for stating the external equipment of earpiece holes determines the function type of the external equipment, and then according to determining function class Type exports corresponding prompt information, to carry out earpiece holes access prompt operation.No matter what earpiece holes access compared to the prior art Kind external equipment, carrying out earpiece holes access prompt operation in such a way that the status bar of display interface shows earphone icon Mode, the present invention enable to mobile terminal flexibly to carry out earpiece holes access prompt operation.
Further, it is based on first embodiment, the second embodiment of terminal notifying method of the present invention is proposed, in the present embodiment In, above-mentioned steps S10 includes:
Whether the mobile terminal detecting has process to be communicated with default process, wherein in the process of having detected and institute When stating default process and being communicated, external equipment is detected and has accessed the earpiece holes.
Referring to Fig. 4, detection pin (left channel pin, AUDIO LEFT in Fig. 4) passes through the pull-up resistor and VCC phase of 1K Ω Even, when no external equipment accesses earpiece holes, since detection pin is directly connected with VCC, the voltage for detecting pin will be with VCC Maintain an equal level, is "high" voltage;When external equipment accesses earpiece holes, detection pin and other pins constitute performance loop, and detection is drawn The voltage of foot will be pulled low, and be " low " voltage, triggering GPIO is interrupted, and then is triggered " android.intent.action.HEADSET_PLUG " broadcast.But there are certain false detection probability, examples for this detection mode Such as, foreign matter insertion leads to detect short circuit between pin and GND, it will the voltage for dragging down detection pin in turn results in erroneous detection.
In view of this, the present embodiment proposes that a kind of earpiece holes in software view access detection mode.Specifically, mobile whole Whether end detecting has process to be communicated with default process, wherein is communicated in the process of having detected with the default process When, identification currently has external equipment to access earpiece holes.Whether the mobile terminal detecting has process to be communicated with default process Can be real-time perfoming, be also possible to listen to " android.intent.action.HEADSET_PLUG " broadcast it is laggard Row.
It should be noted that the Interprocess Communication Mechanism of android system is Binder Interprocess Communication Mechanism, Binder framework By server-side, three parts of Binder driving and client are constituted.Wherein server-side and client are in user's space, Binder driving is in kernel spacing.
Server end, a Binder server end are exactly the object of a Binder class.When one Binder pairs of creation As rear, inside may turn on a thread, this thread is used to receive the information that binder driving is sent, after receiving message, meeting Execute relevant service code.
Binder driving, after server-side successfully creates a Binder object, Binder driving also can accordingly create one A mRemote object, the type of the object are also Binder class.Client can access far by this mRemote object Journey service.
Client, client must just obtain the Binder object of remote service to the remote service of access Binder In the corresponding mRemote reference of binder driving layer.After getting the reference of mRemote object, so that it may call corresponding The service of Binder object.
In conclusion client is to call the related service of server-side by Binder driving.Firstly, being created in server-side A Binder object is built, then accordingly creates a Binder object in Binder driving, then client passes through acquisition The service of Binder object quoted to call server-side in Binder driving.It is exactly driven by Binder in Binder mechanism It moves the component bind (adhesion) between different processes together, realizes communication.
The purport that the present embodiment is realized is to detect by the call-by mechanism principle of Binder to be communicated with default process Process.In the present embodiment, earpiece holes will be corresponded to and realize that the Audio process of data input and output is real as the default process Detecting is applied, it will be appreciated by persons skilled in the art that such as music, mobile-phone payment application program are in system level Embodied in the form of process, when earphone access earpiece holes are listened song by user, process based on music application program with The communication of Audio process is realized;When user will draw OK a karaoke club access earpiece holes to carry out mobile-phone payment, it is based on mobile-phone payment application journey The communication of the process and Audio process of sequence is realized.Therefore, it when the process of having detected is communicated with Audio process, that is, can determine that There is external equipment access in current earphone hole.
Further, in the present embodiment, above-mentioned steps S20 includes:
The progress information for the process that the acquisition for mobile terminal is communicated with the default process, and will acquire described Identification information of the progress information as the external equipment for accessing the earpiece holes.
It should be noted that progress information described in the present embodiment is the information of characterization process, including process name and process Number.In the implementation procedure of process, the process number of process is distributed by system in the process of initialization, and a usual process is by system The process number of each load and execution is different, it is contemplated that the uncertainty of process number, the present embodiment is preferably using process name as institute State progress information.
In android system, the process name of process is usually identical as the corresponding packet name of application program, for example, passing through ear Machine hole accesses external equipment and realizes that the process of the drawing OK a karaoke club (application program) of mobile-phone payment is entitled " com.lakala.android ", The process of music more meters of music of class application program is entitled " com.duomi.android ".Description based on previous embodiment, It will be appreciated by persons skilled in the art that when detect be process entitled " com.duomi.android " process and Audio When process communication, that is, it can determine that the external equipment of current earphone hole access is earphone;It is that process is entitled when detecting When the process and Audio process communication of " com.lakala.android ", that is, it can determine that the external equipment of current earphone hole access To draw OK a karaoke club (hardware).Therefore, the process name for the process communicated with the default process that the present embodiment will acquire, as Access earpiece holes external equipment identification information be meet it is actual.
Further, it is based on first embodiment, the 3rd embodiment of terminal notifying method of the present invention is proposed, in the present embodiment In, above-mentioned steps S10 includes:
The mobile terminal detects whether the earpiece holes have electric signal to input or export, wherein is detecting the ear When machine hole has electric signal to input or export, external equipment is detected and has accessed the earpiece holes.
The present embodiment also proposes that a kind of earpiece holes in hardware view access detection mode.Specifically, mobile terminal is detected Whether the earpiece holes have electric signal to input or export, wherein when detecting the earpiece holes has electric signal to input or export, Identification currently has external equipment to access the earpiece holes.The mobile terminal detect the earpiece holes whether have electric signal input or Output can be real-time perfoming, be also possible to listening to " android.intent.action.HEADSET_PLUG " broadcast After carry out.
It will be appreciated by persons skilled in the art that either in simulation electronic field still in digital and electronic field, number According to being to transmit as electronic signals, for example, representing " 1 " using the sinusoidal electric signals that the frequency in four periods is 2KHz, make The sinusoidal electric signals that frequency with two periods is 1KHz represent " 0 ".Therefore, detect earpiece holes have electric signal input or it is defeated When out, illustrates currently there is external equipment to carry out data transmission by the earpiece holes with mobile terminal, that is, have external equipment access The earpiece holes.Wherein, left channel pin that earpiece holes include or right channel pin etc. can be passed through to the detection of electric signal The pin that can carry out data transmission is realized.The present embodiment passes through the input/output electric signal in test earphone hole, can be more accurate The access state in test earphone hole.
Further, in the present embodiment, above-mentioned S20 includes:
The characteristic information of electric signal described in the acquisition for mobile terminal, and the characteristic information that will acquire is as access institute State the identification information of the external equipment of earpiece holes.
It should be noted that when such as earphone and drawing OK a karaoke club (hardware) external equipment access mobile terminal by earpiece holes, Its data transmission between mobile terminal is realized based on modulated electric signal.It and is by changing base band to the modulation of electric signal What the frequency of electric signal, amplitude or phase were realized, therefore, in the present embodiment using the frequency of electric signal, amplitude and phase as The characteristic information.Feature by acquiring the electric signal that external equipment is communicated by earpiece holes with mobile terminal in advance is believed Breath, and stored after the characteristic information of acquisition is associated with external equipment into preset characteristic information data library;In use, detecing Measuring earpiece holes has electric signal to input or output, and after getting the characteristic information of the electric signal, the characteristic information that will acquire It is compared with each characteristic information in the characteristic information data library, in the characteristic information data inventory in the institute with acquisition When stating the matched characteristic information of characteristic information, that is, can recognize external equipment that the earpiece holes are currently accessed be with described in acquisition External equipment associated by the matched characteristic information of characteristic information.Therefore, the present embodiment will be inputted based on the earpiece holes Or output electric signal characteristic information as access earpiece holes external equipment identification information be meet it is actual.
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.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
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 device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal notifying device, which is characterized in that the terminal notifying device includes:
Detecting module, the external equipment of the earpiece holes access for mobile terminal where detecting it;
Module is obtained, for obtaining the external equipment of access earpiece holes when having detected the external equipment access earpiece holes Identification information;
Cue module, for exporting the corresponding prompt information of the identification information;
Wherein, the external equipment includes audio class external equipment, payment class external equipment and inputs class external equipment, described Prompt information includes voice class prompt information, image class prompt information and vibration prompt information, and the cue module is also used to For all types of external equipments, it is previously provided with the prompt information of corresponding at least one type.
2. terminal notifying device as described in claim 1, which is characterized in that the detecting module be also used to detect whether have into Journey is communicated with default process, wherein when the process of having detected is communicated with the default process, has detected outside Equipment accesses the earpiece holes.
3. terminal notifying device as claimed in claim 2, which is characterized in that the acquisition module be also used to obtain with it is described pre- If the progress information for the process that process is communicated, and the progress information that will acquire is as the outside for accessing the earpiece holes The identification information of equipment.
4. terminal notifying device as described in claim 1, which is characterized in that the detecting module is also used to detect the earphone Whether hole has electric signal to input or export, wherein when detecting the earpiece holes has electric signal to input or export, has detected External equipment accesses the earpiece holes.
5. terminal notifying device as claimed in claim 4, which is characterized in that the acquisition module is also used to obtain the telecommunications Number characteristic information, and identification information of the characteristic information that will acquire as the external equipment for accessing the earpiece holes.
6. a kind of terminal notifying method, which is characterized in that the terminal notifying method includes:
Mobile terminal detects the external equipment of earpiece holes access;
When having detected the external equipment access earpiece holes, the external equipment of the acquisition for mobile terminal access earpiece holes Identification information;
The mobile terminal exports the corresponding prompt information of the identification information;
Wherein, the external equipment includes audio class external equipment, payment class external equipment and inputs class external equipment, described Prompt information includes voice class prompt information, image class prompt information and vibration prompt information, and is directed to all types of outsides Equipment is previously provided with the prompt information of corresponding at least one type.
7. terminal notifying method as claimed in claim 6, which is characterized in that outside the mobile terminal detecting earpiece holes access The step of portion's equipment includes:
Whether mobile terminal detecting has process to be communicated with default process, wherein the process of having detected with it is described pre- If process is communicated, external equipment is detected and has accessed the earpiece holes.
8. terminal notifying method as claimed in claim 7, which is characterized in that described to detect described in external equipment access When earpiece holes, the step of identification information of the external equipment of acquisition for mobile terminal access earpiece holes, includes:
The progress information for the process that the acquisition for mobile terminal is communicated with the default process, and the process that will acquire Identification information of the information as the external equipment for accessing the earpiece holes.
9. terminal notifying method as claimed in claim 6, which is characterized in that outside the mobile terminal detecting earpiece holes access The step of portion's equipment includes:
The mobile terminal detects whether the earpiece holes have electric signal to input or export, wherein is detecting the earpiece holes When thering is electric signal to input or export, external equipment is detected and has accessed the earpiece holes.
10. terminal notifying method as claimed in claim 9, which is characterized in that described to detect external equipment access institute When stating earpiece holes, the step of identification information of the external equipment of acquisition for mobile terminal access earpiece holes, includes:
The characteristic information of electric signal described in the acquisition for mobile terminal, and the characteristic information that will acquire is as the access ear The identification information of the external equipment in machine hole.
CN201510452684.3A 2015-07-28 2015-07-28 Terminal notifying device and method Active CN105100477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510452684.3A CN105100477B (en) 2015-07-28 2015-07-28 Terminal notifying device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510452684.3A CN105100477B (en) 2015-07-28 2015-07-28 Terminal notifying device and method

Publications (2)

Publication Number Publication Date
CN105100477A CN105100477A (en) 2015-11-25
CN105100477B true CN105100477B (en) 2019-03-01

Family

ID=54579972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510452684.3A Active CN105100477B (en) 2015-07-28 2015-07-28 Terminal notifying device and method

Country Status (1)

Country Link
CN (1) CN105100477B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101391A (en) * 2016-06-01 2016-11-09 福建联迪商用设备有限公司 A kind of method solving the shake of Android phone microphone bias voltage
CN106325809A (en) * 2016-08-29 2017-01-11 厦门盈趣科技股份有限公司 Method and device for controlling reversible transmission based on audio stream
CN106550120B (en) * 2016-10-20 2020-06-02 惠州Tcl移动通信有限公司 Active accessory detection processing method based on mobile terminal and mobile terminal
CN107341122B (en) * 2017-07-25 2019-08-27 Oppo广东移动通信有限公司 Equipment access processing method, equipment access processing unit and mobile terminal
CN108377291B (en) * 2018-01-29 2020-05-12 维沃移动通信有限公司 Communication method based on earphone interface, mobile terminal and storage medium
CN110111790B (en) * 2019-05-09 2022-01-28 海信视像科技股份有限公司 Method, device and equipment for processing external equipment access of intelligent equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519405A (en) * 2013-10-08 2015-04-15 联想(北京)有限公司 Control method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100493858B1 (en) * 2002-12-16 2005-06-10 삼성전자주식회사 Multi ear jack and his control method
CN101431708A (en) * 2008-12-10 2009-05-13 深圳华为通信技术有限公司 Terminal and method for recognizing headphone type
CN105718160A (en) * 2014-12-05 2016-06-29 上海智朴科技发展有限公司 Application operation triggering method, apparatus and system
CN104794074B (en) * 2015-03-27 2018-04-06 小米科技有限责任公司 External equipment recognition methods and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519405A (en) * 2013-10-08 2015-04-15 联想(北京)有限公司 Control method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《大家插入耳机后顶部显示是什么图标》;无;《http://wenwen.sogou.com/z/q351650262.htm》;20120209;第1页

Also Published As

Publication number Publication date
CN105100477A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105100477B (en) Terminal notifying device and method
CN105101366B (en) Method for controlling mobile terminal and mobile terminal
CN104967744B (en) Adjust the method and device of terminal parameter
CN104850799B (en) The method and mobile terminal of a kind of data in hiding mobile terminal
CN104918064B (en) A kind of method and device that mobile terminal video quickly plays
CN104917879B (en) A kind of method, device and mobile terminal for cancelling alarm clock calling
CN106655358B (en) Battery charge controller and method between a kind of mobile terminal
CN104850343B (en) Start the method and apparatus of one-hand operating format
CN106598457B (en) A kind of sound control method for playing back, device and terminal
CN106873921A (en) A kind of hanging method and device of multi partition external storage
CN105357367B (en) Recognition by pressing keys device and method based on pressure sensor
CN104991772B (en) Remote operation bootstrap technique and device
CN105278995B (en) Management method, system, server and the mobile terminal of application program
CN105245938B (en) The device and method for playing multimedia file
CN106789589A (en) One kind shares processing method, device and terminal
CN106791027A (en) A kind of terminal based on audio-frequency information searches device and method
CN104810033B (en) Audio frequency playing method and device
CN106899908B (en) Apparatus for processing audio, method and system
CN106793159A (en) A kind of screen prjection method and mobile terminal
CN105260096B (en) A kind of method and mobile terminal controlling user's operation
CN105100408B (en) A kind of method and apparatus controlling mobile terminal
CN105187621B (en) The method, apparatus and terminal of message notifying
CN106550133A (en) Calling identification device and method
CN105118517B (en) A kind of device and method adjusting music rhythm
CN105357188B (en) A kind of method that realizing WIFI connections, server and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant