CN105516851B - A kind of earphone control device - Google Patents

A kind of earphone control device Download PDF

Info

Publication number
CN105516851B
CN105516851B CN201610042033.1A CN201610042033A CN105516851B CN 105516851 B CN105516851 B CN 105516851B CN 201610042033 A CN201610042033 A CN 201610042033A CN 105516851 B CN105516851 B CN 105516851B
Authority
CN
China
Prior art keywords
earphone
mcu
terminal device
control
instruction
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
CN201610042033.1A
Other languages
Chinese (zh)
Other versions
CN105516851A (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.)
Guangzhou Huahui Innovation 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 CN201610042033.1A priority Critical patent/CN105516851B/en
Publication of CN105516851A publication Critical patent/CN105516851A/en
Application granted granted Critical
Publication of CN105516851B publication Critical patent/CN105516851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of earphone control devices.Earphone control device provided in an embodiment of the present invention includes: micro-control unit MCU, earphone and analog switch;Wherein, in the earphone socket of the access terminal equipment of the input terminal parallel connection of the input terminal and earphone of MCU, MCU is also used to carry out the two-way communication between MCU and terminal device by the right Mike of earphone socket and L channel/right channel for being powered by the left Mike of earphone socket;Analog switch is arranged on the sound channel line of earphone, and the universal input output GPIO port of MCU and the switch control unit of analog switch connect, and switch control unit is used to open or close analog switch according to the switching signal of GPIO port.

Description

