CN113645329A - Electronic device control method and device, storage medium and electronic device - Google Patents

Electronic device control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113645329A
CN113645329A CN202010393893.6A CN202010393893A CN113645329A CN 113645329 A CN113645329 A CN 113645329A CN 202010393893 A CN202010393893 A CN 202010393893A CN 113645329 A CN113645329 A CN 113645329A
Authority
CN
China
Prior art keywords
electronic device
flexible display
display screen
determining
length
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010393893.6A
Other languages
Chinese (zh)
Inventor
陈彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010393893.6A priority Critical patent/CN113645329A/en
Publication of CN113645329A publication Critical patent/CN113645329A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a control method and device of electronic equipment, a storage medium and the electronic equipment, wherein the embodiment of the application is applied to the electronic equipment comprising a telescopic flexible display screen, the electronic equipment further comprises a motion sensor, and acceleration data of the electronic equipment is acquired through the motion sensor; when the acceleration data meet a preset condition, determining a display size adjustment amount according to the acceleration data; and controlling the flexible display screen to execute telescopic operation along the telescopic direction according to the display size adjustment quantity so as to adjust the area of the display area of the electronic equipment. Based on the scheme, the shaking operation of the user on the electronic equipment is detected through the acceleration data, the flexible display screen is controlled to stretch without setting a mechanical key to control the flexible display screen to stretch, and the product cost is reduced.

Description

