CN110888494B - Angle detection method and device and mobile terminal - Google Patents

Angle detection method and device and mobile terminal Download PDF

Info

Publication number
CN110888494B
CN110888494B CN201911143659.1A CN201911143659A CN110888494B CN 110888494 B CN110888494 B CN 110888494B CN 201911143659 A CN201911143659 A CN 201911143659A CN 110888494 B CN110888494 B CN 110888494B
Authority
CN
China
Prior art keywords
angle
screen
information
folding
rotating shaft
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.)
Active
Application number
CN201911143659.1A
Other languages
Chinese (zh)
Other versions
CN110888494A (en
Inventor
张郝令
韩家斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911143659.1A priority Critical patent/CN110888494B/en
Publication of CN110888494A publication Critical patent/CN110888494A/en
Application granted granted Critical
Publication of CN110888494B publication Critical patent/CN110888494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1641Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides an angle detection method, an angle detection device and a mobile terminal. The method comprises the following steps: acquiring target angle information about the rotating shaft through the optical detection piece; and determining the folding angle between the first screen and the second screen according to the target angle information. The invention can rapidly determine the current folding angle or the folding angle range, and the shaft surface characteristics of the shaft surface are not influenced by external factors such as temperature, humidity and the like, so that the detection accuracy is higher.

Description

Angle detection method and device and mobile terminal
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to an angle detection method, an angle detection device, and a mobile terminal.
Background
With the rapid development of communication technology, folding devices appear in various forms, and experiences brought by folding devices are also of great concern. To enable different scenarios to provide different applications, it is often necessary to determine a folding angle or range of folding angles to determine a folding state. For example, several special fold angles are: when the temperature is 0-10 ℃, screen extinguishing is carried out; when the angle is about 90 degrees (75-100 degrees), simple application of double-screen display and the like can provide or limit different functions such as different applications and the like according to different folding angles
The currently common angle detection modes include the following three types:
1. by adding a gravity sensor in the double screen, the magnetic field component detected by the gravity sensor is used for determining the folding angle of the double screen, and the accuracy of the mode is lower;
2. the additional detection circuit is added, the folding angle can be calculated in a resistor inductance voltage division mode, the influence of resistor electricity on temperature is large, and the change of heat and cold can bring large deviation;
3. through the mode of sound calculation, adopt distance triangle theorem to calculate folding angle, need peripheral hardware and distance detection error are great, receive external sound interference easily and influence the degree of accuracy of angle detection, can not quick response.
Disclosure of Invention
The embodiment of the invention provides an angle detection method, an angle detection device and a mobile terminal, which are used for solving the problems that the folding angle detection mode in the prior art is low in accuracy and greatly influenced by external factors.
In order to solve the technical problems, the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an angle detection method, which is applied to an electronic device having a folding screen, where the folding screen includes a first screen and a second screen, a rotating shaft is disposed between the first screen and the second screen, an optical detection element is disposed on one side of the rotating shaft, and angle information is disposed on a first surface of the rotating shaft opposite to the optical detection element, and the method includes:
acquiring target angle information about the rotating shaft through the optical detection piece;
and determining the folding angle between the first screen and the second screen according to the target angle information.
In a second aspect, an embodiment of the present invention provides an angle detection device, which is applied to an electronic device having a folding screen, where the folding screen includes a first screen and a second screen, a rotating shaft is disposed between the first screen and the second screen, an optical detection element is disposed on one side of the rotating shaft, and angle information is disposed on a first surface of the rotating shaft opposite to the optical detection element, and the angle detection device includes:
the target angle acquisition module is used for acquiring target angle information about the rotating shaft through the optical detection piece;
and the folding angle determining module is used for determining the folding angle between the first screen and the second screen according to the target angle information.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program when executed by the processor implements the steps of the angle detection method described in any one of the above.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the angle detection method of any of the above.
In the embodiment of the invention, a rotating shaft is arranged between a first screen and a second screen of a folding screen, an optical detection piece is arranged on one side of the rotating shaft, angle information is arranged on a first surface of the rotating shaft opposite to the optical detection piece, target angle information about the rotating shaft is acquired through the optical detection piece, and the folding angle between the first screen and the second screen is determined according to the target angle information. According to the embodiment of the invention, the folding angle between the first screen and the second screen can be determined only through the target angle information of the rotating shaft, the purpose of rapidly determining the current folding angle can be achieved, the angle information on the surface of the rotating shaft is not influenced by external factors such as temperature and humidity, and the detection accuracy is high.
Drawings
Fig. 1 is a flowchart of steps of an angle detection method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an angle detection method according to an embodiment of the present invention;
FIG. 2a is a schematic view of an expanded axial plane provided by an embodiment of the present invention;
FIG. 2b is a schematic diagram of an axial plane gradation gray scale according to an embodiment of the present invention;
FIG. 2c is a schematic diagram of an optical detection member according to an embodiment of the present invention;
FIG. 2d is a schematic diagram of an axial section light guide groove according to an embodiment of the present invention;
FIG. 2e is a schematic diagram of an axial surface gradient gray scale or roughness according to an embodiment of the present invention;
FIG. 2f is a schematic diagram of a light detection region according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an angle detecting device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an angle detecting device according to an embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, a step flowchart of an angle detection method provided by an embodiment of the present invention is shown, where the angle detection method may be applied to an electronic device having a folding screen, where the folding screen includes a first screen and a second screen, a rotating shaft is disposed between the first screen and the second screen, an optical detection element is disposed on one side of the rotating shaft, and angle information is disposed on a first surface of the rotating shaft opposite to the optical detection element, and the method specifically may include the following steps:
step 101: and acquiring target angle information about the rotating shaft through the optical detection piece.
In the embodiment of the invention, the electronic device can be a mobile phone, a PAD (Portable Android Device, tablet computer) or other device with a folding screen.
The folding screen may include a first screen and a second screen, and it is understood that the primary screen of the electronic device may be the first screen and the secondary screen may be the second screen; of course, the secondary screen of the electronic device may be used as the first screen, and the primary screen may be used as the second screen. In particular, embodiments of the present invention are not limited in this regard, as may be based on business requirements.
A rotating shaft is disposed between the first screen and the second screen, for example, referring to fig. 2a, a schematic diagram of an unfolded shaft plane provided by an embodiment of the present invention is shown, as shown in fig. 2a, where the leftmost drawing in the drawing is the rotating shaft, and when the rotating shaft is disposed between the first screen and the second screen, the first screen and the second screen can be unfolded and folded by using the rotating shaft.
In a specific implementation, the folding angle between the first screen and the second screen may correspond to different functions, for example, when the folding angle between the first screen and the second screen is 0-10 degrees, the folding angle may correspond to a screen-off function; when the folding angle between the first screen and the second screen is around 90 degrees, it may correspond to a simple application of a double screen display or the like.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
Next, the structure of the rotating shaft and the optical detecting element in the present invention will be described with reference to fig. 2 c.
Referring to fig. 2c, a schematic diagram of a detection component provided by an embodiment of the present invention is shown, and as shown in fig. 2c, the detection component includes the following parts:
shaft surface: the inner surface or the outer surface can be gradually changed in gray scale or different roughness according to the device setting, or other treatment processes, and the gradual change coefficient corresponds to gradual change of 0-180 degrees; the equal part treatment and the linear gradual change treatment can be carried out;
a photodetector: detecting the surface treatment degree to obtain a sensor with a surface gray scale coefficient or roughness;
directional light guide grooves or directional light guides: a narrow slit, a photodetection channel; the incidence channel and the detection channel can be directionally separated;
power supply and data outgoing line: the sensor supplies power and outputs an electric signal;
fixing and protecting structural parts: fixing the sensor and the lead;
the detection position can be set to any position of the shaft according to the design convenience.
The optical detecting element defined in the present invention may be a photodetector as shown in fig. 2c, and of course, not limited thereto, but may be other components that can detect the target angle information about the rotating shaft in practical applications, and in particular, the embodiment of the present invention is not limited thereto according to practical situations.
The target angle information refers to angle information about the rotation axis acquired after the first screen and the second screen are unfolded or folded.
The angle information may be tone information on the first surface of the rotating shaft, for example, referring to fig. 2b, which shows a schematic diagram of gradual change of gray scales of an axial plane provided in an embodiment of the present invention, as shown in fig. 2b, different tone information may be set on the full-axis surface according to the division area of the sub-axial plane.
The angle information may also be roughness information on the first surface of the rotating shaft, for example, referring to fig. 2e, which shows a schematic diagram of gradual change gray scale or roughness of the shaft surface according to an embodiment of the present invention, as shown in fig. 2e, the full-axis surface of the rotating shaft may be set to a corresponding gradual change roughness, and different roughness may correspond to different reflection coefficients/incidence coefficients. The fade coefficient may correspond to a fade of 0-180 degrees; the processing can be equally divided or the linear gradual processing can be performed.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
The process of the optical detection unit acquiring the target angle information about the rotation axis can be described as follows with reference to fig. 2 d.
Referring to fig. 2d, a schematic diagram of a light guide groove with an axial section according to an embodiment of the present invention is shown, as shown in fig. 2d, the axial section is provided with the light guide groove, after the folding screen is unfolded, light can be emitted to the rotating shaft through the light guide groove, light reflected by the first surface of the rotating shaft can be received, and the optical detection element can determine angle information about the rotating shaft through light reflection intensity of the first surface.
In the present invention, the target angle information of the detection area may be determined by the light incident area, for example, referring to fig. 2f, a schematic diagram of a light detection area provided in an embodiment of the present invention is shown, as shown in fig. 2f, the detection area may be determined by detecting incident light and reflected light, as shown in "detection area schematic" in fig. 2f, and after the detection area is determined, the target angle information about the rotation axis may be determined according to the absorption coefficient of light or the reflection coefficient of light of the detection area.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After the target angle information about the rotation shaft is acquired by the optical detection member, step 102 is performed.
Step 102: and determining the folding angle between the first screen and the second screen according to the target angle information.
In the present invention, the angle information may include a plurality of sub-angle information, a preset mapping relationship is provided between the angle information and the folding angle, and each sub-angle information corresponds to one folding angle, specifically, the angle on the first surface of the rotating shaft may be divided into a plurality of sub-angle information according to the detection precision of the angle in advance, and the folding angle corresponding to each sub-angle information is established, for example, after each angle information and the folding angle are obtained, a mapping relationship between the sub-angle information and the folding angle may be established, for example, the sub-angle information includes: n1, n2,..and n180, the folding angle corresponding to the sub-angle information is: 1. the mapping between sub-angle information and fold angle may be as shown in table 1 below:
table 1:
sub angle information Folding angle
n1 1
n2 2
... ...
n180 180
After the mapping relationship between each sub-angle information and each folding angle is established, a table may be established to save the mapping relationship. Of course, the mapping relationship may also be stored in a database, and in particular, may be determined according to service requirements, which is not limited in the embodiment of the present invention.
Of course, the folding angle may also be an angle interval, for example, an interval of every 10 ° and the like, and after each piece of sub-angle information and the folding angle interval are obtained, a mapping relationship between each piece of sub-angle information and the folding angle interval may be established, for example, the sub-angle information is: n1, n2,..n 18, fold angles comprise: the mapping relationship between sub-angle information and fold angle interval can be shown in the following table 2:
table 2:
folding angle interval Sub angle information
1~10 n1
11~20 n2
... ...
170~180 n18
After the mapping relationship between each sub-angle information and each folding angle section is established, a table may be established to save the mapping relationship. Of course, the mapping relationship may also be stored in a database, and in particular, may be determined according to service requirements, which is not limited in the embodiment of the present invention.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After the target angle information about the rotating shaft is obtained, the folding angle between the first screen and the second screen can be determined according to the target angle information and in combination with the above-mentioned mapping relation.
The folding angle between the first screen and the second screen can be determined only by detecting the target angle information of the first surface, the purpose of rapid detection can be realized, and the detection process is not easily influenced by external factors.
According to the angle detection method, a rotating shaft is arranged between a first screen and a second screen of a folding screen, an optical detection piece is arranged on one side of the rotating shaft, angle information is arranged on a first surface of the rotating shaft opposite to the optical detection piece, target angle information about the rotating shaft is obtained through the optical detection piece, and the folding angle between the first screen and the second screen is determined according to the target angle information. According to the embodiment of the invention, the folding angle between the first screen and the second screen can be determined only through the target angle information of the rotating shaft, the purpose of rapidly determining the current folding angle can be achieved, the angle information on the surface of the rotating shaft is not influenced by external factors such as temperature and humidity, and the detection accuracy is high.
Example two
Referring to fig. 2, a step flowchart of an angle detection method provided by an embodiment of the present invention is shown, where the angle detection method may be applied to an electronic device having a folding screen, where the folding screen includes a first screen and a second screen, a rotating shaft is disposed between the first screen and the second screen, an optical detection element is disposed on one side of the rotating shaft, and angle information is disposed on a first surface of the rotating shaft opposite to the optical detection element, and the method specifically may include the following steps:
step 201: and acquiring target angle information about the rotating shaft through the optical detection piece.
In the embodiment of the invention, the electronic device can be a mobile phone, a PAD (Portable Android Device, tablet computer) or other device with a folding screen.
The folding screen may include a first screen and a second screen, and it is understood that the primary screen of the electronic device may be the first screen and the secondary screen may be the second screen; of course, the secondary screen of the electronic device may be used as the first screen, and the primary screen may be used as the second screen. In particular, embodiments of the present invention are not limited in this regard, as may be based on business requirements.
A rotating shaft is disposed between the first screen and the second screen, for example, referring to fig. 2a, a schematic diagram of an unfolded shaft plane provided by an embodiment of the present invention is shown, as shown in fig. 2a, where the leftmost drawing in the drawing is the rotating shaft, and when the rotating shaft is disposed between the first screen and the second screen, the first screen and the second screen can be unfolded and folded by using the rotating shaft.
In a specific implementation, the folding angle between the first screen and the second screen may correspond to different functions, for example, when the folding angle between the first screen and the second screen is 0-10 degrees, the folding angle may correspond to a screen-off function; when the folding angle between the first screen and the second screen is around 90 degrees, it may correspond to a simple application of a double screen display or the like.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
Next, the structure of the rotating shaft and the optical detecting element in the present invention will be described with reference to fig. 2 c.
Referring to fig. 2c, a schematic diagram of detection failure provided by an embodiment of the present invention is shown, and as shown in fig. 2c, detection components are as follows:
shaft surface: the inner surface or the outer surface can be gradually changed in gray scale or different roughness according to the device setting, or other treatment processes, and the gradual change coefficient corresponds to gradual change of 0-180 degrees; the equal part treatment and the linear gradual change treatment can be carried out;
a photodetector: detecting the surface treatment degree to obtain a sensor with a surface gray scale coefficient or roughness;
directional light guide grooves or directional light guides: a narrow slit, a photodetection channel; the incidence channel and the detection channel can be directionally separated;
power supply and data outgoing line: the sensor supplies power and outputs an electric signal;
fixing and protecting structural parts: fixing the sensor and the lead;
the detection position can be set to any position of the shaft according to the design convenience.
The optical detecting element defined in the present invention may be a photodetector as shown in fig. 2c, and of course, not limited thereto, but may be other components that can detect the target angle information about the rotating shaft in practical applications, and in particular, the embodiment of the present invention is not limited thereto according to practical situations.
The target angle information refers to angle information about the rotation axis acquired after the first screen and the second screen are unfolded or folded.
The angle information may be tone information on the first surface of the rotating shaft, for example, referring to fig. 2b, which shows a schematic diagram of gradual change of gray scales of an axial plane provided in an embodiment of the present invention, as shown in fig. 2b, different tone information may be set on the full-axis surface according to the division area of the sub-axial plane.
The angle information may also be roughness information on the first surface of the rotating shaft, for example, referring to fig. 2e, which shows a schematic diagram of gradual change gray scale or roughness of the shaft surface according to an embodiment of the present invention, as shown in fig. 2e, the full-axis surface of the rotating shaft may be set to a corresponding gradual change roughness, and different roughness may correspond to different reflection coefficients/incidence coefficients. The fade coefficient may correspond to a fade of 0-180 degrees; the processing can be equally divided or the linear gradual processing can be performed.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
The process of the optical detection unit acquiring the target angle information about the rotation axis can be described as follows with reference to fig. 2 d.
Referring to fig. 2d, a schematic diagram of a light guide groove with an axial section according to an embodiment of the present invention is shown, as shown in fig. 2d, the axial section is provided with the light guide groove, after the folding screen is unfolded, light can be emitted to the rotating shaft through the light guide groove, light reflected by the first surface of the rotating shaft can be received, and the optical detection element can determine angle information about the rotating shaft through light reflection intensity of the first surface.
In the present invention, the target angle information of the detection area may be determined by the light incident area, for example, referring to fig. 2f, a schematic diagram of a light detection area provided in an embodiment of the present invention is shown, as shown in fig. 2f, the detection area may be determined by detecting incident light and reflected light, as shown in "detection area schematic" in fig. 2f, and after the detection area is determined, the target angle information about the rotation axis may be determined according to the absorption coefficient of light or the reflection coefficient of light of the detection area.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present invention, and are not to be construed as the only limitation of the embodiments of the present invention.
After the target angle information about the rotation shaft is acquired by the optical detection member, step 202 is performed, or step 203 is performed.
Step 202: and determining the folding angle corresponding to the tone scale information according to the tone scale information.
In the present invention, the angle information may be tone scale information, and the tone scale of the first surface may be gradually changed along the rotation direction of the rotation shaft. As shown in fig. 2b, the different axial planes correspond to different levels of tone scale information, for example, when the folding angle precision is 10 ° interval precision, 18 tone scales may be set to 18 folding angle intervals, for example, tone scale 1 corresponds to 0 ° to 10 °, tone scale 2 corresponds to 11 ° to 20 °, …, and tone scale 18 corresponds to 171 ° to 180 °. In contrast, when the precision of the folding angle is interval 1, 180 gradations may be set to correspond to 180 folding angles, for example, gradation 1 corresponds to 1 °, gradation 2 corresponds to 2 °, …, gradation 180 corresponds to 180 °, and the like.
It will be appreciated that the above example is only one example listed for better understanding of the technical solution of the embodiments of the present invention, and is not to be taken as the only limitation of the embodiments of the present invention.
When the obtained target angle information is the tone scale information, the folding angle corresponding to the tone scale information may be determined according to the mapping relationship previously established in the above example.
Step 203: and determining the folding angle corresponding to the roughness information according to the roughness information.
In the present invention, the angle information may be roughness information, and the roughness of the first surface may be gradually changed along the rotation direction of the rotation shaft. As shown in fig. 2e, the angle information may also be roughness information on the first surface of the rotating shaft, the full-axis surface of the rotating shaft may be provided with a corresponding gradual roughness, and different roughness may correspond to different reflection/incidence coefficients. The fade coefficient may correspond to a fade of 0-180 degrees; the processing can be equally divided or the linear gradual processing can be performed. If the precision of the folding angle is interval precision of 10 ° interval, 18 roughness may be set corresponding to 18 folding angle intervals, for example, roughness 1 corresponds to 0 ° to 10 °, roughness 2 corresponds to 11 ° to 20 °, …, and roughness 18 corresponds to 171 ° to 180 °. While 180 degrees of roughness may be set to correspond to 180 degrees of folding when the precision of the folding angle is interval 1, e.g., roughness 1 corresponds to 1 °, roughness 2 corresponds to 2 °, …, roughness 180 corresponds to 180 °, etc.
It will be appreciated that the above example is only one example listed for better understanding of the technical solution of the embodiments of the present invention, and is not to be taken as the only limitation of the embodiments of the present invention.
When the obtained target angle information is roughness information, the folding angle corresponding to the roughness information may be determined according to the mapping relationship previously established in the above example.
In addition to the beneficial effects of the angle detection method provided by the first embodiment, two different folding angle detection modes can be set, and in the angle detection process, any one of the folding angle detection modes can be selected by a user, so that the use experience of the user is improved.
Example III
Referring to fig. 3, a schematic structural diagram of an angle detection device provided by an embodiment of the present invention is shown, where the angle detection device may be applied to an electronic device having a folding screen, where the folding screen includes a first screen and a second screen, a rotating shaft is disposed between the first screen and the second screen, an optical detection element is disposed on one side of the rotating shaft, and angle information is disposed on a first surface of the rotating shaft opposite to the optical detection element, and the angle detection device specifically may include:
a target angle acquisition module 310, configured to acquire target angle information about the rotating shaft through the optical detection element;
and a folding angle determining module 320, configured to determine a folding angle between the first screen and the second screen according to the target angle information.
Preferably, the angle information includes a plurality of sub-angle information, the angle information and the folding angle have a preset mapping relationship, and each sub-angle information corresponds to one folding angle.
According to the angle detection device, the rotating shaft is arranged between the first screen and the second screen of the folding screen, the optical detection piece is arranged on one side of the rotating shaft, the angle information is arranged on the first surface of the rotating shaft opposite to the optical detection piece, the target angle information about the rotating shaft is obtained through the optical detection piece, and the folding angle between the first screen and the second screen is determined according to the target angle information. According to the embodiment of the invention, the folding angle between the first screen and the second screen can be determined only through the target angle information of the rotating shaft, the purpose of rapidly determining the current folding angle can be achieved, the angle information on the surface of the rotating shaft is not influenced by external factors such as temperature and humidity, and the detection accuracy is high.
Example IV
Referring to fig. 4, a schematic structural diagram of an angle detection device provided by an embodiment of the present invention is shown, where the angle detection device may be applied to an electronic device having a folding screen, where the folding screen includes a first screen and a second screen, a rotating shaft is disposed between the first screen and the second screen, an optical detection element is disposed on one side of the rotating shaft, and angle information is disposed on a first surface of the rotating shaft opposite to the optical detection element, and the angle detection device specifically may include the following modules:
a target angle acquisition module 410, configured to acquire target angle information about the rotation axis through the optical detection element;
and a folding angle determining module 420, configured to determine a folding angle between the first screen and the second screen according to the target angle information.
Preferably, the angle information is color level information, and the color level of the first surface gradually changes along the rotation direction of the rotating shaft;
the folding angle determining module 420 includes:
a first folding angle determining sub-module 421, configured to determine the folding angle corresponding to the tone scale information according to the tone scale information.
Preferably, the angle information is roughness information, and the roughness of the first surface gradually changes along the rotation direction of the rotating shaft;
the folding angle determining module 420 includes:
a second folding angle determining sub-module 422, configured to determine the folding angle corresponding to the roughness information according to the roughness information.
In addition to the beneficial effects of the angle detection device provided by the third embodiment, the angle detection device provided by the embodiment of the invention can also be provided with two different folding angle detection modes, and in the angle detection process, any one of the folding angle detection modes can be selected by a user, so that the use experience of the user is improved.
Example five
Referring to fig. 5, a hardware structure of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and power source 511. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 5 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the mobile terminal comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
A processor 510 for acquiring target angle information about the rotation axis through the optical detection member; and determining the folding angle between the first screen and the second screen according to the target angle information.
In the embodiment of the invention, a rotating shaft is arranged between a first screen and a second screen of a folding screen, an optical detection piece is arranged on one side of the rotating shaft, angle information is arranged on a first surface of the rotating shaft opposite to the optical detection piece, target angle information about the rotating shaft is acquired through the optical detection piece, and the folding angle between the first screen and the second screen is determined according to the target angle information. According to the embodiment of the invention, the folding angle between the first screen and the second screen can be determined only through the target angle information of the rotating shaft, the purpose of rapidly determining the current folding angle can be achieved, the angle information on the surface of the rotating shaft is not influenced by external factors such as temperature and humidity, and the detection accuracy is high.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the downlink data with the processor 510; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 may also communicate with networks and other devices through a wireless communication system.
The mobile terminal provides wireless broadband internet access to the user through the network module 502, such as helping the user to send and receive e-mail, browse web pages, access streaming media, etc.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 500. The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used for receiving an audio or video signal. The input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, the graphics processor 5041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. Microphone 5042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 501 in case of a phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 5061 and/or backlight when the mobile terminal 500 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 505 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 506 is used to display information input by a user or information provided to the user. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on touch panel 5071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). Touch panel 5071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (e.g., volume control keys, switch keys, etc.), trackballs, mice, joysticks, and so forth, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 510 to determine a type of touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and an external device.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 509, and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The mobile terminal 500 may further include a power source 511 (e.g., a battery) for powering the various components, and preferably the power source 511 may be logically connected to the processor 510 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the mobile terminal 500 includes some functional modules, which are not shown, and will not be described herein.
Preferably, the embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program when executed by the processor 510 implements the processes of the embodiment of the angle detection method, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above embodiment of the angle detection method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (8)

