CN105791515B - A kind of terminal device screen state control method and terminal device - Google Patents

A kind of terminal device screen state control method and terminal device Download PDF

Info

Publication number
CN105791515B
CN105791515B CN201410810761.3A CN201410810761A CN105791515B CN 105791515 B CN105791515 B CN 105791515B CN 201410810761 A CN201410810761 A CN 201410810761A CN 105791515 B CN105791515 B CN 105791515B
Authority
CN
China
Prior art keywords
filter
sef
screen
terminal device
adapting
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
CN201410810761.3A
Other languages
Chinese (zh)
Other versions
CN105791515A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201410810761.3A priority Critical patent/CN105791515B/en
Publication of CN105791515A publication Critical patent/CN105791515A/en
Application granted granted Critical
Publication of CN105791515B publication Critical patent/CN105791515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the present invention provides a kind of terminal device screen state control method and terminal device, is related to field of terminal equipment, solves because the installation of the range sensor of terminal device is to the left or to the right can not accurately to extinguish screen, cause user's false triggering the problem of.The specific scheme is that when terminal device carries out voice communication, data processor obtains the initial filter coefficients of sef-adapting filter and acquires the first audio signal that microphone obtains and the second audio signal that receiver is exported in synchronization, according to the current filter factor of the first audio signal and the second audio signal and sef-adapting filter, sef-adapting filter currently updated filter factor is obtained using adaptive filter algorithm, according to the current updated filter factor of the initial filter coefficients of sef-adapting filter and sef-adapting filter, whether meet predetermined condition at a distance from determining face currently between device screen, meet predetermined condition and then control device screen and goes out screen.The present invention is gone out screen for terminal device.

Description

