A kind of method of instinct type browsing content and portable terminalTechnical field
The present invention relates to the communications field, relate in particular to a kind of method and portable terminal of instinct type browsing content.
Background technology
Man-machine interface has developed decades, has developed into the intuitive interface of using mouse, touch-screen and multi-point touch panel from initial Command Line Interface, also fast development of internet meanwhile, and the layout of the page and performance are more and more abundanter.Along with the 3G/4G networks development, the number of mobile terminal Internet access has surpassed the number of using online computing, restraining factors when the networking speed of portable terminal has been not mobile terminal Internet access yet, at this moment, the little principal element that has become content and application on the restriction portable terminal of the size of mobile terminal screen.How to make portable terminal reach the operating experience the same and become a difficult problem with computer.The at present main dependence of non-mobile terminal of touch screen (as mobile phone) online reaches 5 definite dimension navigation keys up and down and carries out page rolling between content of pages, focus on and switch and clicking operation, the page that aims at portable terminal output set type comparatively succinct and content less, the view location is unquestionable substantially.But if browse conventional internet page, the searching or the location that then are certain content in the whole page or leaf are all very difficult, emerging multi-point touch screen technology has solved this problem to a certain extent, can use two fingers to remove the convergent-divergent and the mobile page intuitively, find content and click.But this implementation requires the user to make with the hands and could operate, and must use comparatively expensive touch-screen.
Publication number is the Chinese patent of CN101004657, and it discloses a kind of use one-handed performance, the arbitrarily equipment of convergent-divergent and translating displayed content.This equipment uses moving of acceleration transducer checkout equipment, and the viewing area of content is controlled according to the direction and the speed that move, but the implementation that this patent is mentioned can not reach the effect as " using magnifier to read newspaper ", because, only use acceleration transducer to be difficult to reach this purpose, adopt the restriction of this mode as follows:
(1) only uses acceleration transducer, can't the shift length that the user moves accurately be detected, cause the equipment can not accurate localization and mobile content image;
(2) only use acceleration transducer, can not detect for uniform motion;
(3) use the size of acceleration to control mobile distance and do not meet, cause operating difficulties with practical experience.
Summary of the invention
The technical problem to be solved in the present invention has been to provide a kind of method and portable terminal of instinct type browsing content, can not be subjected to the restriction of display screen size, browse the content of original size and original type-setting mode, realize seeking and/or pointing to the ad-hoc location of content by the mobile of simple and intuition and rotation portable terminal.
For addressing the above problem, the invention provides a kind of method of instinct type browsing content, described method comprises,
The position data of sensor portable terminal;
After processor receives described position data, judge whether described mobile terminal locations changes, when mobile terminal locations changed, the control screen display content changed accordingly.
In the above-mentioned method, wherein, the position data of described sensor portable terminal is specially,
The optical sensor of described sensor detects the displacement of portable terminal, and the acceleration induction device of described sensor detects the acceleration of portable terminal, and the gyroscope of described sensor detects the angle delta data that takes place on the portable terminal coordinate axis.
In the above-mentioned method, wherein, described processor judges whether described mobile terminal locations changes, and specifically comprises,
After processor receives the described position data of sensor, compare with a described position data last data recording before, if both differences are judged that described mobile terminal locations changes, and calculated the displacement and/or the rotation amount of described portable terminal.
In the above-mentioned method, wherein, when mobile terminal locations changed, the control screen display content changed accordingly, specifically comprise,
Processor is according to the displacement and/or the rotation amount of the portable terminal of described calculating, and the control screen display content is moved and/or convergent-divergent.
In the above-mentioned method, wherein, move along the Z axle when described displacement data shows portable terminal, i.e. portable terminal translation away from or near the user, then carry out and dwindle or enlarging function, screen content diminishes accordingly or becomes big.
In the above-mentioned method, wherein, when described displacement data shows that portable terminal is moving along X-axis, y-axis shift, promptly portable terminal left, move right or downwards, move up, then screen content turn right, toward move left or up, move down.
In the above-mentioned method, wherein, when described displacement and/or rotation amount show that portable terminal is around the Y-axis choosing rotation of turning left or turn right, perhaps on X axis or be rotated down, then screen content is turned right or past anticlockwise, perhaps downwards or move up, wherein X and Y-axis are represented the left and right directions and the above-below direction of mobile terminal screen respectively.
The present invention also provides a kind of portable terminal, comprises,
Sensor is used to detect the position data of portable terminal;
Processor, be used to receive described position data after, judge whether described mobile terminal locations changes, when mobile terminal locations changes, control screen display content change accordingly.
In the above-mentioned portable terminal, described sensor comprises optical sensor, acceleration induction device and gyroscope, wherein,
Described optical sensor is used to detect the displacement of portable terminal;
Described acceleration induction device is used to detect the acceleration of portable terminal;
Described gyroscope is used to detect the angle delta data that takes place on the portable terminal coordinate axis.The effect of PLSCONFM acceleration induction device sense acceleration
In the above-mentioned portable terminal, wherein,
Described preparation implement body is used for, after receiving the described position data of sensor, compare with the last position data record before the described position data, if both differences, judge that described mobile terminal locations changes, and calculate the displacement and/or the rotation amount of described portable terminal, according to displacement and/or rotation data, the control screen display content is moved and/or convergent-divergent.
Adopt technical scheme of the present invention, control screen display content according to the position and the directional data that detect portable terminal, the ad-hoc location of content is sought and pointed to realization by the mobile portable terminal of simple and intuition, improved the operating efficiency of screen display content and user's experience.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes a part of the present invention, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, does not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is portable terminal volume coordinate figure in the embodiment of the invention;
Fig. 2 be in the embodiment of the invention portable terminal along Z axial translation figure;
Fig. 3 be in the embodiment of the invention portable terminal along the Y-axis displacement diagram;
Fig. 4 is portable terminal anticlockwise figure in the embodiment of the invention;
Fig. 5 is a rotation diagram on the portable terminal in the embodiment of the invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearer, clear,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention provides a kind of method of instinct type browsing content, and this method comprises,
S101, the displacement of sensor portable terminal and spin data; Sensor comprises polytype sensors such as optical sensor, acceleration induction device and gyroscope, wherein optical sensor detects the displacement of portable terminal, the acceleration induction device detects the acceleration of portable terminal, the subsequent treatment device will will speed up degrees of data by methods such as integrations and be converted to displacement continuously, two displacements that obtain by two kinds of sensors can compensate mutually, reach accurate more displacement testing goal, gyroscope detects portable terminal X, Y, the angle delta data that takes place on the Z axle.The residing space coordinates of definition portable terminal are as follows, please refer to Fig. 1, embodiment of the invention portable terminal volume coordinate figure, and wherein, X, Y and Z axle are represented the left and right directions of mobile terminal screen respectively, above-below direction, and the direction of normal to screen.
S102, after processor receives any data from sensor, after the record, move with this or rotate before a last data recording compare, if it is different with last time to detect sensing datas such as this position or the anglec of rotation, illustrate that then displacement or rotation have taken place portable terminal, then calculate the displacement and the rotation amount of described portable terminal, be used for next step control screen display content.
S103, processor triggers corresponding function according to displacement that calculates and rotation amount, and the control screen display content is moved and variation such as convergent-divergent, specifically handles as follows:
(1) if the data after handling show portable terminal be translation away from or near the user, then carry out and dwindle or enlarging function, screen content diminishes or becomes big.
As shown in Figure 2, be embodiment of the invention portable terminal along Z axial translation figure, when portable terminal backward behind (Z axle negative direction) translation M, then screen is carried out and is dwindled.For example, can use following formula to come the amplification of bit-mapped on-screen content to dwindle according to displacement data, amplify multiple A0=(B/C) the * D that dwindles, wherein B is the amplification minification that portable terminal is supported, C for example is defined as C=10 for allowing the maximum constant value of portable terminal displacement, promptly maximum permission user moves portable terminal 10cm, D be the portable terminal translation away from or near user's numerical value, D be a vector, in order to represent the direction and the size of displacement.
(2) if the data after handling show that portable terminal is moved to the left, moves right, moves down or moves up, then screen content turn right, toward moving left, up move or moving down.
As shown in Figure 3, be embodiment of the invention portable terminal along the Y-axis displacement diagram, when portable terminal downwards during (Y-axis negative direction) mobile D, screen content also moves up accordingly.Vectorial A1=(B1/C) the * D1 of moving parameter, wherein B1 is the screen display content maximum moving distance that portable terminal is supported, C is for allowing the maximum constant value of portable terminal displacement, be defined as C=10, promptly maximumly allow the user to move portable terminal 10cm, D1 be portable terminal in the XY plane left or to the right or upwards or the distance of translation downwards.
D1 also can be bivector in the present embodiment, promptly portable terminal upwards or down and a left side or the right side move simultaneously, that is, can move at any direction on XY plane, the screen content of portable terminal is also being followed corresponding moving.
(3) if the data after handling show portable terminal around Y-axis turn left or turn right choosing rotation or on X axis or be rotated down, then screen content is turned right or is turned left or downwards or move up.
As shown in Figure 4, be embodiment of the invention portable terminal anticlockwise figure, when the portable terminal anticlockwise, screen content also is moved to the left accordingly; As shown in Figure 5, be rotation diagram on the embodiment of the invention portable terminal, when rotating on the portable terminal, screen content also moves up accordingly; Wherein mobile multiple A2=(B2/C1) * D2, wherein B2 is the maximum mobile multiple of screen display content that portable terminal is supported, C1 is for allowing the maximum constant value of portable terminal rotation, be defined as C1=30, the promptly maximum user of permission moves portable terminal 30 and spends, D2 be portable terminal around Y-axis turn left or turn right the choosing rotation angle or around the X-axis angle of rotation up or down, D2 be vectorial.
In the definition of this method, A0, A1, A2 are independent variable, can exert an influence for screen content simultaneously.
The embodiment of the invention also provides a kind of portable terminal, and this portable terminal comprises: screen, sensor and processor, wherein,
Sensor is used for the displacement and the spin data of detection of handset;
Particularly, sensor comprises optical sensor, acceleration induction device and gyroscope, wherein optical sensor detects the displacement of portable terminal, and the acceleration induction device detects the acceleration of portable terminal, and gyroscope detects the angle delta data that takes place on portable terminal X, Y and the Z axle; Wherein X, Y and Z axle are represented the left and right directions of mobile terminal screen respectively, above-below direction, and the direction of normal to screen.
Processor, after being used to receive any data from sensor, after the record, move with this or rotate before a last data recording compare, if it is different with last time to detect sensing datas such as this position or the anglec of rotation, illustrate that then displacement or rotation have taken place portable terminal, then calculate the displacement and the rotation amount of described portable terminal, according to the displacement and the rotation amount that calculate, the control screen display content is moved and variation such as convergent-divergent;
Screen is used to present displaying contents.
Above-mentioned explanation illustrates and has described the preferred embodiments of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the disclosed form of this paper, should not regard eliminating as to other embodiment, and can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein, change by the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection domain of claims of the present invention.