CN116033051B - Folding angle detection method and device for folding screen and readable storage medium - Google Patents

Folding angle detection method and device for folding screen and readable storage medium Download PDF

Info

Publication number
CN116033051B
CN116033051B CN202210955379.6A CN202210955379A CN116033051B CN 116033051 B CN116033051 B CN 116033051B CN 202210955379 A CN202210955379 A CN 202210955379A CN 116033051 B CN116033051 B CN 116033051B
Authority
CN
China
Prior art keywords
folding
magnetic field
display area
angle
screen
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
CN202210955379.6A
Other languages
Chinese (zh)
Other versions
CN116033051A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210955379.6A priority Critical patent/CN116033051B/en
Publication of CN116033051A publication Critical patent/CN116033051A/en
Application granted granted Critical
Publication of CN116033051B publication Critical patent/CN116033051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a folding angle detection method and device of a folding screen and a readable storage medium, and belongs to the technical field of terminals. The folding screen is an inner screen of the electronic device, the content display area of the folding screen is divided into a first display area and a second display area by a folding shaft, a magnetometer is arranged at any one side rail of the folding screen, at least four magnetic field generating devices are further arranged in the electronic device, at least two magnetic field generating devices are arranged at each side rail of the folding screen, and the magnetometer is arranged between any two magnetic field generating devices of any one side rail, so that in response to folding operation of the folding screen, the magnetometer can receive magnetic field signals generated by each magnetic field generating device, the electronic device can acquire target magnetic field intensity of the magnetic field signals received by the magnetometer, and according to the target magnetic field intensity, the folding angle between the first display area and the second display area is determined, and the detection accuracy is improved.

Description

