CN105718162A - Transverse and vertical screen switching method and apparatus - Google Patents

Transverse and vertical screen switching method and apparatus Download PDF

Info

Publication number
CN105718162A
CN105718162A CN201610038236.3A CN201610038236A CN105718162A CN 105718162 A CN105718162 A CN 105718162A CN 201610038236 A CN201610038236 A CN 201610038236A CN 105718162 A CN105718162 A CN 105718162A
Authority
CN
China
Prior art keywords
acoustic signals
mobile terminal
knocking
vertical screen
mode
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
CN201610038236.3A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610038236.3A priority Critical patent/CN105718162A/en
Publication of CN105718162A publication Critical patent/CN105718162A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a transverse and vertical screen switching method and apparatus. The method comprises the steps of obtaining a sound wave signal generated by knocking a mobile terminal by a user; when it is determined that the sound wave signal meets a preset condition, obtaining a knock way of the sound wave signal; according to the knock way, calling a corresponding switching process, wherein the switching process indicates that the mobile terminal is subjected to transverse and vertical screen switching; and based on the switching process, performing transverse and vertical screen switching on the mobile terminal. According to embodiments of the invention, an action of knocking the mobile terminal by the user is identified through the sound wave signal, so that the mobile terminal can be subjected to transverse and vertical screen switching, namely, the transverse and vertical screen switching can be realized by performing triggering only through the sound wave signal without the need for the user to perform complicated operation for the mobile terminal, the operation efficiency and the flexibility are relatively high, the operation steps are simplified, and the user demands are met.

Description

