WO2021238511A1 - Device control method and apparatus, and storage medium and electronic device - Google Patents

Device control method and apparatus, and storage medium and electronic device Download PDF

Info

Publication number
WO2021238511A1
WO2021238511A1 PCT/CN2021/088740 CN2021088740W WO2021238511A1 WO 2021238511 A1 WO2021238511 A1 WO 2021238511A1 CN 2021088740 W CN2021088740 W CN 2021088740W WO 2021238511 A1 WO2021238511 A1 WO 2021238511A1
Authority
WO
WIPO (PCT)
Prior art keywords
display screen
electronic device
retractable
orientation
information
Prior art date
Application number
PCT/CN2021/088740
Other languages
French (fr)
Chinese (zh)
Inventor
冯东杰
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021238511A1 publication Critical patent/WO2021238511A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1652Details related to the display arrangement, including those related to the mounting of the display in the housing the display being flexible, e.g. mimicking a sheet of paper, or rollable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Definitions

  • This application belongs to the technical field of electronic equipment, and in particular relates to a device control method, device, storage medium, and electronic equipment.
  • the embodiments of the present application provide a device control method, device, storage medium, and electronic device, which can improve the degree of intelligence of the electronic device.
  • an embodiment of the present application provides a device control method, which is applied to an electronic device, the electronic device includes a retractable display screen, and the device control method includes:
  • the retractable display screen is controlled to expand and contract.
  • an embodiment of the present application provides a device control device, which is applied to an electronic device, the electronic device includes a retractable display screen, and the device control device includes:
  • An obtaining module used to obtain parameters used to indicate the state of the electronic device
  • the control module is configured to control the retractable display screen to expand and contract according to the acquired parameters.
  • an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the process in the device control method provided by the embodiment of the present application.
  • an embodiment of the present application further provides an electronic device including a memory and a processor, and the processor invokes a computer program stored in the memory to execute the process in the device control method provided in the embodiment of the present application .
  • 1 to 5 are schematic structural diagrams of an electronic device with a retractable display screen provided by embodiments of the application.
  • FIG. 6 is a schematic flowchart of the first method of device control provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a second flow of a device control method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a third process of a device control method provided by an embodiment of the present application.
  • 9 to 12 are schematic diagrams of scenes of the device control method provided by the embodiments of the present application.
  • FIG. 13 is a schematic structural diagram of a device control device provided by an embodiment of the present application.
  • Fig. 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 15 is a schematic diagram of another structure of an electronic device provided by an embodiment of the present application.
  • FIG. 1 to FIG. 3 are schematic structural diagrams of an electronic device with a retractable touch display screen provided by an embodiment of the present application.
  • the electronic device 100 of this embodiment includes a housing assembly 10, a flexible display 30, a driving member 50 and a driving mechanism 70.
  • the housing assembly 10 has a hollow structure.
  • the driving member 50, the driving mechanism 70, the camera 90 and other components can all be arranged in the housing assembly 10. It is understandable that the electronic device 100 of the embodiment of the present application includes but is not limited to mobile terminals such as mobile phones and tablet computers or other portable electronic devices. In this article, the electronic device 100 is a mobile phone as an example for description.
  • the housing assembly 10 includes a first housing 12 and a second housing 14, and the first housing 12 and the second housing 14 can move relative to each other.
  • the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 can slide relative to the first housing 12.
  • the first housing 12 and the second housing 14 jointly form an accommodating space 16.
  • the accommodating space 16 can be used to place components such as the driving member 50, the camera 60, and the driving mechanism 70.
  • the housing assembly 10 may further include a back cover 18, and the back cover 18 and the first housing 12 and the second housing 14 together form an accommodating space 16.
  • the driving member 50 is disposed in the second casing 14, one end of the flexible display screen 30 is disposed in the first casing 12, the flexible display screen 30 bypasses the driving member 50, and the other end of the flexible display screen is disposed in the accommodating space 16. In this way, part of the flexible display screen is hidden in the accommodating space 16, and part of the flexible display screen 30 hidden in the accommodating space 16 may not be lit.
  • the first housing 12 and the second housing 14 are relatively far away, and the flexible display screen 30 can be driven by the driving member 50 to unfold, so that more flexible display screens 30 are exposed outside the accommodating space 16, as shown in FIG. 5.
  • the flexible display screen 30 exposed to the outside of the accommodating space 16 is lighted up, so that the display area presented by the electronic device 100 becomes larger. For example, from FIG. 1 to FIG. 2, the morphological change comparison of the flexible display screen 30 of the electronic device from the contracted state to the laterally extended state can be shown.
  • the driving member 50 may be a rotating shaft structure with teeth 52 on the outside.
  • the flexible display screen 30 is linked with the driving member 50 through meshing or the like. When the first housing 12 and the second housing 14 are relatively far away, the driving member 50 is driven to engage The part of the flexible display screen 30 on the driving member 50 moves and unfolds.
  • the driving member 50 can also be a round shaft without teeth 52.
  • the driving member 50 will flexibly display the part of the winding on the driving member 50.
  • the screen 30 is stretched so that more flexible display screens are exposed outside the accommodating space 16 and are in a flat state.
  • the driving member 50 is rotatably disposed on the second housing 14. When the flexible display screen 30 is gradually expanded, the driving member 50 can rotate with the movement of the flexible display screen 30.
  • the driving member 50 can also be fixed on the second housing 14, and the driving member 50 has a smooth surface. When the flexible display screen 30 is expanded, the driving member 50 can slidably contact with the flexible display screen 30 through its smooth surface.
  • the flexible display screen can be retracted by the driving member 50.
  • the electronic device 100 further includes a resetting member (not shown). One end of the flexible display screen housed in the accommodating space 16 is linked with the resetting member. When the first housing 12 and the second housing 14 are relatively close, the resetting member drives The flexible display screen 30 is reset, so that part of the flexible display screen is retracted into the accommodating space 16.
  • the driving mechanism 70 can be arranged in the accommodating space 16, the driving mechanism 70 can be linked with the second housing 14, and the driving mechanism 70 is used to drive the second housing 14 relative to the first housing 12.
  • the separation movement drives the flexible display screen assembly 30 to stretch. It can be understood that the driving mechanism 70 can also be omitted, and the user can directly move the first housing and the second housing relative to one another manually.
  • the flexible display screen can be expanded and contracted in the lateral direction of the electronic device (for example, expansion and contraction in the left and right directions), in some other embodiments, It is also possible to change the direction of the hardware arrangement design so that the flexible display screen can expand and contract in the longitudinal direction of the electronic device (for example, expand and contract in the up and down direction).
  • the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
  • This embodiment provides a device control method, which is applied to an electronic device, the electronic device includes a retractable display screen, and the device control method includes:
  • the retractable display screen is controlled to expand and contract.
  • the obtaining the parameters used to indicate the state of the electronic device may include: obtaining one or more parameters used to indicate the state of the electronic device as required, the parameters It includes at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is charging, and the orientation information of the display screen at least includes whether the display screen is oriented upward or downward.
  • the acquired parameters may include orientation information of the display screen of the electronic device
  • controlling the retractable display screen to expand and contract according to the acquired parameter may include: if the orientation of the display screen is downward, controlling the retractable display screen to contract.
  • controlling the retractable display screen to shrink may include: if the orientation of the display screen is downward, acquiring the display screen The length of time that the orientation of the display screen is in the downward state; if the length of time the orientation of the display screen is in the downward state is greater than or equal to the preset duration threshold, the retractable display screen is controlled to shrink.
  • the acquired parameters may include orientation information of the display screen of the electronic device
  • the controlling the retractable display screen to expand and contract according to the obtained parameter may include: if the orientation of the display screen is upward, obtaining the remaining power of the electronic device; if the electronic If the remaining power of the device is less than the preset first power threshold, the retractable display screen is controlled to shrink.
  • controlling the retractable display screen to shrink may include: if the remaining power of the electronic device is less than the preset first power threshold. If the electronic device is in the first type of use scene, control the retractable display screen to shrink, wherein the first type of use scene is a pre- It is suitable for use scenarios with small-size screens.
  • controlling the retractable display screen to shrink may include: if the electronic device is in the first type of use scene, acquiring the Information about whether the electronic device is being charged; if the electronic device is not being charged, the retractable display screen is controlled to shrink.
  • controlling the retractable display screen to shrink may include: if the electronic device is not being charged, controlling the retractable display screen to perform Partially shrink.
  • the method may further include: if it is detected that the electronic device is being charged, controlling the retractable display screen to extend .
  • the method may further include: if it is detected that the remaining power of the electronic device is less than a preset second power threshold, controlling the retractable display screen to fully contract, wherein the preset The second power threshold is set to be less than the preset first power threshold.
  • the method may further include: if the electronic device is in a second type of use scene, acquiring information about whether the electronic device is charging, wherein the second type of use scene is a preset Use scenarios suitable for using large-size screens; if the electronic device is not charging, it prompts whether to shrink the retractable display screen; obtain feedback information, the feedback information is whether the retractable The display screen performs the feedback of contraction information; according to the feedback information, the expansion and contraction control of the retractable display screen is performed.
  • FIG. 6 is a schematic flowchart of the first method of device control according to an embodiment of the present application.
  • the device control method can be applied to an electronic device, and the electronic device can include a retractable display screen.
  • the process of the device control method may include:
  • the electronic device may have a retractable display screen.
  • the retractable display screen may be a retractable display panel (The Retractable Display Panel).
  • the retractable display screen can be a flexible display screen, and the flexible display screen can be bent, rolled, folded, and so on.
  • the visible size of the screen can be increased by stretching the retractable display screen, and the visible size of the screen can also be reduced by shrinking the retractable display screen.
  • the flexible display screen 30 in FIGS. 1 to 5 is a retractable display screen.
  • the electronic device may first obtain the parameters used to indicate the current state of the electronic device.
  • parameters used by the electronic device to indicate the state of the electronic device may be one or more. These parameters may be, for example, parameters used to indicate the power state of the electronic device, parameters used to indicate the orientation state of the display screen of the electronic device, parameters used to indicate the usage scenario of the electronic device, and parameters used to indicate the storage capacity state of the electronic device. Parameters, parameters used to represent the motion state of electronic devices, and so on.
  • the electronic device can control the retractable display screen to expand or contract according to these parameters, thereby increasing the visible size of the display screen or reducing the visible size of the display screen.
  • the electronic device can automatically control the retractable display screen to expand or contract according to the parameters used to indicate the state of the electronic device, without the user having to manually adjust the retractable display screen. Stretching or contracting, so the application can improve the degree of intelligence of the electronic device.
  • FIG. 7 is a schematic diagram of a second flow of the device control method provided by an embodiment of the present application.
  • the device control method can be applied to an electronic device, and the electronic device can include a retractable display screen.
  • the process of the device control method may include:
  • the parameters include at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is charging.
  • the orientation information of the screen includes at least whether the orientation of the display screen is upward or downward.
  • the electronic device may first obtain one or more parameters for the current state of the electronic device as required, and the parameters may include at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and whether it is in Charging information, etc.
  • the orientation information of the display screen may at least include that the orientation of the display screen is upward or the orientation of the display screen is downward.
  • the display screen of the electronic device is the front side, and the rear case of the electronic device is the back side.
  • that the orientation of the display screen is upward may mean that the electronic device faces upward.
  • the downward orientation of the display screen may mean that the reverse side of the electronic device faces upward.
  • the electronic device acquires one or more parameters used to indicate the state of the electronic device as needed. That is to say, if one or several parameters obtained are sufficient to determine how to perform a retractable operation on the retractable display screen, then the electronic device does not need to obtain other parameters. If the obtained one or several parameters are still not enough to determine how to perform a retractable operation on the retractable display, then the electronic device can further obtain other parameters, so as to adjust the retractable display based on all the obtained parameters.
  • the display screen performs telescopic operation.
  • the electronic device can obtain the orientation information of the display screen. If it has been able to determine how to perform the telescopic operation on the retractable display screen based on the orientation information of the display screen, the electronic device may not need to obtain other parameters. If it is still not possible to determine how to extend and retract the retractable display screen based on the orientation information of the display screen, the electronic device can further obtain other parameters. The remaining battery information is used to determine how to extend and retract the retractable display screen, and so on.
  • the electronic device may preset the order of acquiring the parameters. For example, it can be preset to obtain the orientation information of the display screen first, if it is impossible to determine how to perform a telescopic operation on the retractable display screen according to the orientation information of the display screen. Then, the electronic device obtains the remaining power information. If you still can’t figure out how to extend and retract the retractable display screen based on the display screen, orientation information, and remaining battery information. Then, the electronic device can obtain usage scene information, and so on. In this way, the electronic device can obtain the required parameters as required.
  • the electronic device can control the retractable display screen to expand and contract.
  • the electronic device can obtain one or more parameters used to indicate the state of the electronic device as needed to automatically control the retractable display screen to expand or contract without the user
  • the retractable display screen is manually expanded or contracted, so the present application can improve the degree of intelligence of the electronic device.
  • FIG. 8 is a schematic flowchart of a third method of a device control method provided by an embodiment of the present application.
  • the device control method can be applied to an electronic device, and the electronic device can include a retractable display screen.
  • the process of the device control method may include:
  • the electronic device may first obtain the orientation information of the display screen.
  • the orientation information of the display screen may at least include that the orientation of the display screen is upward or the orientation of the display screen is downward.
  • the display screen of the electronic device is the front side, and the rear case of the electronic device is the back side.
  • that the orientation of the display screen is upward may mean that the electronic device faces upward.
  • the downward orientation of the display screen may mean that the reverse side of the electronic device faces upward.
  • the electronic device may obtain the orientation information of the display screen through a sensor.
  • the electronic device can obtain the orientation information of the display screen through the output data of the acceleration sensor.
  • the acceleration sensor is also called G-sensor, and its output data is the acceleration value of the x, y, and z axes, which includes the influence of gravity.
  • the x-axis output of the acceleration sensor is 0, the y-axis output is 0, and the z-axis output is 9.81.
  • the electronic device can determine whether the display screen of the electronic device faces up or down through the output data of the acceleration sensor.
  • the electronic device may also use other sensors or other methods to determine whether the display screen of the electronic device is facing up or down. It does not matter whether the display screen of the electronic device faces up or down.
  • the electronic device can control the retractable display screen to shrink.
  • shrinking the retractable display screen can save power and power consumption by reducing the display area of the display screen.
  • the process of controlling the retractable display screen to shrink may include:
  • the length of time that the orientation of the display screen is in the downward state is acquired.
  • the retractable display screen is controlled to shrink.
  • the electronic device determines that the orientation of the display screen is downward. Then, the electronic device can obtain the time period during which the orientation of the display screen is in the downward state, and detect whether the time period during which the orientation of the display screen is in the downward state is greater than or equal to the preset duration threshold.
  • the electronic device can control the retractable display screen to shrink.
  • the electronic device can control the retractable display screen to fully retract. The fully retracted state of the retractable display screen can be shown in Figure 1.
  • the electronic device can keep the state of the retractable display screen unchanged, that is, the electronic device may not stretch the retractable display screen.
  • the electronic device may further obtain its current remaining power, and detect whether the remaining power is less than the preset first power threshold.
  • the electronic device If it is detected that the remaining power is greater than or equal to the preset first power threshold, it can be considered that the current remaining power of the electronic device is still relatively sufficient. Therefore, the electronic device currently does not need to perform expansion control on the retractable display screen, that is, the electronic device can maintain the current state of the retractable display screen unchanged.
  • the electronic device can control the retractable display screen to shrink.
  • the electronic device in order to perform telescopic control of the retractable display screen smarter and more refined, if it is detected that the remaining power is less than the preset first power threshold, then it can be considered that the remaining power of the electronic device is low or insufficient. That is, at this time, the orientation of the display screen of the electronic device is upwards and the remaining power is low, the electronic device can further obtain its current usage scene information, and detect whether the current usage scene is the first type of usage scene or the second type of usage.
  • Scenes the first type of use scene may be a preset use scene suitable for using a small-sized screen, such as a scene of listening to music.
  • the second type of use scene may be a preset use scene suitable for using a large-size screen, such as a game playing scene and a video watching scene.
  • the electronic device detects that the current use scenario is the first type of use scenario, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is a use scenario suitable for using a small screen.
  • the retractable display screen can be controlled to contract, for example, to be fully contracted or partially contracted, thereby saving the power and power consumption of the electronic device.
  • the process of controlling the retractable display screen to shrink may include:
  • the retractable display screen is controlled to shrink.
  • the electronic device can further obtain information about whether it is charging.
  • the electronic device can control the retractable display screen to shrink, thereby saving the electric power and power consumption of the electronic device by reducing the display area of the display screen.
  • the electronic device can control the retractable display screen to perform partial contraction instead of complete contraction. For example, the electronic device can control the retractable display screen to shrink to three-quarters of the maximum stretchable length. For example, if the maximum stretchable length of the display screen of the electronic device is 8 cm, then the electronic device can control the stretchable display screen to shrink to a state where the stretched length is 6 cm (that is, the retracted length is 2 cm), and so on.
  • the electronic device may detect whether the electronic device is being charged at intervals or cyclically. If it is detected that the electronic device is charging, the electronic device can control the retractable display screen to extend, for example, to fully extend. For example, the electronic device can control the retractable display screen to stretch from 6 cm to 8 cm.
  • the electronic device can keep the state of the retractable display screen unchanged without performing expansion control.
  • the electronic device can control the retractable display screen to partially contract. For example, the electronic device can control the retractable display screen to shrink to three-quarters of the maximum stretchable length. After that, the electronic device can detect whether the remaining power will be less than the preset second power threshold, where the preset second power threshold is less than the preset first power threshold.
  • the electronic device can control the retractable display screen to fully contract, thereby further saving power consumption.
  • the electronic device may detect whether it is being charged at intervals or cyclically. If charging is detected, the electronic device can control the retractable display to fully extend. If it is detected that it is not charging, the electronic device can keep the state of the retractable display screen unchanged, and so on.
  • the electronic device If the electronic device is in a second type of use scene, obtain information about whether the electronic device is charging, where the second type of use scene is a preset use scene suitable for using a large-size screen.
  • 306, 307, 308, and 309 may include:
  • the electronic device detects that the current use scenario is the second type of use scenario, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is a use scenario suitable for using a large screen (such as playing games or Watch the video scene), then the electronic device can obtain information about whether it is currently charging.
  • the second type of use scenario that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low
  • it is a use scenario suitable for using a large screen such as playing games or Watch the video scene
  • the electronic device If the electronic device is currently charging, it can be considered that although the remaining power of the electronic device is low, it can currently be replenished. Therefore, the electronic device does not need to control the retractable display screen at present, that is, the electronic device can maintain the retractable display The current state of the screen remains unchanged.
  • the electronic device since the electronic device can currently be recharged, if the current display screen of the electronic device is not extended to the maximum extent, the electronic device can also be extended to the maximum extent, that is, the retractable display screen can be fully extended.
  • the state of the retractable display screen when it is fully extended can be as shown in FIG. 2.
  • the electronic device If the electronic device is not charging, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is suitable for use with a large-size screen, and the electronic device is currently unable to receive power replenishment, then consider that it is currently suitable
  • the electronic device can obtain the user's feedback information on the above-mentioned prompt information, and control the retractable display screen according to the feedback information. For example, if the user chooses to shrink the retractable display screen, the electronic device can shrink the retractable display screen according to the user's selection, thereby saving power and power consumption. If the user chooses not to shrink the retractable display screen, the electronic device can keep the current state of the retractable display screen unchanged.
  • the retractable display is controlled, on the one hand, it can improve the flexibility of the electronic device to control the retractable display on the other hand. Aspects can also improve user experience.
  • the electronic device can obtain one or more parameters that indicate the state of the electronic device as needed, such as the orientation information of the display screen, the remaining power information, the usage scenario information, and whether it is charging or not. Information and other parameters, and automatically control the retractable display screen to expand and contract according to these parameters, so as to improve the intelligence of electronic equipment, and realize the electronic equipment to perform fine expansion control of the retractable display screen, and in certain scenes By shrinking the retractable display screen, the display area of the display screen can be reduced, thereby achieving the effect of saving power and power consumption.
  • parameters that indicate the state of the electronic device as needed, such as the orientation information of the display screen, the remaining power information, the usage scenario information, and whether it is charging or not.
  • Information and other parameters and automatically control the retractable display screen to expand and contract according to these parameters, so as to improve the intelligence of electronic equipment, and realize the electronic equipment to perform fine expansion control of the retractable display screen, and in certain scenes
  • shrinking the retractable display screen the display area of the display screen can be reduced, thereby achieving
  • FIG. 9 to FIG. 12 are schematic diagrams of scenes of the device control method provided by the embodiments of this application.
  • the electronic device provided in this embodiment includes a retractable touch display screen.
  • the retractable touch display screen may be a retractable touch display screen.
  • the retractable touch display screen can be a flexible display screen, and the flexible display screen can be bent, rolled, folded, and the like.
  • the visible size of the screen can be increased by stretching the screen, and the visible size of the screen can also be reduced by shrinking the screen.
  • Figure 1 shows the form of the screen of the electronic device when the retractable touch screen is in a fully retracted state
  • Figure 2 shows the retractable touch screen in a fully extended state. The form of the screen of the electronic device in the state.
  • the electronic device may first determine the orientation information of its display screen through the output data of the acceleration sensor, where the orientation information of the display screen may at least include that the orientation of the display screen is upward or the orientation of the display screen is down.
  • the display screen of the electronic device is the front side, and the rear case of the electronic device is the back side.
  • that the orientation of the display screen is upward may mean that the electronic device faces upward.
  • the downward orientation of the display screen may mean that the reverse side of the electronic device faces upward.
  • the electronic device determines that the direction of the display screen is downward.
  • the electronic device can obtain the duration of the downward orientation of the display screen, and detect whether the duration of the downward orientation of the display screen is greater than or equal to the preset duration threshold.
  • the electronic device detects that the display screen is facing downward for a period of time greater than or equal to the preset duration threshold, it can be considered that the display screen of the electronic device has been facing downwards for a long time. In this case, it can be considered that the user has used the content displayed on the display screen for a long time or the user has not used the electronic device for a long time. Therefore, the electronic device can control the retractable display screen to fully retract.
  • the electronic device may not perform expansion control on the retractable display screen first.
  • the electronic device may further obtain the information of the remaining power and detect whether the remaining power is less than the preset first power threshold.
  • the electronic device can further obtain its current usage scene information, and detect whether the current usage scene is the first type of usage scene or the second type of usage scene.
  • the first type of use scene may be a preset use scene suitable for using a small-sized screen, such as a scene of listening to music.
  • the second type of use scene may be a preset use scene suitable for using a large-size screen, such as a game playing scene and a video watching scene.
  • the electronic device detects that the current use scenario is the first type of use scenario, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is a use scenario suitable for using a small screen. You can get further information about whether it is charging.
  • the first type of use scenario that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is a use scenario suitable for using a small screen. You can get further information about whether it is charging.
  • the electronic device obtains that it is not currently being charged.
  • the electronic device may control the retractable display screen to partially contract.
  • the electronic device can control the retractable display screen to shrink to three-quarters of the maximum stretchable length. For example, if the maximum extendable length of the display screen of the electronic device is 8 cm, the electronic device can control the retractable display screen to retract by 2 cm.
  • the electronic device can control the retractable The display screen is retracted to the left by 2 cm, and the shape change of the electronic device can be shown in Figure 9.
  • the electronic device may detect whether the remaining power is less than the preset second power threshold at a preset time interval, where the preset second power threshold is less than the preset first power threshold.
  • the preset first power threshold is a
  • the preset second power threshold is b, where a is greater than b. If it is detected that the remaining power of the electronic device is greater than or equal to the preset second power threshold and less than the preset first power threshold, for example, the remaining power of the electronic device is in the interval [a, b], then the power of the electronic device can be considered to be lower Low but not very low. In this case, the electronic device can detect whether it is charging.
  • the electronic device can control the retractable display screen to fully extend.
  • the electronic device controls the retractable display screen to extend 2 cm to the right, and the shape change of the display screen of the electronic device can be as shown in FIG. 10.
  • the electronic device can keep the state of the retractable display screen unchanged, that is, the retractable display screen is not stretched.
  • the electronic device can control the retractable display screen to fully contract, and the shape change of the display screen of the electronic device can be as shown in FIG. 11.
  • the electronic device when it is determined that the orientation of the display screen of the electronic device is upward and the remaining power is less than the preset first power threshold, the electronic device detects that its current use scene is a scene for playing a video, and the scene for playing a video belongs to The second type of use scenario, at this time, the electronic device can obtain information about whether it is charging.
  • the electronic device detects that it is not currently being charged, it can be considered that the current remaining power of the electronic device is low, but it is currently suitable for use with a large-size screen for display, and the electronic device cannot be recharged temporarily.
  • the electronic device A prompt message can be generated, and the prompt message can be used to prompt the user whether to shrink the retractable display screen, as shown in FIG. 12.
  • the electronic device can shrink the retractable display screen.
  • the electronic device may fully shrink the retractable display screen, or the electronic device may shrink the retractable display screen to a certain extent without fully shrinking, and so on.
  • FIG. 13 is a schematic structural diagram of a device control apparatus provided by an embodiment of the application.
  • the device control device can be applied to an electronic device that includes a retractable display screen.
  • the device control apparatus 400 may include: an acquisition module 401 and a control module 402.
  • the obtaining module 401 is configured to obtain parameters used to indicate the state of the electronic device.
  • the control module 402 is configured to control the retractable display screen to expand and contract according to the acquired parameters.
  • the acquiring module 401 is configured to acquire one or more parameters used to indicate the state of the electronic device as required, and the parameters include at least the orientation of the display screen of the electronic device Information, remaining power, usage scenario information, and information about whether it is charging or not, and the orientation information of the display screen at least includes whether the orientation of the display screen is upward or downward.
  • the acquired parameters include orientation information of the display screen of the electronic device.
  • control module 402 is configured to: if the orientation of the display screen is downward, control the retractable display screen to shrink.
  • control module 402 may be used to: if the orientation of the display screen is downward, obtain the length of time that the orientation of the display screen is in the downward state; if the orientation of the display screen is in the downward state; When the duration of the downward state is greater than or equal to the preset duration threshold, the retractable display screen is controlled to shrink.
  • the acquired parameters include orientation information of the display screen of the electronic device.
  • control module 402 can be used to: if the orientation of the display screen is upwards, obtain the remaining power of the electronic device; if the remaining power of the electronic device is less than a preset first power threshold, control all The retractable display screen is retracted.
  • control module 402 may be configured to: if the remaining power of the electronic device is less than the preset first power threshold, obtain the usage scenario information of the electronic device; if the electronic device is in the first For one type of use scene, the retractable display screen is controlled to shrink, wherein the first type of use scene is a preset use scene suitable for using a small-sized screen.
  • control module 402 may be used to: if the electronic device is in the first type of use scenario, obtain information about whether the electronic device is charging; if the electronic device is not charging, then The retractable display screen is controlled to shrink.
  • control module 402 may be used to control the retractable display screen to partially contract if the electronic device is not being charged.
  • control module 402 may also be used to control the retractable display screen to extend if it is detected that the electronic device is being charged.
  • control module 402 may be further configured to: if it is detected that the remaining power of the electronic device is less than a preset second power threshold, control the retractable display screen to fully contract, wherein, The preset second power threshold is less than the preset first power threshold.
  • control module 402 may be further configured to: if the electronic device is in a second type of use scenario, obtain information about whether the electronic device is charging, wherein the second type of use scenario It is a preset usage scenario suitable for using a large-size screen; if the electronic device is not charging, it prompts whether to shrink the retractable display screen; obtain feedback information, the feedback information is whether the The retractable display screen performs feedback on the information of contraction; and the retractable control is performed on the retractable display screen according to the feedback information.
  • the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed on a computer, the computer is caused to execute the process in the device control method provided in this embodiment.
  • An embodiment of the present application further provides an electronic device, including a memory and a processor, and the processor is configured to execute a process in the device control method provided in this embodiment by calling a computer program stored in the memory.
  • the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone.
  • FIG. 14 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device 500 may include a touch display screen 501, a memory 502, a processor 503 and other components.
  • a touch display screen 501 may include a touch display screen 501, a memory 502, a processor 503 and other components.
  • FIG. 14 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
  • the touch display screen 501 may be a retractable touch display screen.
  • the retractable touch display screen may be a retractable touch display screen.
  • the retractable touch screen can be a flexible screen, and the flexible screen can be bent, rolled, folded, and so on.
  • the visible size of the screen can be increased by stretching the screen, and the visible size of the screen can also be reduced by shrinking the screen.
  • the memory 502 can be used to store application programs and data.
  • the application program stored in the memory 502 contains executable code.
  • Application programs can be composed of various functional modules.
  • the processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
  • the processor 503 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502
  • the various functions and processing data of the electronic equipment can be used to monitor the electronic equipment as a whole.
  • the processor 503 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 will run and store the executable code in the memory.
  • the retractable display screen is controlled to expand and contract.
  • the electronic device 500 may include components such as a touch display screen 501, a memory 502, a processor 503, a battery 504, a microphone 505, and a speaker 506.
  • the touch display 501 may be a rollable touch display.
  • the rollable touch screen may be a retractable touch screen.
  • the rollable touch display screen may be a flexible display screen, and the flexible display screen may be bent, rolled, folded, etc.
  • the visible size of the screen can be increased by stretching the screen, and the visible size of the screen can also be reduced by shrinking the screen.
  • the memory 502 can be used to store application programs and data.
  • the application program stored in the memory 502 contains executable code.
  • Application programs can be composed of various functional modules.
  • the processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
  • the processor 503 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502
  • the various functions and processing data of the electronic equipment can be used to monitor the electronic equipment as a whole.
  • the battery 504 can be used to supply power to various modules and components of the electronic device.
  • the microphone 505 can be used to pick up sound signals in the surrounding environment, for example, to receive voice instructions issued by the user.
  • the speaker 506 can be used to play sound signals.
  • the processor 503 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 will run and store the executable code in the memory.
  • the retractable display screen is controlled to expand and contract.
  • the processor 503 when the processor 503 executes the obtaining of the parameters used to indicate the state of the electronic device, it may execute: obtain one or more of the parameters used to indicate the state of the electronic device as required Parameters, the parameters include at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is charging or not, and the orientation information of the display screen includes at least whether the display screen is facing up or down .
  • the acquired parameters include orientation information of the display screen of the electronic device.
  • the processor 503 executes the control of the retractable display screen to expand and contract according to the acquired parameters, it may execute: if the orientation of the display screen is downward, control the retractable display The screen shrinks.
  • the processor 503 when controlling the retractable display screen to shrink, it may execute: if the orientation of the display screen is downward, then Obtain the duration of the downward orientation of the display screen; if the duration of the downward orientation of the display screen is greater than or equal to a preset duration threshold, control the retractable display screen to shrink.
  • the acquired parameters include orientation information of the display screen of the electronic device.
  • the processor 503 executes the control of the retractable display screen to expand and contract according to the acquired parameters, it may execute: if the orientation of the display screen is upward, obtain the remaining power of the electronic device If the remaining power of the electronic device is less than the preset first power threshold, the retractable display screen is controlled to shrink.
  • the processor 503 executes that if the remaining power of the electronic device is less than the preset first power threshold, when the retractable display screen is controlled to shrink, it may execute: if the remaining power of the electronic device is If the power level is less than the preset first power level threshold, the use scenario information of the electronic device is acquired; if the electronic device is in the first type of use scenario, the retractable display screen is controlled to shrink, wherein the first The class usage scenarios are preset usage scenarios suitable for using small-size screens.
  • the processor 503 executes that if the electronic device is in the first type of use scene, when the retractable display screen is controlled to shrink, it may execute: if the electronic device is in the first type of use scene , The information about whether the electronic device is being charged is acquired; if the electronic device is not being charged, the retractable display screen is controlled to shrink.
  • the processor 503 when the processor 503 executes that if the electronic device is not being charged, controlling the retractable display screen to shrink, it may execute: if the electronic device is not being charged, then controlling the The retractable display screen is partially retracted.
  • the processor 503 may further execute: if it is detected that the electronic device is being charged, control the retractable display screen Stretch.
  • the processor 503 may further execute: if it is detected that the remaining power of the electronic device is less than a preset second power threshold, control the retractable display screen to fully contract, wherein the preset The second power threshold is set to be less than the preset first power threshold.
  • the processor 503 may also execute: if the electronic device is in a second type of usage scenario, obtain information about whether the electronic device is charging, where the second type of usage scenario is a preset Use scenarios suitable for using large-size screens; if the electronic device is not charging, it prompts whether to shrink the retractable display screen; obtain feedback information, the feedback information is whether the retractable The display screen performs the feedback of contraction information; according to the feedback information, the expansion and contraction control of the retractable display screen is performed.
  • the device control device provided in this embodiment of the application belongs to the same concept as the device control method in the above embodiment, and any method provided in the device control method embodiment can be run on the device control device.
  • the details are For details of the implementation process, refer to the device control method embodiment, which will not be repeated here.
  • the computer program may be stored in a computer readable storage medium, such as stored in a memory, and executed by at least one processor.
  • the execution process may include the flow of the embodiment of the device control method.
  • the storage medium may be a magnetic disk, an optical disc, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), etc.
  • the device control device of the embodiment of the present application its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed in the present application are a device control method and apparatus, and a storage medium and an electronic device. The device control method is applied to the electronic device; the electronic device comprises a retractable display screen; the device control method comprises: obtaining a parameter used for representing the state of the electronic device; and controlling, according to the obtained parameter, the retractable display screen to perform extension and retraction. The present application can improve the intelligence of the electronic device.