Folding angle detection method and device for folding screen and readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for detecting a folding angle of a folding screen, and a readable storage medium.
Background
In order to meet the use demands of people for different screen sizes, more and more electronic devices begin to adopt folding display screens, namely folding screens. In case the folding angle of the folding screen is in different angular ranges, the electronic device may perform different functions, for which reason the electronic device typically needs to determine the folding angle of the folding screen.
Disclosure of Invention
The application provides a folding angle detection method and device of a folding screen and a readable storage medium, which can be used for detecting the folding angle of the folding screen so as to improve the accuracy of detecting the folding angle. The technical scheme is as follows:
in a first aspect, a folding angle detection method of a folding screen is provided, and the folding angle detection method is applied to an electronic device with a folding screen, wherein the folding screen is an inner screen of the electronic device, a content display area of the folding screen is divided into a first display area and a second display area by a folding axis, a magnetometer is arranged at any one side rail of the folding screen, at least four magnetic field generating devices are further installed in the electronic device, at least two magnetic field generating devices are arranged at each side rail of the folding screen, and the magnetometer is arranged between any two magnetic field generating devices of any one side rail, and the method comprises:
Receiving, by the magnetometer, a magnetic field signal generated by each of the at least four magnetic field generating devices in response to a folding operation of the folding screen;
acquiring a target magnetic field strength of a magnetic field signal received by the magnetometer, the target magnetic field strength being a strength of the magnetic field signal between the first display area and the second display area;
and determining a folding angle between the first display area and the second display area according to the target magnetic field intensity.
In this way, in case the folding angle between the first display area and the second display area is changed, the magnetic field strength between the first display area and the second display area will also be changed, and thus the magnetometer-induced magnetic field strength will also be changed. And under the condition that the folding screen is subjected to folding operation, the electronic equipment can determine the corresponding folding angle through the target magnetic field intensity sensed by the magnetometer, so that the accuracy of determining the folding angle is improved.
As an example of the present application, the determining a folding angle between the first display area and the second display area according to the target magnetic field strength includes:
And acquiring a target angle corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
Therefore, through setting the corresponding relation between the magnetic field intensity and the folding angle, the corresponding folding angle can be rapidly determined by the electronic equipment under the condition that any magnetic field intensity is acquired, complex calculation is not needed, and the convenience of detecting the folding angle by the electronic equipment is improved.
As an example of the present application, the determining a folding angle between the first display area and the second display area according to the target magnetic field strength includes:
obtaining a target virtual Hall value corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the virtual Hall value;
and acquiring a target angle corresponding to the target virtual Hall value from the corresponding relation between the virtual Hall value and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
In this way, the folding angle is determined according to the magnetic field strength in different ways, thereby increasing the richness of the way in which the folding angle is determined.
As an example of the present application, after determining the folding angle between the first display area and the second display area according to the target magnetic field strength, the method further includes:
acquiring the maintenance time length of the folding angle;
and under the condition that the maintenance time length of the folding angle is larger than or equal to a first time length threshold value, switching the display mode of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
Therefore, the current folding angle can be ensured to be the angle required by the user by setting the maintenance time length of the folding angle, and the accuracy of executing the functions of the electronic equipment is improved.
As an example of the present application, when the maintenance time period of the folding angle is greater than or equal to a first time period threshold, the switching the display mode of the electronic device to the target scene mode corresponding to the angle range in which the folding angle is located includes:
determining an angle range in which the folding angle is located under the condition that the maintenance time length of the folding angle is greater than or equal to a first time length threshold value;
determining a target scene mode corresponding to the angle range where the folding angle is located from the corresponding relation between the angle range and the scene mode;
And switching the display module of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
Therefore, through setting the corresponding relation between the angle range and the scene mode, the electronic equipment can directly determine the corresponding target scene mode according to the folding angle, and the accuracy of mode switching is improved.
As an example of the present application, the switching the display mode of the electronic device to the target scene mode corresponding to the angle range where the folding angle is located includes:
switching a display mode of the electronic equipment to a picture hovering mode under the condition that the folding angle is in a first preset angle range;
switching a display mode of the electronic equipment to a folding screen extinguishing mode under the condition that the folding angle is in a second preset angle range;
switching a display module of the electronic equipment to a folding screen full-screen display mode under the condition that the folding angle is in a third preset angle range;
switching a display module of the electronic equipment to a notebook mode under the condition that the folding angle is in a fourth preset angle range;
and under the condition that the folding angle is in a fifth preset angle range, switching the display module of the electronic equipment into a desk calendar mode.
Therefore, the display mode of the electronic equipment is switched to the target scene mode corresponding to the angle range where the folding angle is, so that the display richness of the electronic equipment is increased.
As an example of the present application, the magnetic field direction of the magnetic field generating means in the first display area is opposite to the magnetic field direction of the magnetic field generating means in the second display area.
Therefore, when the folding screen is in a closed state, the polarity of the magnetic poles of the magnetic field generating device contained in the first display area is opposite to that of the magnetic poles of the magnetic field generating device contained in the second display area, so that the purpose of opposite attraction is achieved, the folding screen is firmly closed, and meanwhile, the magnetic field strength between the first display area and the second display area is enhanced.
As an example of the present application, the positions of the magnetic field generating devices in the first display area and the positions of the magnetic field generating devices in the second display area are symmetrically distributed with the folding axis as a symmetry axis.
Therefore, under the condition that the folding screen is in different folding angles, the magnetometer can detect the magnetic field intensity with obvious change, and the accuracy of folding angle detection is ensured.
As an example of the present application, the magnetic field directions of the magnetic field generating devices located in the same display area are the same.
Therefore, the consistency of the magnetic field direction at any side rail is ensured, and the guarantee is provided for detecting the change of the magnetic field intensity.
As an example of the application, the magnetometer is independent of the magnetometer in the electronic device acting as a compass.
In this way, the magnetometer is prevented from affecting the function of the compass of the electronic device.
In a second aspect, a folding angle detecting device for a folding screen is provided, and the folding angle detecting device for a folding screen includes a processor and a memory, where the memory is configured to store a program for supporting the folding angle detecting device for a folding screen to execute the folding angle detecting method for a folding screen provided in the first aspect, and store data related to implementing the folding angle detecting method for a folding screen provided in the first aspect. The processor is configured to execute a program stored in the memory. The folding angle detection of the folding screen may further comprise a communication bus for establishing a connection between the processor and the memory. The folding angle detection device of the folding screen is applied to electronic equipment with the folding screen, the folding screen is an inner screen of the electronic equipment, the content display area of the folding screen is divided into a first display area and a second display area by a folding shaft, a magnetometer is arranged at any one side rail of the folding screen, at least four magnetic field generating devices are further arranged in the electronic equipment, at least two magnetic field generating devices are arranged at each side rail of the folding screen, the magnetometer is arranged between any two magnetic field generating devices of any one side rail, and the processor is configured to:
Receiving, by the magnetometer, a magnetic field signal generated by each of the at least four magnetic field generating devices in response to a folding operation of the folding screen;
acquiring a target magnetic field strength of a magnetic field signal received by the magnetometer, the target magnetic field strength being a strength of the magnetic field signal between the first display area and the second display area;
and determining a folding angle between the first display area and the second display area according to the target magnetic field intensity.
As one example of the application, the processor is configured to:
and acquiring a target angle corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
As one example of the application, the processor is configured to:
obtaining a target virtual Hall value corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the virtual Hall value;
and acquiring a target angle corresponding to the target virtual Hall value from the corresponding relation between the virtual Hall value and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
As an example of the present application, the processor is further configured to:
acquiring the maintenance time length of the folding angle;
and under the condition that the maintenance time length of the folding angle is larger than or equal to a first time length threshold value, switching the display mode of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
As one example of the application, the processor is configured to:
and when the maintenance time length of the folding angle is greater than or equal to a first time length threshold, switching the display mode of the electronic device to a target scene mode corresponding to an angle range in which the folding angle is located, including:
determining an angle range in which the folding angle is located under the condition that the maintenance time length of the folding angle is greater than or equal to a first time length threshold value;
determining a target scene mode corresponding to the angle range where the folding angle is located from the corresponding relation between the angle range and the scene mode;
and switching the display module of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
As one example of the application, the processor is configured to:
Switching a display mode of the electronic equipment to a picture hovering mode under the condition that the folding angle is in a first preset angle range;
switching a display mode of the electronic equipment to a folding screen extinguishing mode under the condition that the folding angle is in a second preset angle range;
switching a display module of the electronic equipment to a folding screen full-screen display mode under the condition that the folding angle is in a third preset angle range;
switching a display module of the electronic equipment to a notebook mode under the condition that the folding angle is in a fourth preset angle range;
and under the condition that the folding angle is in a fifth preset angle range, switching the display module of the electronic equipment into a desk calendar mode.
As an example of the present application, the magnetic field direction of the magnetic field generating means in the first display area is opposite to the magnetic field direction of the magnetic field generating means in the second display area.
As an example of the present application, the positions of the magnetic field generating devices in the first display area and the positions of the magnetic field generating devices in the second display area are symmetrically distributed with the folding axis as a symmetry axis.
As an example of the present application, the magnetic field directions of the magnetic field generating devices located in the same display area are the same.
As an example of the application, the magnetometer is independent of the magnetometer in the electronic device acting as a compass.
In a third aspect, there is provided a computer-readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the folding angle detection method of the folding screen according to the first aspect described above.
In a fourth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the folding angle detection method of the folding screen according to the first aspect described above.
The technical effects obtained by the second, third and fourth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and are not described in detail herein.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an electronic device with a folding screen, according to an example embodiment;
fig. 3 is a schematic structural view of an electronic device with a folding screen according to another exemplary embodiment;
FIG. 4 is a schematic diagram illustrating one magnetic field direction according to an exemplary embodiment;
fig. 5 is a schematic structural view of an electronic device with a folding screen according to another exemplary embodiment;
fig. 6 is a schematic structural view of an electronic device according to another exemplary embodiment;
FIG. 7 is a schematic diagram of a software framework of an electronic device, shown in accordance with an exemplary embodiment;
FIG. 8 is a schematic diagram of a folding angle detection application scenario of a folding screen, according to an example embodiment;
fig. 9 is a schematic diagram of a folding angle detection application scenario of a folding screen according to another exemplary embodiment;
fig. 10 is a schematic view of a folding angle detection application scenario of a folding screen according to another exemplary embodiment;
fig. 11 is a schematic view of a folding angle detection application scenario of a folding screen according to another exemplary embodiment;
FIG. 12 is a flowchart illustrating a method of detecting a folding angle of a folding screen according to an exemplary embodiment;
fig. 13 is a flowchart illustrating a folding angle detection method of a folding screen according to another exemplary embodiment;
fig. 14 is a schematic structural view of a folding angle detecting apparatus of a folding screen according to an exemplary embodiment.
Reference numerals:
01: first display area of folding screen, 02: second display area of folding screen, 03: the folding axis of the folding screen is provided with a plurality of folding grooves,
04: third display screen, 05: magnetometer, 06: magnetic field generating device, 061: first magnetic field generating means, 062: second magnetic field generating means, 063: third magnetic field generating device, 064: fourth magnetic field generating means, 07: target video, 08: operation control, 09: screen lock interface, 10: desktop, 11: slide control, 12: notebook interface, 13: virtual keyboard, 14: calendar view.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that references to "a plurality" in this disclosure refer to two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may represent A or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and function. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In one possible scenario, in order to enable the electronic device to perform different functions during the use of the electronic device with the folding screen, the folding screen is typically subjected to a folding operation, and during this process, the electronic device performs different operations according to a change in the folding angle. For example, the electronic device is a mobile phone with a folding screen, and if a user wants to watch a video through a large screen in a state that the folding screen of the mobile phone is in a closed state, the user can perform an unfolding operation on the folding screen. In the process of unfolding the folding screen under the operation of a user, the mobile phone can detect the folding angle of the folding screen and lighten the folding screen when detecting that the folding angle of the folding screen is larger than or equal to a preset first angle; when the folding screen is detected to be fully unfolded, namely when the folding angle of the folding screen is detected to be 180 degrees, the desktop of the mobile phone is displayed in a full screen mode in the folding screen; the user can trigger the video application program on the desktop of the mobile phone, so that the mobile phone plays the video through the folding screen. If the user performs closing operation on the folding screen, the mobile phone can deactivate the folding screen when detecting that the folding angle of the folding screen is smaller than or equal to a preset second angle in the process of closing the folding screen.
The folding screen is typically an internal screen of the electronic device, and a content display area of the folding screen is typically divided into a first display area and a second display area by a folding axis during folding, and a folding angle of the folding screen generally refers to a folding angle between the first display area and the second display area. At present, a first acceleration gyro sensor can be installed in a first display area, a second acceleration gyro sensor is installed in a second display area, and in the process that the folding screen is folded under the operation of a user, the electronic equipment can calculate an included angle through the speed measured by the first acceleration gyro sensor and the speed measured by the second acceleration gyro sensor, so that the folding angle of the folding screen is determined. However, if the change in the folding angle between the first display area and the second display area is small, the change in the folding angle may not be detected by the first and second accelerometer sensors, resulting in lower accuracy in determining the folding angle of the folding screen. In addition, if the user performs the folding operation at a relatively stable speed during the folding operation of the folding screen, the speed changes detected by the first acceleration gyro sensor and the second acceleration gyro sensor are smaller, so that the determined folding angle is changed less, and the determined folding angle is different from the actual folding angle, so that the electronic device cannot realize different functions under the condition of different folding angles. For example, in the case where the electronic device is a mobile phone with a folding screen, referring to fig. 1 (a), the folding screen is in an unfolded state, and a target video is played in the folding screen, and a user performs a closing operation on the folding screen at a relatively stable speed; in response to a closing operation of the folding screen by a user, the mobile phone calculates an included angle through the speeds measured by the first acceleration gyro sensor and the second acceleration gyro sensor, wherein, since the folding screen of the mobile phone changes from a speed of 0 to a speed of other than 0, in this speed change, the mobile phone can detect that the folding angle of the folding screen is 30 degrees, but if the user performs the closing operation at a relatively stable speed, the acceleration of the closing process is small, the mobile phone can cause the folding angle of the folding screen to be detected by the mobile phone to be hardly changed after 30 degrees, so that in the case that the actual angle of the folding screen is 90 degrees, the folding angle of the folding screen is still detected by the mobile phone to be about 30 degrees, and in fig. 1 (b) illustrates the scene, in the case that the folding angle is 90 degrees, the mobile phone still displays the target video in the folding screen in full screen due to the detection of the folding angle is 30 degrees, instead of entering a picture hovering mode corresponding to the folding angle of the mobile phone.
In order to improve the precision and reliability of detecting the folding angle of a folding screen, the embodiment of the application provides a folding angle detection method of the folding screen, which can be applied to electronic equipment with the folding screen, wherein a content display area of the folding screen is divided into a first display area and a second display area by a folding shaft, a magnetometer is arranged at any side rail of the folding screen, at least two magnetic field generating devices are arranged at each side rail of the folding screen, the magnetometer is arranged between any two magnetic field generating devices of any one side rail, and each magnetic field generating device can generate a magnetic field signal, so that the electronic equipment can detect the strength of the magnetic field signal between the first display area and the second display area through the magnetometer in the folding process of the folding screen, namely detect the target magnetic field strength, and determine the folding angle between the first display area and the second display area through the target magnetic field strength. Since the magnetometer is capable of sensing the magnetic field strength between the first display area and the second display area, the magnetic field strength between the first display area and the second display area will also change in case of a change in the folding angle between the first display area and the second display area, and thus the magnetic field strength sensed by the magnetometer will also change. Therefore, under the condition that the folding screen is subjected to folding operation, the electronic equipment can determine the corresponding folding angle through the target magnetic field intensity sensed by the magnetometer.
Before describing the method provided by the embodiment of the present application in detail, an execution body related to the embodiment of the present application is described. The method can be applied to the electronic equipment with the folding screen. Referring to fig. 2, fig. 2 is an electronic device with a folding screen according to an exemplary embodiment. Fig. 2 (a) is a schematic view of the electronic device in an unfolded state, which may also be referred to as an unfolded state; fig. 2 (b) is a schematic view of the electronic device in a folded state, which may also be referred to as a closed state. As shown in fig. 2 (a), the folding screen of the electronic device is an internal screen of the electronic device, a content display area of the folding screen is divided into a first display area 01 and a second display area 02 by a folding axis 03, and the first display area 01 and the second display area 01 can be closed and opened along the folding axis 03.
It should be noted that, the embodiment of the present application is only described by taking the electronic device including two display screens (one inner screen and one outer screen) as an example, and in another embodiment, the electronic device may further include three or more display screens, where at least one outer screen is included, that is, at least one display screen is disposed on the back of the electronic device, and the at least one outer screen may also be referred to as the third display screen 04, see fig. 2 (b).
As an example, please refer to fig. 3, the folding screen is an internal screen of the electronic device, and the content display area of the folding screen is divided into a first display area 01 and a second display area 02 by a folding axis 03, and a magnetometer 05 is disposed at any side rail of the folding screen, and the magnetometer can sense the magnetic field intensity between the first display area 01 and the second display area 02. In order to enable the magnetometer 05 to sense the magnetic field intensity between the first display area 01 and the second display area 02, at least four magnetic field generating devices 061-064 are further installed in the electronic device, wherein at least two magnetic field generating devices 06 are respectively arranged on the side columns of the first display area 01 and the second display area 02, and the magnetometer 05 is arranged between two magnetic field generating devices of any one side column.
In some embodiments, the magnetometer is independent of a magnetometer in the electronic device that is a compass. Of course, the magnetometer may also be a magnetometer in an electronic device that acts as a compass. However, in general, in order to avoid affecting the function of the compass of the electronic device, the magnetometer is independent from the magnetometer in the electronic device, i.e. the magnetometer in the electronic device is arranged as a compass, while the magnetometer is arranged to detect the magnetic field strength between the first display area and the second display area.
In some embodiments, referring to fig. 3, in order to ensure that the magnetometer 05 has a more significant magnetic field strength variation at the position where the folding screen is at different folding angles, the magnetic field direction of the magnetic field generating means 061-062 in the first display region 01 is opposite to the magnetic field direction of the magnetic field generating means 063-064 in the second display region 02. That is, if the external magnetic field direction of the magnetic field generating device 061-062 provided on the side rail of the first display region 01 is from the front side of the first display region 01 to the back side of the first display region 01, the internal magnetic field direction is from the back side of the first display region to the front side of the first display region 01, the external magnetic field direction of the magnetic field generating device 063-064 provided on the side rail of the second display region 02 is from the back side of the second display region 02 to the front side of the second display region 02, and the internal magnetic field direction is from the front side of the second display region 01 to the back side of the second display region 02. If the external magnetic field direction of the magnetic field generating device 061-062 provided in the first display region 01 is from the back side of the first display region 01 to the front side of the first display region 01, the internal magnetic field direction is from the front side of the first display region 01 to the back side of the first display region 01, then the external magnetic field direction of the magnetic field generating device 063-064 provided in the second display region 02 is from the front side of the second display region 02 to the back side of the second display region 02, and the internal magnetic field direction is from the back side of the second display region 02 to the front side of the second display region 02.
The side bar of the first display area 01 refers to a side bar of a display screen corresponding to the first display area 01 in the folding screen, the front side of the first display area 01 refers to a front side of a display screen corresponding to the first display area 01 in the folding screen, and the back side of the first display area 01 refers to a back side of a display screen corresponding to the first display area 01 in the folding screen. Similarly, the side rail of the second display area 02 refers to the side rail of the display screen corresponding to the second display area 02 in the folding screen, the front side of the second display area 02 refers to the front side of the display screen corresponding to the second display area 02 in the folding screen, and the back side of the second display area 02 refers to the back side of the display screen corresponding to the second display area 02 in the folding screen.
As an example, in the case where the external magnetic field direction of the magnetic field generating device 061-062 provided in the first display region 01 is from the front side of the first display region to the back side of the first display region, and the internal magnetic field direction is from the back side of the first display region to the front side of the first display region, the polarity of the magnetic pole of the magnetic field generating device 062-062 provided in the first display region 01 at the front side of the first display region is N (north) pole, and the polarity of the magnetic pole at the back side of the first display region 01 is S (south) pole. In the case where the external magnetic field direction of the magnetic field generating device 063-064 provided in the second display region 02 is from the back side of the second display region to the front side of the second display region, and the internal magnetic field direction is from the front side of the second display region to the back side of the second display region, the polarity of the magnetic pole of the magnetic field generating device 063-064 provided in the second display region 02 at the front side of the second display region 02 is S (south) pole, and the polarity of the magnetic pole at the back side of the second display region 02 is N (north) pole.
Similarly, in the case where the external magnetic field direction of the magnetic field generating device 061-062 provided in the first display region 01 is from the back side of the first display region to the front side of the first display region, and the internal magnetic field direction is from the front side of the first display region screen to the back side of the first display region, the polarity of the magnetic pole of the magnetic field generating device 061-062 provided in the first display region screen 01 at the front side of the first display region is S (south) pole, and the polarity of the magnetic pole at the back side of the first display region 01 is N (north) pole. In the case where the external magnetic field direction of the magnetic field generating device 063-064 provided in the second display area 01 is from the front side of the second display area to the back side of the second display area, and the internal magnetic field direction is from the back side of the second display area to the front side of the second display area, the polarity of the magnetic pole of the magnetic field generating device 06 provided in the second display area 02 on the front side of the second display area 02 is N (north) pole, and the polarity of the magnetic pole on the back side of the second display area screen 02 is S (south) pole.
Since the magnetic field direction of the magnetic field generating means 061-062 in the first display region 01 is opposite to the magnetic field direction of the magnetic field generating means 063-064 in the second display region 02, the polarity of the magnetic poles facing the first display region 01 of the magnetic field generating means 061-062 in the first display region 01 is opposite to the polarity of the magnetic poles facing the second display region of the magnetic field generating means 063-064 in the second display region in the unfolded state of the folding screen. Therefore, when the folding screen is in a closed state, the polarity of the magnetic poles of the magnetic field generating device contained in the first display area is opposite to that of the magnetic poles of the magnetic field generating device contained in the second display area, so that the purpose of opposite attraction is achieved, the folding screen is firmly closed, and meanwhile, the magnetic field strength between the first display area and the second display area is enhanced.
As an example, the magnetic field directions of the magnetic field generating devices of the display screens corresponding to the same display area are the same.
Illustratively, referring to fig. 3 (a), 2 magnetic field generating devices 06 are disposed at the side rail of the first display area 01, a first magnetic field generating device 061 and a second magnetic field generating device 062 are respectively disposed, a magnetometer 05 is mounted at the side rail of the display screen corresponding to the first display area 01, and the magnetometer 05 is disposed between the first magnetic field generating device 061 and the second magnetic field generating device 062; in the second display area 2 magnetic field generating means 06 are arranged, a third magnetic field generating means 063 and a fourth magnetic field generating means 064, respectively. In the unfolded state of the folding screen, the polarities of the magnetic poles of the first magnetic field generating device 061 and the second magnetic field generating device 062 on the front side of the first display area 01 are S poles, the polarities of the magnetic poles on the back side of the first display area 01 are N poles, the polarities of the magnetic poles of the third magnetic field generating device 063 and the fourth magnetic field generating device 064 on the front side of the second display area 02 are N poles, and the polarities of the magnetic poles on the back side of the second display area 02 are S poles.
As an example, any one of the at least one magnetic field generating device may be a magnet, an acoustic device including a magnet, or the like, which is not particularly limited in the embodiment of the present application.
As an example, the positions of the magnetic field generating means 06 in the first display area 01 and the positions of the magnetic field generating means 06 in the second display area 02 are symmetrically distributed with the folding axis 03 as a symmetry axis.
Illustratively, referring to fig. 3 (b), with the folding screen in the closed state, the S pole of the first magnetic field generating device 061 is opposite to the N pole of the third magnetic field generating device 063, and the S pole of the second magnetic field generating device 062 is opposite to the N pole of the fourth magnetic field generating device 064. In this way, the first magnetic field generating device 061 and the third magnetic field generating device form a larger magnetic field generating device due to the principle of opposite attraction, and the second magnetic field generating device 062 and the fourth magnetic field generating device 064 form a larger magnetic field generating device due to the principle of opposite attraction, so that the magnetic field intensity between the first display area and the second display area is enhanced.
It should be noted that, the positions of the magnetic field generating devices 061-062 in the first display area 01 and the positions of the magnetic field generating devices 063-064 in the second display area 02 are symmetrical with respect to the folding axis 03 as a symmetry axis, so that the magnetometer can detect the magnetic field intensity with obvious variation under the condition that the folding screen is at different folding angles, and the accuracy of detecting the folding angles is ensured.
In some embodiments, when the polarities of the magnetic poles of the first magnetic field generating device 061 and the second magnetic field generating device 062 on the front side of the first display area 01 are S poles, the polarities of the magnetic poles of the rear side of the first display area 01 are N poles, the polarities of the magnetic poles of the third magnetic field generating device 063 and the fourth magnetic field generating device 064 on the front side of the second display area 02 are N poles, and the polarities of the magnetic poles of the rear side of the second display area 02 are S poles, if the folding screen is in the unfolded state, the magnetic field strength sensed by the magnetometer disposed between the first magnetic field generating device 061 and the second magnetic field generating device 062 is the magnetic field strength between the first magnetic field generating device 061 and the second magnetic field generating device 062, and the magnetic field strength and the magnetic field direction between the first magnetic field generating device 061 and the second magnetic field generating device 062 are represented by the magnetic line density and the magnetic line direction as shown in fig. 4 (a). When the folding screen is in the closed state, the first magnetic field generating device 061 and the third magnetic field generating device form a larger magnetic field generating device due to the principle of opposite attraction, and the second magnetic field generating device 062 and the fourth magnetic field generating device 064 form a larger magnetic field generating device due to the principle of opposite attraction, so that the magnetic field strength sensed by the magnetometer arranged between the first magnetic field generating device 061 and the second magnetic field generating device 062 is the magnetic field strength under the combined action of the first magnetic field generating device, the second magnetic field generating device, the third magnetic field generating device and the fourth magnetic field generating device, and the magnetic field strength and the magnetic field direction between the first magnetic field generating device, the second magnetic field generating device, the third magnetic field generating device and the fourth magnetic field generating device are represented by the magnetic line density and the magnetic line direction shown in the graph (b) in fig. 4.
In some embodiments, the position of the magnetic field generating device 06 in the first display area 01 and the position of the magnetic field generating device 06 in the second display area 02 may also be asymmetric, which is not particularly limited in the embodiments of the present application.
In some embodiments, referring to fig. 5, the number of the at least four magnetic field generating devices 06 may be 4 magnetic field generating devices 06 as shown in fig. 3, or 8 magnetic field generating devices 06 as shown in fig. 5, or a larger number of magnetic field generating devices 06.
In the case where the number of the magnetic field generating devices in the electronic apparatus is greater than 4, all the magnetic field generating devices may be used to detect the folding angle, and may be used to realize the adsorption function when the first display area and the second display area are closed. That is, when the folding screen is closed, the magnetic field generating device in the first display area and the magnetic field generating device in the second display area are attracted together due to the principle of opposite attraction.
It should be noted that, in order to facilitate understanding of the positions of the magnetometer and the at least four magnetic field generating devices in the electronic device, the positions of the magnetometer and the at least four magnetic field generating devices in the electronic device are shown in the drawings in the embodiments of the present application, but in general, the magnetometer and the at least four magnetic field generating devices are not visible in the external appearance of the electronic device.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 6, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces, such as may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being an integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. Such as storing files of music, video, etc. in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created by the electronic device 100 during use, and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions such as music playing, recording, etc. through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and application processor, etc.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. The electronic device 100 sets the characteristics of automatic unlocking of the flip cover according to the detected opening and closing state of the leather sheath or the detected opening and closing state of the flip cover.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The acceleration sensor 180E may also be used to identify the gesture of the electronic device 100, and may be used in applications such as landscape switching, pedometers, and the like.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, in a shooting scene, the electronic device 100 may range using the distance sensor 180F to achieve fast focus.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor 180K may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys or touch keys. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The software system of the electronic device 100 will be described next.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android (Android) system with a layered architecture is taken as an example, and a software system of the electronic device 100 is illustrated.
Fig. 7 is a block diagram of a software system of the electronic device 100 according to an embodiment of the present application. Referring to fig. 7, the hierarchical architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, a component abstraction layer (hardware abstract layer, HAL), and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 7, the application package may include calendar, video, camera, gallery, call, map, navigation, WLAN, bluetooth, music, short message, etc. applications.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 7, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like. The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data, which may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc., and make such data accessible to the application. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to construct a display interface for an application, which may be comprised of one or more views, such as a view that includes displaying a text notification icon, a view that includes displaying text, and a view that includes displaying a picture. The telephony manager is used to provide communication functions of the electronic device 100, such as management of call status (including on, off, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. For example, a notification manager is used to inform that the download is complete, a message alert, etc. The notification manager may also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as a notification of a background running application. The notification manager may also be a notification that appears on the screen in the form of a dialog window, such as a text message being prompted in a status bar, a notification sound being emitted, the electronic device vibrating, a flashing indicator light, etc.
As an example, the application framework layer further includes a plurality of application service modules, each of the plurality of application service modules configured to implement a different function of the electronic device.
For example, any one of the application service modules can receive a scene switching notification sent by the hal layer, and switch the display module of the electronic device. An application service module is illustrated in fig. 7, and is not limited to the embodiment of the present application.
As one example of the present application, the HAL layer includes at least a hall value confirmation module, an angle recognition module, and a posture confirmation module.
As one example, the hall value confirmation module is configured to determine a virtual hall value corresponding to a magnetic field strength between the first display region and the second display region.
As one example, the angle recognition module is to obtain a folding angle between the first display area and the second display area.
As one example, the gesture confirmation module is configured to determine a target scene mode corresponding to an angle range in which the folding angle is located.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The workflow of the electronic device 100 software and hardware is illustrated below in connection with capturing a photo scene.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the original input event. Taking the touch operation as a click operation, the control corresponding to the click operation is a control of a camera application icon as an example, the camera application calls an interface of an application program framework layer, starts the camera application, calls a kernel layer to start a camera driver, and captures a still image or video through a camera 193.
In order to facilitate understanding, before describing the method provided by the embodiment of the present application in detail, based on the execution body provided by the foregoing embodiment, an application scenario related to the embodiment of the present application is described below by taking an example that the electronic device is a mobile phone with a folding screen.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating an application scenario according to an exemplary embodiment. In one possible scenario, a user may typically perform a folding operation on a folding screen of a mobile phone during use of the mobile phone with the folding screen, and the mobile phone may detect a folding angle of the folding screen during folding of the folding screen, so as to implement different functions according to the folding angle. For example, referring to fig. 8 (a), in the case where the folding screen of the mobile phone displays the target video 07 in full screen, in order to grasp the mobile phone conveniently, the user may have a need to close the folding screen, in which case the user may perform a closing operation on the folding screen; responding to the closing operation of a user on the folding screen, referring to the (b) diagram in fig. 8, responding to the unfolding operation of the user on the folding screen, and enabling the mobile phone to enter a picture hovering mode under the condition that the folding angle of the folding screen is 90 degrees and is within a first preset angle range; in the case that the mobile phone enters the picture hovering mode, the target video 07 is displayed in a first display area 01 of the folding screen, and an operation control 08, such as a fast forward control, a fast backward control, a pause control, a next control, a time axis, and the like, for the target video 07 is displayed in a second display area 02 of the folding screen. In this case, if the user continues to perform the closing operation on the folding screen, in response to the closing operation on the folding screen by the user, the mobile phone enters the folding screen extinguishing mode in the case that the folding angle of the folding screen is 0 degrees and the folding angle is located in the second preset angle range. Referring to fig. 8 (c), the cellular phone displays a target video 07 in the third display 04, and the folding screen enters an off-screen state.
It should be noted that, the first preset angle range and the second preset angle range are preset angle ranges, for example, the first preset angle range may be 70 degrees to 100 degrees, 80 degrees to 100 degrees, etc., and the second preset angle range may be 0 degrees to 30 degrees, 0 degrees to 40 degrees, etc.
As an example, in the case where the folded screen of the cellular phone displays the target video 08 in full screen, the user performs a closing operation on the folded screen, and in the case where the folding angle of the folded screen becomes 0 degrees by the closing operation, the cellular phone may display the target video 07 in the third display 04, may not display the target video 07 in the third display 04, but display a lock screen interface in the third display 04, or the third display 04 is in a screen-off state, as shown in (c) of fig. 8. The embodiment of the present application is not particularly limited thereto.
It should be noted that the third preset angle range is also preset according to the requirement, for example, the third preset angle range may be 0-30 degrees, 0-40 degrees, etc.
As an example of the present application, referring to (c) of fig. 8, if the user wants to watch the target video through the large screen while the user plays the target video 07 through the third display 04 of the mobile phone, the user may perform an unfolding operation on the folding screen; referring to fig. 8 (b), in response to a user's unfolding operation of the folding screen, in case that the folding angle of the folding screen is 90 degrees and the folding angle is located in a first preset angle range, the mobile phone enters a picture hover mode; in the case that the mobile phone enters the picture hover mode, the target video 07 is displayed in the first display area 01, and an operation control 08, such as a fast forward control, a fast reverse control, a pause control, a next control, a time axis, and the like, for the target video 07 is displayed in the second display area 02. In this case, if the user continues the expansion operation of the folding screen, in response to the expansion operation of the folding screen by the user, in the case where the folding angle of the folding screen is 180 degrees and the folding angle is located in the third preset angle range, the folding screen of the mobile phone displays the target video 07 full screen, see (a) of fig. 8.
It should be noted that the third preset angle range is also a preset angle range, for example, the third preset angle range may be 160 degrees to 180 degrees, 150 degrees to 180 degrees, and so on.
As an example of the present application, in order to facilitate carrying of a mobile phone with a folding screen, the mobile phone is usually in a closed state as shown in fig. 9 (a), and in the case that the lock screen interface 09 is displayed on the third display 04 of the mobile phone or the third display 04 is in an off-screen state, the lock screen interface 09 is displayed on the third display 04 in fig. 9 (a) of the embodiment of the present application. If the user has the requirement of using the large screen mode of the mobile phone, the folding screen of the mobile phone can be unfolded; referring to fig. 9 (b), if the display mode of the mobile phone includes a picture hover mode, responding to the unfolding operation of the folding screen by the user, and entering the picture hover mode by the mobile phone when the folding angle of the folding screen is 90 degrees and the folding angle is within a first preset angle range; when the mobile phone enters the screen hover mode, the desktop 10 of the mobile phone is displayed in the first display area 01, and a slide control 11 or the like for sliding the desktop is displayed in the second display area 02. In this case, if the user continues to perform the unfolding operation on the folding screen, in response to the unfolding operation on the folding screen by the user, if the folding angle of the folding screen is 180 degrees and the folding angle is within the third preset angle range, referring to fig. 9 (c), the folding screen of the mobile phone displays the desktop 10 in full screen.
As an example of the present application, referring to fig. 9 (c), in the case where the folding screen of the mobile phone displays the desktop 10 in full screen, the user may perform a closing operation on the folding; referring to fig. 9 (b), if the display mode of the mobile phone includes a picture hover mode, responding to the unfolding operation of the folding screen by the user, and entering the picture hover mode by the mobile phone when the folding angle of the folding screen is 90 degrees and the folding angle is within a first preset angle range; when the mobile phone enters the screen hover mode, the desktop 10 of the mobile phone is displayed in the first display area 01, and a slide control 9 or the like for sliding the desktop is displayed in the second display area 02. In this case, if the user continues to perform the closing operation on the folding screen, in response to the closing operation on the folding screen by the user, if the folding angle of the folding screen is 0 degrees and the folding angle is located in the third preset angle range, referring to fig. 9 (a), the mobile phone displays the screen locking interface 09 on the third display screen 04 of the mobile phone, and the folding screen enters the screen-off state. Or in another possible implementation manner, in response to a closing operation of the folding screen by a user, when the folding angle of the folding screen is 0 degrees and the folding angle is within a third preset angle range, both the folding screen and the third display screen 04 of the mobile phone are in a screen-off state.
As an example, in fig. 8 or fig. 9, if the folding angle is 90 degrees and the folding angle is within the first preset angle range, the mobile phone may not only directly enter the picture hover mode, but in another possible implementation manner, the mobile phone may also detect whether the maintenance duration of maintaining the folding screen for 90 degrees is greater than or equal to the first time threshold, and enter the picture hover mode if the maintenance duration is greater than or equal to the first time threshold. The first time length threshold is a threshold preset according to requirements, and the first time length threshold can be 1 second, 2 seconds and the like. And under the condition that the maintenance duration is smaller than the first duration threshold value, the mobile phone does not enter a picture hovering mode.
In addition, when the mobile phone enters the screen hover mode, the screen displayed by the mobile phone in the first display area 01 and the second display area 02 is related to the screen displayed by the mobile phone before entering the screen hover mode. The above-described fig. 8 and 9 are examples of the embodiment of the present application, and are not limited to the embodiment of the present application.
As an example of the present application, referring to fig. 10 (a), in a case where the folding screen is in a closed state and the lock screen interface 09 is displayed in the third display 04 of the mobile phone, or in a case where the third display 04 of the mobile phone is in an off-screen state, the user may perform an unfolding operation on the folding screen. Referring to fig. 10 (b), if the display mode of the mobile phone includes a notebook mode, responding to the unfolding operation of the folding screen by the user, and entering the notebook mode by the mobile phone when the folding angle of the folding screen is 110 degrees and the folding angle is within a fourth preset angle range; when the mobile phone enters the notebook mode, a notebook interface 12 corresponding to the notebook mode is displayed in the first display area 01, and a virtual keyboard 13 is displayed in the second display area 02. In this case, if the user continues to perform the unfolding operation on the folding screen, in response to the unfolding operation on the folding screen by the user, if the folding angle of the folding screen is 180 degrees and the folding angle is within the third preset angle range, referring to fig. 10 (c), the folding screen of the mobile phone displays the desktop 10 in full screen.
It should be noted that the fourth preset angle range may also be preset according to the requirement, for example, the fourth preset angle range may be 110-150 degrees, 100-160 degrees, etc.
As an example, in the case where the folding angle is 110 degrees and the folding angle is in the fourth preset angle range, the mobile phone may not only directly enter the notebook mode, but in another possible implementation manner, the mobile phone may also detect whether the duration of maintaining 110 degrees of the folding screen is greater than or equal to the first time threshold, and if the duration of maintaining is greater than or equal to the first time threshold, the mobile phone enters the notebook mode. And under the condition that the maintenance duration is detected to be smaller than the first time duration threshold value, not entering the notebook mode.
As an example of the present application, referring to fig. 10 (c), in a case where the folding screen is in an unfolded state, for example, the folding angle of the folding screen is 180 degrees, and the desktop 10 of the mobile phone is displayed in the folding screen, the user may perform a closing operation on the folding screen; if the display mode of the mobile phone includes a notebook mode, responding to the closing operation of the folding screen by the user, referring to the diagram (b) in fig. 10, and when the folding angle of the folding screen is 110 degrees and the folding angle is in the fourth preset angle range, the mobile phone enters the notebook mode; when the mobile phone enters the notebook mode, a notebook interface 12 corresponding to the notebook mode is displayed in the first display area 01, and a virtual keyboard 13 is displayed in the second display area 02. In this case, if the user continues to perform the closing operation on the folding screen, in response to the closing operation on the folding screen by the user, if the folding angle of the folding screen is 0 degrees and the folding angle is located in the second preset angle range, referring to fig. 10 (a), the mobile phone displays the screen locking interface 09 on the third display screen 04, and the folding screen enters the screen-off state. Or in another possible implementation manner, in response to a closing operation of the folding screen by a user, when the folding angle of the folding screen is 0 degrees and the folding angle is within the second preset angle range, both the folding screen and the third display screen 04 of the mobile phone are in a screen-off state.
As an example of the present application, referring to fig. 11 (a), in a case where the folding screen is in an unfolded state, for example, the folding angle of the folding screen is 180 degrees, and the desktop 10 of the mobile phone is displayed in the folding screen, the user may perform a closing operation on the folding screen. Referring to fig. 11 (b), if the display mode of the mobile phone includes a calendar mode, responding to a closing operation of a folding screen by a user, and entering the calendar mode by the mobile phone when the folding angle is detected to be 60 degrees and the folding angle is located in a fifth preset angle range; in case the handset enters the desk calendar mode, a calendar view 14 is displayed in the third display 04, the calendar view 14 may be an application interface of a calendar application program, and the first display area 01 and the second display area 02 are in an off-screen state. In this case, if the user continues to perform the closing operation on the folding screen, in response to the closing operation on the folding screen by the user, if the folding angle is detected to be 0 degrees and the folding angle is located in the second preset angle range, referring to fig. 11 (c), the mobile phone displays the screen locking interface 09 on the third display screen 04 of the mobile phone, and the folding screen enters the screen-off state. Or in another possible implementation manner, in response to a closing operation of the folding screen by a user, when the folding angle of the folding screen is 0 degrees and the folding angle is within the second preset angle range, both the folding screen and the third display screen 04 of the mobile phone are in a screen-off state.
It should be noted that the fifth preset angle range may also be preset according to the requirement, for example, the fifth preset angle range may be 30 degrees to 70 degrees, 30 degrees to 80 degrees, and so on.
As an example, referring to fig. 11, in the case where the folding angle is 60 degrees and the folding angle is within the fifth preset angle range, the mobile phone may not only directly enter the desk calendar mode, but in another possible implementation manner, the mobile phone may also detect whether the maintenance duration of the folding screen for maintaining 60 degrees is greater than or equal to the first time threshold, and enter the desk calendar mode if the maintenance duration is greater than or equal to the first time threshold. And under the condition that the maintenance duration is smaller than the first duration threshold value, the mobile phone does not enter the desk calendar mode.
As an example of the present application, referring to fig. 11 (c), the folding screen of the mobile phone is in a closed state, and the user can perform an unfolding operation on the folding screen in the case where the mobile phone displays the lock screen interface 11 in the third display 04; referring to fig. 11 (b), if the display mode of the mobile phone includes a calendar mode, responding to a closing operation of a folding screen by a user, and entering the calendar mode by the mobile phone when the folding angle is detected to be 60 degrees and the folding angle is located in a fifth preset angle range; in case the handset enters the desk calendar mode, a calendar view 14 is displayed in the third display 04, the calendar view 14 may be an application interface of a calendar application program, and the first display area 01 and the second display area 02 are in an off-screen state. In this case, if the user continues to perform the unfolding operation on the folding screen, in response to the user performing the unfolding operation on the folding screen, if it is detected that the folding angle is 180 degrees and the folding angle is within the third preset angle range, referring to fig. 11 (a), the mobile phone displays the desktop 12 on the folding screen in a full screen manner.
It should be noted that, in the embodiment of the present application, only an application scenario including a notebook mode, a picture hovering mode or a desk calendar mode is illustrated by taking a case that the display mode of the mobile phone includes a folding screen off mode and a folding screen full screen display mode as default, and the embodiment of the present application is not limited.
In another possible implementation manner, when the display mode of the mobile phone includes a folding screen off mode and a folding screen full screen display mode by default, other modes such as a notebook mode, a picture hovering mode or a desk calendar mode may also be included at the same time, and when the mobile phone detects a folding angle corresponding to any one of the display modes, the corresponding display mode may be entered. Or, in the case of detecting the folding angle corresponding to any one display mode, detecting that the folding angle is maintained for a maintenance time period, and entering the corresponding display mode in the case that the maintenance time period is greater than or equal to a first time period threshold; and under the condition that the maintenance duration is smaller than the first duration threshold value, not entering a corresponding display mode.
Based on the execution body and the application scenario provided by the above embodiments, a method for detecting a folding angle of a folding screen provided by the embodiment of the present application is described next. Referring to fig. 12, fig. 12 is a flow chart illustrating a folding angle detection method of a folding screen according to an exemplary embodiment, and fig. 12 illustrates an example in which a folding operation is a closing operation, that is, a closing operation of the folding screen under a closing operation of a user. By way of example and not limitation, the method is applied to a mobile phone with a folding screen, the folding screen is an inner screen of the mobile phone, a content display area of the folding screen is divided into a first display area and a second display area by a folding shaft, a magnetometer is arranged at any side rail of the folding screen, at least four magnetic field generating devices are further installed in the mobile phone, at least two magnetic field generating devices are arranged at each side rail of the folding screen, and the magnetometer is arranged between any two magnetic field generating devices of any one side rail, the mobile phone is illustrated by a plurality of module interaction implementation examples shown in fig. 7, and the method can comprise the following partial or complete contents:
A1: in response to a user closing operation of the folding screen, the first display area and the second display area of the folding screen are closed about the folding axis by the closing operation.
As can be seen from the above, the folding screen is an inner screen of the mobile phone, and therefore, when the user performs the closing operation on the folding screen, the first display area and the second display area approach each other around the folding axis under the effect of the closing operation, that is, the first display area and the second display area are closed around the folding axis.
A2: the magnetometer detects the magnetic field strength between the first display area and the second display area during closing of the first display area and the second display area about the folding axis.
From the above, it can be seen that a magnetometer is provided at any one of the side rails of the folding screen, which magnetometer can detect the magnetic field strength between the first display area and the second display area during closing of the first display area and the second display area about the folding axis.
In some embodiments, as can be seen from fig. 3, at least four magnetic field generating devices are further installed in the electronic device, at least two magnetic field generating devices are disposed at the side rail of the corresponding display screen in the folding screen in each of the first display area and the second display area, and the magnetometer is disposed between any two magnetic field generating devices of any one side rail. Since the at least four magnetic field generating devices may generate magnetic field signals, the magnetometer may receive the magnetic field signals generated by each of the at least four magnetic field generating devices during the closing of the first display region and the second display region about the folding axis and determine a target magnetic field strength between the first display region and the second display region based on the magnetic field strengths of the received magnetic field signals.
A3: the magnetometer sends the detected target magnetic field strength to the hall value confirmation module.
Because the magnetic field strength of the magnetic field signal induced by the magnetometer changes in the process of closing the first display area and the second display area around the folding axis, and different folding angles are corresponding to different magnetic field strengths, in order to accurately determine the folding angle between the first display area and the second display area, in the case that the hall value confirmation module is included in the HAL layer of the mobile phone, the magnetometer can send the detected target magnetic field strength to the hall value confirmation module.
In some embodiments, the hall value confirmation module may not be included in the HAL layer of the electronic device, in which case the magnetometer may send the target magnetic field strength to the angle confirmation module. In the illustration of the embodiment of the application, a hall value confirmation module is included in a HAL layer of a mobile phone for example.
A4: the Hall value confirmation module determines a target virtual Hall value under the condition that the target magnetic field intensity sent by the magnetometer is received.
As an example of the present application, the hall value confirmation module may obtain a target virtual hall value corresponding to the target magnetic field strength from a correspondence relationship between the magnetic field strength and the virtual hall value.
It should be noted that, the corresponding relation between the magnetic field strength and the virtual hall value can be set in advance according to the requirement, wherein before the mobile phone leaves the factory, a worker can fold the folding screen, record the magnetic field strength detected by the magnetometer under the condition that the folding screen is at different folding angles, and set different virtual hall values for different folding angles at the same time, so as to obtain the corresponding relation between the magnetic field strength and the folding angles, the corresponding relation between the magnetic field strength and the virtual hall value, and the corresponding relation between the virtual hall value and the folding angles.
The correspondence between the magnetic field strength and the virtual hall value may be shown in table 1 below, for example.
TABLE 1
In the embodiment of the present application, the correspondence between the magnetic field strength and the virtual hall value is merely described as an example, and the embodiment of the present application is not limited thereto.
A5: the hall value confirmation module sends the target virtual hall value to the angle identification module.
Because different magnetic field strengths correspond to different virtual hall values, and thus different virtual hall values can describe different folding angles, in order to determine the folding angle of the folding screen, the hall value confirmation module may send the target virtual hall value to the angle identification module.
A6: and under the condition that the angle identification module receives the target virtual Hall value, acquiring a target angle corresponding to the target virtual Hall value from the corresponding relation between the virtual Hall value and the folding angle.
The target angle is a folding angle between the first display area and the second display area, that is, a folding angle of the folding screen.
As one example, the correspondence between the virtual hall value and the folding angle is a correspondence set in advance. Illustratively, the correspondence between the virtual hall value and the folding angle may be as shown in table 2 below.
TABLE 2
Virtual hall value Folding angle
0
1 30°
2 60°
3 90°
4 120°
5 150°
6 180°
In the embodiment of the present application, the correspondence between the virtual hall value and the folding angle shown in table 2 is merely taken as an example, and the embodiment of the present application is not limited thereto.
From the above, the angle recognition module may directly receive the target magnetic field strength sent by the magnetometer, so the angle recognition module may also directly obtain the target table angle corresponding to the target magnetic field strength from the correspondence between the magnetic field strength and the folding angle.
The correspondence between the magnetic field strength and the folding angle may be shown in table 3 below, for example.
TABLE 3 Table 3
Magnetic field strength x Folding angle
x≥480uT
480uT>x≥425uT 30°
425uT>x≥370uT 60°
370uT>x≥315uT 90°
315uT>x≥260uT 120°
260uT>x≥205uT 150°
x<150uT 180°
In the embodiment of the present application, the correspondence between the magnetic field strength and the folding angle shown in table 3 is merely taken as an example, and the embodiment of the present application is not limited thereto.
A7: the angle recognition module sends the folding angle to the gesture confirmation module.
Because the folding screen is in under the different folding angle circumstances, the function that the cell-phone realized is different, consequently, in order to accurately realize the function that folding angle corresponds, angle identification module can send folding angle to gesture confirmation module.
A8: and the gesture confirmation module determines a target scene mode corresponding to the angle range where the folding angle is positioned under the condition that the folding angle is received.
As an example of the present application, the gesture confirmation module may determine an angle range corresponding to the folding angle according to the folding angle, and then determine a target scene mode corresponding to the angle range in which the folding angle is located from a correspondence between the angle range and the scene mode.
It should be noted that, the correspondence between the angle range and the scene mode may be preset according to the requirement, and for example, the correspondence between the angle range and the scene mode may be a correspondence shown in table 4 below. The folding screen extinguishing mode refers to a mode that the folding screen is in an extinguishing state; the calendar mode refers to a third display screen of the mobile phone, namely a mode that an external screen of the mobile phone displays a calendar view or an application interface of a calendar application program; the picture hovering mode is a mode of displaying an application interface of a currently displayed application program in a first display area of the mobile phone and displaying an operation control for controlling the application interface in a second display area; the notebook mode is a mode of displaying a notebook screen in a first display area of the mobile phone and displaying a virtual keyboard in a second display area; the folding screen full-screen display mode refers to a mode in which a screen is displayed with the first display area and the second display area as one display area.
TABLE 4 Table 4
Angular range Scene mode
[0 degree-30 degree) Folding screen extinguishing screen
[ 30-70 degrees ] Desk calendar mode
[ 70-100 degree) Screen hover mode
[100 degree-160 ] Notebook mode
[160 DEG-180 DEG] Folding screen full screen display mode
In the embodiment of the present application, the angular ranges and the scene modes shown in table 4 are taken as examples, and the embodiment of the present application is not limited thereto.
A9: the gesture confirmation module sends a scene switching notification to the target application service module.
The scene switching notification carries a target application service module, where the target application service module is a module capable of implementing a function corresponding to the folding angle.
In order to realize different functions under the condition that the folding screen is at different folding angles, the gesture confirmation module can send a scene switching notification to the target application service module.
A10: and the target application service module switches the display mode of the mobile phone to a target scene mode under the condition of receiving the scene switching notification sent by the gesture confirmation module.
Because the scene switching notification carries the target scene mode, the target application service module can switch the display mode of the mobile phone into the target scene mode under the condition of receiving the scene switching notification.
In the embodiment of the application, when the folding angle between the first display area and the second display area is changed, the magnetic field intensity between the first display area and the second display area is also changed, and thus the magnetic field intensity induced by the magnetometer is also changed. Therefore, under the condition that the folding screen is subjected to folding operation, the electronic equipment can determine the corresponding folding angle through the target magnetic field intensity sensed by the magnetometer. In addition, as the corresponding folding angle can be determined through the target magnetic field intensity induced by the magnetometer in the electronic equipment, other calculation is not needed, the complexity of detecting the folding angle is reduced, and the convenience of detecting the folding angle is improved. Furthermore, the cost of the magnetometer is lower than that of the accelerometer and the gyroscope sensor, so that the detection cost of the folding angle is reduced by detecting the folding angle through the magnetometer.
In fig. 12, the folding screen is in the unfolded state, and the user performs the closing operation on the folding screen, and in the case that the folding screen is in the closed state, the mobile phone can also perform detection on the folding angle of the folding screen according to the operations of the steps A1 to a10, and switch the display mode of the mobile phone according to the detected angle range where the folding angle is located. The embodiments of the present application will not be described in detail.
Referring to fig. 13, fig. 13 is a flowchart illustrating a method for detecting a folding angle of a folding screen according to another exemplary embodiment. By way of example and not limitation, the method is applied to an electronic device having a folding screen as shown in fig. 7, where the folding screen is an internal screen of the electronic device, and a content display area of the folding screen is divided into a first display area and a second display area by a folding axis, where a magnetometer is disposed at any one side rail of the folding screen, where at least four magnetic field generating devices are further installed in the electronic device, where at least two magnetic field generating devices are disposed at each side rail of the folding screen, and where the magnetometer is disposed between any two magnetic field generating devices of any one side rail, the method may include some or all of:
step 1301: in response to a folding operation of the folding screen, a magnetic field signal generated by each of the at least four magnetic field generating devices is received by the magnetometer.
Because the folding screen comprises the first display area and the second display area, and the folding screen is the inner screen of the mobile phone, the first display area and the second display area are folded around the folding shaft under the action of the folding operation under the condition that the user performs the folding operation on the folding screen. As can be seen from fig. 3, at least four magnetic field generating devices are installed in the electronic device, at least two magnetic field generating devices are disposed at the side rail corresponding to each display area of the folding screen, and the magnetometer is disposed between any two magnetic field generating devices of the side rail corresponding to any one display area. Accordingly, in response to a folding operation of the folding screen, the electronic device may receive the magnetic field signal generated by each of the at least four magnetic field generating devices through the magnetometer during folding of the first display region and the second display region about the folding axis.
Step 1302: a target magnetic field strength of a magnetic field signal received by a magnetometer is acquired.
The target magnetic field strength is the strength of the magnetic field signal between the first display region and the second display region.
Since the magnetic field strengths of the magnetic field signals generated by at least four magnetic field generating devices are different in the case where the folding angles between the first display region and the second display region are different, the electronic device needs to acquire the target magnetic field strength of the magnetic field signal received by the magnetometer.
Since the folding operation includes a closing operation and an expanding operation of the folding screen, in the case where the user performs the closing operation of the folding screen, at least two magnetic field generating devices located in the first display area and at least two magnetic field generating devices located in the side rail of the second display area are close to each other, so that the magnetic field intensity detected by the magnetometer becomes larger and larger. In the case where a user performs an unfolding operation of the folding screen, at least two magnetic field generating devices located in the first display area and at least two magnetic field generating devices located in the side rail of the second display area are distant from each other, so that the magnetic field strength detected by the magnetometer becomes smaller and smaller.
It is worth noting that, as the magnetometer can detect obvious magnetic field intensity changes, the change of the folding angle can be determined through the magnetic field intensity changes, and the accuracy of detecting the folding angle is improved. Meanwhile, whether the magnetic field intensity changes is detected through the magnetometer, complex calculation is not needed, and the convenience of angle detection is improved.
Step 1303: a folding angle between the first display area and the second display area is determined according to the target magnetic field strength.
Under the condition that the electronic equipment is at different folding angles, the magnetic field intensities of the magnetic field signals generated by the at least four magnetic field generating devices are different, so that the magnetic field intensities detected by the magnetometer are different, namely, the different magnetic field intensities correspond to different folding angles, and therefore, the electronic equipment can determine the folding angle between the first display area and the second display area according to the target magnetic field intensity.
In some embodiments, the electronic device may obtain a target angle corresponding to the target magnetic field strength from a correspondence between the magnetic field strength and the folding angle, where the target angle is the folding angle between the first display area and the second display area.
The correspondence between the magnetic field strength and the folding angle is a preset correspondence. Before the electronic equipment leaves the factory, a worker can fold the folding screen, and record the magnetic field intensity between the first display area and the second display area detected by the magnetometer under the condition that the folding screen is at different folding angles, so that the corresponding relation between the magnetic field intensity and the folding angle is obtained. The correspondence between the magnetic field strength and the folding angle may be shown in table 3 above, for example.
It is worth to say that, through setting up the corresponding relation of magnetic field intensity and folding angle, thereby electronic equipment is under the condition of obtaining arbitrary magnetic field intensity, can confirm the folding angle that corresponds fast, need not to carry out complicated calculation, thereby improved the convenience that electronic equipment detected folding angle.
In some embodiments, the electronic device may further obtain a target virtual hall value corresponding to the target magnetic field strength from a correspondence between the magnetic field strength and the virtual hall value; and acquiring a target angle corresponding to the target virtual Hall value from the corresponding relation between the virtual Hall value and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
It should be noted that, the correspondence between the magnetic field strength and the virtual hall value, and the correspondence between the virtual hall value and the folding angle may be set in advance according to the requirement, for example, before the electronic device leaves the factory, a worker may perform the folding operation on the folding screen, record the magnetic field strength between the first display area and the second display area detected by the magnetometer under the condition that the folding screen is at different folding angles, and set different virtual hall values for different folding angles at the same time, so that the correspondence between the magnetic field strength and the folding angle, and the correspondence between the magnetic field strength and the virtual hall value, and the correspondence between the virtual hall value and the folding angle may be obtained. Illustratively, the correspondence between the magnetic field strength and the virtual hall value may be as shown in table 1 above, and the correspondence between the virtual hall value and the folding angle may be as shown in table 2 above.
It is worth noting that the folding angle is determined in accordance with the magnetic field strength in different ways, thereby increasing the richness of the way in which the folding angle is determined.
In some embodiments, because the electronic device can implement different functions when the folding screen is at different folding angles, after the electronic device determines the folding angle between the first display area and the second display area according to the target magnetic field strength, the display mode of the electronic device may also be switched to the target scene mode corresponding to the angle range where the folding angle is located.
In order to accurately execute the function of the electronic device, the electronic device may further acquire a maintenance duration of the folding angle after determining the folding angle between the first display area and the second display area according to the target magnetic field strength; and under the condition that the maintenance time length of the folding angle is larger than or equal to the first time length threshold value, switching the display mode of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is positioned.
It should be noted that, the first time length threshold may be preset according to requirements, for example, the first time length threshold may be 1 second, 2 seconds, and so on.
It is worth to say that, through setting up the duration of folding angle, can guarantee that current folding angle is the angle that the user needs, has improved the accuracy of executing electronic equipment function.
As an example, the electronic device may determine an angle range corresponding to the folding angle according to the folding angle; determining a target scene mode corresponding to the angle range where the folding angle is located from the corresponding relation between the angle range and the scene mode; and switching the display mode of the electronic equipment to a target scene mode.
It is worth to say that, through setting up the corresponding relation between angle range and the scene mode, thereby electronic equipment can directly confirm corresponding target scene mode according to folding angle, has improved the accuracy of mode switching.
It should be noted that, the correspondence between the angle range and the scene mode may be preset according to the requirement, and for example, the correspondence between the angle range and the scene mode may be the correspondence shown in table 4. The operation of the electronic device for switching the display mode of the electronic device to the target scene mode corresponding to the angle range where the folding angle is located comprises the following steps: under the condition that the folding angle is in a first preset angle range, switching a display mode of the electronic equipment into a picture hovering mode; under the condition that the folding angle is in a second preset angle range, switching a display mode of the electronic equipment into a folding screen extinguishing mode; under the condition that the folding angle is in a third preset angle range, switching a display module of the electronic equipment into a folding screen full-screen display mode; under the condition that the folding angle is in a fourth preset angle range, switching a display module of the electronic equipment into a notebook mode; and under the condition that the folding angle is in a fifth preset angle range, switching the display module of the electronic equipment into a desk calendar mode.
It is worth to say that, by switching the display mode of the electronic device to the target scene mode corresponding to the angle range where the folding angle is, the display richness of the electronic device is increased.
In the embodiment of the application, when the folding angle between the first display area and the second display area is changed, the magnetic field intensity between the first display area and the second display area is also changed, and thus the magnetic field intensity induced by the magnetometer is also changed. Therefore, under the condition that the folding screen is subjected to folding operation, the electronic equipment can determine the corresponding folding angle through the target magnetic field intensity sensed by the magnetometer. In addition, as the corresponding folding angle can be determined through the target magnetic field intensity induced by the magnetometer in the electronic equipment, other calculation is not needed, the complexity of detecting the folding angle is reduced, and the convenience of detecting the folding angle is improved. Furthermore, the cost of the magnetometer is lower than that of the accelerometer and the gyroscope sensor, so that the detection cost of the folding angle is reduced by detecting the folding angle through the magnetometer.
Fig. 14 is a schematic structural diagram of a folding angle detecting apparatus for a folding screen according to an embodiment of the present application, where the apparatus may be implemented by software, hardware, or a combination of both as part or all of a computer device, and the computer device may be the electronic device shown in fig. 6. Referring to fig. 14, the folding angle detecting apparatus of the folding screen includes a processor 1410 and a memory 1420 in a structure, and the number of the processors 1410 may be one or more. The memory 1410 is used to store a program for supporting the folding angle detection apparatus of the folding screen to perform the folding angle detection method of the folding screen provided in the above-described respective embodiments, and to store data related to the implementation of the folding angle detection method of the folding screen described in the above-described respective embodiments. The folding angle detecting means of the folding screen may further include a communication bus 1430, the communication bus 1430 being used to establish a connection between the processor 1410 and the memory 1420. The folding angle detection device of the folding screen is applied to the electronic equipment with the folding screen, the folding screen is an inner screen of the electronic equipment, the content display area of the folding screen is divided into a first display area and a second display area by a folding shaft, a magnetometer is arranged at any one side rail of the folding screen, at least four magnetic field generating devices are further arranged in the electronic equipment, at least two magnetic field generating devices are arranged at each side rail of the folding screen, the magnetometer is arranged between any two magnetic field generating devices of any one side rail, and the processor 1410 is configured to:
Receiving, by the magnetometer, a magnetic field signal generated by each of the at least four magnetic field generating devices in response to a folding operation of the folding screen;
acquiring a target magnetic field strength of a magnetic field signal received by the magnetometer, the target magnetic field strength being a strength of the magnetic field signal between the first display area and the second display area;
and determining a folding angle between the first display area and the second display area according to the target magnetic field intensity.
As an example of the present application, the processor 1410 is configured to:
and acquiring a target angle corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
As an example of the present application, the processor 1410 is configured to:
obtaining a target virtual Hall value corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the virtual Hall value;
and acquiring a target angle corresponding to the target virtual Hall value from the corresponding relation between the virtual Hall value and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
As an example of the present application, the processor 1410 is further configured to:
acquiring the maintenance time length of the folding angle;
and under the condition that the maintenance time length of the folding angle is larger than or equal to a first time length threshold value, switching the display mode of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
As an example of the present application, the processor 1410 is configured to:
and when the maintenance time length of the folding angle is greater than or equal to a first time length threshold, switching the display mode of the electronic device to a target scene mode corresponding to an angle range in which the folding angle is located, including:
determining an angle range in which the folding angle is located under the condition that the maintenance time length of the folding angle is greater than or equal to a first time length threshold value;
determining a target scene mode corresponding to the angle range where the folding angle is located from the corresponding relation between the angle range and the scene mode;
and switching the display module of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
As an example of the present application, the processor 1410 is configured to:
Switching a display mode of the electronic equipment to a picture hovering mode under the condition that the folding angle is in a first preset angle range;
switching a display mode of the electronic equipment to a folding screen extinguishing mode under the condition that the folding angle is in a second preset angle range;
switching a display module of the electronic equipment to a folding screen full-screen display mode under the condition that the folding angle is in a third preset angle range;
switching a display module of the electronic equipment to a notebook mode under the condition that the folding angle is in a fourth preset angle range;
and under the condition that the folding angle is in a fifth preset angle range, switching the display module of the electronic equipment into a desk calendar mode.
As an example of the present application, the magnetic field direction of the magnetic field generating means in the first display area is opposite to the magnetic field direction of the magnetic field generating means in the second display area.
As an example of the present application, the positions of the magnetic field generating devices in the first display area and the positions of the magnetic field generating devices in the second display area are symmetrically distributed with the folding axis as a symmetry axis.
As an example of the present application, the magnetic field directions of the magnetic field generating devices located in the same display area are the same.
As an example of the application, the magnetometer is independent of the magnetometer in the electronic device acting as a compass.
In the embodiment of the application, when the folding angle between the first display area and the second display area is changed, the magnetic field intensity between the first display area and the second display area is also changed, and thus the magnetic field intensity induced by the magnetometer is also changed. Therefore, under the condition that the folding screen is subjected to folding operation, the electronic equipment can determine the corresponding folding angle through the target magnetic field intensity sensed by the magnetometer. In addition, as the corresponding folding angle can be determined through the target magnetic field intensity induced by the magnetometer in the electronic equipment, other calculation is not needed, the complexity of detecting the folding angle is reduced, and the convenience of detecting the folding angle is improved. Furthermore, the cost of the magnetometer is lower than that of the accelerometer and the gyroscope sensor, so that the detection cost of the folding angle is reduced by detecting the folding angle through the magnetometer.
It should be noted that: the folding angle detecting device for a folding screen provided in the above embodiment only uses the division of the above functional modules to illustrate when detecting the folding angle of the folding screen, in practical application, the above functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
The functional units and modules in the above embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiments of the present application.
The folding angle detection device of the folding screen provided in the above embodiment and the folding angle detection method embodiment of the folding screen belong to the same concept, and specific working processes and technical effects brought by the units and modules in the above embodiment can be referred to in method embodiment parts, and are not repeated herein.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium such as a floppy Disk, a hard Disk, a magnetic tape, an optical medium such as a digital versatile Disk (Digital Versatile Disc, DVD), or a semiconductor medium such as a Solid State Disk (SSD), etc.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the technical scope of the present application should be included in the scope of the present application.

Claims (9)

1. The folding angle detection method of the folding screen is characterized in that the folding screen is an inner screen of the electronic equipment, a content display area of the folding screen is divided into a first display area and a second display area by a folding axis, a magnetometer is arranged at any side rail parallel to the folding axis in the folding screen, at least four magnetic field generating devices are further arranged in the electronic equipment, at least two magnetic field generating devices are arranged at each side rail parallel to the folding axis in the folding screen, the magnetometer is arranged between any two magnetic field generating devices of any one side rail, the magnetic field direction of the magnetic field generating devices in the first display area is opposite to the magnetic field direction of the magnetic field generating devices in the second display area, the positions of the magnetic field generating devices in the first display area and the positions of the magnetic field generating devices in the second display area are symmetrically distributed by taking the folding axis as a symmetrical axis, the at least four magnetic field generating devices are used for realizing detection of folding angles, and the magnetic field generating devices are used for realizing the first display area and the second display area comprises the first display area and the second display area when the first display area is closed, and the second display area comprises the first display area and the second display area are closed:
Receiving, by the magnetometer, a magnetic field signal generated by each of the at least four magnetic field generating devices in response to a folding operation of the folding screen;
acquiring a target magnetic field strength of a magnetic field signal received by the magnetometer, the target magnetic field strength being a strength of the magnetic field signal between the first display area and the second display area;
and determining a folding angle between the first display area and the second display area according to the target magnetic field intensity.
2. The method of claim 1, wherein the determining a folding angle between the first display area and the second display area based on the target magnetic field strength comprises:
and acquiring a target angle corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
3. The method of claim 1, wherein the determining a folding angle between the first display area and the second display area based on the target magnetic field strength comprises:
Obtaining a target virtual Hall value corresponding to the target magnetic field intensity from the corresponding relation between the magnetic field intensity and the virtual Hall value;
and acquiring a target angle corresponding to the target virtual Hall value from the corresponding relation between the virtual Hall value and the folding angle, wherein the target angle is the folding angle between the first display area and the second display area.
4. The method of claim 1, wherein after determining the folding angle between the first display area and the second display area based on the target magnetic field strength, further comprising:
acquiring the maintenance time length of the folding angle;
and under the condition that the maintenance time length of the folding angle is larger than or equal to a first time length threshold value, switching the display mode of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
5. The method of claim 4, wherein switching the display mode of the electronic device to the target scene mode corresponding to the angle range in which the folding angle is located if the maintenance time period of the folding angle is greater than or equal to a first time period threshold value comprises:
Determining an angle range in which the folding angle is located under the condition that the maintenance time length of the folding angle is greater than or equal to a first time length threshold value;
determining a target scene mode corresponding to the angle range where the folding angle is located from the corresponding relation between the angle range and the scene mode;
and switching the display module of the electronic equipment into a target scene mode corresponding to the angle range where the folding angle is located.
6. The method of claim 4 or 5, wherein switching the display mode of the electronic device to a target scene mode corresponding to an angle range in which the folding angle is located comprises:
switching a display mode of the electronic equipment to a picture hovering mode under the condition that the folding angle is in a first preset angle range;
switching a display mode of the electronic equipment to a folding screen extinguishing mode under the condition that the folding angle is in a second preset angle range;
switching a display module of the electronic equipment to a folding screen full-screen display mode under the condition that the folding angle is in a third preset angle range;
switching a display module of the electronic equipment to a notebook mode under the condition that the folding angle is in a fourth preset angle range;
And under the condition that the folding angle is in a fifth preset angle range, switching the display module of the electronic equipment into a desk calendar mode.
7. The method of any of claims 1-5, wherein the magnetometer is independent of a magnetometer in the electronic device that is a compass.
8. The folding angle detection device of the folding screen is characterized by comprising a processor and a memory in the structure of the folding angle detection device of the folding screen;
the memory is used for storing a program for supporting the folding angle detecting apparatus of the folding screen to execute the method according to any one of claims 1 to 7, and storing data for implementing the method according to any one of claims 1 to 7.
9. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1-7.
CN202210955379.6A 2022-08-10 2022-08-10 Folding angle detection method and device for folding screen and readable storage medium Active CN116033051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210955379.6A CN116033051B (en) 2022-08-10 2022-08-10 Folding angle detection method and device for folding screen and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210955379.6A CN116033051B (en) 2022-08-10 2022-08-10 Folding angle detection method and device for folding screen and readable storage medium

Publications (2)

Publication Number Publication Date
CN116033051A CN116033051A (en) 2023-04-28
CN116033051B true CN116033051B (en) 2023-10-20

Family

ID=86069517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210955379.6A Active CN116033051B (en) 2022-08-10 2022-08-10 Folding angle detection method and device for folding screen and readable storage medium

Country Status (1)

Country Link
CN (1) CN116033051B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893914A (en) * 2009-05-22 2010-11-24 Lg电子株式会社 Mobile terminal and method of providing graphic user interface using the same
CN110536004A (en) * 2019-07-23 2019-12-03 华为技术有限公司 Multisensor is applied to the method and electronic equipment of the electronic equipment with flexible screen
CN110849257A (en) * 2019-11-27 2020-02-28 Oppo广东移动通信有限公司 Electronic equipment and folding angle detection method
CN111314510A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Folding screen assembly, electronic equipment and folding screen angle detection method
CN113467687A (en) * 2020-03-31 2021-10-01 北京小米移动软件有限公司 Method for reporting data by terminal equipment, terminal equipment and computer storage medium
CN114125095A (en) * 2020-08-31 2022-03-01 北京小米移动软件有限公司 Terminal device, vibration noise control method, device and medium
CN114489534A (en) * 2021-07-23 2022-05-13 荣耀终端有限公司 Display switching method of foldable electronic equipment, electronic equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101893914A (en) * 2009-05-22 2010-11-24 Lg电子株式会社 Mobile terminal and method of providing graphic user interface using the same
CN110536004A (en) * 2019-07-23 2019-12-03 华为技术有限公司 Multisensor is applied to the method and electronic equipment of the electronic equipment with flexible screen
CN110849257A (en) * 2019-11-27 2020-02-28 Oppo广东移动通信有限公司 Electronic equipment and folding angle detection method
CN111314510A (en) * 2020-01-19 2020-06-19 维沃移动通信有限公司 Folding screen assembly, electronic equipment and folding screen angle detection method
CN113467687A (en) * 2020-03-31 2021-10-01 北京小米移动软件有限公司 Method for reporting data by terminal equipment, terminal equipment and computer storage medium
CN114125095A (en) * 2020-08-31 2022-03-01 北京小米移动软件有限公司 Terminal device, vibration noise control method, device and medium
CN114489534A (en) * 2021-07-23 2022-05-13 荣耀终端有限公司 Display switching method of foldable electronic equipment, electronic equipment and medium

Also Published As

Publication number Publication date
CN116033051A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
US10073668B2 (en) Method for measuring angles between displays and electronic device using the same
EP3107270B1 (en) Electronic device with foldable display areas
CN116033056B (en) Folding angle detection method and device for folding screen and readable storage medium
CN112506386B (en) Folding screen display method and electronic equipment
CN110308956B (en) Application interface display method and device and mobile terminal
CN109646944B (en) Control information processing method, control information processing device, electronic equipment and storage medium
CN113064823B (en) Method and device for testing functions of parts of automobile and computer storage medium
CN110134744B (en) Method, device and system for updating geomagnetic information
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
WO2021169992A1 (en) Content presentation method and apparatus, terminal device, and computer-readable storage medium
CN110362366B (en) Application interface display method and device
CN110288689B (en) Method and device for rendering electronic map
CN113409427B (en) Animation playing method and device, electronic equipment and computer readable storage medium
WO2021052035A1 (en) Display method for side region of screen, and electronic apparatus
CN113127130A (en) Page jump method, device and storage medium
CN108984259B (en) Interface display method and device and terminal
CN107943484B (en) Method and device for executing business function
CN114546545A (en) Image-text display method, device, terminal and storage medium
CN116033051B (en) Folding angle detection method and device for folding screen and readable storage medium
CN113051485B (en) Group searching method, device, terminal and storage medium
CN110032421B (en) Method and device for managing atlas in memory, terminal and storage medium
CN113051015A (en) Page rendering method and device, electronic equipment and storage medium
CN113495770A (en) Method, device, terminal and storage medium for displaying application page
CN115379274B (en) Picture-based interaction method and device, electronic equipment and storage medium
CN114816311B (en) Screen movement 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