A kind of horizontal/vertical screen changing method and device
Technical field
The invention belongs to communication technical field, particularly relate to a kind of horizontal/vertical screen changing method and device.
Background technology
Along with the fast development of mobile communication technology, smart mobile phone, panel computer, the mobile terminal such as personal digital assistant has become as people's indispensability instrument.In order to provide the user with more comfortable enjoyment, mobile terminal generally provides the user bigger display screen.For the function that mobile terminal is different, or the reading method for different user, it is desirable to mobile terminal can the display mode anyhow of intelligence toggle screen.
In prior art, mobile terminal adds gravity sensing chip, is used for realizing the automatic switchover of horizontal/vertical screen.Mobile terminal calculates, by gravity sensing chip, the placement form that this mobile terminal is current, determines and shows with transverse screen or show with perpendicular screen.
To in the research of prior art and practice process, the inventors found that, in prior art, the motility of horizontal/vertical screen switching is relatively low, as when user lies on one's side, mobile terminal calculates mobile terminal by gravity sensing chip and belongs to laterally disposed, thus showing with transverse screen, cause that the switching of horizontal/vertical screen cannot meet demand;If be fixed as transverse screen or perpendicular screen, manually could switching, operating procedure is more always.
Summary of the invention
It is an object of the invention to provide a kind of horizontal/vertical screen changing method and device, it is intended to switch horizontal/vertical screen flexibly, simplify operating procedure, meet user's request.
For solving above-mentioned technical problem, the embodiment of the present invention provides techniques below scheme:
A kind of horizontal/vertical screen changing method, including:
Obtain user by knocking acoustic signals produced by mobile terminal;
Determining when described acoustic signals meets pre-conditioned, what obtain described acoustic signals knocks mode;
Transferring corresponding handover process according to the described mode of knocking, mobile terminal is carried out horizontal/vertical screen switching by the instruction of described handover process;
Based on described handover process, described mobile terminal is carried out horizontal/vertical screen switching.
For solving above-mentioned technical problem, the embodiment of the present invention also provides for techniques below scheme:
A kind of horizontal/vertical screen switching device, including:
First acquiring unit, is used for obtaining user by knocking acoustic signals produced by mobile terminal;
Second acquisition unit, is used for determining when described acoustic signals meets pre-conditioned, what obtain described acoustic signals knocks mode;
Transferring unit, the mode of knocking described in basis transfers corresponding handover process, and mobile terminal is carried out horizontal/vertical screen switching by the instruction of described handover process;
Switch unit, for based on described handover process, carrying out horizontal/vertical screen switching to described mobile terminal.
Relative to prior art, the embodiment of the present invention, when getting user by knocking acoustic signals produced by mobile terminal, this acoustic signals is detected, if this acoustic signals meets pre-conditioned, what then obtain acoustic signals knocks mode, transfers corresponding handover process according to the mode of knocking thereafter, and based on handover process, mobile terminal is carried out horizontal/vertical screen switching.The present invention knocks the action of mobile terminal by acoustic signals identification user, thus realizing mobile terminal is carried out horizontal/vertical screen switching, namely trigger only by acoustic signals, carry out the operation of complexity for mobile terminal without user, just can realize horizontal/vertical screen switching, efficiency and the motility of operation are higher, simplify operating procedure simultaneously, meet user's request.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, by the specific embodiment of the present invention is described in detail, technical scheme and other beneficial effect will be made apparent.
The schematic flow sheet of the horizontal/vertical screen changing method that Fig. 1 a provides for first embodiment of the invention;
The principle analysis schematic diagram that in the horizontal/vertical screen changing method that Fig. 1 b provides for first embodiment of the invention, acoustic signals produces;
The schematic flow sheet of the horizontal/vertical screen changing method that Fig. 2 provides for second embodiment of the invention;
The structural representation of the horizontal/vertical screen switching device that Fig. 3 a provides for third embodiment of the invention;
Another structural representation of the horizontal/vertical screen switching device that Fig. 3 b provides for third embodiment of the invention.
Detailed description of the invention
Refer to graphic, wherein identical element numbers represents identical assembly, and principles of the invention is to be implemented in a suitable computing environment to illustrate.The following description is based on the illustrated specific embodiment of the invention, and it is not construed as other specific embodiment that the restriction present invention is not detailed herein.
In the following description, reference step performed by or multi-section computer and symbol are illustrated by specific embodiments of the invention, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times and be performed by computer, and computer as referred to herein execution includes the operation of the computer processing unit by the electronic signal represented with the data in a structuring pattern.This operation change these data or be maintained at the memory system of this computer in position, its reconfigurable or additionally known by by this area tester in the way of change the running of this computer.The data structure that these data maintain is the provider location of this internal memory, and it has the particular characteristics defined by this data form.But, the principle of the invention illustrates with above-mentioned word, and it is not represented as a kind of restriction, and this area tester will appreciate that the plurality of step of the following stated and operation also may be implemented in the middle of hardware.
Principles of the invention uses other wide usages many or specific purpose computing, communication environment or configuration to be operated.The known example being suitable for the arithmetic system of the present invention, environment and configuration can include, but is not limited to cell-phone, personal computer, server, multicomputer system, micro computer are system, body frame configuration computer and the distributed computing environment led, which includes any said system or device.
To be described in detail respectively below.
First embodiment
In the present embodiment, angle from horizontal/vertical screen switching device being described, this horizontal/vertical screen switching device specifically can be integrated in flat board PC (PersonalComputer), mobile phone etc. to be possessed storage element and is provided with microprocessor and has in the terminating machine of operational capability.
A kind of horizontal/vertical screen changing method, including: obtain user by knocking acoustic signals produced by mobile terminal;Determining when acoustic signals meets pre-conditioned, what obtain acoustic signals knocks mode;Transferring corresponding handover process according to this mode of knocking, mobile terminal is carried out horizontal/vertical screen switching by the instruction of this handover process;Based on this handover process, mobile terminal is carried out horizontal/vertical screen switching.
Referring to the schematic flow sheet that Fig. 1 a, Fig. 1 a is the horizontal/vertical screen changing method that first embodiment of the invention provides, idiographic flow may include that
In step S101, obtain user by knocking acoustic signals produced by mobile terminal.
It is understood that the acoustic signals in the embodiment of the present invention can be subject to external forces (as user knocks) for mobile terminal and mechanical vibration occur, thus the acoustic signals produced (vibration signal can also be called).
Such as, when user knocks mobile terminal (such as mobile phone), mobile terminal can vibrate, thus mobile terminal can produce acoustic signals, simultaneously, this acoustic signals can also be mobile terminal transmission, and the acoustic signals produced by outside vibration source, present invention is generally directed to user and is analyzed by knocking acoustic signals produced by mobile terminal.
Wherein, user knocks the mode of mobile terminal to be had a lot, such as, it is possible to for clicking directly on mobile terminal with finger, it is also possible to be utilize other hard things, such as with penholder, key etc., clicks mobile terminal.
In step s 102, it is determined that when this acoustic signals meets pre-conditioned, what obtain this acoustic signals knocks mode.
Namely, after acquisition for mobile terminal to acoustic signals, need acoustic signals is detected, it may be judged whether meet pre-conditioned, such as, can determine whether this acoustic signals meets default feature request according to the characteristic information of acoustic signals, such as, it is judged that when feature letter meets default feature request, then judge that acoustic signals meets pre-conditioned, otherwise, it is determined that this acoustic signals does not meet pre-conditioned.Wherein, characteristic information may include that one or more combination in frequency information, amplitude information, temporal information.
In step s 103, transferring corresponding handover process according to this mode of knocking, mobile terminal is carried out horizontal/vertical screen switching by the instruction of this handover process.
In step S104, based on this handover process, mobile terminal is carried out horizontal/vertical screen switching.
Wherein, described step S103 and step S104 can particularly as follows:
It is understandable that, after mobile terminal determines the mode of knocking, transfer and knock the handover process that mode is corresponding with this, wherein, this corresponding relation knocking mode and handover process can preset in the terminal, after mobile terminal determines handover process, according to handover process, mobile terminal is carried out horizontal/vertical screen switching.
Device is processed below, to the present embodiment being determined, user passes through to knock acoustic signals produced by this mobile terminal and meets pre-conditioned detailed process and be analyzed for signals shown.
As shown in Figure 1 b, this signal processing apparatus includes: microphone circuit 101, analog-to-digital conversion module 102, sample rate conversion module 103, Fourier transform (FFT, FastFourierTransformation) module 104, time series analysis module 105, frequency analysis module 106, amplitude analysis module 107, statistics identification module 108 and action executing module 109.
Wherein, microphone circuit 101, by obtaining the acoustic signals for mobile terminal, and convert this acoustic signals to analogue signal;Wherein, microphone circuit 101 comprises various types of mike, such as electret microphone, silicon microphone etc., even includes the device of any sound-electric conversion, as: speaker and receiver.If digital microphone then direct output digit signals, if simulation mike, this needs D/A converter module 102 to be below converted to digital signal.
Can be specifically, when mobile terminal vibration produces acoustic signals, vibrating diaphragm in microphone circuit 101 senses acoustic signals, and all can follow and vibrate together, vibrating diaphragm will drive the coil in microphone circuit 101 to do the motion of cutting magnetic line, thus coil will produce the current signal of correspondence, i.e. analogue signal.
The present embodiment can also replace this mike with receiver or speaker and realize same function, the work process type of its work process and mike, just repeat no more here.
Analog-to-digital conversion module 102, i.e. A/D module, for converting the digital signal of correspondence to, in order to subsequent treatment analysis by the analogue signal that microphone circuit 101 exports.
Sample rate conversion module 103, for adjusting the sample rate of digital signal;Wherein, the sample rate according to circumstances adjusting digital signal is to reduce the computing requirement that following digital is analyzed;Preferably, sample rate cannot be below 16Khz, and bit rate cannot be below 10bit, is otherwise likely to impact analysis precision.
Fourier transform module 104, carries out Fourier transform to digital signal, thus being converted to frequency-domain analysis.
Thereafter, to this digital signal frequency-domain analysis, it is possible to specifically include:
(1) time series analysis module 105, namely the time (Time) is analyzed;
After carrying out Fourier transform at digital signal, the time of digital signal is analyzed;Specifically, obtain the temporal information of digital signal, and judge whether this temporal information meets Preset Time requirement, such as, the time cycle of digital signal is obtained, it is judged that this time cycle is whether within the scope of preset time period, if, then meeting Preset Time requirement, it was shown that this digital signal meets the time requirement knocking the digital signal that mobile terminal generates, the acoustic signals that this digital signal is corresponding is likely to be and knocks the acoustic signals that mobile terminal produces.
Further, such as, based on the construction features of the feature of hammer action and mobile terminal, providing the time cycle [T1, T2] of a hammer action, the explanation that goes beyond the scope is not normal hammer action;If meeting the time of hammer action feature, then output OK signal.Recorded audio signals analysis according to actual user's finger tapping mobile terminal, T1 is generally no greater than 5ms, T2 and is not more than 20ms.
(2) frequency analysis module 106, for frequency (Frequency) distributional analysis;
Whether determination frequency distribution meets predeterminated frequency requirement, such as, if frequency distribution is continuous and frequency band is broad, then it is assumed that the frequency distribution of this digital signal meets the frequency distribution of the digital signal knocking generation.Contrasting from reality, especially 6Khz is between highest frequency (sample rate frequency ÷ 2), and frequency distribution is continuous.
(3) amplitude analysis module 107, analyzes for amplitude (Amplitude);
Analyze the signal energy of whole frequency range;Specifically, it is possible to analyze the averaged amplitude value of whole frequency range, and judge whether this averaged amplitude value meets default amplitude requirement, such as, it is judged that this averaged amplitude value whether more than default amplitude, if, then meet and preset amplitude requirement, otherwise, be unsatisfactory for presetting amplitude requirement.
Statistics identification module 108, for adding up and according to time series analysis module 105, frequency analysis module 106, the analysis result identification of amplitude analysis module 107 or to judge whether current acoustic signals meets pre-conditioned.
Such as, the interval that statistics is knocked, if the action knocked for twice that is connected is too short, as lower than T3 (such as 50ms), it is contemplated that the action of people is so not fast, therefore may determine that not output action instruction;If be connected, the time of twice action is longer than T4 (such as 500ms), then it is assumed that last action is not belonging to the secondary action of front N (N is positive integer);All meet in [T3, T4] if all of action interval, then it is assumed that this is some action specified, and exports the signal of this required movement.
Action executing module 109, for the instruction according to statistics identification module 108, performs the action specified in conjunction with current applied environment;Namely according to the acoustic signals knocking generation, it is determined that handover process, such that it is able to based on this handover process, mobile terminal is carried out horizontal/vertical screen switching.
From the above, the horizontal/vertical screen changing method that the present embodiment provides, when getting user by knocking acoustic signals produced by mobile terminal, this acoustic signals is detected, if this acoustic signals meets pre-conditioned, what then obtain acoustic signals knocks mode, transfers corresponding handover process according to the mode of knocking thereafter, and based on handover process, mobile terminal is carried out horizontal/vertical screen switching.The present invention knocks the action of mobile terminal by acoustic signals identification user, thus realizing mobile terminal is carried out horizontal/vertical screen switching, namely trigger only by acoustic signals, carry out the operation of complexity for mobile terminal without user, just can realize horizontal/vertical screen switching, efficiency and the motility of operation are higher, simplify operating procedure simultaneously, meet user's request.
Second embodiment
Method described by first embodiment, is described in further detail citing below.
Wherein, in this embodiment, executive agent is mobile terminal, as being specially flat board PC and mobile phone etc..
Referring to the schematic flow sheet of the horizontal/vertical screen changing method that Fig. 2, Fig. 2 provide for second embodiment of the invention, idiographic flow may include that
In step s 201, mobile terminal obtains user by knocking acoustic signals produced by described mobile terminal by the mike carried.
It is understandable that, in the present embodiment, the acoustic signals obtaining mobile terminal can have multiple, such as, it is possible to obtain acoustic signals by the vibrating diaphragm on mobile terminal, when vibration occurs mobile terminal, this vibrating diaphragm also can be followed and vibrate together, therefore, it can be sensed the vibration of mobile terminal by vibrating diaphragm, thus getting the acoustic signals triggered on mobile terminals.
In actual applications, owing to some device of mobile terminal itself carries vibrating diaphragm, such as, the mike on mobile terminal, speaker, receiver etc., therefore, it can the vibrating diaphragms such as the mike, speaker or the receiver that are carried by mobile terminal and obtain the acoustic signals for mobile terminal.
In step S202, mobile terminal determines whether this acoustic signals is digital signal.
Judged result according to mobile terminal, performs step S203a or step S203b respectively:
In step S203a, when determining that this acoustic signals is digital signal, the characteristic information of this digital signal of acquisition for mobile terminal, however, it is determined that go out characteristic information and meet preset threshold range, it is determined that this acoustic signals meets pre-conditioned.
In step S203b, when determining that this acoustic signals is analogue signal, this acoustic signals is converted to digital signal by mobile terminal, triggers and performs step S203a.
Wherein, described step S203a and step S203b can particularly as follows:
It is understandable that, owing to the hammer action time is very of short duration, and propagated by the solid of equipment, therefore, mobile terminal is subject to user, and to knock the acoustic signals of generation be a kind of special acoustic signals, itself and mobile terminal are subject to the acoustic signals that other active forces produce, or the acoustic signals that the outside vibration source of mobile terminal transmission produces differs.Analyze the acoustic signals knocking generation from electrical point, such as will hit against the acoustic signals of generation and convert digital signal to, this digital signal is carried out digital processing analysis, it can be deduced that analysis below result:
First, due to acoustic signals duration very short (millisecond rank), level is relatively large, plus when knocking being the mike directly shaking mobile terminal itself, it is that solid is propagated, the signal intensity of therefore corresponding than general acoustic signals digital signal is bigger, and the whole digital signal frequency range of frequency coverage, and the amplitude difference of each frequency is little.
Thus, the present embodiment based on the feature of digital signal corresponding to above-mentioned acoustic signals or feature, can identify or judge whether the acoustic signals got meets pre-conditioned.
Such as, if acoustic signals is analogue signal, it is necessary to this acoustic signals is converted to the sound wave digital signal of correspondence, same, obtain its characteristic information, however, it is determined that go out this characteristic information and meet corresponding preset threshold range, it is determined that this acoustic signals meets pre-conditioned.
Further, such as, the mike, receiver or the speaker that are carried by mobile terminal convert this acoustic signals to analog electrical signal, then, this analog electrical signal are carried out analog digital conversion (such as, changed by analog-digital converter), obtain digital signal, this digital signal is carried out digital processing, to obtain characteristic information, then, judge whether this acoustic signals is that user is to knock the acoustic signals that form sends according to characteristic information.For the ease of judging, the present embodiment is after obtaining analog electrical signal, before carrying out analog digital conversion, can also be amplified analog electrical signal processing, it is amplified processing to this analog electrical signal as by programmable gain amplifier, wherein, the process of digital signal can be performed by digital processing chip.
Wherein, the characteristic information of digital signal may include that at least one or two combination of the above in other characteristic informations such as frequency information (including frequency distribution, bandwidth etc.), amplitude information, temporal information.
Further, such as, characteristic information includes: when frequency information, amplitude information, temporal information, judge whether this frequency information meets predeterminated frequency scope respectively, whether this amplitude information meets is preset amplitude range, whether this temporal information meets preset time range, wherein, predeterminated frequency scope, preset amplitude range, preset time range can respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information is arranged, and this preset number signal is that mobile terminal is subject to user and knocks the digital signal that the acoustic signals of generation is corresponding.
Wherein, at needs, the present embodiment judges whether multiple characteristic information meets pre-conditioned, when identifying the acoustic signals knocking generation, such as, said frequencies information, amplitude information, temporal information judges for three times, can identify based on judged result repeatedly, further, when three judged results be time, just determine that acoustic signals meets pre-conditioned, or, when multiple judged results there being certain several judged result for being, determine that acoustic signals meets pre-conditioned, these all can set according to practical situation, the situation that judged result is yes is more many, accuracy of identification is more high.
In step S204, it is determined that when this acoustic signals meets pre-conditioned, this acoustic signals of acquisition for mobile terminal knock mode.
In step S205, mobile terminal, according to default corresponding table, transfers handover process corresponding with the mode of knocking.
In step S206, based on this handover process, mobile terminal carries out horizontal/vertical screen switching.
Wherein, described step S204 to step S206 can particularly as follows:
It is understood that acquisition for mobile terminal user by before knocking acoustic signals produced by mobile terminal, in addition it is also necessary to do some and pre-set, such as, it is possible to including:
Step 1, receive user input instruction;
Step 2, according to this input instruction, what arrange acoustic signals knocks mode;
Step 3, for each mode of knocking arrange correspondence handover process, generate knock the mode corresponding table with handover process.
That is, each knocking the corresponding handover process of mode, thus mobile terminal according to this corresponding table knocking mode and handover process, can transfer handover process corresponding with the mode of knocking, wherein, this handover process indicates and mobile terminal is carried out horizontal/vertical screen switching.
Wherein, the mode of knocking can be determined according to the number of times or frequency knocking mobile terminal:
Such as, in a kind of possible embodiment, if described in the mode of knocking indicate and knock the number of times of mobile terminal for once, then according to this correspondence table, it is determined that handover process perpendicular shielded display pattern for transverse screen showing, pattern switches to and transfers;
In the embodiment that another is possible, if described in the mode of knocking indicate the number of times knocking mobile terminal to be twice, then according to this correspondence table, it is determined that handover process for switching to transverse screen display pattern and transferring by perpendicular screen display pattern.
Knock once it is to say, user sets, transverse screen can being shown, pattern switches to perpendicular screen display pattern;Knock twice, perpendicular screen display pattern can be switched to transverse screen display pattern.
In the embodiment that another is possible, when user can set that and quickly knocks, current display mode is switched over, namely, it is determined that when knocking mode for quickly knocking, if being currently transverse screen, then by horizontal screen switching to perpendicular screen, it is perpendicular screen if current, then perpendicular screen is switched to transverse screen.
Further, if number of taps reaches predetermined threshold value in preset time period, as knocked in 2s more than 3 times, then it is believed that form of knocking is for quickly to knock, etc.;It addition, it is contemplated that knock mode above by way of example only, do not constitute limitation of the invention.
It is understood that this embodiment does not have the part described in detail, such as contents such as the acquisition detections to the generation of acoustic signals and acoustic signals, it is possible to describe referring to correlation step in first embodiment, repeat no more herein.
From the above, the horizontal/vertical screen changing method that the present embodiment provides, when getting user by knocking acoustic signals produced by mobile terminal, this acoustic signals is detected, if this acoustic signals meets pre-conditioned, what then obtain acoustic signals knocks mode, transfers corresponding handover process according to the mode of knocking thereafter, and based on handover process, mobile terminal is carried out horizontal/vertical screen switching.The present invention knocks the action of mobile terminal by acoustic signals identification user, thus realizing mobile terminal is carried out horizontal/vertical screen switching, namely trigger only by acoustic signals, carry out the operation of complexity for mobile terminal without user, just can realize horizontal/vertical screen switching, efficiency and the motility of operation are higher, simplify operating procedure simultaneously, meet user's request.
3rd embodiment
For ease of better implementing the horizontal/vertical screen changing method that the embodiment of the present invention provides, the embodiment of the present invention also provides for a kind of device based on above-mentioned horizontal/vertical screen changing method.Wherein the implication of noun is identical with the method for above-mentioned horizontal/vertical screen switching, implements the explanation that details is referred in embodiment of the method.
Referring to the structural representation of Fig. 3 a, Fig. 3 a horizontal/vertical screen switching device provided for the embodiment of the present invention, this device can include the first acquiring unit 301, second acquisition unit 302, transfer unit 303 and switch unit 304.
Wherein said first acquiring unit 301, is used for obtaining user by knocking acoustic signals produced by mobile terminal;Second acquisition unit 302, is used for determining when described acoustic signals meets pre-conditioned, what obtain described acoustic signals knocks mode.
It is understood that the acoustic signals in the embodiment of the present invention can be subject to external forces (as user knocks) for mobile terminal and mechanical vibration occur, thus the acoustic signals produced (vibration signal can also be called).
Such as, when user knocks mobile terminal (such as mobile phone), mobile terminal can vibrate, thus mobile terminal can produce acoustic signals, simultaneously, this acoustic signals can also be mobile terminal transmission, and the acoustic signals produced by outside vibration source, present invention is generally directed to user and is analyzed by knocking acoustic signals produced by mobile terminal.
Wherein, user knocks the mode of mobile terminal to be had a lot, such as, it is possible to for clicking directly on mobile terminal with finger, it is also possible to be utilize other hard things, such as with penholder, key etc., clicks mobile terminal.
In actual applications, owing to some device of mobile terminal itself carries vibrating diaphragm, such as, the mike on mobile terminal, speaker, receiver etc., therefore, it can the vibrating diaphragms such as the mike, speaker or the receiver that are carried by mobile terminal and obtain the acoustic signals for mobile terminal.
Based on this, the first acquiring unit 301, specifically for the mike, receiver or the speaker that are carried by mobile terminal, obtains user by knocking acoustic signals produced by mobile terminal.
Namely, after acquisition for mobile terminal to acoustic signals, need acoustic signals is detected, it may be judged whether meet pre-conditioned, such as, can determine whether this acoustic signals meets default feature request according to the characteristic information of acoustic signals, such as, it is judged that when feature letter meets default feature request, then judge that acoustic signals meets pre-conditioned, otherwise, it is determined that this acoustic signals does not meet pre-conditioned.Wherein, characteristic information may include that one or more combination in frequency information, amplitude information, temporal information.
Thereafter, transferring unit 303, the mode of knocking described in basis transfers corresponding handover process, and mobile terminal is carried out horizontal/vertical screen switching by the instruction of described handover process;Switch unit 304, for based on described handover process, carrying out horizontal/vertical screen switching to described mobile terminal.
It is understandable that, after mobile terminal determines the mode of knocking, transfer and knock the handover process that mode is corresponding with this, wherein, this corresponding relation knocking mode and handover process can preset in the terminal, after mobile terminal determines handover process, according to handover process, mobile terminal is carried out horizontal/vertical screen switching.
As shown in Figure 3 b, this horizontal/vertical screen switching device can also include:
Receive unit 305, for receiving the input instruction of user;
Arranging unit 306, for according to described input instruction, what arrange acoustic signals knocks mode;
Generate unit 307, for arranging the handover process of correspondence for the mode of knocking described in each, generate and knock the mode corresponding table with handover process.
Based on this, this transfers unit 303 can be specifically for: according to this correspondence table, transfers handover process corresponding with the mode of knocking.
That is, each knocking the corresponding handover process of mode, thus mobile terminal according to this corresponding table knocking mode and handover process, can transfer handover process corresponding with the mode of knocking, wherein, this handover process indicates and mobile terminal is carried out horizontal/vertical screen switching.
Wherein, the mode of knocking can be determined according to the number of times or frequency knocking mobile terminal:
Such as, unit 303 is transferred described in, it is possible to including:
In a kind of possible embodiment, first transfers subelement, if for described in the mode of knocking indicate and knock the number of times of mobile terminal for once, then according to described corresponding table, it is determined that handover process is for showing that by transverse screen pattern switches to perpendicular screen display pattern and transfers;
In the embodiment that another is possible, second transfers subelement, if the mode of knocking described in being used for indicates the number of times knocking mobile terminal to be twice, then according to described corresponding table, it is determined that handover process for switching to transverse screen display pattern and transferring by perpendicular screen display pattern.
Knock once it is to say, user sets, transverse screen can being shown, pattern switches to perpendicular screen display pattern;Knock twice, perpendicular screen display pattern can be switched to transverse screen display pattern.
In the embodiment that another is possible, when user can set that and quickly knocks, current display mode is switched over, namely, it is determined that when knocking mode for quickly knocking, if being currently transverse screen, then by horizontal screen switching to perpendicular screen, it is perpendicular screen if current, then perpendicular screen is switched to transverse screen.
Further, if number of taps reaches predetermined threshold value in preset time period, as knocked in 2s more than 3 times, then it is believed that form of knocking is for quickly to knock, etc.;It addition, it is contemplated that knock mode above by way of example only, do not constitute limitation of the invention.
Further, the present embodiment based on the feature of digital signal corresponding to above-mentioned acoustic signals or feature, can identify or judge whether the acoustic signals got meets pre-conditioned.
Such as, horizontal/vertical screen switching device can also include determining unit 308, for determining whether described acoustic signals is digital signal, when determining that described acoustic signals is digital signal, obtain the characteristic information of described digital signal, if it is determined that described characteristic information meets preset threshold range, it is determined that described acoustic signals meets pre-conditioned.
This determines that unit 308 can be also used for: when determining that described acoustic signals is analogue signal, described acoustic signals is converted to digital signal, trigger the step of the characteristic information of the described digital signal of described acquisition, when determining that described characteristic information meets preset threshold range, it is determined that described acoustic signals meets pre-conditioned.
Such as, if acoustic signals is analogue signal, it is necessary to this acoustic signals is converted to the sound wave digital signal of correspondence, same, obtain its characteristic information, however, it is determined that go out this characteristic information and meet corresponding preset threshold range, it is determined that this acoustic signals meets pre-conditioned.
Again such as, the mike, receiver or the speaker that are carried by mobile terminal convert this acoustic signals to analog electrical signal, then, this analog electrical signal is carried out analog digital conversion (such as, changed by analog-digital converter), obtains digital signal, this digital signal is carried out digital processing, to obtain characteristic information, then, judge whether this acoustic signals is that user is to knock the acoustic signals that form sends according to characteristic information.For the ease of judging, the present embodiment is after obtaining analog electrical signal, before carrying out analog digital conversion, can also be amplified analog electrical signal processing, it is amplified processing to this analog electrical signal as by programmable gain amplifier, wherein, the process of digital signal can be performed by digital processing chip.
Wherein, the characteristic information of digital signal may include that at least one or two combination of the above in other characteristic informations such as frequency information (including frequency distribution, bandwidth etc.), amplitude information, temporal information.
Further, such as, characteristic information includes: when frequency information, amplitude information, temporal information, judge whether this frequency information meets predeterminated frequency scope respectively, whether this amplitude information meets is preset amplitude range, whether this temporal information meets preset time range, wherein, predeterminated frequency scope, preset amplitude range, preset time range can respectively according to frequency information corresponding to preset number signal, amplitude information, temporal information is arranged, and this preset number signal is that mobile terminal is subject to user and knocks the digital signal that the acoustic signals of generation is corresponding.
When being embodied as, above unit can realize as independent entity, it is also possible to carries out combination in any, realizes as same or several entities, and being embodied as of above unit referring to embodiment of the method above, can not repeat them here.
This horizontal/vertical screen switching device specifically can be integrated in flat board PC, mobile phone etc. to be possessed storage element and is provided with microprocessor and has in the terminating machine of operational capability.
From the above, the horizontal/vertical screen switching device that the present embodiment provides, when getting user by knocking acoustic signals produced by mobile terminal, this acoustic signals is detected, if this acoustic signals meets pre-conditioned, what then obtain acoustic signals knocks mode, transfers corresponding handover process according to the mode of knocking thereafter, and based on handover process, mobile terminal is carried out horizontal/vertical screen switching.The present invention knocks the action of mobile terminal by acoustic signals identification user, thus realizing mobile terminal is carried out horizontal/vertical screen switching, namely trigger only by acoustic signals, carry out the operation of complexity for mobile terminal without user, just can realize horizontal/vertical screen switching, efficiency and the motility of operation are higher, simplify operating procedure simultaneously, meet user's request.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, certain embodiment there is no the part described in detail, it is possible to referring to the detailed description above with respect to horizontal/vertical screen changing method, repeat no more herein.
The described horizontal/vertical screen switching device that the embodiment of the present invention provides, such as computer, panel computer, the mobile phone with touch function etc., described horizontal/vertical screen switching device belongs to same design with the horizontal/vertical screen changing method in foregoing embodiments, described horizontal/vertical screen switching device can be run the either method provided in described horizontal/vertical screen changing method embodiment, it implements process and refers to described horizontal/vertical screen changing method embodiment, repeats no more herein.
It should be noted that, for horizontal/vertical screen changing method of the present invention, this area common test personnel are appreciated that all or part of flow process realizing horizontal/vertical screen changing method described in the embodiment of the present invention, can be by the hardware that computer program controls to be correlated with to complete, described computer program can be stored in a computer read/write memory medium, as being stored in the memorizer of terminal, and performed by least one processor in this terminal, the flow process of embodiment such as described horizontal/vertical screen changing method can be included in the process of implementation.Wherein, described storage medium can be magnetic disc, CD, read only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory) etc..
Described horizontal/vertical screen switching device for the embodiment of the present invention, its each functional module can be integrated in one and process in chip, it is also possible to be that modules is individually physically present, it is also possible to two or more modules are integrated in a module.Above-mentioned integrated module both can adopt the form of hardware to realize, it would however also be possible to employ the form of software function module realizes.If described integrated module is using the form realization of software function module and as independent production marketing or use, it is also possible to being stored in a computer read/write memory medium, described storage medium is such as read only memory, disk or CD etc..
A kind of horizontal/vertical screen the changing method above embodiment of the present invention provided and device are described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for those skilled in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (12)