A kind of terminal device screen state control method and terminal device
Technical field
The present invention relates to field of terminal equipment more particularly to a kind of terminal device screen state control method and terminal to set It is standby.
Background technique
With the development of terminal technology, existing terminal device realizes that the mode of operation is more and more general using capacitance touch screen And and in order to easy to operate, terminal device is also in the trend development towards screen enlarging.However, large screen bring it is easy to operate Meanwhile be also easier to cause user due to accidentally touch screen curtain caused by false triggering.Therefore, how to prevent caused by missing touch screen curtain because of user False triggering become the focus of people's research.It takes the mobile phone as an example, needs close to ear to use mobile phone at this time when user is in call Family can't need to check mobile phone screen, if screen is lighted and may will cause false triggering (such as face's touching touch screen causes Hang up the telephone), therefore terminal device can extinguish screen in user's communication, to prevent the generation of false triggering.
In the prior art, terminal device generallys use range sensor to realize the automatic distinguishing screen in user's communication Curtain.Specifically, existing terminal device is equipped with specific infrared-emitting diode and infrared receiver sensor near earpiece, When user's communication, the feux rouges that infrared-emitting diode issues can be reflected back infrared receiver sensor by face, and then terminal is set Standby to perceive user and be busy now, control equipment is gone out screen.
But inventors have found that the distance in existing terminal device passes due to production cost and product layout etc. Sensor is often mounted on position to the left or to the right right above screen.And user is in communication process, it may appear that according to call ring The case where variation switching right and left hand in border, which results in no matter range sensor earpiece which side all it is possible that away from Increase from sensor to facial dimension, can not accurately extinguish screen so as to cause terminal device, cause the false triggering of user, Influence the user experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of terminal device screen state control method and terminal device, solves existing skill Screen can not accurately be extinguished because the installation of the range sensor of terminal device is to the left or to the right in art, cause asking for user's false triggering Topic.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of terminal device screen state control method, which is characterized in that it is applied to terminal device, The terminal device includes device screen, data processor, microphone and receiver, includes adaptive filter in the data processor Wave device, which comprises
When the terminal device carries out voice communication, the data processor obtains the initial of the sef-adapting filter Filter factor;
Acquire the first audio signal that the microphone obtains and the second sound that the receiver is exported in synchronization Frequency signal;
According to the current filter factor of first audio signal and second audio signal and sef-adapting filter, It is updated using the adaptive filter algorithm filter factor current to the sef-adapting filter, obtains the adaptive-filtering The current updated filter factor of device;
According to the currently updated filtering of the initial filter coefficients of the sef-adapting filter and the sef-adapting filter Coefficient, determine face currently between the device screen at a distance from whether meet predetermined condition, if meeting the predetermined condition, The device screen is controlled to go out screen.
Optionally, the initial filter coefficients are that the terminal device starts to carry out adaptive-filtering when voice communication The corresponding filter factor of device;Alternatively, the initial filter coefficients be the terminal device start carry out voice communication after to described Corresponding filter factor after the sef-adapting filter is stablized for the first time when the filter factor of sef-adapting filter is updated; The adaptive filter algorithm includes least-mean-square error algorithm or least square method.
Optionally, described current according to first audio signal and second audio signal and sef-adapting filter Filter factor, be updated using the adaptive filter algorithm filter factor current to the sef-adapting filter, obtain institute Stating sef-adapting filter, currently updated filter factor specifically includes:
Second audio signal is filtered using the sef-adapting filter, obtains echo cancelled;
First audio signal is subtracted into the echo cancelled, obtains error output signal;
According to the current filter factor of the error output signal and the sef-adapting filter, calculated using adaptive-filtering Method is updated the filter factor of the sef-adapting filter, calculates the sef-adapting filter currently updated filtering Coefficient.
Optionally, it is described according to the initial filter coefficients of the sef-adapting filter and the sef-adapting filter currently more Filter factor after new, determine face currently between the device screen at a distance from whether meet predetermined condition, if described in meeting Predetermined condition then controls the device screen screen that goes out and specifically includes:
By the current updated filtering system of the initial filter coefficients of the sef-adapting filter and the sef-adapting filter Number is compared, and determines the corresponding adaptive-filtering coefficient entry of the maximum filter factor of difference;
According to distance calculation formula and the corresponding adaptive-filtering coefficient item number of the maximum filter factor of the difference, calculate Out face currently between the device screen at a distance from;
When the face currently between the device screen at a distance from be less than or equal to the first preset threshold be more than or equal to second When preset threshold, then controls the device screen and go out screen.
Optionally, the distance calculation formula are as follows:
Wherein, the L be face currently between the device screen at a distance from, the K be the difference it is maximum adaptive Filter factor entry value is answered, the V is the speed of sound transmission, and the f is used by data processor acquisition audio signal Sample frequency.
Second aspect, provides a kind of terminal device, and the terminal device includes device screen, data processor, microphone And receiver, it include sef-adapting filter, the data processor in the data processor further include:
Acquiring unit, for obtaining the initial of the sef-adapting filter when the terminal device carries out voice communication Filter factor;
Acquisition unit, the first audio signal and the receiver for acquiring the microphone acquisition are in synchronization Second audio signal of output;
Updating unit, for being worked as according to first audio signal and second audio signal and sef-adapting filter Preceding filter factor is updated using the adaptive filter algorithm filter factor current to the sef-adapting filter, is obtained The current updated filter factor of the sef-adapting filter;
Control unit, for current according to the initial filter coefficients of the sef-adapting filter and the sef-adapting filter Updated filter factor, determine face currently between the device screen at a distance from whether meet predetermined condition, if meeting institute Predetermined condition is stated, then controls the device screen and goes out screen.
Optionally, the initial filter coefficients are that the terminal device starts to carry out adaptive-filtering when voice communication The corresponding filter factor of device;Alternatively, the initial filter coefficients be the terminal device start carry out voice communication after to described Corresponding filter factor after the sef-adapting filter is stablized for the first time when the filter factor of sef-adapting filter is updated; The adaptive filter algorithm includes least-mean-square error algorithm or least square method.
Optionally, the updating unit includes:
Filter module obtains echo for being filtered using the sef-adapting filter to second audio signal Eliminate signal;
First computing module, for first audio signal to be subtracted the echo cancelled;
Second computing module, for the filtering system current according to the error output signal and the sef-adapting filter Number, is updated using filter factor of the adaptive filter algorithm to the sef-adapting filter, calculates the adaptive filter The current updated filter factor of wave device.
Optionally, described control unit includes:
Comparison module, for by the initial filter coefficients of the sef-adapting filter and the sef-adapting filter currently more Filter factor after new is compared, and determines the corresponding adaptive-filtering coefficient entry of the maximum filter factor of difference;
Computing module, for according to distance calculation formula and the corresponding adaptive-filtering of the maximum filter factor of the difference Coefficient item number, calculate face currently between the device screen at a distance from;
Control module, for when the face currently between the device screen at a distance from be less than or equal to the first preset threshold When more than or equal to the second preset threshold, controls the device screen and go out screen.
Optionally, the distance calculation formula are as follows:
Wherein, the L be face currently between the device screen at a distance from, the K be the difference it is maximum adaptive Filter factor entry value is answered, the V is the speed of sound transmission, and the f is used by data processor acquisition audio signal Sample frequency.
Terminal device screen state control method provided in an embodiment of the present invention and terminal device, when terminal device carries out language When sound communicates, data processor obtains the initial filter coefficients of sef-adapting filter and acquires the first audio letter of microphone acquisition Number and the second audio signal for being exported in synchronization of receiver, data processor is according to the first audio signal and the second audio Signal and the current filter factor of sef-adapting filter, utilize the adaptive filter algorithm filtering current to sef-adapting filter Coefficient is updated, and obtains sef-adapting filter currently updated filter factor, recording controller is further according to adaptive-filtering The current updated filter factor of the initial filter coefficients and sef-adapting filter of device, determines face currently between device screen Distance whether meet predetermined condition, if meeting predetermined condition, control device screen and go out screen, by data processor to acquisition To receiver and microphone in audio signal handled, analyzed, to realize the control to device screen, solve existing In technology because range sensor installation it is to the left or to the right caused by terminal device can not accurately extinguish screen the problem of, realize end The screen that accurately goes out of end equipment improves user experience so as to avoid the false triggering of user, also saves electric energy, reduces The power consumption of terminal device.Simultaneously as realizing distance detection function using receiver existing in mobile phone and microphone, reduce Complex structural designs degree has simultaneously saved cost.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of terminal device screen state control method flow diagram that the embodiment of the present invention provides;
Fig. 2 is another terminal device screen state control method flow diagram that the embodiment of the present invention provides;
Fig. 3 is a kind of structural schematic diagram for terminal device that the embodiment of the present invention provides;
Fig. 4 is the structural schematic diagram for another terminal device that the embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of terminal device screen state control method, goes out screen applied to terminal device, such as Shown in Fig. 1, this method specifically comprises the following steps:
101, when terminal device carries out voice communication, data processor obtains the initial filter system of sef-adapting filter Number.
Terminal device described in the embodiment of the present invention is for portable, pocket, hand-held or with touch screen and has The electronic equipment of call function, for example, smart phone, the tablet computer with call function and personal digital assistant etc..At this In embodiment, which includes device screen, for handling data and controlling the data processor of device screen, for connecing Receive the microphone of user speech and the receiver for exporting partner voice, wherein comprising adaptive in the data processor Filter is answered, the microphone is usually in the left or right side of receiver or in the top of receiver.
Specifically, if the length (i.e. step number) of the sef-adapting filter is M (the i.e. filter factor of the sef-adapting filter Item number is M), due to the corresponding value of every term coefficient of the sef-adapting filter, then the coefficient of the sef-adapting filter can be with table It is shown as { Wi(n) }, i=1,2 ..., M is (for example, W1It (n) is first item filter factor, WM(n) it is M filter factors), In, n is current time.
Specifically, to can be user preconfigured for the initial filter coefficients of the sef-adapting filter in step 101, it can also To be data processor when terminal device starts communication, according to the audio signal and the collected sound of microphone of receiver output Frequency signal update obtains.
The initial filter coefficients of above-mentioned sef-adapting filter can be with the preconfigured filtering of the sef-adapting filter Coefficient Wi(0), i.e., terminal device starts to carry out the sef-adapting filter corresponding filter factor when voice communication, illustratively, The preconfigured filter factor of the sef-adapting filter can be set to full 0 or any setting value;Above-mentioned sef-adapting filter Initial filter coefficients be also possible to terminal device and start to carry out the filter factor of sef-adapting filter after carrying out voice communication Corresponding filter factor W after the sef-adapting filter is stablized for the first time when updatei(n), the present invention is it is not limited here.
102, what the first audio signal and receiver that data processor acquisition microphone obtains were exported in synchronization Second audio signal.
Specifically, data processor uses particular sample frequency when user carries out voice communication by terminal device (first audio signal is the wheat to the first audio signal that (e.g., 128K or higher sample frequency) record microphone is got Gram wind carries out the digital signal that analog-to-digital conversion obtains to the user speech got) and the output of synchronization receiver the (second audio signal is the number that the receiver carries out that analog-to-digital conversion is obtained to the partner voice got to two audio signals Word signal).
103, the data processor filter current according to the first audio signal and the second audio signal and sef-adapting filter Wave system number is updated using the adaptive filter algorithm filter factor current to sef-adapting filter, obtains adaptive-filtering The current updated filter factor of device.
Specifically, data processor is after collecting first audio signal and the second audio signal, by first audio Input signal of the signal as the sef-adapting filter in the data processor, using second audio signal as the data processing The desired output signal of sef-adapting filter in device is then based on the current filter factor of the sef-adapting filter, is somebody's turn to do The audio signal (i.e. error output signal) of first audio signal eliminated after echo.Then, the data processor is according to error Output signal and the current filter factor of sef-adapting filter, using adaptive filter algorithm to the coefficient of the sef-adapting filter It is updated, after update, obtains the updated filter factor of the sef-adapting filter.
Wherein, above-mentioned adaptive filter algorithm is divided into the most basic algorithm of two classes according to the difference of Optimality Criteria: minimum Mean square deviation (English: Least Mean Square, abbreviation LMS) algorithm and recursive least-squares (English: Recursive Least Square, abbreviation RLS) algorithm.
104, after data processor is currently updated according to the initial filter coefficients and sef-adapting filter of sef-adapting filter Filter factor, determine face currently between device screen at a distance from whether meet predetermined condition, if meeting predetermined condition, count It goes out screen according to processor control device screen.
Specifically, data processor is by each filter factor in the initial filter coefficients of the sef-adapting filter and is somebody's turn to do certainly Each filter factor of adaptive filter currently in updated filter factor is compared, and determines the maximum filtering system of difference The corresponding adaptive-filtering coefficient item numbers of number, and at a distance from determining current face between device screen according to the item number, then Whether meet predetermined condition at a distance from determining the current face between device screen, if the distance less than the second preset threshold, Illustrate that audio signal is to transmit from the inner track of terminal device, and be not the reflection that microphone is reached after being reflected by face Propagation path does not answer pass hull closure screen at this time;If the distance is greater than the first preset threshold, illustrate that face is not close at this time The device screen of terminal device, not pass hull closure screen;If the distance is less than or equal to the first preset threshold and is more than or equal to second in advance If threshold value, then show face currently close to the device screen of the terminal device, and then the data processor closes the device screen Touch screen functionality, avoid the false triggering of user.Wherein, the second above-mentioned preset threshold is that terminal device is missed audio in order to prevent The internal communication path of signal causes accidentally to go out and shield and a preset value as external communication path.First preset threshold is face Minimum between device screen will not false triggering distance.
Illustratively, when the value of every filter factor of the initial filter coefficients of sef-adapting filter is 0, if should The initial filter coefficients of sef-adapting filter and the sef-adapting filter are after currently updated filter factor is compared, discovery The Section 4 filter factor W of the current updated filter factor of the sef-adapting filter4(n)=0.2, other every filter factors Value be 0, so that it is determined that the 4th filter factor difference is maximum out, and then current face is calculated according to filter factor item number 4 At a distance between device screen.
After the completion of above-mentioned judgement, data processor periodically continues to acquire audio signal and to collected audio Signal is analyzed, and obtains sef-adapting filter currently updated filter factor, data processor is according to sef-adapting filter The initial filter coefficients of updated filter factor and sef-adapting filter, calculate between current face and device screen away from From, and determined, until the voice communication terminates.I.e. data processor periodically executes above-mentioned step 102- step 104 process to audio signal sample, analysis, judgement.
Terminal device screen state control method provided in an embodiment of the present invention, when terminal device carries out voice communication, Data processor obtain sef-adapting filter initial filter coefficients and acquire microphone acquisition the first audio signal and by The second audio signal for being exported in synchronization of words device, data processor according to the first audio signal and the second audio signal and The current filter factor of sef-adapting filter is carried out using the adaptive filter algorithm filter factor current to sef-adapting filter It updates, obtains sef-adapting filter currently updated filter factor, recording controller is further according to the initial of sef-adapting filter The current updated filter factor of filter factor and sef-adapting filter, determine face currently between device screen at a distance from whether Meet predetermined condition, if meeting predetermined condition, controls device screen and go out screen, by data processor to collected receiver Handled, analyzed with the audio signal in microphone, to realize the control to device screen, solve in the prior art because away from The problem of terminal device caused by the left or to the right from sensor installation can not accurately extinguish screen, realizes the standard of terminal device The true screen that goes out improves user experience so as to avoid the false triggering of user, also saves electric energy, reduces terminal device Power consumption.Simultaneously as realizing distance detection function using receiver existing in mobile phone and microphone, it is multiple to reduce structure design Miscellaneous degree has simultaneously saved cost.
The embodiment of the present invention provides another terminal device screen state control method, as shown in Fig. 2, this method is specific Include the following steps:
201, when terminal device carries out voice communication, data processor obtains the initial filter system of sef-adapting filter Number.
202, what the first audio signal and receiver that data processor acquisition microphone obtains were exported in synchronization Second audio signal.
203, the data processor filter current according to the first audio signal and the second audio signal and sef-adapting filter Wave system number is updated using the adaptive filter algorithm filter factor current to sef-adapting filter, obtains adaptive-filtering The current updated filter factor of device.
Optionally, step 203 specifically comprises the following steps:
203a, data processor are filtered the second audio signal using sef-adapting filter, obtain Echo cancellation letter Number.
First audio signal is subtracted echo cancelled by 203b, data processor, obtains error output signal.
203c, the data processor filter factor current according to error output signal and sef-adapting filter, utilization are adaptive The filter factor for answering filtering algorithm current to sef-adapting filter is updated, and it is currently updated to calculate sef-adapting filter Filter factor.
Illustratively, if the adaptive filter algorithm applied into step 203c of step 203a is with LMS algorithm (LMS algorithm It is the mean square error minimum between the output signal based on filter and desired output signal) for, and above-mentioned the first audio letter It number is indicated with d (n), the second above-mentioned audio signal is with x (n) come when indicating.Then above-mentioned step 203a to step 203c tool Body process is as described below.
Firstly, the data processor is filtered the second audio signal x (n) using the sef-adapting filter, thus The echo cancelled y (n) of second audio signal is obtained, specific filtering can refer to following formula one.
Y (n)=xT(n) * w (n) formula one
Wherein, above-mentioned w (n) is the current filter factor of the sef-adapting filter.
Secondly, data processor subtracts echo cancelled y (n) with the first audio signal d (n), to obtain the first sound The error output signal e (n) of frequency signal d (n), specific calculating process can refer to following formula two.
E (n)=d (n)-y (n) formula two
Again, processor is according to the initial filter coefficients W of error output signal e (n) and sef-adapting filteri(n) it utilizes LMS algorithm can calculate the sef-adapting filter currently updated filter factor Wi(n+1), specific calculation formula is as follows The formula three stated.
Wi(n+1)=Wi(n)+2 μ e (n) x (n) formula three
Wherein, above-mentioned parameter μ is step factor, is a constant.
It should be noted that adaptive filter algorithm is many kinds of, the present invention need to only be obtained using adaptive filter algorithm The current updated filter factor of sef-adapting filter, to specific algorithm and is not limited.Therefore, as long as can be obtained adaptive The algorithm of the current updated filter factor of filter is within the scope of the invention.
204, after data processor is currently updated according to the initial filter coefficients and sef-adapting filter of sef-adapting filter Filter factor, determine face currently between device screen at a distance from whether meet predetermined condition, if meeting predetermined condition, count It goes out screen according to processor control device screen.
Optionally, step 204 specifically includes:
204a, data processor are currently updated by the initial filter coefficients of sef-adapting filter and sef-adapting filter Filter factor compares, and determines the corresponding adaptive-filtering coefficient entry of the maximum filter factor of difference.
204b, data processor are according to distance calculation formula and the corresponding adaptive-filtering system of the maximum filter factor of difference Several numbers, calculate face currently between device screen at a distance from.
Wherein, above-mentioned distance calculation formula are as follows:
Formula four
Wherein, above-mentioned L be face between terminal device screen at a distance from, K be the maximum adaptive-filtering coefficient of difference Entry value, V are the speed of sound transmission, and f is the sample frequency of data processor.
Specifically, above-mentioned formula four can be according to formula 1:S=2L=V*t and formula 2: It is derived from, wherein above-mentioned S is sound at a distance from face is propagated between device screen, and t is sound in face and equipment The time propagated between screen, T are the period that data processor acquires audio signal.
Illustratively, the speed V=340m/s of sound transmission, if f=128K hertz of the sample frequency of data processor (HZ)。
As the corresponding adaptive-filtering coefficient item number K of the maximum filter factor of difference1When being the 23rd, by K1, f and V band Enter above-mentioned formula four to obtain: current face between device screen at a distance from
As the corresponding adaptive-filtering coefficient item number K of the maximum filter factor of difference2When being the 4th, by K2, f and V bring into Above-mentioned formula four obtains: current face between device screen at a distance from
204c, when face currently between device screen at a distance from be less than or equal to the first preset threshold to be more than or equal to second default When threshold value, data processor controlled device screen goes out screen.
Illustratively, when the initial filter coefficients of sef-adapting filter are the preconfigured filtering systems of the sef-adapting filter When number, specific processing method embodiment 1 described as follows);When the initial filter coefficients of sef-adapting filter are that terminal device starts Institute after the sef-adapting filter is stablized for the first time when being updated after progress voice communication to the filter factor of sef-adapting filter Corresponding filter factor, specific processing method embodiment 2 described as follows).
Specifically, be 2cm with the first preset threshold of distance between face and device screen, the second preset threshold is 0.2cm, Data processor sample frequency is 128KHZ, sound propagation velocity is that 340 meter per seconds are illustrated.Wherein, above-mentioned second is default Threshold value be in order to prevent terminal device the internal communication path of audio signal accidentally is led to accidentally to go out screen as external communication path and A preset value.First preset threshold is that the minimum between face and device screen will not false triggering distance (i.e. face and equipment Distance between screen, which is less than first preset threshold, just may cause false triggering).
1), if the initial filter coefficients of sef-adapting filter are the preconfigured filter factor W of the sef-adapting filteri (0)(Wi(0) every coefficient is 0 in), currently updated filter factor is W to sef-adapting filteri(n), if data processing Device determines Wi(n) the maximum adaptive-filtering item number K of intermediate value3=1, then data processor can calculate this according to formula four When face between device screen at a distance from be 0.1cm, be less than 0.2cm, the audio signal for illustrating at this time is after receiver output The internal communication path of microphone is directly reached, and is not the reflected propagation paths for reaching microphone after being reflected by face, number It does not go out screen according to processor control device screen;The filter factor of sef-adapting filter is after the update of m time, if Wi(n+ M) the maximum adaptive-filtering item number K of intermediate value2=4, then data processor according to formula four can calculate at this time face with set Distance between standby screen is 0.5cm, is less than 2cm and is greater than 0.2cm, and data processor controlled device screen goes out screen at this time.
2) it is directly to reach microphone after receiver output that, if the initial coefficients of sef-adapting filter, which are audio signals, Filter factor W corresponding to internal communication path1(n), currently updated filter factor is W to sef-adapting filteri(n+1), Then data processor is by W1(n) and Wi(n+1) it is compared, however, it is determined that go out W1(n) and Wi(n+1) difference is maximum adaptive in Filter item number K1=23, then data processor according to formula four can calculate at this time face between device screen at a distance from be 3cm is greater than 2cm, and data processor controlled device screen does not go out screen at this time;The filter factor of sef-adapting filter passes through the m time Update after, if W1(n) and Wi(n+1+m) the maximum adaptive-filtering item number K of difference in2=4, then data processor according to Formula four can calculate at this time face between device screen at a distance from for 0.5cm, be less than 2cm and be greater than 0.2cm, at this time at data Reason device control device screen goes out screen.
After the decision process of two above-mentioned embodiments, no matter whether terminal device goes out screen, and data processor all can Periodically continue the audio signal of acquisition microphone and receiver, and carry out above-mentioned calculating to collected audio signal, And the device screen is controlled according to calculated result, until end of conversation.
Terminal device screen state control method provided in an embodiment of the present invention, when terminal device carries out voice communication, Data processor obtain sef-adapting filter initial filter coefficients and acquire microphone acquisition the first audio signal and by The second audio signal for being exported in synchronization of words device, data processor according to the first audio signal and the second audio signal and The current filter factor of sef-adapting filter is carried out using the adaptive filter algorithm filter factor current to sef-adapting filter It updates, obtains sef-adapting filter currently updated filter factor, recording controller is further according to the initial of sef-adapting filter The current updated filter factor of filter factor and sef-adapting filter, determine face currently between device screen at a distance from whether Meet predetermined condition, if meeting predetermined condition, controls device screen and go out screen, by data processor to collected receiver Handled, analyzed with the audio signal in microphone, to realize the control to device screen, solve in the prior art because away from The problem of terminal device caused by the left or to the right from sensor installation can not accurately extinguish screen, realizes the standard of terminal device The true screen that goes out improves user experience so as to avoid the false triggering of user, also saves electric energy, reduces terminal device Power consumption.Simultaneously as realizing distance detection function using receiver existing in mobile phone and microphone, it is multiple to reduce structure design Miscellaneous degree has simultaneously saved cost.
The embodiment of the present invention provides a kind of terminal device 3, which includes device screen 32, data processor 31, microphone 33 and receiver 34 include sef-adapting filter 315 in above-mentioned data processor 31.
As shown in figure 3, the data processor 31 in the terminal device includes: acquiring unit 311, acquisition unit 312, updates Unit 313, control unit 314 and sef-adapting filter 315, in which:
Acquiring unit 311, for obtaining the initial filter of sef-adapting filter 315 when terminal device 3 carries out voice communication Wave system number.
Acquisition unit 312, the first audio signal and receiver 34 for acquiring the acquisition of microphone 33 are in synchronization Second audio signal of output.
Updating unit 313, for current according to the first audio signal and the second audio signal and sef-adapting filter 315 Filter factor, be updated, be somebody's turn to do using the adaptive filter algorithm filter factor current to the sef-adapting filter 315 The current updated filter factor of sef-adapting filter 315.
Control unit 314, for the initial filter coefficients and the sef-adapting filter 315 according to sef-adapting filter 315 Current updated filter factor, determine face currently between device screen 32 at a distance from whether meet predetermined condition, if meeting The predetermined condition then controls device screen 32 and goes out screen.
Optionally, above-mentioned initial filter coefficients are that terminal device 3 starts to carry out sef-adapting filter 315 when voice communication Corresponding filter factor;Alternatively, initial filter coefficients be terminal device 3 start carry out voice communication after to sef-adapting filter Corresponding filter factor after the sef-adapting filter is stablized for the first time when 315 filter factor is updated;Above-mentioned is adaptive Answering filtering algorithm includes least-mean-square error algorithm or least square method.
Optionally, as shown in figure 4, above-mentioned updating unit 313 includes: filter module 313a, the first computing module 313b With the second computing module 313c, in which:
Filter module 313a obtains Echo cancellation for being filtered using sef-adapting filter to the second audio signal Signal.
First computing module 313b obtains error output signal for the first audio signal to be subtracted echo cancelled.
Second computing module 313c, for the filter current according to above-mentioned error output signal and sef-adapting filter 315 Wave system number is updated using filter factor of the adaptive filter algorithm to sef-adapting filter 315, is calculated described adaptive The current updated filter factor of filter 315.
Optionally, as shown in figure 4, above-mentioned control unit 314 includes: comparison module 314a, computing module 314b and control Molding block 314c, in which:
Comparison module 314a, for working as the initial filter coefficients of sef-adapting filter 315 and the sef-adapting filter 315 Preceding updated filter factor is compared, and determines the corresponding adaptive-filtering coefficient entry of the maximum filter factor of difference.
Computing module 314b, for according to distance calculation formula and the corresponding adaptive-filtering of the maximum filter factor of difference Coefficient item number, calculate face currently between device screen 32 at a distance from.
Control module 314c, for when face currently between device screen 32 at a distance from be less than or equal to the first preset threshold it is big When being equal to the second preset threshold, controls the device screen 32 and go out screen.
Optionally, above-mentioned distance calculation formula are as follows:Wherein, above-mentioned L is that face is currently set with described Distance between standby screen 32, K are the maximum adaptive-filtering coefficient entry value of difference, and V is the speed of sound transmission, and f is that acquisition is single Member 32 acquires sample frequency used in audio signal.
Terminal device provided in an embodiment of the present invention, when terminal device carries out voice communication, data processor is obtained from The initial filter coefficients of adaptive filter and acquire microphone acquisition the first audio signal and receiver it is defeated in synchronization The second audio signal out, data processor are current according to the first audio signal and the second audio signal and sef-adapting filter Filter factor, be updated, obtained adaptive using the adaptive filter algorithm filter factor current to sef-adapting filter The current updated filter factor of filter, recording controller is further according to the initial filter coefficients of sef-adapting filter and adaptive The current updated filter factor of filter, determine face currently between device screen at a distance from whether meet predetermined condition, if Meet predetermined condition, then controls device screen and go out screen, by data processor to the sound in collected receiver and microphone Frequency signal is handled, is analyzed, and to realize the control to device screen, is solved in the prior art because range sensor installation is inclined Terminal device caused by left or to the right can not accurately extinguish the problem of screen, the screen that accurately goes out of terminal device be realized, to keep away The false triggering for having exempted from user, improves user experience, also saves electric energy, reduces the power consumption of terminal device.Simultaneously as Realize distance detection function using receiver existing in mobile phone and microphone, reduce complex structural designs degree and saved at This.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the module or unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (6)

