WO2021179802A1 - 可扩展部件的扩展控制方法、装置、存储介质及电子设备 - Google Patents

可扩展部件的扩展控制方法、装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2021179802A1
WO2021179802A1 PCT/CN2021/073053 CN2021073053W WO2021179802A1 WO 2021179802 A1 WO2021179802 A1 WO 2021179802A1 CN 2021073053 W CN2021073053 W CN 2021073053W WO 2021179802 A1 WO2021179802 A1 WO 2021179802A1
Authority
WO
WIPO (PCT)
Prior art keywords
expansion
distance
expandable component
electronic device
path
Prior art date
Application number
PCT/CN2021/073053
Other languages
English (en)
French (fr)
Inventor
陈彪
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021179802A1 publication Critical patent/WO2021179802A1/zh

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

Definitions

  • This application relates to the field of computer technology, and in particular to an expansion control method, device, storage medium, and electronic equipment of an expandable component.
  • electronic devices such as mobile phones and tablets are becoming more and more common, which greatly facilitates people's lives.
  • electronic devices are usually equipped with expandable components.
  • electronic devices can adopt expandable display screens, which can bring users a better visual experience by controlling the expansion of the display screen; electronic devices can also The use of an expandable camera allows the user to control the camera to expand when the user uses an electronic device to take a picture, so as to bring the user a better photographing experience, and so on.
  • the embodiments of the present application provide an expansion control method, device, storage medium, and electronic equipment of an expandable component, which can prevent the expandable component of the electronic device from colliding with a shield, thereby avoiding damage to the electronic device.
  • the technical solution is as follows:
  • an embodiment of the present application provides an expansion control method of an expandable component, and the method includes:
  • the expandable component is controlled to expand.
  • an expansion control device for an expandable component including:
  • the expansion distance acquisition module is used to receive expansion instructions and acquire the expansion distance of the expandable component along the reference expansion path;
  • An obscuration distance acquisition module configured to acquire an obscuration distance between the expandable component and an obstruction on the reference expansion path
  • the component expansion control module is configured to perform expansion control on the expandable component based on the expansion distance and the shielding distance.
  • an embodiment of the present application provides a computer storage medium that stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above method steps.
  • 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, and the computer program is adapted to be loaded by the processor and execute the above method steps .
  • FIG. 1 is a schematic flowchart of an expansion control method of an expandable component provided by an embodiment of the present application
  • FIG. 2a is a schematic diagram of a scene before an electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application before expansion;
  • FIG. 2b is a schematic diagram of a scenario in which an electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application is expanded according to a reference expansion path;
  • FIG. 3a is a schematic diagram of another unexpanded scene of another electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application;
  • FIG. 3b is a schematic diagram of a scenario in which another electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application is expanded according to a reference expansion path;
  • FIG. 4 is a schematic diagram of an interface for setting an expandable component of an electronic device related to the method for controlling the expansion of an expandable component provided by an embodiment of the present application;
  • FIG. 5 is a schematic diagram of an extensible component management interface involved in the expansion control method of an extensible component provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of a scene in which an expandable component is a flexible display screen involved in an expandable control method for an expandable component provided by an embodiment of the present application;
  • FIG. 7 is a schematic diagram of a scene of an expandable component of an electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application;
  • FIG. 8 is a schematic diagram of a scene when an expandable component of an electronic device related to an expandable component expansion control method provided by an embodiment of the present application is expanded;
  • FIG. 9 is a schematic diagram of a scene of an electronic device and a support involved in the expansion control method of an expandable component provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another electronic device and support involved in the expansion control method of an expandable component provided by an embodiment of the present application;
  • FIG. 11 is a schematic flowchart of another expansion control method of an expandable component provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a scene in which an expandable component is a flexible display screen involved in an expandable control method for an expandable component provided by an embodiment of the present application;
  • FIG. 13 is a schematic diagram of a scene in which an expandable component is an expandable camera involved in an expandable control method for an expandable component provided by an embodiment of the present application;
  • FIG. 14 is a schematic diagram of a camera interface of an electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application;
  • FIG. 15a is a schematic diagram of a scenario in which an electronic device outputs prompt information related to an expansion control method of an expandable component provided by an embodiment of the present application;
  • FIG. 15b is a schematic diagram of an expansion scenario of an electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application;
  • FIG. 16 is a schematic diagram of a scene of a posture change of an electronic device involved in the expansion control method of an expandable component provided by an embodiment of the present application;
  • FIG. 17 is a schematic diagram of a scenario architecture of an expanded control system of an expandable component provided by an embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of an expansion control device for an expandable component provided by an embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of a component expansion control module provided by an embodiment of the present application.
  • FIG. 20 is a schematic structural diagram of an extended distance acquiring module provided by an embodiment of the present application.
  • FIG. 21 is a schematic structural diagram of an extended distance determining unit provided by an embodiment of the present application.
  • FIG. 22 is a schematic structural diagram of another expansion control device of an expandable component provided by an embodiment of the present application.
  • FIG. 23 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • plural means two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects before and after are in an "or” relationship.
  • an electronic device when an electronic device receives an expansion instruction for an expandable component, it can control the expandable component (such as a camera, a display screen, a microphone, and other expandable components) to expand along a set expansion path, but when there is an expansion path When an obstruction is applied, it will cause the expandable component to collide with the obstruction during the expansion process, thereby causing damage to the electronic device.
  • the expandable component such as a camera, a display screen, a microphone, and other expandable components
  • an expansion control method of expandable components is specially proposed.
  • the method can be realized by a computer program, can be realized by a single-chip microcomputer, or can be run based on a von Neumann system.
  • the computer program can be integrated in the application or run as an independent tool application.
  • the expansion control method of the expandable component includes:
  • Step 101 Receive an expansion instruction, and obtain an expansion distance of an expandable component along a reference expansion path.
  • the instructions are instructions and commands for directing the work of the electronic device, and can be understood as codes that specify the execution of a certain operation or a certain control realized by a function.
  • the expansion instruction can be understood as a code that instructs the electronic device to execute the control of the expandable component to perform the expansion control function. By executing the code, the electronic device can first obtain the expansion distance of the expandable component along the reference expansion path .
  • the expansion path may be a full route of the expandable component from the start point before expansion to the end point after expansion in an ideal state (that is, without interference from interference factors such as obstructions), and the expansion path is based on actual expansion control needs It can be a linear expansion path or a curvilinear expansion path.
  • the reference expansion path in the embodiments of this application can be understood as: the reference expansion route of a pre-specified expandable component during expansion.
  • the electronic component is in the control station.
  • the expandable component is controlled to expand to the end indicated by the reference expansion path based on the starting point indicated by the reference expansion path.
  • the expansion distance can be understood as the connecting distance of the expandable component from the start point before the expansion to the end point after the expansion on the reference expansion path, that is, the physical distance from the start point before the expansion to the end point after the expansion.
  • the extension distance is usually less than or equal to the reference extension distance indicated by the reference extension path, and the reference extension distance can be understood as: a predetermined distance between the start point and the end point indicated by the reference extension route.
  • Figure 2a is a schematic diagram of a scene before an electronic device is expanded
  • Figure 2b is a schematic diagram of a scene after an electronic device is expanded according to a reference expansion path.
  • the electronic device can be expanded
  • the components are shown in the dashed box in Figure 2a.
  • Figure 2b is the scene after the electronic device controls the expandable component to expand according to the reference expansion path.
  • the expandable component expands from the starting point before the expansion to the reference expansion path in the horizontal direction indicated by the reference expansion path.
  • the entire route from the start point before the expansion to the end point after the expansion is shown in Figure 2b as shown in the solid-line box "Reference Expansion Path A".
  • the expansion path is a linear expansion path according to the actual expansion control needs.
  • the extension distance is usually all or part of the maximum extension distance indicated by the reference extension path. For example, when the extension instruction received by the electronic device indicates that the expandable component extends half the path indicated by the reference extension path, then the extension distance is the reference The distance of 1/2 of the maximum expansion distance indicated by the expansion path.
  • FIG. 3a is a schematic diagram of a scene before an electronic device is expanded
  • FIG. 3b is a schematic diagram of a scene after an electronic device is expanded according to a reference expansion path
  • FIG. 3a is a top view of the electronic device.
  • the expandable part of the electronic device is shown in the dashed box in Figure 3a, and Figure 3b is the scene after the electronic device controls the expandable part to expand according to the reference expansion path; controls the expandable part to follow the curve direction indicated by the reference expansion path from the starting point before expansion Extend to the end indicated by the reference extension path, and the entire route from the start point before the extension to the end point after the extension is shown in the dashed box "reference extension path B" in Fig. 3b.
  • the extension path is the same as the type of the extension path in Fig. 2b.
  • the expansion path is a curved expansion path as shown in the figure according to the actual expansion control needs, wherein the expansion distance is usually all or part of the maximum expansion distance indicated by the reference expansion path.
  • the user may input an expansion instruction to the electronic device for the expandable components included in the electronic device.
  • the number of the expandable components can be multiple, and the types of the expandable components can be the same or different.
  • the expandable components can be display screens, microphones, cameras, indicator lights, etc.
  • the electronic device displays an icon of "expandable component switch" on the current display interface
  • the electronic device includes a display screen
  • the display screen has a function of sensing a user's touch operation.
  • the structure of the display screen includes at least 4 parts: the screen glass layer, the sensor film, the display panel layer, and the controller board.
  • the sensor film has a touch sensor layer and contains a variety of sensors, such as pressure sensors, position sensors, and so on.
  • the position parameter is processed, and it is recognized that the icon of the "expandable component switch” on the display interface corresponding to the position parameter is touched, and the user inputs the object to the electronic device by touching the icon of the "expandable component switch” Expansion instructions for expandable components.
  • Figure 4 is a schematic diagram of the interface for setting the expandable components of an electronic device.
  • the display of the electronic device obtains the position parameters of the touch "icon A" through the position sensor in the sensor film, and then processes the position parameters to identify
  • the electronic device detects the user's extended instruction for the "expandable component switch"-icon A on the current display interface.
  • the electronic device By reading and executing the machine executable instructions corresponding to the control logic of turning on the "expandable component switch"-icon A, and specifically executing the code that controls the expandable component to perform the expansion control function, the electronic device obtains the expandable component along the reference expansion path Extend the distance. It is understandable that the electronic device pre-stores the configuration file of the expandable component, and after receiving the expansion instruction, the electronic device can obtain the reference expansion path of the expandable component and the reference expansion path along the reference expansion path in the locally stored configuration file. Extend the distance.
  • the configuration file of the expandable component pre-stored by the electronic device may be a configuration file containing the relevant configuration parameters of the expandable component preset when the electronic device leaves the factory; For example, the user can select the configuration button of "Extended Component Management" in the interface shown in Figure 4 through finger touch, and enter the "Extended Component Management" interface to make settings.
  • Figure 5 is a schematic diagram of an expandable component management interface.
  • the user can set the expansion distance, reference expansion path, expansion duration, and expansion lighting effects for the expandable component.
  • the user can set the extension distance to 8cm, the reference extension path to the path 2, the extension duration to 100ms, the extended lighting effect to the "colorful" type, and so on.
  • the extension instruction received by the electronic device may be completed by an external device.
  • the user may select the "expandable component switch" on the display interface of the electronic device through a mouse connected to the electronic device-the extension input by icon A Instruction; it can be the user inputting the corresponding instruction through the keyboard or touch panel connected to the electronic device; it can be the extension instruction of the user to turn on the switch of the expandable component through voice input (for example, the voice input turns on the expandable component-display screen, etc.; it can be the user
  • the gesture control instruction collected by the camera completes the input of the expansion instruction of the expandable component, and it may also be the expansion instruction for the expandable component input through the physical keys (power on/off key, volume up and down keys, etc.) of the touch electronic device.
  • Step 102 Obtain the shielding distance between the expandable component and the shielding object on the reference expansion path.
  • the shielding distance may be understood as the physical distance between the expandable component and the shield on the reference expansion path.
  • the electronic device controls the expandable component to expand along the reference expansion path.
  • the electronic device controls the expandable component to expand, which may cause damage to the expandable component of the electronic device.
  • the electronic device detects whether there is an obstruction on the reference expansion path of the expandable component through the included measuring device, and when there is an obstruction, obtains the distance between the electronic device and the obstruction on the reference expansion path Blocking distance.
  • the expandable component is a flexible display screen, as shown in FIG. 6, which is a schematic diagram of a scene where the expandable component is a flexible display screen.
  • the flexible screen can be wound and stored on the central axis in the storage housing of the electronic device, and one end of the flexible screen is configured to be outside the flexible screen extension; when the electronic device is in use, that is, the electronic device receives the expansion instruction, In response to the expansion instruction, the expansion distance of the expandable component-flexible display screen along the reference expansion path can be obtained, and the measuring device on the electronic device can be controlled to detect whether there are obstructions on the reference expansion path of the expandable component, and measure Upon detection, the device detects that there is a cylindrical obstruction A along the reference expansion path, and that the obstruction distance between the electronic device and the cylindrical obstruction A on the reference expansion path is a cm.
  • the obstruction on the reference expansion path can be understood as: the measuring device on the electronic device can monitor the obstruction in the reference expansion path and within the monitoring range of the measuring device, or it can monitor the obstruction on the extension line of the reference expansion path and The obstructions within the monitoring range of the measuring device are monitored.
  • the electronic device is equipped with a measuring device, which can be used for the electronic device to monitor the obstruction on the reference expansion path of the expandable component, and to measure the distance between the expandable component of the electronic device and the obstruction on the reference expansion path.
  • a measuring device can measure the length or area of the expandable component that has been expanded to the outside of the electronic device; and the measuring device can also measure the area or length of the expandable component that has not been expanded to the inside of the electronic device.
  • the measuring device can measure the displacement value of the expanded or reduced display screen.
  • the measurement device can be configured with corresponding devices according to the actual application environment, such as touch sensors, infrared/ultraviolet sensors, phototransistors, light guide elements, position sensitive detectors, gyroscopes, gyroscope sensors, strain gauges, and laser length measurement
  • a sensor a potentiometer, a sensor capable of measuring at least one of measuring sensors of stroke length, length, angular velocity, expansion velocity, instant velocity, and average velocity.
  • the measuring device may not be limited to the aforementioned sensors and may include all sensing devices capable of measuring length and area.
  • the measuring device can be located at various positions of the device, such as the housing unit, the expandable part itself, the side of the expandable part, and the like.
  • the measurement method can be distinguished according to the position of the measuring device or the type of sensor of the measuring device.
  • Step 103 Perform expansion control on the expandable component based on the expansion distance and the shielding distance.
  • the electronic device pre-stores the corresponding relationship between the expansion distance, the occlusion distance, and the expansion control mode. After the electronic device determines the expansion distance and the occlusion distance, it can determine whether to control the expandable component to expand at the expansion distance, which can be specifically based on The corresponding relationship determines a target expansion control mode that matches the determination of the expansion distance and the occlusion distance, and then performs expansion control on the expandable component in the target expansion control mode.
  • the corresponding relationship between the extended distance, the shielding distance, and the extended control mode may be: when the extended distance is less than the shielding distance, the electronic device expands based on the extended distance.
  • expandable components such as display screens, cameras, microphones, etc.
  • the electronic device can determine that the target expansion control method is: controlling the expandable component to expand at the expansion distance; when the expansion distance is greater than or equal to the obstruction distance, the electronic device performs operation based on the expansion distance
  • expandable components such as display screens, cameras, microphones, etc.
  • the electronic device can determine the target expansion control method as: controlling the expandable components to stop the expansion.
  • the electronic device when the expansion distance of the electronic device is greater than or equal to the blocking distance, the electronic device expands based on the expansion distance, and usually expandable components (such as display screens, cameras, microphones, etc.) will collide with the blocking objects. At this time, the electronic device may output prompt information to remind the user to stop the expansion of the expandable component.
  • the prompt information may be displayed in the form of pictures, text, audio, and the like.
  • the way for the electronic device to output the prompt information may be in the form of voice output.
  • the electronic device may broadcast the audio of "The current expansion path of the expandable component has detected an obstruction and the expansion has stopped"; it may be In the form of vibration, for example, the electronic device can call the internal vibration motor to prompt with a specific vibration frequency; it can also be the reminder light included in the electronic device to output prompt information (such as: breathing light, flashing light, fill light), etc. form.
  • the electronic device invokes the included indicator light to output the prompt information.
  • the electronic device can control the flashing of the indicator light by calling the software/hardware interface corresponding to the indicator light; further, the electronic device is currently expandable
  • a hierarchical reminder can be made based on the distance of the obstruction, and the indicator light can be configured according to the obstruction level according to the obstruction level corresponding to the determined obstruction distance to flash different types of indicators.
  • the electronic device configures the indicator light by configuring the relevant parameters of the reminder light node of each color light on the electronic device system kernel.
  • the relevant parameters include the level state of the reminder light and the status of the reminder light. Brightness value, flashing frequency of reminder lights, etc., further configure related parameters to realize flashing different types of indicator lights, so as to achieve better reminder effect, so as to remind the user that there are obstructions on the reference expansion path of the current expandable component.
  • the electronic device can determine the target expansion control method at this time: controlling the expandable component to expand at the expansion distance; during the expansion of the expandable component, The electronic device can monitor the current motion state along the reference expansion path; it is understandable that when the expansion component is expanded, the user may hold the electronic device to move relative to the obstruction along the reference expansion path, and at this time Due to the change of the shielding distance between the extension component of the electronic device and the shield in the reference extension path, it will collide with the upper shield and damage the electronic device.
  • the motion sensor included in the electronic device can monitor the current motion state along the reference expansion path, and the motion state may be monitoring the motion speed, motion distance, motion acceleration, etc. of the local end (ie, the electronic device).
  • the expansion process of the expandable component is monitored based on the motion state of the electronic device. For example, according to the motion state, whether it will collide with an obstruction during the expansion process and damage the electronic device.
  • One calculation method is to assume that the electronic device is free from external interference.
  • the electronic device calculates whether the unexpanded distance of the expandable part of the electronic device is less than the actual shielding distance from the obstruction during the time t.
  • the electronic device can output prompt information for extended early warning to remind the user to adjust the state of the electronic device.
  • the prompt information may be displayed in the form of pictures, text, audio, and the like.
  • Figure 7 is a schematic diagram of a scene of an expandable component of an electronic device.
  • the expandable component of the electronic device in Figure 7 is an expandable camera.
  • the electronic device can be driven by a drive connected to the expandable camera.
  • the motor is controlled, when the electronic device works by controlling the drive motor to drive the expandable component-the expandable camera for expansion.
  • the electronic device in FIG. 7 is a scene after the expansion of the expandable camera is controlled along the reference expansion path.
  • Figure 8 is a schematic diagram of a scene when the expandable component of an electronic device is expanded.
  • the expansion completion time of the electronic device without external interference is assumed to be 30s.
  • the motion sensor monitors the local end (ie, the electronic device).
  • Motion parameters (such as motion speed), combined with the motion speed, calculate whether the unexpanded distance of the expandable part of the electronic device is less than the actual shielding distance from the obstruction within 30s of time. Through calculation, there is a point in time within 30s of time. For example, at the 28th second, the unexpanded distance of the expandable component is less than the actual shielding distance from the obstruction.
  • the electronic device can extend the warning in advance, and the electronic device can output prompt information for extended warning to remind the user to adjust the state of the electronic device. If the electronic device can give voice reminders, such as a voice broadcast, "The current electronic device is moving faster on the reference extension path and will collide with the obstruction on the reference extension path at the xxth second. Please adjust the status of the electronic device ( Such as stay away from obstructions)" to remind users.
  • 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.
  • the electronic device when a user uses an electronic device, the electronic device may be placed on a support such as a desk, a dining table, a chair, a sofa, etc.
  • a support such as a desk, a dining table, a chair, a sofa, etc.
  • the electronic device controls an expandable component to expand it may be possible Since the electronic device is placed close to the boundary of the support, and the center of gravity of the electronic device changes during the expansion of the expandable component, when the center of gravity is close to the boundary of the support, the electronic device may fall.
  • the electronic device detects the position of the center of gravity of the electronic device through the included gravity sensor.
  • other posture data of the electronic device such as the angle change value, can also be obtained.
  • an electronic device can measure the acceleration due to gravity through a gravity sensor to obtain the center of gravity of the electronic device.
  • the gravity sensor can detect the changing position of the center of gravity.
  • the specific determination of the position of the center of gravity can refer to the method of determining the center of gravity based on the gravity sensor in the coherent technology, which will not be repeated here.
  • FIG. 9 is a schematic diagram of a scene of an electronic device and a support.
  • the electronic device is placed on the support-table.
  • the electronic device receives the extension instruction input by the user.
  • the gravity sensor can be used to measure the center of gravity position of the local end, as shown in Figure 9, and detect the target distance d between the center of gravity position and the boundary of the reference expansion path.
  • the electronic device can usually set A distance threshold (such as 20cm), by comparing the size of the target distance and the distance threshold, to determine the actual expansion distance in the next step, as follows:
  • the electronic device judges that when the target distance d is greater than the preset threshold, the electronic device usually does not fall if it is extended by the extended distance. At this time, the electronic device can obtain the minimum distance between the target distance and the extended distance, and control all The expandable component is expanded at the minimum distance. It can be understood that when the electronic device is placed on the support, the electronic device controls the expandable component at the expanded distance to expand and usually does not fall. At this time, the target distance is usually greater than Extend the distance. At this time, the electronic device uses the smaller extension distance between the two to expand.
  • the electronic device judges that when the target distance d is less than or equal to the preset threshold, at this time, if the electronic device is extended by the extended distance, the electronic device may usually fall, causing damage to the electronic device. At this time, the electronic device can control the The expandable part stops expanding.
  • the electronic device controls the expandable component to expand along the reference expansion path, it can prevent the electronic device from being damaged due to the unstable center of gravity during the process of controlling the expandable component to expand.
  • the aforementioned preset threshold is usually slightly larger than the maximum expansion distance of the expandable component, and the actual preset threshold is specifically determined according to the actual application environment to collect a large number of sample data and analysis, which is not specifically limited here.
  • the electronic device can monitor the real-time change of the center of gravity position of the electronic device during the process of controlling the expandable component to expand, and measure the target distance between the center of gravity position and the boundary of the support in real time.
  • a certain set threshold for example, 1 cm
  • the electronic device can control the expandable component to stop expanding.
  • the set threshold may be slightly greater than 0, that is, when the expandable component is close to the boundary of the support, the expandable component is controlled to stop expanding.
  • Fig. 10 is a schematic diagram of another scene of an electronic device and a support.
  • the three-dimensional coordinate system (X, Y, Z) of the terminal can be preset in the electronic device, and the specific setting method is different for different Electronic equipment may be different.
  • the three-dimensional coordinate system of the electronic equipment is set to, when the terminal is placed vertically, 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 Z
  • the positive direction of the axis is from inside to outside, and 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 can monitor the position of the center of gravity in real time or at intervals of a certain period (such as 10ms), and detect the target distance S1, S2, S3...Sn between the position of the center of gravity and the boundary of the support at the current time.
  • the target distance s corresponding to a certain point in time is less than or equal to the set threshold (for example, 1cm)
  • the electronic device continues to control the expandable component for expansion, and there is a risk of falling.
  • the electronic device controls the expandable component to stop expanding .
  • the set threshold for example, 1 cm
  • the electronic device can continue to control the expandable component to expand until the expandable component reaches the current expansion distance, the expansion ends.
  • the electronic device receives the expansion instruction, obtains the expansion distance of the expandable component along the reference expansion path, and obtains the shielding distance between the expandable component and the obstruction on the reference expansion path, according to the The expansion distance and the shielding distance are used to control the expansion of the expandable component.
  • the expansion of the expandable component can be controlled, which can effectively avoid the expansion of the expandable component and the expansion path.
  • the blocking objects collide, thereby avoiding damage to the electronic equipment.
  • FIG. 11 is a schematic flowchart of another embodiment of an expansion control method of an expandable component proposed in the present application.
  • the number of the expandable components can be multiple, and the types of the expandable components can be the same or different.
  • the expandable component can be at least one of a display screen, a microphone, a camera, an indicator light, etc.
  • the following uses expandable components as the display screen for detailed explanation. specific:
  • Step 201 Receive an expansion instruction, obtain the expansion status of the expandable component and the maximum expansion distance of the expandable component along the reference expansion path.
  • the expanded state includes an expanded state and an unexpanded state.
  • the display screen may be a flexible display screen, that is, a display screen manufactured on a flexible panel that can be twisted, bent, and rotated without losing display characteristics.
  • the flexible display is also called electronic paper.
  • the flexible display screen is lighter and thinner, has stronger impact resistance than a conventional hard display screen, and has the feature of being able to bend freely.
  • the expandable component on the electronic device as shown in FIG. 6 is the flexible display screen.
  • the panel can be made of metal foil, ultra-thin glass or plastic panel. Specifically, in the case of plastic panels, PC panels, PET panels, PES panels, PI panels, PEN panels, AryLite panels, etc. can be used.
  • the expandable display screen uses at least one flexible display screen or separate multiple display screens, and indicates a display screen capable of controlling the displayed area. More specifically, in the case where the display area is expanded by adding display panels in a manner of preparing multiple display panels as needed, the multiple 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 called an expandable display screen.
  • the expanded state is used to characterize the degree of expansion of the current expandable component.
  • the expanded state includes an expanded state and an unexpanded state.
  • the expanded distance of the expandable component is usually an initial value, such as an initial value of 0; it is understandable that the expandable component of the electronic device may be in a partially expanded state before the expandable component of the electronic device is expanded.
  • the expandable part of the electronic device-the expandable display screen is in the expanded 1/4 state, and the user can input the expansion command by touching the finger on the current expandable display screen in the "expanded 1/4 state", and so on.
  • the maximum expansion distance can be understood as the expansion distance corresponding to the expansion of all the expandable components of the electronic device, that is, the maximum expansion distance.
  • the electronic device may receive an expansion instruction input by the user through a finger touch mode, respond to the expansion instruction, and obtain the expansion status of the expandable component (such as an expandable display screen) and the expandable component ( Such as expandable display screen) The maximum expansion distance along the reference expansion path.
  • One way of obtaining is that after receiving the instruction, the electronic device obtains it from a configuration file for saving the expandable component of the electronic device, and the configuration file contains the relevant configuration parameters of the expandable component, such as expansion status, reference Parameters such as extended path, extended distance, extended duration, extended lighting effects, etc.; one way of obtaining is that the electronic device works by calling the included measuring device, which can measure the expansion of the expandable component that has been extended to the outside of the electronic device.
  • the measuring device can also measure the area or length of an expandable component that has not yet expanded to the inside of the electronic device. And, when the expandable part is expanded or contracted, the measuring device can measure the displacement value of the expanded or reduced expandable part. That is, the electronic device can obtain the expansion status of the expandable component (such as the expandable display screen) and the maximum expansion distance of the expandable component (such as the expandable display screen) along the reference expansion path by calling the included measuring device to work. .
  • Step 202 Determine the expansion distance of the expandable component based on the expansion state and the maximum expansion distance.
  • the electronic device can obtain the expanded distance corresponding to the expanded state of an expandable component (such as an expandable display screen), for example, by acquiring the expanded distance stored in the configuration file and the expandable component (for example, an expandable display screen) related to the state parameter that characterizes the expanded state, and the state parameter is analyzed to obtain whether the expandable component is expanded and the expanded state when it has been expanded.
  • the expandable component of an electronic device can be obtained.
  • the electronic device can determine the extended distance corresponding to the extended 1/4 state according to the corresponding relationship between the extended state and the extended distance.
  • the maximum extended distance of the expandable display screen is 20cm
  • the electronic device can also work by calling the included measuring device, which can measure the length or area of an expandable component that has been expanded to the outside of the electronic device; and the measuring device can also measure The area or length of an expandable component (such as an expandable display screen) inside an electronic device.
  • the electronic device can determine the expansion state (expanded state or unexpanded state) of the expandable component, when the expandable component (such as the expandable display screen) In the expanded state, the electronic device can obtain the expanded distance from the data (such as length data or area data) measured by the measuring device to the expandable component (such as an expandable display screen).
  • the electronic device After the electronic device obtains the expanded distance and the maximum expanded distance of an expandable component (such as an expandable display screen), it can calculate the difference between the maximum expanded distance and the expanded distance, such as assuming the maximum expanded distance Is a, the extended distance is b, and the difference X can be expressed as:
  • the electronic device determines the difference X as the expansion distance of the expandable component by calculating the difference between the maximum expansion distance and the expanded distance;
  • the electronic device may determine the acquired maximum expansion distance as the expansion distance of the expandable component. It is understandable that when the electronic device is in the unexpanded state, it is usually expanded with the default maximum expansion distance of the expandable component. For example, the expandable component-the maximum expansion distance of the expandable display screen is 20cm, then the expandable component is determined -The expansion distance of the expandable display is the maximum expansion distance of 20cm.
  • Step 203 Receive the expansion instruction input for the expansion mode of the expandable component, and obtain the expansion distance indicated by the expansion mode and the reference expansion path.
  • the electronic device can have multiple expansion modes, and different expansion modes correspond to different or the same expansion distance and reference expansion path; it is understandable that the user can select an expansion mode on the electronic device according to the actual scene.
  • Figure 12 is a schematic diagram of a scenario where the expandable component is a flexible display screen.
  • the flexible screen can be wrapped and stored in the electronic device.
  • the electronic device has multiple expansion modes, such as A expansion mode, B expansion mode, C expansion mode..., each The expansion modes correspond to different expansion distances, such as A expansion mode corresponds to a 5.0-inch expansion distance, B expansion mode corresponds to a 5.5-inch expansion distance, C expansion mode corresponds to an 8-inch expansion distance, and D expansion mode corresponds to a 10-inch expansion distance.
  • the user can select a certain one in the flexible display screen of the electronic device as shown in Figure 12 by touching it with a finger.
  • Expansion mode (such as A expansion mode)
  • an expansion command is input for the expansion mode A of the expandable component-flexible display
  • the electronic device receives the expansion command, responds to the expansion command, and can obtain the expansion input by the user
  • the mode is the A expansion mode.
  • the electronic device obtains the expansion distance corresponding to the A expansion mode and the reference expansion path in the configuration file used to save the expandable component-the flexible display screen, and the configuration file pushes out the relevant configuration parameters including the expandable component, Parameters such as extended mode, reference extended path, extended distance, extended duration, extended lighting effects, etc.
  • Figure 13 is a schematic diagram of a scenario where the expandable component is an expandable camera, and the electronic device can be expanded and controlled by a drive motor connected to the expandable camera.
  • the electronic device works by controlling the drive motor, it can drive the expandable component-the expandable camera for expansion.
  • the electronic device in Figure 13 is a scene after the expandable camera is controlled along the reference expansion path to expand at the maximum expansion distance.
  • the expandable camera component in Figure 13 contains 4 cameras.
  • the types of the cameras can be different or the same, for example :
  • the camera can be at least one of a telephoto camera, a wide-angle camera, a macro camera, a night scene camera, etc. It can be understood that different expansion modes correspond to different expansion distances.
  • FIG. 14 is a schematic diagram of the camera interface of an electronic device, and the user can select "Mode", the electronic device can display an extended mode selection box for the user to select in all or part of the current image frame display area.
  • the selection box can be a list type, that is, at least one extended mode included in the electronic device is
  • the selection box can be displayed in the form of a list; the selection box can be tiled, that is, at least one expansion mode contained in the electronic device is displayed in a horizontal or vertical tiled form; the selection box can be in a square format (such as nine square grids, six square grids , Four square grid, etc.), that is, at least one expanded mode included in the electronic device is displayed in square grid form, and the selection box can also be in the form of thumbnails, text, and so on.
  • the electronic device provides some extended modes that can be selected by the user in the extended mode selection box for the user to choose.
  • the extended modes available for selection in the extended mode selection box generally have different camera imaging effects and correspond to different extended modes.
  • For imaging with different one or more cameras if the user selects the telephoto mode, it is usually necessary to control the expandable part to expose the telephoto lens. It is understandable that the telephoto mode will correspond to an extension distance that exposes the telephoto lens (such as 2cm). ).
  • the user can select a certain extended mode (such as the three-camera mode) through finger touch in the current display interface of the electronic device as shown in FIG.
  • a certain extended mode such as the three-camera mode
  • the electronic device receives the expansion instruction, responds to the expansion instruction, and can obtain that the expansion mode input by the user is the three-camera mode, and the electronic device is used to save the configuration of the expandable component-expandable camera
  • the extension distance corresponding to the three-camera mode and the reference extension path are obtained from the file, and the configuration file introduces related configuration parameters including the expandable components, such as extension mode, reference extension path, extension distance, extension duration, extended lighting effects and other parameters.
  • Step 204 Obtain the shielding distance between the expandable component and the shield on the reference expansion path.
  • step 102 For details, refer to step 102, which will not be repeated here.
  • Step 205 Determine whether the expansion distance is less than the blocking distance.
  • the electronic device controls the expandable component to expand along the reference expansion path.
  • the electronic device controls the expandable component to expand, which may cause damage to the expandable component of the electronic device.
  • the electronic device detects whether there is an obstruction on the reference expansion path of the expandable component through the included measuring device.
  • the electronic device can measure the electronic device and the reference expansion path through the measuring device. The occlusion distance between the upper occluders.
  • the expansion distance and the occlusion distance are judged to determine whether the expansion distance is less than the occlusion distance, and whether to expand is selected according to the judgment result, and/or by executing the expansion control method of the expandable component of the embodiment of the present application
  • the expandable component is controlled at a suitable distance to expand, so as to avoid damage to the electronic device caused by the obstruction of the obstruction on the reference expansion path during the expansion process. See the explanation below for specific control methods.
  • Step 206 If the expansion distance is less than the blocking distance, control the expandable component to expand at a first expansion speed within the first distance range.
  • the extended distance includes a first distance less than a distance threshold and a second distance greater than the distance threshold.
  • the expansion distance is less than the shielding distance
  • the electronic device controls the expandable component to expand as the expansion time increases, the expanded distance of the expandable component will gradually increase, and it can be expanded.
  • the expansion distance of the component will gradually decrease from the initial expansion distance before expansion.
  • the initial expansion distance before the expansion of the electronic device is 20cm
  • the expansion time of the control expandable component increases, the expanded distance will start from a certain value.
  • An initial value (such as 0cm) gradually increases, and then the expansion distance of the expandable component will gradually decrease from the initial expansion distance of 20cm before expansion to 0.
  • the expansion distance decreases When it is 0cm and the expanded distance increases to 20cm, the electronic device controls the expandable part to complete the expansion.
  • the user may control the electronic device to generate relative movement with the obstruction on the reference expansion path when the electronic device controls the expandable component to expand (for example, the finger touches the electronic device to move closer to the obstruction at a certain movement speed).
  • the electronic device controls the expandable component to expand at a constant expansion rate, and the time point when the user causes interference to the electronic device, when the electronic device and the target of the obstruction are close usually the electronic device controls the expansion rate at a constant expansion rate.
  • the expansion of the expandable component usually causes the electronic device to collide with an obstruction and cause damage to the electronic device.
  • the electronic device may preset a safe distance, specifically a distance threshold, and in a second distance range where the expansion distance is less than the distance threshold as the expansion time increases, reduce the expansion speed of the electronic device to compare
  • the small second expansion speed expands, which can avoid the interference of human factors and when the electronic device collides with an obstruction due to the larger expansion speed, the impact force of the collision can be reduced to cause damage to the electronic device.
  • the electronic device can set a distance threshold (such as 8cm) when controlling the expansion of the expandable component.
  • a distance threshold such as 8cm
  • the expanded distance will start from a certain initial value (such as 0cm) gradually increase, and then the expansion distance of the expandable component will gradually decrease from the initial expansion distance of 20cm before expansion.
  • the expansion distance is greater than the distance threshold (such as 8cm) in the first distance range, the electronic device
  • the expandable component is controlled at the first expansion speed for expansion.
  • the electronic device adjusts the current expansion speed to the first expansion speed lower than the first expansion speed. 2.
  • the expandable component is controlled by the second expansion speed to expand within the second distance range where the expansion distance is less than the distance threshold (such as 8cm). Generally, the second expansion speed is much lower than the first expansion speed, which can avoid reducing collisions.
  • the impact force causes damage to the electronic equipment.
  • the electronic equipment can also detect sudden changes in the speed of the electronic equipment through the included measuring devices (such as speed sensors).
  • the buffer time controls the drive motor that drives the expandable component to expand to stop working, that is, controls the expandable component to stop expanding. Therefore, collision between the electronic device and the electronic device on the reference extension path is avoided.
  • Step 207 Within the second distance range, control the expandable component to expand at a second expansion speed, where the first expansion speed is greater than the second expansion speed.
  • the electronic device adjusts the current expansion speed to a second expansion speed that is less than the first expansion speed, and the expansion distance is less than
  • the expandable component is controlled by the second expansion speed to expand within the second distance range of the distance threshold (such as 8cm).
  • the second expansion speed is much smaller than the first expansion speed. Expansion speed to expand.
  • the electronic device controls the expandable component to expand at a constant expansion rate
  • the electronic device when the electronic device controls the expandable component to complete the expansion, usually the electronic device will control and drive the expandable component within a very short time t before completion
  • the expansion speed of the expanded device (such as the drive motor) will quickly become 0.
  • the value of t is small, the kinetic energy generated by the electronic device due to the expansion of the control needs to be released within t during the entire expansion process (such as the usual vibration of the device). Mode release), the short release time will cause damage to the devices in the electronic equipment, and at the same time, the kinetic energy released by the vibration of the device will produce a more obvious shock, and the user experience is not good.
  • the expansion is performed at the second expansion speed within the second distance range where the expansion distance is less than the distance threshold.
  • the electronic device controls the expansion of the expandable component the device that drives the expansion of the expandable component is controlled (for example, the expansion speed of the drive motor will quickly be zero. At this time, the kinetic energy generated by the electronic equipment control expansion work is small, and the kinetic energy release of the electronic equipment causes less damage to the device.
  • the actual shielding distance between the expandable component and the shielding object on the reference expansion path can be detected in real time or periodically by the measuring device.
  • the current expansion speed is reduced, for example, the current first expansion speed is reduced, and the expansion is performed at a second expansion speed that is lower than the first expansion speed.
  • the electronic device controls the expandable component to expand at a first expansion speed, and at this time monitors the actual shielding distance between the expandable component and the shielding object on the reference expansion path, and then determines the actual shielding Whether the distance is less than the distance threshold, when the electronic device determines that the actual shielding distance is less than the distance threshold, the current first expansion speed is reduced, and the expandable component is controlled to expand at the second expansion speed, and the first expansion speed is greater than the first expansion speed.
  • Second expansion speed Second expansion speed;
  • an emergency distance can be set, and the emergency distance is less than a distance threshold.
  • the electronic device controls the drive motor that drives the expandable component to expand to stop working, that is, controls the expandable component to stop expanding. Therefore, collision between the electronic device and the electronic device on the reference extension path is avoided.
  • the first expansion speed and the second expansion speed are usually determined by analyzing and analyzing a large number of sample data according to the actual application environment.
  • Step 208 If the expansion distance is greater than or equal to the blocking distance, control the expandable component to stop expanding.
  • the electronic device detects whether there is an obstruction on the reference expansion path of the expandable component through the included measuring device.
  • the electronic device can measure the difference between the obstruction on the reference expansion path and the reference expansion path through the measurement device. The occlusion distance between.
  • the extended distance and the shielding distance are judged to determine whether the extended distance is less than the shielding distance.
  • the electronic device expands based on the extended distance. Normally expandable components (such as display screens) , Camera, microphone, etc.) will collide with the obstruction. At this time, the electronic device controls the expandable component to stop expanding.
  • the electronic device when the expansion distance of the electronic device is greater than or equal to the blocking distance, the electronic device expands based on the expansion distance, and usually expandable components (such as display screens, cameras, microphones, etc.) will collide with the blocking objects. At this time, the electronic device may output prompt information to remind the user to stop the expansion of the expandable component.
  • expandable components such as display screens, cameras, microphones, etc.
  • Figure 15a is a schematic diagram of a scene of an electronic device outputting prompt information.
  • the expandable component of the electronic device is an expandable camera, and the electronic device can be driven by a drive connected to the expandable camera.
  • the motor is controlled, when the electronic device works by controlling the drive motor to drive the expandable component-the expandable camera for expansion.
  • the electronic device detects the existence of a cylindrical obstruction on the reference expansion path of the expandable camera through the included measuring device.
  • the electronic device can measure the electronic device and the electronic device through the measuring device. Refer to the occlusion distance between occluders on the extended path.
  • the expansion distance and the shielding distance are judged to determine whether the expansion distance is less than the shielding distance.
  • the electronic device expands based on the expansion distance. Such as the display screen, camera, microphone, etc.) will collide with the obstruction, at this time the electronic device controls the expandable component to stop expanding. And output prompt information on the current display interface of the electronic device, the prompt information is output in a prompt box, and the prompt box displays the prompt “Please note that there are obstructions on the current reference extension path, please adjust the device status?”, The user can determine whether to adjust the orientation of the electronic device after obtaining the prompt information.
  • Step 209 If the expansion distance is greater than or equal to the shielding distance, control the expandable component to expand at the shielding distance.
  • the electronic device detects whether there is an obstruction on the reference expansion path of the expandable component through the included measuring device.
  • the electronic device can measure the distance between the electronic device and the obstruction on the reference expansion path through the measurement device. Blocking distance.
  • the extended distance and the shielding distance are judged to determine whether the extended distance is less than the shielding distance.
  • the electronic device expands based on the extended distance. Normally expandable components (such as display screens) , Camera, microphone, etc.) will collide with the obstruction, and the electronic device may use the obstruction distance as the expansion distance of the current expandable component, and expand by the obstruction distance.
  • FIG. 15b is a schematic diagram of a scenario where an electronic device is expanded.
  • the expandable component of the electronic device is an expandable display screen
  • the expandable display may be a flexible display screen, that is, a display screen manufactured on a flexible panel that can be twisted, bent, and rotated without losing display characteristics.
  • the flexible display is also called electronic paper.
  • Flexible display screens are lighter and thinner, have stronger impact resistance than conventional hard display screens, and have the feature of being able to bend freely.
  • the electronic device can be controlled by a drive motor connected to the expandable display screen.
  • the electronic device works by controlling the drive motor to drive the expandable component-the expandable display screen for expansion.
  • the electronic device detects the presence of an obstruction (wall) on the reference expansion path of the expandable display screen through the included measurement device, as shown in Figure 15b, the electronic device detects the presence of a wall obstruction on the reference expansion path, and the electronic device can pass the measurement device Measure the shielding distance d between the electronic device and the shielding object (wall) on the reference extension path. Then in the next step, the expansion distance and the occlusion distance d are judged to determine whether the expansion distance is less than the occlusion distance d.
  • the electronic device can usually expand based on the expansion distance.
  • the extended display screen will collide with the obstruction (wall), causing damage to the electronic device.
  • the expandable display screen of the electronic device may cause display failure due to collision.
  • the electronic device can The shielding distance is used as the expansion distance of the current expandable component, and the electronic device uses the shielding distance to drive the expandable display screen to expand by controlling the drive motor to work.
  • the electronic device may output prompt information on the current display interface of the electronic device, and the prompt information is used as a reminder
  • the prompt box displays "Please note that there are obstructions on the current reference extended path.
  • the extended distance has been intelligently updated.” to remind users The extension distance of the current electronic equipment has been updated.
  • Step 210 Monitor the actual expansion path of the expandable component, and when the actual expansion path does not match the reference expansion path, use the actual expansion path as the reference expansion path.
  • the actual expansion path can be understood as a path through which the electronic device controls the expandable component to expand, and generally refers to the entire route of the expandable component from the start point before the expansion to the end point after the expansion.
  • the actual expansion path is generally consistent with the reference expansion path.
  • the electronic device controls the expandable component to expand If there are interference factors such as artificial adjustment of the position and orientation of the electronic device (ie, the position and direction of the electronic device), the actual expansion path will be different from the reference expansion path.
  • the electronic device can monitor the actual expansion path of the expandable component by controlling the measurement device, and obtain the actual expansion path of the current expandable component in real time or periodically, based on the preset
  • the matching processing method matches the actual expansion path with the reference expansion path.
  • the actual expansion path does not match the reference expansion path, the actual expansion path is used as the reference expansion path, and the occlusion between the expandable component and the obstruction on the reference expansion path is acquired again
  • the distance based on the expansion distance and the shielding distance, performs expansion control on the expandable component.
  • the matching processing method may be based on calculating the path acquaintance degree based on the actual expansion path and the reference expansion path, and determining whether the actual expansion path matches the reference expansion path according to the acquaintance degree; may be based on the calculation path similarity between the actual expansion path and the reference expansion path Distance, according to the similar distance to determine whether the actual expansion path and the reference expansion path match; it can be the actual expansion path sign and the reference expansion path to calculate the difference feature information (differential point, difference direction, difference distance, etc.), and then based on The difference feature information is rated or scored, and whether the actual expansion path matches the reference expansion path is determined according to the result of the rating or scoring, and so on.
  • the electronic device judges the analysis processing result according to a preset judgment rule
  • the judgment 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 expansion path matches the reference expansion path; when the semantic similarity of the analysis processing result does not reach the similarity threshold, the electronic device determines that the actual expansion path does not match the reference expansion path.
  • the judgment rule may be to set a similarity distance, and when the similarity of the analysis processing result reaches a similarity distance threshold The electronic device determines that the actual expansion path matches the reference expansion path; when the similarity distance of the analysis and processing result does not reach the similarity distance threshold, the electronic device determines that the actual expansion path does not match the reference expansion path.
  • the judgment rule may be set Similarity level threshold or similarity score threshold, when the rating of the analysis processing result reaches the similarity level threshold or the score reaches the similarity score threshold, the electronic device determines that the actual expansion path matches the reference expansion path; when the rating of the analysis processing result When the similarity level threshold is not reached or the score does not reach the similarity score threshold, the electronic device determines that the actual expansion path does not match the reference expansion path.
  • a reference point can be set on the electronic device, and the pose change of each reference point can be monitored by the measuring device included in the electronic device to determine the pose of the electronic device. It is understandable that when the electronic device When the pose of the device changes during the process of controlling the expandable component to expand, the actual expansion path monitored by the electronic device at this time usually does not match the reference expansion path.
  • the initial position of the electronic device is the position shown by the dashed box in the figure, and the reference point is point A0 in the figure, where A0( x0, y0, z0, r0, p0, ya0), the electronic device is affected by external interference factors (such as human touch) within a certain period of time.
  • external interference factors such as human touch
  • the electronic device obtains the current physical quantity parameters through the included measuring devices (acceleration sensors, magnetic sensors, gyroscopes, etc.) for real-time detection of current pose information, and calculates based on the physical quantity parameters
  • the reference point A1 (x1, y1, z1, r1, p1, ya1) on the electronic device, by performing pose calculation on the reference point A0 and the reference point A1, the pose calculation can calculate the electronic
  • the relative pose information of the device relative to the initial state for example, a 15-degree rotation relative to the initial state, etc., to obtain the current pose data of the electronic device.
  • the electronic device may set at least one reference point in advance, and monitor each of the at least one reference point through the included electronic components (acceleration sensor, magnetic sensor, gyroscope, etc.) for real-time detection of current pose information.
  • the position and posture of the reference point changes.
  • the electronic device determines that the actual expansion path monitored usually does not match the reference expansion path.
  • the actual expansion path is used as the reference expansion path, and the shielding distance between the expandable component and the shielding object on the reference expansion path is acquired again, and based on the expansion distance and the shielding distance, the Expandable components for expansion control.
  • the step of performing expansion control of the expandable component may refer to the step Steps 204 to 209 are not repeated here.
  • the electronic device receives the expansion instruction, obtains the expansion distance of the expandable component along the reference expansion path, and the shielding distance between the expandable component and the obstruction on the reference expansion path.
  • the expandable component When the distance is less than the shielding distance, the expandable component is expanded; when the expansion distance is greater than or equal to the shielding distance, the expandable component is controlled to stop expanding; it can avoid the expansion of the expandable component of the electronic device and the expansion path.
  • the electronic device can control the expandable component to expand at the shielding distance, that is, it is not fully extended, which realizes the automatic expansion based on the shielding distance.
  • the target distance of the object at the boundary of the reference expansion path is expanded when the target distance is less than the preset threshold, and the expansion is stopped when the target distance is greater than the preset threshold, thereby avoiding the electronic device from being caused by the movement of the center of gravity during the expansion of the electronic device. Damage caused by falling.
  • FIG. 17 is a schematic diagram of a scene of an expandable control system of an expandable component provided by an embodiment of this application.
  • the expansion control system of the expandable component may include an electronic device 100 and a cover 110, wherein the electronic device includes an expandable component.
  • the electronic device 100 may be an electronic device with an expanded control function of an expandable component.
  • the electronic device includes but is not limited to: wearable devices, handheld devices, personal computers, tablet computers, in-vehicle devices, computing devices or connected to a wireless modem Other processing equipment, etc.
  • User terminals can be called different names in different networks, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication Device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), terminal equipment in 5G network or future evolution network, etc.
  • PDA personal digital assistant
  • the electronic device 100 includes expandable components.
  • the number of the expandable components may be multiple.
  • the types of the expandable components may be the same or different.
  • the expandable components may be display screens, microphones, cameras, indicator lights, and other devices.
  • the expandable component is the expandable display screen 1001 in FIG. 17 as an example for detailed description.
  • the expandable display screen 1001 may be a flexible display screen, that is, a display screen manufactured on a flexible panel that can be twisted, bent, and rotated without losing display characteristics.
  • the flexible display is also called electronic paper.
  • Flexible display screens are lighter and thinner, have stronger impact resistance than conventional hard display screens, and have the feature of being able to bend freely.
  • the panel can be made of metal foil, ultra-thin glass or plastic panel. Specifically, in the case of plastic panels, PC panels, PET panels, PES panels, PI panels, PEN panels, AryLite panels, etc. can be used.
  • the expandable display screen 1001 uses at least one flexible display screen or separate multiple display screens, and indicates a display screen capable of controlling the displayed area. More specifically, in a case where the display area is expanded by adding display panels in a manner of preparing multiple display panels as needed, the multiple 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 turning out of the aforementioned flexible display screen, the flexible display screen may also be referred to as an expandable display screen 1001.
  • the shield 110 can be understood as an object that shields the expandable component of the electronic device 100 for expansion.
  • the shield 110 can be any tangible substance that exists objectively in nature. In practical applications, the shield 110 occupies a certain amount of Space refers to things made of substances, such as walls, tables, chairs, water cups, vases and other objects that block the expansion of the expandable parts of the electronic device 100. In the embodiment of the present application, the shield 110 may be the aforementioned At least one of the objects, the shield 110 is not specifically limited here.
  • the electronic device 100 receives the expansion instruction input by the user, and obtains the expansion distance of the expandable display screen 1001 along the reference expansion path s.
  • the electronic device 100 when the electronic device 100 receives the expansion instruction input by the user, it can acquire the expansion state of the expandable display screen 1001 and the maximum expansion distance of the expandable display screen 1001 along the reference expansion path s.
  • the expanded state includes an expanded state and an unexpanded state.
  • the electronic device 100 can determine the expansion distance of the expandable display screen 1001 based on the expansion state and the maximum expansion distance. Specifically:
  • the electronic device 100 can obtain the expanded distance corresponding to the expanded state of the expandable display screen 1001, for example, by obtaining the information related to the expandable display screen 1001 saved in the configuration file. State parameters that characterize the expanded state. By analyzing the state parameters, it is possible to obtain whether the expandable component is expanded and the expanded state when it has been expanded. For example, it is obtained that the expandable display screen 1001 of the electronic device 100 is in the expanded 1/4 state, Then the electronic device can determine the expanded distance corresponding to the expanded 1/4 state according to the corresponding relationship between the expanded state and the expanded distance.
  • the electronic device 100 obtains the expanded distance and the maximum expanded distance of the expandable display screen 1001, it can calculate the difference between the maximum expanded distance and the expanded distance, and determine the difference as the expansion of the expandable display screen 1001. distance.
  • the electronic device 100 obtains the shielding distance d between the expandable display screen 1001 and the shield 110 on the reference expansion path s.
  • the electronic device 100 controls the expandable display screen 1001 to expand along the reference expansion path.
  • the electronic device 100 controls the expandable display screen 1001 to expand.
  • the electronic device 100 is damaged.
  • the electronic device 100 detects whether there is an obstruction 110 on the reference expansion path of the expandable display screen 1001 through the included measuring device, and when there is an obstruction 100, as shown in FIG. 17 As shown in FIG. 17, there is an obstruction 110 on the reference expansion path of the expandable display screen 1001. At this time, the electronic device 100 detects the obstruction distance d between the electronic equipment 100 and the obstruction 110 on the reference expansion path through the included measuring device. .
  • the electronic device 100 is equipped with a measuring device, which can be used for the electronic device 100 to monitor obstructions on the reference expansion path s of the expandable display screen 1001, and to measure the expandable display screen 1001 and obstructions of the electronic device.
  • 110 is the distance d on the reference extended path s.
  • the measuring device can measure the length or area of the expandable display screen 1001 that has been expanded to the outside of the electronic device 100; and the measuring device can also measure the area of the expandable display screen 1001 that has not been expanded to the inside of the electronic device 100 Or length.
  • the measuring device can measure the displacement value of the expanded or reduced expandable display screen 1001.
  • the electronic device 100 performs expansion control on the expandable display screen 1001 based on the expansion distance and the blocking distance d.
  • the electronic device 100 determines whether the expansion distance is less than the blocking distance d, and if the expansion distance is less than the blocking distance d, it controls the expandable display screen 1001 to expand; if the expansion distance is greater than or Equal to the blocking distance d, control the expandable display screen 1001 to stop expanding; if the expansion distance is greater than or equal to the blocking distance d, control the expandable display screen 1001 to expand by the blocking distance d .
  • the expansion control system of the expandable component provided in the above embodiment and the expansion control method embodiment of the expandable component belong to the same concept.
  • the implementation process of the embodiment please refer to the method embodiment, which will not be repeated here.
  • the expandable component of the electronic device is an expandable display screen. After receiving the expansion instruction, the expansion distance of the expandable display screen along the reference expansion path is obtained, and the expandable display screen and the With reference to the shielding distance between the shielding objects on the expansion path, the expandable display screen is controlled for expansion according to the expansion distance and the shielding distance.
  • the expansion of the expandable component is controlled: when the expansion distance is less than the obstruction distance, the expandable display is displayed When the expansion distance is greater than or equal to the blocking distance, the expandable display screen is controlled to stop expanding; it can prevent the expandable display screen of the electronic device from colliding with the obstruction on the expansion path when it is expanded, thereby avoiding the electronic The device is damaged as a result; and, when the extension distance is greater than or equal to the blocking distance, the electronic device can control the expandable display screen to expand at the blocking distance, that is, not fully expand, and realize the automatic control of the expandable display screen based on the blocking distance. Extend the distance at the same time, while completing the expansion, it also avoids the damage of the electronic equipment, thus enriching the expansion control mode of the expandable display screen.
  • FIG. 18 shows a schematic structural diagram of an expansion control device for an expandable component provided by an exemplary embodiment of the present application.
  • the expansion control device of the expandable component can be implemented as all or a part of the device through software, hardware or a combination of the two.
  • the device 1 includes an expansion distance acquisition module 11, an obscuration distance acquisition module 12 and a component expansion control module 13.
  • the expansion distance acquisition module 11 is used to receive expansion instructions and acquire the expansion distance of the expandable component along the reference expansion path;
  • the occlusion distance acquisition module 12 is used to acquire the occlusion distance between the expandable component and an obstruction on the reference expansion path;
  • the component expansion control module 13 is configured to perform expansion control on the expandable component based on the expansion distance and the shielding distance.
  • the component expansion control module 13 includes: a distance judging unit 131, configured to judge whether the expanded distance is less than the blocking distance; and an expansion control unit 132, configured to: If the distance is less than the shielding distance, control the expandable component to expand; the expansion control unit 132 is further configured to control the expandable component to stop expanding if the expansion distance is greater than or equal to the shielding distance.
  • the component expansion control module 13 includes the expansion control unit 132, and is further configured to control the expandable component to perform at the shielding distance if the expansion distance is greater than or equal to the shielding distance. Extension.
  • the expansion distance acquisition module 11 includes: an expansion instruction receiving unit 111, configured to receive an expansion instruction input for an expansion mode of an expandable component, and obtain the expansion indicated by the expansion mode Distance and reference extension path.
  • the expansion distance acquiring module 11 includes: the expansion instruction receiving unit 111, which is further configured to receive an expansion instruction, obtain the expansion status of the expandable component, and the extension status of the expandable component.
  • the expansion state includes an expanded state and an unexpanded state; the expansion distance determining unit 112 is configured to determine the expansion of the expandable component based on the expansion state and the maximum expansion distance distance.
  • the extended distance determining unit 112 includes: an extended distance obtaining subunit 1121, configured to obtain an extended distance when the extended state is an extended state; an extended distance determining subunit The unit 1122 is configured to calculate the difference between the maximum expansion distance and the expanded distance, and determine the difference as the expansion distance of the expandable component; the expansion distance determination subunit 1122 is also used for When the expansion state is the unexpanded state, the maximum expansion distance is determined as the expansion distance of the expandable component.
  • the device 1 further includes: an actual expansion path monitoring module 14 for monitoring the actual expansion path of the expandable component; reference expansion path update module 15 for when the When the actual expansion path does not match the reference expansion path, the actual expansion path is used as the reference expansion path, and the obtaining of the shielding distance between the expandable component and the obstruction on the reference expansion path is performed A step of.
  • the extended distance includes a first distance less than a distance threshold and a second distance greater than the distance threshold.
  • the device 1 further includes: an extended speed control module 16 for Within the first distance range, control the expandable component to expand at a first expansion speed; the expansion speed control module 16 is also configured to control the expandable component to expand at the first distance within the second distance range. The second expansion speed is expanded, and the first expansion speed is greater than the second expansion speed.
  • the apparatus 1 further includes: a target distance acquisition module 17, configured to acquire the target distance between the position of the center of gravity of the electronic device and the boundary of the reference expansion path
  • the support is used to support the electronic device;
  • the component expansion control module 13 is also used to obtain the minimum distance between the target distance and the extended distance when the target distance is greater than a preset threshold, The expandable component is controlled to expand at 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.
  • the expansion control device of the expandable component provided in the above embodiment executes the expansion control method of the expandable component
  • only the division of the above-mentioned functional modules is used as an example for illustration.
  • the above-mentioned Function allocation is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the expansion control device of the expandable component provided in the above embodiment and the expansion control method embodiment of the expandable component belong to the same concept, and the implementation process is detailed in the method embodiment, which will not be repeated here.
  • the embodiment of the present application also provides a computer storage medium.
  • the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executed as described in the embodiments shown in FIG. 1 to FIG.
  • the specific execution process can be referred to the specific description of the embodiment shown in FIG. 1 to FIG. 17, which will not be repeated here.
  • the present application also provides a computer program product that stores at least one instruction, and the at least one instruction is loaded by the processor and executed by the expandable
  • the specific execution process can refer to the specific description of the embodiment shown in FIG. 1 to FIG. 17, which will not be repeated here.
  • the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002.
  • the communication bus 1002 is used to implement connection and 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.
  • Display display screen
  • Camera Camera
  • 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 and a wireless interface (such as a WI-FI interface).
  • the processor 1001 may include one or more processing cores.
  • the processor 1001 uses various excuses and lines to connect various parts of the entire server 1000, and executes the server by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005.
  • Various functions and processing data of 1000 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA) Realize in the form of hardware.
  • the processor 1001 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used to render and draw the content that needs to be displayed on the display screen; the modem is used to process wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1001, but may be implemented by a chip alone.
  • the memory 1005 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory).
  • the memory 1005 includes a non-transitory computer-readable storage medium.
  • the memory 1005 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 1005 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions and the like used to implement the above method embodiments; the storage data area can store the data and the like involved in the above method embodiments.
  • the memory 1005 may also be at least one storage device located far away from the foregoing processor 1001. As shown in FIG. 23, the memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an expansion control application program of an expandable component.
  • the user interface 1003 is mainly used to provide an input interface for the user to obtain data input by the user; and the processor 1001 can be used to call the expansion control application of the expandable component stored in the memory 1005 Program, and specifically perform the following operations:
  • the expandable component is controlled to expand.
  • the processor 1001 when the processor 1001 executes the expansion control of the expandable component based on the expansion distance and the occlusion distance, it specifically executes the following operations:
  • the processor 1001 specifically performs the following operations when performing expansion control of the expandable component:
  • the processor 1001 is executing the receiving expansion instruction to obtain the expansion distance of the expandable component along the reference expansion path, and specifically executes the following operations:
  • An expansion instruction input for an expansion mode of an expandable component is received, and an expansion distance indicated by the expansion mode and a reference expansion path are obtained.
  • the processor 1001 when the processor 1001 executes the receiving expansion instruction to obtain the expansion distance of the expandable component along the reference expansion path, it specifically executes the following operations:
  • Receiving an expansion instruction acquiring an expansion state of an expandable component and a maximum expansion distance of the expandable component along a reference expansion path, where the expansion state includes an expanded state and an unexpanded state;
  • the expansion distance of the expandable component is determined.
  • the processor 1001 when the processor 1001 executes the determination of the expansion distance of the expandable component based on the expansion state and the maximum expansion distance, it specifically executes the following operations:
  • the maximum expansion distance is determined as the expansion distance of the expandable component.
  • the processor 1001 after performing the expansion control on the expandable component, the processor 1001 further performs the following operations: monitoring the actual expansion path of the expandable component;
  • the actual expansion path does not match the reference expansion path
  • the actual expansion path is used as the reference expansion path, and the obtaining of the distance between the expandable component and the obstruction on the reference expansion path is performed.
  • the steps of the occlusion distance are performed.
  • the expansion distance includes a first distance less than a distance threshold and a second distance greater than the distance threshold.
  • the processor 1001 when the processor 1001 executes the expansion control of the expandable component, it specifically executes the following steps: acquiring the position of the center of gravity of the electronic device and the boundary of the support on the reference expansion path The support is used to support the electronic device; when the target distance is greater than a preset threshold, the minimum distance between the target distance and the extended distance is acquired, and the expandable component is controlled Expanding at the minimum distance; when the target distance is less than or equal to the preset threshold, controlling the expandable component to stop expanding.
  • the “unit” and “module” in this specification refer to software and/or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware may be, for example, a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), Integrated Circuit (IC), etc.
  • FPGA Field-Programmable Gate Array
  • IC Integrated Circuit

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了一种可扩展部件的扩展控制方法、装置、存储介质及电子设备,其中,方法包括:接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离,获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离,基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。采用本申请实施例,可以避免电子设备的可扩展部件与遮挡物产生碰撞,进而避免了电子设备因此造成损坏。