Description

设备控制方法、装置、存储介质及电子设备Equipment control method, device, storage medium and electronic equipment
本申请要求于2020年05月27日提交中国专利局、申请号为202010464050.0、申请名称为“设备控制方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 202010464050.0, and the application name is "equipment control method, device, storage medium and electronic equipment" on May 27, 2020, the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请属于电子设备技术领域,尤其涉及一种设备控制方法、装置、存储介质及电子设备。This application belongs to the technical field of electronic equipment, and in particular relates to a device control method, device, storage medium, and electronic equipment.
背景技术Background technique
随着技术的不断发展,电子设备的形态也在发生变化。从小屏幕发展到大屏幕,从单纯的用于显示图像和文字的显示屏发展到可以接收用户触摸操作的触摸显示屏,等等。随着技术的发展,用户对电子设备的智能化要求越来越高。With the continuous development of technology, the form of electronic equipment is also changing. From a small screen to a large screen, from a simple display screen used to display images and text to a touch display screen that can receive user touch operations, and so on. With the development of technology, users have higher and higher requirements for the intelligence of electronic devices.
发明内容Summary of the invention
本申请实施例提供一种设备控制方法、装置、存储介质及电子设备,可以提高电子设备的智能化程度。The embodiments of the present application provide a device control method, device, storage medium, and electronic device, which can improve the degree of intelligence of the electronic device.
第一方面,本申请实施例提供一种设备控制方法,应用于电子设备,所述电子设备包括可伸缩的显示屏,所述设备控制方法包括:In the first aspect, an embodiment of the present application provides a device control method, which is applied to an electronic device, the electronic device includes a retractable display screen, and the device control method includes:
获取用于表示所述电子设备所处状态的参数;Acquiring a parameter used to indicate the state of the electronic device;
根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。According to the acquired parameters, the retractable display screen is controlled to expand and contract.
第二方面,本申请实施例提供一种设备控制装置,应用于电子设备,所述电子设备包括可伸缩的显示屏,所述设备控制装置包括:In a second aspect, an embodiment of the present application provides a device control device, which is applied to an electronic device, the electronic device includes a retractable display screen, and the device control device includes:
获取模块,用于获取用于表示所述电子设备所处状态的参数;An obtaining module, used to obtain parameters used to indicate the state of the electronic device;
控制模块,用于根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。The control module is configured to control the retractable display screen to expand and contract according to the acquired parameters.
第三方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的设备控制方法中的流程。In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the process in the device control method provided by the embodiment of the present application.
第四方面,本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,以执行本申请实施例提供的设备控制方法中的流程。In a fourth aspect, an embodiment of the present application further provides an electronic device including a memory and a processor, and the processor invokes a computer program stored in the memory to execute the process in the device control method provided in the embodiment of the present application .
附图说明Description of the drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The following detailed description of the specific implementations of the present application in conjunction with the accompanying drawings will make the technical solutions of the present application and its beneficial effects obvious.
图1至图5为本申请实施例提供的具有可伸缩的显示屏的电子设备的结构示意图。1 to 5 are schematic structural diagrams of an electronic device with a retractable display screen provided by embodiments of the application.
图6是本申请实施例提供的设备控制方法的第一种流程示意图。FIG. 6 is a schematic flowchart of the first method of device control provided by an embodiment of the present application.
图7是本申请实施例提供的设备控制方法的第二种流程示意图。FIG. 7 is a schematic diagram of a second flow of a device control method provided by an embodiment of the present application.
图8是本申请实施例提供的设备控制方法的第三种流程示意图。FIG. 8 is a schematic diagram of a third process of a device control method provided by an embodiment of the present application.
图9至图12是本申请实施例提供的设备控制方法的场景示意图。9 to 12 are schematic diagrams of scenes of the device control method provided by the embodiments of the present application.
图13是本申请实施例提供的设备控制装置的结构示意图。FIG. 13 is a schematic structural diagram of a device control device provided by an embodiment of the present application.
图14是本申请实施例提供的电子设备的结构示意图。Fig. 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图15是本申请实施例提供的电子设备的另一结构示意图。FIG. 15 is a schematic diagram of another structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当 的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, where the same component symbols represent the same components, and the principle of the present application is implemented in an appropriate computing environment for illustration. The following description is based on the exemplified specific embodiments of the application, which should not be regarded as limiting other specific embodiments of the application that are not described in detail herein.
请参阅图1至图3,图1至图3是本申请实施例提供的具有可伸缩的触摸显示屏的电子设备的结构示意图。Please refer to FIG. 1 to FIG. 3. FIG. 1 to FIG. 3 are schematic structural diagrams of an electronic device with a retractable touch display screen provided by an embodiment of the present application.
本实施方式的电子设备100包括壳体组件10、柔性显示屏30、带动件50及驱动机构70。壳体组件10为中空结构。带动件50、驱动机构70以及摄像头90等组件均可设置在壳体组件10。可以理解的是,本申请实施方式的电子设备100包括但不限于手机、平板电脑等移动终端或者其它便携式电子设备。在本文中,以电子设备100为手机为例进行说明。The electronic device 100 of this embodiment includes a housing assembly 10, a flexible display 30, a driving member 50 and a driving mechanism 70. The housing assembly 10 has a hollow structure. The driving member 50, the driving mechanism 70, the camera 90 and other components can all be arranged in the housing assembly 10. It is understandable that the electronic device 100 of the embodiment of the present application includes but is not limited to mobile terminals such as mobile phones and tablet computers or other portable electronic devices. In this article, the electronic device 100 is a mobile phone as an example for description.
在本实施方式中,壳体组件10包括第一壳体12和第二壳体14,第一壳体12和第二壳体14能够相对运动。在本实施方式中,第一壳体12和第二壳体14滑动连接,也即是说,第二壳体14能够相对第一壳体12滑动。In this embodiment, the housing assembly 10 includes a first housing 12 and a second housing 14, and the first housing 12 and the second housing 14 can move relative to each other. In this embodiment, the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 can slide relative to the first housing 12.
请参阅图4及图5,第一壳体12与第二壳体14共同形成有容置空间16。容置空间16可用于放置带动件50、摄像头60及驱动机构70等部件。壳体组件10还可包括后盖18,后盖18与第一壳体12与第二壳体14共同形成容置空间16。Please refer to FIGS. 4 and 5, the first housing 12 and the second housing 14 jointly form an accommodating space 16. The accommodating space 16 can be used to place components such as the driving member 50, the camera 60, and the driving mechanism 70. The housing assembly 10 may further include a back cover 18, and the back cover 18 and the first housing 12 and the second housing 14 together form an accommodating space 16.
带动件50设置于第二壳体14,柔性显示屏30的一端设置于第一壳体12,柔性显示屏30绕过带动件50,且柔性显示屏的另一端设置于容置空间16内,以使部分柔性显示屏隐藏于容置空间16内,隐藏于容置空间16内的部分柔性显示屏30可不点亮。第一壳体12和第二壳体14相对远离,可通过带动件50带动柔性显示屏30展开,以使得更多的柔性显示屏30暴露于容置空间16外,如图5所示。点亮暴露于容置空间16外部的柔性显示屏30,以使得电子设备100所呈现的显示区域变大。例如,从图1至图2可以为电子设备的柔性显示屏30从收缩状态到横向伸展状态的形态变化对比。The driving member 50 is disposed in the second casing 14, one end of the flexible display screen 30 is disposed in the first casing 12, the flexible display screen 30 bypasses the driving member 50, and the other end of the flexible display screen is disposed in the accommodating space 16. In this way, part of the flexible display screen is hidden in the accommodating space 16, and part of the flexible display screen 30 hidden in the accommodating space 16 may not be lit. The first housing 12 and the second housing 14 are relatively far away, and the flexible display screen 30 can be driven by the driving member 50 to unfold, so that more flexible display screens 30 are exposed outside the accommodating space 16, as shown in FIG. 5. The flexible display screen 30 exposed to the outside of the accommodating space 16 is lighted up, so that the display area presented by the electronic device 100 becomes larger. For example, from FIG. 1 to FIG. 2, the morphological change comparison of the flexible display screen 30 of the electronic device from the contracted state to the laterally extended state can be shown.
带动件50可为外部带有齿52的转轴结构,柔性显示屏30通过啮合等方式与带动件50相联动,第一壳体12和第二壳体14相对远离时,通过带动件50带动啮合于带动件50上的部分柔性显示屏30移动并展开。The driving member 50 may be a rotating shaft structure with teeth 52 on the outside. The flexible display screen 30 is linked with the driving member 50 through meshing or the like. When the first housing 12 and the second housing 14 are relatively far away, the driving member 50 is driven to engage The part of the flexible display screen 30 on the driving member 50 moves and unfolds.
可以理解的是,带动件50还可为不附带齿52的圆轴,第一壳体12和第二壳体14相对远离时,通过带动件50将卷绕于带动件50上的部分柔性显示屏30撑开,以使更多的柔性显示屏暴露于容置空间16外,并处于平展状态。具体的,带动件50可转动地设置于第二壳体14,在逐步撑开柔性显示屏30时,带动件50可随柔性显示屏30的移动而转动。It is understandable that the driving member 50 can also be a round shaft without teeth 52. When the first housing 12 and the second housing 14 are relatively far away, the driving member 50 will flexibly display the part of the winding on the driving member 50. The screen 30 is stretched so that more flexible display screens are exposed outside the accommodating space 16 and are in a flat state. Specifically, the driving member 50 is rotatably disposed on the second housing 14. When the flexible display screen 30 is gradually expanded, the driving member 50 can rotate with the movement of the flexible display screen 30.
在其它实施方式中,带动件50也可固定在第二壳体14上,带动件50具备光滑的表面。在将柔性显示屏30撑开时,带动件50通过其光滑的表面与柔性显示屏30可滑动接触。In other embodiments, the driving member 50 can also be fixed on the second housing 14, and the driving member 50 has a smooth surface. When the flexible display screen 30 is expanded, the driving member 50 can slidably contact with the flexible display screen 30 through its smooth surface.
当第一壳体12和第二壳体14相对靠近时,柔性显示屏可通过带动件50带动收回。或者,电子设备100还包括复位件(图未示),柔性显示屏收容于容置空间16的一端与复位件联动,在第一壳体12和第二壳体14相对靠近时,复位件带动柔性显示屏30复位,进而使得部分柔性显示屏收回于容置空间16内。When the first housing 12 and the second housing 14 are relatively close, the flexible display screen can be retracted by the driving member 50. Alternatively, the electronic device 100 further includes a resetting member (not shown). One end of the flexible display screen housed in the accommodating space 16 is linked with the resetting member. When the first housing 12 and the second housing 14 are relatively close, the resetting member drives The flexible display screen 30 is reset, so that part of the flexible display screen is retracted into the accommodating space 16.
在本实施方式中,驱动机构70可设置在容置空间16内,驱动机构70可与第二壳体14相联动,驱动机构70用于驱动第二壳体14相对于第一壳体12做相离运动,进而带动柔性显示屏组件30伸展。可以理解的是,驱动机构70也可以省略,用户可以直接通过手动等方式来使得第一壳体和第二壳体相对运动。In this embodiment, the driving mechanism 70 can be arranged in the accommodating space 16, the driving mechanism 70 can be linked with the second housing 14, and the driving mechanism 70 is used to drive the second housing 14 relative to the first housing 12. The separation movement drives the flexible display screen assembly 30 to stretch. It can be understood that the driving mechanism 70 can also be omitted, and the user can directly move the first housing and the second housing relative to one another manually.
需要说明的是,除了按照图1至图5的硬件排布设计使柔性显示屏可以在电子设备的横向方向上进行伸缩(例如在左右方向上进行的伸缩)外,在其它一些实施方式中,还可以改变硬件排布设计的方向使得柔性显示屏可以在电子设备的纵向方向上进行伸缩(例如在上下方向上进行的伸缩)。It should be noted that, in addition to the hardware arrangement design shown in FIGS. 1 to 5 so that the flexible display screen can be expanded and contracted in the lateral direction of the electronic device (for example, expansion and contraction in the left and right directions), in some other embodiments, It is also possible to change the direction of the hardware arrangement design so that the flexible display screen can expand and contract in the longitudinal direction of the electronic device (for example, expand and contract in the up and down direction).
可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等的电子设 备。It is understandable that the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
本实施例提供一种设备控制方法,应用于电子设备,所述电子设备包括可伸缩的显示屏,所述设备控制方法包括:This embodiment provides a device control method, which is applied to an electronic device, the electronic device includes a retractable display screen, and the device control method includes:
获取用于表示所述电子设备所处状态的参数;Acquiring a parameter used to indicate the state of the electronic device;
根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。According to the acquired parameters, the retractable display screen is controlled to expand and contract.
在一种实施方式中,所述获取用于表示所述电子设备所处状态的参数,可以包括:根据需要获取用于表示所述电子设备所处状态的一种或多种参数,所述参数至少包括所述电子设备的显示屏的朝向信息、剩余电量、使用场景信息、是否在充电的信息,所述显示屏的朝向信息至少包括所述显示屏朝向为向上或向下。In an implementation manner, the obtaining the parameters used to indicate the state of the electronic device may include: obtaining one or more parameters used to indicate the state of the electronic device as required, the parameters It includes at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is charging, and the orientation information of the display screen at least includes whether the display screen is oriented upward or downward.
在一种实施方式中,获取的参数可以包括所述电子设备的显示屏的朝向信息;In an embodiment, the acquired parameters may include orientation information of the display screen of the electronic device;
那么,所述根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩,可以包括:若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩。Then, controlling the retractable display screen to expand and contract according to the acquired parameter may include: if the orientation of the display screen is downward, controlling the retractable display screen to contract.
在一种实施方式中,若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩,可以包括:若所述显示屏的朝向为向下,则获取所述显示屏的朝向处于向下状态的时长;若所述显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,则控制所述可伸缩的显示屏进行收缩。In one embodiment, if the orientation of the display screen is downward, controlling the retractable display screen to shrink may include: if the orientation of the display screen is downward, acquiring the display screen The length of time that the orientation of the display screen is in the downward state; if the length of time the orientation of the display screen is in the downward state is greater than or equal to the preset duration threshold, the retractable display screen is controlled to shrink.
在一种实施方式中,获取的参数可以包括所述电子设备的显示屏的朝向信息;In an embodiment, the acquired parameters may include orientation information of the display screen of the electronic device;
那么,所述根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩,可以包括:若所述显示屏的朝向为向上,则获取所述电子设备的剩余电量;若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩。Then, the controlling the retractable display screen to expand and contract according to the obtained parameter may include: if the orientation of the display screen is upward, obtaining the remaining power of the electronic device; if the electronic If the remaining power of the device is less than the preset first power threshold, the retractable display screen is controlled to shrink.
在一种实施方式中,若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩,可以包括:若所述电子设备的剩余电量小于预设第一电量阈值,则获取所述电子设备的使用场景信息;若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩,其中,所述第一类使用场景为预设的适于使用小尺寸屏幕的使用场景。In one embodiment, if the remaining power of the electronic device is less than the preset first power threshold, controlling the retractable display screen to shrink may include: if the remaining power of the electronic device is less than the preset first power threshold. If the electronic device is in the first type of use scene, control the retractable display screen to shrink, wherein the first type of use scene is a pre- It is suitable for use scenarios with small-size screens.
在一种实施方式中,若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩,可以包括:若所述电子设备处于第一类使用场景,则获取所述电子设备是否在充电的信息;若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩。In an embodiment, if the electronic device is in the first type of use scene, controlling the retractable display screen to shrink may include: if the electronic device is in the first type of use scene, acquiring the Information about whether the electronic device is being charged; if the electronic device is not being charged, the retractable display screen is controlled to shrink.
在一种实施方式中,若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩,可以包括:若所述电子设备未在充电,则控制所述可伸缩的显示屏进行部分收缩。In one embodiment, if the electronic device is not being charged, controlling the retractable display screen to shrink may include: if the electronic device is not being charged, controlling the retractable display screen to perform Partially shrink.
在一种实施方式中,在控制所述可伸缩的显示屏进行部分收缩之后,所述方法还可以包括:若检测到所述电子设备在进行充电,则控制所述可伸缩的显示屏进行伸展。In one embodiment, after controlling the retractable display screen to partially contract, the method may further include: if it is detected that the electronic device is being charged, controlling the retractable display screen to extend .
在一种实施方式中,所述方法还可以包括:若检测到所述电子设备的剩余电量小于预设第二电量阈值,则控制所述可伸缩的显示屏进行完全收缩,其中,所述预设第二电量阈值小于所述预设第一电量阈值。In an embodiment, the method may further include: if it is detected that the remaining power of the electronic device is less than a preset second power threshold, controlling the retractable display screen to fully contract, wherein the preset The second power threshold is set to be less than the preset first power threshold.
在一种实施方式中,所述方法还可以包括:若所述电子设备处于第二类使用场景,则获取所述电子设备是否在充电的信息,其中,所述第二类使用场景为预设的适于使用大尺寸屏幕的使用场景;若所述电子设备未在充电,则提示是否对所述可伸缩的显示屏进行收缩;获取反馈信息,所述反馈信息为对是否对所述可伸缩的显示屏进行收缩的信息的反馈;根据所述反馈信息,对所述可伸缩的显示屏进行伸缩控制。In one embodiment, the method may further include: if the electronic device is in a second type of use scene, acquiring information about whether the electronic device is charging, wherein the second type of use scene is a preset Use scenarios suitable for using large-size screens; if the electronic device is not charging, it prompts whether to shrink the retractable display screen; obtain feedback information, the feedback information is whether the retractable The display screen performs the feedback of contraction information; according to the feedback information, the expansion and contraction control of the retractable display screen is performed.
请参阅图6,图6是本申请实施例提供的设备控制方法的第一种流程示意图。该设备控制方法可以应用于电子设备,该电子设备可以包括可伸缩的显示屏。该设备控制方法的流程可以包括:Please refer to FIG. 6, which is a schematic flowchart of the first method of device control according to an embodiment of the present application. The device control method can be applied to an electronic device, and the electronic device can include a retractable display screen. The process of the device control method may include:
101、获取用于表示电子设备所处状态的参数。101. Obtain a parameter used to indicate the state of the electronic device.
随着技术的不断发展,电子设备的形态也在发生变化。从小屏幕发展到大屏幕,从单纯的用于显示图像和文字的显示屏发展到可以接收用户触摸操作的触摸显示屏,等等。随着技术的发展,用户对电子设备的智能化要求越来越高。然而,相关技术中,电子设备的智能化程度仍然不高。With the continuous development of technology, the form of electronic equipment is also changing. From a small screen to a large screen, from a simple display screen used to display images and text to a touch display screen that can receive user touch operations, and so on. With the development of technology, users have higher and higher requirements for the intelligence of electronic devices. However, in related technologies, the degree of intelligence of electronic devices is still not high.
需要说明的是,在本申请实施例中,电子设备可以具有可伸缩的显示屏。其中,可伸缩的显示屏可以是一种可以进行伸缩的显示屏(The Retractable Display Panel)。可伸缩的显示屏可以是柔性显示屏,柔性显示屏可以弯曲、卷曲、折叠等。在配置有可伸缩的显示屏的电子设备上,可以通过拉伸可伸缩的显示屏来提升屏幕的可见尺寸,还可以通过收缩可伸缩的显示屏来减少屏幕的可见尺寸。例如,图1至图5中的柔性显示屏30即为可伸缩的显示屏。It should be noted that in the embodiments of the present application, the electronic device may have a retractable display screen. Among them, the retractable display screen may be a retractable display panel (The Retractable Display Panel). The retractable display screen can be a flexible display screen, and the flexible display screen can be bent, rolled, folded, and so on. On an electronic device equipped with a retractable display screen, the visible size of the screen can be increased by stretching the retractable display screen, and the visible size of the screen can also be reduced by shrinking the retractable display screen. For example, the flexible display screen 30 in FIGS. 1 to 5 is a retractable display screen.
在本申请实施例中,比如,电子设备可以先获取用于表示电子设备当前所处状态的参数。In the embodiment of the present application, for example, the electronic device may first obtain the parameters used to indicate the current state of the electronic device.
需要说明的是,电子设备获取的用于表示电子设备所处状态的参数可以是一种或多种。这些参数例如可以是用于表示电子设备的电量状态的参数、用于表示电子设备的显示屏的朝向状态的参数、用于表示电子设备使用场景的参数、用于表示电子设备的存储容量状态的参数、用于表示电子设备的运动状态的参数,等等。It should be noted that the parameters used by the electronic device to indicate the state of the electronic device may be one or more. These parameters may be, for example, parameters used to indicate the power state of the electronic device, parameters used to indicate the orientation state of the display screen of the electronic device, parameters used to indicate the usage scenario of the electronic device, and parameters used to indicate the storage capacity state of the electronic device. Parameters, parameters used to represent the motion state of electronic devices, and so on.
102、根据获取到的参数,控制可伸缩的显示屏进行伸缩。102. Control the retractable display screen to expand and contract according to the acquired parameters.
比如,在获取到用于表示电子设备当前所处状态的参数后,电子设备可以根据这些参数来控制可伸缩的显示屏进行伸展或收缩,从而提高显示屏的可见尺寸或缩小显示屏的可见尺寸。For example, after acquiring the parameters used to indicate the current state of the electronic device, the electronic device can control the retractable display screen to expand or contract according to these parameters, thereby increasing the visible size of the display screen or reducing the visible size of the display screen. .
可以理解的是,本申请实施例中,电子设备可以根据用于表示该电子设备所处状态的参数来自动地控制可伸缩的显示屏进行伸展或收缩,而无需用户手动对可伸缩的显示屏进行伸展或收缩,因此本申请可以提高电子设备的智能化程度。It is understandable that, in the embodiments of the present application, the electronic device can automatically control the retractable display screen to expand or contract according to the parameters used to indicate the state of the electronic device, without the user having to manually adjust the retractable display screen. Stretching or contracting, so the application can improve the degree of intelligence of the electronic device.
请参阅图7,图7是本申请实施例提供的设备控制方法的第二种流程示意图。该设备控制方法可以应用于电子设备,该电子设备可以包括可伸缩的显示屏。该设备控制方法的流程可以包括:Please refer to FIG. 7, which is a schematic diagram of a second flow of the device control method provided by an embodiment of the present application. The device control method can be applied to an electronic device, and the electronic device can include a retractable display screen. The process of the device control method may include:
201、根据需要获取用于表示电子设备所处状态的一种或多种参数,该参数至少包括该电子设备的显示屏的朝向信息、剩余电量、使用场景信息、是否在充电的信息,该显示屏的朝向信息至少包括显示屏朝向为向上或向下。201. Obtain one or more parameters indicating the state of the electronic device as needed. The parameters include at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is charging. The orientation information of the screen includes at least whether the orientation of the display screen is upward or downward.
比如,电子设备可以先根据需要获取用于该电子设备当前所处状态的一种或多种参数,该参数至少可以包括该电子设备的显示屏的朝向信息、剩余电量、使用场景信息、是否在充电的信息,等等。For example, the electronic device may first obtain one or more parameters for the current state of the electronic device as required, and the parameters may include at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and whether it is in Charging information, etc.
其中,显示屏的朝向信息至少可以包括显示屏的朝向为向上或显示屏的朝向为向下。例如,以电子设备的显示屏为正面,以电子设备的后壳为反面。那么,显示屏的朝向为向上可以是指电子设备正面朝上。显示屏的朝向为向下可以是指电子设备的反面朝上。Wherein, the orientation information of the display screen may at least include that the orientation of the display screen is upward or the orientation of the display screen is downward. For example, the display screen of the electronic device is the front side, and the rear case of the electronic device is the back side. Then, that the orientation of the display screen is upward may mean that the electronic device faces upward. The downward orientation of the display screen may mean that the reverse side of the electronic device faces upward.
需要说明的是,本申请实施例中,电子设备是根据需要获取用于表示该电子设备所处状态的一种或多种参数。也就是说,如果根据获取到的某个或某几个参数已经足以判断出如何对可伸缩的显示屏进行伸缩操作,那么电子设备不需要进一步获取其它参数。如果根据获取到的某个或某几个参数仍然不足以判断出如何对可伸缩的显示屏进行伸缩操作,那么电子设备可以进一步获取其它参数,从而根据已获取到的所有参数来对可伸缩的显示屏进行伸缩操作。It should be noted that, in the embodiment of the present application, the electronic device acquires one or more parameters used to indicate the state of the electronic device as needed. That is to say, if one or several parameters obtained are sufficient to determine how to perform a retractable operation on the retractable display screen, then the electronic device does not need to obtain other parameters. If the obtained one or several parameters are still not enough to determine how to perform a retractable operation on the retractable display, then the electronic device can further obtain other parameters, so as to adjust the retractable display based on all the obtained parameters. The display screen performs telescopic operation.
例如,电子设备可以获取显示屏的朝向信息,如果根据显示屏的朝向信息已经能够判 断出如何对可伸缩的显示屏进行伸缩操作,那么电子设备可以不用获取其它的参数。如果根据显示屏的朝向信息仍然无法判断出如何对可伸缩的显示屏进行伸缩操作,那么电子设备可以进一步获取其它的参数,例如电子设备可以再获取剩余电量信息,再根据显示屏的朝向信息和剩余电量信息来判断如何对可伸缩的显示屏进行伸缩操作,等等。For example, the electronic device can obtain the orientation information of the display screen. If it has been able to determine how to perform the telescopic operation on the retractable display screen based on the orientation information of the display screen, the electronic device may not need to obtain other parameters. If it is still not possible to determine how to extend and retract the retractable display screen based on the orientation information of the display screen, the electronic device can further obtain other parameters. The remaining battery information is used to determine how to extend and retract the retractable display screen, and so on.
在一种实施方式中,电子设备可以预先设定获取参数的顺序。例如,可以预先设定先获取显示屏的朝向信息,如果根据显示屏的朝向信息无法判断出如何对可伸缩的显示屏进行伸缩操作。那么,电子设备再获取剩余电量信息。如果根据显示屏和朝向信息和剩余电量信息仍然还是无法判断出如何对可伸缩的显示屏进行伸缩操作。那么,电子设备可以再获取使用场景信息,等等。如此一来,电子设备就可以根据需要获取所需的参数了。In an embodiment, the electronic device may preset the order of acquiring the parameters. For example, it can be preset to obtain the orientation information of the display screen first, if it is impossible to determine how to perform a telescopic operation on the retractable display screen according to the orientation information of the display screen. Then, the electronic device obtains the remaining power information. If you still can’t figure out how to extend and retract the retractable display screen based on the display screen, orientation information, and remaining battery information. Then, the electronic device can obtain usage scene information, and so on. In this way, the electronic device can obtain the required parameters as required.
202、根据获取到的参数,控制可伸缩的显示屏进行伸缩。202. Control the retractable display screen to expand and contract according to the acquired parameters.
比如,在根据需要获取到用于表示电子设备所处状态的一个或多个参数后,电子设备可以控制可伸缩的显示屏进行伸缩。For example, after obtaining one or more parameters used to indicate the state of the electronic device as needed, the electronic device can control the retractable display screen to expand and contract.
可以理解的是,在本申请实施例中,电子设备可以根据需要获取用于表示该电子设备所处状态的一个或多个参数来自动地控制可伸缩的显示屏进行伸展或收缩,而无需用户手动对可伸缩的显示屏进行伸展或收缩,因此本申请可以提高电子设备的智能化程度。It is understandable that, in the embodiments of the present application, the electronic device can obtain one or more parameters used to indicate the state of the electronic device as needed to automatically control the retractable display screen to expand or contract without the user The retractable display screen is manually expanded or contracted, so the present application can improve the degree of intelligence of the electronic device.
请参阅图8,图8是本申请实施例提供的设备控制方法的第三种流程示意图。该设备控制方法可以应用于电子设备,该电子设备可以包括可伸缩的显示屏。该设备控制方法的流程可以包括:Please refer to FIG. 8. FIG. 8 is a schematic flowchart of a third method of a device control method provided by an embodiment of the present application. The device control method can be applied to an electronic device, and the electronic device can include a retractable display screen. The process of the device control method may include:
301、获取电子设备的显示屏的朝向信息。301. Obtain orientation information of a display screen of an electronic device.
比如,电子设备可以先获取显示屏的朝向信息。其中,显示屏的朝向信息至少可以包括显示屏的朝向为向上或显示屏的朝向为向下。例如,以电子设备的显示屏为正面,以电子设备的后壳为反面。那么,显示屏的朝向为向上可以是指电子设备正面朝上。显示屏的朝向为向下可以是指电子设备的反面朝上。For example, the electronic device may first obtain the orientation information of the display screen. Wherein, the orientation information of the display screen may at least include that the orientation of the display screen is upward or the orientation of the display screen is downward. For example, the display screen of the electronic device is the front side, and the rear case of the electronic device is the back side. Then, that the orientation of the display screen is upward may mean that the electronic device faces upward. The downward orientation of the display screen may mean that the reverse side of the electronic device faces upward.
在一种实施方式中,电子设备可以通过传感器来获取显示屏的朝向信息。例如,电子设备可以通过加速度传感器的输出数据来获取显示屏的朝向信息。加速度传感器又叫G-sensor,其输出数据为x、y、z三轴的加速度数值,该数值包含地心引力的影响。将电子设备的正面(显示屏)朝上平放在桌面上时,加速度传感器的x轴输出为0,y轴输出0,z轴输出为9.81。将电子设备的反面(后壳)朝上平放在桌面上时,加速度传感器的x轴输出为0,y轴输出0,z轴为-9.81。因此,电子设备可以通过加速度传感器的输出数据来确定电子设备的显示屏一面是朝上的还是朝下的。In an embodiment, the electronic device may obtain the orientation information of the display screen through a sensor. For example, the electronic device can obtain the orientation information of the display screen through the output data of the acceleration sensor. The acceleration sensor is also called G-sensor, and its output data is the acceleration value of the x, y, and z axes, which includes the influence of gravity. When the front side (display screen) of the electronic device is placed on the desktop, the x-axis output of the acceleration sensor is 0, the y-axis output is 0, and the z-axis output is 9.81. When the back side (rear case) of the electronic device is placed flat on the desktop, the x-axis output of the acceleration sensor is 0, the y-axis output is 0, and the z-axis is -9.81. Therefore, the electronic device can determine whether the display screen of the electronic device faces up or down through the output data of the acceleration sensor.
当然,在其它实施方式中,电子设备还可以使用其它传感器或者其它方式来确定电子设备的显示屏一面是朝上的还是朝下的,本申请实施例对此不做具体限定,只有能够确定出电子设备的显示屏一面是朝上的还是朝下的即可。Of course, in other embodiments, the electronic device may also use other sensors or other methods to determine whether the display screen of the electronic device is facing up or down. It does not matter whether the display screen of the electronic device faces up or down.
如果显示屏的朝向为向下,那么进入302的流程中。If the orientation of the display screen is downward, then enter the flow of 302.
如果显示屏的朝向为向上,那么进入303的流程中。If the orientation of the display screen is upward, then enter the process of 303.
302、若显示屏的朝向为向下,则控制可伸缩的显示屏进行收缩。302. If the orientation of the display screen is downward, control the retractable display screen to shrink.
比如,电子设备获取到显示屏的朝向为向下的信息,那么该电子设备可以控制可伸缩的显示屏进行收缩。For example, if the electronic device obtains the information that the display screen is facing downward, the electronic device can control the retractable display screen to shrink.
可以理解的是,当电子设备的显示屏的朝向为向下时,可以认为用户暂时不会使用到该电子设备的显示屏,因此该电子设备可以将可伸缩的显示屏收缩起来。It is understandable that when the display screen of the electronic device is oriented downward, it can be considered that the user will not use the display screen of the electronic device temporarily, so the electronic device can shrink the retractable display screen.
可以理解的是,当电子设备的显示屏的朝向为向下时,将可伸缩的显示屏收缩起来,可以通过减小显示屏的显示区域来节省电量和功耗。It is understandable that when the display screen of the electronic device is oriented downward, shrinking the retractable display screen can save power and power consumption by reducing the display area of the display screen.
在一种实施方式中,302中的若显示屏的朝向为向下则控制可伸缩的显示屏进行收缩 的流程,可以包括:In one embodiment, if the orientation of the display screen in 302 is downward, the process of controlling the retractable display screen to shrink may include:
若显示屏的朝向为向下,则获取该显示屏的朝向处于向下状态的时长。If the orientation of the display screen is downward, the length of time that the orientation of the display screen is in the downward state is acquired.
若显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,则控制可伸缩的显示屏进行收缩。If the duration of the downward orientation of the display screen is greater than or equal to the preset duration threshold, the retractable display screen is controlled to shrink.
比如,电子设备获取到显示屏的朝向信息后确定出显示屏的朝向为向下。那么,电子设备可以获取显示屏的朝向处于向下状态的时长,并检测显示屏的朝向处于向下状态的时长是否大于或等于预设时长阈值。For example, after obtaining the orientation information of the display screen, the electronic device determines that the orientation of the display screen is downward. Then, the electronic device can obtain the time period during which the orientation of the display screen is in the downward state, and detect whether the time period during which the orientation of the display screen is in the downward state is greater than or equal to the preset duration threshold.
如果检测到显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,那么可以认为电子设备的显示屏已经较长时间处于朝向向下的状态。由于电子设备的显示屏的朝向处于向下状态时,可以认为用户不需要观看显示屏显示的内容或者用户不需要使用电子设备。因此,当检测到电子设备的显示屏已经较长时间处于朝向向下的状态时,可以认为用户已经较长使用未观看显示屏显示的内容或者用户已经较长时间未使用电子设备了。在这种情况下,电子设备可以控制可伸缩的显示屏收缩。例如,电子设备可以控制可伸缩的显示屏进行完全收缩。可伸缩的显示屏进行完全收缩的状态可以如图1所示。If it is detected that the time period during which the orientation of the display screen is in the downward state is greater than or equal to the preset duration threshold, it can be considered that the display screen of the electronic device has been in the downward state for a long time. Since the orientation of the display screen of the electronic device is in the downward state, it can be considered that the user does not need to watch the content displayed on the display screen or the user does not need to use the electronic device. Therefore, when it is detected that the display screen of the electronic device has been facing downward for a long time, it can be considered that the user has used the content displayed on the display screen for a long time or the user has not used the electronic device for a long time. In this case, the electronic device can control the retractable display screen to shrink. For example, the electronic device can control the retractable display screen to fully retract. The fully retracted state of the retractable display screen can be shown in Figure 1.
在另一种实施方式中,如果检测到显示屏的朝向处于向下状态的时长小于预设时长阈值,那么可以认为电子设备的显示屏只是暂时处于朝向向下的状态,用户之后还是有可能需要观看显示屏显示的内容或者需要使用到电子设备的显示屏的。因此,在这种情况下,电子设备可以保持可伸缩的显示屏的状态不变,即电子设备可以不对可伸缩的显示屏进行伸缩。In another embodiment, if it is detected that the display screen is facing downward for a period of time less than the preset duration threshold, it can be considered that the display screen of the electronic device is only temporarily facing downwards, and the user may still need Watch the content displayed on the display screen or need to use the display screen of an electronic device. Therefore, in this case, the electronic device can keep the state of the retractable display screen unchanged, that is, the electronic device may not stretch the retractable display screen.
可以理解的是,通过上述当检测到显示屏的朝向处于向下状态的时长大于或等于预设时长阈值时才控制可伸缩的显示屏进行收缩方式,可以提高电子设备进行显示屏伸缩的灵活性和多样性。It is understandable that by controlling the retractable display screen to shrink when it is detected that the orientation of the display screen is in the downward state for a duration greater than or equal to the preset duration threshold, the flexibility of the electronic device for display expansion and contraction can be improved. And diversity.
303、若显示屏的朝向为向上,则获取电子设备的剩余电量。303. If the orientation of the display screen is upward, obtain the remaining power of the electronic device.
比如,电子设备获取到显示屏的朝向为向上的信息,那么该电子设备可以进一步获取其当前的剩余电量,并检测剩余电量是否小于预设第一电量阈值。For example, if the electronic device obtains the information that the display screen is facing upward, the electronic device may further obtain its current remaining power, and detect whether the remaining power is less than the preset first power threshold.
如果检测到剩余电量小于预设第一电量阈值,那么进入304的流程中。If it is detected that the remaining power is less than the preset first power threshold, then the process of 304 is entered.
如果检测到剩余电量大于或等于预设第一电量阈值,那么可以认为电子设备当前的剩余电量还较为充足。因此,电子设备当前可以不对可伸缩的显示屏进行伸缩控制,即电子设备可以保持可伸缩的显示屏的当前状态不变。If it is detected that the remaining power is greater than or equal to the preset first power threshold, it can be considered that the current remaining power of the electronic device is still relatively sufficient. Therefore, the electronic device currently does not need to perform expansion control on the retractable display screen, that is, the electronic device can maintain the current state of the retractable display screen unchanged.
304、若电子设备的剩余电量小于预设第一电量阈值,则获取该电子设备的使用场景信息。304. If the remaining power of the electronic device is less than the preset first power threshold, obtain usage scenario information of the electronic device.
比如,如果检测到剩余电量小于预设第一电量阈值,那么可以认为电子设备的剩余电量较低或不足。在这种情况下,电子设备可以控制可伸缩的显示屏进行收缩。For example, if it is detected that the remaining power is less than the preset first power threshold, it can be considered that the remaining power of the electronic device is low or insufficient. In this case, the electronic device can control the retractable display screen to shrink.
而在本申请实施例中,为了更智能、更精细化地对可伸缩的显示屏进行伸缩控制,如果检测到剩余电量小于预设第一电量阈值,那么可以认为电子设备的剩余电量较低或不足。即,此时电子设备的显示屏的朝向为向上并且剩余电量较低,那么电子设备可以进一步获取其当前的使用场景信息,并检测当前的使用场景是否为第一类使用场景或第二类使用场景。其中,第一类使用场景可以为预先设定的适合使用小尺寸屏幕的使用场景,例如听音乐的场景等。而第二类使用场景可以为预先设定的适合使用大尺寸屏幕的使用场景,例如玩游戏的场景和观看视频的场景等。In the embodiment of the present application, in order to perform telescopic control of the retractable display screen smarter and more refined, if it is detected that the remaining power is less than the preset first power threshold, then it can be considered that the remaining power of the electronic device is low or insufficient. That is, at this time, the orientation of the display screen of the electronic device is upwards and the remaining power is low, the electronic device can further obtain its current usage scene information, and detect whether the current usage scene is the first type of usage scene or the second type of usage. Scenes. Among them, the first type of use scene may be a preset use scene suitable for using a small-sized screen, such as a scene of listening to music. The second type of use scene may be a preset use scene suitable for using a large-size screen, such as a game playing scene and a video watching scene.
若检测到当前的使用场景为第一类使用场景,那么进入305的流程中。If it is detected that the current use scene is the first type of use scene, then enter the flow of 305.
若检测到当前的使用场景为第二类使用场景,那么进入306的流程中。If it is detected that the current use scene is the second type of use scene, then enter the flow of 306.
305、若电子设备处于第一类使用场景,则控制可伸缩的显示屏进行收缩,其中,该 第一类使用场景为预设的适于使用小尺寸屏幕的使用场景。305. If the electronic device is in the first type of use scene, control the retractable display screen to shrink, where the first type of use scene is a preset use scene suitable for using a small-sized screen.
比如,电子设备检测到当前的使用场景为第一类使用场景,即电子设备当前的状态为显示屏的朝向为向上、剩余电量较低并且为适合使用小尺寸屏幕的使用场景,那么该电子设备可以控制可伸缩的显示屏进行收缩,例如进行完全收缩或部分收缩,从而节省电子设备的电量和功耗。For example, if the electronic device detects that the current use scenario is the first type of use scenario, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is a use scenario suitable for using a small screen. The retractable display screen can be controlled to contract, for example, to be fully contracted or partially contracted, thereby saving the power and power consumption of the electronic device.
在一种实施方式中,上述305中的若电子设备处于第一类使用场景,则控制可伸缩的显示屏进行收缩的流程,可以包括:In one embodiment, if the electronic device in the above 305 is in the first type of use scenario, the process of controlling the retractable display screen to shrink may include:
若电子设备处于第一类使用场景,则获取该电子设备是否在充电的信息;If the electronic device is in the first type of use scenario, obtain information about whether the electronic device is charging;
若电子设备未在充电,则控制可伸缩的显示屏进行收缩。If the electronic device is not being charged, the retractable display screen is controlled to shrink.
比如,在确定出电子设备当前的状态为显示屏的朝向为向上、剩余电量较低并且为适合使用小尺寸屏幕的使用场景,那么该电子设备可以进一步获取其是否在充电的信息。For example, when it is determined that the current state of the electronic device is that the display screen is facing upwards, the remaining power is low, and is suitable for use with a small-size screen, the electronic device can further obtain information about whether it is charging.
如果检测到电子设备未在充电,那么可以认为电子设备无法得到电量补充,即电子设备当前的状态为显示屏的朝向为向上、剩余电量较低并且为适合使用小尺寸屏幕的使用场景并且电子设备无法得到电量补充,在这种情况下,该电子设备可以控制可伸缩的显示屏进行收缩,从而通过减小显示屏的显示区域来节省电子设备的电量和功耗。If it is detected that the electronic device is not charging, it can be considered that the electronic device cannot be recharged, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is suitable for the use of small-size screens and the electronic device Electricity cannot be replenished. In this case, the electronic device can control the retractable display screen to shrink, thereby saving the electric power and power consumption of the electronic device by reducing the display area of the display screen.
在一种实施方式中,在确定出电子设备当前的状态为显示屏的朝向为向上、剩余电量小于预设第一电量阈值、并且当前为适合使用小尺寸屏幕的使用场景、并且电子设备无法得到电量补充的情况下,该电子设备可以控制可伸缩的显示屏进行部分的收缩而非完全收缩。比如,电子设备可以控制可伸缩的显示屏收缩至最大可伸展长度的四分之三。例如,电子设备的显示屏的最大可伸展长度为8厘米,那么电子设备可以控制可伸缩的显示屏收缩至伸展长度为6厘米(即收缩起来的长度为2厘米)的状态,等等。In one embodiment, it is determined that the current state of the electronic device is that the orientation of the display screen is upward, the remaining power is less than the preset first power threshold, and it is currently a use scenario suitable for using a small-size screen, and the electronic device is not available. In the case of power replenishment, the electronic device can control the retractable display screen to perform partial contraction instead of complete contraction. For example, the electronic device can control the retractable display screen to shrink to three-quarters of the maximum stretchable length. For example, if the maximum stretchable length of the display screen of the electronic device is 8 cm, then the electronic device can control the stretchable display screen to shrink to a state where the stretched length is 6 cm (that is, the retracted length is 2 cm), and so on.
在一种实施方式中,在控制可伸缩的显示屏进行部分收缩之后,电子设备可以间隔地或者循环地检测电子设备是否在充电。如果检测到电子设备在充电,那么电子设备可以控制可伸缩的显示屏进行伸展,例如进行完全伸展。例如,电子设备可以控制可伸缩的显示屏由6厘米伸展至8厘米。In one embodiment, after controlling the retractable display screen to partially contract, the electronic device may detect whether the electronic device is being charged at intervals or cyclically. If it is detected that the electronic device is charging, the electronic device can control the retractable display screen to extend, for example, to fully extend. For example, the electronic device can control the retractable display screen to stretch from 6 cm to 8 cm.
在一种实施方式中,如果检测到电子设备当前的状态为显示屏的朝向为向上、剩余电量较低并且为适合使用小尺寸屏幕的使用场景,但是电子设备在充电,即电子设备可以得到电量补充,在这种情况下,该电子设备可以保持可伸缩的显示屏的状态不变而不进行伸缩控制。In one embodiment, if it is detected that the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is suitable for use with a small screen, but the electronic device is charging, that is, the electronic device can get power. In addition, in this case, the electronic device can keep the state of the retractable display screen unchanged without performing expansion control.
在一种实施方式中,在确定出电子设备当前的状态为显示屏的朝向为向上、剩余电量小于预设第一电量阈值、并且当前为适合使用小尺寸屏幕的使用场景、并且电子设备无法得到电量补充的情况下,该电子设备可以控制可伸缩的显示屏进行部分的收缩,比如电子设备可以控制可伸缩的显示屏收缩至最大可伸展长度的四分之三。之后,电子设备可以检测剩余电量是否会小于预设第二电量阈值,其中预设第二电量阈值小于预设第一电量阈值。In one embodiment, it is determined that the current state of the electronic device is that the orientation of the display screen is upward, the remaining power is less than the preset first power threshold, and it is currently a use scenario suitable for using a small-size screen, and the electronic device is not available. In the case of power replenishment, the electronic device can control the retractable display screen to partially contract. For example, the electronic device can control the retractable display screen to shrink to three-quarters of the maximum stretchable length. After that, the electronic device can detect whether the remaining power will be less than the preset second power threshold, where the preset second power threshold is less than the preset first power threshold.
如果检测到剩余电量小于预设第二电量阈值,那可以认为电子设备的剩余电量已经很低了,此时电子设备可以控制可伸缩的显示屏进行完全收缩,从而进一步节省功耗。If it is detected that the remaining power is less than the preset second power threshold, it can be considered that the remaining power of the electronic device is already very low. At this time, the electronic device can control the retractable display screen to fully contract, thereby further saving power consumption.
如果检测到剩余电量介于预设第一电量阈值和预设第二电量阈值之间,那么电子设备可以间隔地或循环地检测是否在充电。如果检测到在充电,那么电子设备可以控制可伸缩的显示屏完全伸展开来。如果检测到未在充电,那么电子设别可以保持可伸缩的显示屏的状态不变,等等。If it is detected that the remaining power is between the preset first power threshold and the preset second power threshold, the electronic device may detect whether it is being charged at intervals or cyclically. If charging is detected, the electronic device can control the retractable display to fully extend. If it is detected that it is not charging, the electronic device can keep the state of the retractable display screen unchanged, and so on.
306、若电子设备处于第二类使用场景,则获取该电子设备是否在充电的信息,其中,该第二类使用场景为预设的适于使用大尺寸屏幕的使用场景。306. If the electronic device is in a second type of use scene, obtain information about whether the electronic device is charging, where the second type of use scene is a preset use scene suitable for using a large-size screen.
307、若电子设备未在充电,则提示是否对可伸缩的显示屏进行收缩。307. If the electronic device is not being charged, it is prompted whether to shrink the retractable display screen.
308、获取反馈信息,该反馈信息为对是否对可伸缩的显示屏进行收缩的信息的反馈。308. Obtain feedback information, where the feedback information is feedback on whether to shrink the retractable display screen.
309、根据反馈信息,对可伸缩的显示屏进行伸缩控制。309. Perform telescopic control on the telescopic display screen according to the feedback information.
比如,306、307、308和309可以包括:For example, 306, 307, 308, and 309 may include:
比如,电子设备检测到当前的使用场景为第二类使用场景,即电子设备当前的状态为显示屏的朝向为向上、剩余电量较低并且为适合使用大尺寸屏幕的使用场景(如玩游戏或看视频的场景),那么该电子设备可以获取当前是否在充电的信息。For example, the electronic device detects that the current use scenario is the second type of use scenario, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is a use scenario suitable for using a large screen (such as playing games or Watch the video scene), then the electronic device can obtain information about whether it is currently charging.
如果电子设备当前在充电,那么可以认为电子设备的剩余电量虽然较低,但是当前能够得到电量补充,因此电子设备当前可以不对可伸缩的显示屏进行伸缩控制,即电子设备可以保持可伸缩的显示屏的当前状态不变。或者,由于电子设备当前能够得到电量补充,因此如果电子设备当前的显示屏未最大程度伸展,那么电子设备也可以进行最大程度的伸展,即可伸缩的显示屏可以进行完全伸展。其中,可伸缩的显示屏进行完全伸展时的状态可以如图2所示。If the electronic device is currently charging, it can be considered that although the remaining power of the electronic device is low, it can currently be replenished. Therefore, the electronic device does not need to control the retractable display screen at present, that is, the electronic device can maintain the retractable display The current state of the screen remains unchanged. Alternatively, since the electronic device can currently be recharged, if the current display screen of the electronic device is not extended to the maximum extent, the electronic device can also be extended to the maximum extent, that is, the retractable display screen can be fully extended. Among them, the state of the retractable display screen when it is fully extended can be as shown in FIG. 2.
如果电子设备未在充电,即电子设备当前的状态为显示屏的朝向为向上、剩余电量较低并且为适合使用大尺寸屏幕的使用场景并且电子设备当前无法得到电量补充,那么考虑到当前为适合使用大尺寸屏幕的使用场景,因此电子设备生成一则提示信息,该提示信息可以用于询问用户是否需要对可伸缩的显示屏进行收缩。If the electronic device is not charging, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is suitable for use with a large-size screen, and the electronic device is currently unable to receive power replenishment, then consider that it is currently suitable The use scenario of using a large-size screen, so the electronic device generates a prompt message, which can be used to ask the user whether the retractable display screen needs to be retracted.
之后,电子设备可以获取用户对上述提示信息的反馈信息,并根据该反馈信息对可伸缩的显示屏进行伸缩控制。例如,用户选择对可伸缩的显示屏进行收缩,那么电子设备可以根据用户的选择对可伸缩的显示屏进行收缩,从而节省电量和功耗。如果用户选择不对可伸缩的显示屏进行收缩,那么电子设备可以保持可伸缩的显示屏的当前状态不变。After that, the electronic device can obtain the user's feedback information on the above-mentioned prompt information, and control the retractable display screen according to the feedback information. For example, if the user chooses to shrink the retractable display screen, the electronic device can shrink the retractable display screen according to the user's selection, thereby saving power and power consumption. If the user chooses not to shrink the retractable display screen, the electronic device can keep the current state of the retractable display screen unchanged.
本实施例通过上述生成提示信息和根据接收到的用户的反馈信息的方式来对可伸缩的显示屏进行伸缩控制的方式,一方面可以提高电子设备对显示屏进行伸缩控制的灵活性,另一方面还可以提高用户体验。In this embodiment, through the above-mentioned method of generating prompt information and according to the received feedback information of the user, the retractable display is controlled, on the one hand, it can improve the flexibility of the electronic device to control the retractable display on the other hand. Aspects can also improve user experience.
可以理解的是,本申请实施例中,电子设备可以根据需要获取一个或多个用于表示电子设备的状态的参数,如显示屏的朝向信息、剩余电量信息、使用场景信息、是否在充电的信息等参数,并根据这些参数来自动控制可伸缩的显示屏进行伸缩,从而可以提高电子设备的智能化程度,实现电子设备对可伸缩的显示屏进行精细化的伸缩控制,并且在一定的场景下通过对可伸缩的显示屏的收缩操作可以减小显示屏的显示区域,从而达到节省电量和功耗的效果。It is understandable that, in the embodiments of the present application, the electronic device can obtain one or more parameters that indicate the state of the electronic device as needed, such as the orientation information of the display screen, the remaining power information, the usage scenario information, and whether it is charging or not. Information and other parameters, and automatically control the retractable display screen to expand and contract according to these parameters, so as to improve the intelligence of electronic equipment, and realize the electronic equipment to perform fine expansion control of the retractable display screen, and in certain scenes By shrinking the retractable display screen, the display area of the display screen can be reduced, thereby achieving the effect of saving power and power consumption.
请参阅图9至图12,图9至图12为本申请实施例提供的设备控制方法的场景示意图。Please refer to FIG. 9 to FIG. 12. FIG. 9 to FIG. 12 are schematic diagrams of scenes of the device control method provided by the embodiments of this application.
比如,本实施例提供的电子设备包括可伸缩的触摸显示屏。该可伸缩的触摸显示屏可以是一种可以伸缩的触摸显示屏。该可伸缩的触摸显示屏可以是柔性显示屏,柔性显示屏可以弯曲、卷曲、折叠等。在配置有可伸缩的触摸显示屏的该电子设备上,可以通过拉伸屏幕来提升屏幕的可见尺寸,还可以通过收缩屏幕来减少屏幕的可见尺寸。例如,如图1-2所示,图1中示出了可伸缩的触摸显示屏处于完全收缩状态时的电子设备的屏幕的形态,图2则示出了可伸缩的触摸显示屏处于完全伸展状态时的电子设备的屏幕的形态。For example, the electronic device provided in this embodiment includes a retractable touch display screen. The retractable touch display screen may be a retractable touch display screen. The retractable touch display screen can be a flexible display screen, and the flexible display screen can be bent, rolled, folded, and the like. On the electronic device equipped with a retractable touch display screen, the visible size of the screen can be increased by stretching the screen, and the visible size of the screen can also be reduced by shrinking the screen. For example, as shown in Figure 1-2, Figure 1 shows the form of the screen of the electronic device when the retractable touch screen is in a fully retracted state, and Figure 2 shows the retractable touch screen in a fully extended state. The form of the screen of the electronic device in the state.
在本申请实施例中,比如,电子设备可以先通过加速度传感器的输出数据来确定其显示屏的朝向信息,其中,显示屏的朝向信息至少可以包括显示屏的朝向为向上或显示屏的朝向为向下。例如,以电子设备的显示屏为正面,以电子设备的后壳为反面。那么,显示屏的朝向为向上可以是指电子设备正面朝上。显示屏的朝向为向下可以是指电子设备的反面朝上。In the embodiment of the present application, for example, the electronic device may first determine the orientation information of its display screen through the output data of the acceleration sensor, where the orientation information of the display screen may at least include that the orientation of the display screen is upward or the orientation of the display screen is down. For example, the display screen of the electronic device is the front side, and the rear case of the electronic device is the back side. Then, that the orientation of the display screen is upward may mean that the electronic device faces upward. The downward orientation of the display screen may mean that the reverse side of the electronic device faces upward.
例如,在可伸缩的显示屏完全伸展开来的情况下,用户将电子设备的后壳朝上平放在桌面上,即电子设备确定出其显示屏的朝向为向下。在这种情况下,电子设备可以获取显 示屏的朝向处于向下状态的时长,并检测显示屏的朝向处于向下状态的时长是否大于或等于预设时长阈值。For example, when the retractable display screen is fully extended, the user places the back shell of the electronic device on the desktop with the rear shell facing upward, that is, the electronic device determines that the direction of the display screen is downward. In this case, the electronic device can obtain the duration of the downward orientation of the display screen, and detect whether the duration of the downward orientation of the display screen is greater than or equal to the preset duration threshold.
例如,电子设备检测到显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,那么可以认为电子设备的显示屏已经较长时间处于朝向向下的状态。在这种情况下可以认为用户已经较长使用未观看显示屏显示的内容或者用户已经较长时间未使用电子设备了。因此,电子设备可以控制可伸缩的显示屏进行完全收缩。For example, if the electronic device detects that the display screen is facing downward for a period of time greater than or equal to the preset duration threshold, it can be considered that the display screen of the electronic device has been facing downwards for a long time. In this case, it can be considered that the user has used the content displayed on the display screen for a long time or the user has not used the electronic device for a long time. Therefore, the electronic device can control the retractable display screen to fully retract.
如果电子设备检测到显示屏的朝向处于向下状态的时长小于预设时长阈值,那么电子设备可以先不对可伸缩的显示屏进行伸缩控制。If the electronic device detects that the time period during which the orientation of the display screen is in the downward state is less than the preset duration threshold, the electronic device may not perform expansion control on the retractable display screen first.
又如,在可伸缩的显示屏完全伸展开来的情况下,用户将电子设备的显示屏朝上平放在桌面上,即电子设备确定出其显示屏的朝向为向上。在这种情况下,电子设备可以进一步获取剩余电量的信息并检测剩余电量是否小于预设第一电量阈值。For another example, when the retractable display screen is fully extended, the user places the display screen of the electronic device facing up on the desktop, that is, the electronic device determines that the direction of the display screen is upward. In this case, the electronic device may further obtain the information of the remaining power and detect whether the remaining power is less than the preset first power threshold.
例如,电子设备检测到剩余电量小于预设第一电量阈值,那么可以认为电子设备的剩余电量较低或不足。此时电子设备可以进一步获取其当前的使用场景信息,并检测当前的使用场景是否为第一类使用场景或第二类使用场景。其中,第一类使用场景可以为预先设定的适合使用小尺寸屏幕的使用场景,例如听音乐的场景等。而第二类使用场景可以为预先设定的适合使用大尺寸屏幕的使用场景,例如玩游戏的场景和观看视频的场景等。For example, if the electronic device detects that the remaining power is less than the preset first power threshold, it can be considered that the remaining power of the electronic device is low or insufficient. At this time, the electronic device can further obtain its current usage scene information, and detect whether the current usage scene is the first type of usage scene or the second type of usage scene. Among them, the first type of use scene may be a preset use scene suitable for using a small-sized screen, such as a scene of listening to music. The second type of use scene may be a preset use scene suitable for using a large-size screen, such as a game playing scene and a video watching scene.
比如,电子设备检测到当前的使用场景为第一类使用场景,即电子设备当前的状态为显示屏的朝向为向上、剩余电量较低并且为适合使用小尺寸屏幕的使用场景,那么该电子设备可以进一步获取是否在充电的信息。For example, if the electronic device detects that the current use scenario is the first type of use scenario, that is, the current state of the electronic device is that the display is facing upwards, the remaining power is low, and it is a use scenario suitable for using a small screen. You can get further information about whether it is charging.
例如,电子设备获取到当前未进行充电,在这种情况下,电子设备可以控制可伸缩的显示屏进行部分收缩。例如,电子设备可以控制可伸缩的显示屏收缩至最大可伸展长度的四分之三。例如,电子设备的显示屏的最大可伸展长度为8厘米,那么电子设备可以控制可伸缩的显示屏缩回2厘米。For example, the electronic device obtains that it is not currently being charged. In this case, the electronic device may control the retractable display screen to partially contract. For example, the electronic device can control the retractable display screen to shrink to three-quarters of the maximum stretchable length. For example, if the maximum extendable length of the display screen of the electronic device is 8 cm, the electronic device can control the retractable display screen to retract by 2 cm.
例如,电子设备检测到显示屏的朝向为向上、剩余电量小于预设第一电量阈值、当前为适于使用小屏幕的音乐播放场景、并且电子设备没有在充电,那么电子设备可以控制可伸缩的显示屏向左缩回2厘米,电子设备的形态变化可以如图9所示。For example, if the electronic device detects that the orientation of the display screen is upward, the remaining power is less than the preset first power threshold, the current music playing scene is suitable for using a small screen, and the electronic device is not charging, then the electronic device can control the retractable The display screen is retracted to the left by 2 cm, and the shape change of the electronic device can be shown in Figure 9.
在电子设备缩回2厘米的长度之后,电子设备可以每隔预设时间间隔检测一次剩余电量是否小于预设第二电量阈值,其中,该预设第二电量阈值小于预设第一电量阈值。例如,预设第一电量阈值为a,预设第二电量阈值为b,其中a大于b。如果检测到电子设备的剩余电量大于或等于预设第二电量阈值并且小于预设第一电量阈值,例如电子设备的剩余电量位于区间[a,b]之中,那么可以认为电子设备的电量较低但还没有到很低的地步。在这种情况下,电子设备可以检测是否在进行充电。After the electronic device is retracted to a length of 2 cm, the electronic device may detect whether the remaining power is less than the preset second power threshold at a preset time interval, where the preset second power threshold is less than the preset first power threshold. For example, the preset first power threshold is a, and the preset second power threshold is b, where a is greater than b. If it is detected that the remaining power of the electronic device is greater than or equal to the preset second power threshold and less than the preset first power threshold, for example, the remaining power of the electronic device is in the interval [a, b], then the power of the electronic device can be considered to be lower Low but not very low. In this case, the electronic device can detect whether it is charging.
例如,如图10所示,电子设备检测到在进行充电,那么可以认为该电子设备此时能够得到电量补充。那么,该电子设备可以控制可伸缩的显示屏进行完全伸展,例如电子设备控制可伸缩的显示屏向右伸展2厘米,电子设备的显示屏的形态变化可以如图10所示。For example, as shown in FIG. 10, if the electronic device detects that it is charging, it can be considered that the electronic device can be recharged at this time. Then, the electronic device can control the retractable display screen to fully extend. For example, the electronic device controls the retractable display screen to extend 2 cm to the right, and the shape change of the display screen of the electronic device can be as shown in FIG. 10.
如果检测到电子设备未进行充电,那么可以认为该电子设备此时还不能够得到电量补充。那么,该电子设备可以保持可伸缩的显示屏的状态不变,即不对可伸缩的显示屏进行伸缩。当检测到电子设备的剩余电量小于预设第二电量阈值时,可以认为该电子设备的剩余电量已经很低了。在这种情况下,为了节省功耗,电子设备可以控制可伸缩的显示屏进行完全收缩,电子设备的显示屏的形态变化可以如图11所示。If it is detected that the electronic device is not being charged, it can be considered that the electronic device is not yet able to receive power replenishment at this time. Then, the electronic device can keep the state of the retractable display screen unchanged, that is, the retractable display screen is not stretched. When it is detected that the remaining power of the electronic device is less than the preset second power threshold, it can be considered that the remaining power of the electronic device is already very low. In this case, in order to save power consumption, the electronic device can control the retractable display screen to fully contract, and the shape change of the display screen of the electronic device can be as shown in FIG. 11.
再如,在确定出电子设备的显示屏的朝向为向上、剩余电量小于预设第一电量阈值的情况下,电子设备检测到其当前的使用场景为播放视频的场景,而播放视频的场景属于第二类使用场景,此时电子设备可以获取是否在充电的信息。For another example, when it is determined that the orientation of the display screen of the electronic device is upward and the remaining power is less than the preset first power threshold, the electronic device detects that its current use scene is a scene for playing a video, and the scene for playing a video belongs to The second type of use scenario, at this time, the electronic device can obtain information about whether it is charging.
例如,电子设备检测到当前未进行充电,那么可以认为电子设备当前剩余电量较低,但是当前是适合于使用大尺寸屏幕进行显示的使用场景,而且电子设备暂时无法得到电量补充,此时电子设备可以生成一则提示信息,该提示信息可以用于提示用户是否对可伸缩的显示屏进行收缩,如图12所示。For example, if the electronic device detects that it is not currently being charged, it can be considered that the current remaining power of the electronic device is low, but it is currently suitable for use with a large-size screen for display, and the electronic device cannot be recharged temporarily. At this time, the electronic device A prompt message can be generated, and the prompt message can be used to prompt the user whether to shrink the retractable display screen, as shown in FIG. 12.
例如,在接收到上述提示信息后,用户向电子设备输入了对可伸缩的显示屏进行收缩的信息,那么该电子设备可以对可伸缩的显示屏进行收缩。例如,电子设备可以对可伸缩的显示屏进行完全收缩,或者电子设备可以对可伸缩的显示屏进行一定程度的收缩而不进行完全收缩,等等。For example, after receiving the above-mentioned prompt information, the user inputs information to shrink the retractable display screen into the electronic device, then the electronic device can shrink the retractable display screen. For example, the electronic device may fully shrink the retractable display screen, or the electronic device may shrink the retractable display screen to a certain extent without fully shrinking, and so on.
请参阅图13,图13为本申请实施例提供的设备控制装置的结构示意图。该设备控制装置可以应用于电子设备,所述电子设备包括可伸缩的显示屏。设备控制装置400可以包括:获取模块401,控制模块402。Please refer to FIG. 13, which is a schematic structural diagram of a device control apparatus provided by an embodiment of the application. The device control device can be applied to an electronic device that includes a retractable display screen. The device control apparatus 400 may include: an acquisition module 401 and a control module 402.
获取模块401,用于获取用于表示所述电子设备所处状态的参数。The obtaining module 401 is configured to obtain parameters used to indicate the state of the electronic device.
控制模块402,用于根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。The control module 402 is configured to control the retractable display screen to expand and contract according to the acquired parameters.
在一种实施方式中,所述获取模块401用于:根据需要获取用于表示所述电子设备所处状态的一种或多种参数,所述参数至少包括所述电子设备的显示屏的朝向信息、剩余电量、使用场景信息、是否在充电的信息,所述显示屏的朝向信息至少包括所述显示屏朝向为向上或向下。In one embodiment, the acquiring module 401 is configured to acquire one or more parameters used to indicate the state of the electronic device as required, and the parameters include at least the orientation of the display screen of the electronic device Information, remaining power, usage scenario information, and information about whether it is charging or not, and the orientation information of the display screen at least includes whether the orientation of the display screen is upward or downward.
在一种实施方式中,获取的参数包括所述电子设备的显示屏的朝向信息。In an embodiment, the acquired parameters include orientation information of the display screen of the electronic device.
那么,所述控制模块402用于:若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩。Then, the control module 402 is configured to: if the orientation of the display screen is downward, control the retractable display screen to shrink.
在一种实施方式中,所述控制模块402可以用于:若所述显示屏的朝向为向下,则获取所述显示屏的朝向处于向下状态的时长;若所述显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,则控制所述可伸缩的显示屏进行收缩。In one embodiment, the control module 402 may be used to: if the orientation of the display screen is downward, obtain the length of time that the orientation of the display screen is in the downward state; if the orientation of the display screen is in the downward state; When the duration of the downward state is greater than or equal to the preset duration threshold, the retractable display screen is controlled to shrink.
在一种实施方式中,获取的参数包括所述电子设备的显示屏的朝向信息。In an embodiment, the acquired parameters include orientation information of the display screen of the electronic device.
那么,所述控制模块402可以用于:若所述显示屏的朝向为向上,则获取所述电子设备的剩余电量;若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩。Then, the control module 402 can be used to: if the orientation of the display screen is upwards, obtain the remaining power of the electronic device; if the remaining power of the electronic device is less than a preset first power threshold, control all The retractable display screen is retracted.
在一种实施方式中,所述控制模块402可以用于:若所述电子设备的剩余电量小于预设第一电量阈值,则获取所述电子设备的使用场景信息;若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩,其中,所述第一类使用场景为预设的适于使用小尺寸屏幕的使用场景。In an implementation manner, the control module 402 may be configured to: if the remaining power of the electronic device is less than the preset first power threshold, obtain the usage scenario information of the electronic device; if the electronic device is in the first For one type of use scene, the retractable display screen is controlled to shrink, wherein the first type of use scene is a preset use scene suitable for using a small-sized screen.
在一种实施方式中,所述控制模块402可以用于:若所述电子设备处于第一类使用场景,则获取所述电子设备是否在充电的信息;若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩。In one embodiment, the control module 402 may be used to: if the electronic device is in the first type of use scenario, obtain information about whether the electronic device is charging; if the electronic device is not charging, then The retractable display screen is controlled to shrink.
在一种实施方式中,所述控制模块402可以用于:若所述电子设备未在充电,则控制所述可伸缩的显示屏进行部分收缩。In one embodiment, the control module 402 may be used to control the retractable display screen to partially contract if the electronic device is not being charged.
在一种实施方式中,所述控制模块402还可以用于:若检测到所述电子设备在进行充电,则控制所述可伸缩的显示屏进行伸展。In one embodiment, the control module 402 may also be used to control the retractable display screen to extend if it is detected that the electronic device is being charged.
在一种实施方式中,所述控制模块402还可以用于:若检测到所述电子设备的剩余电量小于预设第二电量阈值,则控制所述可伸缩的显示屏进行完全收缩,其中,所述预设第二电量阈值小于所述预设第一电量阈值。In one embodiment, the control module 402 may be further configured to: if it is detected that the remaining power of the electronic device is less than a preset second power threshold, control the retractable display screen to fully contract, wherein, The preset second power threshold is less than the preset first power threshold.
在一种实施方式中,所述控制模块402还可以用于:若所述电子设备处于第二类使用场景,则获取所述电子设备是否在充电的信息,其中,所述第二类使用场景为预设的适于 使用大尺寸屏幕的使用场景;若所述电子设备未在充电,则提示是否对所述可伸缩的显示屏进行收缩;获取反馈信息,所述反馈信息为对是否对所述可伸缩的显示屏进行收缩的信息的反馈;根据所述反馈信息,对所述可伸缩的显示屏进行伸缩控制。In an implementation manner, the control module 402 may be further configured to: if the electronic device is in a second type of use scenario, obtain information about whether the electronic device is charging, wherein the second type of use scenario It is a preset usage scenario suitable for using a large-size screen; if the electronic device is not charging, it prompts whether to shrink the retractable display screen; obtain feedback information, the feedback information is whether the The retractable display screen performs feedback on the information of contraction; and the retractable control is performed on the retractable display screen according to the feedback information.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的设备控制方法中的流程。The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer is caused to execute the process in the device control method provided in this embodiment.
本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的设备控制方法中的流程。An embodiment of the present application further provides an electronic device, including a memory and a processor, and the processor is configured to execute a process in the device control method provided in this embodiment by calling a computer program stored in the memory.
例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图14,图14为本申请实施例提供的电子设备的结构示意图。For example, the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG. 14, which is a schematic structural diagram of an electronic device provided by an embodiment of the application.
该电子设备500可以包括触摸显示屏501、存储器502、处理器503等部件。本领域技术人员可以理解,图14中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device 500 may include a touch display screen 501, a memory 502, a processor 503 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
触摸显示屏501可以为可伸缩的触摸显示屏。可伸缩的触摸显示屏可以是一种可以伸缩的触摸显示屏。可伸缩的触摸显示屏可以是柔性显示屏,柔性显示屏可以弯曲、卷曲、折叠等。在配置有可伸缩的触摸显示屏的电子设备上,可以通过拉伸屏幕来提升屏幕的可见尺寸,还可以通过收缩屏幕来减少屏幕的可见尺寸。The touch display screen 501 may be a retractable touch display screen. The retractable touch display screen may be a retractable touch display screen. The retractable touch screen can be a flexible screen, and the flexible screen can be bent, rolled, folded, and so on. On an electronic device equipped with a retractable touch display screen, the visible size of the screen can be increased by stretching the screen, and the visible size of the screen can also be reduced by shrinking the screen.
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器503通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。The memory 502 can be used to store application programs and data. The application program stored in the memory 502 contains executable code. Application programs can be composed of various functional modules. The processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
处理器503是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 503 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502 The various functions and processing data of the electronic equipment can be used to monitor the electronic equipment as a whole.
在本实施例中,电子设备中的处理器503会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器502中,并由处理器503来运行存储在存储器502中的应用程序,从而执行:In this embodiment, the processor 503 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 will run and store the executable code in the memory. The application in 502 to execute:
获取用于表示所述电子设备所处状态的参数;Acquiring a parameter used to indicate the state of the electronic device;
根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。According to the acquired parameters, the retractable display screen is controlled to expand and contract.
请参阅图15,电子设备500可以包括触摸显示屏501、存储器502、处理器503、电池504、麦克风505、扬声器506等部件。Referring to FIG. 15, the electronic device 500 may include components such as a touch display screen 501, a memory 502, a processor 503, a battery 504, a microphone 505, and a speaker 506.
触摸显示屏501可以为可卷曲的触摸显示屏。可卷曲的触摸显示屏可以是一种可以伸缩的触摸显示屏。可卷曲的触摸显示屏可以是柔性显示屏,柔性显示屏可以弯曲、卷曲、折叠等。在配置有可卷曲的触摸显示屏的电子设备上,可以通过拉伸屏幕来提升屏幕的可见尺寸,还可以通过缩卷屏幕来减少屏幕的可见尺寸。The touch display 501 may be a rollable touch display. The rollable touch screen may be a retractable touch screen. The rollable touch display screen may be a flexible display screen, and the flexible display screen may be bent, rolled, folded, etc. On electronic devices equipped with a rollable touch display screen, the visible size of the screen can be increased by stretching the screen, and the visible size of the screen can also be reduced by shrinking the screen.
存储器502可用于存储应用程序和数据。存储器502存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器503通过运行存储在存储器502的应用程序,从而执行各种功能应用以及数据处理。The memory 502 can be used to store application programs and data. The application program stored in the memory 502 contains executable code. Application programs can be composed of various functional modules. The processor 503 executes various functional applications and data processing by running application programs stored in the memory 502.
处理器503是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器502内的应用程序,以及调用存储在存储器502内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 503 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 502 and calling the data stored in the memory 502 The various functions and processing data of the electronic equipment can be used to monitor the electronic equipment as a whole.
电池504可用于为电子设备的各个模块和部件供应电力。The battery 504 can be used to supply power to various modules and components of the electronic device.
麦克风505可用于拾取周围环境中的声音信号,例如接收用户发出的语音指令等。The microphone 505 can be used to pick up sound signals in the surrounding environment, for example, to receive voice instructions issued by the user.
扬声器506可以用于播放声音信号。The speaker 506 can be used to play sound signals.
在本实施例中,电子设备中的处理器503会按照如下的指令,将一个或一个以上的应 用程序的进程对应的可执行代码加载到存储器502中,并由处理器503来运行存储在存储器502中的应用程序,从而执行:In this embodiment, the processor 503 in the electronic device will load the executable code corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 503 will run and store the executable code in the memory. The application in 502, thereby executing:
获取用于表示所述电子设备所处状态的参数;Acquiring a parameter used to indicate the state of the electronic device;
根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。According to the acquired parameters, the retractable display screen is controlled to expand and contract.
在一种实施方式中,处理器503执行所述获取用于表示所述电子设备所处状态的参数时,可以执行:根据需要获取用于表示所述电子设备所处状态的一种或多种参数,所述参数至少包括所述电子设备的显示屏的朝向信息、剩余电量、使用场景信息、是否在充电的信息,所述显示屏的朝向信息至少包括所述显示屏朝向为向上或向下。In an implementation manner, when the processor 503 executes the obtaining of the parameters used to indicate the state of the electronic device, it may execute: obtain one or more of the parameters used to indicate the state of the electronic device as required Parameters, the parameters include at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is charging or not, and the orientation information of the display screen includes at least whether the display screen is facing up or down .
在一种实施方式中,获取的参数包括所述电子设备的显示屏的朝向信息。In an embodiment, the acquired parameters include orientation information of the display screen of the electronic device.
那么,处理器503执行所述根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩时,可以执行:若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩。Then, when the processor 503 executes the control of the retractable display screen to expand and contract according to the acquired parameters, it may execute: if the orientation of the display screen is downward, control the retractable display The screen shrinks.
在一种实施方式中,处理器503执行若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩时,可以执行:若所述显示屏的朝向为向下,则获取所述显示屏的朝向处于向下状态的时长;若所述显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,则控制所述可伸缩的显示屏进行收缩。In one embodiment, when the processor 503 executes that if the orientation of the display screen is downward, when controlling the retractable display screen to shrink, it may execute: if the orientation of the display screen is downward, then Obtain the duration of the downward orientation of the display screen; if the duration of the downward orientation of the display screen is greater than or equal to a preset duration threshold, control the retractable display screen to shrink.
在一种实施方式中,获取的参数包括所述电子设备的显示屏的朝向信息。In an embodiment, the acquired parameters include orientation information of the display screen of the electronic device.
那么,处理器503执行所述根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩时,可以执行:若所述显示屏的朝向为向上,则获取所述电子设备的剩余电量;若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩。Then, when the processor 503 executes the control of the retractable display screen to expand and contract according to the acquired parameters, it may execute: if the orientation of the display screen is upward, obtain the remaining power of the electronic device If the remaining power of the electronic device is less than the preset first power threshold, the retractable display screen is controlled to shrink.
在一种实施方式中,处理器503执行若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩时,可以执行:若所述电子设备的剩余电量小于预设第一电量阈值,则获取所述电子设备的使用场景信息;若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩,其中,所述第一类使用场景为预设的适于使用小尺寸屏幕的使用场景。In one embodiment, the processor 503 executes that if the remaining power of the electronic device is less than the preset first power threshold, when the retractable display screen is controlled to shrink, it may execute: if the remaining power of the electronic device is If the power level is less than the preset first power level threshold, the use scenario information of the electronic device is acquired; if the electronic device is in the first type of use scenario, the retractable display screen is controlled to shrink, wherein the first The class usage scenarios are preset usage scenarios suitable for using small-size screens.
在一种实施方式中,处理器503执行若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩时,可以执行:若所述电子设备处于第一类使用场景,则获取所述电子设备是否在充电的信息;若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩。In one embodiment, the processor 503 executes that if the electronic device is in the first type of use scene, when the retractable display screen is controlled to shrink, it may execute: if the electronic device is in the first type of use scene , The information about whether the electronic device is being charged is acquired; if the electronic device is not being charged, the retractable display screen is controlled to shrink.
在一种实施方式中,处理器503执行若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩时,可以执行:若所述电子设备未在充电,则控制所述可伸缩的显示屏进行部分收缩。In one embodiment, when the processor 503 executes that if the electronic device is not being charged, controlling the retractable display screen to shrink, it may execute: if the electronic device is not being charged, then controlling the The retractable display screen is partially retracted.
在一种实施方式中,在控制所述可伸缩的显示屏进行部分收缩之后,所述处理器503还可以执行:若检测到所述电子设备在进行充电,则控制所述可伸缩的显示屏进行伸展。In one embodiment, after controlling the retractable display screen to partially contract, the processor 503 may further execute: if it is detected that the electronic device is being charged, control the retractable display screen Stretch.
在一种实施方式中,处理器503还可以执行:若检测到所述电子设备的剩余电量小于预设第二电量阈值,则控制所述可伸缩的显示屏进行完全收缩,其中,所述预设第二电量阈值小于所述预设第一电量阈值。In an embodiment, the processor 503 may further execute: if it is detected that the remaining power of the electronic device is less than a preset second power threshold, control the retractable display screen to fully contract, wherein the preset The second power threshold is set to be less than the preset first power threshold.
在一种实施方式中,处理器503还可以执行:若所述电子设备处于第二类使用场景,则获取所述电子设备是否在充电的信息,其中,所述第二类使用场景为预设的适于使用大尺寸屏幕的使用场景;若所述电子设备未在充电,则提示是否对所述可伸缩的显示屏进行收缩;获取反馈信息,所述反馈信息为对是否对所述可伸缩的显示屏进行收缩的信息的反馈;根据所述反馈信息,对所述可伸缩的显示屏进行伸缩控制。In an implementation manner, the processor 503 may also execute: if the electronic device is in a second type of usage scenario, obtain information about whether the electronic device is charging, where the second type of usage scenario is a preset Use scenarios suitable for using large-size screens; if the electronic device is not charging, it prompts whether to shrink the retractable display screen; obtain feedback information, the feedback information is whether the retractable The display screen performs the feedback of contraction information; according to the feedback information, the expansion and contraction control of the retractable display screen is performed.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对设备控制方法的详细描述,此处不再赘述。In the foregoing embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, please refer to the detailed description of the device control method above, which will not be repeated here.
本申请实施例提供的所述设备控制装置与上文实施例中的设备控制方法属于同一构思,在所述设备控制装置上可以运行所述设备控制方法实施例中提供的任一方法,其具体实现过程详见所述设备控制方法实施例,此处不再赘述。The device control device provided in this embodiment of the application belongs to the same concept as the device control method in the above embodiment, and any method provided in the device control method embodiment can be run on the device control device. The details are For details of the implementation process, refer to the device control method embodiment, which will not be repeated here.
需要说明的是,对本申请实施例所述设备控制方法而言,本领域普通技术人员可以理解实现本申请实施例所述设备控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述设备控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that for the device control method described in the embodiment of the present application, a person of ordinary skill in the art can understand that all or part of the process of implementing the device control method described in the embodiment of the present application can be controlled by a computer program. To accomplish this, the computer program may be stored in a computer readable storage medium, such as stored in a memory, and executed by at least one processor. The execution process may include the flow of the embodiment of the device control method. . Wherein, the storage medium may be a magnetic disk, an optical disc, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), etc.
对本申请实施例的所述设备控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the device control device of the embodiment of the present application, its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, etc. .
以上对本申请实施例所提供的一种设备控制方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The device control method, device, storage medium, and electronic device provided by the embodiments of the application are described in detail above. Specific examples are used in this article to explain the principles and implementations of the application. The description of the above embodiments is only It is used to help understand the method and core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation on this application.

