CN110413458A - Determination method, apparatus, storage medium and the electronic device of angle between screen - Google Patents
Determination method, apparatus, storage medium and the electronic device of angle between screen Download PDFInfo
- Publication number
- CN110413458A CN110413458A CN201810401969.8A CN201810401969A CN110413458A CN 110413458 A CN110413458 A CN 110413458A CN 201810401969 A CN201810401969 A CN 201810401969A CN 110413458 A CN110413458 A CN 110413458A
- Authority
- CN
- China
- Prior art keywords
- screen
- angle
- distance
- point
- apart
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000015654 memory Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 14
- 238000005516 engineering process Methods 0.000 abstract description 12
- 238000012423 maintenance Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 14
- 230000004907 flux Effects 0.000 description 7
- 238000005259 measurement Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 210000001624 hip Anatomy 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000005347 demagnetization Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
The present invention provides determination method, apparatus, storage medium and the electronic devices of angle between a kind of screen, wherein, this method comprises: determine terminal in the first screen on first point and the second screen on second point between first distance, wherein, which is the screen connecting in terminal with the first screen;The first angle between the first screen and the second screen is determined according to the second distance and first distance of first the first screen of point distance and the connecting line of the second screen;Determine that first angle is the angle between first screen and second screen;Wherein, described first point with the line of the second point perpendicular to the connecting line.Through the invention, solve causes maintenance cost high by the way of calibrating to the multi-screen folding angles of multi-screen terminal in the related technology, the low problem of user experience.
Description
Technical field
The present invention relates to the communications fields, are situated between in particular to the determination method, apparatus of angle, storage between a kind of screen
Matter and electronic device.
Background technique
Multi-screen terminal (for example, Dual-band Handy Phone, as depicted in figs. 1 and 2) is carrying out single screen to when multi-screen switching, and being need to
Carry out pattern switching, be illustrated by taking double screen terminal as an example below: double screen terminal can there are three types of mode, specific moulds at present
Formula schematic diagram can be found in Fig. 3, in which:
When the Hall sensor in terminal detects that the folding angles between double screen are 0 °, determine that present terminal is in folding
Folded single screen state;
When the Hall sensor in terminal detects that the folding angles between double screen are greater than 0 ° less than 180 °, determine current
Terminal, which is in, is non-fully unfolded double screen state;
When the folding angles between the Hall sensor detection double screen in terminal are 180 °, determine that present terminal has been in
Full expansion double screen state;
Wherein, the mode that terminal is presently in can pass through the hall sensing in the shaft that is mounted between the double screen of terminal
Device (for example, digital hall sensor) is judged;When terminal factory, producer can be to the folding angles between double screen
It is calibrated for 30 ° and 150 ° of two angles, and using the two angles as 0 ° and 180 ° of activation threshold value.Correspond to
The mode (that is, mode corresponding to the angle detected) of three kinds of number hall (Hall sensor) angles, double screen project has four
Kind display pattern: single A, big A, A | B, A | A;After the angle mode for detecting digital hall, terminal is just allowed to be switched to corresponding
Display pattern.
As shown in Figure 1, only allowing terminal works in single A display pattern when the folding angles between double screen are 0 °;For
(30 °, 150 °] when, allow terminal works in A | A display pattern;For (150 °, 180 °] when, allow terminal works in A | B and big A
Two kinds of display patterns.
It should be noted that digital hall sensor is in use, it is possible that the case where high temperature demagnetization, or
Person, the variation of magnet and digital hall sensor distance caused by being loosened, gently fallen due to shaft, also results in magnetic flux and becomes
Change.
If once 0 ° of magnetic flux is less than the threshold value of 30 ° of producing line calibrations, digital hall sensor " CLOSE=will lead to
0 ° " state can not again trigger, Dual-band Handy Phone can not automatically switch display under single mode A after folding, lead to disabler.
Equally, if once 180 ° of magnetic flux is greater than the threshold value of 150 ° of producing line calibrations, it will lead to digital hall sensor
The state of " OPEN=180 ° " can not again trigger, and Dual-band Handy Phone can not automatically switch big A and A after folding | it is shown under B-mode,
Lead to disabler.
Wherein normal magnetic flux schematic diagram is as shown in figure 4, the magnetic flux data after high temperature demagnetization are as shown in Figure 5.
After digital hall sensor failure, display function is abnormal, and mobile phone must be taken after sale, be passed through after sale by user
Angle with calibration angle (30 ° -150 °) is recalibrated, and calibrating mode can refer to Fig. 6.But by being calibrated after sale
Mode to will lead to user experience low, and maintenance cost is higher.
For caused by the way of being calibrated to the multi-screen folding angles of multi-screen terminal in the related technology maintenance at
This height, the low problem of user experience, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides determination method, apparatus, storage medium and the electronic device of angle between a kind of screen, with
It at least solves using leading to maintenance cost height by the way of calibrating to the multi-screen folding angles of multi-screen terminal in the related technology,
The low problem of user experience.
According to one embodiment of present invention, a kind of determination method of angle between screen is provided, comprising: determine in terminal
The first screen on first point and the second screen on second point between first distance, wherein second screen be the terminal
In the screen that is connect with first screen;According to described first point apart from first screen and the connecting line of the second screen second away from
From and the first distance determine the first angle between first screen and second screen;Determine that first angle is
Angle between first screen and second screen;Wherein, described first point with the line of the second point perpendicular to described
Connecting line.
Optionally it is determined that the first distance packet between first point on the first screen in terminal and the second point on the second screen
It includes: determining described first point described the between the second point using the laser range sensor being located on described first point
One distance.
Optionally, the second distance according to described first point apart from first screen and the connecting line of the second screen and described
First distance determine the first angle between first screen and second screen include: determine the second distance with it is described
Third of the second point apart from the connecting line apart from it is identical when, determine described according to the second distance and the first distance
The first angle between one screen and second screen;Determining the second distance and the second point apart from the connecting line
Third apart from it is different when, according to the first distance, the second distance and third distance determine first screen and
The first angle between second screen.
Optionally, it is determined between first screen and second screen according to the second distance and the first distance
First angle includes: the first angle β 1 determined between first screen and second screen by following formula:Wherein, m1 is the second distance, and n1 is the first distance.
Optionally, according to the first distance, the second distance and third distance determine first screen and
The first angle between second screen includes: first determined between first screen and second screen by following formula
Angle β 2:Wherein, m1 is the second distance, and n1 is the first distance, and l1 is institute
State third distance.
Optionally, according to the described first point second distance and institute apart from first screen and the connecting line of the second screen
After stating the first angle that first distance determines between first screen and second screen, the method also includes: determine institute
State thirdly the 4th distance between the 4th point on second screen on the first screen;According to the thirdly distance
5th distance of connecting line and the 4th distance determine the second angle between first screen and second screen;According to
First angle and second angle determine the angle between first screen and second screen.
Optionally it is determined that thirdly the 4th distance packet between the 4th point on second screen on first screen
Include: using be located at it is described thirdly on laser range sensor determine it is described thirdly between described 4th point described the
Four distances.
Optionally, described according to described thirdly apart from the 5th distance of the connecting line and the described 4th apart from determination
The second angle between first screen and second screen includes: to determine the 5th distance with described 4th point apart from the company
The 6th of wiring apart from it is identical when, first screen and second screen are determined according to the 5th distance and the 4th distance
Between the second angle;Determine the 5th distance from described 4th point apart from the connecting line the 6th apart from it is different when,
It is determined between first screen and second screen according to the 4th distance, the 5th distance and the 6th distance
Second angle.
Optionally, it is determined between first screen and second screen according to the 5th distance and the 4th distance
Second angle includes: the second angle β 3 determined between first screen and second screen by following formula:Wherein, m2 is the 5th distance, and n2 is the 4th distance.
Optionally, according to the 4th distance, the 5th distance and the 6th distance determine first screen and
The second angle between second screen includes: second determined between first screen and second screen by following formula
Angle β 4:Wherein, m2 is the 5th distance, and n2 is the 4th distance, and l2 is institute
State the 6th distance.
Optionally, it is determined between first screen and second screen according to first angle and second angle
Angle comprises determining that the angle between first screen and second screen is the flat of first angle and second angle
Mean value.
Optionally, it is determined between first screen and second screen according to first angle and second angle
Angle includes at least one of: when the difference of first angle and second angle is greater than or equal to predetermined angular, really
Angle between fixed first screen and second screen is the average value of first angle and second angle;When described
When the difference of first angle and second angle is less than predetermined angular, the angle between first screen and second screen is determined
For the big angle of value in first angle and second angle.
Optionally, after the angle between first screen and second screen has been determined, the method also includes with
It is one of lower: when determining that the angle between first screen and the second screen reaches predetermined angular, to report first screen and described
Angle between second screen;When determining that the angle between first screen and the second screen reaches predetermined angular, to the terminal
In Hall sensor carry out the calibration of the predetermined angular, wherein the Hall sensor for detect first screen and
Angle state between second screen.
Optionally, after the calibration for carrying out the predetermined angular to the Hall sensor in the terminal, the method
Further include: storage calibration information.
According to another embodiment of the invention, a kind of determining device of angle between screen is additionally provided, comprising: first really
Cover half block, for determining the first distance between first point on the first screen in terminal and the second point on the second screen, wherein
Second screen is the screen connecting in the terminal with first screen;Second determining module, for according to described first point
Second distance and the first distance apart from first screen and the connecting line of the second screen determine first screen and described
The first angle between second screen;Third determining module, for determining that first angle is first screen and described second
Angle between screen;Wherein, described first point with the line of the second point perpendicular to the connecting line.
Optionally, described device further include: the 4th determining module, for according to described first point apart from first screen
And second screen connecting line second distance and the first distance determine between first screen and second screen
After one angle, thirdly the 4th distance between the 4th point on second screen on first screen is determined;5th
Determining module, for thirdly determining described the apart from the 5th distance of the connecting line and the 4th distance according to described
The second angle between one screen and second screen;6th determining module, for according to first angle and second folder
Angle determines the angle between first screen and second screen.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, due to being to determine screen angle using the distance of terminal screen corresponding points, so as to reality
It is now subsequent to be calibrated according to determining angle come the double screen folding angles to terminal, that is to say, that can be made by terminal
User voluntarily calibrates terminal, without being calibrated using fixture after sale by terminal, realizes conveniently
The purpose calibrated also saves cost after sale, effectively solves to roll over using the double screen to double screen terminal in the related technology
The mode that folded angle is calibrated causes maintenance cost high, the low problem of user experience.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the pictorial diagram one of Dual-band Handy Phone in the related technology;
Fig. 2 is the pictorial diagram two of Dual-band Handy Phone in the related technology;
Fig. 3 is the pattern diagram of double screen terminal in the related technology;
Fig. 4 is normal magnetic flux schematic diagram in double screen terminal in the related technology;
Fig. 5 is the magnetic flux schematic diagram after double screen terminal high temperature demagnetization in the related technology;
Fig. 6 is calibrating mode figure in the related technology;
Fig. 7 is three axis directions schematic diagram according to an embodiment of the present invention;
Fig. 8 be the embodiment of the present invention screen between angle determination method mobile terminal hardware block diagram;
Fig. 9 is the flow chart of the determination method of angle between screen according to an embodiment of the present invention;
Figure 10 is the location diagram one of laser range sensor and screen according to an embodiment of the present invention;
Figure 11 is the location diagram two of laser range sensor and screen according to an embodiment of the present invention;
Figure 12 is the structural block diagram of the determining device of angle between screen according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.By run on mobile terminals for, Fig. 8 be the embodiment of the present invention a kind of screen between angle determination side
The hardware block diagram of the mobile terminal of method.As shown in figure 8, mobile terminal 10 may include one or more (only shows in Fig. 8
One) (processor 102 can include but is not limited to the place of Micro-processor MCV or programmable logic device FPGA etc. to processor 102
Manage device) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include for communication function
Transmission device 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in Fig. 8 is only to show
Meaning, does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include it is more than shown in Fig. 8
Perhaps less component or with the configuration different from shown in Fig. 8.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of determination method of angle between screen in bright embodiment, processor 102 are stored in storage by operation
Computer program in device 104 realizes above-mentioned method thereby executing various function application and data processing.Memory
104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges
It deposits or other non-volatile solid state memories.In some instances, memory 104 can further comprise relative to processor
102 remotely located memories, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network
Including but not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (NetworkInterface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.Wherein, above-mentioned mobile terminal 10 can be double screen shifting
Dynamic terminal, is also possible to subsequent more multi-screen (three screens or more) terminal being likely to occur.
Embodiment 2
A kind of determination method of angle between the screen for running on above-mentioned mobile terminal is provided in the present embodiment, and Fig. 9 is
The flow chart of the determination method of angle between screen according to an embodiment of the present invention, as shown in figure 9, the process includes the following steps:
Step S902, determine between first point on the first screen in terminal and the second point on the second screen first away from
From, wherein second screen is the screen connecting in terminal with the first screen;
Step S904, it is true according to the second distance and first distance of first the first screen of point distance and the connecting line of the second screen
The first angle between fixed first screen and the second screen;
Step S906 determines that first angle is the angle between first screen and second screen;Wherein, described
First point with the line of the second point perpendicular to the connecting line.
Wherein, execute aforesaid operations can be double screen terminal, it is of course also possible to be more multi-screen terminal, when needing to three
When shielding or being calibrated more than the screen expanded angle in the terminal of three screens, screen can be calibrated two-by-two (that is, to adjacent
Two screens calibrated), until completing the calibration between all screens.
In the present embodiment, due to being to determine screen angle using the distance of terminal screen corresponding points, so as to
It realizes and subsequent is calibrated according to determining angle come the double screen folding angles to terminal, that is to say, that can be by terminal
User voluntarily calibrates terminal, without being calibrated using fixture after sale by terminal, realizes convenient and efficient
The purpose calibrate, also save cost after sale, effectively solve using the double screen to multi-screen terminal in the related technology
The mode that folding angles are calibrated causes maintenance cost high, the low problem of user experience.
In an alternative embodiment, determine first point on the first screen in terminal with the second point on the second screen it
Between first distance include: using be located at first point on laser range sensor determine first point it is above-mentioned between second point
First distance.In the present embodiment, it can use laser to measure the distance between and second point at first point, such as Figure 10 institute
Show, laser range sensor can be located at the back side of the display screen of terminal, pass through certain degree between two screens of laser measurement
Distance, the angle being unfolded between two screens is calculated.It should be noted that in practical applications, also can use it
His distance-measuring equipment measures the distance between two o'clock, for example, can use ultrasonic distance measurement equipment to measure.
In an alternative embodiment, according to the second distance of first the first screen of point distance and the connecting line of the second screen with
And first distance determines that the first angle between the first screen and the second screen includes: to determine that second distance and second point distance connect
The third of line apart from it is identical when, the first angle between the first screen and the second screen is determined according to second distance and first distance;In
Determine third of the second distance from second point apart from connecting line apart from it is different when, according to first distance, second distance and third
Distance determines the first angle between the first screen and the second screen.In the present embodiment, when second distance and third apart from it is identical when,
Illustrate at first point, second point and first point (or second point) be connected to the intersection point three of above-mentioned connecting line and constitute isoceles triangle
Therefore shape can calculate the angle of two waists merely with the length of the bottom edge of isosceles triangle and a waist, what it is when composition is
When general triangle, need to calculate the angle on two sides using three sides of a triangle.Specific calculation is as follows:
When composition be isosceles triangle when, determined between the first screen and the second screen according to second distance and first distance
First angle includes: the first angle β 1 determined between the first screen and the second screen by following formula:
Wherein, m1 is above-mentioned second distance, and n1 is above-mentioned first distance.
When composition be general triangle when, according to first distance, second distance and third distance determine the first screen and
The first angle between second screen includes: the first angle β 2 determined between the first screen and the second screen by following formula:Wherein, m1 be above-mentioned second distance, n1 be above-mentioned first distance, l1 be above-mentioned third away from
From.
In an alternative embodiment, according to the second of the first screen of above-mentioned first point distance and the connecting line of the second screen
After distance and first distance determine the first angle between the first screen and second screen, the above method further include: determine
Thirdly the 4th distance between the 4th point on the second screen on first screen;According to above-mentioned thirdly apart from the of connecting line
Five distances and the 4th distance determine the second angle between the first screen and the second screen;According to above-mentioned first angle and the second angle
Determine the angle between the first screen and the second screen.In the present embodiment, only the range measurement only in accordance with two points it is possible that
The situation of inaccuracy is measured, so, in order to enable the angle between the screen measured is more acurrate, two points can be additionally measured again
Distance and the distance of two points apart from connecting line, and calculate according to each distance measured the angle between screen.At this
It is thirdly other points for being different from first point on the first screen, similarly, the 4th point is the difference on the second screen in embodiment
In other points of second point.
In an alternative embodiment, determine on the first screen thirdly between the 4th point on the second screen the 4th
Distance includes: to determine thirdly the 4th distance between the 4th point using the laser range sensor being located on thirdly.In
In the present embodiment, can use laser measure thirdly with the distance between the 4th point, it should be noted that in reality
In, it can use other distance-measuring equipments also to measure the distance between two o'clock, for example, can use ultrasonic distance measurement equipment
To measure.It can be effectively prevented through this embodiment in actual application, a sensor is (for example, above-mentioned swashs
Light device) it is blocked the problem for leading to detection inaccuracy, it is to utilize on screen in the present embodiment, for example, two of the screen back side
Laser sensor carries out cooperating work, as shown in figure 11.
In an alternative embodiment, according to thirdly determining the apart from the 5th distance of connecting line and the 4th distance
The second angle between one screen and the second screen include: determine the 5th distance with the 4th point apart from connecting line the 6th apart from identical
When, the second angle between the first screen and the second screen is determined according to above-mentioned 5th distance and the 4th distance;Determining the above-mentioned 5th
Distance from the 4th point apart from connecting line the 6th apart from it is different when, according to it is above-mentioned 4th distance, the 5th distance and the 6th distance
Determine the second angle between the first screen and the second screen.In the present embodiment, when the 5th distance and the 6th apart from it is identical when, explanation
Thirdly, the 4th point and thirdly (or the 4th point) be connected to above-mentioned connecting line intersection point three constitute isosceles triangle, because
This can calculate the angle of two waists merely with the length of the bottom edge of isosceles triangle and a waist, and what it is when composition is general
When triangle, need to calculate the angle on two sides using three sides of a triangle.Specific calculation is as follows:
When composition be isosceles triangle when, determined between the first screen and the second screen according to the 5th distance and the 4th distance
Second angle includes: the second angle β 3 determined between the first screen and the second screen by following formula:
Wherein, m2 is the 5th distance, and n2 is the 4th distance.
When composition be general triangle when, according to the 4th distance, the 5th distance and the 6th distance determine the first screen and
The second angle between second screen includes: the second angle β 4 determined between the first screen and the second screen by following formula:Wherein, m2 is above-mentioned 5th distance, and n2 is above-mentioned 4th distance, and l2 is the above-mentioned 6th
Distance.
In an alternative embodiment, it is determined between the first screen and the second screen according to above-mentioned first angle and the second angle
Angle include following one: determine that the angle between the first screen and the second screen is the average value of the first angle and the second angle.
In the present embodiment, can be using the average value of the first angle and the second angle as the angle between the first screen and the second screen
The accuracy of measurement, in practical applications, can also survey more several groups of angles (that is, using on the first screen in addition to first point and
Other points on other points and the second screen except thirdly other than second point and the 4th point obtain angle), and will survey
The average value of each group angle obtained is as the angle between the first screen and the second screen.
In an alternative embodiment, it is determined between the first screen and the second screen according to above-mentioned first angle and the second angle
Angle include at least one of: when the difference of the first angle and the second angle be greater than or equal to predetermined angular when, determine above-mentioned
Angle between first screen and the second screen is the average value of the first angle and the second angle;When above-mentioned first angle and the second angle
Difference be less than predetermined angular when, determine that the angle between above-mentioned first screen and the second screen is value in the first angle and the second angle
Big angle.In the present embodiment, in different situations, the value of the angle between the first screen and the second screen is different.
Optionally, above-mentioned predetermined angular can with flexible setting, such as, it can be provided 3 ° or 5 °.
In an alternative embodiment, after the angle between above-mentioned first screen and second screen has been determined, on
The method of stating further includes following one: when determining that the angle between the first screen and the second screen reaches predetermined angular, report this first
Angle between screen and the second screen;When determining that the angle between above-mentioned first screen and the second screen reaches predetermined angular, to above-mentioned
Hall sensor in terminal carries out the calibration of predetermined angular, wherein the Hall sensor is for detecting the first screen and the second screen
Between angle state.In the present embodiment, laser range sensor can be used for digital hall sensor angle calibration system it is defeated
Enter.In addition, laser testing can directly replace digital hall sensor, the angle state as interruption is reported.Wherein, first
When angle between screen and the second screen is 0 °, determine that the first screen and the second screen are in folded state.It is infinitely great (corresponding in angle
Included angle is 180 °) when, determine that the first screen and the second screen are in fully unfolded position.Utilize the side in the embodiment of the present invention
Case, the angle between 0 °~180 ° between two screens can be measured accurately.
In an alternative embodiment, in the calibration for carrying out the predetermined angular to the Hall sensor in above-mentioned terminal
Later, the above method further include: storage calibration information.Wherein it is possible to which the calibration value of Hall sensor is stored in calibration file
In.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 3
A kind of determining device of angle between screen is additionally provided in the present embodiment, and the device is for realizing above-described embodiment
And preferred embodiment, the descriptions that have already been made will not be repeated.As used below, term " module " may be implemented to make a reservation for
The combination of the software and/or hardware of function.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
Figure 12 is the structural block diagram of the determining device of angle between screen according to an embodiment of the present invention, as shown in figure 12, should
Device includes
First determining module 122, for determine first point on the first screen in terminal with the second point on the second screen it
Between first distance, wherein second screen is the screen that connect with the first screen in terminal;Second determining module 124, is connected to
The first determining module 122 is stated, for the second distance and first according to first the first screen of point distance and the connecting line of the second screen
Distance determines the first angle between the first screen and the second screen;Third determining module 126 is connected to above-mentioned second determining module
124, for determining that the first angle is the angle between the first screen and the second screen;Wherein, the line of this first point and second point hangs down
Directly in above-mentioned connecting line.
In an alternative embodiment, above-mentioned first determining module 122 can be determined as follows in terminal
First distance between first point on first screen and the second point on the second screen: it is passed using the laser ranging being located on first point
Sensor determines first point of first distance between second point.
In an alternative embodiment, above-mentioned second determining module 124 can be determined as follows the first screen and
The first angle between second screen: determine third of the second distance with second point apart from connecting line apart from it is identical when, according to
Two distances and first distance determine the first angle between the first screen and the second screen;Determining second distance and second point distance even
The third of wiring apart from it is different when, determined between the first screen and the second screen according to first distance, second distance and third distance
The first angle.
In an alternative embodiment, above-mentioned second determining module 124 can be in the following way according to second distance
And first distance determines the first angle between the first screen and the second screen: being determined between the first screen and the second screen by following formula
The first angle β 1:Wherein, m1 is second distance, and n1 is first distance.
In an alternative embodiment, above-mentioned second determining module 124 can in the following way according to first distance,
Second distance and third distance determine the first angle between the first screen and the second screen: by following formula determine the first screen and
The first angle β 2 between second screen:Wherein, m1 is second distance, n1 be first away from
From l1 is third distance.
In an alternative embodiment, above-mentioned apparatus further include: the 4th determining module, for according to described first point
Second distance and the first distance apart from first screen and the connecting line of the second screen determine first screen and described
After the first angle between second screen, determine on first screen thirdly between the 4th point on second screen
4th distance;5th determining module, it is described thirdly apart from the 5th distance of the connecting line and the described 4th for basis
Distance determines the second angle between first screen and second screen;6th determining module, for according to first folder
Angle and second angle determine the angle between first screen and second screen.
In an alternative embodiment, above-mentioned 4th determining module can be determined as follows on above-mentioned first screen
Thirdly the 4th distance between the 4th point on the second screen: using be located at thirdly on laser range sensor determine
Thirdly the 4th distance between the 4th point.
In an alternative embodiment, above-mentioned 5th determining module can be determined as follows the first screen and second
The second angle between screen: determine the 5th distance with the 4th point apart from connecting line the 6th apart from it is identical when, according to the 5th away from
From and the 4th with a distance from determine the second angle between the first screen and the second screen;Determining the 5th distance with the 4th point apart from connecting line
The 6th apart from it is different when, the between the first screen and the second screen is determined according to the 4th distance, the 5th distance and the 6th distance
Two angles.
In an alternative embodiment, above-mentioned 5th determining module can be in the following way according to the 5th distance and
Four distances determine the second angle between the first screens and the second screen: the between the first screen and the second screen is determined by following formula
Two angle β 3:Wherein, m2 is the 5th distance, and n2 is the 4th distance.
In an alternative embodiment, above-mentioned 5th determining module can be in the following way according to the 4th distance, the
Five distances and the 6th distance determine the second angle between the first screen and the second screen: determining the first screen and the by following formula
The second angle β 4 between two screens:Wherein, m2 is the 5th distance, and n2 is the 4th distance,
L2 is the 6th distance.
In an alternative embodiment, above-mentioned 6th determining module can be in the following way according to the first angle and
Two angles determine the angle between the first screen and the second screen: determining that the angle between the first screen and the second screen is the first angle and
The average value of two angles.
In an alternative embodiment, above-mentioned 6th determining module can be at least one in the following way according to first
Angle and the second angle determine the angle between the first screen and the second screen: when the difference of the first angle and the second angle is greater than or equal to
When predetermined angular, determine that the angle between the first screen and the second screen is the average value of the first angle and the second angle;When the first folder
When the difference of angle and the second angle is less than predetermined angular, determine that the angle between the first screen and the second screen is the first angle and the second folder
The big angle of value in angle.
In an alternative embodiment, above-mentioned apparatus be also used to determined the angle between the first screen and the second screen it
Afterwards, execute one of following operation: when determining that the angle between the first screen and the second screen reaches predetermined angular, report the first screen and
Angle between second screen;When determining that the angle between the first screen and the second screen reaches predetermined angular, to the Hall in terminal
The calibration of sensor progress predetermined angular, wherein Hall sensor is used to detect the angle state between the first screen and the second screen.
In an alternative embodiment, above-mentioned apparatus is also used to carrying out predetermined angular to the Hall sensor in terminal
Calibration after, store calibration information.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 4
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (18)
1. a kind of determination method of angle between screen characterized by comprising
Determine the first distance between first point on the first screen in terminal and the second point on the second screen, wherein described
Two screens are the screen connecting in the terminal with first screen;
It is true according to the described first point second distance and the first distance apart from first screen and the connecting line of the second screen
The first angle between fixed first screen and second screen;
Determine that first angle is the angle between first screen and second screen;
Wherein, described first point with the line of the second point perpendicular to the connecting line.
2. the method according to claim 1, wherein determining first point on the first screen in terminal and the second screen
On second point between first distance include:
Using be located at described first point on laser range sensor determine described first point between the second point described in
First distance.
3. method according to claim 1 or 2, which is characterized in that according to described first point apart from first screen and
The second distance of the connecting line of two screens and the first distance determine the first folder between first screen and second screen
Angle includes:
Determine third of the second distance with the second point apart from the connecting line apart from it is identical when, according to described second
Distance and the first distance determine the first angle between first screen and second screen;
Determine third of the second distance from the second point apart from the connecting line apart from it is different when, according to described first
Distance, the second distance and third distance determine the first angle between first screen and second screen.
4. according to the method described in claim 3, it is characterized in that, determining institute according to the second distance and the first distance
Stating the first angle between the first screen and second screen includes: to determine first screen and second screen by following formula
Between the first angle β 1:Wherein, m1 is the second distance, and n1 is the first distance.
5. according to the method described in claim 3, it is characterized in that, according to the first distance, the second distance and institute
Stating the first angle that third distance determines between first screen and second screen includes: to determine described the by following formula
The first angle β 2 between one screen and second screen:
Wherein, m1 is the second distance, and n1 is the first distance, and l1 is the third distance.
6. the method according to any one of claims 1 to 5, which is characterized in that according to first point of distance
The second distance of the connecting line of first screen and the second screen and the first distance determine first screen and second screen it
Between the first angle after, the method also includes:
Determine thirdly the 4th distance between the 4th point on second screen on first screen;
First screen and institute thirdly are determined apart from the 5th distance of the connecting line and the 4th distance according to described
State the second angle between the second screen;
The angle between first screen and second screen is determined according to first angle and second angle.
7. according to the method described in claim 6, it is characterized in that, determine on first screen thirdly with second screen
On the 4th point between the 4th distance include:
Using be located at it is described thirdly on laser range sensor determine it is described thirdly between described 4th point described in
4th distance.
8. method according to claim 6 or 7, which is characterized in that according to described thirdly apart from the of the connecting line
Five distances and the 4th distance determine that the second angle between first screen and second screen includes:
Determine the 5th distance with described 4th point apart from the connecting line the 6th apart from it is identical when, according to the described 5th
Distance and the 4th distance determine the second angle between first screen and second screen;
Determine the 5th distance from described 4th point apart from the connecting line the 6th apart from it is different when, according to the described 4th
Distance, the 5th distance and the 6th distance determine the second angle between first screen and second screen.
9. according to the method described in claim 8, it is characterized in that, determining institute according to the 5th distance and the 4th distance
Stating the second angle between the first screen and second screen includes: to determine first screen and second screen by following formula
Between the second angle β 3:Wherein, m2 is the 5th distance, and n2 is the 4th distance.
10. according to the method described in claim 8, it is characterized in that, according to the 4th distance, the 5th distance and institute
Stating the second angle that the 6th distance determines between first screen and second screen includes: to determine described the by following formula
The second angle β 4 between one screen and second screen:
Wherein, m2 is the 5th distance, and n2 is the 4th distance, and l2 is the 6th distance.
11. according to the method described in claim 6, it is characterized in that, being determined according to first angle and second angle
Angle between first screen and second screen includes:
Determine that the angle between first screen and second screen is the average value of first angle and second angle.
12. according to the method described in claim 6, it is characterized in that, being determined according to first angle and second angle
Angle between first screen and second screen includes at least one of:
When the difference of first angle and second angle is greater than or equal to predetermined angular, first screen and described is determined
Angle between second screen is the average value of first angle and second angle;
When the difference of first angle and second angle is less than predetermined angular, first screen and second screen are determined
Between angle be value is big in first angle and second angle angle.
13. method according to any one of claim 1 to 12, which is characterized in that first screen and institute is being determined
After stating the angle between the second screen, the method also includes following one:
When determining that the angle between first screen and the second screen reaches predetermined angular, first screen and described second are reported
Angle between screen;
When determining that the angle between first screen and the second screen reaches predetermined angular, to the Hall sensor in the terminal
Carry out the calibration of the predetermined angular, wherein the Hall sensor is for detecting between first screen and second screen
Angle state.
14. according to the method for claim 13, which is characterized in that described in being carried out to the Hall sensor in the terminal
After the calibration of predetermined angular, the method also includes:
Store calibration information.
15. the determining device of angle between a kind of screen characterized by comprising
First determining module, for determining first between first point on the first screen in terminal and the second point on the second screen
Distance, wherein second screen is the screen connecting in the terminal with first screen;
Second determining module, for according to described first point apart from the second distance of first screen and the connecting line of the second screen with
And the first distance determines the first angle between first screen and second screen;
Third determining module, for determining that first angle is the angle between first screen and second screen;
Wherein, described first point with the line of the second point perpendicular to the connecting line.
16. device according to claim 15, which is characterized in that described device further include:
4th determining module, for according to the described first point second distance apart from first screen and the connecting line of the second screen
And it after the first distance determines the first angle between first screen and second screen, determines on first screen
Thirdly the 4th distance between the 4th point on second screen;
5th determining module, for according to described thirdly true apart from the 5th distance of the connecting line and the 4th distance
The second angle between fixed first screen and second screen;
6th determining module, for determining first screen and second screen according to first angle and second angle
Between angle.
17. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of claim 1 to 14 when operation.
18. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute described in any one of claim 1 to 14
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810401969.8A CN110413458A (en) | 2018-04-28 | 2018-04-28 | Determination method, apparatus, storage medium and the electronic device of angle between screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810401969.8A CN110413458A (en) | 2018-04-28 | 2018-04-28 | Determination method, apparatus, storage medium and the electronic device of angle between screen |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110413458A true CN110413458A (en) | 2019-11-05 |
Family
ID=68357314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810401969.8A Pending CN110413458A (en) | 2018-04-28 | 2018-04-28 | Determination method, apparatus, storage medium and the electronic device of angle between screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110413458A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105526895A (en) * | 2015-11-30 | 2016-04-27 | 北京奇虎科技有限公司 | Electronic equipment and range finding method thereof |
CN106445339A (en) * | 2016-09-21 | 2017-02-22 | 青岛海信电器股份有限公司 | Three-dimensional image display method and device for double-screen terminal |
CN106802420A (en) * | 2016-12-05 | 2017-06-06 | 珠海格力电器股份有限公司 | Method and device for measuring distance |
-
2018
- 2018-04-28 CN CN201810401969.8A patent/CN110413458A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105526895A (en) * | 2015-11-30 | 2016-04-27 | 北京奇虎科技有限公司 | Electronic equipment and range finding method thereof |
CN106445339A (en) * | 2016-09-21 | 2017-02-22 | 青岛海信电器股份有限公司 | Three-dimensional image display method and device for double-screen terminal |
CN106802420A (en) * | 2016-12-05 | 2017-06-06 | 珠海格力电器股份有限公司 | Method and device for measuring distance |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108845773B (en) | Method and device for determining included angle between screens, storage medium and electronic device | |
US8400359B2 (en) | Method and system for indoor positioning | |
US8838403B2 (en) | Method and system for a self-calibrated multi-magnetometer platform | |
EP3174328A1 (en) | System and method for radio signal coverage mapping | |
WO2011061033A1 (en) | Estimation of ambient temperature | |
CN110430534A (en) | A kind of positioning selection method, device, electronic equipment and storage medium | |
JP2014505241A (en) | Positioning method | |
JP2007221541A (en) | Position detection method | |
CN113124897B (en) | Sensor performance detection method, device and terminal | |
CN106662484B (en) | Optical camera brightness detected value and colorimetric detection value calibration method and device | |
TWI635717B (en) | System and method for data packet transceiver testing after signal calibration and power settling to minimize test time | |
CN105812577A (en) | Screen brightness adjustment method and device | |
CN110413458A (en) | Determination method, apparatus, storage medium and the electronic device of angle between screen | |
KR102146155B1 (en) | Positioning system enabling continuous updating of positions of the WLAN APs leading to more accurate values and method for the same | |
US20190186720A1 (en) | Method of determining the pose of a moving head light fixture | |
US11519998B2 (en) | Methods for geolocation using electronic distance measurement equipment | |
CN106781659B (en) | A kind of parking space state a reference value scaling method and device | |
KR101374717B1 (en) | Mobile terminal capable of determining the location of the terminal using linear regression model and method thereof | |
KR101829058B1 (en) | Method for adjusting equipment comprising automatic orientation detecting device and equipment comprising automatic image orientation device | |
Morawska et al. | Static and dynamic comparison of pozyx and decawave uwb indoor localization systems with possible improvements | |
US10267636B1 (en) | Method to test the quality factor of a MEMS gyroscope at chip probe | |
CN115103439A (en) | Ultra-wideband visual auxiliary positioning method and device and storage medium | |
CN105553580B (en) | A kind of detection method | |
CN108153712A (en) | Multirobot lines up method and multirobot queue system | |
KR20160021378A (en) | Falling impact tester and method of falling impact test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191105 |
|
RJ01 | Rejection of invention patent application after publication |