Electronic device control method and device, storage medium and electronic device
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a method and an apparatus for controlling an electronic device, a storage medium, and an electronic device.
Background
With the development of electronic equipment technology, display screens of intelligent terminals such as smart phones and tablet computers are developed in a growing way, and because a larger display screen can present richer contents, human-computer interaction is more vivid and efficient, and more excellent user experience is brought; meanwhile, in order to enable the intelligent terminal to be carried more easily, a foldable terminal and a flexible screen terminal are born, and the portability requirement of the intelligent terminal with a large display screen is met to a great extent.
Disclosure of Invention
The embodiment of the application provides a control method and device for electronic equipment, a storage medium and the electronic equipment, and a mechanical key is not required to be arranged to control the flexible display screen to stretch, so that the product cost is reduced.
In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, where the method is applied to an electronic device including a flexible display screen that is retractable, the electronic device further including a motion sensor, and the method includes:
acquiring acceleration data of the electronic equipment through the motion sensor;
when the acceleration data meet a preset condition, determining a display size adjustment amount according to the acceleration data;
and controlling the flexible display screen to execute telescopic operation along the telescopic direction according to the display size adjustment quantity so as to adjust the area of the display area of the electronic equipment.
In a second aspect, an embodiment of the present application further provides a control apparatus for an electronic device, where the apparatus is applied to an electronic device including a flexible display screen that is retractable, the electronic device further includes a motion sensor, and the apparatus includes:
the information acquisition unit is used for acquiring acceleration data of the electronic equipment through the motion sensor;
the size acquisition unit is used for determining the adjustment amount of the display size according to the acceleration data when the acceleration data meet the preset condition;
and the telescopic control unit is used for controlling the flexible display screen to execute telescopic operation along the telescopic direction according to the display size adjustment quantity so as to adjust the area of the display area of the electronic equipment.
In a third aspect, embodiments of the present application further provide a storage medium having a computer program stored thereon, where the computer program is executed on a computer, so that the computer executes the method for controlling an electronic device according to any of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the control method of the electronic device according to any embodiment of the present application by calling the computer program.
The technical scheme provided by the embodiment of the application is applied to the electronic equipment comprising the telescopic flexible display screen, the electronic equipment further comprises a motion sensor, the acceleration data of the electronic equipment are detected through the motion sensor, when the acceleration data are detected to meet the preset conditions, the display size regulating quantity is determined according to the acceleration data, the flexible display screen is controlled to execute telescopic operation along the telescopic direction, the flexible display screen is made to extend or retract the display size regulating quantity in the telescopic direction, and the area of the display area of the electronic equipment is adjusted. Based on the scheme, the shaking operation of the user on the electronic equipment is detected through the acceleration data, the flexible display screen is controlled to stretch without setting a mechanical key to control the flexible display screen to stretch, and the product cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a perspective exploded schematic view of an electronic device according to an embodiment of the present application.
FIG. 4 is a cross-sectional view of the electronic device of FIG. 1 taken along lines V1-V1.
FIG. 5 is a cross-sectional view of the electronic device of FIG. 2 taken along lines V2-V2.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is a first flowchart illustrating a control method of an electronic device according to an embodiment of the present application.
Fig. 8 is a second flowchart illustrating a control method of an electronic device according to an embodiment of the present application.
Fig. 9 is a schematic view of a first application scenario of an electronic device according to an embodiment of the present application.
Fig. 10 is a schematic view of a second application scenario of an electronic device according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a control device of an electronic device according to an embodiment of the present application.
Fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the control method of the electronic device may be the control device of the electronic device provided in the embodiment of the present application, or the electronic device integrated with the control device of the electronic device, where the control device of the electronic device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
The embodiment of the application provides a control method of electronic equipment, which is applied to the electronic equipment comprising a telescopic flexible display screen, and the electronic equipment further comprises a motion sensor. Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device is provided with a flexible display screen, one end of the flexible display screen is arranged on a scroll, so that part of the flexible display screen can be wound on the scroll, and the scroll can be used for winding the flexible display screen and releasing the flexible display screen, so that the display part of the flexible display screen assembly is expanded. The flexible display screen can be extended or retracted in a direction perpendicular to the scroll. For example, please refer to fig. 2, and fig. 2 is another schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device shown in fig. 2 has a flexible display screen in an extended state. The user can expand the display part of flexible display screen when needs use the large screen and experience in order to improve user's operation, simultaneously, when need not use the large screen, can not expand display part to make the complete machine size less, conveniently carry.
It should be noted that the telescopic direction of the flexible display screen in fig. 1 is only an example, and in other embodiments, the flexible display screen may also be configured to be telescopic along a vertical direction when a user holds the device vertically.
Referring to fig. 1 to fig. 3, an electronic device 100 of the present embodiment includes a housing assembly 10, a flexible display 30, a driver 50, and a driving mechanism 70.
The shell assembly 10 is a hollow structure; the components of the driver 50, the drive mechanism 70, and the camera 60 may all be disposed in the housing assembly 10. It is understood that the electronic device 100 according to the embodiment of the present disclosure includes, but is not limited to, a mobile terminal such as a mobile phone, a tablet computer, or other portable electronic devices, and the electronic device 100 is taken as an example of a mobile phone herein.
In the present 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 are relatively movable. Specifically, in the present embodiment, the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 is slidable relative to the first housing 12.
Specifically, referring to fig. 4 and 5, the first casing 12 and the second casing 14 together form an accommodating space 16. The accommodating space 16 can be used for accommodating components such as the driver 50, the camera 60, the driving mechanism 70 and the like. The housing assembly 10 may further include a rear cover 18, and the rear cover 18 and the first and second housings 12 and 14 together form an accommodating space 16.
The driving element 50 is disposed on the second housing 14, one end of the flexible display 30 is disposed on the first housing 12, the flexible display 30 bypasses the driving element 50, and the other end of the flexible display is disposed in the accommodating space 16, so that a part of the flexible display is hidden in the accommodating space 16, and a part of the flexible display 30 hidden in the accommodating space 16 may not be lighted. When the first housing 12 and the second housing 14 are relatively far away from each other, the driving member 50 can drive the flexible display 30 to unfold, so that more flexible display 30 are exposed out of the accommodating space 16. The portion of the flexible display screen 30 exposed outside the accommodating space 16 is lighted up, so that the display area presented by the electronic device 100 is enlarged.
The driving member 50 may be a rotating shaft structure with teeth 52 on the outside, the flexible display 30 is linked with the driving member 50 by engaging, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driving member 50 drives a portion of the flexible display 30 engaged with the driving member 50 to move and unfold.
It is understood that the driver 50 can also be a circular shaft without the belt 52, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driver 50 can stretch the portion of the flexible display screen 30 wound around the driver 50, so that more flexible display screen is exposed out of the accommodating space 16 and is in a flat state. Specifically, the driving member 50 is rotatably disposed on the second housing 14, and the driving member 50 can rotate along with the movement of the flexible display 30 when the flexible display 30 is gradually opened. In other embodiments, the driver 50 may be fixed to the second housing 14, and the driver 50 may have a smooth surface. When the flexible display 30 is spread, the driver 50 is slidably contacted with the flexible display 30 through its smooth surface.
When the first housing 12 and the second housing 14 are relatively close to each other, the flexible display screen can be retracted by the driving member 50. Alternatively, the electronic device 100 further includes a reset element (not shown), one end of the flexible display screen, which is accommodated in the accommodating space 16, is linked with the reset element, and when the first shell 12 and the second shell 14 are relatively close to each other, the reset element drives the flexible display screen 30 to reset, so that a part of the flexible display screen is retracted into the accommodating space 16.
In this embodiment, the driving mechanism 70 may be disposed in the accommodating space 16, the driving mechanism 70 may be linked with the second housing 14, and the driving mechanism 70 is configured to drive the second housing 14 to move away from the first housing 12, so as to drive the flexible display panel assembly 30 to extend. It will be appreciated that the drive mechanism 70 may be omitted and the user may directly move the first and second housings relative to one another, manually, etc.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic equipment comprises a motion sensor, a driving assembly and a control module, wherein the control module comprises a judgment sub-module and an instruction sub-module. In the operation process of the electronic equipment, the acceleration data of the electronic equipment acquired by the motion sensor is acquired, and when the judgment submodule judges that the user executes swing operation on the electronic equipment according to the acceleration data, the instruction submodule triggers a control instruction which is used for driving the flexible display screen to execute telescopic operation through the driving assembly so as to increase or reduce the area of a display area. Through this scheme, need not to control flexible display screen's flexible through mechanical button, also need not both hands and holds electronic equipment in order to stretch the operation to flexible display screen. Even if the equipment is held by one hand, the flexible display screen can be controlled to stretch out and draw back through swinging operation, so that the operation experience of a user is improved.
Referring to fig. 7, fig. 7 is a first flowchart illustrating a control method of an electronic device according to an embodiment of the present disclosure. The specific flow of the control method of the electronic device provided by the embodiment of the application can be as follows:
in 101, acceleration data of an electronic device is acquired by a motion sensor.
In the embodiment of the application, the motion sensor of the electronic device is an acceleration sensor, and the acceleration sensor can detect acceleration data of the electronic device. The acceleration vector sensed by the acceleration sensor can be generally decomposed into acceleration components in three coordinate directions of x, y and z, wherein the x and y directions are directions parallel to the plane of the display interface, and the z direction is a direction perpendicular to the display interface. Wherein x and y are perpendicular to each other. For example, in one embodiment, the vertical direction of the electronic device when the electronic device is used as the portrait screen is taken as the y direction, and the telescopic direction is taken as the x direction, wherein the extending direction is the + x direction, and the retracting direction is the-x direction.
It should be noted that the motion sensor in the embodiment of the present application is not limited to the acceleration sensor, and may be another sensor capable of detecting acceleration data of the electronic device. For example, in an embodiment, the motion sensor may also be a gravity sensor, and the electronic device obtains the acceleration of the electronic device through the gravity sensor.
When the electronic equipment is in a motion state, the acceleration sensor can continuously acquire the acceleration data of the electronic equipment according to the set data acquisition frequency.
At 102, when the acceleration data satisfies a preset condition, a display size adjustment amount is determined according to the acceleration data.
In an embodiment, the preset condition is that it can be determined that the user performs a swing operation on the electronic device. It is also understood that when it is determined from the acceleration data that the user has performed a flick operation on the electronic device, it is determined that the acceleration data satisfies the preset condition. For example, the preset condition may be that an acceleration component of the electronic device in the telescopic direction is detected to be greater than a preset acceleration threshold. Alternatively, in another embodiment, the preset condition may be that, within a preset time period, it is detected that the acceleration component of the electronic device in the telescopic direction is always greater than a preset acceleration threshold. Alternatively, in a further embodiment, the preset condition may detect that the movement speed of the electronic device in the telescopic direction is always greater than a preset speed threshold within a preset time period.
For another example, in another embodiment, the electronic device may acquire the acceleration data every 20ms, and when the acceleration component of the electronic device in the telescopic direction is determined to be greater than the preset acceleration threshold value through the acquired acceleration data for 3-6 consecutive times, it is determined that the acceleration data satisfies the preset condition.
When the acquired acceleration data satisfies any one of the above conditions, it can be determined that the user has performed a flick operation on the electronic device. Next, a display size adjustment amount may be determined from the acceleration data. For example, when the telescopic direction of the flexible display screen of the electronic device is the above-mentioned x direction, the display size adjustment amount is the width of the flexible display screen in the x direction.
For example, in one embodiment, before determining the display size adjustment amount according to the acceleration data, the method further includes: determining an acceleration component and a motion direction of the electronic equipment in the stretching direction according to the acceleration data; and when the acceleration component is detected to be larger than the preset acceleration threshold value, judging that the acceleration data meets the preset condition. Determining a display size adjustment based on the acceleration data, comprising: the display size adjustment amount is determined according to the movement direction.
In this embodiment, the electronic device obtains the motion direction of the electronic device and the acceleration component in the telescopic direction according to the acceleration data, where the motion direction may represent a swing direction of the user to the electronic device. Whether to perform a retracting operation or a stretching operation for the flexible display screen is determined according to the flicking direction.
For example, when the moving direction is consistent with a first preset direction, determining the target retraction length; and when the movement direction is consistent with a second preset direction, determining the extension length of the target, wherein the first preset direction and the second preset direction are opposite directions. The second preset direction is an x direction, the first preset direction is a reverse direction of the x direction, when the moving direction is consistent with the second preset direction, the obtained acceleration component of the electronic equipment in the stretching direction is a positive number, and on the contrary, when the moving direction is consistent with the first preset direction, the obtained acceleration component of the electronic equipment in the stretching direction is a negative number.
The manner in which the target extension length and the target retraction length are determined may be various.
For example, in one embodiment, the length of the flexible display screen that can be extended and retracted in the telescopic direction is fixed every time the user performs a flick operation. For example, if the direction of the flicking operation by the user is the x direction, and the user performs a flicking operation towards the + x direction on the electronic device once, the flexible display screen extends 1cm towards the + x direction until the flexible display screen extends to the maximum size and cannot extend any more; when the user swings the electronic equipment towards the-x direction once, the flexible display screen retracts 1cm towards the-x direction until the flexible display screen retracts to the minimum size and can not retract any more.
For another example, in another embodiment, determining the target retraction length when the direction of movement coincides with a first preset direction comprises: when the movement direction is consistent with a first preset direction, determining a target retraction length corresponding to the acceleration component according to a mapping relation between a preset acceleration component interval and the retraction length, wherein the acceleration component is in direct proportion to the retraction length; when the moving direction is consistent with a second preset direction, determining the extension length of the target, including: and when the motion direction is consistent with the second preset direction, determining the target stretching length corresponding to the acceleration component according to the mapping relation between the preset acceleration component interval and the stretching length, wherein the acceleration component is in direct proportion to the stretching length.
In this embodiment, a mapping relationship between a preset acceleration component interval and a retraction length or an extension length is set in advance. For example, when the motion direction is consistent with the first preset direction, a preset acceleration component interval to which the acceleration component belongs is determined, and then the stretching length corresponding to the acceleration component interval is determined according to the mapping relationship, and the stretching length is used as the target stretching length.
In 103, the flexible display screen is controlled to perform a telescopic operation in a telescopic direction according to the display size adjustment amount so as to adjust the display area of the electronic device.
After the display size adjustment amount is determined, the telescoping operation is performed according to the display size adjustment amount. For example, if the display size adjustment amount is the target retraction length, the flexible display screen is controlled to perform the retraction operation in the retraction direction according to the target retraction length so as to reduce the display area of the electronic device. And if the display size adjustment amount is the target extension length, controlling the flexible display screen to perform stretching operation along the stretching direction according to the target extension length so as to increase the area of the display area of the electronic equipment.
When the flexible display screen is driven to perform telescopic operation, the scroll can be controlled to rotate at a constant speed, so that the flexible display screen is stretched at a constant speed.
Alternatively, in other embodiments, the stretching speed may also be determined according to the acceleration component; and controlling the flexible display screen to adjust the amount according to the display size, and executing the telescopic operation at the telescopic speed along the telescopic direction.
For example, an average value of acceleration components obtained by continuous multiple calculations may be calculated, a stretching speed corresponding to the average value may be determined according to a mapping relationship between a preset acceleration component and a stretching speed, and the flexible display screen may be controlled to stretch or retract according to the stretching speed.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the control method of the electronic device provided in the embodiment of the application, the acceleration data of the electronic device is detected by the motion sensor, when the acceleration data is detected to meet the preset condition, the display size adjustment amount is determined according to the acceleration data, and the flexible display screen is controlled to perform the telescopic operation along the telescopic direction, so that the flexible display screen extends or retracts in the telescopic direction by the display size adjustment amount, so as to adjust the area of the display area of the electronic device. Based on the scheme, the shaking operation of the user on the electronic equipment is detected through the acceleration data, the flexible display screen is controlled to stretch without setting a mechanical key to control the flexible display screen to stretch, and the product cost is reduced.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
Referring to fig. 8, fig. 8 is a second flowchart of a control method of an electronic device according to an embodiment of the invention. The method comprises the following steps:
in 201, acceleration data of an electronic device is acquired by a motion sensor.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device is provided with a flexible display screen, one end of the flexible display screen is arranged on a scroll, so that part of the flexible display screen can be wound on the scroll, and the scroll can be used for winding the flexible display screen and releasing the flexible display screen, so that the display part of the flexible display screen assembly is expanded. The flexible display screen can be extended or retracted in a direction perpendicular to the scroll.
In the operation process of the electronic equipment, the acceleration sensor can continuously acquire the acceleration data of the electronic equipment according to the set data acquisition frequency.
In 202, an acceleration component and a motion direction of the electronic device in a telescoping direction are determined from the acceleration data.
The acceleration data includes acceleration components of the electronic device in three components of x, y and z at each acquisition time point, and the acceleration component of the electronic device in the stretching direction (such as the x direction) can be determined according to the data.
The moving direction may be a first preset direction or a second preset direction. For example, the second preset direction is an x direction, the first preset direction is a reverse direction of the x direction, when the moving direction is consistent with the second preset direction, the obtained acceleration component of the electronic device in the stretching direction is a positive number, and conversely, when the moving direction is consistent with the first preset direction, the obtained acceleration component of the electronic device in the stretching direction is a negative number. That is, after the acceleration component of the electronic device in the expansion and contraction direction is acquired, the swing direction of the swing operation can be determined according to the positive and negative of the acceleration component. If the acceleration component of the electronic equipment in the stretching direction is a positive number, the movement direction is determined to be the + x direction, and if not, the movement direction is determined to be the-x direction.
In 203, when the acceleration component is detected to be greater than the preset acceleration threshold, a swing operation is determined, and whether the motion direction is consistent with the first preset direction or not is detected.
If the moving direction is consistent with the first predetermined direction, 204 is executed, and if the moving direction is opposite to the first predetermined direction, 206 is executed.
In 204, a target retraction length corresponding to the acceleration component is determined according to a mapping relation between a preset acceleration component interval and the retraction length.
In 205, the flexible display screen is controlled to perform a retraction operation in the retraction direction according to the target retraction length to reduce the display area of the electronic device.
At 206, a target stretch length corresponding to the acceleration component is determined according to a mapping relationship between the preset acceleration component interval and the stretch length.
In 207, the flexible display screen is controlled to perform a stretching operation in the stretching direction according to the target stretching length to increase the display area of the electronic device.
The movement direction may represent a flicking direction of the electronic device by the user, and the electronic device determines whether to perform a retracting operation or a stretching operation on the flexible display screen according to the movement direction.
When the movement direction is opposite to the first preset direction, the user is determined to perform the 'throwing-out' operation, namely the flexible display screen needs to be controlled to be stretched. When the moving direction is consistent with the first preset direction, the user is determined to execute a 'swinging back' operation, namely the flexible display screen needs to be controlled to retract. Therefore, when the moving direction is consistent with the first preset direction, the target retraction length is determined; and when the movement direction is opposite to the first preset direction, determining the target extension length.
For example, the length of the flexible display screen that can be extended and retracted in the extending and retracting direction is fixed every time the user performs a flicking operation. For example, if the direction of the flicking operation by the user is the x direction, and the user performs a flicking operation towards the + x direction on the electronic device once, the flexible display screen extends 1cm towards the + x direction until the flexible display screen extends to the maximum size and cannot extend any more; when the user swings the electronic equipment towards the-x direction once, the flexible display screen retracts 1cm towards the-x direction until the flexible display screen retracts to the minimum size and can not retract any more.
Referring to fig. 9, fig. 9 is a schematic view of a first application scenario of an electronic device according to an embodiment of the present application.
When the electronic device is at position 1, the user holds the electronic device and performs a flick motion in the direction shown in the figure, the flick motion generating an acceleration in the expansion and contraction direction. If the electronic equipment moves from the position 1 to the position 2, the electronic equipment judges that the acceleration component of the electronic equipment in the stretching direction is larger than a preset acceleration threshold value according to the acceleration data collected by the motion sensor, namely, the electronic equipment judges that the electronic equipment is in one shaking operation. At this time, the electronic device determines the shaking direction of the user to the electronic device according to the acceleration data, that is, obtains the movement direction of the electronic device, and judges whether the user "shakes out" or "shakes back" the flexible display screen according to the movement direction. For example, in the scenario shown in fig. 9, the electronic device determines that the movement direction is opposite to the first preset direction according to the acceleration data collected by the motion sensor, and controls the flexible display to perform an extending operation, for example, to the state shown in fig. 3.
Referring to fig. 10, fig. 10 is a schematic view of a second application scenario of an electronic device according to an embodiment of the present application. This scenario describes a retraction operation, with the whip direction being opposite to the whip direction in the scenario shown in fig. 9. The specific principle is similar to the above scenario, and is not repeated here.
As can be seen from the above, in the control method of the electronic device provided in the embodiment of the present invention, the flick operation is detected through the acceleration data detected by the motion sensor, when the acceleration data obtained by the electronic device satisfies a certain condition, a flick operation is determined, the extension length or the retraction length is determined according to the motion direction of the flick operation, the flexible display screen is extended or retracted based on the determined extension length or retraction length, the flexible display screen is controlled along the extension direction, and the stretching operation is performed according to the target extension length, so as to increase the area of the display area of the electronic device.
In one embodiment, a control device of an electronic device is also provided. Referring to fig. 11, fig. 11 is a schematic structural diagram of a control device 300 of an electronic apparatus according to an embodiment of the present disclosure. The control device 300 of the electronic device is applied to the electronic device, and the control device 300 of the electronic device includes an information acquisition unit 301, a size acquisition unit 302, a size determination unit 303, and a telescoping control unit 303, as follows:
an information acquisition unit 301, configured to acquire acceleration data of the electronic device through the motion sensor;
a size obtaining unit 302, configured to determine a display size adjustment amount according to the acceleration data when the acceleration data meets a preset condition;
and a telescopic control unit 303, configured to control the flexible display screen to perform telescopic operation along a telescopic direction according to the display size adjustment amount, so as to adjust a display area of the electronic device.
In some embodiments, the information obtaining unit 301 is further configured to: determining an acceleration component and a motion direction of the electronic equipment in the stretching direction according to the acceleration data; when the acceleration component is detected to be larger than a preset acceleration threshold value, judging that the acceleration data meet a preset condition;
the size obtaining unit 302 is further configured to: and determining the display size adjustment amount according to the movement direction.
In some embodiments, the display size adjustment is a target retracted length or a target extended length; the size obtaining unit 302 is further configured to: when the movement direction is consistent with a first preset direction, determining the target retraction length; when the movement direction is consistent with a second preset direction, determining the extension length of a target, wherein the first preset direction and the second preset direction are opposite;
the telescoping control unit 303 is also configured to: controlling the flexible display screen to perform retraction operation along the retraction direction according to the target retraction length so as to reduce the area of a display area of the electronic equipment; or controlling the flexible display screen to stretch along the stretching direction according to the target stretching length so as to increase the area of the display area of the electronic equipment.
In some embodiments, the size obtaining unit 302 is further configured to: determining a target retraction length corresponding to the acceleration component according to a mapping relation between a preset acceleration component interval and the retraction length, wherein the acceleration component is in direct proportion to the retraction length;
or determining a target stretching length corresponding to the acceleration component according to a mapping relation between a preset acceleration component interval and the stretching length, wherein the acceleration component is in direct proportion to the stretching length.
In some embodiments, the telescoping control unit 303 is further configured to: determining the stretching speed according to the acceleration component; and controlling the flexible display screen to perform telescopic operation at the telescopic speed along the telescopic direction according to the display size adjustment amount.
It should be noted that the control apparatus of the electronic device provided in the embodiment of the present application and the control method of the electronic device in the foregoing embodiments belong to the same concept, and any method provided in the control method embodiment of the electronic device can be implemented by the control apparatus of the electronic device, and a specific implementation process of the method is described in the control method embodiment of the electronic device, and is not described herein again.
As can be seen from the above, in the control apparatus of an electronic device provided in the embodiment of the present application, the control apparatus 300 of the electronic device includes an information obtaining unit 301, a size obtaining unit 302, and a telescopic control unit 303, where the information obtaining unit 301 detects acceleration data of the electronic device through the motion sensor, when the acceleration data is detected to meet a preset condition, the size obtaining unit 302 determines a display size adjustment amount according to the acceleration data, and the telescopic control unit 303 controls the flexible display screen to perform a telescopic operation along the telescopic direction, so that the flexible display screen extends or retracts the display size adjustment amount in the telescopic direction to adjust a display area of the electronic device. Based on the scheme, the shaking operation of the user on the electronic equipment is detected through the acceleration data, the flexible display screen is controlled to stretch without setting a mechanical key to control the flexible display screen to stretch, and the product cost is reduced.
The embodiment of the application also provides the electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. Referring to fig. 12, fig. 12 is a schematic view of another structure of an electronic device according to an embodiment of the present disclosure. The electronic device 400 comprises a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
Memory 402 may be used to store computer programs and data. The memory 402 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 401 executes various functional applications and data processing by calling a computer program stored in the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
acquiring acceleration data of the electronic equipment through the motion sensor;
when the acceleration data meet a preset condition, determining a display size adjustment amount according to the acceleration data;
and controlling the flexible display screen to execute telescopic operation along the telescopic direction according to the display size adjustment quantity so as to adjust the area of the display area of the electronic equipment.
In some embodiments, please refer to fig. 13, and fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 400 further comprises: radio frequency circuitry 403, flexible display 404, control circuitry 405, input unit 406, audio circuitry 407, sensors 408, power source 409, and motion sensor 410. The processor 401 is electrically connected to the radio frequency circuit 403, the flexible display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The flexible display screen 404 may be used to display information input by or provided to a user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the flexible display 404, and is configured to control the flexible display 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone. Wherein the audio circuit 407 comprises a microphone. The microphone is electrically connected to the processor 401. The microphone is used for receiving voice information input by a user.
The sensor 408 is used to collect external environmental information. The sensors 408 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, etc.
The power supply 409 is used to power the various components of the electronic device 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
The motion sensor 410 may be an acceleration sensor that may detect acceleration data of the electronic device. In some embodiments, the motion sensor may also be a gravity sensor or the like capable of detecting acceleration data of the electronic device.
Although not shown in the drawings, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
acquiring acceleration data of the electronic equipment through the motion sensor;
when the acceleration data meet a preset condition, determining a display size adjustment amount according to the acceleration data;
and controlling the flexible display screen to execute telescopic operation along the telescopic direction according to the display size adjustment quantity so as to adjust the area of the display area of the electronic equipment.
In some embodiments, before determining the display size adjustment amount from the acceleration data, processor 401 performs: determining an acceleration component and a motion direction of the electronic equipment in the stretching direction according to the acceleration data; when the acceleration component is detected to be larger than a preset acceleration threshold value, judging that the acceleration data meet a preset condition;
when determining the display size adjustment amount according to the acceleration data and the current display size, the processor 401 executes: and determining the display size adjustment amount according to the movement direction.
In some embodiments, the display size adjustment is a target retracted length or a target extended length; when determining the display size adjustment amount according to the movement direction, the processor 401 executes:
when the movement direction is consistent with a first preset direction, determining the target retraction length;
when the movement direction is consistent with a second preset direction, determining the extension length of a target, wherein the first preset direction and the second preset direction are opposite;
when controlling the flexible display screen to perform the telescopic operation along the telescopic direction according to the display size adjustment amount, the processor 401 performs:
controlling the flexible display screen to perform retraction operation along the retraction direction according to the target retraction length so as to reduce the area of a display area of the electronic equipment;
or controlling the flexible display screen to stretch along the stretching direction according to the target stretching length so as to increase the area of the display area of the electronic equipment.
In some embodiments, in determining the target retraction length, processor 401 performs: determining a target retraction length corresponding to the acceleration component according to a mapping relation between a preset acceleration component interval and the retraction length, wherein the acceleration component is in direct proportion to the retraction length;
in determining the target stretch length, processor 401 performs: and determining a target stretching length corresponding to the acceleration component according to a mapping relation between a preset acceleration component interval and the stretching length, wherein the acceleration component is in direct proportion to the stretching length.
In some embodiments, when controlling the flexible display to perform the scaling operation in the scaling direction according to the display size adjustment amount, the processor 401 performs: determining the stretching speed according to the acceleration component; controlling the flexible display screen to execute telescopic operation at the telescopic speed along the telescopic direction according to the display size adjustment quantity
Therefore, the electronic device comprises the flexible display screen and the motion sensor, the electronic device detects acceleration data of the electronic device through the motion sensor, when the acceleration data is detected to meet a preset condition, the display size adjustment amount is determined according to the acceleration data, the flexible display screen is controlled to perform stretching operation along the stretching direction, and the flexible display screen extends or retracts in the stretching direction to adjust the display area of the electronic device. Based on the scheme, the shaking operation of the user on the electronic equipment is detected through the acceleration data, the flexible display screen is controlled to stretch without setting a mechanical key to control the flexible display screen to stretch, and the product cost is reduced.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the method for controlling an electronic device according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Furthermore, the terms "first", "second", and "third", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The method, the apparatus, the storage medium, and the electronic device for controlling the electronic device provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for controlling an electronic device, wherein the method is applied to an electronic device including a flexible display screen that is retractable, the electronic device further including a motion sensor, the method comprising:
acquiring acceleration data of the electronic equipment through the motion sensor;
when the acceleration data meet a preset condition, determining a display size adjustment amount according to the acceleration data;
and controlling the flexible display screen to execute telescopic operation along the telescopic direction according to the display size adjustment quantity so as to adjust the area of the display area of the electronic equipment.
2. The method of controlling an electronic device according to claim 1, wherein before determining the display size adjustment amount based on the acceleration data, further comprising:
determining an acceleration component and a motion direction of the electronic equipment in the stretching direction according to the acceleration data;
when the acceleration component is detected to be larger than a preset acceleration threshold value, judging that the acceleration data meet a preset condition;
the determining a display size adjustment amount according to the acceleration data includes:
and determining the display size adjustment amount according to the movement direction.
3. The control method of an electronic device according to claim 2, wherein the display size adjustment amount is a target retracted length or a target extended length; the determining a display size adjustment amount according to the movement direction includes:
when the movement direction is consistent with a first preset direction, determining the target retraction length;
when the movement direction is consistent with a second preset direction, determining the extension length of a target, wherein the first preset direction and the second preset direction are opposite;
the flexible display screen is controlled to execute telescopic operation along the telescopic direction according to the display size adjustment quantity, and the method comprises the following steps:
controlling the flexible display screen to perform retraction operation along the retraction direction according to the target retraction length so as to reduce the area of a display area of the electronic equipment;
or controlling the flexible display screen to stretch along the stretching direction according to the target stretching length so as to increase the area of the display area of the electronic equipment.
4. The method of controlling an electronic device of claim 3, wherein the determining a target retraction length comprises:
determining a target retraction length corresponding to the acceleration component according to a mapping relation between a preset acceleration component interval and the retraction length, wherein the acceleration component is in direct proportion to the retraction length;
the determining a target extension length comprises:
and determining a target stretching length corresponding to the acceleration component according to a mapping relation between a preset acceleration component interval and the stretching length, wherein the acceleration component is in direct proportion to the stretching length.
5. The method for controlling an electronic device according to claim 2, wherein the controlling the flexible display to perform a telescopic operation in a telescopic direction according to the display size adjustment amount includes:
determining the stretching speed according to the acceleration component;
and controlling the flexible display screen to perform telescopic operation at the telescopic speed along the telescopic direction according to the display size adjustment amount.
6. A control device of an electronic device, wherein the device is applied to an electronic device comprising a flexible display screen which can be extended and retracted, and the electronic device further comprises a motion sensor, comprising:
the information acquisition unit is used for acquiring acceleration data of the electronic equipment through the motion sensor;
the size acquisition unit is used for determining the adjustment amount of the display size according to the acceleration data when the acceleration data meet the preset condition;
and the telescopic control unit is used for controlling the flexible display screen to execute telescopic operation along the telescopic direction according to the display size adjustment quantity so as to adjust the area of the display area of the electronic equipment.
7. The control apparatus of an electronic device according to claim 6,
the information acquisition unit is further configured to: determining an acceleration component and a motion direction of the electronic equipment in the stretching direction according to the acceleration data;
when the acceleration component is detected to be larger than a preset acceleration threshold value, judging that the acceleration data meet a preset condition;
the size determination unit is further configured to: and determining the display size adjustment amount according to the movement direction.
8. The control device of an electronic apparatus according to claim 7, wherein the display size adjustment amount is a target retracted length or a target extended length; the size acquisition unit is further configured to:
when the movement direction is consistent with a first preset direction, determining the target retraction length;
when the movement direction is consistent with a second preset direction, determining the extension length of a target, wherein the first preset direction and the second preset direction are opposite;
the telescoping control unit is further configured to: controlling the flexible display screen to perform retraction operation along the retraction direction according to the target retraction length so as to reduce the area of a display area of the electronic equipment;
or controlling the flexible display screen to perform stretching operation along the stretching direction according to the target stretching length so as to increase the area of the display area of the electronic equipment.
9. A storage medium having stored thereon a computer program, characterized in that, when the computer program runs on a computer, the computer is caused to execute a control method of an electronic apparatus according to any one of claims 1 to 5.
10. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the electronic device comprises a flexible display and a motion sensor, and wherein the processor is configured to execute the method of controlling the electronic device according to any one of claims 1 to 5 by invoking the computer program.
CN202010393893.6A 2020-05-11 2020-05-11 Electronic device control method and device, storage medium and electronic device Pending CN113645329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010393893.6A CN113645329A (en) 2020-05-11 2020-05-11 Electronic device control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010393893.6A CN113645329A (en) 2020-05-11 2020-05-11 Electronic device control method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113645329A true CN113645329A (en) 2021-11-12