A kind of earphone control device
Technical field
The present embodiments relate to computer and field of communication technology, espespecially a kind of earphone control device.
Background technique
With the development of computer and the communication technology and popularizing for communication products, intelligent terminal has become user not The communications and entertainment tool that can lack, has the function of irreplaceable in people's daily life, such as user is usually used Smart phone is received calls or is listened to music.
An important accessory of the earphone as intelligent terminal has very important effect in the application of intelligent terminal. Existing four-section type headset line traffic control has the function of a key or multiple keys, for example, user is conversed using earphone When, it can be executed by the key of the four-section type headset line traffic control and answer or hang up operation, it, can be with when user is listened to music using earphone The operation such as the increase and decrease operation of volume and the fast forward and fast reverse of song is executed by the key of the four-section type headset line traffic control.This four The control function of segmentation earphone line control is relatively simple, is only able to achieve fairly simple control operation, if desired increases to earphone line control Add auxiliary device to extend the function of the earphone line control, it usually needs additional power supply is provided, so as to cause earphone line control at This increase, and additional power supply is set and will increase the volume of earphone line control;In addition, being communicated between earphone line control and intelligent terminal Signal the audio signal transmitted on earphone sound channel line can be interfered, reduce the service performance of earphone.
In conclusion earphone line control in the prior art, the signal of communication between line traffic control and intelligent terminal can be to earphone sound Audio signal on diatom interferes, and when increasing auxiliary device to earphone line control, additional due to usually requiring to provide Power supply, and cause earphone line control cost and volume increase the problem of.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of earphone control devices, to solve existing skill Earphone line control in art, the signal of communication between line traffic control and intelligent terminal can interfere the audio signal on earphone sound channel line The problem of, in addition, to solve due to usually requiring to provide additional power supply, and to lead when increasing auxiliary device to earphone line control The problem of causing the cost of earphone line control and volume to increase.
In a first aspect, the embodiment of the present invention provides a kind of earphone control device, comprising: micro-control unit MCU, earphone and mould Quasi- switch;
In the earphone socket that the earphone control device passes through headset plug access terminal equipment, the MCU is for passing through The left Mike of the earphone socket is powered the MCU, be also used to by the right Mike of the earphone socket and L channel/ Right channel carries out the two-way communication between the MCU and the terminal device;
The analog switch is arranged on L channel/right channel sound channel line of the earphone, the universal input of the MCU Output GPIO port is connect with the switch control unit of the analog switch, and the switch control unit is used for respectively at the end It is opened or closed before end equipment is communicated with the MCU and according to the switching signal that the GPIO port is sent after sign off The analog switch.
In the first possible implementation of the first aspect, the input terminal of the analog switch and the terminal device One of sound channel line of output end connects, and the output end of the analog switch is connected with sound channel line corresponding in the earphone It connects, the analog switch is used for the terminal according to the switching signal on or off that the switch control unit receives The sound channel line of equipment and the earphone.
According to the first possible implementation of first aspect, in the second possible implementation, the MCU is used It is instructed in front of the terminal device is communicated with the MCU, receiving the initiation of communication that the terminal device is sent, and according to The initiation of communication, which instructs to send to the switch control unit, disconnects switching signal;
The MCU is also used to after the sign off of the terminal device and the MCU, is received the terminal device and is sent Sign off instruction, and according to the sign off instruct to the switch control unit send closure switch signal.
In a third possible implementation of the first aspect, the earphone control device further include: with the MCU's The first resistor and second resistance that one comparator input terminal is connected in parallel, wherein one end of the first resistor and described second One end of resistance is connected respectively in the earphone socket, and the other end of the first resistor connects power supply, the second resistance The other end ground connection;
Supply voltage is divided by the first resistor and the second resistance, so that the comparator of the MCU Input terminal captures the audio signal of the terminal device output.
According to first aspect, first aspect the first into the third possible implementation any one, the 4th In the possible implementation of kind, the earphone control device further include: the liquid crystal display being connected with the MCU, the MCU are also used It is instructed in receiving the initiation of communication that the terminal device is sent, and instructs control to disconnect the simulation according to the initiation of communication and open It closes;It is also used to receive the file data that the terminal device is sent, and returns to confirmation message to the terminal device;It is also used to connect What receipts terminal device was sent before sending audio signal is played simultaneously instruction, and the instruction demodulation text is played simultaneously according to described Number of packages evidence controls the content that the liquid crystal display shows the file data by demodulation result;It is also used to receive the terminal to set The sign off instruction that preparation is sent, and the analog switch is closed according to sign off control;Wherein, the liquid crystal display is used It is powered in by the left Mike of the earphone socket, is also used to the right Mike and L channel/right side by the earphone socket Sound channel carries out the two-way communication between the liquid crystal display and the terminal device.
According to the 4th of first aspect the kind of possible implementation, in a fifth possible implementation, the MCU is also The initiation of communication instruction sent for receiving the terminal device, and instruct control to disconnect the simulation according to the initiation of communication Switch;It is also used to receive the communication information that the terminal device is sent, and controls the liquid crystal display and show the communication information;Also The clear screen instruction sent after open communication for receiving the terminal device, and instructed and controlled described in removing according to the clear screen The communication information of liquid crystal screen display;It is also used to receive the sign off instruction that the terminal device is sent, and according to described logical Believe that END instruction control is closed the analog switch.
According to the 4th of first aspect the kind of possible implementation, in a sixth possible implementation, the liquid crystal Character library and symbolic library are configured in the memory of screen.
According to first aspect, first aspect the first into the third possible implementation any one, the 7th In the possible implementation of kind, the earphone control device further include: the lamplight component being connected with the MCU;
The lamplight component includes the first light, the second light and third light, first light, second light With one end of the third light be connected to correspondingly the MCU the first pulse width modulation (PWM) output end, second PWM output end and the 3rd PWM output end, first light, second light are connected with the other end of the third light To power supply;
The MCU is also used to receive the control instruction that the terminal device is sent, and demodulates the color in the control instruction, And the lamplight component is controlled according to demodulation result and shows corresponding color.
According to the 7th of first aspect the kind of possible implementation, in the 8th kind of possible implementation, the MCU is also The initiation of communication instruction sent for receiving the terminal device, and instruct control to disconnect the simulation according to the initiation of communication Switch;It is also used to receive the color data that the terminal device is sent, and returns to confirmation message to the terminal device;It is also used to The sign off instruction that receiving terminal apparatus is sent, and the analog switch is closed according to sign off control;It is also used to The color data is demodulated, the lamplight component is controlled according to demodulation result and shows corresponding color.
According to the 7th of first aspect the kind of possible implementation, in the 9th kind of possible implementation, the MCU is also The duty ratio of the first pulse signal for being exported by the first PWM output end controls the brightness of first light, leads to The duty ratio for crossing the second pulse signal of the 2nd PWM output end output controls the brightness of second light, by described The duty ratio of the third pulse signal of 3rd PWM output end output controls the brightness of the third light.
The access of earphone control device provided in an embodiment of the present invention, the input terminal parallel connection of the input terminal and earphone of MCU is whole In the earphone socket of end equipment, wherein MCU is also used to insert by earphone for being powered by the left Mike of earphone socket The right Mike of seat and L channel or right channel carry out the two-way communication between MCU and terminal device, are arranged in earphone sound channel line On the switch control unit of analog switch be connected with the GPIO port of above-mentioned MCU, realize MCU and pass through GPIO port and export Switching signal can control the disconnection and closure of analog switch;Earphone control device provided in an embodiment of the present invention, to solve Earphone line control in the prior art, the signal of communication between line traffic control and intelligent terminal can make the audio signal on earphone sound channel line The problem of at interference, in addition, to solve when increasing auxiliary device to earphone line control, due to usually requiring to provide additional electricity Source, and cause earphone line control cost and volume increase the problem of.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
The hardware configuration signal of Fig. 1 each embodiment one optional mobile terminal to realize the present invention;
Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate;
Fig. 3 is a kind of structural schematic diagram of earphone control device provided in an embodiment of the present invention;
Fig. 4 is the structural representation of one of the earphone control device that embodiment illustrated in fig. 3 provides five-part form earphone socket Figure;
Fig. 5 is the structural representation of one of the earphone control device that embodiment illustrated in fig. 3 provides five-part form headset plug Figure;
Fig. 6 is the waveform diagram of the terminal device progress data modulation in the embodiment of the present invention;
Fig. 7 is a kind of operation principle schematic diagram of MCU in earphone control device provided in an embodiment of the present invention;
Fig. 8 is the waveform diagram after the MCU in embodiment illustrated in fig. 7 demodulates audio signal;
Fig. 9 is the stream that one of the earphone control device that embodiment illustrated in fig. 7 provides MCU demodulates audio signal Cheng Tu;
Figure 10 is the structural schematic diagram of one of the earphone control device that embodiment illustrated in fig. 3 provides analog switch;
Figure 11 is that one of the earphone control device that embodiment illustrated in fig. 10 provides MCU controls analog switch Flow chart;
Figure 12 is the structural schematic diagram of another earphone control device provided in an embodiment of the present invention;
Figure 13 is the schematic diagram of one of the earphone control device that embodiment illustrated in fig. 12 provides liquid crystal display;
Figure 14 is the flow chart that one of the earphone control device that embodiment illustrated in fig. 12 provides MCU controls liquid crystal display;
Figure 15 is the process of another MCU control liquid crystal display in the earphone control device that embodiment illustrated in fig. 12 provides Figure;
Figure 16 is the structural schematic diagram of another earphone control device provided in an embodiment of the present invention;
Figure 17 is the operation principle schematic diagram of another kind MCU in earphone control device provided in an embodiment of the present invention;
Figure 18 is the waveform diagram of one of the earphone control device that embodiment illustrated in fig. 16 provides aeolight color;
Figure 19 is the waveform diagram of another aeolight color in the earphone control device that embodiment illustrated in fig. 16 provides;
Figure 20 is the waveform diagram of another aeolight color in the earphone control device that embodiment illustrated in fig. 16 provides;
Figure 21 is the stream that one of the earphone control device that embodiment illustrated in fig. 16 provides MCU carries out light color modulation Cheng Tu;
Figure 22 is the process that one of the earphone control device that embodiment illustrated in fig. 16 provides MCU controls lamplight component Figure.
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 indicating that member seems the suffix of such as " module ", " component " or " unit " 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.
The hardware configuration signal of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
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), the Radio Data System of forward link media (MediaFLO@), 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 Tooth TM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybee TM etc..
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 121 can be provided according to the construction of mobile terminal.Microphone 122 can telephone calling model, Sound (audio data) is received via microphone in logging mode, speech recognition mode etc. operational mode, and can be by this The acoustic processing of sample is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model The format output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can be implemented various types of Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or 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).
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 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It 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 apparatus of the present invention and method is proposed Example.To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to implementation of the invention Example is described in detail.It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application It can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Technical solution of the present invention is described in detail below by specific embodiment, the following embodiment of the present invention In terminal device be usually mobile terminal, such as smart phone, personal digital assistant (Personal Digital Assistant, referred to as are as follows: PDA) and tablet computer etc..The present invention provides following specific embodiment and can be combined with each other, The same or similar concept or process may be repeated no more in some embodiments.
Fig. 3 is a kind of structural schematic diagram of earphone control device provided in an embodiment of the present invention.Ear provided in this embodiment Machine control device realizes that the device can be connected and realize with terminal device usually in method that hardware and software combines With the communication of terminal device.
Earphone socket in the embodiment of the present invention has independently-powered module, MCU control module in following embodiment, Liquid crystal screen module optionally has five-part form or seven segmentations without increasing additional power supply unit, therefore in each embodiment of the present invention Earphone.
As shown in figure 3, the earphone control device 10 of the present embodiment specifically includes: micro-control unit (Microcontroller Unit, referred to as are as follows: MCU) 110, earphone 120 and analog switch 130;Wherein, the input terminal of the input terminal of MCU110 and earphone 120 In the earphone socket of access terminal equipment in parallel, which also uses for being powered by the left Mike of earphone socket In right Mike and L channel by earphone socket or the two-way communication between right channel progress MCU110 and terminal device;Mould Quasi- switch 130 is arranged on the sound channel line of earphone 120, and the universal input of MCU110 exports (General Purpose Input Output, referred to as are as follows: GPIO) port connect with the switch control unit 131 of analog switch 130, switch control unit 131 is used for According to the switching signal closing or opening analog switch 130 of GPIO port.
Earphone control device 10 provided in this embodiment replaces the line traffic control module of common headphones with MCU110, and in earphone Analog switch 130 is increased on 120 sound channel line, the MCU110 and earphone 120 can share a headset plug, which inserts In the earphone socket of head insertion terminal device.It should be noted that the headset plug in various embodiments of the present invention for example can be Five-part form or seven segmentation headset plugs, correspondingly, earphone socket for example can be five-part form or seven segmentation earphone sockets, MCU110 It is all linked into the earphone socket of terminal device by headset plug with earphone 120, specifically, when MCU110 works, passes through end Zuo Maike (Microphone Left, referred to as are as follows: MIC-L) powers in the earphone socket of end equipment for it.
With reference to Fig. 4 and Fig. 5, illustrate the connection type of MCU110 and earphone 120 and terminal device in the present embodiment, Fig. 4 and Fig. 5 is shown by taking five-part form earphone socket and five-part form headset plug as an example, and Fig. 4 is the earphone that embodiment illustrated in fig. 3 provides The structural schematic diagram of one of control device five-part form earphone socket, Fig. 5 are the earphone control dress that embodiment illustrated in fig. 3 provides One of set the structural schematic diagram of five-part form headset plug.As shown, five-part form headset plug shown in fig. 5 is from Fig. 4 institute Show that the right end earphone jack of five-part form earphone socket is inserted into, the connection of realization earphone control device 10 and terminal device, this five sections The plug and socket of formula earphone include: left Mike, right Mike (Microphone Right, referred to as are as follows: MIC-R), L channel, Right channel and ground terminal, five-part form earphone socket also have test side, are inserted into five-part form earphone socket in five-part form headset plug When, it can detecte whether above-mentioned each function end normally connects, Zuo Maike is on the top of five-part form headset plug, by left Mike MCU110 power supply can reduce interference signal as far as possible, improve the quality of signal of communication between MCU110 and terminal device.
Analog switch 130 in the present embodiment has the port of control on-off enabled (Enable, referred to as are as follows: EN), that is, opens Control unit 131 is closed, which is specifically connected with the GPIO port in MCU110, and specifically, MCU110 is logical It crosses GPIO port and sends switching signal to the switch control unit 131 of analog switch 130, to control closing for analog switch 130 It closes and disconnects, be conducting between terminal device and earphone 120 when which is closed, user can pass through earphone 120 listen to the audio-frequency information of terminal device sending, such as are conversed or listened to music, and when which disconnects, terminal is set Standby is to disconnect between earphone 120, at this point, earphone 120 can not make a sound.It is opened in the embodiment of the present invention using simulation Closing 130 effect is, by controlling the open and close of analog switch 130, is turned on or off between earphone 120 and terminal device Access, can be by process control, when MCU110 carries out voice modulation or realizes other functions and generates noise, by specific Instruction disconnect the access between earphone 120 and terminal device, to avoid noise introducing earphone 120, improve the experience of user Effect, while promoting the service performance of earphone 120.
In order to better understand the present invention in embodiment earphone control device 10 structure and usage mode, be situated between in detail below Continue the data modulation of terminal device and the data demodulation mode of MCU110 in the present embodiment.
As shown in fig. 6, carrying out the waveform diagram of data modulation for the terminal device in the embodiment of the present invention.Earphone 120 It is upper that there is sound channel line, audio signal can be transmitted, the frequency of common audio signal is generally at 20 hertz (Hz) to 20 kHz (KHz) it in the range of, can be transmitted on the sound channel line of earphone 120, therefore, the hardware of terminal device, i.e. digital-to-analogue conversion (Digital to Analog, referred to as are as follows: DA) module will equally meet the transmission conditions in above-mentioned range of audio signals, from And data are uploaded by L channel line and right channel line for terminal device and provide physical condition.Specifically, terminal device can be with Coded modulation is carried out by the audio signal of different frequency within the above range, such as 1KHz sine wave signal represents " 0 ", 2KHz Sine wave signal represents " 1 ", we may be implemented to send the letter of above two audio signal under the operating system of terminal device Number generator, the operating system of terminal device are, for example, usually used at present Android (Android) system or IOS system. In the concrete realization, usually using Binary Frequency Shift Keying (Binary Frequency Shift Keying, referred to as are as follows: Mode 2FSK) carries out the communication between terminal device and MCU110, and the audio data to be sent first is converted into binary code Then member can be converted into the binary element to be sent the audio signal of this above two frequency, then left from earphone 120 Sound channel line or right channel line are sent.
For example, the terminal device rule similar with serial ports asynchronous communication sends audio data to MCU110, and one is risen Beginning position " 0 " indicates the beginning of character, and 5~8 data terminate the transmission of a frame data with " 1 " finally for stop position.Designer The initial order of communication protocol, such as the protocol header of waveform shown in Fig. 6 can arbitrarily be customized is defined as: 0xA.
As shown in fig. 7, for a kind of operation principle schematic diagram of MCU in earphone control device provided in an embodiment of the present invention. The low-power consumption of the MSP430 series of Texas Instruments (Ti) production can be used for example in MCU110 in various embodiments of the present invention Single-chip microcontroller, it is perhaps scientific and technological using the low-power scm of the STM32 series of STMicw Electronics (ST) production or using macrocrystalline (STC) low-power scm of 51 series of production, the embodiment of the present invention do not limit production firm and the model of MCU110, as long as The single-chip microcontroller that can be achieved on MCU110 function in various embodiments of the present invention, all can serve as in the embodiment of the present invention MCU110.Embodiment illustrated in fig. 7 is explained for the MSP430F of i.e. MSP430 series with selecting the low-power scm of Ti The function of the MCU of the data demodulation mode of MCU110, MSP430 series is powerful, low in energy consumption, and in the dormant state, electric current can Reach microampere (uA) grade, working normally lower electric current also may remain in several milliamperes (mA) grade or so.
In the concrete realization, the L channel or right channel of terminal device are connected to MSP430F single-chip microcontroller to the present embodiment P2.3 pin, the P2.3 are difunctional pin, have the function of comparator (CA0) and pulse width modulation (Pulse Width Modulation, referred to as are as follows: PWM) (TA1) function, the present embodiment can make by the way that corresponding register is arranged in source code Can the P2.3 pin comparator function positive input, i.e. input terminal connect in MCU110 with terminal device is specially this The comparator input terminal of MCU110.As shown in fig. 7, the earphone control device 10 in the present embodiment further include: distinguish with MCU110 First resistor 140 and second resistance 150 in parallel, wherein one end of first resistor 140 and one end difference of second resistance 150 It is connected in earphone socket, the other end of first resistor 140 connects power supply, the other end ground connection of second resistance 150, in addition, Fig. 7 In resistance 3 and capacitor be the tandem circuit component for realizing MCU working method, first resistor 140, second in example shown in Fig. 7 The resistance value of resistance 150 and resistance 3 is 100 kilohms (K Ω).The present embodiment can be by the inside of the reverse input end of comparator Reference voltage is set as 0.5Vcc, in this way, with above-mentioned 140 He of first resistor on the L channel line or right channel line of terminal device Second resistance 150 is to VccIt is divided, as long as L channel line or the V of right channel line outputccChange in comparator pass range When, comparator input terminal can capture audio signal, and audio signal is by comparator treated waveform as shown in figure 8, being MCU in embodiment illustrated in fig. 7 is to the waveform diagram after audio signal demodulation.Fig. 9 is the earphone that embodiment illustrated in fig. 7 provides The flow chart that one of control device MCU demodulates audio signal, the mode that MCU110 demodulates audio signal Specifically includes the following steps:
S110, MCU are believed by the audio of the L channel line or right channel line receiving terminal apparatus of terminal device and MCU transmission Number.
S120, MCU carry out capture interrupt operation to the audio signal of input.
S130, MCU carry out pulsewidth calculating to the audio signal after capture is interrupted is executed.
S140, MCU carry out pulsewidth comparison to the audio signal after pulsewidth calculates is executed.
S150, MCU carry out bit decision to the audio signal after executing pulsewidth relatively.
Symbol after S160, MCU output demodulation.
It should be noted that Fig. 7 is the operation principle schematic diagram of MCU110 in the embodiment of the present invention, do not illustrate in Fig. 7 The connection relationship of MSP430F single-chip microcontroller and analog switch 130 out, any one free time GPIO that can choose in MSP430F connect The switch control unit 131 of mouth connection analog switch 130.
The access terminal of earphone control device provided in this embodiment, the input terminal parallel connection of the input terminal and earphone of MCU is set In standby earphone socket, wherein MCU is also used to for being powered by the left Mike of earphone socket through earphone socket Right Mike and L channel or right channel carry out the two-way communication between MCU and terminal device, are arranged on earphone sound channel line The switch control unit of analog switch is connected with the GPIO port of above-mentioned MCU, realizes MCU and is opened by what GPIO port exported OFF signal can control the open and close of analog switch;Earphone control device provided in this embodiment, to solve the prior art In earphone line control, what the signal of communication between line traffic control and intelligent terminal can interfere the audio signal on earphone sound channel line Problem, in addition, to solve due to usually requiring to provide additional power supply, and to cause when increasing auxiliary device to earphone line control The problem of cost and volume of earphone line control increase.
Optionally, as shown in Figure 10, one of the earphone control device provided for embodiment illustrated in fig. 3 analog switch Structural schematic diagram.The input terminal of analog switch 130 is connect with one of sound channel line of terminal device output end in the present embodiment, For example, L channel line or right channel line, the output end of analog switch 130 are connected with sound channel line corresponding in earphone 120, if The L channel line of the input terminal connection terminal device of analog switch 130, output end then connects the L channel line of earphone 120, if mould The right channel line of the input terminal connection terminal device of quasi- switch 130, output end then connect the right channel line of earphone 120, the simulation The sound of switching signal on or off terminal device and earphone 120 that switch 130 is used to be received according to switch control unit 131 Diatom.In the concrete realization, one single-pole single-throw switch (SPST) (single-pole can be set in the inside of analog switch 130 Single-throw, referred to as are as follows: SPST), switch control unit 131 executes analog switch 130 by the control to the SPST Closure and disconnection.
It should be noted that the effect of MCU110 is to be solved to terminal device by the audio signal that sound channel line transmits It adjusts, when sound wave modulation data, noise may be introduced to earphone 120, user converses by earphone 120 or audition There are biggish interference when happy, reduce user experience effect.
The present embodiment in the concrete realization, in order to avoid MCU110 and audio signal when terminal equipment in communication to listening as far as possible The influence of feel can set analog switch 130 to the state that default disconnects, such as set 0xA and instruct as initiation of communication, at this time The switch control unit 131 of analog switch 130 receives the low level " 0 " of MCU110 transmission, and analog switch 130 is to disconnect shape State, 0xF are sign off instruction, and the switch control unit 131 of analog switch 130 receives the high level of MCU110 transmission at this time " 1 ", analog switch 130 are closed state, and such user's normal use earphone 120 is just unaffected.As shown in figure 11, it is The flow chart that one of the earphone control device that embodiment illustrated in fig. 10 provides MCU controls analog switch, MCU110 The mode that controlled analog switch 130 specifically includes the following steps:
The initiation of communication instruction that S210, MCU receiving terminal apparatus are sent.Initiation of communication instruction in the present embodiment is for example set It is set to 0xA.
S220, MCU, which instruct to send to switch control unit according to initiation of communication, disconnects switching signal, and control disconnects simulation and opens It closes.
It is communicated between S230, MCU and terminal device.Such as send character data.
S240, after the sign off of terminal device and MCU, the sign off that MCU receiving terminal apparatus is sent is instructed.This Sign off instruction in embodiment is for example set as 0xF.
S250, MCU are instructed to switch control unit according to sign off and are sent closure switch signal, and control closure simulation is opened It closes.
MCU110 in above-described embodiment in earphone control device 10 is carried out independently-powered by earphone socket, does not need list Solely setting additional supply such as battery has achieved the purpose that reduce cost and has reduced the volume of earphone control device 10, and led to Control of the MCU110 to analog switch 130 is crossed, the noise that user is introduced when using earphone 120 by MCU110 is avoided.It is based on Independently-powered advantage is carried out to MCU110 above by earphone socket, the earphone that can also be provided the above embodiment of the present invention Control device 10 increases one or more in attachment device, such as liquid crystal display and lamplight component.
Optionally, Figure 12 is the structural schematic diagram of another earphone control device provided in an embodiment of the present invention.Above-mentioned Earphone control device 10 in the structure basis of earphone control device shown in Fig. 3 10, in the present embodiment further include: with MCU110 phase The liquid crystal display of model LCD12832 can be used for example in the liquid crystal display 160 of connection, the liquid crystal display 160 in the present embodiment (Liquid Crystal Display, referred to as are as follows: LCD), Figure 13 is in the earphone control device that embodiment illustrated in fig. 12 provides A kind of liquid crystal display schematic diagram, the display module of the liquid crystal display 160 is 128X32 dot matrix type LCD MODULE, can be shown each Kind of character and figure, can be directly connected to MCU110, have 8 standard data bus (DB0~DB7 as shown in fig. 13 that), and 5 Control line and power supply line (D/I, R/W, E, CS2 and CS1 as shown in fig. 13 that).
It should be noted that character library and symbolic library are configured in the memory of the liquid crystal display 160 in the present embodiment, such as with What is set is a Chinese word library control integrated circuit (Integrated Circuit, referred to as are as follows: IC), can be supported serially, simultaneously Row communication pattern supports backlight control, can be shown that terminal device can by sending the Unicode (Unicode) of Chinese character To send audio signal by sound channel line, control shows number, letter, Chinese character and some spcial characters on liquid crystal display 160 And figure, such as dot chart, animation figure.For example, it is desired to which liquid crystal display 160 shows " Nubia ", terminal device can pass through MCU110 sends data: " u52aa u6bd4u4e9a " to liquid crystal display 160.In addition, in liquid crystal display 160 shown in Figure 13 " DB0~ DB7 " represents 8 data lines, and " D/I, R/W, E " represent 3 control lines, the tool of other interface functions and functional module in Figure 13 Hold the service manual that may refer to LCD12832 in vivo, does not introduce the detailed usage mode of LCD12832 in the present embodiment one by one. The embodiment of the present invention can also use the LCD or light emitting diode (LED) display screen (Light Emitting Diode of other models Display, referred to as LED display), the embodiment of the present invention does not limit the type and model of liquid crystal display 160, as long as can lead to The control for crossing MCU110 shows corresponding text and content, can be used in the embodiment of the present invention.
Illustrate that MCU110 controls the progress text importing of liquid crystal display 160 in the embodiment of the present invention below by way of some specific examples Concrete mode.
For example, as shown in figure 14, the MCU control of one of the earphone control device provided for embodiment illustrated in fig. 12 The flow chart of liquid crystal display.When the application scenarios of the present embodiment are that user passes through 10 tins of songs of earphone control device, controlled by MCU110 Liquid crystal display 160 processed shows the strategy of the lyrics.
The initiation of communication instruction that S310, MCU receiving terminal apparatus are sent.Initiation of communication instruction in the present embodiment is for example same Sample is set as 0xA.
S320, MCU instruct control to disconnect analog switch according to initiation of communication.
The file data that S330, MCU receiving terminal apparatus are sent.File data in the present embodiment is, for example, the lyrics and song The display mode of word, specifically, terminal device by the lyrics file (such as " * .lrc ") with time shaft encoded with Binary-coded mode is sent to MCU.
S340, MCU return to confirmation message to terminal device.Confirmation message in the present embodiment is used to indicate to terminal device MCU is properly received file data, which is, for example, " OK instruction ".
What S350, MCU receiving terminal apparatus were sent before sending audio signal is played simultaneously instruction.It is same in the present embodiment Step play instruction is for example set as 0x11.
S360, MCU control liquid crystal display by demodulation result and show number of files according to instruction demodulation file data is played simultaneously According to content.It include sweep time point and the time point corresponding lyrics, MCU control to the demodulation of file data in the present embodiment The mode that liquid crystal display processed is shown for example can be for according to the time rolling lyrics.
The sign off instruction that S370, MCU receiving terminal apparatus are sent.Sign off instruction in the present embodiment is for example same Sample is set as 0xF.
S380, MCU instruct control closure analog switch according to sign off.
Again for example, as shown in figure 15, another MCU in earphone control device provided for embodiment illustrated in fig. 12 Control the flow chart of liquid crystal display.When the application scenarios of the present embodiment are that user is received calls by earphone control device 10, pass through MCU110 controls the strategy that liquid crystal display 160 shows the communication information.
The initiation of communication instruction that S410, MCU receiving terminal apparatus are sent.Initiation of communication instruction in the present embodiment is for example same Sample is set as 0xA.
S420, MCU instruct control to disconnect analog switch according to initiation of communication.
The communication information that S430, MCU receiving terminal apparatus are sent.The communication information in the present embodiment is, for example, the connection sent a telegram here The contact information for being people's information or making a phone call, specifically, terminal device is by the data of the contact information of code clerk MCU is sent in a manner of binary-coded.
S440, MCU control liquid crystal display and show the communication information.
The clear screen instruction that S450, MCU receiving terminal apparatus are sent after starting communication.Clear screen in the present embodiment instructs example Such as it is set as 0x12.
S460, MCU remove the communication information of liquid crystal screen display according to clear screen.
The sign off instruction that S470, MCU receiving terminal apparatus are sent.Sign off instruction in the present embodiment is for example same Sample is set as 0xF.
S480, MCU instruct control closure analog switch according to sign off.
The strategy that liquid crystal display 160 shows the lyrics and the communication information, reality on hardware are controlled by MCU110 in above-described embodiment Show and the supply voltages such as MCU110 and liquid crystal display 160 and the higher element of current requirements are added on earphone control device 10, from And joined auxiliary display screen to terminal device, in some special applications scenes, such as user is in the practical earphone audition of bus In pleasure, it will usually which terminal device is placed in pocket, using earphone control device 10 provided in this embodiment without taking out terminal device It checks, only need to see that the content shown on liquid crystal display 160 can very easily check the corresponding information of incoming call connection people, avoid It takes out after phone is seen or connected to mobile phone and inquires whose awkward scene other side is;In addition, when listening to music, terminal device can be with Synchronization is pushed to the lyrics on the liquid crystal display 160 of earphone control device 10, thus the display lyrics rolled, it might even be possible to check short The information such as letter, can also be by the backlight color of liquid crystal display 160 in earphone control device 10 come to certain specific contact persons' Incoming call distinguishes, and more easily identifies which incoming call is important incoming call, junk call when which is sent a telegram here, in ear in the present embodiment The various strategies of scheme and MCU110 control liquid crystal display 160 that liquid crystal display 160 is arranged on machine control device 10 increase earphone The practicability of control device 10, and enhance user experience effect.
It should be noted that the liquid crystal display 160 in the present embodiment is connected with MCU110, the liquid similar with MCU110 Crystalline substance screen 160 is equally used for being powered by the left Mike of earphone socket, is also used to through the right Mike of earphone socket and Zuo Sheng Road/right channel carries out the two-way communication between the liquid crystal display 160 and terminal device, that is to say, that MCU110 in the present embodiment And its power supply and communication of auxiliary device are all based on earphone socket.
It should also be noted that, the display mode of above-mentioned Figure 14 and MCU110 shown in figure 15 control liquid crystal display 160, is two The independent communication protocol flow of kind, 13 and Figure 14's of the unlimited drawing of the present invention executes sequence, usually executes respectively, certain Under special applications scene, such as when receiving incoming call during user is listened to music using earphone 120, can in conjunction with above-mentioned Figure 14 and Communication protocol flow shown in figure 15 before needing to follow and being communicated between MCU110 and terminal device, disconnects analog switch 130, after completing communication, it is closed the rule of analog switch 130.
In the concrete realization, the auxiliary device of MCU110 can also be lamplight component to the embodiment of the present invention, in existing market Luminous earphone have multiple types.For example, initial luminous earphone is all to fill a guide-lighting line in the data line of earphone, this is led A large amount of fluorescent powders are arranged in the periphery of light, and the guide-lighting line in this luminous earphone easily snaps off, and non-uniform light.Example again Such as, it is described in the patent of invention that the number of applying for a patent is 201310594626.5 and a kind of earphone cable is done using transparent light conductive material Lapping, by color LED lamp in wired control box and induction of signal component to earpiece audio transmit signal carry out it is inducing luminous Luminous earphone line, this luminous earphone line specifically rely on internal circuit intercept and capture audio signal, ear is controlled according to signal strength The luminous flicker frequency of machine line and color etc., the luminous earphone since the mode performance for directly acquiring analog signal is unstable, and Manifestation mode is dull, causes shining for earphone cable unstable, thus can not be directly controlled by mobile terminal it is luminous, controlling and Practicability is all lower;In addition, this luminous earphone needs the control box with battery to supply to internal circuit and luminescence unit Electricity, to charge just can be used, and in addition per se with battery, and cause the product for controlling box body larger.
Optionally, Figure 16 is the structural schematic diagram of another earphone control device provided in an embodiment of the present invention.Above-mentioned Earphone control device 10 in the structure basis of earphone control device shown in Fig. 3 10, in the present embodiment further include: with MCU110 phase The lamplight component 170 of connection, which includes the first light 171, the second light 172 and third light 173, above-mentioned One end of first light 171, the second light 172 and third light 173 is connected to the first PWM output of MCU110 correspondingly End, the 2nd PWM output end and the 3rd PWM output end, the other end of the first light 171, the second light 172 and third light 173 It is connected to power supply;MCU110 in the present embodiment is also used to the control instruction of receiving terminal apparatus transmission, demodulates in control instruction Color, and according to demodulation result control lamplight component 170 show corresponding color.
Left Mike in based on the above embodiment by the earphone socket of terminal device is the basis of MCU110 power supply, this reality It applies the lamplight component 170 being connected in example with MCU110 to be equally powered by the left Mike of earphone socket, i.e., earphone controls It is not necessarily to integrated battery in device 10, largely reduces the volume of earphone control device 10, it is easy to carry and use.Separately Outside, since the MCU110 in various embodiments of the present invention is used to carry out by the right Mike of earphone socket and L channel/right channel Two-way communication between MCU110 and terminal device, the control instruction which can be sent by receiving terminal apparatus, example Such as color control instruction, brightness control instruction or customized demonstration directive script, control lamplight component 170 are shown accordingly Color and brightness.Different contact persons are distinguished using different colours in certain application scenarios, such as when incoming call, it is very clear, then example The transformation for carrying out color when music according to musical form is such as carried out, the transformation of rhythm, gradual change of brightness and other effects are flashed.
In the concrete realization, full-color lamp bead can be used in the present embodiment, by red (Red, referred to as are as follows: R), green It is full-color that (Green, referred to as are as follows: G) and three kinds of primary colours of blue (Blue, referred to as are as follows: B), which are encapsulated into this mode in a lamp bead, LED light can be used for example in lamp bead, the lamplight component 170 in the embodiment of the present invention, and specifically, the first light 171 can be LED Red globe lamp, the second light 172 can be LED green light lamp, third light 173 can be LED blue-ray light.In the present embodiment The modulation system of lamplight component 170 can be with are as follows: is realized using MCU110 and carries out PWM, such as Figure 17 to the light of three kinds of colors respectively It is shown, it is the operation principle schematic diagram of another kind MCU in earphone control device provided in an embodiment of the present invention, implements shown in Figure 17 Example is equally using MSP430F single-chip microcontroller as MCU110, and specifically, the first light 171 is connect with the P1.1 pin of MSP430F, Second light 172 is connect with the P1.2 pin of MSP430F, and third light 173 is connect with the P1.3 pin of MSP430F, MSP430F With the connection type of the earphone socket of terminal device, and the tandem circuit component for realizing MCU working method and implementation shown in Fig. 7 Example is identical, in addition, being provided with resistance value between the pin of each light MSP430F is 1K Ω resistance, i.e. resistance 4, resistance 5 and electricity Resistance 6, this 3 resistance are also for the tandem circuit component for realizing that MCU and lamplight component work normally.Designer can pass through TA0, TA1 and TA2 output end of MSP430F is done into corresponding configuration in source code, exports the PWM waveform of needs, in this way, can be with Three kinds of primary lights are projected on same surface, can achieve the effect that additive color mixture.Such as:
Red+green=yellow;
Green+blue=cyan;
Red+blue=magenta;
Red+green+blue=white.
It is available after three primary colours light mixing to be permitted multiple color, for example, pinkish red are as follows: 100% red+0% green+100% is blue;It is yellow Color is 100% red+100% green+0% blue;White is 100% red+100% green+100% blue.If configuring above three light Brightness ratio is different, can synthesize a variety of different colors, multiple combinations can be stored in array, terminal is facilitated to set by designer It is standby to carry out any calling.Figure 18 is the wave of one of the earphone control device that embodiment illustrated in fig. 16 provides aeolight color Shape figure, Figure 19 are the waveform diagram of another aeolight color in the earphone control device that embodiment illustrated in fig. 16 provides, figure The waveform diagram of another aeolight color in the 20 earphone control devices provided for embodiment illustrated in fig. 16.Figure 18 is shown The signal waveform of the three primary colours of magenta light is synthesized, Figure 19 show the signal waveform of the three primary colours of synthesis yellow light, and Figure 20 is shown Synthesize the signal waveform of the three primary colours of white light.It should be noted that the three primary colours light intensity of a variety of colors can be set in designer Ratio, gradual change, the i.e. ratio of the distinct pulse widths of the signal waveform of three primary colours can also be done, pass through the duty ratio control of three kinds of colors Variable processed can also synthesize the brightness of different colours light.Figure 21 is in the earphone control device that embodiment illustrated in fig. 16 provides A kind of MCU carries out the flow chart of light color modulation, specifically includes the following steps:
S510, MCU are referred to by the control that the L channel line or right channel line receiving terminal apparatus of terminal device and MCU are sent It enables.
S520, MCU demodulate control instruction.
S530, MCU carry out PWM to the control instruction after demodulation, to control RGB accounting.
RGB accounting after demodulation is sent to lamplight component by S540, MCU, and control lamplight component shows corresponding color.
Below by way of some specific examples illustrate in the embodiment of the present invention MCU110 control lamplight component 170 carry out color and The concrete mode that brightness is shown, the array in the MCU110 in the present embodiment for example comprising n kind colouring information, each color letter Breath is all associated with unique hexadecimal number, such as magenta is 0x08, yellow 0x09, and white is 0x10.
For example, as shown in figure 22, the MCU control of one of the earphone control device provided for embodiment illustrated in fig. 16 The flow chart of lamplight component.The present embodiment is that the strategy that lamplight component 170 carries out color control is controlled by MCU110, specific to wrap Include following steps:
The initiation of communication instruction that S610, MCU receiving terminal apparatus are sent.Initiation of communication instruction in the present embodiment is for example same Sample is set as 0xA.
S620, MCU instruct control to disconnect analog switch according to initiation of communication.
The color data that S630, MCU receiving terminal apparatus are sent.Color data in the present embodiment for example can be color Code, the color code are sent to MCU in a manner of binary-coded.
S640, MCU return to confirmation message to terminal device.Confirmation message in the present embodiment is used to indicate to terminal device MCU is properly received color data, which is, for example, " OK instruction ".
The sign off instruction that S650, MCU receiving terminal apparatus are sent.Sign off instruction in the present embodiment is for example same Sample is set as 0xF.
S660, MCU instruct control closure analog switch according to sign off.
S670, MCU demodulate color data.MCU in the present embodiment can be by the respective function of execution internal code, will The value of the accounting of the tri- kinds of primary colours of RGB stored in array associated by color data is assigned to PWM modulation function.
S680, MCU control lamplight component according to demodulation result and show corresponding color.
Further, in this embodiment MCU110 be also used to by the first PWM output end export the first pulse signal Duty ratio control the first light 171 brightness, pass through the 2nd PWM output end export the second pulse signal duty ratio control The duty ratio of the brightness of second light 172, the third pulse signal exported by the 3rd PWM output end controls third light 173 Brightness.Specifically, it is above-mentioned 3 PWM output ends that pin P1.1, P1.2 and P1.3 in MSP430F single-chip microcontroller, which can be set, The size of the duty ratio (the ratio between high level lasting time and the clock cycle of PWM) of the pulse signal of each pin output determines The duty ratio of the brightness of each light, the pulse signal can change the width of pulse signal by the process control of terminal device, It is equivalent to change duty ratio, it can adjust the brightness of light, normally, arteries and veins by way of changing pulse signal width The duty ratio for rushing signal is bigger, and average conduction time is longer, and corresponding light is brighter.
Embodiment illustrated in fig. 22 in the concrete realization, controls lamplight component 170 by MCU110 and carries out color and brightness control In the strategy of system, the color data that MCU110 is received in S630 can be the customized demonstration script of designer, usually with when Between axis form record above three light display operation, such as it is customized demonstration script format it is as follows:
[0:1:18] 0x10, duty=50,
The meaning of above-mentioned script are as follows: 1 divides 18 seconds at 0, controls lamplight component 170 with the brightness degree that duty ratio is 50% It is displayed in white.It should be noted that designer is also based on the configuration that time shaft carries out any manifestation mode, can by Setting encapsulates analytical function to read the profile information in MCU110, and key message is assigned to corresponding control variable i.e. Can, the step of specific implementation is to embodiment illustrated in fig. 21, is similar, therefore details are not described herein.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