1. The angle detection method is applied to electronic equipment with a folding screen, the folding screen comprises a first screen and a second screen, a rotating shaft is arranged between the first screen and the second screen, an optical detection piece is arranged on one side of the rotating shaft, and angle information is arranged on a first surface of the rotating shaft opposite to the optical detection piece; the optical detection piece set up in inside the pivot, the optical detection piece includes: a photodetector, a light guide groove; the light guide groove is used for emitting light rays to the rotating shaft after the folding screen is unfolded and receiving the light rays reflected by the first surface of the rotating shaft; the photoelectric detector is used for determining angle information of the rotating shaft through the reflection intensity of the light rays reflected by the first surface; the angle detection method comprises the following steps:
acquiring target angle information about the rotating shaft through the optical detection piece;
determining a folding angle between the first screen and the second screen according to the target angle information;
wherein, in the case that the angle information is roughness information, the roughness of the first surface gradually changes along the rotation direction of the rotating shaft;
the determining the folding angle between the first screen and the second screen according to the target angle information comprises the following steps:
and determining the folding angle corresponding to the roughness information according to the roughness information.
2. The method of claim 1, wherein the angle information includes a plurality of sub-angle information, the angle information having a predetermined mapping relationship with the folding angle, each sub-angle information corresponding to a folding angle.
3. The method of claim 1, wherein the angle information is tone scale information, and the tone scale of the first surface is gradually changed along the rotation direction of the rotation shaft;
the determining the folding angle between the first screen and the second screen according to the target angle information comprises the following steps:
and determining the folding angle corresponding to the tone scale information according to the tone scale information.
4. The utility model provides an angle detection device, is applied to the electronic equipment that has folding screen, folding screen includes first screen and second screen, first screen with be provided with the pivot between the second screen, one side of pivot is provided with the optical detection spare, the pivot with be equipped with angle information on the first surface that the optical detection spare is relative, its characterized in that, angle information is tone scale information or roughness information, the optical detection spare set up in inside the pivot, the optical detection spare includes: a photodetector, a light guide groove; the light guide groove is used for emitting light rays to the rotating shaft after the folding screen is unfolded and receiving the light rays reflected by the first surface of the rotating shaft; the photoelectric detector is used for determining angle information of the rotating shaft through the reflection intensity of the light rays reflected by the first surface; the angle detection device includes:
the target angle acquisition module is used for acquiring target angle information about the rotating shaft through the optical detection piece;
the folding angle determining module is used for determining the folding angle between the first screen and the second screen according to the target angle information;
wherein, in the case that the angle information is roughness information, the roughness of the first surface gradually changes along the rotation direction of the rotating shaft;
the folding angle determining module includes:
and the second folding angle determining submodule is used for determining the folding angle corresponding to the roughness information according to the roughness information.
5. The apparatus of claim 4, wherein the angle information includes a plurality of sub-angle information, the angle information having a predetermined mapping relationship with the folding angle, each sub-angle information corresponding to a folding angle.
6. The apparatus of claim 4, wherein the angle information is tone scale information, and the tone scale of the first surface is gradually changed along the rotation direction of the rotation shaft;
the folding angle determining module includes:
and the first folding angle determining submodule is used for determining the folding angle corresponding to the tone scale information according to the tone scale information.
7. A mobile terminal comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the angle detection method according to any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the angle detection method according to any one of claims 1 to 3.
CN201911143659.1A 2019-11-20 2019-11-20 Angle detection method and device and mobile terminal Active CN110888494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911143659.1A CN110888494B (en) 2019-11-20 2019-11-20 Angle detection method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911143659.1A CN110888494B (en) 2019-11-20 2019-11-20 Angle detection method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN110888494A CN110888494A (en) 2020-03-17
CN110888494B true CN110888494B (en) 2024-02-06