Family

ID=78415483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010393893.6A Pending CN113645329A (en) 2020-05-11 2020-05-11 Electronic device control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113645329A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478581A (en) * 2009-01-09 2009-07-08 深圳华为通信技术有限公司 Display control method for mobile terminal and mobile terminal
JP2010109409A (en) * 2008-10-28 2010-05-13 Panasonic Corp Mobile terminal
US20130229324A1 (en) * 2012-03-05 2013-09-05 Lenovo (Beijing) Co., Ltd. Display method and electronic device
CN108646970A (en) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 Display control method and related product
CN109388193A (en) * 2018-10-18 2019-02-26 维沃移动通信有限公司 A kind of acquisition methods and electronic equipment of flexible display screen spread length
CN110908759A (en) * 2019-11-19 2020-03-24 维沃移动通信有限公司 Display method and electronic equipment
CN210270658U (en) * 2019-05-26 2020-04-07 邓爱红 Terminal with telescopic screen

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010109409A (en) * 2008-10-28 2010-05-13 Panasonic Corp Mobile terminal
CN101478581A (en) * 2009-01-09 2009-07-08 深圳华为通信技术有限公司 Display control method for mobile terminal and mobile terminal
US20130229324A1 (en) * 2012-03-05 2013-09-05 Lenovo (Beijing) Co., Ltd. Display method and electronic device
CN108646970A (en) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 Display control method and related product
CN109388193A (en) * 2018-10-18 2019-02-26 维沃移动通信有限公司 A kind of acquisition methods and electronic equipment of flexible display screen spread length
CN210270658U (en) * 2019-05-26 2020-04-07 邓爱红 Terminal with telescopic screen
CN110908759A (en) * 2019-11-19 2020-03-24 维沃移动通信有限公司 Display method and electronic equipment