1. a kind of terminal device screen state control method, which is characterized in that be applied to terminal device, the terminal device includes Device screen, data processor, microphone and receiver include sef-adapting filter, the method packet in the data processor It includes:
When the terminal device carries out voice communication, the data processor obtains the initial filter of the sef-adapting filter Coefficient;
Acquire the first audio signal that the microphone obtains and the second audio letter that the receiver is exported in synchronization Number;
According to the current filter factor of first audio signal and second audio signal and sef-adapting filter, utilize The adaptive filter algorithm filter factor current to the sef-adapting filter is updated, and is obtained the sef-adapting filter and is worked as Preceding updated filter factor, comprising: second audio signal is filtered using the sef-adapting filter, is returned Wave eliminates signal;First audio signal is subtracted into the echo cancelled, obtains error output signal;According to the mistake Poor output signal and the current filter factor of the sef-adapting filter, using adaptive filter algorithm to the adaptive-filtering The filter factor of device is updated, and calculates the sef-adapting filter currently updated filter factor;
According to the current updated filter factor of the initial filter coefficients of the sef-adapting filter and the sef-adapting filter, Whether meet predetermined condition at a distance from determining face currently between the device screen, if meeting the predetermined condition, controls The device screen goes out screen, comprising: the initial filter coefficients of the sef-adapting filter and the sef-adapting filter are current Updated filter factor is compared, and determines the corresponding adaptive-filtering coefficient entry of the maximum filter factor of difference;According to Distance calculation formula and the corresponding adaptive-filtering coefficient item number of the maximum filter factor of the difference, calculate face currently with Distance between the device screen;When the face currently between the device screen at a distance from be less than or equal to the first preset threshold When more than or equal to the second preset threshold, then controls the device screen and go out screen;Wherein, first preset threshold is face and set Minimum between standby screen will not false triggering distance, second preset threshold is to prevent the terminal device from accidentally believing the audio Number internal communication path cause accidentally to go out the preset value of screen as external communication path.
2. the method according to claim 1, wherein the initial filter coefficients be the terminal device start into The sef-adapting filter corresponding filter factor when row voice communication;Alternatively, the initial filter coefficients are that the terminal is set The standby sef-adapting filter described when starting to carry out to be updated the filter factor of the sef-adapting filter after voice communication the Corresponding filter factor after once stablizing;The adaptive filter algorithm includes least-mean-square error algorithm or least square Method.
3. according to the method described in claim 1, it is characterized by:
The distance calculation formula are as follows:
Wherein, the L be face currently between the device screen at a distance from, the K be the maximum adaptive filter of the difference The several values of wave system, the V are the speed of sound transmission, and the f is to adopt used in data processor acquisition audio signal Sample frequency.
4. a kind of terminal device, which is characterized in that the terminal device include device screen, data processor, microphone and by Device is talked about, includes sef-adapting filter, the data processor in the data processor further include:
Acquiring unit, for obtaining the initial filter of the sef-adapting filter when the terminal device carries out voice communication Coefficient;
Acquisition unit is exported for acquiring the first audio signal and the receiver that the microphone obtains in synchronization The second audio signal;
Updating unit, for current according to first audio signal and second audio signal and sef-adapting filter Filter factor is updated using the adaptive filter algorithm filter factor current to the sef-adapting filter, is obtained described Currently updated filter factor, the updating unit include: filter module to sef-adapting filter, described adaptive for utilizing Filter is filtered second audio signal, obtains echo cancelled;First computing module is used for described first Audio signal subtracts the echo cancelled, obtains error output signal;Second computing module, for defeated according to the error Signal and the current filter factor of the sef-adapting filter out, using adaptive filter algorithm to the sef-adapting filter Filter factor is updated, and calculates the sef-adapting filter currently updated filter factor;
Control unit, for currently being updated according to the initial filter coefficients and the sef-adapting filter of the sef-adapting filter Filter factor afterwards, determine face currently between the device screen at a distance from whether meet predetermined condition, if meeting described pre- Fixed condition then controls the device screen and goes out screen;Described control unit includes: comparison module, is used for the adaptive-filtering Currently updated filter factor is compared for the initial filter coefficients of device and the sef-adapting filter, determines difference maximum The corresponding adaptive-filtering coefficient entry of filter factor;Computing module, for maximum according to distance calculation formula and the difference The corresponding adaptive-filtering coefficient item number of filter factor, calculate face currently between the device screen at a distance from;Control Module, for when the face currently between the device screen at a distance from be less than or equal to the first preset threshold be more than or equal to second When preset threshold, controls the device screen and go out screen;Wherein, first preset threshold is the minimum between face and device screen Will not false triggering distance, second preset threshold is to prevent the terminal device accidentally by the internal communication road of the audio signal Diameter causes accidentally to go out the preset value of screen as external communication path.
5. terminal device according to claim 4, which is characterized in that the initial filter coefficients are that the terminal device is opened Begin to carry out the sef-adapting filter corresponding filter factor when voice communication;Alternatively, the initial filter coefficients are the ends End equipment starts to carry out after voice communication adaptive-filtering when being updated to the filter factor of the sef-adapting filter Device filter factor corresponding after stablizing for the first time;The adaptive filter algorithm includes least-mean-square error algorithm or minimum two Multiplication.
6. terminal device according to claim 4, it is characterised in that:
The distance calculation formula are as follows:
Wherein, the L be face currently between the device screen at a distance from, the K be the maximum adaptive filter of the difference The several values of wave system, the V are the speed of sound transmission, and the f is to adopt used in data processor acquisition audio signal Sample frequency.
CN201410810761.3A 2014-12-22 2014-12-22 A kind of terminal device screen state control method and terminal device Active CN105791515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410810761.3A CN105791515B (en) 2014-12-22 2014-12-22 A kind of terminal device screen state control method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410810761.3A CN105791515B (en) 2014-12-22 2014-12-22 A kind of terminal device screen state control method and terminal device

Publications (2)

Publication Number Publication Date
CN105791515A CN105791515A (en) 2016-07-20
CN105791515B true CN105791515B (en) 2019-06-28

Family

ID=56377863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410810761.3A Active CN105791515B (en) 2014-12-22 2014-12-22 A kind of terminal device screen state control method and terminal device

Country Status (1)

Country Link
CN (1) CN105791515B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506825A (en) * 2016-10-26 2017-03-15 广东欧珀移动通信有限公司 A kind of control method of touch-screen, device and mobile terminal
US20200064160A1 (en) * 2018-08-22 2020-02-27 Cirrus Logic International Semiconductor Ltd. Detecting and adapting to changes in a resonant phase sensing system having a resistive-inductive-capacitive sensor
CN109254656B (en) * 2018-08-22 2021-03-23 Oppo广东移动通信有限公司 Proximity detection method and device
CN109977799B (en) * 2019-03-07 2022-12-20 腾讯科技(深圳)有限公司 Method, device and terminal for monitoring distance between human eyes and screen
CN113241084B (en) * 2021-04-16 2022-07-22 北京梧桐车联科技有限责任公司 Echo cancellation method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347136A (en) * 2013-06-18 2013-10-09 华为终端有限公司 Method and device for mobile phone energy saving processing
CN104144252A (en) * 2013-11-28 2014-11-12 腾讯科技(深圳)有限公司 Voice communication method and mobile terminal
CN104202480A (en) * 2014-09-12 2014-12-10 深圳市邦华电子有限公司 Adaptively-calibrated distance measurement method and handheld calling type communication equipment
EP2858338A1 (en) * 2012-12-20 2015-04-08 Goertek Inc. Echo cancellation device and method for small-scale hands-free voice communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340649A (en) * 2011-10-24 2012-02-01 华为技术有限公司 Call control method for cordless video telephone and cordless video telephone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2858338A1 (en) * 2012-12-20 2015-04-08 Goertek Inc. Echo cancellation device and method for small-scale hands-free voice communication system
CN103347136A (en) * 2013-06-18 2013-10-09 华为终端有限公司 Method and device for mobile phone energy saving processing
CN104144252A (en) * 2013-11-28 2014-11-12 腾讯科技(深圳)有限公司 Voice communication method and mobile terminal
CN104202480A (en) * 2014-09-12 2014-12-10 深圳市邦华电子有限公司 Adaptively-calibrated distance measurement method and handheld calling type communication equipment

Also Published As

Publication number Publication date
CN105791515A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105791515B (en) A kind of terminal device screen state control method and terminal device
CN108924706A (en) Bluetooth headset method for handover control, bluetooth headset and computer readable storage medium
CN109361828A (en) A kind of echo cancel method, device, electronic equipment and storage medium
CN108540669B (en) Wireless headset, the control method based on headset detection and Related product
CN102411425A (en) Method and device for controlling function of touch screen
CN101720550A (en) Dynamic routing of audio among multiple audio devices
CN104092836A (en) Power-saving method and apparatus
CN102857598A (en) Control method for eliminating noise of double microphones of cellphone automatically and cellphone utilizing control method
CN104092801A (en) Intelligent terminal call noise reduction method and intelligent terminal
CN110995951B (en) Echo cancellation method, device and system based on double-end sounding detection
CN208434100U (en) Electronic equipment
CN108966323B (en) Bright screen control method and device and terminal
CN105611014A (en) Method and device for mobile terminal call voice noise reduction
CN100508031C (en) Method for identifying and eliminating echo generated by speech at remote end in SCDMA handset
CN109524018B (en) Echo processing method and device
CN105391854A (en) Audio incoming call processing method and audio incoming call processing device
CN109212534A (en) Gripping gesture detection method, device, equipment and the storage medium of mobile terminal
CN107046595A (en) Announcement information processing method, device and mobile terminal
CN106161758A (en) Incoming call sound method and device
CN106911840A (en) Mobile terminal and its voice service method and device
CN108432220B (en) Method and terminal for switching call mode
CN103067562A (en) Cellphone and cellphone answering method
CN110136733A (en) A kind of the solution reverberation method and device of audio signal
CN105227775A (en) A kind of voice incoming call processing method and device
CN104301460A (en) Mobile phone and method for automatically answering call of mobile phone

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
CP03 Change of name, title or address

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Country or region after: China

Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address