1. a kind of earphone control device characterized by comprising micro-control unit MCU, earphone and analog switch;
In the earphone socket that the earphone control device passes through headset plug access terminal equipment, pass through a left side for the earphone socket Mike is powered the MCU, carries out the MCU and institute by the right Mike of the earphone socket and L channel/right channel State the two-way communication between terminal device;
The analog switch is arranged on L channel/right channel sound channel line of the earphone, the universal input output of the MCU GPIO port is connect with the switch control unit of the analog switch, and the switch control unit in the terminal for setting respectively It is standby communicated with the MCU before and sign off after according to the GPIO port send switching signal disconnect and closure described in Analog switch.
2. earphone control device according to claim 1, which is characterized in that the input terminal of the analog switch and the end The one of sound channel line connection of L channel/right channel of end equipment output end, the output end of the analog switch and the ear Corresponding sound channel line is connected in machine, and the switch that the analog switch is used to be received according to the switch control unit is believed The sound channel line of terminal device and the earphone described in number on or off.
3. earphone control device according to claim 2, which is characterized in that the MCU be used for the terminal device with Before the MCU is communicated, receive the initiation of communication instruction that the terminal device is sent, and according to the initiation of communication instruct to The switch control unit, which is sent, disconnects switching signal;
The MCU is also used to after the sign off of the terminal device and the MCU, receives the logical of the terminal device transmission Believe END instruction, and is instructed according to the sign off to the switch control unit and send closure switch signal.
4. earphone control device according to claim 1, which is characterized in that further include: it is defeated with a comparator of the MCU Enter first resistor and second resistance that end is connected in parallel, wherein one end of one end of the first resistor and the second resistance It is connected respectively in the earphone socket, the other end of the first resistor connects power supply, another termination of the second resistance Ground;
Supply voltage is divided by the first resistor and the second resistance, so that the comparator of the MCU inputs End captures the audio signal of the terminal device output.
5. earphone control device according to any one of claims 1 to 4, which is characterized in that further include: with the MCU The liquid crystal display being connected, the MCU are also used to receive the initiation of communication instruction that the terminal device is sent, and according to the communication Initial order control disconnects the analog switch;It is also used to receive the file data that the terminal device is sent, and to the end End equipment returns to confirmation message;Be also used to that receiving terminal apparatus sends before sending audio signal is played simultaneously instruction, and root The instruction demodulation file data is played simultaneously according to described, the liquid crystal display is controlled by demodulation result and shows the file data Content;It is also used to receive the sign off instruction that the terminal device is sent, and is closed according to sign off instruction control Close the analog switch;Wherein, the liquid crystal display passes through the ear for being powered by the left Mike of the earphone socket The right Mike of machine transplanting of rice seat and L channel/right channel carry out the two-way communication between the liquid crystal display and the terminal device.
6. earphone control device according to claim 5, which is characterized in that the MCU is also used to receive the terminal and sets The initiation of communication instruction that preparation is sent, and instruct control to disconnect the analog switch according to the initiation of communication;It is also used to receive institute The communication information of terminal device transmission is stated, and controls the liquid crystal display and shows the communication information;It is also used to receive the terminal The clear screen instruction that equipment is sent after open communication, and instruct control to remove the logical of the liquid crystal screen display according to the clear screen Letter information;It is also used to receive the sign off instruction that the terminal device is sent, and is closed according to sign off instruction control Close the analog switch.
7. earphone control device according to claim 5, which is characterized in that be configured with word in the memory of the liquid crystal display Library and symbolic library.
8. earphone control device according to any one of claims 1 to 4, which is characterized in that further include: with the MCU The lamplight component being connected;
The lamplight component includes the first light, the second light and third light, first light, second light and institute State third light one end be connected to correspondingly the MCU the first pulse width modulation (PWM) output end, the 2nd PWM it is defeated The other end of outlet and the 3rd PWM output end, first light, second light and the third light is connected to electricity Source;
The MCU is also used to receive the control instruction that the terminal device is sent, and demodulates the color in the control instruction, and root The lamplight component, which is controlled, according to demodulation result shows corresponding color.
9. earphone control device according to claim 8, which is characterized in that the MCU is also used to receive the terminal and sets The initiation of communication instruction that preparation is sent, and instruct control to disconnect the analog switch according to the initiation of communication;It is also used to receive institute The color data of terminal device transmission is stated, and returns to confirmation message to the terminal device;It is also used to receiving terminal apparatus transmission Sign off instruction, and instruct control to be closed the analog switch according to the sign off;It is also used to demodulate the color Data control the lamplight component according to demodulation result and show corresponding color.
10. earphone control device according to claim 8, which is characterized in that the MCU is also used to through first arteries and veins The duty ratio for rushing the first pulse signal of width modulated PWM output end output controls the brightness of first light, by described The duty ratio of second pulse signal of the 2nd PWM output end output controls the brightness of second light, passes through the 3rd PWM The duty ratio of the third pulse signal of output end output controls the brightness of the third light.
CN201610042033.1A 2016-01-21 2016-01-21 A kind of earphone control device Active CN105516851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610042033.1A CN105516851B (en) 2016-01-21 2016-01-21 A kind of earphone control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610042033.1A CN105516851B (en) 2016-01-21 2016-01-21 A kind of earphone control device

Publications (2)

Publication Number Publication Date
CN105516851A CN105516851A (en) 2016-04-20
CN105516851B true CN105516851B (en) 2019-03-08

Family

ID=55724433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610042033.1A Active CN105516851B (en) 2016-01-21 2016-01-21 A kind of earphone control device

Country Status (1)

Country Link
CN (1) CN105516851B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210987A (en) * 2016-07-29 2016-12-07 努比亚技术有限公司 A kind of mobile terminal, noise reducing apparatus and noise-reduction method thereof
CN107374608A (en) * 2017-07-10 2017-11-24 上海理工大学 Music player devices shutoff device based on one-chip microcomputer photoelectric sensor
CN108966085B (en) * 2018-06-28 2021-03-26 努比亚技术有限公司 Self-adaptive audio circuit and mobile terminal
CN111093134B (en) * 2019-12-23 2022-01-11 Oppo广东移动通信有限公司 Earphone control device, earphone control method and earphone

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2653799Y (en) * 2003-08-05 2004-11-03 杨柯 Wire control earphone for mobile phone
CN102438378A (en) * 2011-12-20 2012-05-02 江苏宏微科技有限公司 LED (Light Emitting Diode) illumination intelligent control system
CN103607680A (en) * 2013-11-13 2014-02-26 北京旋极信息技术股份有限公司 An audio frequency apparatus
CN105187631A (en) * 2015-07-31 2015-12-23 是联(北京)科技有限公司 Intelligent terminal key device based on earphone interface and control method of intelligent terminal key device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101694424B1 (en) * 2010-09-13 2017-01-09 삼성전자주식회사 Apparatus and method for reducing a tdma noise of a portable terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2653799Y (en) * 2003-08-05 2004-11-03 杨柯 Wire control earphone for mobile phone
CN102438378A (en) * 2011-12-20 2012-05-02 江苏宏微科技有限公司 LED (Light Emitting Diode) illumination intelligent control system
CN103607680A (en) * 2013-11-13 2014-02-26 北京旋极信息技术股份有限公司 An audio frequency apparatus
CN105187631A (en) * 2015-07-31 2015-12-23 是联(北京)科技有限公司 Intelligent terminal key device based on earphone interface and control method of intelligent terminal key device

Also Published As

Publication number Publication date
CN105516851A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105516851B (en) A kind of earphone control device
CN100380311C (en) Earphone jack for eliminating power noise in mobile communication terminal, and operating method thereof
CN101867516B (en) High data rate interface with improved link synchronization
CN105206185A (en) Control method for breathing lamp of mobile terminal and mobile terminal
CN110191461A (en) Data transfer control method, device and electronic equipment
US7774021B2 (en) Communication terminal apparatus
CN104516845A (en) Function terminal and intelligent terminal data interaction device
CN102801615A (en) High data rate interface
WO2019217276A1 (en) Mobile device cover for use with a host mobile device
CN105321515A (en) Vehicle-borne application control method of mobile terminal, device and terminal
CN112425145A (en) System and method for controlling a mobile device case
CN110234158A (en) Radio circuit, electronic equipment and method for transmitting signals
CN111666075B (en) Multi-device interaction method and system
CN109101447A (en) A kind of method and terminal that OTG function executes parallel with charge function
CN107147757A (en) A kind of terminal and control method
CN108182912A (en) Adjust method, apparatus, equipment and the storage medium of backlight illumination
CN203193782U (en) Micro projector having HDMI and MHL double interfaces and wireless interface
CN106896709A (en) High frequency time interleaved Digital time converter DTC
CN106555994A (en) The lighting device and means of illumination of terminal device interface
CN110299927A (en) Radio circuit, electronic equipment and radio circuit control method
US20150189061A1 (en) Dummy terminal and main body
CN110233632B (en) Signal transmitting method, radio frequency circuit and electronic equipment
CN105807882B (en) Adaptive charging method and intelligent terminal based on fingerprint
CN106782305A (en) A kind of display methods and terminal
CN105744648A (en) Mobile terminal and communication method

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
TR01 Transfer of patent right

Effective date of registration: 20230609

Address after: No. 22, Longxing Street, Donghuan Street, Panyu District, Guangzhou, Guangdong 510000

Patentee after: Guangzhou Huahui Innovation Technology Co.,Ltd.

Address before: 518000 6-8 / F, 10-11 / F, 6 / F, 6-10 / F, C zone, Han's innovation building, No. 9018, Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: NUBIA TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right