Claims (20)

  1. 一种设备控制方法,应用于电子设备,其中,所述电子设备包括可伸缩的显示屏,所述设备控制方法包括:A device control method applied to an electronic device, wherein the electronic device includes a retractable display screen, and the device control method includes:
    获取用于表示所述电子设备所处状态的参数;Acquiring a parameter used to indicate the state of the electronic device;
    根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。According to the acquired parameters, the retractable display screen is controlled to expand and contract.
  2. 根据权利要求1所述的设备控制方法,其中,所述获取用于表示所述电子设备所处状态的参数,包括:The device control method according to claim 1, wherein said acquiring a parameter used to indicate the state of said electronic device comprises:
    根据需要获取用于表示所述电子设备所处状态的一种或多种参数,所述参数至少包括所述电子设备的显示屏的朝向信息、剩余电量、使用场景信息、是否在充电的信息,所述显示屏的朝向信息至少包括所述显示屏朝向为向上或向下。Obtain one or more parameters used to indicate the state of the electronic device as needed, the parameters including at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is being charged, The orientation information of the display screen at least includes whether the orientation of the display screen is upward or downward.
  3. 根据权利要求2所述的设备控制方法,其中,获取的参数包括所述电子设备的显示屏的朝向信息;The device control method according to claim 2, wherein the acquired parameters include orientation information of the display screen of the electronic device;
    所述根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩,包括:The controlling the retractable display screen to expand and contract according to the acquired parameters includes:
    若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩。If the orientation of the display screen is downward, the retractable display screen is controlled to shrink.
  4. 根据权利要求3所述的设备控制方法,其中,若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩,包括:The device control method according to claim 3, wherein if the orientation of the display screen is downward, controlling the retractable display screen to shrink comprises:
    若所述显示屏的朝向为向下,则获取所述显示屏的朝向处于向下状态的时长;If the orientation of the display screen is downward, obtain the length of time that the orientation of the display screen is in the downward state;
    若所述显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,则控制所述可伸缩的显示屏进行收缩。If the time period during which the orientation of the display screen is in the downward state is greater than or equal to the preset duration threshold, the retractable display screen is controlled to shrink.
  5. 根据权利要求2所述的设备控制方法,其中,获取的参数包括所述电子设备的显示屏的朝向信息;The device control method according to claim 2, wherein the acquired parameters include orientation information of the display screen of the electronic device;
    所述根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩,包括:The controlling the retractable display screen to expand and contract according to the acquired parameters includes:
    若所述显示屏的朝向为向上,则获取所述电子设备的剩余电量;If the orientation of the display screen is upward, obtaining the remaining power of the electronic device;
    若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩。If the remaining power of the electronic device is less than the preset first power threshold, controlling the retractable display screen to shrink.
  6. 根据权利要求5所述的设备控制方法,其中,若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩,包括:The device control method according to claim 5, wherein if the remaining power of the electronic device is less than a preset first power threshold, controlling the retractable display screen to shrink comprises:
    若所述电子设备的剩余电量小于预设第一电量阈值,则获取所述电子设备的使用场景信息;If the remaining power of the electronic device is less than the preset first power threshold, acquiring usage scenario information of the electronic device;
    若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩,其中,所述第一类使用场景为预设的适于使用小尺寸屏幕的使用场景。If the electronic device is in the first type of use scene, the retractable display screen is controlled to shrink, where the first type of use scene is a preset use scene suitable for using a small-sized screen.
  7. 根据权利要求6所述的设备控制方法,其中,若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩,包括:The device control method according to claim 6, wherein, if the electronic device is in the first type of use scenario, controlling the retractable display screen to shrink comprises:
    若所述电子设备处于第一类使用场景,则获取所述电子设备是否在充电的信息;If the electronic device is in the first type of use scenario, acquiring information about whether the electronic device is charging;
    若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩。If the electronic device is not being charged, the retractable display screen is controlled to shrink.
  8. 根据权利要求7所述的设备控制方法,其中,若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩,包括:7. The device control method according to claim 7, wherein if the electronic device is not being charged, controlling the retractable display screen to shrink comprises:
    若所述电子设备未在充电,则控制所述可伸缩的显示屏进行部分收缩。If the electronic device is not being charged, the retractable display screen is controlled to be partially contracted.
  9. 根据权利要求8所述的设备控制方法,其中,在控制所述可伸缩的显示屏进行部分收缩之后,所述方法还包括:The device control method according to claim 8, wherein, after controlling the retractable display screen to be partially contracted, the method further comprises:
    若检测到所述电子设备在进行充电,则控制所述可伸缩的显示屏进行伸展。If it is detected that the electronic device is charging, the retractable display screen is controlled to extend.
  10. 根据权利要求8所述的设备控制方法,其中,所述方法还包括:The device control method according to claim 8, wherein the method further comprises:
    若检测到所述电子设备的剩余电量小于预设第二电量阈值,则控制所述可伸缩的显示屏进行完全收缩,其中,所述预设第二电量阈值小于所述预设第一电量阈值。If it is detected that the remaining power of the electronic device is less than the preset second power threshold, the retractable display screen is controlled to be fully contracted, wherein the preset second power threshold is less than the preset first power threshold .
  11. 根据权利要求6所述的设备控制方法,其中,所述方法还包括:The device control method according to claim 6, wherein the method further comprises:
    若所述电子设备处于第二类使用场景,则获取所述电子设备是否在充电的信息,其中,所述第二类使用场景为预设的适于使用大尺寸屏幕的使用场景;If the electronic device is in a second type of use scene, acquiring information about whether the electronic device is charging, where the second type of use scene is a preset use scene suitable for using a large-size screen;
    若所述电子设备未在充电,则提示是否对所述可伸缩的显示屏进行收缩;If the electronic device is not being charged, prompting whether to shrink the retractable display screen;
    获取反馈信息,所述反馈信息为对是否对所述可伸缩的显示屏进行收缩的信息的反馈;Acquiring feedback information, where the feedback information is feedback on whether to shrink the retractable display screen;
    根据所述反馈信息,对所述可伸缩的显示屏进行伸缩控制。According to the feedback information, telescopic control is performed on the telescopic display screen.
  12. 一种设备控制装置,应用于电子设备,其中,所述电子设备包括可伸缩的显示屏,所述设备控制装置包括:An equipment control device applied to electronic equipment, wherein the electronic equipment includes a retractable display screen, and the equipment control device includes:
    获取模块,用于获取用于表示所述电子设备所处状态的参数;An obtaining module, used to obtain parameters used to indicate the state of the electronic device;
    控制模块,用于根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。The control module is configured to control the retractable display screen to expand and contract according to the acquired parameters.
  13. 一种计算机可读的存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上执行时,使得所述计算机执行如权利要求1所述的方法。A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed on a computer, the computer is caused to execute the method according to claim 1.
  14. 一种电子设备,包括存储器,处理器,以及可伸缩的显示屏,其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行:An electronic device includes a memory, a processor, and a scalable display screen, wherein the processor is used to execute: by calling a computer program stored in the memory:
    获取用于表示所述电子设备所处状态的参数;Acquiring a parameter used to indicate the state of the electronic device;
    根据获取到的所述参数,控制所述可伸缩的显示屏进行伸缩。According to the acquired parameters, the retractable display screen is controlled to expand and contract.
  15. 根据权利要求14所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 14, wherein the processor is configured to execute:
    根据需要获取用于表示所述电子设备所处状态的一种或多种参数,所述参数至少包括所述电子设备的显示屏的朝向信息、剩余电量、使用场景信息、是否在充电的信息,所述显示屏的朝向信息至少包括所述显示屏朝向为向上或向下。Obtain one or more parameters used to indicate the state of the electronic device as needed, the parameters including at least the orientation information of the display screen of the electronic device, remaining power, usage scenario information, and information about whether it is being charged, The orientation information of the display screen at least includes whether the orientation of the display screen is upward or downward.
  16. 根据权利要求15所述的电子设备,其中,获取的参数包括所述电子设备的显示屏的朝向信息;The electronic device according to claim 15, wherein the acquired parameters include orientation information of the display screen of the electronic device;
    所述处理器用于执行:若所述显示屏的朝向为向下,则控制所述可伸缩的显示屏进行收缩。The processor is configured to execute: if the orientation of the display screen is downward, control the retractable display screen to shrink.
  17. 根据权利要求16所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 16, wherein the processor is configured to execute:
    若所述显示屏的朝向为向下,则获取所述显示屏的朝向处于向下状态的时长;If the orientation of the display screen is downward, obtain the length of time that the orientation of the display screen is in the downward state;
    若所述显示屏的朝向处于向下状态的时长大于或等于预设时长阈值,则控制所述可伸缩的显示屏进行收缩。If the duration of the downward orientation of the display screen is greater than or equal to the preset duration threshold, the retractable display screen is controlled to shrink.
  18. 根据权利要求15所述的电子设备,其中,获取的参数包括所述电子设备的显示屏的朝向信息;The electronic device according to claim 15, wherein the acquired parameters include orientation information of the display screen of the electronic device;
    所述处理器用于执行:若所述显示屏的朝向为向上,则获取所述电子设备的剩余电量;若所述电子设备的剩余电量小于预设第一电量阈值,则控制所述可伸缩的显示屏进行收缩。The processor is configured to execute: if the orientation of the display screen is upward, obtain the remaining power of the electronic device; if the remaining power of the electronic device is less than a preset first power threshold, control the retractable The display screen shrinks.
  19. 根据权利要求18所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 18, wherein the processor is configured to execute:
    若所述电子设备的剩余电量小于预设第一电量阈值,则获取所述电子设备的使用场景信息;If the remaining power of the electronic device is less than the preset first power threshold, acquiring usage scenario information of the electronic device;
    若所述电子设备处于第一类使用场景,则控制所述可伸缩的显示屏进行收缩,其中,所述第一类使用场景为预设的适于使用小尺寸屏幕的使用场景。If the electronic device is in the first type of use scene, the retractable display screen is controlled to shrink, where the first type of use scene is a preset use scene suitable for using a small-sized screen.
  20. 根据权利要求19所述的电子设备,其中,所述处理器用于执行:The electronic device according to claim 19, wherein the processor is configured to execute:
    若所述电子设备处于第一类使用场景,则获取所述电子设备是否在充电的信息;If the electronic device is in the first type of use scenario, acquiring information about whether the electronic device is charging;
    若所述电子设备未在充电,则控制所述可伸缩的显示屏进行收缩。If the electronic device is not being charged, the retractable display screen is controlled to shrink.
PCT/CN2021/088740 2020-05-27 2021-04-21 Device control method and apparatus, and storage medium and electronic device WO2021238511A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010464050.0 2020-05-27
CN202010464050.0A CN113741852A (en) 2020-05-27 2020-05-27 Device control method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2021238511A1 true WO2021238511A1 (en) 2021-12-02

Family

ID=78723928

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/088740 WO2021238511A1 (en) 2020-05-27 2021-04-21 Device control method and apparatus, and storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN113741852A (en)
WO (1) WO2021238511A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060087503A1 (en) * 2004-10-22 2006-04-27 Orion Electric Co., Ltd. Electronic apparatus with display control function
CN106131300A (en) * 2016-06-13 2016-11-16 百度在线网络技术(北京)有限公司 Terminal equipment control method and device
CN107995971A (en) * 2016-12-29 2018-05-04 深圳市柔宇科技有限公司 intelligent terminal and its control method
CN107995963A (en) * 2016-12-28 2018-05-04 深圳市柔宇科技有限公司 A kind of control method and device of display screen
CN109788092A (en) * 2018-12-29 2019-05-21 Oppo广东移动通信有限公司 Electronic equipment
CN110288914A (en) * 2019-06-28 2019-09-27 京东方科技集团股份有限公司 Scroll display device
CN111459374A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Interaction method and electronic equipment
CN111459333A (en) * 2020-03-31 2020-07-28 维沃移动通信有限公司 Content display method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681437B (en) * 2018-05-04 2022-03-15 Oppo广东移动通信有限公司 Display method and device, storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060087503A1 (en) * 2004-10-22 2006-04-27 Orion Electric Co., Ltd. Electronic apparatus with display control function
CN106131300A (en) * 2016-06-13 2016-11-16 百度在线网络技术(北京)有限公司 Terminal equipment control method and device
CN107995963A (en) * 2016-12-28 2018-05-04 深圳市柔宇科技有限公司 A kind of control method and device of display screen
CN107995971A (en) * 2016-12-29 2018-05-04 深圳市柔宇科技有限公司 intelligent terminal and its control method
CN109788092A (en) * 2018-12-29 2019-05-21 Oppo广东移动通信有限公司 Electronic equipment
CN110288914A (en) * 2019-06-28 2019-09-27 京东方科技集团股份有限公司 Scroll display device
CN111459374A (en) * 2020-03-30 2020-07-28 维沃移动通信有限公司 Interaction method and electronic equipment
CN111459333A (en) * 2020-03-31 2020-07-28 维沃移动通信有限公司 Content display method and electronic equipment

