Embodiment
Core of the present invention provides the display control method and the portable terminal of portable terminal; Obtain the acceleration that mobile terminal display screen moves on all directions; According to acceleration the displaying contents on the display screen is carried out the position conversion on all directions, and the displaying contents after the outgoing position conversion.
In order to make those skilled in the art person understand the present invention program better, and make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the present invention done further detailed explanation.
The first embodiment flow process of the display control method of portable terminal of the present invention is as shown in Figure 1:
Step 101: obtain the acceleration that mobile terminal display screen moves on all directions.
Concrete, the acceleration that can on all directions, move through the acceleration transducer reading displayed screen that is provided with in advance.
Step 102: the displaying contents on the display screen is carried out the position conversion on all directions according to acceleration.
Concrete; Obtain display screen location parameter on all directions in the coordinate system that is provided with in advance; Call in advance the position transformational relation of setting up, location parameter and acceleration as the input parameter of position transformational relation, are calculated display screen location parameter after the conversion on all directions in coordinate system according to the position transformational relation; According to the position of the adjustment displaying contents of the location parameter after the conversion on display screen, the invariant position of displaying contents in coordinate system before and after the adjustment.
Step 103: the displaying contents after the outgoing position conversion.
The second embodiment flow process of the display control method of portable terminal of the present invention is as shown in Figure 2, and this embodiment shows in detail the demonstration control procedure of portable terminal:
Step 201: mobile terminal-opening.
Step 202: minimum acceleration threshold value and high acceleration threshold value are set in advance.
In order to prevent that portable terminal from still carrying out the position conversion to displaying contents when translational speed is slow; Therefore minimum acceleration threshold value is set; So that translational acceleration when being lower than this minimum acceleration threshold value, needn't carry out the position conversion, to avoid expending the electric weight of portable terminal; And; For fear of the portable terminal translational acceleration when too fast; The position conversion excessively causes the reading property variation of displaying contents; Therefore high acceleration threshold value is set, so that translational acceleration is when being higher than this high acceleration threshold value, is that translational acceleration carries out the position conversion with this high acceleration threshold value.
Step 203: judge whether the enable possition translation function, if then execution in step 204; Otherwise, execution in step 210.
Because the unlatching of position transformation function requires portable terminal to carry out corresponding calculated; And computational process can consume the electric weight of portable terminal; Therefore can select whether to open this position transformation function as required; If open just with the displaying contents output after the conversion of position, if unlatching is not just directly exported displaying contents.
Step 204: read the acceleration that the display screen of portable terminal moves on all directions through the acceleration transducer that is provided with in advance.
Acceleration transducer is a kind of electronic equipment that can measure accelerative force, its through measuring because the acceleration that gravity causes can calculate equipment angle of inclination with respect to the horizontal plane, through analyzing dynamic acceleration, the mode that can acquisition equipment moves.
In the embodiment of the invention, when display screen moves in two dimensional surface, X axle acceleration and the Y axle acceleration of acceleration transducer reading displayed screen in the two-dimensional coordinate system that is provided with in advance; When display screen moved in three-dimensional planar, acceleration transducer read X axle acceleration, Y axle acceleration and the Z axle acceleration of said display screen in the three-dimensional system of coordinate that is provided with in advance.
Step 205: judge that whether acceleration is greater than minimum acceleration threshold value, if then execution in step 206; Otherwise, execution in step 210.
Step 206: judge that whether acceleration is less than high acceleration threshold value, if then execution in step 207; Otherwise execution in step 208.
Step 207: displaying contents is carried out the position conversion on all directions, execution in step 209 according to acceleration.
Obtain display screen location parameter on all directions in the coordinate system that is provided with in advance; Call the position transformational relation of setting up in advance; With location parameter and acceleration input parameter as the position transformational relation; Calculate display screen location parameter after the conversion on all directions in coordinate system according to the position transformational relation, according to the position of the adjustment displaying contents of the location parameter after the conversion on display screen, the invariant position of displaying contents in coordinate system before and after the adjustment.
Step 208: displaying contents is carried out the position conversion on all directions according to high acceleration threshold value.
This step is consistent with the position transfer process of step 207, and different only being repeated no more location parameter and the input parameter of high acceleration as the position transformational relation at this.
Step 209: the displaying contents after the outgoing position conversion, finish current flow process.
Step 210: directly export displaying contents, finish current flow process.
The 3rd embodiment flow process of the display control method of portable terminal of the present invention is as shown in Figure 3; It is example that this embodiment moves in two dimensional surface with mobile phone; The displaying contents that shows mobile phone display screen shows control, so that the constant process of the relative customer location of displaying contents:
Step 301: position transformation function is set in advance, and minimum acceleration threshold value and high acceleration threshold value.
Step 302: judge whether the enable possition translation function, if then execution in step 303; Otherwise, execution in step 309.
Step 303: through X axle acceleration and the Y axle acceleration of acceleration transducer reading displayed screen in two-dimensional coordinate system that is provided with in advance.
Acceleration transducer can detect the acceleration of X axle and Y axle both direction, and acceleration transducer can be exported analog signal or digital signal.Wherein, analog signal is exactly an output voltage, after mobile phone is read concrete magnitude of voltage, just can obtain the acceleration of X axle and Y axle respectively through analog/digital conversion; Digital signal is exactly an output pulse signal, through detecting the acceleration that duty of ratio just can draw X axle and Y axle respectively.
Step 304: judge that whether acceleration is greater than minimum acceleration threshold value, if then execution in step 305; Otherwise, execution in step 309.
Step 305: judge that whether acceleration is less than high acceleration threshold value, if then execution in step 306; Otherwise, execution in step 307.
Step 306: displaying contents is carried out position conversion, execution in step 308 according to X axle acceleration and Y axle acceleration.
Mobile phone only moves at X axle and Y direction in the present embodiment, and therefore the reduction formula through acceleration calculation displaying contents displacement is following:
fx(a
x)=b
x(v
x×a
x×T+0.5×a
x×T
2); (1)
fy(a
y)=b
y(v
y×a
y×T+0.5×a
y×T
2); (2)
Wherein, v
x=v
X0+ a
x* T, v
y=v
Y0+ a
y* T; (3)
Wherein, a
xAnd a
yBe respectively the X axle read through acceleration transducer and the accekeration of Y axle, function f x (a
x) be the formula that calculates mobile phone X axle displacement (with respect to display screen); Function f y (a
y) be the formula that calculates the moving distance of mobile phone y-axis shift (with respect to display screen).
Wherein, T is a sense cycle; v
xBe the axial translational speed of x, b
xBe X axle coefficient, mainly the actual displacement of mobile phone convert to screen content need be in the display screen upper edge distance that oppositely moves of X axle; b
yBe Y axle coefficient, mainly the actual displacement of mobile phone convert to screen content need be in the display screen upper edge distance that oppositely moves of Y axle.v
xCan be through previous speed (v
X0) calculate, the Y axle repeats no more at this by that analogy.
The computing formula of carrying out the position conversion is following:
X’=X-fx(a
x);Y’=Y-fy(a
y); (4)
Wherein, X and Y are respectively displaying contents coordinates on X axle and Y axle before the conversion of position, with the fx (a that calculates
x) and fy (a
y) bring in the following formula (4), can obtain displaying contents on display screen respectively along the moving distance X of X axle and y-axis shift ' and Y '.
Need to prove; Present embodiment only shows the displaying contents transfer process of mobile phone when two dimensional surface moves, in like manner, and when mobile phone moves at three dimensions; Account form in the account form that moves relative to display screen on each reference axis and when two dimension is consistent; All through acceleration calculation speed, and, repeat no more at this through the distance that speed calculation moves.
Step 307: displaying contents is moved according to high acceleration threshold value.
Step 308: the displaying contents after outgoing position moves on the display screen, finish current flow process.
As shown in Figure 4, be embodiment illustrated in fig. 3 in sketch map before and after the conversion of displaying contents position, wherein left side figure changes the preceding displaying contents and the relative position of display screen, with the lower side of display screen and left side X axle and the Y axle as reference axis; When according to as right figure in during arrow direction indication moving display screen; Then calculating through abovementioned steps to make displaying contents on display screen, move right; Thereby guarantee that the relative position of displaying contents on reference axis is constant, just displaying contents is with respect to the invariant position of human eye.
Step 309: on display screen, directly export displaying contents, finish current flow process.
Embodiment by the invention described above display control method can know; When portable terminal appearance shake, when causing showing instability, through the conversion of displaying contents; Make displaying contents not be moved with respect to the user; Improved the exhibit stabilization of portable terminal, and, therefore improved user experience because portable terminal can guarantee the stable of displaying contents.
Corresponding with the embodiment of display control method of the present invention, the present invention also provides the embodiment of portable terminal.
The first embodiment block diagram of portable terminal of the present invention is as shown in Figure 5, and this portable terminal comprises: acceleration obtainment unit 510, position converting unit 520 and content output unit 530.
Wherein, acceleration obtainment unit 510 is used to obtain the acceleration that mobile terminal display screen moves on all directions; Position converting unit 520 is used for according to said acceleration the displaying contents on the said display screen being carried out the position conversion on the said all directions; Content output unit 530 is used to export the displaying contents after change said position.
The second embodiment block diagram of portable terminal of the present invention is as shown in Figure 6, and this portable terminal comprises: the preset unit of function-judging unit 610, acceleration obtainment unit 620, first 630, first judging unit 640, position converting unit 650 and content output unit 660.
Wherein, function-judging unit 610 is used to judge whether to open the position transformation function that is provided with in advance; Acceleration obtainment unit 620 be used for when the judged result of said function-judging unit 610 when being, obtain the acceleration that said mobile terminal display screen moves; The first preset unit 630 is used for being provided with in advance minimum acceleration threshold value; First judging unit 640 is used to judge that whether said acceleration is greater than said minimum acceleration threshold value; Position converting unit 650 comprises first converting unit (not shown among Fig. 6), be used for when the judged result of said first judging unit 640 when being, according to said acceleration said displaying contents is carried out the position conversion on all directions; Content output unit 660 is used to export the displaying contents after change said position; Said content output unit 660 also comprises first output unit (not shown among Fig. 6); Be used for when the judged result of said first judging unit 640 for not or the judged result of said function-judging unit 610 for not the time, directly export said displaying contents.
Wherein, acceleration obtainment unit 620 can comprise acceleration transducer (not shown among Fig. 6): this unit is used for reading the acceleration that said display screen moves through the acceleration transducer that is provided with in advance on all directions.
Wherein, position converting unit 650 can comprise (not shown among Fig. 6): parameter acquiring unit is used for obtaining the location parameter of said display screen at the coordinate system that is provided with in advance; Concern call unit, be used to call in advance the position transformational relation of setting up, with said location parameter and said acceleration input parameter as said position transformational relation; Parameter calculation unit calculates said display screen location parameter after the conversion on all directions in said coordinate system according to said position transformational relation; Position adjustment unit is used for adjusting the position of said displaying contents on said display screen according to the location parameter after the said conversion, the invariant position of displaying contents in said coordinate system before and after the said adjustment.
The 3rd embodiment block diagram of portable terminal of the present invention is as shown in Figure 7, and this portable terminal comprises: acceleration obtainment unit 710, the second preset unit 720, second judging unit 730, position converting unit 740 and content output unit 750.
Wherein, acceleration obtainment unit 710 is used to obtain the acceleration that said mobile terminal display screen moves on all directions; The second preset unit 720 is used for being provided with in advance high acceleration threshold value; Second judging unit 730 is used to judge that whether said acceleration is greater than said high acceleration threshold value; Position converting unit 740 comprises second converting unit (not shown among Fig. 7); Be used for when the judged result of said second judging unit 730 when being; According to said high acceleration threshold value said displaying contents is carried out the position conversion on all directions; Perhaps, when the judged result of said second judging unit 730 for not the time, according to said acceleration said displaying contents is carried out the position conversion on all directions; Content output unit 750 is used to export the displaying contents after change said position.
Wherein, acceleration obtainment unit 710 can comprise acceleration transducer (not shown among Fig. 7): this unit is used for reading the acceleration that said display screen moves through the acceleration transducer that is provided with in advance on all directions.
Wherein, position converting unit 740 can comprise (not shown among Fig. 7): parameter acquiring unit is used for obtaining the location parameter of said display screen at the coordinate system that is provided with in advance; Concern call unit, be used to call in advance the position transformational relation of setting up, with said location parameter and said acceleration input parameter as said position transformational relation; Parameter calculation unit calculates said display screen location parameter after the conversion on all directions in said coordinate system according to said position transformational relation; Position adjustment unit is used for adjusting the position of said displaying contents on said display screen according to the location parameter after the said conversion, the invariant position of displaying contents in said coordinate system before and after the said adjustment.
Visible by above technical scheme provided by the invention; Obtain the acceleration that mobile terminal display screen moves in the embodiment of the invention on all directions; According to this acceleration displaying contents is carried out the position conversion on all directions, the displaying contents after the outgoing position conversion.Use the embodiment of the invention,, when causing showing instability,, make displaying contents not be moved, improved the exhibit stabilization of portable terminal with respect to the user through the conversion of displaying contents when shake appears in portable terminal; And, therefore improved user experience because portable terminal can guarantee the stable of displaying contents.
Those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Above-described embodiment of the present invention does not constitute the qualification to protection range of the present invention.Any modification of within spirit of the present invention and principle, being done, be equal to replacement and improvement etc., all should be included within protection scope of the present invention.