1. a horizontal/vertical screen changing method, it is characterised in that including:
Obtain user by knocking acoustic signals produced by mobile terminal;
Determining when described acoustic signals meets pre-conditioned, what obtain described acoustic signals knocks mode;
Transferring corresponding handover process according to the described mode of knocking, mobile terminal is carried out horizontal/vertical screen switching by the instruction of described handover process;
Based on described handover process, described mobile terminal is carried out horizontal/vertical screen switching.
2. horizontal/vertical screen changing method according to claim 1, it is characterised in that described acquisition user is by, before knocking acoustic signals produced by mobile terminal, also including:
Receive the input instruction of user;
According to described input instruction, what arrange acoustic signals knocks mode;
The mode of knocking described in each is arranged to the handover process of correspondence, generate and knock the mode corresponding table with handover process;
The mode of knocking described in described basis transfers corresponding handover process particularly as follows: according to described corresponding table, transfers and knocks the corresponding handover process of mode with described.
3. horizontal/vertical screen changing method according to claim 2, it is characterised in that described according to described corresponding table, transfers and knocks the corresponding handover process of mode with described, including:
If described in the mode of knocking indicate and knock the number of times of mobile terminal for once, then according to described corresponding table, it is determined that handover process is for showing that by transverse screen pattern switches to perpendicular screen display pattern and transfers;
If described in the mode of knocking indicate the number of times knocking mobile terminal to be twice, then according to described corresponding table, it is determined that handover process for switching to transverse screen display pattern and transferring by perpendicular screen display pattern.
4. horizontal/vertical screen changing method according to claim 1, it is characterised in that described to determine that described acoustic signals meets pre-conditioned, including:
Determine whether described acoustic signals is digital signal;
When determining that described acoustic signals is digital signal, obtain the characteristic information of described digital signal;
If it is determined that described characteristic information meets preset threshold range, it is determined that described acoustic signals meets pre-conditioned.
5. horizontal/vertical screen changing method according to claim 4, it is characterised in that described determine whether described acoustic signals is after digital signal, also includes:
When determining that described acoustic signals is analogue signal, described acoustic signals is converted to digital signal;
Trigger the step of the characteristic information of the described digital signal of described acquisition, when determining that described characteristic information meets preset threshold range, it is determined that described acoustic signals meets pre-conditioned.
6. the horizontal/vertical screen changing method according to any one of claim 1 to 5, it is characterised in that described acquisition user passes through to knock acoustic signals produced by mobile terminal, including:
By mike, receiver or speaker that mobile terminal carries, obtain user by knocking acoustic signals produced by described mobile terminal.
7. a horizontal/vertical screen switching device, it is characterised in that including:
First acquiring unit, is used for obtaining user by knocking acoustic signals produced by mobile terminal;
Second acquisition unit, is used for determining when described acoustic signals meets pre-conditioned, what obtain described acoustic signals knocks mode;
Transferring unit, the mode of knocking described in basis transfers corresponding handover process, and mobile terminal is carried out horizontal/vertical screen switching by the instruction of described handover process;
Switch unit, for based on described handover process, carrying out horizontal/vertical screen switching to described mobile terminal.
8. horizontal/vertical screen switching device according to claim 7, it is characterised in that described device also includes:
Receive unit, for receiving the input instruction of user;
Arranging unit, for according to described input instruction, what arrange acoustic signals knocks mode;
Generate unit, for arranging the handover process of correspondence for the mode of knocking described in each, generate and knock the mode corresponding table with handover process;
Described transfer unit for: according to described corresponding table, transfer and knock the corresponding handover process of mode with described.
9. horizontal/vertical screen switching device according to claim 8, it is characterised in that described in transfer unit, including:
First transfers subelement, if for described in the mode of knocking indicate and knock the number of times of mobile terminal for once, then according to described corresponding table, it is determined that handover process is for showing that by transverse screen pattern switches to perpendicular screen display pattern and transfers;
Second transfers subelement, if the mode of knocking described in being used for indicates the number of times knocking mobile terminal to be twice, then according to described corresponding table, it is determined that handover process for switching to transverse screen display pattern and transferring by perpendicular screen display pattern.
10. horizontal/vertical screen switching device according to claim 7, it is characterized in that, described device also includes determining unit, for determining whether described acoustic signals is digital signal, when determining that described acoustic signals is digital signal, obtain the characteristic information of described digital signal, however, it is determined that go out described characteristic information and meet preset threshold range, it is determined that described acoustic signals meets pre-conditioned.
11. horizontal/vertical screen switching device according to claim 10, it is characterised in that described determine that unit is additionally operable to:
When determining that described acoustic signals is analogue signal, described acoustic signals is converted to digital signal, trigger the step of the characteristic information of the described digital signal of described acquisition, when determining that described characteristic information meets preset threshold range, it is determined that described acoustic signals meets pre-conditioned.
12. the horizontal/vertical screen switching device according to any one of claim 7 to 11, it is characterised in that described first acquiring unit is used for:
By mike, receiver or speaker that mobile terminal carries, obtain user by knocking acoustic signals produced by described mobile terminal.
CN201610038236.3A 2016-01-20 2016-01-20 Transverse and vertical screen switching method and apparatus Pending CN105718162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610038236.3A CN105718162A (en) 2016-01-20 2016-01-20 Transverse and vertical screen switching method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610038236.3A CN105718162A (en) 2016-01-20 2016-01-20 Transverse and vertical screen switching method and apparatus