Similar Documents

Publication Publication Date Title
JP7317111B2 (en) Background application display method and mobile terminal
CN107846501B (en) Electronic device and operation method thereof
KR101521219B1 (en) Mobile terminal using flexible display and operation method thereof
CN108390964B (en) Camera protection method and mobile terminal
KR101331346B1 (en) Electronic apparatus
KR101522882B1 (en) Controlling a Mobile Terminal with a Flexible Display
KR101525160B1 (en) Controlling a Mobile Terminal with a Flexible Display
KR102241994B1 (en) Method for controlling function using electronic pen and an electronic device thereof
EP2816442A1 (en) Electronic device and method of controlling electronic device using grip sensing
KR20140147557A (en) Mobile terminal and method for detecting a gesture to control functions
CN111459367B (en) Display method and electronic equipment
KR20110136587A (en) Mobile terminal and operation method thereof
CN112269555A (en) Display control method, display control device, storage medium and electronic equipment
US20120092280A1 (en) Electronic device, screen control method, and storage medium storing screen control program
CN113687743A (en) Display control method, display control device, storage medium and electronic equipment
CN111459333A (en) Content display method and electronic equipment
CN109683802A (en) A kind of icon moving method and terminal
KR101597524B1 (en) Mobile terminal capable of controlling operation using a touchless sensor and control method thereof
KR20140143610A (en) Mobile terminal and operation method thereof
CN113687808A (en) Desktop icon layout method and device, storage medium and electronic equipment
KR101720498B1 (en) Mobile terminal and operation control method thereof
KR101669487B1 (en) Mobile terminal and operation control method thereof
CN110266875B (en) Prompt message display method and electronic equipment
KR101855938B1 (en) Mobile terminal and operation control method thereof
JP2022544809A (en) Icon display method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination