Method for determining relative positions of dual screens, display control method and terminal
11206323 · 2021-12-21
Assignee
Inventors
Cpc classification
G06F1/1694
PHYSICS
G06F3/011
PHYSICS
H04M2250/22
ELECTRICITY
G06F9/455
PHYSICS
G06F1/1616
PHYSICS
G06F1/1677
PHYSICS
G06F2203/04803
PHYSICS
H04M1/0214
ELECTRICITY
G06F1/1641
PHYSICS
G06F3/0346
PHYSICS
H04M2250/12
ELECTRICITY
H04M1/72454
ELECTRICITY
G06F3/0487
PHYSICS
International classification
G06F3/0487
PHYSICS
G06F3/0346
PHYSICS
H05K7/00
ELECTRICITY
H04M1/72454
ELECTRICITY
Abstract
Disclosed is a method for determining relative positions of dual screens, suitable for a dual-screen foldable terminal in which two screens of the terminal are provided with at least two types of sensors, respectively. The method includes: collecting data of each sensor on the two screens, respectively; simulating data of a target virtual sensor according to the data collected on each screen; and determining an included angle between the two screens according to the data of the target virtual sensor corresponding to the two screens. Further disclosed are a display control method and a dual-screen foldable terminal. By means of the present disclosure, an included angle between the two screens can be accurately measured so as to control the display.
Claims
1. A method for determining relative positions of dual screens, suitable for a dual-screen foldable terminal in which two screens of the terminal are provided with at least two types of sensors, respectively, the method comprising: collecting data of each sensor on the two screens, respectively; simulating data of a target virtual sensor according to the data collected on each screen using a fusion algorithm; and determining an included angle between the two screens according to the data of the target virtual sensor corresponding to the two screens.
2. The method of claim 1, wherein the at least two types of sensors are selected from an acceleration sensor, a gyroscope, and a geomagnetic sensor.
3. The method of claim 1, wherein the target virtual sensor comprises any one of: a rotation vector sensor, a game rotation vector sensor, and a gravity sensor.
4. A dual-screen foldable terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein two screens of the terminal are provided with at least two different types of sensors, respectively, and the processor, when executing the program, implements the method of claim 1.
5. The terminal of claim 4, wherein: the processor, when executing the program, further implements a step of: controlling a display content on the two screens according to a value of the included angle.
6. A computer storage medium storing an executable instruction therein, the executable instruction being configured to implement the method of claim 1.
7. A display control method, suitable for a dual-screen foldable terminal in which two screens of the terminal are provided with at least two types of sensors, respectively, the method comprising: collecting data of each sensor on the two screens, respectively; simulating data of a target virtual sensor according to the data collected on each screen; determining an included angle between the two screens according to the data of the target virtual sensor corresponding to the two screens; and controlling a display content on the two screens according to a value of the included angle.
8. The method of claim 7, wherein the step of controlling the display content on the two screens according to the value of the included angle comprises: taking, under the condition that it is determined that one of the screens is placed in a horizontal state, the horizontally placed screen as a virtual keyboard and the other screen as a display screen in response to the value of the included angle in a first range; performing a split screen display on the two screens or combining the two screens into one screen to display the same content in response to the value of the included angle in a second range; and closing the screens and a touch system in response to the value of the included angle smaller than a threshold value.
9. The method of claim 7, wherein the sensor comprises at least an acceleration sensor and a gyroscope, and the virtual sensor comprises one or two of a rotation vector sensor, a game rotation vector sensor, and a gravity sensor.
10. A dual-screen foldable terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein two screens of the terminal are provided with at least two different types of sensors, respectively, and the processor, when executing the program, implements the method of claim 7.
11. A computer storage medium storing an executable instruction therein, the executable instruction being configured to implement the method of claim 7.
12. A dual-screen foldable terminal, in which two screens of the terminal are provided with at least two types of sensors, respectively, the terminal comprising: a collection module configured to collect data of each sensor on the two screens, respectively; a simulation module configured to simulate data of a target virtual sensor according to the data collected on each screen; and a determination module configured to determine an included angle between the two screens according to the data of the target virtual sensor corresponding to the two screens.
13. The terminal of claim 12, wherein the at least two types of sensors are selected from an acceleration sensor, a gyroscope, and a geomagnetic sensor.
14. The terminal of claim 12, wherein the target virtual sensor comprises any one of: a rotation vector sensor, a game rotation vector sensor, and a gravity sensor.
15. The terminal of claim 12, wherein the terminal further comprises: a control module configured to control a display content on the two screens according to a value of the included angle.
16. The terminal of claim 15, wherein the control module is configured to control the display content on the two screens according to the value of the included angle, by taking, under the condition that it is determined that one of the screens is placed in a horizontal state, the horizontally placed screen as a virtual keyboard and the other screen as a display screen in response to the value of the included angle in a first range; performing a split screen display on the two screens or combining the two screens into one screen to display the same content in response to the value of the included angle in a second range; and closing the screens and a touch system in response to the value of the included angle smaller than a threshold value.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION
(12) For clarity and better understanding of the objects, technical solution and advantages of the disclosure, embodiments of the disclosure will be described in detail below in conjunction with the accompanying drawings. It should be noted that the embodiments of the disclosure and features therein may be combined with each other in any manner as long as they are not contradictory.
Embodiment I
(13) This embodiment of the disclosure mainly relates to a foldable terminal in which at least two different types of sensors, such as an acceleration sensor, a gyroscope, a geomagnetic sensor, and a sensor with a virtual orientation fused through an algorithm, such as a rotation vector (RV) sensor, a game rotation vector (GAME RV) sensor, and a gravity sensor (G-sensor), are provided on two screens of the terminal of the embodiment.
(14) The collection module 1001 is configured to collect data of each sensor on the two screens, respectively.
(15) The simulation module 1002 is configured to simulate data of a target virtual sensor according to the data collected on each screen.
(16) The determination module 1003 is configured to determine an included angle between the two screens according to the data of the two data virtual sensors.
(17) In this embodiment, the gyroscope is configured to measure a rotation angular velocity of an object; the acceleration sensor is configured to measure a real-time acceleration of an object, which is generally a superposition of the gravitational acceleration and a motion acceleration; and the geomagnetic sensor may be configured to include other orientation sensors for determining a direction.
(18) In this embodiment, by means of fusing at least two different types of sensors among an acceleration sensor, a gyroscope sensor, a geomagnetic sensor and other sensors, a virtual sensor can be simulated, and through the virtue sensors, included angles of two screens and a horizontal plane can be accurately calculated. This method does not simply depend on the acceleration sensor, but eliminates the influence of a linear motion component of the phone on the calculation result through the fusion of different types of sensors, thereby accurately calculating the included angle between the dual screens of the phone, and thus solving the problem that the angle calculation has a larger error due to the influence of the motion acceleration of the phone because the prior art depends greatly on the acceleration sensor. The simulation virtual sensor has been applied mainly in the game field before, and the implementations thereof are not described in detail here; however, how to design and implement a virtual sensor in a dual-screen phone and use it to accurately determine an included angle between two screens is still blank in the industry, and is firstly proposed by the inventor of the disclosure.
(19) With the terminal of the embodiment, relative positions of two screens can be accurately measured, and the user experience can be greatly improved. For a dual-screen display project, many application scenarios can be derived by accurately measuring the included angle between the two screens, and the user experience can be improved.
Embodiment II
(20) The difference between this embodiment and the first embodiment is that, as shown in
(21) The control module 1004 is configured to control a display content on the two screens according to a value of the included angle.
(22) The phenomenon of mistaken touch of keys is easy to occur when a common flip phone is closed, resulting in some inexplicable problems. With the dual-screen foldable terminal of the embodiment, however, different contents can be displayed according to different relative positions of the dual screens, which cannot be realized or cannot be accurately realized by conventional schemes.
(23) In this embodiment, there is further provided a dual-screen foldable terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor. Two screens of the terminal are provided with at least two different types of sensors respectively, and the processor, when executing the program, implements the steps of:
(24) collecting data of each sensor on the two screens, respectively;
(25) simulating data of a target virtual sensor according to the data collected on each screen; and
(26) determining an included angle between the two screens according to the data of the target virtual sensor corresponding to the two screens. The target virtual sensor here may be determined according to the design requirements of the product before leaving the factory, or may be specified by the designer, or may be designed to include several optional target virtual sensors to be selected by the user, which is not limited herein.
Embodiment III
(27)
(28) At step 11, data of each sensor on the two screens is collected, respectively.
(29) At step 12, data of a target virtual sensor is simulated according to the data collected on each screen.
(30) At step 13, an included angle between the two screens is determined according to the data of the target virtual sensor corresponding to the two screens.
(31) In this embodiment, a plurality of different types of sensors are fused through an algorithm to simulate one virtual sensor, through which included angles of two screens and a horizontal plane can be accurately calculated.
(32) With the terminal of the embodiment, relative positions of two screens can be accurately measured, and the user experience can be greatly improved. For a dual-screen display project, many application scenarios can be derived by accurately measuring the included angle between the two screens, and the user experience can be improved.
Embodiment IV
(33) This embodiment is described by simulating the data of multiple types of sensors as an RV sensor or a GAME-RV sensor as an example. As shown in
(34) At step 101: The method starts.
(35) At step 102: data of each sensor on the two screens is collected.
(36) In this embodiment, data collected by the acceleration sensor and the gyroscope is necessary, while data collected by the geomagnetic sensor is optional.
(37) At step 103: two RV sensors or GAME-RV sensors are simulated from the above two sets of sensor data using a fusion algorithm.
(38) At step 104: an included angle between each screen and the horizontal plane is obtained according to the data of the RV sensors or the GAME-RV sensors.
(39) Since the data of the RV sensors or the GAME-RV sensors themselves contain angle information, the included angle between the screen and the horizontal plane can be obtained simply by properly processing the data of the sensors.
(40) For example, if the RV sensor value of one screen is reported to be 0.3, and the RV sensor value of the other screen is reported to be −0.4, then the included angle between the first screen and the horizontal plane (forward) is: 180°−0.3*180°=126°, and the included angle between the second screen and the horizontal plane (forward) is 180°−(−0.4*180°)=252°.
(41) At step 105: an included angle between the two screens is obtained.
(42) In this embodiment, the included angle between the two screens is |252°−126°|=126°.
Embodiment V
(43) This embodiment is described by simulating the data of multiple types of sensors as a G-sensor as an example. As shown in
(44) At step 201: The method starts.
(45) At step 202: data of each sensor on the two screens are collected.
(46) In this embodiment, data collected by the acceleration sensor and the gyroscope are necessary, while data collected by the geomagnetic sensor are optional.
(47) At step 203: two G-sensors are simulated from the above two sets of sensor data using a fusion algorithm.
(48) At step 204: X/Y/Z axis values of the gravity are obtained, and the included angles between the two screens and the horizontal plane are calculated by the arc tangent function.
(49) For example, if the first plate has X=0, Y=0, and Z=9.8, and the second plate has X=9.8, Y=0, and Z=0, then the included angle between the first plate and the horizontal plane (forward) is: arctan (0)=0°, and the included angle between the second plate and the horizontal plane (forward) is 180°−(arctan(1))=90°.
(50) At step 205: the included angle between the two screens is determined to be |90°−0°|=90°.
Embodiment VI
(51)
(52) at step 21, respectively collecting data of each sensor on the two screens;
(53) at step 22, respectively simulating two virtual sensors according to the collected data;
(54) at step 23, determining an included angle between the two screens according to the data of the two virtual sensors; and
(55) at step 24, controlling a display content on the two screens according to a value of the included angle.
(56) The phenomenon of mistaken touch of keys easily occurs when a common flip phone is closed, resulting in some inexplicable problems. The dual-screen foldable terminal of the embodiment, however, is capable of controlling the display of different contents according to different relative positions of the dual screens, which cannot be realized or cannot be accurately realized by conventional schemes.
Embodiment VII
(57) This embodiment is an application example of controlling the terminal to turn off the screen and sleep. As shown in
(58) At step 301: The method starts.
(59) At step 302: data of each sensor on the two screens are collected.
(60) At step 303: two virtual sensors are simulated according to the data reported by the sensors. The virtual sensor here includes: one or more of an RV sensor, a GAME RV sensor, a G-sensor, etc.
(61) At step 304, an included angle between the two screens is calculated.
(62) Since the RV sensor and the GAME RV sensor themselves contain angle values, the included angles of the two screens can be calculated by directly calculating a difference of the angles. The G-sensor, however, needs to calculate the included angle between each screen and the horizontal plane or the vertical plane first, and then calculates the included angle between the two screens through conversion.
(63) At step 305, it is determined whether the value of the included angle is smaller than a certain threshold value which is typically between 0° and 60°, and if yes, continue to step 306; otherwise, return to step 302.
(64) At step 306, the screens and the touch system are closed, and the system is triggered to sleep.
Embodiment VIII
(65) This embodiment is an application example of simulating PC. As shown in
(66) At step 401: The method starts.
(67) At step 402: data of each sensor on the two plates are collected.
(68) At step 403: two virtual sensors are simulated according to the data reported by the sensors. The virtual sensor here includes: one or more of an RV sensor, a GAME RV sensor, a G-sensor, etc.
(69) At step 404: an included angle between the two screens is calculated.
(70) Since the RV sensor and the GAME RV sensor themselves contain angle values, the included angles of the two screens can be calculated by directly calculating a difference of the angles. The G-sensor, however, needs to calculate the included angle between each screen and the horizontal plane or the vertical plane first, and then calculates the included angle between the two screens through conversion.
(71) At step 405: it is determined whether a value of the included angle of the two screens is in a certain range which is typically 60° to 170°, and if yes, continue to step 406; otherwise, return to step 402.
(72) At step 406: it is determined whether one screen is in a horizontal placement state, and if yes, proceed to step 407, otherwise, retune to step 402.
(73) At step 407: the horizontally placed screen is simulated as a keyboard, while the other screen is still in display function, thereby simulating a small notebook.
Embodiment IX
(74) This embodiment is an application example of simulating a PAD or split screen. As shown in
(75) At step 501: The method starts.
(76) At step 502: data of each sensor on the two screens are collected.
(77) At step 503: two virtual sensors are simulated according to the data reported by the sensors. The virtual sensor here includes: one or more of an RV sensor, a GAME RV sensor, a G-sensor, etc.
(78) At step 504: an included angle between the two screens is calculated.
(79) Since the RV sensor and the GAME RV sensor themselves contain angle values, the included angles of the two screens can be calculated by directly calculating a difference of the angles. The G-sensor, however, needs to calculate the included angle between each screen and the horizontal plane or the vertical plane first, and then calculates the included angle between the two screens through conversion.
(80) At step 505: it is determined whether a value of the included angle of the two screens is in a certain range which is typically 180°±10°, and if yes, proceed to step 506; otherwise, return to step 502.
(81) At step 506: the two screens are combined into one to simulate a PAD, or split screen display is performed, where each screen displays different applications.
(82) For example, one of the screens displays an interface of grabbing lucky envelope on WeChat, and the other displays a video interface.
Embodiment X
(83) This embodiment is an application example of simulating 360° display. As shown in
(84) At step 601: start.
(85) At step 602: data of each sensor on the two plates are collected.
(86) At step 603: two virtual sensors are simulated according to the data reported by the sensors. The virtual sensor here includes: one or more of an RV sensor, a GAME RV sensor, a G-sensor, etc.
(87) At step 604: an included angle between the two screens is calculated.
(88) Since the RV sensor and the GAME RV sensor themselves contain angle values, the included angles of the two screens can be calculated by directly calculating a difference of the angles. The G-sensor, however, needs to calculate the included angle between each screen and the horizontal plane or the vertical plane first, and then calculates the included angle between the two screens through conversion.
(89) At step 605: it is determined whether the included angle of the two screens is in a certain range which is typically 190° to 350°, and if yes, proceed to step 606; otherwise, retune to step 602.
(90) At step 606: the two screens display the same content to achieve 360-degree display.
(91) For example, the two screens both play the same video.
Embodiment XI
(92) This embodiment is an application example of displaying on main and auxiliary screens. As shown in
(93) At step 701: the method starts.
(94) At step 702: data of each sensor on the two plates are collected.
(95) At step 703: two virtual sensors are simulated according to the data reported by the sensors. The virtual sensor here includes: one or more of an RV sensor, a GAME RV sensor, a G-sensor, etc.
(96) At step 704: an included angle between the two screens is calculated.
(97) Since the RV sensor and the GAME RV sensor themselves contain angle values, the included angles of the two screens can be calculated by directly calculating a difference of the angles. The G-sensor, however, needs to calculate the included angle between each screen and the horizontal plane or the vertical plane first, and then calculates the included angle between the two screens through conversion.
(98) At step 705: it is determined whether a value of the included angle of the two screens is in a certain range which is typically 350° to 360°, and if yes, proceed to step 706; otherwise, return to step 702.
(99) At step 706: one of the screens is set as a main screen, and the other is set as an auxiliary screen.
(100) The angle ranges in the above embodiments are not fixed, but are given as examples here. The angle ranges may be modified by a user according to the specific application. Therefore, any specific operation performed through the angle value shall fall in the protection scope of the present disclosure.
(101) In an embodiment of the present disclosure, there is further provided a computer readable storage medium having a computer executable instruction stored thereon which, when executed, causes the method for determining relative positions of dual screens and the display control method to be implemented.
(102) One of ordinary skill in the art will appreciate that all or part of the steps described above may be implemented by a program stored in a computer readable storage medium for instructing the associated hardware, such as a read-only memory, a magnetic or optical disk, and the like. Optionally, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in the form of hardware, or may be implemented in the form of a software functional module. The present disclosure is not limited to any particular form of combination of hardware and software.
(103) The foregoing are merely preferred embodiments of the present disclosure. Apparently, it should be noted that the present disclosure may have many other embodiments, and those skilled in the art may make various corresponding changes and variations according to the present disclosure without departing from the spirit and essence of the present disclosure, but these corresponding changes and variations shall fall within the protection scope of the claims appended to the present disclosure.