Publications (1)

Publication Number Publication Date
CN105718162A true CN105718162A (en) 2016-06-29

Family

ID=56147958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610038236.3A Pending CN105718162A (en) 2016-01-20 2016-01-20 Transverse and vertical screen switching method and apparatus

Country Status (1)

Country Link
CN (1) CN105718162A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958860A (en) * 2018-06-06 2018-12-07 Oppo(重庆)智能科技有限公司 screen display state control method and related product
CN109542232A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
US20130106700A1 (en) * 2011-11-02 2013-05-02 Kabushiki Kaisha Toshiba Electronic apparatus and input method
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal
CN104063170A (en) * 2014-04-09 2014-09-24 苏州天鸣信息科技有限公司 Method for controlling screen picture to move based on gestures
CN104182191A (en) * 2014-08-06 2014-12-03 深圳市同洲电子股份有限公司 Control method and control terminal for screen content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
US20130106700A1 (en) * 2011-11-02 2013-05-02 Kabushiki Kaisha Toshiba Electronic apparatus and input method
CN103645845A (en) * 2013-11-22 2014-03-19 华为终端有限公司 Knocking control method and terminal
CN104063170A (en) * 2014-04-09 2014-09-24 苏州天鸣信息科技有限公司 Method for controlling screen picture to move based on gestures
CN104182191A (en) * 2014-08-06 2014-12-03 深圳市同洲电子股份有限公司 Control method and control terminal for screen content

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958860A (en) * 2018-06-06 2018-12-07 Oppo(重庆)智能科技有限公司 screen display state control method and related product
CN108958860B (en) * 2018-06-06 2022-03-08 Oppo(重庆)智能科技有限公司 Screen display state control method and related product
CN109542232A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode

Similar Documents

Publication Publication Date Title
US10466961B2 (en) Method for processing audio signal and related products
CN105611064A (en) Mobile terminal mode switching method and device
CN110780741B (en) Model training method, application running method, device, medium and electronic equipment
EP1995720A3 (en) Electronic sound screening system and method of accoustically improving the environment
CN109119092A (en) Beam position switching method and apparatus based on microphone array
CN106384599A (en) Cracking voice identification method and device
CN105549744B (en) A kind of screen luminance of terminal adjusting method and device
CN105719672A (en) Recording scene mode switching method and recording scene mode switching mode device
CN105682258B (en) A kind of switching method and apparatus of subscriber identification card
CN105718162A (en) Transverse and vertical screen switching method and apparatus
CN105704839B (en) A kind of Bluetooth connecting method and device
CN105718165A (en) Startup method and device of terminal background application
CN105718178B (en) A kind of methods of exhibiting and device of PUSH message
CN105718773A (en) Terminal unlocking method and device
CN105491297B (en) A kind of method of adjustment and device of camera parameter
CN105472172A (en) Conversation mode switching method and device
CN105577863A (en) Sound recording method and apparatus
CN105718175A (en) Screen display parameter adjusting method and device
CN105718814A (en) Protection method and device of terminal application
CN105721679A (en) Conversation switching method and conversation switching device
CN105721678A (en) Calling processing method and calling processing device
CN109032482A (en) Split screen control method, device, storage medium and electronic equipment
CN105471921A (en) Application registration method and device
CN105718557B (en) A kind of information search method and device
CN105718179B (en) Information processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160629

RJ01 Rejection of invention patent application after publication