CN111400207A - Expansion control method and device for expandable component, storage medium and electronic equipment - Google Patents

Expansion control method and device for expandable component, storage medium and electronic equipment Download PDF

Info

Publication number
CN111400207A
CN111400207A CN202010174079.5A CN202010174079A CN111400207A CN 111400207 A CN111400207 A CN 111400207A CN 202010174079 A CN202010174079 A CN 202010174079A CN 111400207 A CN111400207 A CN 111400207A
Authority
CN
China
Prior art keywords
distance
expansion
expandable
electronic device
path
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.)
Granted
Application number
CN202010174079.5A
Other languages
Chinese (zh)
Other versions
CN111400207B (en
Inventor
陈彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202310885672.4A priority Critical patent/CN116860667A/en
Priority to CN202010174079.5A priority patent/CN111400207B/en
Publication of CN111400207A publication Critical patent/CN111400207A/en
Priority to PCT/CN2021/073053 priority patent/WO2021179802A1/en
Application granted granted Critical
Publication of CN111400207B publication Critical patent/CN111400207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses an expansion control method and device of an expandable component, a storage medium and electronic equipment, wherein the method comprises the following steps: receiving an expansion instruction, acquiring an expansion distance of an expandable component along a reference expansion path, acquiring a shielding distance between the expandable component and a shielding object on the reference expansion path, and performing expansion control on the expandable component based on the expansion distance and the shielding distance. By adopting the embodiment of the application, the collision between the expandable part of the electronic equipment and the shielding object can be avoided, and further the damage to the electronic equipment caused by the collision can be avoided.

Description

Expansion control method and device for expandable component, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an expansion control method and apparatus for an expandable component, a storage medium, and an electronic device.
Background
With the continuous progress of science and technology, various electronic devices such as mobile phones and tablets are more and more popular, and great convenience is brought to the life of people. In order to bring better experience to the user, the electronic device is usually further provided with an expandable component, for example, the electronic device may adopt an expandable display screen, and bring better visual experience to the user by controlling the expansion of the display screen; the electronic equipment can also adopt an extensible camera, and when a user uses the electronic equipment to take a picture, the camera is controlled to be extended, so that better shooting experience is brought to the user, and the like.
At present, when electronic equipment receives an expansion instruction for an expandable component, the expandable component (such as a camera, a display screen, a microphone and other expandable components) can be controlled to expand along a set expansion path, however, when a shielding object exists on the expansion path, the expandable component and the shielding object collide in an expansion process, and the electronic equipment is damaged.
Disclosure of Invention
The embodiment of the application provides an expansion control method and device for an expandable part, a storage medium and electronic equipment, which can avoid collision between the expandable part of the electronic equipment and a shelter, and further avoid damage to the electronic equipment caused by collision. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an expansion control method for an expandable component, where the method includes:
receiving an expansion instruction, and acquiring the expansion distance of the expandable component along a reference expansion path;
acquiring a shielding distance between the expandable part and a shielding object on the reference expansion path;
and performing expansion control on the expandable component based on the expansion distance and the shielding distance.
In a second aspect, an embodiment of the present application provides an expansion control apparatus for an expandable member, the apparatus including:
the extended distance acquisition module is used for receiving the extended instruction and acquiring the extended distance of the extensible component along the reference extended path;
the shielding distance acquisition module is used for acquiring a shielding distance between the expandable part and a shielding object on the reference expansion path;
and the component expansion control module is used for carrying out expansion control on the expandable component based on the expansion distance and the shielding distance.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in the embodiment of the application, the electronic device receives an extension instruction, acquires an extension distance of an extensible component along a reference extension path, acquires a shielding distance between the extensible component and a shielding object on the reference extension path, and performs extension control on the extensible component according to the extension distance and the shielding distance. Whether the extensible component is extended or not is controlled by considering whether the extensible path is provided with the shielding object or not and considering the size relation between the shielding distance and the extension distance when the shielding object is provided, so that the extensible component can be effectively prevented from colliding with the shielding object on the extensible path when the extensible component is extended, and further, the electronic equipment is prevented from being damaged.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an expansion control method for an expandable component according to an embodiment of the present application;
fig. 2a is a schematic view of a scene before an electronic device is not expanded, relating to an expansion control method for an expandable component provided in an embodiment of the present application;
fig. 2b is a schematic view of a scenario in which an electronic device related to an expansion control method of an expandable element according to an embodiment of the present application is expanded according to a reference expansion path;
fig. 3a is a schematic view of a scene before an electronic device is not expanded, relating to an expansion control method for an expandable element provided in an embodiment of the present application;
fig. 3b is a schematic view of a scenario in which another electronic device related to an expansion control method of an expandable element according to an embodiment of the present application is expanded according to a reference expansion path;
fig. 4 is an interface schematic diagram of an electronic device extensible component setting related to an extension control method for an extensible component provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of an extensible component management interface related to an extension control method for an extensible component provided in an embodiment of the present application;
fig. 6 is a schematic view of a flexible display screen as an expandable member related to an expansion control method for an expandable member according to an embodiment of the present application;
fig. 7 is a scene schematic diagram of an extensible component of an electronic device related to an extension control method of the extensible component provided in an embodiment of the present application;
fig. 8 is a schematic view of a scenario when an extensible component of an electronic device is extended according to an extension control method for the extensible component provided in an embodiment of the present application;
fig. 9 is a schematic view of a scene of an electronic device and a support related to an expansion control method of an expandable element according to an embodiment of the present application;
FIG. 10 is a schematic view of another electronic device and a support involved in an expansion control method for an expandable element according to an embodiment of the present application;
FIG. 11 is a flow chart illustrating an expansion control method for an expandable element according to an embodiment of the present application;
fig. 12 is a schematic view of a flexible display screen as an expandable member related to an expansion control method for an expandable member according to an embodiment of the present application;
fig. 13 is a scene schematic diagram of an extensible component, which is an extensible camera according to the method for controlling the extension of the extensible component provided in the embodiment of the present application;
fig. 14 is a schematic view of a camera interface of an electronic device related to an expansion control method of an expandable component provided in an embodiment of the present application;
fig. 15a is a scene schematic diagram of an electronic device outputting prompt information according to an expansion control method for an expandable component provided in an embodiment of the present application;
fig. 15b is a schematic view of a scenario that an electronic device is extended according to an extension control method for an extensible component provided in an embodiment of the present application;
FIG. 16 is a scene diagram illustrating a pose change of an electronic device according to an expansion control method for an expandable element provided in an embodiment of the present application;
FIG. 17 is a schematic diagram of a scenario architecture of an extended control system of an extensible component according to an embodiment of the present application;
FIG. 18 is a schematic structural diagram of an expansion control device of an expandable member according to an embodiment of the present application;
FIG. 19 is a block diagram of a component expansion control module according to an embodiment of the present disclosure;
fig. 20 is a schematic structural diagram of an extended distance obtaining module according to an embodiment of the present application;
fig. 21 is a schematic structural diagram of an extended distance determining unit according to an embodiment of the present application;
FIG. 22 is a schematic structural view of an expansion control device of another expandable member provided in an embodiment of the present application;
fig. 23 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and 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 elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
In one embodiment, as shown in fig. 1, an expansion control method of an expandable element is specifically proposed, which can be implemented by relying on a computer program, a single chip microcomputer, or an expansion control device based on an expandable element of von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application.
Specifically, the expansion control method of the expandable member includes:
step 101: and receiving an expansion instruction, and acquiring the expansion distance of the expandable part along the reference expansion path.
The instructions are instructions and commands directing the operation of the electronic device, and may be understood as code specifying certain operations to be performed or certain controls to be implemented by functions. The extension instruction in this embodiment of the application may be understood as a code that directs the electronic device to execute a function that controls the extensible component to perform the extension control function, and the electronic device may first obtain an extension distance of the extensible component along the reference extension path by executing the code.
The expansion path may be a full-course route from a starting point before expansion to an end point after expansion of the expandable member in an ideal state (i.e. without interference of interference factors such as a shelter), and the expansion path may be a linear expansion path or a curvilinear expansion path according to the requirement of actual expansion control, and in the embodiment of the present application, the reference expansion path may be understood as: the electronic component controls the expandable component to expand to the end point of the reference expansion path instruction based on the starting point of the reference expansion path instruction when the expandable component is controlled to expand.
The expansion distance may be understood as a connection distance between the expandable element on the reference expansion path from a starting point before expansion to an end point after expansion, i.e. a physical distance between the starting point before expansion and the end point after expansion. In practical applications, the extension distance is usually smaller than or equal to a reference extension distance indicated by the reference extension path, and the reference extension distance may be understood as: a distance between a start point and an end point of the reference expanded route indication is specified in advance.
For example, as shown in fig. 2a and 2b, fig. 2a is a scene schematic diagram before the electronic device is not expanded, fig. 2b is a scene schematic diagram after the electronic device is expanded according to a reference expansion path, in fig. 2a, an expandable component of the electronic device is shown in a dashed line box in fig. 2a, fig. 2b is a scene after the electronic device controls the expandable component to be expanded according to the reference expansion path, the expandable component is expanded from a starting point before the expansion to an end point indicated by the reference expansion path according to a horizontal direction indicated by the reference expansion path, a whole course route from the starting point before the expansion to the end point after the expansion is shown in a solid line box "reference expansion path a" in fig. 2b, the expansion path is a linear type expansion path as required by the actual expansion control, wherein the expansion distance is usually all or part of the maximum expansion distance indicated by the reference expansion path, for example, when the electronic device receives an extension instruction indicating that the extensible component extends half of the path indicated by the reference extension path, the extension distance is 1/2 distance which is the maximum extension distance indicated by the reference extension path.
For another example, as shown in fig. 3a and 3b, fig. 3a is a schematic view of a scene before an electronic device is not expanded, fig. 3b is a schematic view of a scene after the electronic device is expanded according to a reference expansion path, fig. 3a is a top view of the electronic device, an expandable component of the electronic device is shown as a dashed box in fig. 3a, and fig. 3b is a scene after the electronic device controls the expandable component to be expanded according to the reference expansion path; the expandable component is controlled to expand from the starting point before expansion to the end point indicated by the reference expansion path according to the curve direction indicated by the reference expansion path, and the whole route from the starting point before expansion to the end point after expansion is shown as a dashed line box "reference expansion path B" in fig. 3B, wherein the expansion path is different from the type of the expansion path in fig. 2B, and the expansion path is a curve-type expansion path according to the actual expansion control requirement, and the expansion distance is usually all or part of the maximum expansion distance indicated by the reference expansion path.
Specifically, during the process of using the electronic device, the user may input an extension instruction to the electronic device with respect to an extensible component included in the electronic device. The number of the expandable components can be multiple, the types of the expandable components can be the same or different, the expandable components can be devices such as a display screen, a microphone, a camera, an indicator light and the like, after the electronic equipment receives the expansion instruction, the electronic equipment executes codes for controlling the expandable components to perform the expansion control function, and the electronic equipment can acquire the expansion distance of the expandable components along the reference expansion path by executing the codes.
Specifically, the electronic device displays an icon of an extensible component switch on a current display interface, and the electronic device comprises a display screen which has a function of sensing touch operation of a user. The structure of the display screen comprises at least 4 parts: the display screen of the electronic device can acquire the touch position parameters through the sensors when a user touches the icon of the extensible component switch on the current display interface of the electronic device. And then processing the position parameters, recognizing that an icon of an extensible component switch on a display interface corresponding to the position parameters is touched, and inputting an extension instruction aiming at the extensible component to the electronic equipment by a user through touching the extensible component switch icon.
For example: as shown in fig. 4, fig. 4 is an interface schematic diagram of an expandable component setting of an electronic device, in fig. 4, when a user selects an "expandable component switch" -icon a on a screen of the electronic device in a manner of finger touch, specifically, through a screen glass layer of a display screen of the electronic device, the display screen of the electronic device obtains a position parameter of the touch "icon a" through a position sensor in a sensor film, and then processes the position parameter to identify an expansion instruction of the "expandable component switch" -icon a input by the user, at this time, the electronic device detects an expansion instruction input by the user for the "expandable component switch" -icon a on a current display interface. By reading and executing a machine executable instruction corresponding to the control logic for turning on the 'extensible component switch' -icon A, specifically executing a code for controlling the extensible component to perform an extended control function, the electronic device obtains the extension distance of the extensible component along the reference extension path. It is understood that the electronic device stores a configuration file of the extensible component in advance, and after receiving the extension instruction, the electronic device may obtain a reference extension path of the extensible component and an extension distance along the reference extension path in the locally stored configuration file.
The configuration file of the extensible component, which is stored in advance in the electronic device, may be a configuration file containing relevant configuration parameters of the extensible component, which is preset when the electronic device leaves a factory; or the user may set the configuration on the related setting interface of the electronic device in the later use process, for example, the user may select a configuration button of "extended component management" in the interface shown in fig. 4 by means of finger touch, and enter the "extended component management" interface to perform setting. Fig. 5 is a schematic diagram of an extensible component management interface, as shown in fig. 5, in which a user may set parameters such as an extension distance, a reference extension path, an extension time length, an extension light effect, and the like to an extensible component, for example, the user may set the extension distance to 8cm, the reference extension path to path 2, the extension time length to 100ms, the extension light effect to a "glare" type, and the like.
Optionally, the expansion instruction received by the electronic device may be completed through an external device, for example, a user may select an expansion instruction input by an icon a, which is an "expandable element switch" of a display interface of the electronic device, through a mouse connected to the electronic device; the user can input corresponding instructions through a keyboard or a touch pad connected with the electronic equipment; the method can be used for starting an expansion instruction of the expandable component switch through voice input by a user (for example, the expandable component-display screen is started through voice input, the expansion instruction of the expandable component is input after the user collects a gesture control instruction through a camera, and the expansion instruction aiming at the expandable component is input through physical keys (a switch key, a volume up-down key and the like) of the touch electronic equipment.
Step 102: and acquiring a shielding distance between the expandable part and a shielding object on the reference expansion path.
The occlusion distance may be understood as the physical distance between the expandable member and the occlusion in the reference expansion path.
Specifically, the electronic device controls the expandable component to expand along the reference expansion path, and when a shelter exists on the reference expansion path, the expandable component of the electronic device may be damaged if the expandable component is controlled to expand.
In a specific implementation scenario, the expandable member is a flexible display screen, as shown in fig. 6, fig. 6 is a schematic view of a scenario in which the expandable member is a flexible display screen, when the electronic device is in an unused state, the flexible screen may be wound around a central axis housed in a housing of the electronic device, and one end of the flexible screen is configured to be located outside an extension port of the flexible screen; when the electronic equipment is in a use state, namely the electronic equipment receives an expansion instruction, the expansion instruction is responded, then the expansion distance of the expandable component, namely the flexible display screen, along a reference expansion path can be obtained, a measuring device on the electronic equipment is controlled to detect whether a barrier exists on the reference expansion path of the expandable component, the measuring device detects that a cylindrical barrier A exists along the reference expansion path, and the barrier distance between the electronic equipment and the cylindrical barrier A on the reference expansion path is detected to be a centimeter. Wherein, the reference extended path occlusion may be understood as: the measuring device on the electronic equipment can monitor the obstruction in the reference extended path and in the monitoring range of the measuring device, and can also monitor the obstruction on the extension line of the reference extended path and in the monitoring range of the measuring device.
The electronic equipment is provided with a measuring device, and the measuring device can be used for monitoring the obstruction on the reference expansion path of the expandable part by the electronic equipment and measuring the distance between the expandable part of the electronic equipment and the obstruction on the reference expansion path. The measuring means may measure the length or area of the expandable member that has expanded to the outside of the electronic device when in operation; and, the measuring means may also measure the area or length of the expandable member that has not yet expanded into the interior of the electronic device. And, in the case where the expandable member is expanded or contracted, the measuring means may measure the displacement value of the expanded or contracted display screen.
More specifically, the measuring device may be configured with corresponding devices according to the actual application environment, such as sensors configured with at least one of a touch sensor, an infrared/ultraviolet sensor, a phototransistor, a photoconductive element, a position sensitive detector, a gyro sensor, and a strain gauge, a laser length measuring sensor, a potentiometer, a measuring sensor capable of measuring a stroke length, a length, an angular velocity, an extension velocity, an instantaneous velocity, and an average velocity. The measuring means may not be limited to the aforementioned sensor and may include all sensing devices capable of measuring length and area. The measuring means can be located at various positions of the apparatus, such as the housing unit, the expandable member itself, the sides of the expandable member, etc. The measurement method may be distinguished according to the position of the measurement device or the kind of sensor of the measurement device.
Step 103: and performing expansion control on the expandable component based on the expansion distance and the shielding distance.
Specifically, the electronic device stores a corresponding relationship between an extension distance, a shielding distance, and an extension control manner in advance, and after determining the extension distance and the shielding distance, the electronic device may determine whether to control the extensible component to extend by the extension distance, specifically, may determine a target extension control manner matching the extension distance and the shielding distance based on the corresponding relationship, and then perform extension control on the extensible component by the target extension control manner.
Specifically, the correspondence between the extension distance, the shielding distance, and the extension control manner may be: when the extended distance is smaller than the shielding distance, the electronic device expands based on the extended distance, and usually, the expandable component (such as a display screen, a camera, a microphone, and the like) does not collide with the shielding object, and at this time, the electronic device may determine that the target expansion control manner is: controlling the expandable member to expand by the expansion distance; when the extended distance is greater than or equal to the shielding distance, the electronic device extends based on the extended distance, and usually an extensible component (such as a display screen, a camera, a microphone, and the like) collides with the shielding object, and at this time, the electronic device may determine that the target extension control manner is: and controlling the expandable part to stop expanding.
In a possible implementation manner, when the electronic device extends by a distance greater than or equal to the shielding distance, the electronic device may extend based on the extended distance, and usually the expandable component (such as a display screen, a camera, a microphone, and the like) may collide with the shielding object, and at this time, the electronic device may output a prompt message to prompt the user that the expandable component stops extending. The prompt message can be displayed in the form of pictures, characters, audio and the like.
Optionally, the manner of outputting the prompt message by the electronic device may be in a form of voice, for example: the electronic equipment can broadcast audio of 'the shielding object is monitored on the extension path of the current extensible part and the extension is stopped'; may be in the form of vibrations, for example: the electronic equipment can call an internal vibration motor to prompt at a specific vibration frequency; the electronic equipment can also call the contained prompting lamp to output prompting information (such as a breathing lamp, a flash lamp and a fill-in lamp) and the like.
In specific implementation, the electronic equipment can control the flickering of the indicator light by calling a software/hardware interface corresponding to the indicator light; further, after the electronic device detects the obstruction on the expansion path of the current expandable member, the grading reminding can be carried out based on the distance of the shielding distance, particularly according to the shielding grade corresponding to the determined shielding distance, configuring the indicator lights according to the shielding levels, prompting in a mode of flashing different types of indicator lights, for example, the electronic device configures the indicator light by configuring parameters related to the indicator light node of each color of light in the kernel of the electronic device system, the related parameters comprise the level state of the cue light, the brightness value of the cue light, the flashing frequency of the cue light and the like, and further configuring the related parameters to flash different types of indicator lights, so that a better prompt effect can be achieved, and a user is reminded that a shelter exists on the reference expansion path of the current expandable part.
In a specific implementation scenario, when the extended distance is smaller than the occlusion distance, the electronic device may determine that the target extension control manner is: controlling the expandable member to expand by the expansion distance; during the expansion process of the expandable component, the electronic equipment can monitor the current motion state along the reference expansion path; it can be understood that when the expansion part is expanded, a user may hold the electronic device to perform a relative movement with the barrier along the reference expansion path, and at this time, the expansion part of the electronic device may collide with the barrier due to a change in a barrier distance with the barrier in the reference expansion path, thereby damaging the electronic device.
Specifically, the motion sensor included in the electronic device may monitor a current motion state along a reference extension path, where the motion state may be a motion speed, a motion distance, a motion acceleration, and the like of a local terminal (i.e., the electronic device), and the extension process of the extendable component is monitored based on the motion state of the electronic device, for example, whether the extendable component collides with a shielding object in the extension process to damage the electronic device is calculated according to the motion state, in a calculation manner, if the extension completion time of the electronic device without external interference is t, the electronic device calculates, within the time t, whether an unexpanded distance of the extendable component of the electronic device is smaller than an actual shielding distance from the shielding object, and when the unexpanded distance of the extendable component is smaller than the actual shielding distance from the shielding object, the electronic device may output prompt information to perform extension warning, to remind the user to adjust the state of the electronic device. The prompt message can be displayed in the form of pictures, characters, audio and the like.
For example, as shown in fig. 7, fig. 7 is a schematic view of a scenario of an expandable component of an electronic device, where the expandable component of the electronic device in fig. 7 is an expandable camera, the electronic device may be controlled by a driving motor in driving connection with the expandable camera, and when the electronic device is expanded by controlling the driving motor to operate to drive the expandable component — the expandable camera. The electronic device in fig. 7 is a scene after the extendable camera is controlled to be extended along the reference extension path. Referring to fig. 8, fig. 8 is a schematic view of a scenario when an expandable component of an electronic device is expanded, where the expansion completion time of the electronic device without external interference is assumed to be 30s, a motion sensor monitors a motion parameter (e.g., a motion speed) of a local terminal (i.e., the electronic device) and calculates, in combination with the motion speed, whether an unexpanded distance of the expandable component of the electronic device is smaller than an actual shielding distance from a shielding object within 30s, and when a time point (e.g., 28 th s) exists within 30s, the unexpanded distance of the expandable component is smaller than the actual shielding distance from the shielding object through calculation, at this time, the electronic device may expand an early warning in advance, and the electronic device may output a prompt message to perform an expansion early warning to prompt a user to adjust a state of the electronic device. If the electronic device can remind by voice, if voice broadcasting is performed, the current electronic device is fast in moving speed on the reference extension path and collides with the barrier on the reference extension path in the xx second, and the state of the electronic device is required to be adjusted (such as being far away from the barrier).
The motion sensor includes, but is not limited to, various sensing devices such as a gravity sensor, a geomagnetic sensor, an acceleration sensor, an infrared sensor, and a speed sensor.
In a specific implementation scenario, when a user uses the electronic device, the electronic device may be placed on a desk, a table, a chair, a sofa, or the like, and when the electronic device controls the expandable component to expand, the electronic device may be dropped when the center of gravity is close to the boundary of the support because the electronic device is placed closer to the boundary of the support and the center of gravity of the electronic device changes during the expansion of the expandable component.
In a possible embodiment, the electronic device detects the position of the center of gravity of the electronic device through the included gravity sensor, but of course, other attitude data of the electronic device, such as an angle change value, may be acquired.
Generally, an electronic device may measure acceleration due to gravity through a gravity sensor, so as to obtain a center of gravity of the electronic device, where the center of gravity may change when the electronic device tilts, turns, or translates, and the gravity sensor may detect a change position of the center of gravity. For specific determination of the gravity center position, reference may be made to a method for determining the gravity center based on a gravity sensor in the coherent technology, and details are not repeated here.
Specifically, when the electronic device controls the expandable element to expand, a target distance between a center of gravity position of the electronic device and a boundary of a support on the reference expansion path may be obtained in advance, the support is used to support the electronic device, as shown in fig. 9, fig. 9 is a scene schematic diagram of the electronic device and the support, the electronic device is placed on a support-table, the electronic device receives an expansion instruction input by a user, when the expandable element is controlled to expand along the reference expansion path, the center of gravity position of the electronic device may be measured by a gravity sensor, the center of gravity position is shown in fig. 9, and a target distance d between the center of gravity position and the boundary of the support on the reference expansion path is detected, the electronic device may generally set a distance threshold (e.g. 20cm), and by comparing the target distance with the distance threshold, the actual extended distance of the next step is determined as follows:
the electronic equipment is judged, when the target distance d is larger than the preset threshold value, if the electronic equipment expands by the expansion distance, the electronic equipment can not fall off generally, at the moment, the electronic equipment can obtain the minimum distance between the target distance and the expansion distance, and the expandable component is controlled to expand by the minimum distance.
The electronic device is judged, when the target distance d is smaller than or equal to the preset threshold, at this time, if the electronic device expands by the expansion distance, the electronic device may fall off to cause damage to the electronic device, and at this time, the electronic device may control the expandable component to stop expanding.
Therefore, when the expandable part controlled by the electronic equipment is expanded along the reference expansion path, the damage of the electronic equipment caused by unstable gravity center in the process of controlling the expandable part to expand the electronic equipment can be prevented. The preset threshold is usually slightly larger than the maximum extension distance of the expandable component, and the actual preset threshold is determined by analyzing a large amount of sample data collected according to the actual application environment, which is not specifically limited herein.
In another possible embodiment, the electronic device may monitor a real-time change in the position of the center of gravity of the electronic device during the control of the expandable member to expand, and measure a target distance between the position of the center of gravity and the boundary of the support in real time, and the electronic device may control the expandable member to stop expanding when the target distance approaches a certain set threshold (e.g., 1 cm). The set threshold may be slightly greater than 0, i.e. the expandable member is controlled to stop expanding when it is adjacent to the support boundary.
For example, when the terminal is vertically placed, the positive direction of the X axis is from left to right, the positive direction of the Y axis is from bottom to top, and the positive direction of the Z axis is from inside to outside, so that the gravity sensor can reflect the change of the position of the center of gravity through the value of (X, Y, Z). The electronic device may also monitor the position of the center of gravity in real time or at intervals (e.g., 10ms), and detect the target distances S1, S2, S3.. Sn between the position of the center of gravity and the boundary of the support at the current time point. When the target distance s corresponding to a certain time point is smaller than or equal to the set threshold (such as 1cm), the electronic device continues to control the expandable component to expand, so that the risk of falling exists, and at the moment, the electronic device controls the expandable component to stop expanding. When the monitored target distance at the current time point is greater than the set threshold (such as 1cm), the electronic device can continue to control the expandable component to expand until the expandable component reaches the current expansion distance, and the expansion is finished.
In the embodiment of the application, the electronic device receives an extension instruction, acquires an extension distance of an extensible component along a reference extension path, acquires a shielding distance between the extensible component and a shielding object on the reference extension path, and performs extension control on the extensible component according to the extension distance and the shielding distance. Whether the extensible component is extended or not is controlled by considering whether the extensible path is provided with the shielding object or not and considering the size relation between the shielding distance and the extension distance when the shielding object is provided, so that the extensible component can be effectively prevented from colliding with the shielding object on the extensible path when the extensible component is extended, and further, the electronic equipment is prevented from being damaged.
Referring to fig. 11, fig. 11 is a schematic flowchart of another embodiment of an expansion control method for an expandable component according to the present application.
In the embodiment of the present application, the number of the expandable members may be plural, the types of the expandable members may be the same or different, the expandable member may be at least one of a display screen, a microphone, a camera, an indicator light, and the like, and for convenience of description, the expandable member is often used as the display screen for explanation in detail. Specifically, the method comprises the following steps:
step 201: and receiving an expansion instruction, and acquiring the expansion state of the expandable part and the maximum expansion distance of the expandable part along the reference expansion path.
The flexible display screen is also referred to as electronic paper, the flexible display screen is lighter, thinner, has stronger impact resistance than a conventional hard display screen, and has a feature of being freely bendable, for example, the expandable member on the electronic device shown in FIG. 6 is a flexible display screen.
In the embodiment of the present application, all display screens capable of expanding a displayed area described below are collectively referred to as an expandable display screen. In other words, the expandable display screen uses at least one flexible display screen or a differentiated plurality of display screens, and indicates a display screen capable of controlling the area of the display. More specifically, in the case where the display area is expanded by adding display panels as needed in such a manner that a plurality of display panels are prepared, the plurality of display panels are collectively referred to as an expandable display screen. Alternatively, in the case where the displayed area is expanded by flattening or rolling out the aforementioned flexible display screen, the flexible display screen may also be referred to as an expandable display screen.
The expansion state is used to characterize the degree of expansion of the current expandable component, and typically the expansion state includes an expanded state and an unexpanded state. In the unexpanded state, the expanded distance of the expandable element is typically an initial value, such as an initial value of 0; it is understood that the expandable element of the electronic device may be in a partially expanded state before the expandable element is expanded, for example, the expandable element-expandable display screen of the electronic device is in an expanded 1/4 state, the user may input an expansion command by means of finger touch on the expandable display screen currently in the "expanded 1/4 state", and so on.
The maximum extension distance may be understood as an extension distance corresponding to the electronic device after the expandable components are fully expanded, i.e. the maximum extension distance.
Specifically, the electronic device may receive an expansion instruction input by a user through a finger touch manner, and in response to the expansion instruction, obtain an expansion state of the expandable component (e.g., an expandable display screen) and a maximum expansion distance of the expandable component (e.g., the expandable display screen) along a reference expansion path. One way of obtaining the configuration information is that after receiving the instruction, the electronic device obtains the configuration information from a configuration file of the electronic device, where the configuration file is used to store the extensible component, where the configuration file includes related configuration parameters of the extensible component, such as parameters of an extension state, a reference extension path, an extension distance, an extension duration, an extension lighting effect, and the like; the electronic equipment works by calling a contained measuring device, and the measuring device can measure the length or the area of an expandable part expanded to the outside of the electronic equipment; and, the measuring means may also measure the area or length of the expandable member that has not yet expanded into the interior of the electronic device. And, in the case where the expandable member is expanded or contracted, the measuring means may measure the displacement value of the expanded or contracted expandable member. That is, the electronic device may acquire the expansion state of the expandable element (e.g., expandable display screen) and the maximum expansion distance of the expandable element (e.g., expandable display screen) along the reference expansion path by invoking the included measurement device to work.
Step 202: determining an expansion distance of the expandable component based on the expansion state and the maximum expansion distance.
Specifically, when the expansion state is the expanded state, the electronic device may obtain an expanded distance corresponding to the expanded state of the expandable component (e.g., the expandable display screen), such as by obtaining state parameters associated with an extensible component (e.g. an extensible display screen) stored in a configuration file that characterize the extended state, analyzing the state parameter can acquire whether the extensible component is extended and the extended state when the extensible component is extended, if the expandable display screen of the expandable component of the electronic device is acquired in the expanded 1/4 state, the electronic device may determine the expanded distance corresponding to the expanded 1/4 state according to the corresponding relationship between the expanded state and the expanded distance, for example, assuming that the maximum expanded distance of the expandable display screen is 20cm, the expanded distance is 1/4 cm, which is 5 cm.
Optionally, the electronic device may also operate by invoking an included measuring device, which may measure the length or area of an expandable component that has been expanded to the exterior of the electronic device; and, the measuring means may also measure the area or length of an expandable component (such as an expandable display screen) that has not yet been expanded into the interior of the electronic device. The electronic device can determine the expanded state (expanded state or unexpanded state) of the expandable element by means of data (such as length data or area data) measured by the measuring device, and when the expandable element (such as the expandable display screen) is in the expanded state, the electronic device can retrieve the expanded distance of the expandable element (such as the expandable display screen) from the data (such as length data or area data) measured by the measuring device.
Specifically, after acquiring the extended distance and the maximum extended distance of the extensible component (such as an extensible display screen), the electronic device may calculate a difference between the maximum extended distance and the extended distance, where if the maximum extended distance is a and the extended distance is b, the difference X may be represented as:
X=a-b
the electronic equipment determines a difference value X as the expansion distance of the expandable component by calculating the difference value between the maximum expansion distance and the expanded distance;
when the extended state is an unexpanded state, the electronic device may determine the obtained maximum extension distance as the extension distance of the extensible member. It can be understood that when the electronic device is in an unexpanded state, the electronic device is usually expanded by a default maximum expansion distance of the expandable element, and if the maximum expansion distance of the expandable element and the expandable display screen is 20cm, the current expansion distance of the expandable element and the expandable display screen is determined to be the maximum expansion distance of 20 cm.
Step 203: receiving an expansion instruction input aiming at an expansion mode of an expandable component, and acquiring an expansion distance indicated by the expansion mode and a reference expansion path.
The electronic equipment can adopt a plurality of extension modes, wherein different extension modes correspond to different or same extension distances and reference extension paths; it will be appreciated that the user may select an extended mode on the electronic device based on the actual scenario.
In a specific implementation scenario, as shown in fig. 12, fig. 12 is a schematic view of a scenario in which the expandable member is a flexible display screen, when the electronic device is in an unused state, the flexible screen may be wound around a central reel housed in a housing of the electronic device, and one end of the flexible screen is configured to be located outside the flexible screen; the electronic device is provided with a plurality of extension modes, such as an A extension mode, a B extension mode and a C extension mode, wherein each extension mode corresponds to different extension distances, and the extension distances correspond to 5.0 inches for the A extension mode, 5.5 inches for the B extension mode, 8 inches for the C extension mode and 10 inches for the D extension mode. In the figure, an extension mode a, an extension mode B, and an extension mode C all correspond to the same reference extension path, a user may select a certain extension mode (e.g., an extension mode a) in a flexible display screen of the electronic device shown in fig. 12 by means of finger touch, an extension instruction is input for the extension mode a of the extensible component-flexible display screen, the electronic device receives the extension instruction, may acquire that the extension mode input by the user is the extension mode a, the electronic device acquires an extension distance and a reference extension path corresponding to the extension mode a in a configuration file for storing the extensible component-flexible display screen, the configuration file deduces relevant configuration parameters including the extensible component, such as the extension mode, the reference extension path, the extension distance, the extension duration, and the like, And expanding parameters such as light effect and the like.
In another specific implementation scenario, as shown in fig. 13, fig. 13 is a schematic view of a scenario in which the expandable component is an expandable camera, the electronic device may perform expansion control through a driving motor in transmission connection with the expandable camera, and when the electronic device drives the expandable component, i.e., the expandable camera, to perform expansion by controlling the driving motor to operate. The electronic device in fig. 13 is a scene after the scalable camera is controlled along the reference extension path to extend by the maximum extension distance, the scalable camera component in fig. 13 includes 4 cameras, and the types of the cameras may be different or the same, for example: the camera can be at least one of long focus camera, wide-angle camera, macro camera, night scene camera and the like, it can be understood that different extension modes correspond to different extension distances, and when the extension of the extensible camera is controlled to a corresponding position, the corresponding camera in the extension mode can work normally. Illustratively, a user may click a "camera" icon in the interface shown in fig. 13 to enter the camera interface, as shown in fig. 14, fig. 14 is a schematic view of the camera interface of an electronic device, the user may select a "mode", the electronic device may display an extended mode selection box that is selectable by the user in all or a part of the display area of the current image frame, and the selection box may be in a list form, that is, at least one extended mode included in the electronic device is presented in a list form; the selection frame can be tiled, namely at least one expansion mode contained in the electronic equipment is displayed in a horizontally or vertically tiled mode; the selection box may be in a palace format (such as nine-palace grid, six-palace grid, four-palace grid, etc.), that is, at least one expansion mode contained in the electronic device is displayed in a palace grid form, and the selection box may also be in a thumbnail form, a text form, etc. The electronic device provides some expansion modes which can be selected by a user in the expansion mode selection frame for the user to select, the camera imaging effects of the expansion modes which are selected in the expansion mode selection frame are generally different, the different expansion modes correspond to different one or more cameras for imaging, if the user selects a tele mode, the expandable component is generally required to be controlled to expose the tele lens outwards, and it can be understood that the tele mode corresponds to an expansion distance (such as 2cm) for exposing the tele lens.
Specifically, a user may select a certain extension mode (for example, a triple-shooting mode) in a current display interface of the electronic device shown in fig. 14 by means of finger touch, an extension instruction is input for the triple-shooting mode of the extensible component — the extensible camera, the electronic device receives the extension instruction, responds to the extension instruction, and may acquire that the extension mode input by the user is the triple-shooting mode, the electronic device acquires an extension distance and a reference extension path corresponding to the triple-shooting mode in a configuration file for storing the extensible component — the extensible camera, and the configuration file pushes out relevant configuration parameters including the extensible component, such as parameters of the extension mode, the reference extension path, the extension distance, the extension duration, the extension lighting effect, and the like.
Step 204: and acquiring a shielding distance between the expandable part and a shielding object on the reference expansion path.
Refer to step 102 specifically, and will not be described herein.
Step 205: and judging whether the extended distance is smaller than the shielding distance.
Specifically, the electronic device controls the expandable component to expand along the reference expansion path, and when a shelter exists on the reference expansion path, the expandable component of the electronic device may be damaged by the expansion of the electronic device, in the embodiment of the application, the electronic device detects whether the shelter exists on the reference expansion path of the expandable component through a measurement device, and when the shelter exists, the electronic device may measure a shelter distance between the electronic device and the shelter on the reference expansion path through the measurement device. And then judging the extension distance and the shielding distance to judge whether the extension distance is smaller than the shielding distance, selecting whether to extend according to the judgment result, and/or controlling the extensible component to extend by a proper distance by executing the extension control method of the extensible component in the embodiment of the application so as to avoid the damage of the electronic equipment caused by the shielding of the shielding object on the reference extension path in the extension process. The specific control method is explained below.
Step 206: and if the expansion distance is smaller than the shielding distance, controlling the expandable component to expand at a first expansion speed within the first distance range.
Wherein the extended distance comprises a first distance less than a distance threshold and a second distance greater than the distance threshold.
Illustratively, in practical applications, if the extension distance is smaller than the shielding distance, when the electronic device controls the expandable component to expand, as the extension duration increases, the expanded distance of the expandable member will gradually increase, the expanded distance of the expandable member will gradually decrease from the initial expanded distance before expansion, for example, assuming that the initial extended distance before the electronic device is extended is 20cm, as the extended time period of the expandable element is controlled to increase, the extended distance gradually increases from a certain initial value (e.g. 0cm), and then the extended distance of the expandable element gradually decreases from the initial extended distance before the extension of 20cm to 0, when the expanding distance is reduced to 0cm and the expanded distance is increased to 20cm in the process of controlling the expandable component to expand, the electronic equipment controls the expandable component to complete the expansion.
In the above process, the user may manipulate the electronic device to generate a relative motion with the obstruction on the reference expansion path at a time point when the electronic device controls the expandable component to expand (e.g., a finger touches the electronic device to approach the obstruction at a certain motion speed); if the electronic device controls the expandable component to expand at a constant expansion rate and the electronic device is closer to the target of the obstruction at the time point when the user interferes with the electronic device, generally, if the electronic device controls the expandable component to expand at the constant expansion rate, the electronic device will collide with the obstruction, which causes damage to the electronic device.
Specifically, the electronic device can be expanded at a smaller second expansion speed by presetting a safety distance, specifically setting a distance threshold value, and increasing the expansion distance within a second distance range with the length of the expansion distance being smaller than the distance threshold value along with the increase of the expansion time, so that the interference of human factors can be avoided, and the damage of electronic device devices caused by the impact force of collision is reduced when the electronic device collides with a shielding object due to the larger expansion speed.
Specifically, for the above situation, the electronic device may set a distance threshold (e.g. 8cm) when controlling the expandable element to expand, the expanded distance may gradually increase from a certain initial value (e.g. 0cm) as the expanding time period of the expandable element is controlled to increase, and then the expanded distance of the expandable element may gradually decrease from the initial expanded distance before expansion of 20cm, in the process, the electronic device may control the expandable element to expand at a first expanding speed within a first distance range in which the expanded distance is greater than the distance threshold (e.g. 8cm), and when the expanded distance decreases to the distance threshold (e.g. 8cm) as the expanding time period of the expandable element is controlled to increase, the electronic device may adjust the current expanding speed to a second expanding speed less than the first expanding speed, and control the expandable element to expand at a second expanding speed within a second distance range in which the expanded distance is less than the distance threshold (e.g. 8cm), generally, the second expansion speed is much less than the first expansion speed, so that damage to electronic equipment devices caused by impact force of collision can be avoided, and meanwhile, when the electronic equipment monitors sudden speed change of the electronic equipment through a measurement device (such as a speed sensor), the electronic equipment can control a driving motor for driving the expandable component to expand to stop working because enough buffering time exists when the electronic equipment expands at the lower second expansion speed, namely, the expandable component is controlled to stop expanding. Thereby avoiding collision of the electronic equipment with the electronic equipment on the reference expansion path.
Step 207: and controlling the expandable component to expand at a second expansion speed within the second distance range, wherein the first expansion speed is greater than the second expansion speed.
Specifically, when the extension distance decreases to a distance threshold (e.g., 8cm) as the extension time length of the expandable element is controlled to increase, the electronic device adjusts the current extension speed to a second extension speed that is less than the first extension speed, and controls the expandable element to extend at the second extension speed within a second distance range in which the extension distance is less than the distance threshold (e.g., 8cm), where the second extension speed is usually much less than the first extension speed, and it can be understood that the extension is performed at the second extension speed within the second distance range.
On the other hand, if the electronic device controls the expandable component to expand at a constant expansion rate, when the electronic device controls the expandable component to complete expansion, the electronic device will normally control a device (such as a driving motor) for driving the expandable component to expand to rapidly set the expansion speed to 0 within a very short time t before completion, and when the value of t is small, in the whole expansion process, the kinetic energy generated by the electronic device due to control of expansion work needs to be released within the time t (such as release in a device vibration mode), the device in the electronic device will be damaged if the release time is short, and meanwhile, the kinetic energy will generate a relatively obvious sense of vibration due to device vibration release, and user experience is poor. It can be understood that, by setting the distance threshold, the expandable part is expanded at the second expansion speed within the second distance range in which the expansion distance is smaller than the distance threshold, when the electronic device controls the expandable part to be expanded, the device (such as the driving motor) for controlling and driving the expandable part to expand is used for rapidly setting the expansion speed to 0, at this time, the electronic device controls the expansion to apply work to generate less kinetic energy, and the kinetic energy released by the electronic device is less damaged to the device.
In a possible embodiment, the electronic device may detect, in real time or periodically, an actual occlusion distance between the expandable member and the obstruction on the reference expansion path during the controlling of the expandable member by the measuring device, and decrease the current expansion speed when the actual occlusion distance indicates that the obstruction is closer, for example, decrease the current first expansion speed, and perform the expansion at a second expansion speed lower than the first expansion speed. Specifically, the electronic device controls the expandable component to expand at a first expansion speed, at this time, monitors an actual shielding distance between the expandable component and a shielding object on the reference expansion path, then judges whether the actual shielding distance is smaller than a distance threshold, and when the electronic device determines that the actual shielding distance is smaller than the distance threshold, reduces the current first expansion speed, and controls the expandable component to expand at a second expansion speed, wherein the first expansion speed is greater than the second expansion speed;
and setting an emergency distance, wherein the emergency distance is smaller than a distance threshold, when the actual shielding distance between the electronic equipment and the shielding object on the reference expansion path is smaller than or equal to the emergency distance, the electronic equipment is considered to have a risk of collision with the shielding object, and the electronic equipment controls a driving motor for driving the expandable component to expand to stop working, namely controls the expandable component to stop expanding. Thereby avoiding collision of the electronic equipment with the electronic equipment on the reference expansion path. The first expansion speed and the second expansion speed are generally determined by acquiring a large amount of sample data and analyzing according to the actual application environment.
Step 208: and if the expansion distance is greater than or equal to the shielding distance, controlling the expandable component to stop expanding.
In the embodiment of the application, the electronic equipment detects whether a shelter exists on a reference expansion path of the expandable part through the included measuring device, and when the shelter exists, the electronic equipment can measure the shelter distance between the electronic equipment and the shelter on the reference expansion path through the measuring device. And then judging the extension distance and the shielding distance to judge whether the extension distance is smaller than the shielding distance, when the extension distance is larger than or equal to the shielding distance, the electronic equipment expands the common expandable component (such as a display screen, a camera, a microphone and the like) based on the extension distance and collides with a shielding object, and at the moment, the electronic equipment controls the expandable component to stop expanding.
In a possible implementation manner, when the electronic device extends by a distance greater than or equal to the shielding distance, the electronic device may extend based on the extended distance, and usually the expandable component (such as a display screen, a camera, a microphone, and the like) may collide with the shielding object, and at this time, the electronic device may output a prompt message to prompt the user that the expandable component stops extending.
For example, as shown in fig. 15a, fig. 15a is a schematic view of a scenario in which an electronic device outputs a prompt message, in fig. 15a, an extensible component of the electronic device is an extensible camera, the electronic device may be controlled by a driving motor in transmission connection with the extensible camera, and when the electronic device is expanded by controlling the driving motor to operate to drive the extensible component, the extensible camera. The electronic device detects that a cylindrical shield exists on the reference extension path of the expandable camera through the included measuring device, and when the cylindrical shield exists, as shown in fig. 15a, the electronic device can measure the shielding distance between the electronic device and the shield on the reference extension path through the measuring device. And then judging the extension distance and the shielding distance to judge whether the extension distance is smaller than the shielding distance, and when the judgment result shows that the extension distance is larger than or equal to the shielding distance, the electronic equipment expands based on the extension distance, and usually an expandable part (such as a display screen, a camera, a microphone and the like) collides with a shielding object, and at the moment, the electronic equipment controls the expandable part to stop expanding. And outputting prompt information on a current display interface of the electronic equipment, wherein the prompt information is output in a prompt box, and the prompt box shows that' please note that a shelter exists on a current reference extension path, and please adjust the equipment state? "the user may determine whether to adjust the orientation of the electronic device after acquiring the prompt information.
Step 209: and if the expansion distance is larger than or equal to the shielding distance, controlling the expandable component to expand by the shielding distance.
Specifically, the electronic device detects whether a shelter exists on a reference expansion path of the expandable component through the included measuring device, and when the shelter exists, the electronic device can measure a shelter distance between the electronic device and the shelter on the reference expansion path through the measuring device. And then judging the extension distance and the shielding distance to judge whether the extension distance is smaller than the shielding distance, when the extension distance is larger than or equal to the shielding distance, the electronic equipment expands the common expandable component (such as a display screen, a camera, a microphone and the like) to collide with a shielding object based on the extension distance, and the electronic equipment can take the shielding distance as the extension distance of the current expandable component and expand the shielding distance.
In a specific implementation scenario, as shown in fig. 15b, fig. 15b is a schematic view of an electronic device being expanded, and in fig. 15b, an expandable component of the electronic device is an expandable display screen, which may be a flexible display screen, i.e. a display screen manufactured on a flexible panel that can be twisted, bent and rotated without losing display characteristics. Flexible display screens are also known as electronic paper. The flexible display screen is lighter, thinner, has a stronger impact resistance than a conventional hard display screen, and has a feature of being able to freely bend.
The electronic equipment can be controlled by a driving motor in transmission connection with the expandable display screen, and when the electronic equipment is expanded by controlling the driving motor to work, the expandable component, namely the expandable display screen, is driven. The electronic device detects that there is a barrier (wall) on the reference extended path of the expandable display screen through the included measuring device, as shown in fig. 15b, the electronic device detects that there is a wall barrier on the reference extended path, and the electronic device can measure a barrier distance d between the electronic device and the barrier (wall) on the reference extended path through the measuring device. And then judging the extension distance and the shielding distance d to judge whether the extension distance is smaller than the shielding distance d, wherein when the judgment result shows that the extension distance is larger than the shielding distance d, the electronic equipment expands based on the extension distance, usually, the expandable display screen collides with a shielding object (wall) to cause damage to the electronic equipment, for example, the expandable display screen of the electronic equipment causes display failure due to collision, in order to avoid the electronic equipment colliding with the shielding object (wall), the electronic equipment can use the shielding distance as the extension distance of the current expandable part, and the electronic equipment controls the driving motor to work according to the shielding distance to drive the expandable display screen to expand.
Optionally, after the electronic device determines that the shielding distance is ready to be used for driving the expandable display screen to expand by controlling the driving motor to work, prompt information may be output on a current display interface of the electronic device at this time, and the prompt information is output in a prompt box, as shown in fig. 15b, the prompt box shows that "please note that a shielding object exists on a current reference expansion path, so that the expansion distance is intelligently updated to avoid damage of the electronic device. "to remind the user that the extended distance of the current electronic device is updated.
Step 210: and monitoring an actual expansion path of the expandable component, and taking the actual expansion path as the reference expansion path when the actual expansion path is not matched with the reference expansion path.
The actual expansion path may be understood as a path for the electronic device to control the expandable element to expand, and generally refers to a whole route from a starting point before expansion to an end point after expansion of the expandable element.
Specifically, when the electronic device controls the extendable component to extend, if no interference factor interferes in the extension process, the actual extension path is generally consistent with the reference extension path, and if interference factors interfere such as manually adjusting the pose (i.e., the position and direction of the electronic device) of the electronic device in the process of controlling the extendable component to extend, the actual extension path may be different from the reference extension path.
Specifically, when the electronic device controls the expandable component to expand, the electronic device may monitor an actual expansion path of the expandable component by controlling the measurement device, obtain the actual expansion path of the current expandable component in real time or periodically, and match the actual expansion path with the reference expansion path based on a preset matching processing manner. And when the actual extension path is not matched with the reference extension path, taking the actual extension path as the reference extension path, acquiring the shielding distance between the extensible component and a shielding object on the reference extension path again, and performing extension control on the extensible component based on the extension distance and the shielding distance.
Specifically, the matching processing mode may be that a path identity degree is calculated based on the actual extended path and the reference extended path, and whether the actual extended path and the reference extended path are matched is determined according to the identity degree; the path similarity distance may be calculated based on the actual extension path and the reference extension path, and whether the actual extension path and the reference extension path are matched is determined according to the similarity distance; difference feature information (difference points, difference directions, difference distances, and the like) may be calculated for the actual extension path feature and the reference extension path, respectively, and then a rating or a score may be performed based on the difference feature information, and whether the actual extension path and the reference extension path match or not may be determined according to a result of the rating or the score, and the like.
After obtaining an analysis processing result according to the matching processing mode, the electronic equipment judges the analysis processing result according to a preset judgment rule;
optionally, when the analysis processing result is based on the similarity between the actual extension path and the reference extension path, the evaluation rule may be to set a similarity threshold, and when the similarity of the analysis processing result reaches the similarity threshold, the electronic device determines that the actual extension path matches the reference extension path; and when the semantic similarity of the analysis processing result does not reach a similarity threshold value, the electronic equipment determines that the actual extension path is not matched with the reference extension path.
Optionally, when the analysis processing result is based on the similarity between the actual extension path and the reference extension path, the evaluation rule may be to set a similar distance, and when the similarity between the analysis processing result and the reference extension path reaches a similar distance threshold, the electronic device determines that the actual extension path matches the reference extension path; when the similarity distance of the analysis processing result does not reach a similarity distance threshold value, the electronic equipment determines that the actual extension path does not match the reference extension path.
Optionally, when the analysis processing result is a rating or score based on difference feature information (difference points, difference directions, difference distances, and the like) of the actual extension path and the reference extension path, the evaluation rule may be to set a similarity level threshold or a similarity score threshold, and when the rating or the score of the analysis processing result reaches the similarity level threshold or the similarity score reaches the similarity score threshold, the electronic device determines that the actual extension path matches the reference extension path; when the rating of the analysis processing result does not reach the similarity level threshold or the score does not reach the similarity score threshold, the electronic equipment determines that the actual expansion path does not match the reference expansion path.
In a possible embodiment, reference points may be set on the electronic device, and the pose of the electronic device is determined by monitoring the pose change of each reference point through a measuring device included in the electronic device, it is understood that when the pose of the electronic device changes in the process of controlling the expandable member to expand, the actual expansion path monitored by the electronic device usually does not match the reference expansion path.
Specifically, the pose information of the electronic device can be represented by x, y, z, roll, pitch, and yaw, where the roll rotates around the x axis and is also called a roll angle; pitch is the rotation about the y-axis, also called pitch angle; yaw is the rotation about the z-axis, also called the slip angle. In general, in practical applications, reference points (x0, y0, z0, r0, p0, y0) are set, wherein r0 corresponds to the reference value of roll, p0 corresponds to the reference value of pitch, and y0 corresponds to the reference value of yaw. As shown in fig. 16, fig. 16 is a schematic view of a scene of pose change of an electronic device, in fig. 16, an initial position of the electronic device is a position shown by a dotted line box in the figure, and a reference point is a0 point in the figure, where a0(x0, y0, z0, r0, p0, ya0), the electronic device is influenced by an external disturbance factor (e.g. human touch) in a certain period of time, and the electronic device moves to a position shown by a solid line box in fig. 16 due to a user touch from the position shown by the dotted line box in fig. 16, the electronic device obtains current physical quantity parameters through included measuring devices (acceleration sensors, magnetic sensors, gyroscopes, etc.) for detecting current pose information in real time, calculates a reference point a1 point (x1, y1, z1, r1, p1, ya reference point 1) on the electronic device based on the physical quantity parameters, calculates the pose positions of the a0 point and a1 point, the pose calculation may calculate relative pose information of the electronic device with respect to the initial state, for example, a rotation of 15 degrees with respect to the initial state, to obtain current pose data of the electronic device.
Optionally, the electronic device may monitor a pose change of each reference point in the at least one reference point through a preset at least one reference point, through an electronic component (an acceleration sensor, a magnetic sensor, a gyroscope, or the like) included for detecting current pose information in real time, and when the pose of the electronic device changes in a process of controlling the expandable member to expand, the electronic device determines that a monitored actual expansion path generally does not match the reference expansion path.
Step 204 to step 209 may be referred to for the step of obtaining the shielding distance between the expandable element and the shielding object on the reference expansion path and performing expansion control on the expandable element based on the expansion distance and the shielding distance, and are not described herein again.
In the embodiment of the application, the electronic equipment receives an expansion instruction, obtains an expansion distance of an expandable component along a reference expansion path and a shielding distance between the expandable component and a shielding object on the reference expansion path, and expands the expandable component when the expansion distance is smaller than the shielding distance; when the expansion distance is larger than or equal to the shielding distance, controlling the expandable part to stop expanding; the collision between the expandable part of the electronic equipment and the shielding object on the expansion path can be avoided when the expandable part of the electronic equipment is expanded, so that the electronic equipment is prevented from being damaged; when the extension distance is greater than or equal to the shielding distance, the electronic equipment can control the extensible component to extend by the shielding distance, namely, the extensible component is not fully extended, so that the extension distance of the extensible component during extension is automatically controlled based on the shielding distance, the electronic equipment is prevented from being damaged while the extension is finished, and the extension control mode of the extensible component is enriched; and when the expandable component is expanded, according to the target distance between the gravity center position of the electronic equipment and the boundary of the support in the reference expansion path, the expansion is carried out when the target distance is smaller than a preset threshold value and the expansion is stopped when the target distance is larger than the preset threshold value, so that the damage caused by the falling of the electronic equipment due to the movement of the gravity center position in the expansion process of the electronic equipment is avoided.
Fig. 17 is a schematic view of a scenario of an expansion control system of an expandable component according to an embodiment of the present application. As shown in FIG. 17, the expansion control system of the expandable member can include an electronic device 100 including the expandable member and a covering 110.
The electronic device 100 may be an electronic device having an extended control function of an extensible component, including but not limited to: wearable devices, handheld devices, personal computers, tablet computers, in-vehicle devices, computing devices or other processing devices connected to a wireless modem, and the like. The user terminals may be called different names in different networks, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, Personal Digital Assistant (PDA), terminal equipment in a 5G network or future evolution network, and the like.
The electronic device 100 includes a plurality of expandable members, each of which may be the same or different in type, and the expandable members may be devices such as a display screen, a microphone, a camera, and an indicator light. For convenience of description, the following description will be made in detail by taking an expandable member as an example of the expandable display 1001 in fig. 17.
The flexible display screen is lighter, thinner, has stronger impact resistance than a conventional hard display screen, and has a feature of being able to be freely bent.
In the embodiment of the present application, all display screens capable of expanding the corresponding display area of the display described below are collectively referred to as an expandable display screen 1001. In other words, the expandable display 1001 uses at least one flexible display or a differentiated plurality of displays, and indicates a display capable of controlling the area of display. More specifically, in the case where the display area is expanded by adding display panels as needed in such a manner that a plurality of display panels are prepared, the plurality of display panels are collectively referred to as an expandable display screen 1001. Alternatively, in the case where the displayed area is expanded by flattening or rolling out the aforementioned flexible display screen, the flexible display screen may also be referred to as an expandable display screen 1001.
The shelter 110 can be understood as an object for sheltering the expandable part of the electronic device 100 from expansion, the shelter 110 can be any physical substance objectively existing in the natural world, in practical applications, the shelter 110 occupies a certain space, and refers to an object formed by substances, such as a wall, a table, a chair, a water cup, a flower vase and the like for sheltering the expandable part of the electronic device 100 from expansion, in this embodiment, the shelter 110 can be at least one of the above mentioned objects, and the shelter 110 is not particularly limited herein.
The electronic apparatus 100 receives an expansion instruction input by the user, and acquires an expansion distance of the expandable display 1001 along the reference expansion path s.
Specifically, when the electronic device 100 receives an expansion instruction input by the user, the expansion state of the expandable display 1001 and the maximum expansion distance of the expandable display 1001 along the reference expansion path s may be acquired. Typically the extended state includes an extended state and an unexpanded state. The electronic device 100 may determine the extended distance of the expandable display 1001 based on the extended state and the maximum extended distance. The method specifically comprises the following steps:
when the expanded state of the expandable display screen 1001 is the expanded state, the electronic device 100 may acquire an expanded distance corresponding to the expanded state of the expandable display screen 1001, for example, by acquiring a state parameter representing the expanded state, which is stored in the configuration file, related to the expandable display screen 1001, and analyzing the state parameter, it may acquire whether the expandable component is expanded and the expanded state when the expandable display screen 1001 is expanded, and if it is acquired that the expandable display screen 1001 of the electronic device 100 is in the expanded 1/4 state, the electronic device may determine the expanded distance corresponding to the expanded 1/4 state according to a corresponding relationship between the expanded state and the expanded distance, illustratively, assuming that the maximum expanded distance of the expandable display screen 1001 is 20cm, the expanded distance is 5 cm. Then, after acquiring the extended distance and the maximum extended distance of the expandable display screen 1001, the electronic device 100 may calculate a difference between the maximum extended distance and the extended distance, and determine the difference as the extended distance of the expandable display screen 1001.
The electronic device 100 obtains an occlusion distance d between the expandable display 1001 and the obstruction 110 on the reference expansion path s.
Specifically, the electronic device 100 controls the expandable display screen 1001 to expand along the reference expansion path, and when there is a shelter 110 on the reference expansion path, the electronic device 100 controls the expandable display screen 1001 to expand, which may cause damage to the electronic device 100, in this embodiment of the application, the electronic device 100 detects whether there is a shelter 110 on the reference expansion path of the expandable display screen 1001 through a measurement device included in the electronic device 100, and when there is a shelter 100, as shown in fig. 17, there is a shelter 110 on the reference expansion path of the expandable display screen 1001 in fig. 17, at this time, the electronic device 100 detects a shelter distance d between the electronic device 100 and the shelter 110 on the reference expansion path through the measurement device included in the electronic device 100.
It will be appreciated that the electronic device 100 is provided with measurement means which may be used for the electronic device 100 to monitor the obstruction on the reference expansion path s of the expandable display 1001 and for measuring the distance d between the expandable display 1001 of the electronic device and the obstruction 110 on the reference expansion path s. The measuring means may measure the length or area of the expandable display 1001 that has expanded to the outside of the electronic device 100 when in operation; and, the measuring means may also measure the area or length of the expandable display 1001 that has not yet expanded into the interior of the electronic device 100. And, in the case where the expandable display 1001 expands or contracts, the measuring means may measure the displacement value of the expanded or contracted expandable display 1001.
The electronic device 100 performs expansion control on the expandable display 1001 based on the expansion distance and the shielding distance d.
Specifically, the electronic device 100 determines whether the extended distance is smaller than the shielding distance d, and controls the expandable display screen 1001 to expand if the extended distance is smaller than the shielding distance d; if the extension distance is greater than or equal to the shielding distance d, controlling the expandable display screen 1001 to stop extending; and if the extension distance is greater than or equal to the shielding distance d, controlling the expandable display screen 1001 to extend by the shielding distance d.
The embodiment of the method for providing an expansion control system of an expandable element and the embodiment of the method for providing an expansion control of an expandable element belong to the same concept, and the embodiment of the method for embodying the implementation process can be seen in detail, and is not described herein again.
In the embodiment of the application, an extensible component of the electronic device is an extensible display screen, and when an extension instruction is received, the extension distance of the extensible display screen along a reference extension path is acquired, the shielding distance between the extensible display screen and a shielding object on the reference extension path is acquired, and the extensible display screen is subjected to extension control according to the extension distance and the shielding distance. Controlling whether the expandable member expands or not by considering whether or not a shield exists on the expansion path and a magnitude relation between a shield distance and an expansion distance when the shield exists: when the extension distance is smaller than the shielding distance, extending the expandable display screen; when the expansion distance is larger than or equal to the shielding distance, controlling the expandable display screen to stop expanding; the collision between the expandable display screen of the electronic equipment and the shielding object on the expansion path during expansion can be avoided, and further the damage to the electronic equipment caused by the collision is avoided; and when the extended distance is greater than or equal to the shielding distance, the electronic equipment can control the expandable display screen to expand the shielding distance, namely, the expandable display screen is not completely expanded, the extended distance of the expandable display screen is automatically controlled based on the shielding distance when the expandable display screen is expanded, the damage of the electronic equipment is avoided while the expansion is completed, and therefore the expansion control mode of the expandable display screen is enriched.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 18, a schematic structural diagram of an expansion control device of an expandable component according to an exemplary embodiment of the present application is shown. The expansion control means of the expandable element may be implemented as all or part of the apparatus by software, hardware or a combination of both. The device 1 includes an extended distance acquisition module 11, a shielding distance acquisition module 12, and a component extension control module 13.
An extended distance obtaining module 11, configured to receive an extended instruction, and obtain an extended distance of the extensible component along a reference extended path;
a shielding distance obtaining module 12, configured to obtain a shielding distance between the expandable component and a shielding object on the reference expansion path;
and a component expansion control module 13, configured to perform expansion control on the expandable component based on the expansion distance and the shielding distance.
Optionally, as shown in fig. 19, the component expansion control module 13 includes:
a distance determining unit 131, configured to determine whether the extended distance is smaller than the occlusion distance;
an expansion control unit 132 configured to control the expandable member to expand if the expansion distance is smaller than the shielding distance;
the expansion control unit 132 is further configured to control the expandable member to stop expanding if the expansion distance is greater than or equal to the shielding distance.
Optionally, the component expansion control module 13 includes:
the expansion control unit 132 is further configured to control the expandable member to expand by the shielding distance if the expansion distance is greater than or equal to the shielding distance.
Optionally, as shown in fig. 20, the extended distance obtaining module 11 includes:
an extension instruction receiving unit 111 is configured to receive an extension instruction input for an extension mode of an extensible component, and acquire an extension distance indicated by the extension mode and a reference extension path.
Optionally, as shown in fig. 20, the extended distance obtaining module 11 includes:
the extension instruction receiving unit 111 is further configured to receive an extension instruction, and obtain an extension state of an extensible component and a maximum extension distance of the extensible component along a reference extension path, where the extension state includes an extended state and an unexpanded state;
an extended distance determination unit 112, configured to determine an extended distance of the extensible member based on the extended state and the maximum extended distance.
Optionally, as shown in fig. 21, the extended distance determining unit 112 includes:
an extended distance acquisition unit 1121 configured to acquire an extended distance when the extended state is an extended state;
an extended distance determination unit 1122 for calculating a difference between the maximum extended distance and the extended distance, and determining the difference as the extended distance of the extensible component;
the extended distance determining unit 1122 is further configured to determine the maximum extended distance as the extended distance of the extensible member when the extended state is the non-extended state.
Optionally, as shown in fig. 22, the apparatus 1 further includes:
an actual extension path monitoring module 14 for monitoring an actual extension path of the expandable component;
a reference expansion path updating module 15, configured to, when the actual expansion path does not match the reference expansion path, take the actual expansion path as the reference expansion path, and perform the step of obtaining a shielding distance between the expandable component and a shielding object on the reference expansion path.
Optionally, the extended distance includes a first distance smaller than a distance threshold and a second distance larger than the distance threshold, as shown in fig. 22, the apparatus 1 further includes:
an expansion speed control module 16, configured to control the expandable element to expand at a first expansion speed within the first distance range;
the expansion speed control module 16 is further configured to control the expandable element to expand at a second expansion speed within the second distance range, where the first expansion speed is greater than the second expansion speed.
Optionally, as shown in fig. 22, the apparatus 1 further includes:
a target distance acquiring module 17 configured to acquire a target distance between a position of a center of gravity of the electronic device and a boundary of a support for supporting the electronic device at the reference extended path;
the component expansion control module 13 is further configured to, when the target distance is greater than a preset threshold, obtain a minimum distance between the target distance and the expansion distance, and control the expandable component to expand by the minimum distance;
the component expansion control module 13 is further configured to control the expandable component to stop expanding when the target distance is less than or equal to the preset threshold.
It should be noted that, when the expansion control device for an expandable component provided in the above embodiment executes the expansion control method for an expandable component, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. In addition, the expansion control device of the expandable component and the expansion control method embodiment of the expandable component provided in the above embodiments belong to the same concept, and details of implementation processes are shown in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the embodiment of the application, the electronic equipment receives an expansion instruction, obtains an expansion distance of an expandable component along a reference expansion path and a shielding distance between the expandable component and a shielding object on the reference expansion path, and expands the expandable component when the expansion distance is smaller than the shielding distance; when the expansion distance is larger than or equal to the shielding distance, controlling the expandable part to stop expanding; the collision between the expandable part of the electronic equipment and the shielding object on the expansion path can be avoided when the expandable part of the electronic equipment is expanded, so that the electronic equipment is prevented from being damaged; when the extension distance is greater than or equal to the shielding distance, the electronic equipment can control the extensible component to extend by the shielding distance, namely, the extensible component is not fully extended, so that the extension distance of the extensible component during extension is automatically controlled based on the shielding distance, the electronic equipment is prevented from being damaged while the extension is finished, and the extension control mode of the extensible component is enriched; and when the expandable component is expanded, according to the target distance between the gravity center position of the electronic equipment and the boundary of the support in the reference expansion path, the expansion is carried out when the target distance is smaller than a preset threshold value and the expansion is stopped when the target distance is larger than the preset threshold value, so that the damage caused by the falling of the electronic equipment due to the movement of the gravity center position in the expansion process of the electronic equipment is avoided.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method for controlling expansion of an expandable component according to the embodiment shown in fig. 1 to 17, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 17, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded by the processor and executes the method for controlling expansion of an expandable component according to the embodiment shown in fig. 1 to 17, where a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 17, and is not described herein again.
Please refer to fig. 23, which is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 23, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The processor 1001 may be implemented in the form of at least one of Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), Programmable logic Array (Programmable L organic Array, P L a), the processor 1001 may be implemented in the form of at least one of Digital Signal Processing (DSP), Digital Signal Processing (FPGA), Programmable logic Array (GPU), or a combination of one or more of a modem, wherein the CPU primarily handles operating systems, user interfaces, application programs, etc., the modem may be used to display content, render content, and render content for display, and the like, and the wireless Processing chip 1001 may be implemented in a separate communication device.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 23, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an extension control application of an extensible component.
In the electronic device 1000 shown in fig. 23, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke an extension control application of the extensible component stored in the memory 1005 and specifically perform the following operations:
receiving an expansion instruction, and acquiring the expansion distance of the expandable component along a reference expansion path;
acquiring a shielding distance between the expandable part and a shielding object on the reference expansion path;
and performing expansion control on the expandable component based on the expansion distance and the shielding distance.
In one embodiment, when performing the expansion control on the expandable element based on the expansion distance and the occlusion distance, the processor 1001 specifically performs the following operations:
judging whether the extended distance is smaller than the shielding distance;
if the expansion distance is smaller than the shielding distance, controlling the expandable component to expand;
and if the expansion distance is greater than or equal to the shielding distance, controlling the expandable component to stop expanding.
In one embodiment, the processor 1001, when executing the expansion control of the expandable element, specifically performs the following operations:
and if the expansion distance is larger than or equal to the shielding distance, controlling the expandable component to expand by the shielding distance.
In an embodiment, the processor 1001, when executing the receive extension instruction to obtain the extension distance of the extensible component along the reference extension path, specifically performs the following operations:
receiving an expansion instruction input aiming at an expansion mode of an expandable component, and acquiring an expansion distance indicated by the expansion mode and a reference expansion path.
In one embodiment, when executing the receive expansion instruction to obtain the expansion distance of the expandable element along the reference expansion path, the processor 1001 specifically performs the following operations:
receiving an expansion instruction, and acquiring an expansion state of an expandable component and a maximum expansion distance of the expandable component along a reference expansion path, wherein the expansion state comprises an expanded state and an unexpanded state;
determining an expansion distance of the expandable component based on the expansion state and the maximum expansion distance.
In one embodiment, the processor 1001, when performing the determining the extended distance of the extensible component based on the extended state and the maximum extended distance, specifically performs the following operations:
when the expansion state is the expanded state, acquiring the expanded distance;
calculating a difference between the maximum extension distance and the extended distance, and determining the difference as the extension distance of the extensible component;
determining the maximum extension distance as an extension distance of the extendable element when the extended state is an unexpanded state.
In one embodiment, after performing the expansion control on the expandable element, the processor 1001 further performs the following operations:
monitoring an actual expansion path of the expandable component;
and when the actual expansion path is not matched with the reference expansion path, taking the actual expansion path as the reference expansion path, and executing the step of acquiring the shielding distance between the expandable part and a shielding object on the reference expansion path.
In one embodiment, the expansion distance includes a first distance smaller than a distance threshold and a second distance larger than the distance threshold, and the processor 1001 specifically performs the following operations when performing the control of the expandable element to expand:
controlling the expandable member to expand at a first expansion speed within the first distance range;
and controlling the expandable component to expand at a second expansion speed within the second distance range, wherein the first expansion speed is greater than the second expansion speed.
In one embodiment, when executing the expansion control on the expandable element, the processor 1001 specifically executes the following steps:
acquiring a target distance between a gravity center position of the electronic equipment and a boundary of a support for supporting the electronic equipment on the reference expansion path;
when the target distance is larger than a preset threshold value, acquiring the minimum distance between the target distance and the expansion distance, and controlling the expandable component to expand at the minimum distance;
and when the target distance is smaller than or equal to the preset threshold value, controlling the expandable component to stop expanding.
In the embodiment of the application, the electronic equipment receives an expansion instruction, obtains an expansion distance of an expandable component along a reference expansion path and a shielding distance between the expandable component and a shielding object on the reference expansion path, and expands the expandable component when the expansion distance is smaller than the shielding distance; when the expansion distance is larger than or equal to the shielding distance, controlling the expandable part to stop expanding; the collision between the expandable part of the electronic equipment and the shielding object on the expansion path can be avoided when the expandable part of the electronic equipment is expanded, so that the electronic equipment is prevented from being damaged; when the extension distance is greater than or equal to the shielding distance, the electronic equipment can control the extensible component to extend by the shielding distance, namely, the extensible component is not fully extended, so that the extension distance of the extensible component during extension is automatically controlled based on the shielding distance, the electronic equipment is prevented from being damaged while the extension is finished, and the extension control mode of the extensible component is enriched; and when the expandable component is expanded, according to the target distance between the gravity center position of the electronic equipment and the boundary of the support in the reference expansion path, the expansion is carried out when the target distance is smaller than a preset threshold value and the expansion is stopped when the target distance is larger than the preset threshold value, so that the damage caused by the falling of the electronic equipment due to the movement of the gravity center position in the expansion process of the electronic equipment is avoided.
"Unit" and "module" in this specification refer to software and/or hardware that can perform a particular function, either independently or in conjunction with other components, such as a Field Programmable Gate Array (FPGA), Integrated Circuit (IC), etc.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program, which is stored in a computer-readable memory, and the memory may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure should not be limited thereby. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure are intended to be included within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (12)

1. An expansion control method of an expandable component, applied to an electronic device, the method comprising:
receiving an expansion instruction, and acquiring the expansion distance of the expandable component along a reference expansion path;
acquiring a shielding distance between the expandable part and a shielding object on the reference expansion path;
and performing expansion control on the expandable component based on the expansion distance and the shielding distance.
2. The method of claim 1, wherein the expansion controlling the expandable member based on the expansion distance and the occlusion distance comprises:
judging whether the extended distance is smaller than the shielding distance;
if the expansion distance is smaller than the shielding distance, controlling the expandable component to expand;
and if the expansion distance is greater than or equal to the shielding distance, controlling the expandable component to stop expanding.
3. The method of claim 2, further comprising:
and if the expansion distance is larger than or equal to the shielding distance, controlling the expandable component to expand by the shielding distance.
4. The method according to claim 1, wherein the receiving an expansion instruction and obtaining an expansion distance of the expandable element along a reference expansion path comprises:
receiving an expansion instruction input aiming at an expansion mode of an expandable component, and acquiring an expansion distance indicated by the expansion mode and a reference expansion path.
5. The method according to claim 1, wherein the receiving an expansion instruction and obtaining an expansion distance of the expandable element along a reference expansion path comprises:
receiving an expansion instruction, and acquiring an expansion state of an expandable component and a maximum expansion distance of the expandable component along a reference expansion path, wherein the expansion state comprises an expanded state and an unexpanded state;
determining an expansion distance of the expandable component based on the expansion state and the maximum expansion distance.
6. The method of claim 5, wherein determining the extended distance of the extensible component based on the extended state and the maximum extended distance comprises:
when the expansion state is the expanded state, acquiring the expanded distance;
calculating a difference between the maximum extension distance and the extended distance, and determining the difference as the extension distance of the extensible component;
determining the maximum extension distance as an extension distance of the extendable element when the extended state is an unexpanded state.
7. The method of claim 1, wherein after the expansion controlling the expandable element, further comprising:
monitoring an actual expansion path of the expandable component;
and when the actual expansion path is not matched with the reference expansion path, taking the actual expansion path as the reference expansion path, and executing the step of acquiring the shielding distance between the expandable part and a shielding object on the reference expansion path.
8. The method of claim 2, wherein the expansion distance comprises a first distance less than a distance threshold and a second distance greater than the distance threshold, the controlling the expandable member to expand comprising:
controlling the expandable member to expand at a first expansion speed within the first distance range;
and controlling the expandable component to expand at a second expansion speed within the second distance range, wherein the first expansion speed is greater than the second expansion speed.
9. The method of claim 1, wherein the expansion controlling the expandable element comprises:
acquiring a target distance between a gravity center position of the electronic equipment and a boundary of a support for supporting the electronic equipment on the reference expansion path;
when the target distance is larger than a preset threshold value, acquiring the minimum distance between the target distance and the expansion distance, and controlling the expandable component to expand at the minimum distance;
and when the target distance is smaller than or equal to the preset threshold value, controlling the expandable component to stop expanding.
10. An expansion control device for an expandable member, the device comprising:
the extended distance acquisition module is used for receiving the extended instruction and acquiring the extended distance of the extensible component along the reference extended path;
the shielding distance acquisition module is used for acquiring a shielding distance between the expandable part and a shielding object on the reference expansion path;
and the component expansion control module is used for carrying out expansion control on the expandable component based on the expansion distance and the shielding distance.
11. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 9.
12. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 9.
CN202010174079.5A 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment Active CN111400207B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202310885672.4A CN116860667A (en) 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment
CN202010174079.5A CN111400207B (en) 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment
PCT/CN2021/073053 WO2021179802A1 (en) 2020-03-13 2021-01-21 Extension control method and apparatus for extensible component, and storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010174079.5A CN111400207B (en) 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310885672.4A Division CN116860667A (en) 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111400207A true CN111400207A (en) 2020-07-10
CN111400207B CN111400207B (en) 2023-11-10

Family

ID=71432472

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310885672.4A Pending CN116860667A (en) 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment
CN202010174079.5A Active CN111400207B (en) 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310885672.4A Pending CN116860667A (en) 2020-03-13 2020-03-13 Expansion control method and device of expandable component, storage medium and electronic equipment

Country Status (2)

Country Link
CN (2) CN116860667A (en)
WO (1) WO2021179802A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021179802A1 (en) * 2020-03-13 2021-09-16 Oppo广东移动通信有限公司 Extension control method and apparatus for extensible component, and storage medium, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259649A (en) * 2018-02-09 2018-07-06 西安中兴新软件有限责任公司 A kind of mobile terminal, control system and control method
CN108989644A (en) * 2018-08-10 2018-12-11 维沃移动通信有限公司 A kind of camera control method and terminal
CN109089023A (en) * 2018-07-27 2018-12-25 维沃移动通信有限公司 A kind of terminal and control method
CN109542575A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Screen extended method, system, mobile terminal and computer readable storage medium
CN109639866A (en) * 2019-01-28 2019-04-16 维沃移动通信有限公司 A kind of display methods and terminal
CN110418000A (en) * 2019-07-24 2019-11-05 RealMe重庆移动通信有限公司 Terminal control method, device, mobile terminal and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005061899A (en) * 2003-08-08 2005-03-10 Nec Saitama Ltd Distance measurement method by cellular phone
CN108942914B (en) * 2017-06-09 2021-04-06 北京猎户星空科技有限公司 Robot obstacle avoidance processing method and device and robot
CN110299865B (en) * 2019-06-20 2021-05-11 Oppo广东移动通信有限公司 Electronic device, control method of electronic device, and storage medium
CN116860667A (en) * 2020-03-13 2023-10-10 Oppo广东移动通信有限公司 Expansion control method and device of expandable component, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259649A (en) * 2018-02-09 2018-07-06 西安中兴新软件有限责任公司 A kind of mobile terminal, control system and control method
CN109089023A (en) * 2018-07-27 2018-12-25 维沃移动通信有限公司 A kind of terminal and control method
CN108989644A (en) * 2018-08-10 2018-12-11 维沃移动通信有限公司 A kind of camera control method and terminal
CN109542575A (en) * 2018-11-29 2019-03-29 努比亚技术有限公司 Screen extended method, system, mobile terminal and computer readable storage medium
CN109639866A (en) * 2019-01-28 2019-04-16 维沃移动通信有限公司 A kind of display methods and terminal
CN110418000A (en) * 2019-07-24 2019-11-05 RealMe重庆移动通信有限公司 Terminal control method, device, mobile terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021179802A1 (en) * 2020-03-13 2021-09-16 Oppo广东移动通信有限公司 Extension control method and apparatus for extensible component, and storage medium, and electronic device

Also Published As

Publication number Publication date
CN116860667A (en) 2023-10-10
CN111400207B (en) 2023-11-10
WO2021179802A1 (en) 2021-09-16

Similar Documents

Publication Publication Date Title
CN109491541B (en) Control method and mobile terminal
CN108958633B (en) Split screen display method and device, storage medium and electronic equipment
CN108390964B (en) Camera protection method and mobile terminal
CN109361865B (en) Shooting method and terminal
CN109388220B (en) Power supply management method and mobile terminal
CN108055408B (en) Application program control method and mobile terminal
CN108089891B (en) Application program starting method and mobile terminal
CN109068055B (en) Composition method, terminal and storage medium
CN108848313B (en) Multi-person photographing method, terminal and storage medium
CN107407945A (en) From the system and method for screen locking capture images
CN107257404A (en) Apparatus control method and device
CN109634688B (en) Session interface display method, device, terminal and storage medium
KR20170102655A (en) Method and terminal for controlling brightness of screen and computer-readable recording medium
CN111405110A (en) Screen control method and device, storage medium and mobile terminal
CN113452834B (en) Display method and device, storage medium and electronic equipment
CN108174109A (en) A kind of photographic method and mobile terminal
CN111683329A (en) Microphone detection method, device, terminal and storage medium
CN111400207A (en) Expansion control method and device for expandable component, storage medium and electronic equipment
CN111158485A (en) Screen control method and electronic equipment
CN108196699B (en) Page switching method and equipment
CN108924413B (en) Shooting method and mobile terminal
JP7413546B2 (en) Photography method and electronic equipment
CN108984099A (en) A kind of man-machine interaction method and terminal
CN110958387B (en) Content updating method and electronic equipment
CN109254710B (en) Screen rotation method and device, terminal equipment and computer readable storage medium

Legal Events

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