Description

可扩展部件的扩展控制方法、装置、存储介质及电子设备 技术领域
本申请涉及计算机技术领域,尤其涉及一种可扩展部件的扩展控制方法、装置、存储介质及电子设备。
背景技术
本申请对于背景技术的描述属于与本申请相关的相关技术,仅仅是用于说明和便于理解本申请的申请内容,不应理解为申请人明确认为或推定申请人认为是本申请在首次提出申请的申请日的现有技术。
随着科技的不断进步,手机、平板等各类电子设备也越来越普遍,极大的方便了人们的生活。为了带给用户更好的体验,电子设备通常还设置有可扩展的部件,如电子设备可以采用可扩展的显示屏,通过控制显示屏的扩展带给用户更好的视觉体验;电子设备也可以采用可扩展的摄像头,在用户使用电子设备拍照时控制摄像头进行扩展,带给用户更好的拍照体验,等等。
发明内容
本申请实施例提供了一种可扩展部件的扩展控制方法、装置、存储介质及电子设备,可以避免电子设备的可扩展部件与遮挡物产生碰撞,进而避免了电子设备因此造成损坏。所述技术方案如下:
第一方面,本申请实施例提供了一种可扩展部件的扩展控制方法,所述方法包括:
接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离;
获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离;
基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
第二方面,本申请实施例提供了一种可扩展部件的扩展控制装置,所述装置包括:
扩展距离获取模块,用于接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离;
遮挡距离获取模块,用于获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离;
部件扩展控制模块,用于基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
第三方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行上述的方法步骤。
第四方面,本申请实施例提供一种电子设备,可包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行上述的方法步骤。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种可扩展部件的扩展控制方法的流程示意图;
图2a是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备未扩展前的场景示意图;
图2b是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备按照参考扩展路径 扩展后的场景示意图;
图3a是本申请实施例提供的可扩展部件的扩展控制方法涉及的另一种电子设备未扩展前的场景示意图;
图3b是本申请实施例提供的可扩展部件的扩展控制方法涉及的另一种电子设备按照参考扩展路径扩展后的场景示意图;
图4是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备可扩展部件设置的界面示意图;
图5是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种可扩展部件管理界面的示意图;
图6是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种可扩展部件为柔性显示屏的场景示意图;
图7是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备的可扩展部件的场景示意图;
图8是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备的可扩展部件扩展时的场景示意图;
图9是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备与支撑物的场景示意图;
图10是本申请实施例提供的可扩展部件的扩展控制方法涉及的另一种电子设备与支撑物的场景示意图;
图11是本申请实施例提供的另一种可扩展部件的扩展控制方法的流程示意图;
图12是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种可扩展部件为柔性显示屏的场景示意图;
图13是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种可扩展部件为可扩展摄像头的场景示意图;
图14是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备的相机界面的示意图;
图15a是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备输出提示信息的场景示意图;
图15b是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备进行扩展的场景示意图;
图16是本申请实施例提供的可扩展部件的扩展控制方法涉及的一种电子设备位姿变化的场景示意图;
图17是本申请实施例提供的一种可扩展部件的扩展控制系统的场景架构示意图;
图18是本申请实施例提供的一种可扩展部件的扩展控制装置的结构示意图;
图19是本申请实施例提供的一种部件扩展控制模块的结构示意图;
图20是本申请实施例提供的一种扩展距离获取模块的结构示意图;
图21是本申请实施例提供的一种扩展距离确定单元的结构示意图;
图22是本申请实施例提供的另一种可扩展部件的扩展控制装置的结构示意图;
图23是本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。在本申请的描述中,需要说明的是,除非另有明确的规定和限定,“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
在相关技术中,电子设备接收到针对可扩展部件的扩展指令时,可以控制可扩展部件(如摄像头、显示屏、麦克风等可扩展部件)沿设置的扩展路径进行扩展,然而当扩展路径上存在遮挡物时,就会导致在扩展过程中可扩展部件与遮挡物产生碰撞,进而造成电子设备损坏。
下面结合具体的实施例对本申请进行详细说明。
在一个实施例中,如图1所示,特提出了一种可扩展部件的扩展控制方法,该方法可依赖于计算机程序实现,可依赖于单片机实现,也可运行于基于冯诺依曼体系的可扩展部件的扩展控制装置上。该计算机程序可集成在应用中,也可作为独立的工具类应用运行。
具体的,该可扩展部件的扩展控制方法包括:
步骤101:接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离。
所述指令是指挥电子设备工作的指示和命令,可以理解为指定执行某种运算或功能实现的某种控制的代码。所述扩展指令在本申请实施例中可以理解为指挥电子设备执行控制可扩展部件进行扩展控制功能的代码,电子设备通过执行所述代码,可以先获取可扩展部件沿着参考扩展路径的扩展距离。
所述扩展路径可以是在理想状态下(即无遮挡物等干扰因素干扰的情况下)可扩展部件从扩展前的起点到扩展后的终点的全程路由,所述扩展路径根据实际扩展控制的需要可以是直线型扩展路径,也可以是曲线型扩展路径,在本申请实施例中所述参考扩展路径可以理解为:预先规定的可扩展部件在扩展时的参考扩展路线,通常电子部件在控制所述可扩展部件进行扩展时,基于参考扩展路径指示的起点控制可扩展部件扩展到参考扩展路径指示的终点。
所述扩展距离可以理解为可扩展部件在参考扩展路径上从扩展前的起点到扩展后的终点的连线距离,即扩展前的起点到扩展后的终点物理距离。在实际应用中,所述扩展距离通常小于或等于所述参考扩展路径指示的参考扩展距离,所述参考扩展距离可以理解为:预先规定的参考扩展路线指示的起 点到终点之间的距离。
例如,如图2a、2b所示,图2a是一种电子设备未扩展前的场景示意图,图2b是一种电子设备按照参考扩展路径扩展后的场景示意图,在图2a中电子设备的可扩展部件如图2a中虚线框所示,图2b是电子设备控制可扩展部件按照参考扩展路径扩展之后的场景,可扩展部件从扩展前的起点按照参考扩展路径指示的水平方向扩展到参考扩展路径指示的终点,从扩展前的起点到扩展后的终点的全程路由如图2b实线框“参考扩展路径A”所示,所述扩展路径按照实际扩展控制的需要为直线型扩展路径,其中所述扩展距离通常为所述参考扩展路径指示的最大扩展距离的全部或部分,如,当电子设备接收到的扩展指令指示,可扩展部件扩展参考扩展路径指示的一半路径时,此时扩展距离即参考扩展路径指示的最大扩展距离的1/2距离。
又例如,如图3a、3b所示,图3a是一种电子设备未扩展前的场景示意图,图3b是一种电子设备按照参考扩展路径扩展后的场景示意图,图3a为电子设备的俯视图,电子设备的可扩展部件如图3a中虚线框所示,图3b是电子设备控制可扩展部件按照参考扩展路径扩展之后的场景;控制可扩展部件从扩展前的起点按照参考扩展路径指示的曲线方向扩展到参考扩展路径指示的终点,从扩展前的起点到扩展后的终点的全程路由如图3b虚线框“参考扩展路径B”所示,所述扩展路径与上述图2b中的扩展路径的类型不同,该扩展路径按照实际扩展控制的需要为如图曲线型扩展路径,其中所述扩展距离通常为所述参考扩展路径指示的最大扩展距离的全部或部分。
具体的,用户使用电子设备的过程中,可以针对电子设备所包含的可扩展部件向电子设备输入扩展指令。所述可扩展部件的数量可以是多个,各可扩展部件种类可以相同也可以不同,可扩展部件可以是显示屏、麦克风、摄像头、指示灯等器件,电子设备在接收到所述扩展指令之后,执行控制可扩展部件进行扩展控制功能的代码,电子设备通过执行所述代码,可以获取到可扩展部件沿着参考扩展路径的扩展距离。
具体的,电子设备在当前显示界面显示有“可扩展部件开关”的图标,所述电子设备含有显示屏,显示屏具有感应用户触摸操作的功能。显示屏的结构至少包括4个部分:屏幕玻璃层,传感器薄膜,显示面板层,控制器板,其中传感器薄膜有触摸感应器层,含有多种感应器,例如压力传感器、位置感应器等等,当用户在电子设备的当前显示界面上触控所述“可扩展部件开关”的图标时,电子设备的显示屏能够通过其中的传感器获取其触控的位置参数。然后对所述位置参数进行处理,识别到所述位置参数对应的显示界面上的“可扩展部件开关”的图标被触控,用户通过触控“可扩展部件开关”图标向电子设备输入针对该可扩展部件的扩展指令。
例如:如图4所示,图4是一种电子设备可扩展部件设置的界面示意图,在图4中,当用户通过手指触控的方式选中电子设备屏幕上的“可扩展部件开关”-图标A时,具体通过触控电子设备显示屏的屏幕玻璃层,电子设备的显示屏通过传感器薄膜中的位置传感器获取其触控“图标A”的位置参数,然后对所述位置参数进行处理,识别到用户输入的“可扩展部件开关”-图标A的扩展指令,此时,电子设备即检测到用户针对当前显示界面上“可扩展部件开关”-图标A所输入的扩展指令。通过读取并执行开启“可扩展部件开关”-图标A的控制逻辑对应的机器可执行指令,具体执行控制可扩展部件进行扩展控制功能的代码,电子设备获取可扩展部件沿着参考扩展路径的扩展距离。可以理解的是,电子设备预先存储有可扩展部件的配置文件,电子设备在接收到所述扩展指令之后,可以在 本地存储的配置文件中获取可扩展部件的参考扩展路径以及沿参考扩展路径的扩展距离。
其中,电子设备预先存储的可扩展部件的配置文件,可以是电子设备出厂时预先设置好的可扩展部件的包含相关配置参数的配置文件;也可以是用户在后期使用过程中,用户在电子设备的相关设置界面设置的,如,用户可以在如图4所示的界面中通过手指触控的方式选中“扩展部件管理”的配置按钮,进入“扩展部件管理”界面进行设置。如图5所示,图5是一种可扩展部件管理界面的示意图,如图5所述的界面中,用户可以对可扩展部件设置扩展距离、参考扩展路径、扩展时长、扩展灯光效果等参数,如用户可以将扩展距离设置为8cm、将参考扩展路径设置为路径2、扩展时长设置为100ms、将扩展灯光效果设置为“炫彩”类型等等。
可选的,所述电子设备接收到的扩展指令可以是通过外部设备完成的,例如,用户可以通过连接电子设备的鼠标选中电子设备的显示界面的“可扩展部件开关”-图标A输入的扩展指令;可以是用户通过连接电子设备的键盘或者触摸板输入相应指令进行的;可以是用户通过语音输入开启可扩展部件开关的扩展指令(例如语音输入开启可扩展部件-显示屏等;可以是用户通过摄像头采集手势控制指令完成输入可扩展部件的扩展指令,还可以是通过触控电子设备的物理按键(开关机键、音量上下键等)输入的针对所述可扩展部件的扩展指令等。
步骤102:获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离。
所述遮挡距离可以理解为可扩展部件与所述参考扩展路径上遮挡物之间物理距离。
具体的,电子设备控制可扩展部件沿所述参考扩展路径进行扩展,当在参考扩展路径上存在遮挡物遮挡时,电子设备控制可扩展部件进行扩展就会有可能造成电子设备的可扩展部件损坏,在本申请实施例中,电子设备通过所包含的测量器件检测可扩展部件的参考扩展路径上是否存在遮挡物,以及当存在遮挡物时,获取电子设备与参考扩展路径上遮挡物之间的遮挡距离。
在一种具体的实施场景中,所述可扩展部件为柔性显示屏,如图6所示,图6是一种可扩展部件为柔性显示屏的场景示意图,当电子设备处于未使用状态时,可以将柔性屏卷绕收纳于电子设备的收纳壳体内的中心轴上,并且将柔性屏的一端配置为位于柔性屏伸出口外侧;当电子设备处于使用状态时,即电子设备接收到扩展指令,对所述扩展指令进行响应,然后可以获取可扩展部件-柔性显示屏沿着参考扩展路径的扩展距离,并控制电子设备上的测量器件检测可扩展部件的参考扩展路径上是否存在遮挡物,测量器件经检测,检测到沿参考扩展路径上存在一圆柱形遮挡物A,且检测到电子设备与参考扩展路径上的圆柱形遮挡物A的遮挡距离为a厘米。其中,所述参考扩展路径上遮挡物可以理解为:电子设备上的测量器件可以对参考扩展路径内且在测量器件监测范围内的遮挡物进行监测,也可以对参考扩展路径的延长线上且在测量器件监测范围内的遮挡物进行监测。
其中,电子设备配置有测量器件,可以用于电子设备监测可扩展部件的参考扩展路径上的遮挡物,以及用于测量电子设备的可扩展部件与遮挡物在参考扩展路径上的距离。测量器件在工作时,可以测量已扩展到电子设备的外部的可扩展部件的长度或面积;以及,测量器件还可以测量尚未扩展到电子设备的内部的可扩展部件的面积或长度。以及,在可扩展部件扩展或缩小的情况下,测量器件可以测量扩展的或缩小的显示屏的位移值。
更具体的,测量器件可以根据实际应用环境配置相应的器件,如配置有触摸传感器、红外线/紫外线传感器、光电晶体管、光导元件、位置敏感检测器、陀螺、陀螺仪传感器以及应变仪、激光长度测 量传感器、电位计、能够测量行程长度、长度、角速度、扩展速度、即时速度和平均速度的测量传感器中的至少一个的传感器。测量器件可能不限于前述传感器并且可以包括能够测量长度和区域的所有感测装置。测量器件能够位于装置的诸如收容单元、可扩展部件它本身、可扩展部件的侧面等的各种位置处。可以根据测量器件的位置或测量器件的传感器的种类区分测量方法。
步骤103:基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
具体的,电子设备预先存储有扩展距离、遮挡距离以及扩展控制方式的对应关系,当电子设备确定扩展距离以及遮挡距离之后,可以确定是否控制可扩展部件以所述扩展距离进行扩展,具体可以基于所述对应关系确定与扩展距离以及遮挡距离确定相匹配的目标扩展控制方式,,然后以目标扩展控制方式对所述可扩展部件进行扩展控制。
具体的,所述扩展距离、遮挡距离以及扩展控制方式的对应关系可以是:当扩展距离小于遮挡距离时,电子设备基于所述扩展距离进行扩展通常可扩展部件(如显示屏、摄像头、麦克风等)不会碰撞到遮挡物,此时电子设备可以确定目标扩展控制方式为:控制可扩展部件以所述扩展距离进行扩展;当扩展距离大于或等于遮挡距离时,电子设备基于所述扩展距离进行扩展通常可扩展部件(如显示屏、摄像头、麦克风等)会碰撞到遮挡物,此时电子设备可以确定目标扩展控制方式为:控制可扩展部件停止扩展。
在一种可行的实施方式中,当电子设备扩展距离大于或等于遮挡距离时,电子设备基于所述扩展距离进行扩展通常可扩展部件(如显示屏、摄像头、麦克风等)会碰撞到遮挡物,此时电子设备可以输出提示信息,以提醒用户可扩展部件停止扩展。所述提示信息可以是以图片、文字、音频等方式展示。
可选的,电子设备输出提示信息的方式可以是以语音的形式输出的,例如:电子设备可以语音播报“当前可扩展部件的扩展路径上监测到遮挡物,已停止扩展”的音频;可以是以震动的形式,例如:电子设备可以调用内部的震动马达以特定的震动频率进行提示;还可以是电子设备调用所包含的提示灯输出提示信息(如:呼吸灯、闪光灯、补光灯)等形式。
其中,电子设备调用所包含的提示灯输出提示信息,在具体实施中,电子设备可以通过调用所述指示灯对应的软/硬件接口,控制指示灯的闪烁;进一步的,电子设备在当前可扩展部件的扩展路径上监测到遮挡物之后,可以基于遮挡距离的远近进行分级提醒,具体根据确定遮挡距离对应的遮挡级别,根据遮挡级别对所述指示灯进行配置,以闪烁不同类型的指示灯的方式进行提示,如电子设备对所述指示灯进行配置具体通过对各颜色灯光在电子设备系统内核上的提示灯节点相关参数进行配置,所述相关参数包含提示灯的电平状态、提示灯的亮度值、提示灯闪烁频率等,对相关参数进行进一步配置,以实现闪烁不同类型的指示灯,从而可以达到较好的提示效果,从而提醒用户当前可扩展部件的参考扩展路径上存在遮挡物。
在一种具体的实施场景中,当扩展距离小于遮挡距离时,此时电子设备可以确定目标扩展控制方式为:控制可扩展部件以所述扩展距离进行扩展;在可扩展部件扩展的过程中,电子设备可以对沿参考扩展路径上的当前运动状态进行监测;可以理解的是,在扩展部件扩展时可能用户会握持电子设备沿所述参考扩展路径进行与遮挡物的相对运动,而此时电子设备的扩展部件在参考扩展路径因与遮挡物的遮挡距离改变,会碰撞上遮挡物从而损坏电子设备。
具体的,电子设备所包含的运动传感器可以对沿参考扩展路径上的当前运动状态进行监测,所述运动状态可以是监测本端(即电子设备)的运动速度、运动距离、运动加速度等等,基于电子设备的运动状态对可扩展部件的扩展过程进行监测,如,根据运动状态计算在扩展过程中是否会碰撞上遮挡物从而损坏电子设备,一种计算方式是,假设电子设备在无外界干扰的情况下的扩展完成时间为t,电子设备则计算在时间t内,电子设备的可扩展部件的未扩展距离是否小于与遮挡物的实际遮挡距离,当可扩展部件的未扩展距离小于与遮挡物的实际遮挡距离时,电子设备可输出提示信息进行扩展预警,以提醒用户调整电子设备的状态。所述提示信息可以是以图片、文字、音频等方式展示。
例如,如图7所示,图7是一种电子设备的可扩展部件的场景示意图,图7中电子设备的可扩展部件为可扩展摄像头,电子设备可以通过与可扩展摄像头相传动连接的驱动电机进行控制,当电子设备通过控制驱动电机工作以驱动可扩展部件-可扩展摄像头进行扩展。图7中的电子设备是沿参考扩展路径控制可扩展摄像头扩展完成之后的场景。参见图8,图8是一种电子设备的可扩展部件扩展时的场景示意图,电子设备在无外界干扰的情况下的扩展完成时间假设为30s,运动传感器通过监测本端(即电子设备)的运动参数(如运动速度),并结合运动速度,计算在时间30s内,电子设备的可扩展部件的未扩展距离是否小于与遮挡物的实际遮挡距离,通过计算,在时间30s内存在一时间点如第28s时,可扩展部件的未扩展距离小于与遮挡物的实际遮挡距离,此时,电子设备可以提前扩展预警,电子设备可输出提示信息进行扩展预警,以提醒用户调整电子设备的状态。如电子设备可以语音进行提醒,如语音播报“当前电子设备在参考扩展路径上的移动速度较快,将在第xx秒时与参考扩展路径上的遮挡物相撞,请调整电子设备的状态(如远离遮挡物)....”,以对用户进行提醒。
其中,所述运动传感器包括但不限于重力传感器、地磁传感器、加速度传感器、红外线传感、速度传感器等各种感测装置。
在一种具体的实施场景中,用户在使用电子设备的过程中,电子设备可能被放置在办公桌、餐桌、椅子、沙发等支撑上,当电子设备控制可扩展部件进行扩展时,就有可能由于电子设备被放置位置距离支撑物边界较近,且在可扩展部件扩展的过程中电子设备的重心会发生改变,当重心位置临近支撑物边界是,电子设备存在跌落的风险。
在一种可行的实施方式中,电子设备通过所包含的重力传感器,检测电子设备的重心位置,当然,也可以获取电子设备其它的姿态数据,例如,角度变化值等。
通常,电子设备可以通过重力传感器测量由于重力引起的加速度,从而获得电子设备的重心,当电子设备倾斜、翻转、平移时,重心会发生变化,重力传感器可以检测到重心的变化位置。具体确定重心位置可参考相干技术中基于重力传感器确定重心的方法,此处不再赘述。
具体的,电子设备在控制可扩展部件进行扩展时,可以预先获取所述电子设备的重心位置与支撑物在所述参考扩展路径的边界之间的目标距离,所述支撑物用于支撑所述电子设备,如图9所示,图9是一种电子设备与支撑物的场景示意图,电子设备被放置于支撑物-桌子上,电子设备接收用户所输入的扩展指令,在控制扩展部件沿参考扩展路径扩展时,可以通过重力传感器测量本端的重心位置,重心位置如图9所示,并检测重心位置与支撑物在所述参考扩展路径的边界之间的目标距离d,电子设备通常可以设置一距离阈值(如20cm),通过比较目标距离与距离阈值的大小,来确定下一步的实际扩展距离,具体如下:
电子设备经判断,当所述目标距离d大于预设阈值时,电子设备若以扩展距离进行扩展通常不会跌落,此时电子设备可以获取目标距离与所述扩展距离中的最小距离,控制所述可扩展部件以所述最小距离进行扩展,可以理解的是,电子设备放置于支撑物上时,电子设备以扩展距离控制所述可扩展部件进行扩展通常不会跌落,此时目标距离通常大于扩展距离,此时电子设备即取两者间较小的扩展距离进行扩展。
电子设备经判断,当所述目标距离d小于或者等于所述预设阈值时,此时,电子设备若以扩展距离进行扩展通常可能会跌落,造成电子设备损坏,此时电子设备可以控制所述可扩展部件停止扩展。
从而可以达到在电子设备控制可扩展部件沿参考扩展路径进行扩展时,可以防止由于电子设备在控制可扩展部件进行扩展的过程中由于重心不稳造成电子设备的损坏。其中,上述预设阈值通常略大于可扩展部件的最大扩展距离,其实际预设阈值具体根据实际应用环境采集大量样本数据分析确定,此处不作具体限定。
在另一种可行的实施方式中,电子设备可以在控制可扩展部件进行扩展的过程中,监测电子设备的重心位置的实时变化,并实时测量重心位置与支撑物边界的目标距离,当目标距离趋近于某一设定阈值(如1cm)时,电子设备可以控制所述可扩展部件停止扩展。所述设定阈值可以略大于0,即在可扩展部件临近支撑物边界时,控制所述可扩展部件停止扩展。
示意性的,如图10所示,图10是另一种电子设备与支撑物的场景示意图,电子设备中可以预设置终端的三维坐标系(X,Y,Z),具体设置方式对于不同的电子设备可能会有不同,一般,例如,电子设备的三维坐标系设置为,当终端正着竖直放置时,X轴正方向为从左到右,Y轴正方向为从下到上,Z轴正方向为从内到外,进而重力传感器可以通过(X,Y,Z)的值来反映重心位置的变化。电子设备并可以实时或相隔一定周期(如10ms)监测重心位置,以及检测当前时间点重心位置与支撑物边界的目标距离S1、S2、S3...Sn。当某一时间点对应的目标距离s小于或者等于所述设定阈值(如1cm)时,电子设备继续控制可扩展部件进行扩展存在跌落的风险,此时电子设备控制所述可扩展部件停止扩展。当在当前时间点监测到的目标距离大于所述设定阈值(如1cm)时,电子设备可以继续控制可扩展部件进行扩展,直至可扩展部件达到本次扩展距离时,扩展结束。
在本申请实施例中,电子设备接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离,并获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离,根据所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。通过考虑扩展路径上是否存在遮挡物以及在存在遮挡物时考虑遮挡距离与扩展距离的大小关系,对可扩展部件的扩展与否进行控制,可以有效避免可扩展部件在扩展时与扩展路径上的遮挡物产生碰撞,进而避免了电子设备因此造成损坏。
请参见图11,图11是本申请提出的一种可扩展部件的扩展控制方法的另一种实施例的流程示意图。
在本申请实施例中,所述可扩展部件的数量可以是多个,各可扩展部件种类可以相同也可以不同,可扩展部件可以是显示屏、麦克风、摄像头、指示灯等器件中的至少一种,以下为了叙述的方便,多以可扩展部件为显示屏进行详细释义。具体的:
步骤201:接收扩展指令,获取可扩展部件的扩展状态以及所述可扩展部件沿着参考扩展路径的 最大扩展距离。
其中,所述扩展状态包括已扩展状态和未扩展状态。当所述可扩展部件为显示屏时,所述显示屏可以是柔性显示屏,即指示在能够被扭曲、弯曲和转动而不丧失显示特性的柔性面板上制造的显示屏。柔性显示屏还被称作电子纸。柔性显示屏更轻、更薄,具有比常规硬显示屏更强的冲击阻力,并且具有能够自由弯曲的特征,例如,如图6所示的电子设备上的可扩展部件即为柔性显示屏。在柔性显示屏情况下,面板能够由金属箔、超薄玻璃或塑料面板制造。具体地,在塑料面板情况下,能够使用PC面板、PET面板、PES面板、PI面板、PEN面板、AryLite面板等。
在本申请实施例中,下述能够扩展显示的区域的所有显示屏被统称作可扩展显示屏。换句话说,可扩展显示屏使用至少一个柔性显示屏或区分开的多个显示屏,并且指示能够控制显示的区域的显示屏。更具体地,在显示区域通过根据需要按照制备多个显示面板的方式添加显示面板来扩展的情况下,多个显示面板被统称作可扩展显示屏。或者,在显示的区域通过展平或转出前述柔性显示屏来扩展的情况下,柔性显示屏也可以被称作可扩展显示屏。
所述扩展状态用于表征当前可扩展部件的扩展程度,通常所述扩展状态包括已扩展状态和未扩展状态。在所述未扩展状态下,可扩展部件的已扩展距离通常为初始值,如初始值0;可以理解的是,电子设备的可扩展部件在扩展前,可扩展部件可以处于部分扩展的状态,如电子设备的可扩展部件-可扩展显示屏处于扩展1/4状态,用户可以在当前的处于“扩展1/4状态”的可扩展显示屏通过手指触控的方式输入扩展指令,等等。
所述最大扩展距离可以理解为电子设备的可扩展部件全部扩展完成之后所对应的扩展距离,即最大扩展距离。
具体的,电子设备可以接收用户通过手指触控方式所输入的扩展指令,对所述扩展指令进行响应,获取所述可扩展部件(如可扩展显示屏)的扩展状态以及所述可扩展部件(如可扩展显示屏)沿着参考扩展路径的最大扩展距离。一种获取方式是,电子设备在接收到所述指令之后,在电子设备的用于保存可扩展部件的配置文件中获取,所述配置文件包含可扩展部件的相关配置参数,如扩展状态、参考扩展路径、扩展距离、扩展时长、扩展灯光效果等参数;一获取方式是,电子设备通过调用所包含的测量器件进行工作,所述测量器件可以测量已扩展到电子设备的外部的可扩展部件的长度或面积;以及,测量器件还可以测量尚未扩展到电子设备的内部的可扩展部件的面积或长度。以及,在可扩展部件扩展或缩小的情况下,测量器件可以测量扩展的或缩小的可扩展部件的位移值。即电子设备通过调用所包含的测量器件进行工作可以获取到可扩展部件(如可扩展显示屏)的扩展状态以及所述可扩展部件(如可扩展显示屏)沿着参考扩展路径的最大扩展距离。
步骤202:基于所述扩展状态以及所述最大扩展距离,确定所述可扩展部件的扩展距离。
具体的,当所述扩展状态为已扩展状态时,电子设备可以获取可扩展部件(如可扩展显示屏)已扩展状态对应的已扩展距离,如通过获取配置文件中保存的与可扩展部件(如可扩展显示屏)相关的表征扩展状态的状态参数,对所述状态参数进行解析即可以获取到可扩展部件是否扩展以及已扩展时的扩展状态,如获取到电子设备的可扩展部件-可扩展显示屏处于扩展1/4状态,则电子设备可以根据扩展状态与扩展距离的对应关系,确定扩展1/4状态对应的已扩展距离,示意性的,假设可扩展显示屏的最大扩展距离为20cm,则已扩展距离=最大扩展距离*1/4=5cm。
可选的,电子设备还可以通过调用所包含的测量器件进行工作,所述测量器件可以测量已扩展到电子设备的外部的可扩展部件的长度或面积;以及,测量器件还可以测量尚未扩展到电子设备的内部的可扩展部件(如可扩展显示屏)的面积或长度。通过测量器件测量到的数据(如长度数据或面积数据),电子设备即可确定可扩展部件的扩展状态(已扩展状态或未扩展状态),当所述可扩展部件(如可扩展显示屏)为已扩展状态时,电子设备可以从测量器件测量到的数据(如长度数据或面积数据)获取到可扩展部件(如可扩展显示屏)的已扩展距离。
具体的,电子设备获取到可扩展部件(如可扩展显示屏)的已扩展距离以及最大扩展距离之后,可以计算计算所述最大扩展距离与所述已扩展距离的差值,如假设最大扩展距离为a,已扩展距离为b,所述差值X,可以表示为:
X=a-b
电子设备通过计算所述最大扩展距离与所述已扩展距离的差值,将差值X确定为所述可扩展部件的扩展距离;
当所述扩展状态为未扩展状态时,电子设备可以将获取到的最大扩展距离确定为所述可扩展部件的扩展距离。可以理解的是,当电子设备处于未扩展状态,通常以默认的可扩展部件的最大扩展距离进行扩展,如可扩展部件-可扩展显示屏的最大扩展距离为20cm,则确定所述可扩展部件-可扩展显示屏的本次扩展距离为最大扩展距离20cm。
步骤203:接收针对可扩展部件的扩展模式所输入的扩展指令,获取所述扩展模式指示的扩展距离以及参考扩展路径。
所述电子设备可以多个扩展模式,不同的扩展模式对应不同或相同的扩展距离以及参考扩展路径;可以理解的是用户可以在电子设备上根据实际场景选择一个扩展模式。
在一种具体的实施场景中,如图12所示,图12是一种可扩展部件为柔性显示屏的场景示意图,当电子设备处于未使用状态时,可以将柔性屏卷绕收纳于电子设备的收纳壳体内的中心卷轴中,并且将柔性屏的一端配置为位于柔性屏扩展出外侧;电子设备具有多个扩展模式,如A扩展模式、B扩展模式、C扩展模式....,各扩展模式分别对应不同的扩展距离,如A扩展模式对应5.0寸的扩展距离、B扩展模式对应5.5寸的扩展距离、C扩展模式对应8寸的扩展距离以及D扩展模式对应10寸的扩展距离。图中A扩展模式、B扩展模式、C扩展模式....均对应同一参考扩展路径,用户可以在如12图所示的电子设备的柔性显示屏中,通过手指触控的方式选中某一扩展模式(如A扩展模式),针对可扩展部件-柔性显示屏的A扩展模式输入扩展指令,电子设备接收到扩展指令,对所述扩展指令进行响应,可以获取到用户所输入的所述扩展模式为A扩展模式,电子设备在用于保存可扩展部件-柔性显示屏的配置文件中获取A扩展模式对应的扩展距离以及参考扩展路径,所述配置文件推出包含可扩展部件的相关配置参数,如扩展模式、参考扩展路径、扩展距离、扩展时长、扩展灯光效果等参数。
在另一种具体的实施场景中,如图13所示,图13是一种可扩展部件为可扩展摄像头的场景示意图,电子设备可以通过与可扩展摄像头相传动连接的驱动电机进行扩展控制,当电子设备通过控制驱动电机工作可以驱动可扩展部件-可扩展摄像头进行扩展。图13中的电子设备是沿参考扩展路径控制可扩展摄像头以最大扩展距离扩展完成之后的场景,图13中的可扩展摄像头部件中包含4个摄像头,各摄像头的类型可以不同也可以相同,例如:摄像头可以是长焦摄像头、广角摄像头、微距摄像头、 夜景摄像头等摄像头中的至少一种,可以理解的是,不同的扩展模式对应不同的扩展距离,控制扩展可扩展摄像头到相应位置时,可以使扩展模式的对应的摄像头正常进行工作。示意性的,用户可以在如图13所示的界面中,用户可以点击“相机”图标,进入相机界面,如图14所示,图14是一种电子设备的相机界面的示意图,用户可以选中“模式”,电子设备可以在当前图像框显示区域的全部或部分区域显示可供用户选择的扩展模式选择框,所述选择框可以是列表式,即电子设备所包含的至少一种扩展模式以列表形式展现;所述选择框可以是平铺式,即电子设备所包含的至少一种扩展模式以横向或纵向平铺的形式展现;所述选择框可以是宫格式(如九宫格、六宫格、四宫格等),即电子设备所包含的至少一种扩展模式以宫格形式展现,所述选择框还可以是以缩略图形式、文字形式等等。电子设备通过在所述扩展模式选择框中提供可供用户选择的一些扩展模式供用户选择,在所述扩展模式选择框中供选择的扩展模式,其摄像头成像效果一般不同,不同的扩展模式对应不同的一个或多个摄像头进行成像,如用户选择长焦模式,通常需要控制可扩展部件向外露出长焦镜头,可以理解的是长焦模式会对应一个露出长焦镜头的扩展距离(如2cm)。
具体的,用户可以在如图14所示的电子设备的当前显示界面中,通过手指触控的方式选中某一扩展模式(如三摄模式),针对可扩展部件-可扩展摄像头的三摄模式输入扩展指令,电子设备接收到扩展指令,对所述扩展指令进行响应,可以获取到用户所输入的所述扩展模式为三摄模式,电子设备在用于保存可扩展部件-可扩展摄像头的配置文件中获取三摄模式对应的扩展距离以及参考扩展路径,所述配置文件推出包含可扩展部件的相关配置参数,如扩展模式、参考扩展路径、扩展距离、扩展时长、扩展灯光效果等参数。
步骤204:获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离。
具体可参见步骤102,此处不再赘述。
步骤205:判断所述扩展距离是否小于所述遮挡距离。
具体的,电子设备控制可扩展部件沿所述参考扩展路径进行扩展,当在参考扩展路径上存在遮挡物遮挡时,电子设备控制可扩展部件进行扩展就会有可能造成电子设备的可扩展部件损坏,在本申请实施例中,电子设备通过所包含的测量器件检测可扩展部件的参考扩展路径上是否存在遮挡物,当存在遮挡物时,电子设备可以通过测量器件测量到电子设备与参考扩展路径上遮挡物之间的遮挡距离。然后将扩展距离与遮挡距离进行判断,以判断所述扩展距离是否小于所述遮挡距离,根据判断结果选择是否进行扩展,和/或通过执行本申请实施例的所述可扩展部件的扩展控制方法以一合适距离控制可扩展部件进行扩展,以避免在扩展过程中因参考扩展路径上的遮挡物的遮挡造成电子设备的损坏。具体控制方法见下述释义。
步骤206:若所述扩展距离小于所述遮挡距离,在所述第一距离范围内,控制所述可扩展部件以第一扩展速度进行扩展。
其中,所述扩展距离包括小于距离阈值的第一距离以及大于所述距离阈值的第二距离。
示意性的,在实际应用中,若所述扩展距离小于所述遮挡距离,电子设备控制可扩展部件进行扩展时,随着扩展时长的增加,可扩展部件的已扩展距离会逐渐增加,可扩展部件的扩展距离会从扩展前的初始的扩展距离逐渐减小,如,假设电子设备扩展前的初始的扩展距离为20cm,随着控制可扩展部件的扩展时长的增加,已扩展距离会从某一初始值(如0cm)逐渐增加,随之可扩展部件的扩展距 离会从扩展前的初始的扩展距离20cm逐渐减小直至为0,当在控制可扩展部件进行扩展的过程中,扩展距离降为0cm、已扩展距离递增至20cm时,此时电子设备控制可扩展部件完成扩展。
在上述过程中,用户可能会在电子设备控制可扩展部件进行扩展的时间点时,操控电子设备在参考扩展路径上产生与遮挡物的相对运动(如手指触动电子设备以某一运动速度靠近遮挡物);电子设备若以恒定的扩展速率控制可扩展部件进行扩展,且用户对电子设备造成干扰的时间点电子设备与遮挡物的目标距离较近时,通常电子设备若以恒定的扩展速率控制可扩展部件进行扩展通常会造成电子设备碰撞上遮挡物造成电子设备损害。
具体的,电子设备可以通过预先设置一安全距离,具体为设置一距离阈值,在随着扩展时长增加,扩展距离小于距离阈值的第二距离范围内,通过降低电子设备的扩展速度,以一较小的第二扩展速度进行扩展,可以避免人为因素的干扰且由于较大的扩展速度导致在电子设备碰撞上遮挡物时,减小碰撞的冲击力造成电子设备器件的损害。
具体的,针对上述状况,电子设备可以在控制可扩展部件扩展时,设置一距离阈值(如8cm),随着控制可扩展部件的扩展时长的增加,已扩展距离会从某一初始值(如0cm)逐渐增加,随之可扩展部件的扩展距离会从扩展前的初始的扩展距离20cm逐渐减小,在这个过程中,扩展距离大于距离阈值(如8cm)的第一距离范围内,电子设备以第一扩展速度控制可扩展部件进行扩展,当扩展距离随着控制可扩展部件的扩展时长的增加递减至距离阈值(如8cm)时,电子设备调整当前扩展速度为小于第一扩展速度的第二扩展速度,在扩展距离小于距离阈值(如8cm)的第二距离范围内以第二扩展速度控制可扩展部件进行扩展,通常第二扩展速度远小于第一扩展速度,可以避免减小碰撞的冲击力造成电子设备器件的损害,同时,电子设备也可以通过所包含的测量器件(如速度传感器)在监测到电子设备速度突变时,可以因为以较低的第二扩展速度扩展时有足够的缓冲时间控制驱动可扩展部件进行扩展的驱动电机停止工作,即控制所述可扩展部件停止扩展。从而避免电子设备与参考扩展路径上的电子设备产生碰撞。
步骤207:在所述第二距离范围内,控制所述可扩展部件以第二扩展速度进行扩展,所述第一扩展速度大于所述第二扩展速度。
具体的,当扩展距离随着控制可扩展部件的扩展时长的增加递减至距离阈值(如8cm)时,电子设备调整当前扩展速度为小于第一扩展速度的第二扩展速度,在进行扩展距离小于距离阈值(如8cm)的第二距离范围内以第二扩展速度控制可扩展部件进行扩展,通常第二扩展速度远小于第一扩展速度,可以理解的是,在第二距离范围内以第二扩展速度进行扩展。
另一方面,电子设备若以恒定的扩展速率控制可扩展部件进行扩展,待电子设备控制可扩展部件将完成扩展时,通常电子设备会在完成前的极短时间t内,控制驱动可扩展部件扩展的器件(如驱动电机)将扩展速度迅速将为0,当t值较小时,在整个扩展过程中,电子设备由于控制扩展做功产生的动能需要在t时间内释放(如通常以器件振动的方式释放),释放时间较短将导致电子设备中的器件造成损伤,同时也会因为器件振动释放动能会产生较为明显的震感,用户体验也不佳。可以理解的是,通过设置距离阈值,在扩展距离小于距离阈值的第二距离范围内以第二扩展速度进行扩展,当电子设备控制可扩展部件扩展完成时,控制驱动可扩展部件扩展的器件(如驱动电机)将扩展速度迅速将为0,此时电子设备控制扩展做功产生的动能较小,电子设备动能释放对器件的损伤较小。
在一种可行的实施方式中,电子设备在控制可扩展部件的过程中,可以通过测量器件实时或周期性检测可扩展部件与所述参考扩展路径上遮挡物之间的实际遮挡距离,在实际遮挡距离指示距离遮挡物较近时,降低当前的扩展速度,如降低上述当前的第一扩展速度,以相对于第一扩展速度较低的第二扩展速度进行扩展。具体为,电子设备控制所述可扩展部件以第一扩展速度进行扩展,此时并监测所述可扩展部件与所述参考扩展路径上遮挡物之间的实际遮挡距离,然后判断所述实际遮挡距离是否小于距离阈值,当电子设备确定所述实际遮挡距离小于距离阈值,降低当前的第一扩展速度,控制所述可扩展部件以第二扩展速度进行扩展,所述第一扩展速度大于所述第二扩展速度;
以及,可以设置一紧急距离,所述紧急距离小于距离阈值,在电子设备与所述参考扩展路径上遮挡物之间的实际遮挡距离小于或等于紧急距离时,此时可以认为电子设备存在与遮挡物碰撞的风险,电子设备控制驱动可扩展部件进行扩展的驱动电机停止工作,即控制所述可扩展部件停止扩展。从而避免电子设备与参考扩展路径上的电子设备产生碰撞。其中,所述第一扩展速度以及第二扩展速度通常根据实际应用环境,通过获取大量样本数据分析确定。
步骤208:若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件停止扩展。
在本申请实施例中,电子设备通过所包含的测量器件检测可扩展部件的参考扩展路径上是否存在遮挡物,当存在遮挡物时电子设备可以通过测量器件测量到与参考扩展路径上遮挡物之间的遮挡距离。然后将扩展距离与遮挡距离进行判断,以判断所述扩展距离是否小于所述遮挡距离,当扩展距离大于或等于遮挡距离时,电子设备基于所述扩展距离进行扩展通常可扩展部件(如显示屏、摄像头、麦克风等)会碰撞到遮挡物,此时电子设备控制可扩展部件停止扩展。
在一种可行的实施方式中,当电子设备扩展距离大于或等于遮挡距离时,电子设备基于所述扩展距离进行扩展通常可扩展部件(如显示屏、摄像头、麦克风等)会碰撞到遮挡物,此时电子设备可以输出提示信息,以提醒用户可扩展部件停止扩展。
例如,如图15a所示,图15a是一种电子设备输出提示信息的场景示意图,图15a中,电子设备的可扩展部件为可扩展摄像头,电子设备可以通过与可扩展摄像头相传动连接的驱动电机进行控制,当电子设备通过控制驱动电机工作以驱动可扩展部件-可扩展摄像头进行扩展。电子设备通过所包含的测量器件检测到可扩展摄像头的参考扩展路径上存在以圆柱形遮挡物,如图15a所示,当存在圆柱形遮挡物时,电子设备可以通过测量器件测量到电子设备与参考扩展路径上遮挡物之间的遮挡距离。然后将扩展距离与遮挡距离进行判断,以判断所述扩展距离是否小于所述遮挡距离,经判断,确定扩展距离大于或等于遮挡距离时,电子设备基于所述扩展距离进行扩展通常可扩展部件(如显示屏、摄像头、麦克风等)会碰撞到遮挡物,此时电子设备控制可扩展部件停止扩展。并在电子设备的当前显示界面输出提示信息,所述提示信息以提示框进行输出,提示框中展示有“请注意,当前参考扩展路径上存在遮挡物,请调整设备状态?”的提示语,用户可以在获取到所述提示信息之后,以确定是否调整电子设备的方位。
步骤209:若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件以所述遮挡距离进行扩展。
具体的,电子设备通过所包含的测量器件检测可扩展部件的参考扩展路径上是否存在遮挡物,当存在遮挡物时电子设备可以通过测量器件测量到电子设备与参考扩展路径上遮挡物之间的遮挡距离。 然后将扩展距离与遮挡距离进行判断,以判断所述扩展距离是否小于所述遮挡距离,当扩展距离大于或等于遮挡距离时,电子设备基于所述扩展距离进行扩展通常可扩展部件(如显示屏、摄像头、麦克风等)会碰撞到遮挡物,电子设备可以将所述遮挡距离作为当前可扩展部件的扩展距离,并以所述遮挡距离进行扩展。
在一种具体的实施场景中,如图15b所示,图15b是一种电子设备进行扩展的场景示意图,在图15b中,电子设备的可扩展部件为可扩展显示屏,所述可扩展显示屏可以是柔性显示屏,即指示在能够被扭曲、弯曲和转动而不丧失显示特性的柔性面板上制造的显示屏。柔性显示屏还被称作电子纸。柔性显示屏更轻、更薄,具有比常规硬显示屏更强的冲击阻力,并且具有能够自由弯曲的特征。
电子设备可以通过与可扩展显示屏相传动连接的驱动电机进行控制,当电子设备通过控制驱动电机工作以驱动可扩展部件-可扩展显示屏进行扩展。电子设备通过所包含的测量器件检测到可扩展显示屏的参考扩展路径上存在遮挡物(墙壁),如图15b所示,电子设备检测到参考扩展路径上存在墙壁遮挡,电子设备可以通过测量器件测量到电子设备与参考扩展路径上遮挡物(墙壁)之间的遮挡距离d。然后下一步将扩展距离与遮挡距离d进行判断,以判断所述扩展距离是否小于所述遮挡距离d,经判断,确定扩展距离大于遮挡距离d时,电子设备基于所述扩展距离进行扩展通常可扩展显示屏会碰撞到遮挡物(墙壁),从而造成电子设备损坏,如电子设备的可扩展显示屏因为碰撞造成显示失灵,为了避免电子设备碰撞到遮挡物(墙壁),电子设备可以将所述遮挡距离作为当前可扩展部件的扩展距离,,电子设备并以所述遮挡距离备通过控制驱动电机工作以驱动可扩展显示屏进行扩展。
可选的,电子设备在确定以所述遮挡距离备通过控制驱动电机工作以驱动可扩展显示屏进行扩展之后,此时可以在电子设备的当前显示界面上输出提示信息,所述提示信息以提示框进行输出,如图15b所示,提示框中展示有“请注意,当前参考扩展路径上存在遮挡物,为避免电子设备损坏,已对扩展距离进行智能更新。”的提示语,以提醒用户当前电子设备的扩展距离已更新。
步骤210:监测所述可扩展部件的实际扩展路径,当所述实际扩展路径与所述参考扩展路径不匹配时,将所述实际扩展路径作为所述参考扩展路径。
所述实际扩展路径可以理解为电子设备控制可扩展部件进行扩展的路径,一般是指可扩展部件从扩展前的起点到扩展后的终点的全程路由。
具体的,通常当电子设备控制可扩展部件进行扩展时,若扩展过程中无干扰因素进行干扰,所述实际扩展路径一般与参考扩展路径一致,当电子设备在控制可扩展部件进行扩展的过程中,若存在干扰因素干扰如人为调整电子设备的位姿(即电子设备的位置以及方向),就会造成实际扩展路径与所述参考扩展路径不一样。
具体的,通常当电子设备控制可扩展部件进行扩展时,电子设备可以通过控制测量器件对可扩展部件的实际扩展路径进行监测,实时或周期性获取当前可扩展部件的实际扩展路径,基于预设的匹配处理方式将实际扩展路径与所述参考扩展路径进行匹配。当所述实际扩展路径与所述参考扩展路径不匹配时,将所述实际扩展路径作为所述参考扩展路径,并再次获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离,基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
具体的,所述匹配处理方式可以是基于实际扩展路径与参考扩展路径计算路径相识度,根据相识度确定实际扩展路径与参考扩展路径是否匹配;可以是基于实际扩展路径与参考扩展路径计算路径相 似距离,根据相似距离确定实际扩展路径与参考扩展路径是否匹配;可以是对所述实际扩展路径征与所述参考扩展路径分别计算差异特征信息(差异点、差异方向、差异距离等),然后基于差异特征信息进行评级或评分,根据评级或评分的结果确定实际扩展路径与参考扩展路径是否匹配,等等。
其中,电子设备在根据上述匹配处理方式,得到分析处理结果之后,根据预设评判规则对所述分析处理结果进行评判;
可选的,当所述分析处理结果是基于所述实际扩展路径与参考扩展路径的相似度时,所述评判规则可以是设置相似度阈值,当所述分析处理结果的相似度达到相似度阈值时,电子设备确定实际扩展路径与所述参考扩展路径匹配;当所述分析处理结果的语义相似度未达到相似度阈值时,电子设备确定实际扩展路径与所述参考扩展路径不匹配。
可选的,当所述分析处理结果是基于所述实际扩展路径与参考扩展路径的相似度时,所述评判规则可以是设置相似距离,当所述分析处理结果的相似度达到相似距离阈值时,电子设备确定实际扩展路径与所述参考扩展路径匹配;当所述分析处理结果的相似距离未达到相似距离阈值时,电子设备确定实际扩展路径与所述参考扩展路径不匹配。
可选的,当所述分析处理结果是基于所述实际扩展路径与参考扩展路径的的差异特征信息(差异点、差异方向、差异距离等)的评级或评分时,所述评判规则可以是设置相似级阈值或相似分阈值,当所述分析处理结果的评级达到相似级阈值或评分达到相似分阈值时,电子设备确定实际扩展路径与所述参考扩展路径匹配;当所述分析处理结果的评级未达到相似级阈值或评分未达到相似分阈值时,电子设备确定实际扩展路径与所述参考扩展路径不匹配。
在一种可行的实施方式中,可以在电子设备上设置参考点,通过电子设备所包含的测量器件监测各参考点的位姿变化,来确定电子设备的位姿,可以理解的是,当电子设备的位姿在控制可扩展部件进行扩展的过程中发生变化时,此时电子设备监测到的实际扩展路径通常与所述参考扩展路径不匹配。
具体的,可以通过x、y、z、roll、pitch、yaw来表示电子设备的位姿信息,roll是围绕x轴旋转,也叫翻滚角;pitch是围绕y轴旋转,也叫做俯仰角;yaw是围绕z轴旋转,也叫偏离角。通常,在实际应用中,设置参考点(x0、y0、z0、r0、p0、y0),其中r0对应roll的参考值,p0对应pitch的参考值、y0对应yaw的参考值。如图16所示,图16是一种电子设备位姿变化的场景示意图,在图16中,电子设备初始位置为图中虚线框所示的位置,参考点为图中A0点,其中A0(x0、y0、z0、r0、p0、ya0),电子设备在某段时间内受外界干扰因素影响(如人为触动)从图16中虚线框所示位置由于用户触碰导致电子设备运动至图16中实线框所示位置,电子设备通过所包含的用于实时检测当前位姿信息的测量器件(加速度传感器、磁力传感器、陀螺仪等等)获取当前的物理量参数,基于所述物理量参数计算得到所述电子设备上的参考点A1点(x1、y1、z1、r1、p1、ya1),通过对所述参考点A0点以及参考点A1点进行位姿计算,所述位姿计算可以计算电子设备相对于初始状态的相对位姿信息,例如相对初始状态旋转15度等,以得到获取电子设备当前的位姿数据。
可选的,电子设备可以通过预先设置至少一个参考点,通过所包含的用于实时检测当前位姿信息的电子部件(加速度传感器、磁力传感器、陀螺仪等等监测所述至少一个参考点中各参考点的位姿变化,当电子设备的位姿在控制可扩展部件进行扩展的过程中发生变化时,此时电子设备即确定监测到的实际扩展路径通常与所述参考扩展路径不匹配。然后将所述实际扩展路径作为所述参考扩展路径, 并再次获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离,基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
其中,所述获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离,基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制的步骤可参考步骤204~步骤209,此处不再赘述。
在本申请实施例中,电子设备接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离,以及所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离,当扩展距离小于遮挡距离时,对所述可扩展部件进行扩展;当扩展距离大于或者等于所述遮挡距离控制所述可扩展部件停止扩展;可以避免电子设备的可扩展部件在扩展时与扩展路径上的遮挡物产生碰撞,进而避免了电子设备因此造成损坏;以及,在扩展距离大于或者等于遮挡距离时电子设备可以控制可扩展部件以所述遮挡距离进行扩展,即非完全扩展,实现了基于遮挡距离自动控制可扩展部件在扩展时的扩展距离,完成扩展的同时也避免了电子设备的损坏,从而丰富了可扩展部件的扩展控制方式;以及在对可扩展部件扩展时,根据电子设备重心位置与支撑物在所述参考扩展路径的边界的目标距离,在目标距离小于预设阈值时进行扩展以及目标距离大于预设阈值时停止扩展,从而避免了电子设备扩展过程中由于重心位置的移动造成电子设备跌落而造成损坏。
请参见图17,为本申请实施例提供的一种可扩展部件的扩展控制系统的场景示意图。如图17所示,所述可扩展部件的扩展控制系统可以包括电子设备100以及遮挡物110,其中,所述电子设备包括可扩展部件。
所述电子设备100可以是具有可扩展部件的扩展控制功能的电子设备,该电子设备包括但不限于:可穿戴设备、手持设备、个人电脑、平板电脑、车载设备、计算设备或连接到无线调制解调器的其它处理设备等。在不同的网络中用户终端可以叫做不同的名称,例如:用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置、蜂窝电话、无绳电话、个人数字处理(personal digital assistant,PDA)、5G网络或未来演进网络中的终端设备等。
所述电子设备100包括可扩展部件,所述可扩展部件的数量可以是多个,各可扩展部件种类可以相同也可以不同,可扩展部件可以是显示屏、麦克风、摄像头、指示灯等器件。以下为了叙述的方便,以可扩展部件为图17中的可扩展显示屏1001为例,进行详细说明。
其中,所述可扩展显示屏1001可以是柔性显示屏,即指示在能够被扭曲、弯曲和转动而不丧失显示特性的柔性面板上制造的显示屏。柔性显示屏还被称作电子纸。柔性显示屏更轻、更薄,具有比常规硬显示屏更强的冲击阻力,并且具有能够自由弯曲的特征。在柔性显示屏情况下,面板能够由金属箔、超薄玻璃或塑料面板制造。具体地,在塑料面板情况下,能够使用PC面板、PET面板、PES面板、PI面板、PEN面板、AryLite面板等。
在本申请实施例中,下述能够扩展显示的相应显示区域的所有显示屏被统称作可扩展显示屏1001。换句话说,可扩展显示屏1001使用至少一个柔性显示屏或区分开的多个显示屏,并且指示能够控制显示的区域的显示屏。更具体地,在显示区域通过根据需要按照制备多个显示面板的方式添加显示面板来扩展的情况下,多个显示面板被统称作可扩展显示屏1001。或者,在显示的区域通过展平或转出前 述柔性显示屏来扩展的情况下,柔性显示屏也可以被称作可扩展显示屏1001。
所述遮挡物110可以理解为遮挡电子设备100的可扩展部件进行扩展的物体,所述遮挡物110可以是自然界客观存在的一切有形的物质,在实际应用中,所述遮挡物110占有一定的空间,指由物质构成的东西,如阻挡电子设备100的可扩展部件进行扩展的墙壁、桌子、椅子、水杯、花瓶等物体,在本申请实施例中,所述遮挡物110可以是上述提及物体中的至少一种,此处对遮挡物110不作具体限定。
电子设备100接收用户所输入的扩展指令,获取可扩展显示屏1001沿着参考扩展路径s的扩展距离。
具体的,电子设备100接收用户所输入的扩展指令时,可以获取可扩展显示屏1001的扩展状态以及可扩展显示屏1001沿着参考扩展路径s的最大扩展距离。通常扩展状态包括已扩展状态和未扩展状态。电子设备100基于扩展状态以及最大扩展距离,可以确定可扩展显示屏1001的扩展距离。具体为:
当可扩展显示屏1001的扩展状态为已扩展状态时,电子设备100可以获取可扩展显示屏1001已扩展状态对应的已扩展距离,如通过获取配置文件中保存的与可扩展显示屏1001相关的表征扩展状态的状态参数,对所述状态参数进行解析即可以获取到可扩展部件是否扩展以及已扩展时的扩展状态,如获取到电子设备100的可扩展显示屏1001处于扩展1/4状态,则电子设备可以根据扩展状态与扩展距离的对应关系,确定扩展1/4状态对应的已扩展距离,示意性的,假设可扩展显示屏1001的最大扩展距离为20cm,则已扩展距离=最大扩展距离*1/4=5cm。然后电子设备100获取到可扩展显示屏1001的已扩展距离以及最大扩展距离之后,可以计算所述最大扩展距离与所述已扩展距离的差值,将差值确定为可扩展显示屏1001的扩展距离。
电子设备100获取所述可扩展显示屏1001与所述参考扩展路径s上遮挡物110之间的遮挡距离d。
具体的,电子设备100控制可扩展显示屏1001沿所述参考扩展路径进行扩展,当在参考扩展路径上存在遮挡物110遮挡时,电子设备100控制可扩展显示屏1001进行扩展就会有可能造成电子设备100损坏,在本申请实施例中,电子设备100通过所包含的测量器件检测可扩展显示屏1001的参考扩展路径上是否存在遮挡物110,以及当存在遮挡物100时,如图17所示,图17中可扩展显示屏1001的参考扩展路径上存在遮挡物110,此时,电子设备100通过所包含的测量器件检测电子设备100与参考扩展路径上遮挡物110之间的遮挡距离d。
可以理解的是,电子设备100配置有测量器件,可以用于电子设备100监测可扩展显示屏1001的参考扩展路径s上的遮挡物,以及用于测量电子设备的可扩展显示屏1001与遮挡物110在参考扩展路径s上的距离d。测量器件在工作时,可以测量已扩展到电子设备100的外部的可扩展显示屏1001的长度或面积;以及,测量器件还可以测量尚未扩展到电子设备100的内部的可扩展显示屏1001的面积或长度。以及,在可扩展显示屏1001扩展或缩小的情况下,测量器件可以测量扩展的或缩小的可扩展显示屏1001的位移值。
电子设备100基于所述扩展距离以及所述遮挡距离d,对所述可扩展显示屏1001进行扩展控制。
具体的,电子设备100判断所述扩展距离是否小于所述遮挡距离d,若所述扩展距离小于所述遮挡距离d,则控制所述可扩展显示屏1001进行扩展;若所述扩展距离大于或者等于所述遮挡距离d,则控制所述可扩展显示屏1001停止扩展;若所述扩展距离大于或者等于所述遮挡距离d,则控制所述 可扩展显示屏1001以所述遮挡距离d进行扩展。
上述实施例提供可扩展部件的扩展控制系统与可扩展部件的扩展控制方法实施例属于同一构思,其体现实现过程可详见方法实施例,这里不再赘述。
在本申请实施例中,电子设备的可扩展部件为可扩展显示屏,在接收到扩展指令,获取可扩展显示屏沿着参考扩展路径的扩展距离,并获取所述可扩展显示屏与所述参考扩展路径上遮挡物之间的遮挡距离,根据所述扩展距离以及所述遮挡距离,对所述可扩展显示屏进行扩展控制。通过考虑扩展路径上是否存在遮挡物以及在存在遮挡物时考虑遮挡距离与扩展距离的大小关系,对可扩展部件的扩展与否进行控制:当扩展距离小于遮挡距离时,对所述可扩展显示屏进行扩展;当扩展距离大于或者等于所述遮挡距离控制所述可扩展显示屏停止扩展;可以避免电子设备的可扩展显示屏在扩展时与扩展路径上的遮挡物产生碰撞,进而避免了电子设备因此造成损坏;以及,在扩展距离大于或者等于遮挡距离时电子设备可以控制可扩展显示屏以所述遮挡距离进行扩展,即非完全扩展,实现了基于遮挡距离自动控制可扩展显示屏在扩展时的扩展距离,完成扩展的同时也避免了电子设备的损坏,从而丰富了可扩展显示屏的扩展控制方式。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参见图18,其示出了本申请一个示例性实施例提供的可扩展部件的扩展控制装置的结构示意图。该可扩展部件的扩展控制装置可以通过软件、硬件或者两者的结合实现成为装置的全部或一部分。该装置1包括扩展距离获取模块11、遮挡距离获取模块12和部件扩展控制模块13。
扩展距离获取模块11,用于接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离;
遮挡距离获取模块12,用于获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离;
部件扩展控制模块13,用于基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
可选的,如图19所示,所述部件扩展控制模块13,包括:距离判断单元131,用于判断所述扩展距离是否小于所述遮挡距离;扩展控制单元132,用于若所述扩展距离小于所述遮挡距离,则控制所述可扩展部件进行扩展;所述扩展控制单元132,还用于若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件停止扩展。
可选的,所述部件扩展控制模块13,包括:所述扩展控制单元132,还用于若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件以所述遮挡距离进行扩展。
可选的,如图20所示,所述扩展距离获取模块11,包括:扩展指令接收单元111,用于接收针对可扩展部件的扩展模式所输入的扩展指令,获取所述扩展模式指示的扩展距离以及参考扩展路径。
可选的,如图20.所示,所述扩展距离获取模块11,包括:所述扩展指令接收单元111,还用于接收扩展指令,获取可扩展部件的扩展状态以及所述可扩展部件沿着参考扩展路径的最大扩展距离,所述扩展状态包括已扩展状态和未扩展状态;扩展距离确定单元112,用于基于所述扩展状态以及所述最大扩展距离,确定所述可扩展部件的扩展距离。
可选的,如图21所示,所述扩展距离确定单元112,包括:已扩展距离获取子单元1121,用于当所述扩展状态为已扩展状态时,获取已扩展距离;扩展距离确定子单元1122,用于计算所述最大扩展 距离与所述已扩展距离的差值,将所述差值确定为所述可扩展部件的扩展距离;所述扩展距离确定子单元1122,还用于当所述扩展状态为未扩展状态时,将所述最大扩展距离确定为所述可扩展部件的扩展距离。
可选的,如图22所示,所述装置1,还包括:实际扩展路径监测模块14,用于监测所述可扩展部件的实际扩展路径;参考扩展路径更新模块15,用于当所述实际扩展路径与所述参考扩展路径不匹配时,将所述实际扩展路径作为所述参考扩展路径,并执行所述获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离的步骤。
可选的,所述扩展距离包括小于距离阈值的第一距离以及大于所述距离阈值的第二距离,如图22所示,所述装置1,还包括:扩展速度控制模块16,用于在所述第一距离范围内,控制所述可扩展部件以第一扩展速度进行扩展;所述扩展速度控制模块16,还用于在所述第二距离范围内,控制所述可扩展部件以第二扩展速度进行扩展,所述第一扩展速度大于所述第二扩展速度。
可选的,如图22所示,所述装置1,还包括:目标距离获取模块17,用于获取所述电子设备的重心位置与支撑物在所述参考扩展路径的边界之间的目标距离,所述支撑物用于支撑所述电子设备;所述部件扩展控制模块13,还用于当所述目标距离大于预设阈值时,获取所述目标距离与所述扩展距离中的最小距离,控制所述可扩展部件以所述最小距离进行扩展;所述部件扩展控制模块13,还用于当所述目标距离小于或者等于所述预设阈值时,控制所述可扩展部件停止扩展。
需要说明的是,上述实施例提供的可扩展部件的扩展控制装置在执行可扩展部件的扩展控制方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的可扩展部件的扩展控制装置与可扩展部件的扩展控制方法实施例属于同一构思,其体现实现过程详见方法实施例,这里不再赘述。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
本申请实施例还提供了一种计算机存储介质,所述计算机存储介质可以存储有多条指令,所述指令适于由处理器加载并执行如上述图1-图17所示实施例的所述可扩展部件的扩展控制方法,具体执行过程可以参见图1-图17所示实施例的具体说明,在此不进行赘述。
本申请还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由所述处理器加载并执行如上述图1-图17所示实施例的所述可扩展部件的扩展控制方法,具体执行过程可以参见图1-图17所示实施例的具体说明,在此不进行赘述。
请参见图23,为本申请实施例提供了一种电子设备的结构示意图。如图23所示,所述电子设备1000可以包括:至少一个处理器1001,至少一个网络接口1004,用户接口1003,存储器1005,至少一个通信总线1002。
其中,通信总线1002用于实现这些组件之间的连接通信。
其中,用户接口1003可以包括显示屏(Display)、摄像头(Camera),可选用户接口1003还可以包括标准的有线接口、无线接口。
其中,网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。
其中,处理器1001可以包括一个或者多个处理核心。处理器1001利用各种借口和线路连接整个 服务器1000内的各个部分,通过运行或执行存储在存储器1005内的指令、程序、代码集或指令集,以及调用存储在存储器1005内的数据,执行服务器1000的各种功能和处理数据。可选的,处理器1001可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器1001可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1001中,单独通过一块芯片进行实现。
其中,存储器1005可以包括随机存储器(RandomAccess Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器1005包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1005可用于存储指令、程序、代码、代码集或指令集。存储器1005可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器1005可选的还可以是至少一个位于远离前述处理器1001的存储装置。如图23所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及可扩展部件的扩展控制应用程序。
在图23所示的电子设备1000中,用户接口1003主要用于为用户提供输入的接口,获取用户输入的数据;而处理器1001可以用于调用存储器1005中存储的可扩展部件的扩展控制应用程序,并具体执行以下操作:
接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离;
获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离;
基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
在一个实施例中,所述处理器1001在执行所述基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制时,具体执行以下操作:
判断所述扩展距离是否小于所述遮挡距离;
若所述扩展距离小于所述遮挡距离,则控制所述可扩展部件进行扩展;
若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件停止扩展。
在一个实施例中,所述处理器1001在执行所述可扩展部件的扩展控制时,具体执行以下操作:
若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件以所述遮挡距离进行扩展。
在一个实施例中,所述处理器1001在执行所述接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离,具体执行以下操作:
接收针对可扩展部件的扩展模式所输入的扩展指令,获取所述扩展模式指示的扩展距离以及参考扩展路径。
在一个实施例中,所述处理器1001在执行所述接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离时,具体执行以下操作:
接收扩展指令,获取可扩展部件的扩展状态以及所述可扩展部件沿着参考扩展路径的最大扩展距 离,所述扩展状态包括已扩展状态和未扩展状态;
基于所述扩展状态以及所述最大扩展距离,确定所述可扩展部件的扩展距离。
在一个实施例中,所述处理器1001在执行所述基于所述扩展状态以及所述最大扩展距离,确定所述可扩展部件的扩展距离时,具体执行以下操作:
当所述扩展状态为已扩展状态时,获取已扩展距离;
计算所述最大扩展距离与所述已扩展距离的差值,将所述差值确定为所述可扩展部件的扩展距离;
当所述扩展状态为未扩展状态时,将所述最大扩展距离确定为所述可扩展部件的扩展距离。
在一个实施例中,所述处理器1001在执行所述对所述可扩展部件进行扩展控制之后,还执行以下操作:监测所述可扩展部件的实际扩展路径;
当所述实际扩展路径与所述参考扩展路径不匹配时,将所述实际扩展路径作为所述参考扩展路径,并执行所述获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离的步骤。
在一个实施例中,所述扩展距离包括小于距离阈值的第一距离以及大于所述距离阈值的第二距离,所述处理器1001在执行所述控制所述可扩展部件进行扩展时,具体执行以下操作:
在所述第一距离范围内,控制所述可扩展部件以第一扩展速度进行扩展;
在所述第二距离范围内,控制所述可扩展部件以第二扩展速度进行扩展,所述第一扩展速度大于所述第二扩展速度。
在一个实施例中,所述处理器1001在执行所述对所述可扩展部件进行扩展控制时,具体执行以下步骤:获取所述电子设备的重心位置与支撑物在所述参考扩展路径的边界之间的目标距离,所述支撑物用于支撑所述电子设备;当所述目标距离大于预设阈值时,获取所述目标距离与所述扩展距离中的最小距离,控制所述可扩展部件以所述最小距离进行扩展;当所述目标距离小于或者等于所述预设阈值时,控制所述可扩展部件停止扩展。
本领域的技术人员可以清楚地了解到本申请的技术方案可借助软件和/或硬件来实现。本说明书中的“单元”和“模块”是指能够独立完成或与其他部件配合完成特定功能的软件和/或硬件,其中硬件例如可以是现场可编程门阵列(Field-ProgrammaBLE GateArray,FPGA)、集成电路(Integrated Circuit,IC)等。需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
以上所述者,仅为本公开的示例性实施例,不能以此限定本公开的范围。即但凡依本公开教导所作的等效变化与修饰,皆仍属本公开涵盖的范围内。本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未记载的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的范围和精神由权利要求限定。

Claims (20)

  1. 一种可扩展部件的扩展控制方法,应用于电子设备,其特征在于,所述方法包括:
    接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离;
    获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离;
    基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制,包括:
    判断所述扩展距离是否小于所述遮挡距离;
    若所述扩展距离小于所述遮挡距离,则控制所述可扩展部件进行扩展;
    若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件停止扩展。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件以所述遮挡距离进行扩展。
  4. 根据权利要求1所述的方法,其特征在于,所述接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离,包括:
    接收针对可扩展部件的扩展模式所输入的扩展指令,获取所述扩展模式指示的扩展距离以及参考扩展路径。
  5. 根据权利要求1所述的方法,其特征在于,所述接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离,包括:
    接收扩展指令,获取可扩展部件的扩展状态以及所述可扩展部件沿着参考扩展路径的最大扩展距离,所述扩展状态包括已扩展状态和未扩展状态;
    基于所述扩展状态以及所述最大扩展距离,确定所述可扩展部件的扩展距离。
  6. 根据权利要求5所述的方法,其特征在于,所述基于所述扩展状态以及所述最大扩展距离,确定所述可扩展部件的扩展距离,包括:
    当所述扩展状态为已扩展状态时,获取已扩展距离;
    计算所述最大扩展距离与所述已扩展距离的差值,将所述差值确定为所述可扩展部件的扩展距离;
    当所述扩展状态为未扩展状态时,将所述最大扩展距离确定为所述可扩展部件的扩展距离。
  7. 根据权利要求1所述的方法,其特征在于,所述对所述可扩展部件进行扩展控制之后,还包括:
    监测所述可扩展部件的实际扩展路径;
    当所述实际扩展路径与所述参考扩展路径不匹配时,将所述实际扩展路径作为所述参考扩展路径, 并执行所述获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离的步骤。
  8. 根据权利要求2所述的方法,其特征在于,所述扩展距离包括小于距离阈值的第一距离以及大于所述距离阈值的第二距离,所述控制所述可扩展部件进行扩展,包括:
    在所述第一距离范围内,控制所述可扩展部件以第一扩展速度进行扩展;
    在所述第二距离范围内,控制所述可扩展部件以第二扩展速度进行扩展,所述第一扩展速度大于所述第二扩展速度。
  9. 根据权利要求1所述的方法,其特征在于,所述对所述可扩展部件进行扩展控制,包括:
    获取所述电子设备的重心位置与支撑物在所述参考扩展路径的边界之间的目标距离,所述支撑物用于支撑所述电子设备;
    当所述目标距离大于预设阈值时,获取所述目标距离与所述扩展距离中的最小距离,控制所述可扩展部件以所述最小距离进行扩展;
    当所述目标距离小于或者等于所述预设阈值时,控制所述可扩展部件停止扩展。
  10. 一种可扩展部件的扩展控制装置,其特征在于,所述装置包括:
    扩展距离获取模块,用于接收扩展指令,获取可扩展部件沿着参考扩展路径的扩展距离;
    遮挡距离获取模块,用于获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离;
    部件扩展控制模块,用于基于所述扩展距离以及所述遮挡距离,对所述可扩展部件进行扩展控制。
  11. 根据权利要求10所述的装置,其特征在于,所述部件扩展控制模块,包括:
    距离判断单元,用于判断所述扩展距离是否小于所述遮挡距离;
    扩展控制单元,用于若所述扩展距离小于所述遮挡距离,则控制所述可扩展部件进行扩展;
    所述扩展控制单元,还用于若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件停止扩展。
  12. 根据权利要求11所述的装置,其特征在于,所述扩展控制单元,还用于若所述扩展距离大于或者等于所述遮挡距离,则控制所述可扩展部件以所述遮挡距离进行扩展。
  13. 根据权利要求10所述的装置,其特征在于,所述扩展距离获取模块,包括:
    扩展指令接收单元,用于接收针对可扩展部件的扩展模式所输入的扩展指令,获取所述扩展模式指示的扩展距离以及参考扩展路径。
  14. 根据权利要求10所述的装置,其特征在于,所述扩展距离获取模块,包括:
    所述扩展指令接收单元,还用于接收扩展指令,获取可扩展部件的扩展状态以及所述可扩展部件沿着参考扩展路径的最大扩展距离,所述扩展状态包括已扩展状态和未扩展状态;
    扩展距离确定单元,用于基于所述扩展状态以及所述最大扩展距离,确定所述可扩展部件的扩展距离。
  15. 根据权利要求14所述的装置,其特征在于,所述扩展距离确定单元,包括:
    已扩展距离获取子单元,用于当所述扩展状态为已扩展状态时,获取已扩展距离;
    扩展距离确定子单元,用于计算所述最大扩展距离与所述已扩展距离的差值,将所述差值确定为所述可扩展部件的扩展距离;
    所述扩展距离确定子单元,还用于当所述扩展状态为未扩展状态时,将所述最大扩展距离确定为所述可扩展部件的扩展距离。
  16. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    实际扩展路径监测模块,用于监测所述可扩展部件的实际扩展路径;
    参考扩展路径更新模块,用于当所述实际扩展路径与所述参考扩展路径不匹配时,将所述实际扩展路径作为所述参考扩展路径,并执行所述获取所述可扩展部件与所述参考扩展路径上遮挡物之间的遮挡距离的步骤。
  17. 根据权利要求11所述的装置,其特征在于,所述扩展距离包括小于距离阈值的第一距离以及大于所述距离阈值的第二距离,所述装置还包括:
    扩展速度控制模块,用于在所述第一距离范围内,控制所述可扩展部件以第一扩展速度进行扩展;
    所述扩展速度控制模块,还用于在所述第二距离范围内,控制所述可扩展部件以第二扩展速度进行扩展,所述第一扩展速度大于所述第二扩展速度。
  18. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    目标距离获取模块,用于获取所述电子设备的重心位置与支撑物在所述参考扩展路径的边界之间的目标距离,所述支撑物用于支撑所述电子设备;
    所述部件扩展控制模块,还用于当所述目标距离大于预设阈值时,获取所述目标距离与所述扩展距离中的最小距离,控制所述可扩展部件以所述最小距离进行扩展;
    所述部件扩展控制模块,还用于当所述目标距离小于或者等于所述预设阈值时,控制所述可扩展部件停止扩展。
  19. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行如权利要求1~9任意一项的方法步骤。
  20. 一种电子设备,其特征在于,包括:处理器和存储器;其中,所述存储器存储有计算机程序,所述计算机程序适于由所述处理器加载并执行如权利要求1~9任意一项的方法步骤。
PCT/CN2021/073053 2020-03-13 2021-01-21 可扩展部件的扩展控制方法、装置、存储介质及电子设备 WO2021179802A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010174079.5A CN111400207B (zh) 2020-03-13 2020-03-13 可扩展部件的扩展控制方法、装置、存储介质及电子设备
CN202010174079.5 2020-03-13

Publications (1)

Publication Number Publication Date
WO2021179802A1 true WO2021179802A1 (zh) 2021-09-16

Family

ID=71432472

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/073053 WO2021179802A1 (zh) 2020-03-13 2021-01-21 可扩展部件的扩展控制方法、装置、存储介质及电子设备

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116860667A (zh) * 2020-03-13 2023-10-10 Oppo广东移动通信有限公司 可扩展部件的扩展控制方法、装置、存储介质及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005061899A (ja) * 2003-08-08 2005-03-10 Nec Saitama Ltd 携帯電話機による距離測定方式
CN108942914A (zh) * 2017-06-09 2018-12-07 北京猎户星空科技有限公司 机器人避障处理方法、装置及机器人
CN110299865A (zh) * 2019-06-20 2019-10-01 Oppo广东移动通信有限公司 电子设备、电子设备的控制方法及存储介质
CN111400207A (zh) * 2020-03-13 2020-07-10 Oppo广东移动通信有限公司 可扩展部件的扩展控制方法、装置、存储介质及电子设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259649B (zh) * 2018-02-09 2021-07-30 西安中兴新软件有限责任公司 一种移动终端、控制系统和控制方法
CN109089023B (zh) * 2018-07-27 2020-09-18 维沃移动通信有限公司 一种终端及控制方法
CN108989644B (zh) * 2018-08-10 2020-06-30 维沃移动通信有限公司 一种摄像头控制方法及终端
CN109542575A (zh) * 2018-11-29 2019-03-29 努比亚技术有限公司 屏幕扩展方法、系统、移动终端及计算机可读存储介质
CN109639866B (zh) * 2019-01-28 2021-02-12 维沃移动通信有限公司 一种显示方法及终端
CN110418000B (zh) * 2019-07-24 2021-05-11 RealMe重庆移动通信有限公司 终端控制方法、装置、移动终端以及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005061899A (ja) * 2003-08-08 2005-03-10 Nec Saitama Ltd 携帯電話機による距離測定方式
CN108942914A (zh) * 2017-06-09 2018-12-07 北京猎户星空科技有限公司 机器人避障处理方法、装置及机器人
CN110299865A (zh) * 2019-06-20 2019-10-01 Oppo广东移动通信有限公司 电子设备、电子设备的控制方法及存储介质
CN111400207A (zh) * 2020-03-13 2020-07-10 Oppo广东移动通信有限公司 可扩展部件的扩展控制方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN116860667A (zh) 2023-10-10
CN111400207A (zh) 2020-07-10
CN111400207B (zh) 2023-11-10

Similar Documents

Publication Publication Date Title
US20220050561A1 (en) Side Menu Displaying Method and Apparatus and Terminal
CN108958633B (zh) 分屏显示方法、装置、存储介质及电子设备
KR102649254B1 (ko) 디스플레이 제어 방법, 저장 매체 및 전자 장치
EP3742385A1 (en) Face image processing method and device, and storage medium
KR102545602B1 (ko) 전자 장치 및 그의 동작 방법
WO2021232961A1 (zh) 显示控制方法、装置、存储介质及电子设备
CN110083219B (zh) 无按钮的显示器激活
US20220286503A1 (en) Synchronization method and electronic device
RU2632153C2 (ru) Способ, устройство и терминал для отображения виртуальной клавиатуры
CN108196775B (zh) 截图控制方法、柔性屏终端以及计算机可读存储介质
CN106445339B (zh) 一种双屏终端显示立体图像的方法和装置
EP2808771A1 (en) Method for processing input and electronic device thereof
KR20180083587A (ko) 전자 장치 및 그의 동작 방법
KR20150092964A (ko) 지문 처리 방법 및 그 전자 장치
EP3961361A1 (en) Object processing method and terminal device
CN107407945A (zh) 从锁屏捕获图像的系统和方法
CN110209452B (zh) 移动终端的页面显示方法及移动终端
WO2019179054A1 (zh) 房屋立体化虚拟带看方法、装置、移动终端和存储介质
CN108984066B (zh) 一种应用程序图标显示方法及移动终端
CN107733016B (zh) 一种移动终端充电控制方法及移动终端
US20170031591A1 (en) Screen controlling method and electronic device for supporting the same
KR20210041623A (ko) 이미지 표시 방법 및 이동 단말
CN108108113A (zh) 网页切换方法及装置
CN108073405B (zh) 一种应用程序卸载方法及移动终端
WO2021179802A1 (zh) 可扩展部件的扩展控制方法、装置、存储介质及电子设备

Legal Events

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

Ref document number: 21767216

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21767216

Country of ref document: EP

Kind code of ref document: A1