Also Published As

Publication number Publication date
CN113741852A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN110045908B (en) Control method and electronic equipment
CN107967706B (en) Multimedia data processing method and device and computer readable storage medium
KR20210041380A (en) Electronic device of sliding type
CN110569095B (en) Method and electronic equipment for displaying page elements
CN112269555A (en) Display control method, display control device, storage medium and electronic equipment
WO2015116374A1 (en) Buttonless display activation
CN110033503B (en) Animation display method and device, computer equipment and storage medium
CN103631333A (en) Prompt method and electronic equipment
CN108459815A (en) A kind of display control method and mobile terminal
CN105427369A (en) Mobile terminal and method for generating three-dimensional image of mobile terminal
WO2021232968A1 (en) Desktop icon layout method and apparatus, storage medium, and electronic device
WO2021238511A1 (en) Device control method and apparatus, and storage medium and electronic device
CN112023403B (en) Battle process display method and device based on image-text information
CN105513506B (en) Display terminal
CN110377208B (en) Audio playing method, device, terminal and computer readable storage medium
WO2022017045A1 (en) Device control method and apparatus, and storage medium and electronic device
CN113805772B (en) Dynamic response method, electronic equipment and storage medium
CN110891181A (en) Live broadcast picture display method and device, storage medium and terminal
US20160364005A1 (en) Gesture detection using mems wind turbines
CN110868642A (en) Video playing method, device and storage medium
WO2022068592A1 (en) Display method and electronic device
WO2021238493A1 (en) Device control method and apparatus, storage medium, and electronic device
CN108259727A (en) A kind of depth image generation method and mobile terminal
US9898309B2 (en) Wake-up trigger using MEMS wind turbines
CN114388001A (en) Multimedia file playing method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21812863

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21812863

Country of ref document: EP

Kind code of ref document: A1