Family

ID=69748145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911143659.1A Active CN110888494B (en) 2019-11-20 2019-11-20 Angle detection method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN110888494B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586216B (en) * 2020-04-30 2021-06-25 维沃移动通信有限公司 Folder terminal, folder state determining method and apparatus, and computer-readable storage medium
CN112445289A (en) * 2020-11-18 2021-03-05 维沃移动通信有限公司 Foldable electronic device and folding angle detection method
CN114415999A (en) * 2021-12-27 2022-04-29 深圳Tcl数字技术有限公司 Multi-scene application terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196619A (en) * 2019-05-28 2019-09-03 维沃移动通信有限公司 A kind of hinge, electronic equipment and folding angles determine method
WO2019196707A1 (en) * 2018-04-12 2019-10-17 维沃移动通信有限公司 Mobile terminal control method and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003158573A (en) * 2001-11-21 2003-05-30 Canon Inc Foldable device and its control method
US20050094159A1 (en) * 2003-10-29 2005-05-05 Wen-Wei Su Angle detecting sensor and vehicular controlling system using the same
CN110360955B (en) * 2019-07-22 2021-03-05 Oppo广东移动通信有限公司 Folding screen assembly, electronic equipment and folding screen angle detection method
CN210694025U (en) * 2019-12-13 2020-06-05 Oppo广东移动通信有限公司 Foldable electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019196707A1 (en) * 2018-04-12 2019-10-17 维沃移动通信有限公司 Mobile terminal control method and mobile terminal
CN110196619A (en) * 2019-05-28 2019-09-03 维沃移动通信有限公司 A kind of hinge, electronic equipment and folding angles determine method

Also Published As

Publication number Publication date
CN110888494A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
US20210211529A1 (en) Angle determining circuit, angle determining method, and folding screen terminal
CN111045487B (en) Electronic equipment and folding angle detection method
CN108073343B (en) display interface adjusting method and mobile terminal
CN110888494B (en) Angle detection method and device and mobile terminal
US11769273B2 (en) Parameter obtaining method and terminal device
CN108600546B (en) Environment light detection method and mobile terminal
CN109862504B (en) Display method and terminal equipment
CN111049510B (en) Touch key, control method and electronic equipment
US20150052375A1 (en) Information processing method and electronic device
CN107463897B (en) Fingerprint identification method and mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN108769893B (en) Terminal detection method and terminal
CN108108113B (en) Webpage switching method and device
CN111399792B (en) Content sharing method and electronic equipment
CN107782250B (en) Depth information measuring method and device and mobile terminal
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN109443261B (en) Method for acquiring folding angle of folding screen mobile terminal and mobile terminal
CN111142618A (en) Method for detecting folding angle and electronic equipment
CN109257504B (en) Audio processing method and terminal equipment
CN109041190B (en) Power control method and terminal
CN109343811B (en) Display adjustment method and terminal equipment
CN108170310B (en) Touch screen control method and mobile terminal
CN110824516B (en) Positioning method and electronic equipment
CN109450508B (en) Antenna determination method and device and mobile terminal
CN109871324B (en) Control operation method and device

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
GR01 Patent grant
GR01 Patent grant