CN107124487A - A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven - Google Patents

A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven Download PDF

Info

Publication number
CN107124487A
CN107124487A CN201710287829.8A CN201710287829A CN107124487A CN 107124487 A CN107124487 A CN 107124487A CN 201710287829 A CN201710287829 A CN 201710287829A CN 107124487 A CN107124487 A CN 107124487A
Authority
CN
China
Prior art keywords
mobile terminal
bonnet
dimensional sound
control
player
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710287829.8A
Other languages
Chinese (zh)
Inventor
吴超文
朱晓璞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710287829.8A priority Critical patent/CN107124487A/en
Publication of CN107124487A publication Critical patent/CN107124487A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6016Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention discloses a kind of mobile terminal bonnet, the control method of mobile terminal and its audio driven, the bonnet of the mobile terminal includes three-dimensional sound player, bonnet verification interface for detection interface to be contacted and provided for mobile terminal with mobile terminal, the voice data coffret electrically connected with three-dimensional sound player, the control interface electrically connected with the three-dimensional sound player, and power supply interface, three-dimensional sound function can be achieved by changing bonnet, improve audio quality, and add stereo sound effect fruit, solve mobile terminal in the prior art causes audio poor because structure is limited, the problem of stereo sound effect fruit can not be formed.

Description

