CN111142618A - Method for detecting folding angle and electronic equipment - Google Patents
Method for detecting folding angle and electronic equipment Download PDFInfo
- Publication number
- CN111142618A CN111142618A CN201911350196.6A CN201911350196A CN111142618A CN 111142618 A CN111142618 A CN 111142618A CN 201911350196 A CN201911350196 A CN 201911350196A CN 111142618 A CN111142618 A CN 111142618A
- Authority
- CN
- China
- Prior art keywords
- power
- module
- signal
- signal receiving
- receiving module
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1637—Details related to the display arrangement, including those related to the mounting of the display in the housing
- G06F1/1641—Details 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
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B7/00—Measuring arrangements characterised by the use of electric or magnetic techniques
- G01B7/30—Measuring arrangements characterised by the use of electric or magnetic techniques for measuring angles or tapers; for testing the alignment of axes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1698—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being a sending/receiving arrangement to establish a cordless communication link, e.g. radio or infrared link, integrated cellular phone
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Telephone Set Structure (AREA)
Abstract
The invention provides a method for detecting a folding angle and electronic equipment. The electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at the positions corresponding to the two ends of the foldable screen, and the method comprises the following steps: under the condition that the signal transmitting module transmits a signal at preset power, acquiring first receiving power of the signal receiving module; and determining a first folding angle of the foldable screen according to the preset power and the first receiving power. The foldable screen detection device has the advantages that the foldable screen can be detected by only adding the signal transmitting module and the signal receiving module in the electronic equipment under the condition that the structure of the foldable screen is not changed, the producibility is good, the yield is high, and the detection accuracy is high.
Description
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method for detecting a folding angle and an electronic device.
Background
With the increasing pace of life and the demand of multitasking, users have higher and higher requirements for electronic devices, and the electronic devices with foldable screens have attracted wide attention due to the diversity of display contents and the simplicity of operation while being portable. In order to control the multitasking state of the electronic device through the folding state, it is required to quickly acquire the folding angle of the foldable screen.
In the method for detecting the folding angle in the prior art, a hall sensor is added in a rotating shaft of a foldable screen, and the hall sensor is used for sensing the change of magnetic flux so as to determine the folding angle of the foldable screen.
The method for detecting the folding angle in the prior art also has the following defects: the Hall sensor has low accuracy in sensing the change of magnetic flux, and the structure of the foldable screen needs to be changed by adding the Hall sensor in the rotating shaft of the foldable screen, so that the structural design of the foldable screen is complex, the producibility is poor, and the yield is low.
Disclosure of Invention
The embodiment of the invention provides a method for detecting a folding angle and electronic equipment, which can solve the problems of low accuracy, poor producibility of a foldable screen and low yield of the method for detecting the folding angle in the prior art.
In order to solve the technical problem, the invention is realized as follows: a method for detecting a folding angle is applied to an electronic device, the electronic device comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and the method comprises the following steps:
under the condition that the signal transmitting module transmits a signal at preset power, acquiring first receiving power of the signal receiving module;
and determining a first folding angle of the foldable screen according to the preset power and the first receiving power.
In a first aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a foldable screen, a signal transmitting module, and a signal receiving module corresponding to the signal transmitting module, where the signal transmitting module and the signal receiving module are respectively disposed at positions corresponding to two ends of the foldable screen, and the electronic device further includes:
the first receiving power acquisition module is used for acquiring first receiving power of the signal receiving module under the condition that the signal transmitting module transmits signals at preset power;
and the folding angle determining module is used for determining a first folding angle of the foldable screen according to the preset power and the first receiving power.
In a second aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of detecting a folding angle as described above.
In a third aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for detecting a folding angle as described above.
In the embodiment of the invention, the electronic device comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and under the condition that the signal transmitting module transmits signals with preset power, first receiving power of the signal receiving module is obtained, and then a first folding angle of the foldable screen is determined according to the preset power and the first receiving power. The foldable screen detection device has the advantages that the foldable screen can be detected by only adding the signal transmitting module and the signal receiving module in the electronic equipment under the condition that the structure of the foldable screen is not changed, the producibility is good, the yield is high, and the detection accuracy is high.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a flow chart illustrating steps of a method for detecting a folding angle according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of another method for detecting a fold angle according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic side view of an electronic device according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another electronic device according to an embodiment of the invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method for detecting the folding angle provided by the invention is described in detail. The method for detecting the folding angle is applied to electronic equipment, the electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, and the signal transmitting module and the signal receiving module are respectively arranged at the positions corresponding to the two ends of the foldable screen. The signal transmitting module and the signal receiving module correspond to each other and can receive the signal transmitted by the signal transmitting module for the signal receiving module; the signal transmitting module and the signal receiving module are respectively arranged at the corresponding positions of the two ends of the foldable screen, the signal transmitting module can be arranged at the first end of the foldable screen, the signal receiving module is arranged at the second end of the foldable screen, the first end of the foldable screen corresponds to the second end of the foldable screen, namely, if the first end of the foldable screen is the top end of the foldable screen, the second end of the foldable screen is the bottom end of the foldable screen, and if the first end of the foldable screen is the bottom end of the foldable screen, the second end of the foldable screen is the top end of the foldable screen.
Preferably, the signal transmitting module and the signal receiving module can be arranged at any positions in the electronic equipment, which have no influence on the appearance and performance of the electronic equipment. Preferably, the signal transmitting module and the signal receiving module are disposed at two ends of the foldable screen, and may be at positions where the receiving power of the signal receiving module is maximum at each folding angle when the signal transmitting module transmits a signal at a preset power.
Alternatively, the foldable screen may be a foldable screen of any configuration. For example, the foldable screen may serve as an outer surface of the electronic device and the housing as an inner surface of the electronic device when the foldable screen is folded, or the foldable screen may serve as an inner surface of the electronic device and the housing as an outer surface of the electronic device when the foldable screen is folded.
Referring to FIG. 1, a flow chart of the steps of a method of detecting a fold angle of the present invention is shown.
When the electronic device works, the signal transmitting module can be set to always transmit signals with preset power, namely, the transmitting power of the signal transmitting module is unchanged. Specifically, the receiving power of the signal receiving module is affected by the folding angle of the foldable screen, that is, when the foldable screen is folded to the first folding angle, the receiving power of the signal receiving module is the first receiving power; when the foldable screen is folded to the second folding angle, the receiving power of the signal receiving module is the second receiving power.
Specifically, step 110 may determine a first receive power of the signal receiving module by acquiring a first receive signal of the signal receiving module.
And step 120, determining a first folding angle of the foldable screen according to the preset power and the first receiving power.
Specifically, the folding angle range of the foldable screen may be 0 degree to 180 degrees, when the signal transmitting module transmits a signal with a preset power, since the receiving power of the signal receiving module is affected by the folding angle of the foldable screen, there is a corresponding relationship between the preset power, the receiving power of the signal receiving module, and each folding angle (e.g., 0 degree, 1 degree, … …, 180 degrees), and according to the corresponding relationship between the preset power, the receiving power of the signal receiving module, and the folding angle, when the preset power and the receiving power of the signal receiving module are known as the first receiving power, the folding angle of the foldable screen may be determined quickly and accurately. The corresponding relation among the preset power, the receiving power of the signal receiving module and the folding angle can be set according to a large amount of test data or simulation data. Specifically, the preset power may be any power that does not affect the performance of the electronic device.
The preset power, the receiving power of the signal receiving module and the corresponding relation among each folding angle can be calibrated by a producer or a brand in the stage of producing the electronic equipment or debugging the electronic equipment and then stored in the electronic equipment.
In the embodiment of the invention, the electronic device comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and under the condition that the signal transmitting module transmits signals with preset power, first receiving power of the signal receiving module is obtained, and then a first folding angle of the foldable screen is determined according to the preset power and the first receiving power. The foldable screen detection device has the advantages that the foldable screen can be detected by only adding the signal transmitting module and the signal receiving module in the electronic equipment under the condition that the structure of the foldable screen is not changed, the producibility is good, the yield is high, and the detection accuracy is high.
Another method for detecting a folding angle provided by the present invention is described in detail. The method for detecting the folding angle is applied to electronic equipment, the electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, and the signal transmitting module and the signal receiving module are respectively arranged at the positions corresponding to the two ends of the foldable screen. The signal transmitting module and the signal receiving module correspond to each other and can receive the signal transmitted by the signal transmitting module for the signal receiving module; the signal transmitting module and the signal receiving module are respectively arranged at the corresponding positions of the two ends of the foldable screen, the signal transmitting module can be arranged at the first end of the foldable screen, the signal receiving module is arranged at the second end of the foldable screen, the first end of the foldable screen corresponds to the second end of the foldable screen, namely, if the first end of the foldable screen is the top end of the foldable screen, the second end of the foldable screen is the bottom end of the foldable screen, and if the first end of the foldable screen is the bottom end of the foldable screen, the second end of the foldable screen is the top end of the foldable screen.
Preferably, the signal transmitting module and the signal receiving module can be arranged at any positions in the electronic equipment, which have no influence on the appearance and performance of the electronic equipment. Preferably, the signal transmitting module and the signal receiving module are disposed at two ends of the foldable screen, and may be at positions where the receiving power of the signal receiving module is maximum at each folding angle when the signal transmitting module transmits a signal at a preset power.
Alternatively, the signal transmitting module and the signal receiving module may be miniature directional antennas operating at a preset frequency. If the electronic device has the signal transmitting function and the signal receiving function when the signal transmitting module and the signal receiving module are not arranged, the preset frequency can be within a signal frequency range corresponding to the existing signal transmitting function and the signal receiving function of the electronic device or can be out of the signal frequency range corresponding to the existing signal transmitting function and the signal receiving function of the electronic device, and the preset frequency only needs to have no influence on the existing signal transmitting function and the existing signal receiving function of the electronic device.
Alternatively, the foldable screen may be a foldable screen of any configuration. For example, the foldable screen may serve as an outer surface of the electronic device and the housing as an inner surface of the electronic device when the foldable screen is folded, or the foldable screen may serve as an inner surface of the electronic device and the housing as an outer surface of the electronic device when the foldable screen is folded.
Referring to FIG. 2, a flow chart of steps of another method of detecting a fold angle of the present invention is shown.
When the electronic device works, the signal transmitting module can be set to always transmit signals with preset power, namely, the transmitting power of the signal transmitting module is unchanged. Specifically, the receiving power of the signal receiving module is affected by the folding angle of the foldable screen, that is, when the foldable screen is folded to the first folding angle, the receiving power of the signal receiving module is the first receiving power; when the foldable screen is folded to the second folding angle, the receiving power of the signal receiving module is the second receiving power.
Specifically, step 210 may determine a first receive power of the signal receiving module by acquiring a first receive signal of the signal receiving module.
And step 220, determining a first folding angle of the foldable screen according to the preset power and the first receiving power.
Specifically, the folding angle range of the foldable screen may be 0 degree to 180 degrees, when the signal transmitting module transmits a signal with a preset power, since the receiving power of the signal receiving module is affected by the folding angle of the foldable screen, there is a corresponding relationship between the preset power, the receiving power of the signal receiving module, and each folding angle (e.g., 0 degree, 1 degree, … …, 180 degrees), and according to the corresponding relationship between the preset power, the receiving power of the signal receiving module, and the folding angle, when the preset power and the receiving power of the signal receiving module are known as the first receiving power, the folding angle of the foldable screen may be determined quickly and accurately. The corresponding relation among the preset power, the receiving power of the signal receiving module and the folding angle can be set according to a large amount of test data or simulation data. Specifically, the preset power may be any power that does not affect the performance of the electronic device.
The preset power, the receiving power of the signal receiving module and the corresponding relation among each folding angle can be calibrated by a producer or a brand in the stage of producing the electronic equipment or debugging the electronic equipment and then stored in the electronic equipment.
Optionally, the step 220 of determining a first folding angle of the foldable screen according to the preset power and the first received power may include:
The first power range may be a preset power range corresponding to the folding angles, and each folding angle corresponds to a power range of the received power one to one. The power range of the received power corresponding to the folding angle can be set according to a large amount of test data or simulation data.
The preset power, the first power range and the folding angle can have unique corresponding relation, and therefore when the first power range where the preset power and the first receiving power are located is known, the folding angle of the foldable screen can be determined quickly and accurately.
Since the step 222 determines the first folding angle corresponding to the first receiving power according to the preset power, the corresponding relationship between the first power range and the folding angle, and the first power range includes a plurality of receiving powers, the error of detecting the folding angle of the foldable screen can be reduced, the reliability of detecting the folding angle of the foldable screen can be improved, and the determination of the wrong folding angle due to the change of the receiving power in a small range can be avoided.
The preset power, the power range of the receiving power of the signal receiving module and the corresponding relation between each folding angle can be calibrated by a producer or a brand in the stage of producing the electronic equipment or debugging the electronic equipment and then stored in the electronic equipment.
Optionally, after obtaining the first receiving power of the signal receiving module, the method may further include:
in step 230, it is determined whether the received power of the signal receiving module changes.
Alternatively, step 230 may determine whether the receiving power of the signal receiving module changes according to the first receiving power of the signal receiving module and other receiving powers of the signal receiving module within the first preset time. The first preset time may be a first preset time before the first receiving power of the signal receiving module is obtained, or the first preset time may be a first preset time after the first receiving power of the signal receiving module is obtained, and the first preset time may be set according to a large amount of test data or simulation data.
And step 240, if yes, controlling the signal transmitting module and the signal receiving module to enter a continuous working state.
If the receiving power of the signal receiving module changes, it is indicated that the foldable screen is still in the rotating process, and the folding angle of the foldable screen needs to be continuously detected.
Specifically, in the continuous working state, the signal transmitting module continuously transmits signals, and the signal receiving module continuously receives signals, so as to ensure that the receiving power of the signal receiving module can be continuously obtained in step 210, and ensure that the folding angle of the foldable screen can be continuously detected.
And 250, if not, controlling the signal transmitting module and the signal receiving module to enter a working state according to a preset period.
If the receiving power of the signal receiving module is not changed, it indicates that the foldable screen is not rotated and is in a stable state.
Specifically, under the condition that the signal transmitting module and the signal receiving module enter the working state according to the preset period, the signal transmitting module may transmit a signal every second preset time interval, and the signal receiving module receives a signal every second preset time interval correspondingly, so as to ensure that the receiving power of the signal receiving module can be obtained in step 210, and the folding angle of the foldable screen can be detected in step 220. The second preset time may be set according to a large amount of test data or simulation data, for example, the second preset time may be a time in the order of milliseconds or seconds.
The reduction of power consumption of the signal transmitting module and the signal receiving module can be achieved through step 250.
Optionally, the step 230 of determining whether the receiving power of the signal receiving module changes may include:
in step 231, a second receiving power of the signal receiving module is obtained.
In this case, step 231 may obtain the second receiving power of the signal receiving module within a first preset time before step 210, or step 231 may obtain the second receiving power of the signal receiving module within a first preset time after step 210.
Specifically, step 231 may determine the second receiving power of the signal receiving module by acquiring the second receiving signal of the signal receiving module.
If yes, step 233, determining that the receiving power of the signal receiving module has not changed.
If the second received power is within the first power range of the first received power, the foldable screen is not rotated and is in a stable state, and the folding angle is not changed.
If not, the receiving power of the signal receiving module is determined to be changed, step 234.
If the second received power is not in the first power range of the first received power, it indicates that the foldable screen is still in the rotating process, and the folding angle of the foldable screen needs to be continuously detected.
In the embodiment of the invention, the electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and the first receiving power of the signal receiving module is obtained under the condition that the signal transmitting module transmits signals at preset power; determining a first folding angle of the foldable screen according to the preset power and the first receiving power; and judging whether the receiving power of the signal receiving module changes or not after the first receiving power of the signal receiving module is acquired, if so, controlling the signal transmitting module and the signal receiving module to enter a continuous working state, and if not, controlling the signal transmitting module and the signal receiving module to enter the working state according to a preset period. The folding angle of the foldable screen can be detected only by adding the signal transmitting module and the signal receiving module in the electronic equipment under the condition that the structure of the foldable screen is not changed, the producibility is good, the yield is high, the detection accuracy is high, and the power consumption of the signal transmitting module and the signal receiving module is low.
Referring to fig. 3, a schematic structural diagram of an electronic device according to an embodiment of the present invention is shown.
As shown in fig. 4, the electronic device according to the embodiment of the present invention may include a foldable screen 41, a signal transmitting module 42, and a signal receiving module 43 corresponding to the signal transmitting module, wherein the signal transmitting module 42 and the signal receiving module 43 are respectively disposed at positions corresponding to two ends of the foldable screen 41. Alternatively, the foldable screen 41 may be a foldable screen of any structure. For example, the foldable screen 41 may serve as an outer surface of the electronic device and the housing 44 of the electronic device as an inner surface of the electronic device when the foldable screen 41 is folded, or as shown in fig. 4, the foldable screen 41 may serve as an inner surface of the electronic device and the housing 44 of the electronic device as an outer surface of the electronic device when the foldable screen 41 is folded. The dashed line in fig. 4 is a schematic side structure diagram of the electronic device during the folding process of the foldable screen 41.
As shown in fig. 3, the electronic device may further include:
a first received power obtaining module 310, configured to obtain a first received power of the signal receiving module when the signal transmitting module transmits a signal at a preset power;
a folding angle determining module 320, configured to determine a first folding angle of the foldable screen according to the preset power and the first received power.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 1, and is not described herein again to avoid repetition.
In the embodiment of the invention, the electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and the first receiving power of the signal receiving module is obtained under the condition that the signal transmitting module transmits signals at preset power; and then determining a first folding angle of the foldable screen according to the preset power and the first receiving power. The foldable screen detection device has the advantages that the foldable screen can be detected by only adding the signal transmitting module and the signal receiving module in the electronic equipment under the condition that the structure of the foldable screen is not changed, the producibility is good, the yield is high, and the detection accuracy is high.
Referring to fig. 5, a schematic structural diagram of another electronic device according to an embodiment of the present invention is shown.
As shown in fig. 4, the electronic device according to the embodiment of the present invention may include a foldable screen 41, a signal transmitting module 42, and a signal receiving module 43 corresponding to the signal transmitting module, wherein the signal transmitting module 42 and the signal receiving module 43 are respectively disposed at positions corresponding to two ends of the foldable screen 41. Alternatively, the signal transmitting module 42 and the signal receiving module 43 may have any structure, for example, the signal transmitting module 42 and the signal receiving module 43 may be directional antennas operating at a preset frequency.
As shown in fig. 5, the electronic device may further include:
a first received power obtaining module 510, configured to obtain a first received power of the signal receiving module when the signal transmitting module transmits a signal at a preset power;
a folding angle determining module 520, configured to determine a first folding angle of the foldable screen according to the preset power and the first received power.
Optionally, the folding angle determining module 520 may include:
a power range determining unit 521, configured to determine a first power range in which the first received power is located according to the first received power.
The folding angle determining unit 522 is configured to determine a first folding angle corresponding to the first receiving power according to a corresponding relationship between the preset power, the first power range, and the folding angle.
Optionally, after the first received power obtaining module 510, the method may further include:
the determining module 530 is configured to determine whether the receiving power of the signal receiving module changes.
The first state entering module 540 is configured to control the signal transmitting module and the signal receiving module to enter a continuous working state if the receiving power of the signal receiving module changes.
The second state entering module 550 is configured to control the signal transmitting module and the signal receiving module to enter the working state according to a preset period if the receiving power of the signal receiving module is not changed.
Alternatively, the determining module 530 may include:
a second received power obtaining unit 531, configured to obtain a second received power of the signal receiving module.
The determining unit 532 is configured to determine whether the second received power is within the first power range of the first received power.
The first determining unit 533 determines that the reception power of the signal receiving module is not changed if the second reception power is within the first power range in which the first reception power is located.
The second determining unit 534 determines that the reception power of the signal reception module is changed if the second reception power is not within the first power range in which the first reception power is located.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 2, and is not described here again to avoid repetition.
In the embodiment of the invention, the electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and the first receiving power of the signal receiving module is obtained under the condition that the signal transmitting module transmits signals at preset power; determining a first folding angle of the foldable screen according to the preset power and the first receiving power; and judging whether the receiving power of the signal receiving module changes or not after the first receiving power of the signal receiving module is acquired, if so, controlling the signal transmitting module and the signal receiving module to enter a continuous working state, and if not, controlling the signal transmitting module and the signal receiving module to enter the working state according to a preset period. The folding angle of the foldable screen can be detected only by adding the signal transmitting module and the signal receiving module in the electronic equipment under the condition that the structure of the foldable screen is not changed, the producibility is good, the yield is high, the detection accuracy is high, and the power consumption of the signal transmitting module and the signal receiving module is low.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and components such as a power supply 611, a foldable screen, a signal transmitting module, and a signal receiving module corresponding to the signal transmitting module. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, 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.
The processor 610 is configured to obtain a first receiving power of the signal receiving module when the signal transmitting module transmits a signal at a preset power; and determining a first folding angle of the foldable screen according to the preset power and the first receiving power.
The electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and first receiving power of the signal receiving module is obtained under the condition that the signal transmitting module transmits signals at preset power; and then determining a first folding angle of the foldable screen according to the preset power and the first receiving power. The foldable screen detection device has the advantages that the foldable screen can be detected by only adding the signal transmitting module and the signal receiving module in the electronic equipment under the condition that the structure of the foldable screen is not changed, the producibility is good, the yield is high, and the detection accuracy is high.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 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. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (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 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by 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, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 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 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, including: the processor 610, the memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the above-mentioned method for detecting a folding angle, and can achieve the same technical effect, and in order to avoid repetition, it is not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for detecting a folding angle, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (11)
1. A method for detecting a folding angle is applied to electronic equipment, and is characterized in that the electronic equipment comprises a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively arranged at positions corresponding to two ends of the foldable screen, and the method comprises the following steps:
under the condition that the signal transmitting module transmits a signal at preset power, acquiring first receiving power of the signal receiving module;
and determining a first folding angle of the foldable screen according to the preset power and the first receiving power.
2. The method of claim 1, wherein determining the first folding angle of the foldable screen according to the preset power and the first received power comprises:
determining a first power range in which the first received power is located according to the first received power;
and determining the first folding angle corresponding to the first receiving power according to the corresponding relation among the preset power, the first power range and the folding angle.
3. The method of claim 1, further comprising, after said obtaining the first received power of the signal receiving module:
judging whether the receiving power of the signal receiving module changes or not;
if yes, controlling the signal transmitting module and the signal receiving module to enter a continuous working state;
if not, controlling the signal transmitting module and the signal receiving module to enter a working state according to a preset period.
4. The method of claim 3, wherein the determining whether the receiving power of the signal receiving module changes comprises:
acquiring second receiving power of the signal receiving module;
judging whether the second received power is in a first power range of the first received power;
if yes, determining that the receiving power of the signal receiving module is not changed;
and if not, determining that the receiving power of the signal receiving module is changed.
5. An electronic device, comprising a foldable screen, a signal transmitting module and a signal receiving module corresponding to the signal transmitting module, wherein the signal transmitting module and the signal receiving module are respectively disposed at positions corresponding to two ends of the foldable screen, the electronic device further comprising:
the first receiving power acquisition module is used for acquiring first receiving power of the signal receiving module under the condition that the signal transmitting module transmits signals at preset power;
and the folding angle determining module is used for determining a first folding angle of the foldable screen according to the preset power and the first receiving power.
6. The electronic device of claim 5, wherein the folding angle determination module comprises:
a power range determining unit, configured to determine, according to the first received power, a first power range in which the first received power is located;
and the folding angle determining unit is used for determining the first folding angle corresponding to the first receiving power according to the corresponding relation among the preset power, the first power range and the folding angle.
7. The electronic device of claim 5, further comprising, after the first receive power acquisition module:
the judging module is used for judging whether the receiving power of the signal receiving module changes or not;
a first state entering module, configured to control the signal transmitting module and the signal receiving module to enter a continuous working state if the receiving power of the signal receiving module changes;
and the second state entering module is used for controlling the signal transmitting module and the signal receiving module to enter a working state according to a preset period if the receiving power of the signal receiving module is not changed.
8. The electronic device of claim 7, wherein the determining module comprises:
a second received power acquiring unit, configured to acquire a second received power of the signal receiving module;
a determining unit, configured to determine whether the second received power is within a first power range in which the first received power is located;
a first determining unit that determines that the reception power of the signal receiving module has not changed if the second reception power is within a first power range in which the first reception power is located;
a second determining unit that determines that the reception power of the signal reception module is changed if the second reception power is not within the first power range in which the first reception power is located.
9. The electronic device of claim 5, wherein the signal transmitting module and the signal receiving module are directional antennas operating at a predetermined frequency.
10. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of the method of detecting a folding angle as claimed in any one of claims 1 to 4.
11. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of detecting a folding angle of one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911350196.6A CN111142618A (en) | 2019-12-24 | 2019-12-24 | Method for detecting folding angle and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911350196.6A CN111142618A (en) | 2019-12-24 | 2019-12-24 | Method for detecting folding angle and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111142618A true CN111142618A (en) | 2020-05-12 |
Family
ID=70519687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911350196.6A Pending CN111142618A (en) | 2019-12-24 | 2019-12-24 | Method for detecting folding angle and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111142618A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112510779A (en) * | 2020-11-25 | 2021-03-16 | 维沃移动通信有限公司 | Charging apparatus and charging method |
US20220139273A1 (en) * | 2020-10-30 | 2022-05-05 | Synaptics Incorporated | Strain sensing in foldable displays |
US11579679B2 (en) | 2021-05-12 | 2023-02-14 | Microsoft Technology Licensing, Llc | Determining opening/closing of computing device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003158573A (en) * | 2001-11-21 | 2003-05-30 | Canon Inc | Foldable device and its control method |
CN109871147A (en) * | 2019-02-22 | 2019-06-11 | 华为技术有限公司 | A kind of response method and electronic equipment of touch screen |
CN110072014A (en) * | 2019-05-20 | 2019-07-30 | 维沃移动通信有限公司 | A kind of screen folded state determines method and mobile terminal |
CN110417961A (en) * | 2019-07-17 | 2019-11-05 | Oppo广东移动通信有限公司 | Folding screen electronic equipment and folding angles determine method |
-
2019
- 2019-12-24 CN CN201911350196.6A patent/CN111142618A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003158573A (en) * | 2001-11-21 | 2003-05-30 | Canon Inc | Foldable device and its control method |
CN109871147A (en) * | 2019-02-22 | 2019-06-11 | 华为技术有限公司 | A kind of response method and electronic equipment of touch screen |
CN110072014A (en) * | 2019-05-20 | 2019-07-30 | 维沃移动通信有限公司 | A kind of screen folded state determines method and mobile terminal |
CN110417961A (en) * | 2019-07-17 | 2019-11-05 | Oppo广东移动通信有限公司 | Folding screen electronic equipment and folding angles determine method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220139273A1 (en) * | 2020-10-30 | 2022-05-05 | Synaptics Incorporated | Strain sensing in foldable displays |
US11488499B2 (en) * | 2020-10-30 | 2022-11-01 | Synaptics Incorporated | Strain sensing in foldable displays |
CN112510779A (en) * | 2020-11-25 | 2021-03-16 | 维沃移动通信有限公司 | Charging apparatus and charging method |
CN112510779B (en) * | 2020-11-25 | 2023-01-31 | 维沃移动通信有限公司 | Charging apparatus and charging method |
US11579679B2 (en) | 2021-05-12 | 2023-02-14 | Microsoft Technology Licensing, Llc | Determining opening/closing of computing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109343759B (en) | Screen-turning display control method and terminal | |
CN108459815B (en) | Display control method and mobile terminal | |
CN109714485B (en) | Display method and mobile terminal | |
CN108600546B (en) | Environment light detection method and mobile terminal | |
CN109862504B (en) | Display method and terminal equipment | |
CN110174993B (en) | Display control method, terminal equipment and computer readable storage medium | |
CN111142745B (en) | Display method and electronic equipment | |
CN111026484A (en) | Application sharing method, first electronic device and computer-readable storage medium | |
CN108900695B (en) | Display processing method, terminal equipment and computer readable storage medium | |
CN109343788B (en) | Operation control method of mobile terminal and mobile terminal | |
CN110365853B (en) | Prompting method and electronic equipment | |
CN108108113B (en) | Webpage switching method and device | |
CN110933494A (en) | Picture sharing method and electronic equipment | |
CN111142618A (en) | Method for detecting folding angle and electronic equipment | |
CN111443815A (en) | Vibration reminding method and electronic equipment | |
CN111290810A (en) | Image display method and electronic equipment | |
CN109814799A (en) | Screen response control mehtod and terminal device | |
CN111256580B (en) | Electronic equipment and rotation angle detection method | |
CN110456923B (en) | Gesture sensing data processing method and electronic equipment | |
CN109443261B (en) | Method for acquiring folding angle of folding screen mobile terminal and mobile terminal | |
CN111561899A (en) | Folding angle detection method and electronic equipment | |
CN111061446A (en) | Display method and electronic equipment | |
CN108388459B (en) | Message display processing method and mobile terminal | |
CN111061407B (en) | Video program operation control method, electronic device, and storage medium | |
CN111310165B (en) | Account switching or registering method and electronic equipment |
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 |