A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven
Technical field
The present invention relates to intelligent mobile terminal field, more particularly to a kind of mobile terminal bonnet, mobile terminal and its audio The control method of driving.
Background technology
Currently, smart mobile phone gradually instead of Mp3 music players, become the major way that people listen music, And the music effect of mobile phone still has much room for improvement.The characteristics of frivolous and compact because mobile phone has, mobile phone generally only configures one Loudspeaker, or because compact conformation has no idea to pull open two loudspeaker distances, thus can not be sharp between two loudspeakers With the effect of the principle formation left-right stereo of intensity difference.Therefore sound being exactly a sound source in our ears, it is difficult to realize Stereosonic effect.
Therefore, prior art has yet to be improved and developed.
The content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of mobile terminal bonnet, mobile terminal And its control method of audio driven, it is intended to solve mobile terminal in the prior art causes sound because structure is limited Effect is poor, the problem of can not form stereo sound effect fruit.
Technical scheme is as follows:
A kind of bonnet of mobile terminal, wherein, the bonnet includes:
Three-dimensional sound player;
Bonnet verification interface, for being contacted with mobile terminal and providing detection interface for mobile terminal;
Voice data coffret, is electrically connected with three-dimensional sound player, for transmitting voice data for the three-dimensional sound player;
Control interface, is electrically connected with the three-dimensional sound player, for for the three-dimensional sound player transmission of control signals;
Power supply interface, is electrically connected with the three-dimensional sound player, for being powered for the three-dimensional sound player.
A kind of bonnet of mobile terminal, wherein, the bonnet verification interface, voice data coffret, control interface and Power supply interface is using POGO Pin designs.
A kind of mobile terminal, wherein, the mobile terminal includes bonnet as described above.
A kind of mobile terminal, wherein, the mobile terminal also includes:
Audio process, for bonnet it is in place when, audio file is processed into dual channel data, and bonnet it is not in place when, will Audio file is processed into mono data;
Bonnet detection module, for detecting whether bonnet is in place by the bonnet verification interface;
Monophonic player;
Controller, the keying for controlling monophonic player and three-dimensional sound player.
A kind of control method of audio frequency of mobile terminal driving, wherein, including step:
Whether A, the bonnet state of detection mobile terminal are changed, and step B is then entered when being, otherwise terminates flow;
B, judge whether the bonnet of mobile terminal is in place, if YES then performing step C, otherwise perform step D;
C, the three-dimensional sound player of control are opened and enter step E;
D, control monophonic player are opened and enter step E;
E, end flow.
A kind of control method of audio frequency of mobile terminal driving, wherein, the step C also includes:Detect monophonic player Whether open, then control monophonic player to close when being, otherwise terminate flow.
A kind of control method of audio frequency of mobile terminal driving, wherein, the step C also includes:Setting audio is two-channel Output;
The step D also includes:Audio is set to be exported for monophonic.
A kind of control method of audio frequency of mobile terminal driving, wherein, the step D also includes:The three-dimensional sound player of detection Drive thread whether run, then control the drive thread of three-dimensional sound player to close when being.
A kind of control method of audio frequency of mobile terminal driving, wherein, the step B is specifically included:
Whether B1, the in real time bonnet of monitoring mobile terminal are in place, global Flag then are labeled as into 1 when being, otherwise labeled as 0;
B2, the detection global Flag states, then enter step C, otherwise into step D when Flag is 1.
A kind of control method of audio frequency of mobile terminal driving, wherein, step is also included before the step E:
Refresh voice-frequency channel.
Beneficial effect:The control method of a kind of mobile terminal bonnet, mobile terminal and its audio driven that the present invention is provided, The bonnet of the mobile terminal has three-dimensional sound effect, and three-dimensional sound function can be achieved by changing bonnet, audio quality is improved, And add stereo sound effect fruit, solve in the prior art mobile terminal because structure limitation causes that audio is poor, can not form vertical The problem of body audio fruit.
Brief description of the drawings
Fig. 1 is the structured flowchart of the bonnet preferred embodiment of mobile terminal of the present invention.
Fig. 2 is the structured flowchart of the preferred embodiment of mobile terminal of the present invention.
Fig. 3 is the control method preferred embodiment flow chart of the audio driven of mobile terminal of the present invention.
Embodiment
The present invention provides the control method of a kind of mobile terminal bonnet, mobile terminal and its audio driven, to make the present invention Purpose, technical scheme and effect it is clearer, clear and definite, the present invention is described in more detail below.It should be appreciated that this place The specific embodiment of description only to explain the present invention, is not intended to limit the present invention.
The bonnet 100 for the mobile terminal that the present invention is provided, as shown in figure 1, including:
Three-dimensional sound player 110;
Bonnet verification interface 120, for being contacted with mobile terminal and providing detection interface for mobile terminal;
Voice data coffret 130, is electrically connected with three-dimensional sound player, for transmitting audio number for the three-dimensional sound player According to;
Control interface 140, is electrically connected with the three-dimensional sound player, for for the three-dimensional sound player transmission of control signals;
Power supply interface 150, is electrically connected with the three-dimensional sound player, for being powered for the three-dimensional sound player.
It is preferred that can also cover setting one in the rear connects signalling means, for when bonnet is successfully accessed mobile terminal, Send and be successfully accessed signal to remind user.
A kind of mobile terminal, as shown in Fig. 2 wherein, the mobile terminal includes bonnet 100 as described above.
A kind of mobile terminal, wherein, the mobile terminal also includes:
Audio process 200, for bonnet it is in place when, audio file is processed into dual channel data, and bonnet it is not in place when, Audio file is processed into mono data;
Bonnet detection module 300, for detecting whether bonnet is in place by the bonnet verification interface;
Monophonic player 400, namely mobile terminal is original, ventional loudspeakers;
Controller 500, the keying for controlling monophonic player and three-dimensional sound player.
It is preferred that one can be set to monitor bonnet access state in real time in the mobile terminal used cooperatively with the bonnet Signal receiver, when bonnet access state changes, system can send Intent broadcast, and signal receiver can intercept and capture The broadcast Intent of system, and the result is sent to audio process.By the letter for setting monitoring bonnet access state in real time The change events of bonnet access state can be responded, switching audio output equipment by number receiver in time.
It is preferred that the mobile terminal also includes a status indication module, such as overall situation Flag, for whether marking bonnet In place, using the foundation as each module progress parameter setting.
Preferably, the interface of bonnet and terminal body is designed using POGO Pin, by monitoring block Pin pin in real time Level changes, the access state of the vertical bonnet of monitoring;When level changes, that is, send Intent broadcast.
Specifically, the bonnet verification interface, voice data coffret, control interface and power supply interface use POGO Pin is designed.
A kind of control method of audio frequency of mobile terminal driving, as shown in figure 3, including step:
Whether S1, the bonnet state of detection mobile terminal are changed, and step S2 is then entered when being, otherwise terminates flow;
S2, judge whether the bonnet of mobile terminal is in place, if YES then performing step S3, otherwise perform step S4;
S3, the three-dimensional sound player of control are opened and enter step S5;
S4, control monophonic player are opened and enter step S5;
S5, end flow.
In the present invention, first whether the state of monitoring bonnet changes in real time, when changing, then whether detects bonnet In place, and by system kernel recognize and judge that bonnet is to be in extraction state in access state, to lid after mark The global Flag marks of state are modified.When bonnet is in extraction state, monophonic player is called to carry out audio file Output;When bonnet is in access state, three-dimensional sound player is called to export audio file.
Wherein, the step S2 is specifically included:
S21, monitor mobile terminal bonnet it is whether in place, when being then by global Flag be labeled as 1, otherwise labeled as 0;
S22, the detection global Flag states, then enter step S3, otherwise into step S4 when Flag is 1.
In concrete operations, overall situation Flag is set according to the access state of three-dimensional sound player, for example, when three-dimensional sound is played When device is extracted, global Flag=0 is set, when three-dimensional sound player is accessed, global Flag=1 is set.Global Flag can be acted on Into whole program, program can be responded to global Flag, without repeatedly judging the access state of bonnet, make journey Sequence is simpler.
In the step S3, the drive thread of three-dimensional sound player is called by operating system nucleus Kernel, driving is three-dimensional Sound player exports audio signal, and switched by the IC of the three-dimensional sound player of 12C Interface Controllers, play three-dimensional sound Device is in running order.
Preferably, whether before calling three-dimensional sound player to work, can determine whether global Flag is 1, if 1 literary by audio Track in part changes into two-channel and exported, and that is to say that setting audio exports for two-channel.
Meanwhile, in the step S3, whether detection monophonic player is opened, and then controls monophonic player to close when being Close, otherwise terminate flow.In concrete operations, after bonnet is accessed, and the drive thread of monophonic player is still likely to be at During running status, while if driving three-dimensional sound player, thread conflict can be caused.The drive thread of loudspeaker is terminated in time, The problem of thread conflicts can be avoided, while releasing memory source in time.Can be by using preferably, terminating thread Interrupt method is realized.
In the step S4, the drive thread of monophonic player is called by operating system nucleus Kernel, monophone is driven Road player exports audio signal, and by the working condition of power management integrated circuit PMIC control monophonic players, make sound Road player is in the state of work.
Preferably, whether before calling sound channel player to work, can determine whether global Flag is 0, if 0 by audio file In track change into monophonic and export, that is, set audio be monophonic output,
Meanwhile, in the step S4, whether the drive thread of the three-dimensional sound player of detection is run, and then controls three-dimensional sound to broadcast when being The drive thread for putting device is closed.When three-dimensional sound bonnet is pulled out, and the drive thread of three-dimensional sound player is still in running status When, now if necessary to output audio, it is possible to because hardware is not present and causes audio to play failure;It is also possible to due to driving The thread of dynamic solid sound player and monophonic player exists simultaneously, and causes thread conflict.By terminating three-dimensional sound in time The drive thread of module, can avoid the problem of thread mistake, or thread conflict, while can releasing memory resource in time.
Also include step before the step S5:Refresh voice-frequency channel.
In concrete operations, after thread is terminated, voice-frequency channel is refreshed again, the system changed can be made Setting comes into force, and eliminates the problem of the state caused by time interval is inconsistent.
In summary, the control method of a kind of mobile terminal bonnet, mobile terminal and its audio driven that the present invention is provided, The bonnet of the mobile terminal has three-dimensional sound effect, and three-dimensional sound function can be achieved by changing bonnet, audio quality is improved, And add stereo sound effect fruit, solve in the prior art mobile terminal because structure limitation causes that audio is poor, can not form vertical The problem of body audio fruit.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention Protect scope.

Claims (10)

1. a kind of bonnet of mobile terminal, it is characterised in that the bonnet includes:
Three-dimensional sound player;
Bonnet verification interface, for being contacted with mobile terminal and providing detection interface for mobile terminal;
Voice data coffret, is electrically connected with three-dimensional sound player, for transmitting voice data for the three-dimensional sound player;
Control interface, is electrically connected with the three-dimensional sound player, for for the three-dimensional sound player transmission of control signals;
Power supply interface, is electrically connected with the three-dimensional sound player, for being powered for the three-dimensional sound player.
2. the bonnet of mobile terminal according to claim 1, it is characterised in that the bonnet verification interface, voice data Coffret, control interface and power supply interface are using POGO Pin designs.
3. a kind of mobile terminal, it is characterised in that the mobile terminal includes bonnet as described in claim 1.
4. mobile terminal according to claim 3, it is characterised in that the mobile terminal also includes:
Audio process, for bonnet it is in place when, audio file is processed into dual channel data, and bonnet it is not in place when, will Audio file is processed into mono data;
Bonnet detection module, for detecting whether bonnet is in place by the bonnet verification interface;
Monophonic player;
Controller, the keying for controlling monophonic player and three-dimensional sound player.
5. a kind of control method of audio frequency of mobile terminal driving, it is characterised in that including step:
Whether A, the bonnet state of detection mobile terminal are changed, and step B is then entered when being, otherwise terminates flow;
B, judge whether the bonnet of mobile terminal is in place, if YES then performing step C, otherwise perform step D;
C, the three-dimensional sound player of control are opened and enter step E;
D, control monophonic player are opened and enter step E;
E, end flow.
6. the control method of audio frequency of mobile terminal driving according to claim 5, it is characterised in that the step C is also wrapped Include:Whether detection monophonic player is opened, and then controls monophonic player to close when being, otherwise terminates flow.
7. the control method of audio frequency of mobile terminal driving according to claim 6, it is characterised in that the step C is also wrapped Include:Audio is set to be exported for two-channel;
The step D also includes:Audio is set to be exported for monophonic.
8. the control method of audio frequency of mobile terminal driving according to claim 5, it is characterised in that the step D is also wrapped Include:Whether the drive thread of the three-dimensional sound player of detection is run, and then controls the drive thread of three-dimensional sound player to close when being.
9. the control method of audio frequency of mobile terminal driving according to claim 5, it is characterised in that the step B is specific Including:
Whether B1, the in real time bonnet of monitoring mobile terminal are in place, global Flag then are labeled as into 1 when being, otherwise labeled as 0;
B2, the detection global Flag states, then enter step C, otherwise into step D when global Flag is 1.
10. the control method of audio frequency of mobile terminal driving according to claim 9, it is characterised in that before the step E also Including step:Refresh voice-frequency channel.
CN201710287829.8A 2017-04-27 2017-04-27 A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven Pending CN107124487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710287829.8A CN107124487A (en) 2017-04-27 2017-04-27 A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710287829.8A CN107124487A (en) 2017-04-27 2017-04-27 A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven

Publications (1)

Publication Number Publication Date
CN107124487A true CN107124487A (en) 2017-09-01

Family

ID=59725509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710287829.8A Pending CN107124487A (en) 2017-04-27 2017-04-27 A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven

Country Status (1)

Country Link
CN (1) CN107124487A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (en) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 Wireless terminal and method for implementing multi-channel multiplexing
JP3161639U (en) * 2010-05-25 2010-08-05 優子 山▲崎▼ Accessories for mobile straps
CN202535410U (en) * 2012-02-10 2012-11-14 陈仁泉 Cell phone protecting shell equipped with sound device
CN202841239U (en) * 2012-09-13 2013-03-27 东莞宇龙通信科技有限公司 Back cover of cell phone
CN103327140A (en) * 2012-03-23 2013-09-25 林卓毅 Mobile communication device with replaceable back cover
CN105974998A (en) * 2015-03-11 2016-09-28 三星电子株式会社 Electronic device, operation method thereof, and recording medium
CN106210312A (en) * 2016-07-11 2016-12-07 深圳天珑无线科技有限公司 A kind of played in stereo method based on mobile terminal, mobile terminal and system
CN106375904A (en) * 2016-11-04 2017-02-01 惠州Tcl移动通信有限公司 Audio conversion stereo device and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (en) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 Wireless terminal and method for implementing multi-channel multiplexing
JP3161639U (en) * 2010-05-25 2010-08-05 優子 山▲崎▼ Accessories for mobile straps
CN202535410U (en) * 2012-02-10 2012-11-14 陈仁泉 Cell phone protecting shell equipped with sound device
CN103327140A (en) * 2012-03-23 2013-09-25 林卓毅 Mobile communication device with replaceable back cover
CN202841239U (en) * 2012-09-13 2013-03-27 东莞宇龙通信科技有限公司 Back cover of cell phone
CN105974998A (en) * 2015-03-11 2016-09-28 三星电子株式会社 Electronic device, operation method thereof, and recording medium
CN106210312A (en) * 2016-07-11 2016-12-07 深圳天珑无线科技有限公司 A kind of played in stereo method based on mobile terminal, mobile terminal and system
CN106375904A (en) * 2016-11-04 2017-02-01 惠州Tcl移动通信有限公司 Audio conversion stereo device and method

Similar Documents

Publication Publication Date Title
CN104540071B (en) The communication handover method and device of intelligent sound box
CN104158944A (en) Low-cost interconnection system of mobile phone and vehicle machine
CN106208212A (en) Terminal unit charge control method, device and terminal unit
CN106131723A (en) The control method of a kind of earphone, control device and earphone
CN207835723U (en) Wireless headset, charging box and charging system
CN109743654A (en) A kind of bluetooth headset major-minor ear switching method, device, equipment and medium
CN105487899A (en) Headphone wearing state reporting method and system and headphone
CN104267924A (en) Mobile terminal and audio processing method thereof
CN102623041A (en) Music player and method for automatically adjusting audio output of music player
CN110446192A (en) The method of subordinate earphone and audiogenic device pairing line
CN106851488A (en) The control method of audio output, device and circuit
CN107864415B (en) Speaker and audio frequency apparatus share the control method and device of microphone
CN103167155A (en) System and method for achieving control of music player of mobile phone based on range sensor
CN105373371A (en) Method and system for controlling volume of windows equipment through browser
CN107018465B (en) The gapless way of recording suitable for Android system
CN108124213A (en) A kind of method of adjustment, device and the electronic equipment of earphone music
CN204616057U (en) Sound box system
CN107124487A (en) A kind of control method of mobile terminal bonnet, mobile terminal and its audio driven
WO2020087750A1 (en) Earphone box interaction control method and device, earphone box, and storage medium
CN104883644A (en) Information processing method and an electronic device
CN104902382A (en) Loudspeaker box system and using method thereof
CN106603755B (en) A kind of mobile terminal and the data processing method based on mobile terminal
CN106162489A (en) A kind of earphone condition detection method and terminal
CN204616058U (en) A kind of sound box system
CN202750221U (en) External audio broadcasting device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination