WO2020173388A1 - 一种可折叠式电子设备的控制方法和相关设备 - Google Patents
一种可折叠式电子设备的控制方法和相关设备 Download PDFInfo
- Publication number
- WO2020173388A1 WO2020173388A1 PCT/CN2020/076092 CN2020076092W WO2020173388A1 WO 2020173388 A1 WO2020173388 A1 WO 2020173388A1 CN 2020076092 W CN2020076092 W CN 2020076092W WO 2020173388 A1 WO2020173388 A1 WO 2020173388A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- angle
- foldable electronic
- instruction
- mobile phone
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
Definitions
- This application relates to the field of terminal technology, and in particular, to a control method of a foldable electronic device and related devices. Background technique
- the present application provides a control method of a foldable electronic device and related equipment.
- the method can provide an operation mode of the foldable electronic device, which is more convenient for the user's operation and improves the human-computer interaction experience.
- an embodiment of the present application provides a control method of a foldable electronic device.
- the method may be executed by a first electronic device, and the first electronic device includes a stylus pen, smart bracelet, smart watch, etc.
- the first electronic device communicates with a foldable electronic device, a first switch is provided on the first electronic device, the first electronic device includes a sensor module and a communication module, and the method includes: detecting A first operation of the first switch on the device; in response to the first operation, the sensor module detects the rotation angle of the first electronic device, and the communication module sends a first instruction to the foldable electronic device,
- the first instruction includes first instruction information and second instruction information for indicating angle information, where the angle information corresponds to the rotation angle of the first electronic device detected by the sensor module; and the second instruction information is used for Instructs to expand or collapse the foldable electronic device.
- the user can control the unfolding angle of the foldable electronic device through the first electronic device. Specifically, after detecting its own rotation angle, the first electronic device sends a first instruction to the foldable electronic device, the first instruction carries angle information, and the foldable electronic device expands or folds a certain angle based on the angle information . In this case, the user can realize the purpose of unfolding or folding the foldable electronic device by rotating the first electronic device, which is convenient for the user to operate the foldable electronic device and improves the human-computer interaction experience.
- the rotation angle of the first electronic device is equal to the angle information indicated by the first indication information in the first instruction.
- the first electronic device receives a second instruction sent by the foldable electronic device, where the second instruction is used to instruct the foldable electronic device to expand or collapse successfully or fail; in response to The second instruction, The first electronic device outputs first prompt information for prompting that the foldable electronic device fails to respond.
- the foldable electronic device may not be able to successfully unfold or fold the corresponding angle.
- the foldable device can send the first instruction to the foldable electronic device.
- the electronic device sends the second instruction.
- the first electronic device can output a prompt message to prompt the user that the foldable electronic device has failed to expand or collapse, which is convenient for user operations and helps improve user experience.
- the first electronic device outputs second prompt information, where the second prompt information is used to prompt the user to operate the first electronic device to control the foldable electronic device; the second prompt The information includes one or more of voice information, text information, flashing indicator lights, and vibration.
- the first electronic device may output prompt information to prompt the user to operate the first electronic device to control the foldable electronic device.
- the prompt information may be a process step of operating the first electronic device to control the foldable electronic device, etc.
- the first electronic device can guide the user to operate the first electronic device to control the foldable electronic device to a certain extent, which is convenient for the user to operate and helps to improve the user experience.
- a fingerprint sensor is provided on the first electronic device, and the method further includes: collecting a user's fingerprint through the fingerprint sensor; and sending the fingerprint to the foldable through the communication module Electronic device, the fingerprint is used to unlock the foldable electronic device.
- the fingerprint can be sent to the foldable electronic device to unlock the foldable electronic device.
- the user does not need to hold the foldable electronic device.
- the first electronic device controls the unlocking of the foldable electronic device, which facilitates the user to operate the foldable electronic device and improves the human-computer interaction experience.
- a second switch is provided on the first electronic device, and the method further includes: when it is detected that the second switch is triggered, outputting third prompt information to prompt for stopping control The foldable electronic device.
- the second switch of the first electronic device may be used to stop controlling the foldable electronic device, which is convenient for the user to operate.
- the first electronic device is a stylus pen.
- the stylus is only an example of the first electronic device, and may also be other devices, such as a smart bracelet, a smart watch, etc., which is not limited in the embodiment of the present application.
- the first instruction includes four fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the first indication information, The third field is used to indicate the second indication information.
- the first instruction includes six fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the entry/exit screen control state,
- the fourth field is used to indicate the first angle between the first electronic device and the horizontal plane after rotation, the fifth field is used to indicate expansion/folding, and the sixth field is used to indicate the second angle between the first electronic device and the horizontal plane after rotation
- the absolute value of the difference between the first included angle and the second included angle is the rotation angle;
- the screen control state is used to indicate the preparation state of the foldable electronic device to be expanded or folded.
- the second instruction includes two fields, the first field is used to indicate the access code, and the second field is used to indicate the success or failure of the foldable electronic device's response.
- the first electronic device fails to generate the first instruction, or the first electronic device is foldable
- the stacked electronic device fails to send the first instruction, it outputs a prompt message to remind the user that the sending has failed.
- the first electronic device may not successfully send the first instruction to the foldable electronic device, for example, the first electronic device fails to generate the first instruction or fails to send (Poor signal quality, communication interruption, etc.), a prompt message can be generated to remind the user that the transmission fails.
- an embodiment of the present application provides a method for controlling a foldable electronic device, which can be executed by a foldable electronic device, such as a foldable mobile phone, a foldable ipad, a notebook computer, etc., the foldable The foldable electronic device communicates with the first electronic device.
- the foldable electronic device includes a first body, a second body, and a connecting device. The connecting device is used to control the unfolding angle of the foldable electronic device.
- the unfolding angle is the included angle between the first body and the second body; the method includes: receiving a first instruction sent by the first electronic device, the first instruction including first instruction information and a second instruction Information, the first indication information is used to indicate first angle information, the second indication information is used to indicate expansion or folding of the foldable electronic device; according to the second indication information, the connection device is used to control the The foldable electronic device is expanded or folded at a second angle, where the second angle is an angle determined based on the first angle information.
- the user can control the unfolding angle of the foldable electronic device through the first electronic device.
- the foldable electronic device receives a first instruction sent by the first electronic device, where the first instruction carries angle information, and the foldable electronic device expands or folds a certain angle based on the angle information.
- the user can realize the purpose of unfolding or folding the foldable electronic device by rotating the first electronic device, which is convenient for the user to operate the foldable electronic device and improves the human-computer interaction experience.
- the foldable electronic device includes a first display screen belonging to the first body and a second display screen belonging to the second body; the method further includes: receiving the first body Before the first instruction sent by the electronic device, the first display screen and the second display screen are both turned off, and after receiving the first instruction, when the expansion angle is greater than a first preset angle, all lights are turned on.
- the user can rotate the first electronic device to achieve the purpose of changing the unfolding angle of the foldable electronic device.
- the first display screen is lit, which is greater than the second
- the first display screen and the second display screen are lit, which is convenient for the user to operate the foldable electronic device and improves the human-computer interaction experience.
- the first display screen and the second display screen respectively display the same interface, or the first display screen and the second display screen are used as one display screen, each displaying the same interface Display part of the interface.
- the foldable electronic device is in a locked screen state
- the method further includes: receiving a fingerprint sent by the first electronic device; if the fingerprint verification is successful, the foldable electronic device The device is unlocked.
- the foldable electronic device can receive the fingerprint sent by the first electronic device to unlock the foldable electronic device.
- the user does not need to hold the foldable electronic device, and the first electronic device controls the foldable electronic device.
- the foldable electronic device is unlocked, which is convenient for the user to operate the foldable electronic device and improves the human-computer interaction experience.
- the second angle is equal to the first angle, or the second angle is calculated based on the following formula:
- v is the second angle
- v0 is the preset angle
- E is the first angle
- the first angle may be equal to the second angle, or the first angle and the second angle satisfy the above formula.
- the foldable electronic device also outputs a prompt message when controlling the foldable electronic device to unfold or fold the second angle through the connecting device, and the prompt information is used for prompting
- the foldable electronic device fails to expand or collapse.
- the user when the foldable electronic device fails to expand or collapse, the user may be prompted that the expansion or collapse failed, which is convenient for the user to operate.
- the foldable electronic device sends a second instruction to the first electronic device, and the second instruction is used to instruct the foldable electronic device to expand or fold successfully or fail.
- the first angle information corresponds to the rotation angle of the first electronic device.
- the first angle information is equal to the rotation angle of the first electronic device.
- the first instruction includes four fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the first indication information, The third field is used to indicate the second indication information.
- the first instruction includes six fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the entry/exit screen control state,
- the fourth field is used to indicate the first angle between the first electronic device and the horizontal plane after rotation, the fifth field is used to indicate expansion/folding, and the sixth field is used to indicate the second angle between the first electronic device and the horizontal plane after rotation
- the absolute value of the difference between the first included angle and the second included angle is the rotation angle;
- the screen control state is used to indicate the preparation state of the foldable electronic device to be expanded or folded.
- the second instruction includes two fields, the first field is used to indicate the access code, and the second field is used to indicate the success or failure of the foldable electronic device's response.
- an embodiment of the present application provides a first electronic device, wherein a first switch is provided on the first electronic device, the first electronic device includes a sensor module and a communication module; the first electronic device and a foldable Type electronic device communication, the first switch is used to receive a first operation; the sensor module is used to detect the rotation angle of the first electronic device; the communication module is used to communicate to the foldable electronic device
- the device sends a first instruction, where the first instruction includes first instruction information and second instruction information for indicating angle information, and the angle information corresponds to the rotation angle of the first electronic device detected by the sensor module;
- the second indication information is used to instruct to expand or collapse the foldable electronic device.
- the communication module is further configured to receive a second instruction sent by the foldable electronic device, and the second instruction is used to instruct the foldable electronic device to expand or fold successfully or fail
- the first electronic device further includes an output device, the output device is used to output first prompt information, used to prompt the foldable electronic device to respond failure.
- the output device of the first electronic device is used to output second prompt information
- the second prompt information is used to prompt the user to operate the first electronic device to control the foldable electronic device.
- Equipment; the second prompt information includes one or more of voice information, text information, flashing prompt lights, and vibration.
- a fingerprint sensor is provided on the first electronic device, and the fingerprint sensor is used to collect a user's fingerprint; and the communication module is also used to send the fingerprint to the foldable electronic device , The fingerprint is used to unlock the foldable electronic device.
- a second switch is provided on the first electronic device, and the second switch is used to detect the second operation; the output device of the first electronic device is used to output third prompt information, The prompt is used to stop controlling the foldable electronic device.
- the first electronic device is a stylus pen.
- an embodiment of the present application provides a foldable electronic device, the foldable electronic device includes: a first body and a second body; a connecting device for controlling the unfolding angle of the foldable electronic device
- the deployment angle is the angle between the first body and the second body
- the communication module is configured to receive a first instruction sent by a first electronic device, and the first instruction includes first instruction information and a second instruction.
- Instruction information the first instruction information is used to indicate first angle information
- the second instruction information is used to instruct to expand or collapse the foldable electronic device
- the processor is used to control according to the second instruction information
- the connecting device expands or folds the foldable electronic device at a second angle, where the second angle is an angle determined based on the first angle information.
- the foldable electronic device includes a first display screen belonging to the first body and a second display screen belonging to the second body; the processor is also used to When the unfolding angle of the foldable electronic device is greater than a first preset angle, the first display screen is turned on; when the unfolding angle is greater than a second preset angle, the first display screen and the second display are controlled The screen lights up; wherein, the second preset angle is greater than the first preset angle.
- the first display screen and the second display screen respectively display the same interface, or the first display screen and the second display screen are used as one display screen, each displaying the same interface Display part of the interface.
- the foldable electronic device is in a locked screen state
- the communication module is further configured to receive a fingerprint sent by the first electronic device
- the processor is further configured to display the fingerprint ⁇
- the foldable electronic device is controlled to be unlocked.
- the second angle is equal to the first angle, or the second angle is calculated based on the following formula:
- v is the second angle
- v0 is the preset angle
- E is the first angle
- the output device of the first electronic device is used to: when the foldable electronic device is controlled by the connecting device to unfold or fold the second angle failed, output a prompt message, the prompt The information is used to prompt that the foldable electronic device fails to expand or collapse.
- the communication module is further configured to: issue a second instruction to the first electronic device, and the second instruction is used to instruct the foldable electronic device to expand or collapse successfully or fail.
- the first angle information corresponds to the rotation angle of the first electronic device.
- an embodiment of the present application provides a first electronic device, including a first switch, a sensor module, and a communication module; further including one or more processors; a memory; one or more application programs; one or more programs Where the one or more programs are stored in the memory, and the one or more programs include instructions, and when the instructions are executed by the first electronic device, the first electronic device executes the first One aspect or any one of the possible design methods of the above-mentioned first aspect.
- an embodiment of the present application provides a foldable electronic device, including a first body, a second body, a connection device, and a communication module; further including one or more processors; a memory; one or more application programs; One or more programs, wherein the one or more programs are stored in the memory, the one or more programs include instructions, and when the instructions are executed by the foldable electronic device, the The foldable electronic device implements the second aspect or any one of the possible design methods of the above-mentioned second aspect.
- a first electronic device is also provided, where the first electronic device includes the implementation of the first aspect or the On the one hand, the modules/units of any possible design method; these modules/units can be implemented by hardware, or can be implemented by hardware executing corresponding software.
- a foldable electronic device including modules/units that execute the second aspect or any one of the possible design methods of the second aspect; these modules/units may Implementation through hardware, or implementation of corresponding software through hardware.
- an embodiment of the present application provides a computer storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on a first electronic device, the first electronic device executes the first aspect or Any one of the possible design methods of the first aspect described above.
- an embodiment of the present application provides a computer storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on a foldable electronic device, the foldable electronic device is caused to execute the second Aspect or any one of the possible design methods of the second aspect above.
- a program product containing a program product, when the program product runs on a first electronic device, the first electronic device is made to execute the first aspect or any one of the possible designs of the first aspect above Methods.
- a program product is also provided, when the program product runs on a foldable electronic device, the foldable electronic device is made to perform the second aspect or any one of the above-mentioned second aspects. Design method.
- FIG. 1 is a schematic structural diagram of a foldable mobile phone provided by an embodiment of the application
- Figure 2 is a schematic diagram of an application scenario provided by an embodiment of the application
- FIG. 3 is a schematic structural diagram of a mobile phone 100 provided by an embodiment of the application.
- FIG. 4 is a schematic structural diagram of a stylus provided by an embodiment of the application.
- FIG. 5 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the application
- FIG. 6 is a schematic diagram of the meaning of parameter values in the agreed communication method used when the stylus pen sends data to the mobile phone 100 according to an embodiment of the application;
- FIG. 7 is a schematic diagram of a data transmission format in an agreed communication method provided by an embodiment of this application.
- FIG. 8 is a schematic diagram of data sent by the stylus to the mobile phone 100 according to an embodiment of the application.
- FIG. 9 is a schematic diagram of the meaning of the parameters in the agreed communication method adopted when the mobile phone 100 sends data to the stylus pen according to an embodiment of the application;
- FIG. 10 is a schematic diagram of the mobile phone 100 sending data to the stylus according to an embodiment of the application
- FIG. 11 is a schematic flowchart of a control method of a foldable electronic device according to an embodiment of this application
- FIG. 12 is a schematic diagram of a first instruction provided by an embodiment of this application
- FIG. 13 is a schematic diagram of a second instruction provided by an embodiment of this application.
- FIG. 14 is a schematic diagram of a third instruction provided by an embodiment of this application.
- FIG. 15 is a schematic diagram of the process of controlling the opening of the mobile phone 100 through the stylus provided by an embodiment of the application
- FIG. 16 is a schematic diagram of the process of controlling the closing of the mobile phone 100 through the stylus provided by an embodiment of the application
- FIG. 17 is an embodiment of the application The provided structural diagram of the mobile phone 100
- FIG. 18 is a schematic structural diagram of a shaft system in a mobile phone 100 according to an embodiment of the application.
- FIG. 19 is a schematic diagram of a first shaft system and a second shaft system provided by an embodiment of the application.
- Figure 20 shows the correspondence between the deployment angle and the state of each switch in the shaft system provided by an embodiment of the application Schematic diagram of
- FIG. 21 is a schematic diagram of the software architecture of the mobile phone 100 according to an embodiment of the application.
- FIG. 22 is a schematic diagram of the correspondence between the deployment angle, the lighting mode, and the display mode of the mobile phone 100 according to an embodiment of the application;
- FIG. 23 is a schematic diagram of the display interface of the display when the mobile phone 100 is opened at one angle according to an embodiment of the application
- FIG. 24 is a schematic diagram of the display interface of the display when the mobile phone 100 is opened at another angle according to an embodiment of the application .
- the foldable electronic device is referred to as the main Device
- another electronic device used to control a foldable device is called an auxiliary device.
- it can also be called another name such as a first electronic device or a second electronic device, which is not limited in the embodiment of the present application.
- the main device involved in the embodiment of the present application is a foldable electronic device.
- foldable mobile phones foldable pads, notebook computers and so on.
- FIG. 1 is a schematic structural diagram of a foldable mobile phone provided in an embodiment of this application.
- a foldable mobile phone includes a first body, a second body and a connecting device.
- the connecting device can drive the first body or the second body to rotate to change the angle between the first body and the second body 3, and the specific structure of the connecting device will be described later.
- the foldable mobile phone shown in FIG. 1 may be provided with only one screen, that is, the first body and the second body cover a whole screen (the screen may be a flexible screen), when the first body or the second body When the second body rotates, the screen is folded.
- the foldable mobile phone shown in Figure 1 can also be provided with two independent screens, for example, a screen is provided on the first body, and a screen is provided on the second body. In this case, the two screens may not be flexible screens. .
- the unfolding angle involved in the embodiments of the present application is the angle at which the main device (foldable electronic device) is opened.
- the unfolding angle is the angle between the first body and the second body.
- the included angle 3 for example, when the included angle 3 is 0 degrees, the mobile phone is closed, and when the included angle 3 is 180 degrees, the mobile phone is fully opened. It can be understood that in some other embodiments, when the mobile phone is fully opened, the included angle 3 may also be greater than 180 degrees, which is not limited in the embodiment of the present invention.
- the angle 3 in FIG. 1 may be the angle between the planes where the two bodies are located.
- the auxiliary device involved in the embodiment of the present application is an electronic device used to control the deployment angle of the main device.
- the auxiliary device may include a stylus, a smart bracelet, a smart watch, a smart phone, and so on.
- the auxiliary device after the auxiliary device establishes a connection with the main device, it can be used to control the main device to change the expansion angle of the main device and realize the operation and control of the main device.
- FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of this application.
- the application scenario includes a main device and an auxiliary device, where the main device is a foldable mobile phone as an example, and the auxiliary device is a stylus pen as an example.
- the stylus can send instructions to the foldable mobile phone, and the instructions can be used At indicator angle Degree information (for example, indication information is used to indicate angle 3).
- the foldable mobile phone parses the angle information indicated by the instruction information, and then controls to change the included angle between the first body and the second body based on the angle information. It should be understood that the angle £ and the included angle 3 may be the same or different.
- the stylus can also send other instructions to the foldable mobile phone, such as instructions for instructing the mobile phone 100 to unfold or to fold the mobile phone 100.
- instructions for instructing the mobile phone 100 to unfold or to fold the mobile phone 100 may be sent separately, and may be packaged into a control instruction to be sent, which is not limited in the embodiment of the present application.
- the packaging into a control instruction is taken as an example.
- control method of the foldable electronic device does not require the user to manually pull the foldable electronic device, but instead controls the unfolding angle of the foldable electronic device through other devices, which is convenient for the user to operate .
- the multiple embodiments of the present application refer to greater than or equal to two.
- references described in this specification to "one embodiment” or “some embodiments”, etc. mean that one or more embodiments of the present application include a specific feature, structure, or characteristic described in conjunction with the embodiment. Therefore, the sentences “in one embodiment”, “in some embodiments”, “in some other embodiments”, “in some other embodiments”, etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless it is specifically emphasized in other ways.
- the terms “including”, “including”, “having” and their variations all mean “including but not limited to”, unless otherwise specifically emphasized.
- the main device may be a portable device, such as a foldable mobile phone, a foldable tablet computer, a notebook computer, and the like.
- the portable device includes devices that can realize communication (such as wireless communication modules, mobile communication modules, etc.), devices that can change the deployment angle, such as a hinge system (described later. X.
- Exemplary embodiments of the portable device include but are not limited to carrying iOS ®, Android®, Microsoft® or other operating system portable devices.
- the above-mentioned portable devices can also be other portable devices, as long as they can achieve data communication and change the angle of deployment. It should also be understood that in some other implementations of this application In an example, the above-mentioned main device may also be another device that can realize data communication and can change the expansion angle.
- FIG. 3 shows a schematic structural diagram of the mobile phone 100.
- the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 151, a wireless communication module 152, a sensor module 180, a button 190, a display screen 194, Rotating shaft system 191 and so on.
- the sensor module 180 may include a pressure sensor 180A, a fingerprint sensor 180H, a touch sensor 180K, etc. (The sensor module 180 may also include other sensors such as a temperature sensor, an ambient light sensor, a gyroscope sensor, etc., X is not shown in the figure.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100.
- the mobile phone 100 may include more or fewer components than shown, or some components may be combined, or Split some parts, or arrange different parts.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- AP application processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the mobile phone 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 to store instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
- the processor 110 may be used to parse the control instructions received by the mobile phone 100, and then control the shaft system 191 according to the information (such as angle information, unfolding/folding, etc.) included in the parsed control instructions to drive the first body or The second body rotates to change the unfolding angle of the mobile phone 100.
- the process of selecting the first body or the second body by the shaft system 191 will be described later.
- the processor 110 may also encapsulate the data to be sent, and send the encapsulated data to an auxiliary device such as a stylus through the mobile communication module 151 or the wireless communication module 152.
- a communication method can be agreed between the mobile phone 100 and the stylus pen, and the data format, meaning of parameters, etc. can be agreed in the communication method. Therefore, when the mobile phone 100 parses the control instructions sent by the stylus pen, it can communicate according to the agreement. In addition, when the mobile phone 100 encapsulates the data to be sent, it may also encapsulate according to the agreed communication method, so that the stylus can parse the encapsulated data. The communication method will be described later.
- the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
- the processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121.
- the internal memory 121 may include a program storage area and a data storage area.
- the storage program area can store an operating system, an application program (such as WeChat, Alipay, etc.) required by at least one function.
- the data storage area can store data (such as pictures, videos, audio data, phone books, etc.) created during the use of the mobile phone 100.
- the internal memory 121 can also be used to store the unlocking fingerprint of the mobile phone 100 and the like.
- the unlocking fingerprint is used to verify the fingerprint received by the mobile phone 100. When the received fingerprint is consistent with the unlocking fingerprint, the verification is successful; otherwise, the verification fails.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- a non-volatile memory for example, at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
- the functions of the sensor module 180 are described below.
- the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194.
- the fingerprint sensor 180H is used to collect fingerprints.
- the mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access to the application lock, fingerprint photographs, fingerprint answering calls, and so on.
- the fingerprint sensor 180H collects the unlocked fingerprint, and then stores the unlocked fingerprint in the internal memory In 121, the unlocking fingerprint is used to verify the fingerprint received by the mobile phone 100, and when the verification is successful, the mobile phone 100 is unlocked.
- the user can control the mobile phone 100 through the auxiliary device, so the auxiliary device can collect the user's fingerprint and send the collected fingerprint to the mobile phone 100.
- the processor 110 may compare the received fingerprint with the unlocked fingerprint stored in the internal memory 121, and if they are consistent, control to unlock the device Or, when the mobile phone 100 receives the user's fingerprint sent by the auxiliary device through the wireless communication module 152 or the mobile communication module 151, the fingerprint sensor 180H itself can compare the received fingerprint with the stored unlocked fingerprint, and if the comparison is consistent, the processor Control to unlock the device.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K can be set on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
- the touch sensor 180K is used to detect touch operations on or near it.
- the touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event.
- the display screen 194 can provide visual output related to touch operations.
- the touch sensor 180K may also be arranged on the surface of the mobile phone 100, which is different from the position of the display screen 194.
- the mobile phone 100 realizes the display function through the GPU, the display screen 194, and the application processor.
- the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
- the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light-emitting diode
- AMOLED flexible light-emitting diode
- FLED flexible light-emitting diode
- Miniled MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
- the mobile phone 100 may include one or N display screens 194, and N is a positive integer greater than one.
- the mobile phone 100 may have one display screen, or may have at least two display screens.
- a display screen is provided on the first body and no display screen is provided on the second body; or, a display screen is provided on the second body, and the first body There is no display screen; or, a complete display screen (such as a flexible screen) is covered on the first body and the second body, and the complete display screen is folded when the mobile phone 100 is folded.
- the display area on the first body and the display area on the second body on the display screen can be used as two independent display screens, displaying the same
- the content, or display different content, or the display screen can be used as a large screen to display an interface, which is not limited in the embodiment of the present application.
- an independent display screen is provided on the first body and the second body.
- the two display screens can display the same content or different content, which is not limited in the embodiment of the present application.
- the hinge system 191 is used to change the unfolding angle of the mobile phone 100, and the specific process will be described later.
- the mobile phone 100 can receive key 190 input and generate key signal input related to the user settings and function control of the mobile phone 100.
- the mobile phone 100 may also include a camera, such as a front camera and a rear camera; it may also include an audio module (speaker, receiver, microphone, earphone interface), etc. for implementing audio functions; it may also include a motor, Used to generate vibration prompts (such as incoming call vibrating prompts); it can also include indicators such as indicator lights to indicate Indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc.
- a camera such as a front camera and a rear camera
- an audio module sound card, microphone, etc.
- a motor Used to generate vibration prompts (such as incoming call vibrating prompts)
- indicators such as indicator lights to indicate Indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc.
- the following uses a stylus pen as an auxiliary device to introduce the structure of the stylus pen.
- FIG. 4 is a schematic structural diagram of a stylus provided in an embodiment of this application.
- the handwriting pen includes a communication module, a processing module, a sensor module and a storage module.
- the sensor module may include sensors such as an acceleration sensor, a gyroscope, etc., which are used to detect the angle between the stylus pen and the horizontal direction, and the rotation direction of the stylus pen.
- sensors such as an acceleration sensor, a gyroscope, etc., which are used to detect the angle between the stylus pen and the horizontal direction, and the rotation direction of the stylus pen.
- the processing module is used to process the data detected by the sensor module, such as encapsulating the data detected by the sensor according to an agreed communication mode.
- the storage module is used to store the agreed communication mode between the stylus pen and the mobile phone 100, and other parameters, such as the initial angle E0 of the stylus pen relative to the horizontal direction, etc. The specific content will be introduced later.
- the communication module may be a mobile communication module or a wireless communication module such as a Bluetooth module. Taking the Bluetooth module as an example, the Bluetooth module can send the packaged data to the mobile phone 100.
- the sensor module in the stylus detects sensor data such as the rotation angle and rotation direction of the stylus, and then sends the detected data to the processing module, and the processing module performs processing on these data according to the agreed communication method.
- the encapsulated data is sent to the mobile phone 100 through the communication module.
- the mobile phone 100 receives the packaged data sent by the stylus, analyzes the packaged data according to the agreed communication method, obtains the rotation angle, rotation direction, etc., and then controls the shaft system 191 to change the mobile phone 100 based on the rotation angle, rotation direction, etc. Expand the angle.
- the stylus can only detect data through the sensor module when it detects that it meets certain conditions.
- a switch can be provided on the stylus, and the sensor module can only detect the data when the switch is pressed.
- the processing module in the stylus detects that the switch is pressed, it can trigger the activation of the sensor module to detect data.
- the stylus in order to prevent the user from accidentally triggering the switch, which may cause the sensor module to detect data by mistake, the stylus may detect the data through the sensor module only when it detects that the switch is long pressed. For example, when the stylus detects that the switch is pressed for a preset time (for example, 2 seconds), it triggers the activation of the sensor module to detect data. When the stylus detects that the switch is released (pops up), the sensor module is closed. In other words, when the user controls the mobile phone 100 through the stylus pen, he can long press the switch on the stylus pen, and release the switch when the mobile phone 100 does not need to be controlled.
- a preset time for example, 2 seconds
- the stylus can also have other ways to control the sensor module to detect data.
- the stylus can detect data through the sensor module when it detects that a certain switch is triggered. When the stylus detects that another switch is triggered, it turns off. Sensor module.
- two switches are provided on the stylus. When one switch is triggered, the stylus can control the mobile phone 100, and when the other switch is triggered, the stylus stops controlling the mobile phone 100.
- each switch on the stylus can be provided with identification information (such as a label) to indicate the function of each switch for the user to operate.
- the mobile phone 100 may display the interface of the process steps of controlling the mobile phone 100 through the stylus (the interface of the process steps may be displayed after the initial connection, or it may be displayed every time the phone is connected After that, all the interfaces of the process steps are displayed); or, after the mobile phone 100 is connected to the stylus, the stylus can output prompt information (such as voice output) to prompt the user to control the process steps of the mobile phone 100 through the stylus; or, After the connection between the mobile phone 100 and the stylus pen is established, a control can be displayed on the display screen of the mobile phone 100.
- prompt information such as voice output
- an interface for the process steps of controlling the mobile phone 100 with the stylus pen will pop up; the above are only a few prompt methods listed above. It is used to prompt the user to control the operation steps of the mobile phone 100 through the stylus pen. In actual applications, there may also be other prompt methods, which are not limited in the embodiment of the present application.
- auxiliary device is a stylus.
- the auxiliary device may also be other devices, such as smart bracelets, watches, etc., which are not limited in the embodiments of the present application.
- the mobile phone 100 shown in FIG. 3 and the stylus pen shown in FIG. 4 are taken as examples, and the mobile phone 100 and the stylus pen are connected through Bluetooth as an example for description.
- Bluetooth pairing may be performed first.
- the Bluetooth pairing process may include:
- the mobile phone 100 activates the Bluetooth module, and the stylus activates the Bluetooth module.
- the process of starting the Bluetooth function of the mobile phone 100 may be a process in the prior art.
- FIG. 5 is a schematic diagram of the GUI of the mobile phone 100 provided in this embodiment of the application, as shown in FIG. 5(a).
- the control 501 When the control 501 is activated, the mobile phone 100 activates the Bluetooth function.
- a switch control may be provided on the stylus pen, and when it is detected that the switch control is triggered, the stylus pen activates the Bluetooth module. It should be understood that the switch used to control the activation of the Bluetooth module on the stylus and the above-mentioned switch (the switch used to trigger the sensor module) may be different switches.
- the mobile phone 100 scans the stylus, it displays the identification information of the stylus.
- the mobile phone 100 scans the stylus device, it displays the stylus logo 502 (the logo can be the name of the stylus, the stylus can be set at the factory, or it can be the user Customized, the embodiment of this application does not limit this X
- the mobile phone 100 detects an operation for triggering the establishment of a connection with the stylus, it connects with the stylus. Please refer to FIG. 5(a).
- the mobile phone 100 detects the operation of the user-triggered control 503, it establishes a connection with the stylus; or when the mobile phone 100 detects the operation of the user-triggered control 503, the display is shown in FIG. 5(b) That is, the mobile phone 100 pops up a prompt message 504 to prompt the user whether to establish a connection with the stylus. If the user chooses yes, the mobile phone 100 establishes a Bluetooth connection with the stylus.
- the process shown in FIG. 5 is only an example of the process of establishing a Bluetooth connection between the mobile phone 100 and the stylus.
- other connection methods may also be used.
- the user may also be prompted to input the pairing code of the stylus.
- the mobile phone 100 detects that the user inputs the pairing code of the stylus, a connection is established with the stylus, which is not limited in this embodiment of the application.
- the user can control the unfolding angle of the mobile phone 100 through the stylus. It should be noted that after the Bluetooth connection between the stylus pen and the mobile phone 100 is established, the data transmission between the stylus pen and the mobile phone 100 can be packaged in an agreed communication method.
- the following describes the agreed communication method used by the stylus to send data to the mobile phone 100.
- FIG. 6 is an example of the meaning of different parameter ear values specified by the agreed communication method used when the stylus pen sends data to the mobile phone 100.
- the parameter ear value when the parameter ear value is 1, it represents 0 degrees, when the parameter ear value is 2, it represents 30 degrees, and when the parameter value is 6, it represents the control state. When the value is 7, it means retreat Out of control state and so on.
- the stylus sends data to the mobile phone 100 the data can be encapsulated with the meaning of different values shown in FIG. 6, for example, the initial angle E0 of the stylus is 30 degrees, then according to the table shown in FIG. 6, 30 degrees corresponds to The value of the parameter is 2, and the data sent by the stylus to the mobile phone 100 includes 2.
- the value of the parameter is taken as an example of a decimal number.
- the parameter can also be presented in other ways, such as expressed in different characters (such as letters), or the value of the parameter can also be binary. The number is not limited in the embodiment of this application.
- the data transmission format includes six fields.
- the parameter in the first field is used to indicate the access code (access code); the parameter in the second field is used to indicate the header field. );
- the value in the third field is used to indicate entering or exiting the screen control state; the value of each field in the fourth field to the fifth field can be used to indicate the sensor data of the stylus; for example, the fourth field
- the value in each field is used to indicate the rotation angle E1 of the stylus, the value in the fifth field is used to indicate expansion or collapse, and the value in the sixth field is used to indicate the initial angle E0 of the stylus.
- the initial angle E0 may be the angle between the stylus pen and the horizontal direction.
- the rotated angle E1 can be the angle between the mobile phone and the horizontal after rotating a certain angle from the initial angle. Therefore, the absolute value of the difference between E1 and E0 is how many angles the stylus has rotated.
- the value of the fifth field may be determined by the stylus pen according to the user's operation.
- switch 1 and switch 2 are set on the stylus.
- the user wants To control the mobile phone 100 to be unfolded by the stylus, the user triggers switch 1, and the stylus detects that the switch 1 is triggered, and the value of the third field is 8; when the user wants to control the mobile phone 100 to be folded through the stylus, then The user triggers switch 2, and the stylus detects that switch 2 is triggered, and the value of the third field is 9.
- the stylus when the stylus detects that the switch is long pressed, it starts to control the mobile phone 100. Therefore, in practical applications, the stylus detects that the switch 1 is long pressed and starts to control the mobile phone 100 to expand. When the switch 1 is released, the control of the mobile phone 100 is stopped; when the stylus pen detects that the switch 2 is long pressed, it starts to control the folding of the mobile phone 100; when the stylus detects that the switch 2 is released, it stops controlling the mobile phone 100. In other words, the user can use different switches on the stylus to control whether the mobile phone 100 is unfolded or folded.
- the value of the fifth field may also be determined by the stylus according to its own rotation direction. For example, the stylus detects that the angle between the stylus and the horizontal plane is increased (that is, the difference between E1 and E0). If the value is a positive number), the value of the fifth field of the stylus is 8, and the stylus detects that the user has reduced the angle between the stylus and the horizontal plane (that is, the difference between E1 and E0 is a negative number), then the stylus determines the fifth The value of each field is 9. That is, in this example, the user realizes the effect of controlling the expansion or folding of the mobile phone 100 by changing the rotation direction of the stylus.
- the fourth field is used to indicate the angle E1
- the fifth field is used to indicate expansion or collapse
- the sixth field is used to indicate the initial angle E0
- the fourth field is used to indicate the initial angle E0
- the fifth field is used to indicate expansion or collapse
- the sixth field is used to indicate the angle E1. Wait.
- the stylus when it sends data to the mobile phone 100, it can encapsulate the data according to the meaning of the value shown in FIG. 6 and the data transmission format shown in FIG. 7 (a), and send the encapsulated data to the mobile phone 100.
- the sensor module can send sensor data to the processor module, and the processor module determines that the angle between the stylus and the horizontal plane increases, which corresponds to "unfolding".
- the storage module in the stylus stores each value shown in Figure 6
- the data transmission format shown in Fig. 7 (a) fills in values in different fields to obtain the encapsulated data.
- the communication module sends the encapsulated data to the mobile phone 100.
- FIG. 8 is a schematic diagram of packaged data sent by the stylus to the mobile phone 100.
- the encapsulated data includes six fields, the first field is the access code, the second field is the header, the third field is empty, and the value of the parameter in the fourth field is 2. , The value of the parameter in the fifth field is 8, and the value of the parameter in the sixth field is 1.
- the following describes the process of parsing the encapsulated data after the mobile phone 100 receives the encapsulated data.
- the mobile phone 100 After the mobile phone 100 receives the encapsulated data, it can determine the access code, header, and the value of each field from the third field to the sixth field, and determine the value of each field according to the table shown in FIG. 6 The meaning of the value.
- the access code can be used for data synchronization and identity recognition, etc.
- the access code can include the identity ID of the stylus.
- the mobile phone 100 receives the encapsulated data sent by the stylus, it can analyze the data The access code to obtain the identity ID of the stylus to verify whether the stylus is a device that currently establishes a Bluetooth connection with the mobile phone 100.
- the identity ID of the stylus pen can be stored.
- the mobile phone 100 After the mobile phone 100 receives the encapsulated data sent by the stylus pen, it parses the access code included in the data, and the obtained identity ID and If the stored identity IDs are consistent, it is determined that the stylus is a device currently connected to the mobile phone 100.
- the identity ID may be a media access control (MAC) address, an internet protocol (IP) address, a device identifier (such as a product model), etc., which are not limited in the embodiment of the application.
- the header may include information indicating the bytes occupied by each field from the third field to the sixth field.
- the mobile phone 100 can accurately distinguish different fields according to the header.
- the number of bytes occupied by each field in the third field to the sixth field may be the same or different.
- the 1-72 bytes are the first field
- the 73-127 bytes are the second field
- the 128th to 129th bytes are the third field, which is used to indicate entering or exiting the screen.
- the data of the 130th to 131st bytes is the fourth field, which is used to indicate the angle E1 of the stylus
- the data of the 132nd to 133rd bytes is the fifth field, which is used to indicate expansion or folding
- the 134-135th words is the sixth field, which is used to indicate the initial angle E0 of the stylus.
- the mobile phone 100 determines each field, it determines the value of each field, and determines the meaning of the value of each field according to the table shown in FIG. 7.
- the value in the fifth field indicates to expand the mobile phone 100, and the mobile phone 100 can be based on the absolute value of the difference between E1 (the meaning of the value of the third field) and E0 (the meaning of the value of the sixth field) , Turn on the mobile phone 100 at a certain angle, and the angle may be the same as or different from the absolute value of the difference between E1 and E0.
- the following describes the agreed communication method used when the mobile phone 100 sends data to the stylus pen.
- FIG. 9 is an example of the meaning of different values specified by the agreed communication method used when the mobile phone 100 sends data to the stylus pen.
- the parameter value when the parameter value is 0, it means that the mobile phone 100 responds successfully, and when the parameter value is 1, it means that the mobile phone 100 fails to respond.
- the data transmission format includes a first field, a second field, and a third field.
- the first field is an access code (access code)
- the second field is a header field (header)
- the third field includes one value, and the value is used to indicate whether the mobile phone 100 responds successfully or fails.
- the third field in the data transmission format shown in 7(b) is based on a decimal number as an example. In fact, it can also be represented by characters or binary numbers, which is not limited in the embodiment of the present application.
- the mobile phone 100 When the mobile phone 100 sends data to the stylus pen, it can encapsulate the data according to the data transmission format shown in Fig. 7(b) and the meaning of the parameter values shown in Fig. 9, and send the encapsulated data to the stylus pen.
- FIG. 10 is a schematic diagram of data sent by the mobile phone 100 to the stylus pen.
- the value of the third field in the data sent by the mobile phone 100 to the stylus pen is 0.
- a value of 0 represents a successful response.
- the following describes the process of unpacking the data after the stylus receives the encapsulated data sent by the mobile phone 100.
- the stylus After receiving the encapsulated data sent by the mobile phone 100, the stylus can determine the access code, header, and the value of the third field, and determine the meaning of the value in the third field according to the table shown in FIG. 9.
- the access code can be used for data synchronization and identity recognition.
- the access code can include the identity ID of the mobile phone 100.
- the stylus pen analyzes the data in the The access code can learn the identity ID of the mobile phone 100 to verify whether the mobile phone 100 is a device currently connected with the stylus.
- the header may include the number of bytes used to indicate each field.
- the stylus can accurately determine each byte according to the header. Taking two bytes in the third field of the data shown in FIG. 10 as an example, after receiving the encapsulated data sent by the mobile phone 100, the stylus can determine that the 1-72 bytes are the first field. The data of 73-127 bytes is the second field, and the 128-129th bytes is the third field. The stylus determines the meaning corresponding to the ear value of the third field based on the table shown in FIG. 9, and the value in the third field is used to indicate whether the mobile phone 100 responds successfully or fails.
- the following describes the process of controlling the deployment angle of the mobile phone 100 through the stylus pen.
- the first switch provided on the stylus pen is taken as an example, and the first switch is used to enable the function of the stylus pen to control the opening angle of the mobile phone 100.
- FIG. 11 is a schematic flowchart of a control method of a foldable electronic device according to an embodiment of this application. This method can be applied to auxiliary equipment, such as the stylus mentioned above. As shown in Figure 11, the process of the method includes:
- S1101 The stylus pen detects the first operation input by the user.
- a first switch can be provided on the stylus pen, and when the user wants to control the unfolding angle of the mobile phone 100 through the stylus pen, the first switch can be pressed. Therefore, the first operation may be an operation in which the first switch is pressed.
- the stylus In response to the first operation, the stylus sends a first instruction to the mobile phone 100, where the first instruction is used to instruct the mobile phone 100 to enter the screen control state; the screen control state is used to indicate preparation to adjust the deployment angle.
- the stylus pen after detecting that the first switch has been continuously pressed for a preset period of time, the stylus pen sends the first command to the mobile phone 100.
- the stylus may use the data transmission format shown in FIG. 7(a) to encapsulate the data to be sent, and encapsulate it into the first instruction.
- FIG. 12 is a schematic diagram of the first instruction.
- the value of the third field in the first instruction is 6, which is used to indicate entering the screen control state, and the fourth to sixth fields may be empty.
- S1103 The mobile phone 100 enters the screen control state.
- the mobile phone 100 when the mobile phone 100 enters the screen control state, preparations can be made for changing the deployment angle, such as recording the initial state of the mobile phone 100.
- the initial state includes which body of the mobile phone 100 is currently in contact with the horizontal plane, and the current deployment angle (below Called the initial expansion angle) and so on. For another example, power on the shaft system 191, etc. The specific process will be introduced later.
- the initial state such as the current expansion angle
- the expansion angle is adjusted in the initial state.
- the current expansion angle is 30 degrees
- the mobile phone 100 receives an instruction
- the angle information carried in the instruction is 30 degrees
- the instruction indicates
- the mobile phone 100 is unfolded
- the mobile phone 100 is increased by 30 degrees on the basis of the current unfolding angle, that is, after adjustment, the unfolding angle is 60 degrees.
- S1104 The mobile phone 100 feeds back a second instruction to the stylus pen, where the second instruction is used to indicate that the mobile phone 100 responds successfully.
- the mobile phone 100 may encapsulate the data to be sent according to the data transmission format shown in FIG. 7(b), obtain the second instruction, and send the second instruction to the stylus.
- FIG. 13 is a schematic diagram of the second instruction.
- the value of the third field in the second instruction is 0, which is used to indicate that the mobile phone 100 responds successfully.
- the successful response may be used to indicate that the mobile phone 100 successfully received the first instruction, or used to indicate that the mobile phone 100 successfully enters the screen control state, which is not limited in this embodiment of the application.
- S1105 The stylus detects that it has rotated the first angle.
- the stylus is provided with a sensor module, including a gyroscope or an angular velocity sensor, which can be used to detect the rotation angle of the stylus.
- a sensor module including a gyroscope or an angular velocity sensor, which can be used to detect the rotation angle of the stylus.
- the sensor module detects the angle between the stylus and the horizontal plane, that is, the initial angle E0, and records the initial angle E0.
- the sensor module can detect the angle between the stylus pen and the horizontal plane in real time or periodically.
- the sensor module can detect the angle E1 of the stylus after rotation (the angle between the stylus and the horizontal direction after the stylus is rotated).
- the first angle can be the difference between E1 and E0.
- S1106 The stylus sends a third instruction to the mobile phone 100, where the third instruction may be used to indicate the first angle, and may also be used to instruct to fold or unfold the mobile phone 100
- the stylus can determine whether to expand or fold the mobile phone 100 according to the difference between E1 and E0. For example, when the difference between E1 and E0 is a positive number, expand the phone 10, and when the difference between E1 and E0 is a negative number, fold Mobile phone 100.
- the stylus can use the agreed communication method to encapsulate the data to be sent to obtain the third instruction.
- FIG. 14 is a schematic diagram of the third instruction.
- the value of the third field in the third instruction is empty
- the value of the fourth field represents the rotated angle E1
- the value of the fifth field represents expansion
- the value of the sixth field represents the initial Angle E0.
- the third instruction includes the initial angle E0 and the rotated angle E1
- the absolute value of the difference between the two is the angle by which the stylus is rotated.
- the mobile phone 100 controls the deployment angle of the mobile phone 100 to be the second angle.
- the mobile phone 100 After the mobile phone 100 receives the third instruction, it can parse the third instruction, determine the absolute value of the difference between E1 and E0, obtain the rotation angle of the stylus, and determine the expansion or folding indicated in the third instruction.
- the rotation angle of the mobile phone 100 may be equal to the rotation angle of the stylus.
- the mobile phone 100 controls the rotating shaft system 191 to drive the second body to rotate 30 degrees, so the final deployment angle of the mobile phone 100 is 60 degrees. If the third instruction instructs to fold the mobile phone 100 and the rotation angle of the stylus is 30 degrees, the mobile phone 100 controls the shaft system 191 to drive the second body to rotate 30 degrees. If the initial unfolding angle of the mobile phone 100 is 30 degrees, then the mobile phone 100 finally The angle of deployment is 0 degrees.
- the mobile phone 100 can calculate another angle based on the rotation angle of the stylus.
- the rotation angle of is the calculated angle.
- the third instruction indicates that the rotation angle of the stylus is 30 degrees, and the third instruction indicates that the expansion For the mobile phone 100, the mobile phone 100 calculates another angle value based on 30 degrees, and controls the shaft system 191 to drive the second body to rotate the calculated angle. Therefore, the final deployment angle of the mobile phone 100 is the sum of the initial deployment angle and the calculated angle.
- the mobile phone 100 may calculate the rotation angle according to the following formula (1):
- the mobile phone 100 can calculate the rotation angle V according to the values of El and E0 and the value of V0 carried in the third instruction. Therefore, the rotation angle of the mobile phone 100 is V, not (1-0).
- S1108 The mobile phone 100 sends a fourth instruction to the stylus pen, where the fourth instruction is used to indicate that the response is successful.
- the mobile phone 100 may send a fourth instruction to the stylus to indicate that the rotation is successful.
- the stylus can also be sent to the stylus for rotation failure instruction.
- the stylus pen after the stylus pen receives an instruction for indicating that the mobile phone 100 fails to rotate, it can output a prompt message to prompt the user that the mobile phone 100 fails to rotate.
- the mobile phone 100 after the mobile phone 100 fails to rotate, it may also output a prompt message by itself to remind the user that the rotation failed.
- the mobile phone 100 may also not need to send the fourth instruction to the stylus, which is not limited in the embodiment of the present application.
- the second operation may be an operation in which the first switch on the stylus is released.
- the stylus In response to the second operation, the stylus sends a fifth instruction to the mobile phone 100, where the fifth instruction is used to instruct the mobile phone 100 to exit the screen control state.
- the fifth instruction is similar to the aforementioned first instruction, and will not be repeated here.
- S1111 The mobile phone 100 exits the screen control state.
- the shaft system 191 can be closed, for example, the shaft system 191 can be powered off; or, the recorded data related to the initial state can be deleted.
- the following describes the control process of the stylus pen to the mobile phone 100 through an example.
- FIG. 15 is a schematic diagram of the flow of controlling the unfolding angle of the mobile phone 100 by the stylus. As shown in Figure 15, the process includes:
- the first process the stylus is placed horizontally, the mobile phone 100 is closed (the expansion angle is 0 degrees), and the second body is in contact with the horizontal plane.
- the stylus detects that the switch K1 is long-pressed, it sends the first instruction to the mobile phone 100.
- the first field in the first instruction includes the access code
- the second field includes the header
- the value of the third field is 6 for Instruct the mobile phone 100 to enter the screen control state, and other fields are blank.
- the mobile phone 100 receives the first instruction, enters the screen control state, and records the initial state.
- the initial state includes the initial expansion angle of 0 degrees.
- the second process the stylus is rotated 30 degrees by the user, and the stylus sends a second instruction to the mobile phone 100.
- the first field includes the access code
- the second field includes the header
- the third field is empty.
- the value of the four fields is 2
- the value of the fifth field is 8, and the value of the sixth field is 1.
- the mobile phone 100 receives the second instruction, it analyzes the meaning of each value according to the meaning of the value shown in FIG. 6, and determines that it needs to rotate 60 degrees according to the above formula (1), that is, the mobile phone 100 controls the shaft system 191 to drive the first A body rotates 60 degrees, and the final deployment angle is 60 degrees.
- the user continues to rotate the stylus by 30 degrees, and the stylus sends a third instruction to the mobile phone 100.
- the value of the fourth field is 3, the fifth field is 8, and the sixth field is 2.
- the mobile phone 100 receives the third instruction, it analyzes the meaning of each value according to the meaning of the value shown in FIG. 6, and determines that it needs to rotate 60 degrees according to the above formula (1), then the mobile phone 100 controls the shaft system 191 to drive the first A body continues to rotate 60 degrees, and the final deployment angle is 120 degrees.
- the fourth process the stylus is continuously rotated by the user by 30 degrees, and the stylus sends a fourth instruction to the mobile phone 100.
- the value of the fourth field is 4, the value of the fifth field is 8, and the sixth field is The value is 3.
- the mobile phone 100 receives the fourth instruction, it analyzes the meaning of each value according to the meaning of the value shown in FIG. 6, and determines that it needs to continue to rotate 60 degrees according to the aforementioned formula (1), then the mobile phone controls the shaft system 191 to drive the first A body continues to rotate 60 degrees, and the final deployment angle is 180 degrees.
- the fifth process After detecting that the switch K1 is released, the stylus sends a fifth instruction to the mobile phone 100, and the third field in the fifth instruction takes a value of 7. After receiving the fifth instruction, the mobile phone 100 exits the screen control state.
- the screen of the mobile phone 100 can be automatically turned on from 0 degrees to 180 degrees.
- the mobile phone 100 may determine which screen to light up according to the current deployment angle. For example, if the current deployment angle is within the first angle range, the mobile phone 100 lights up the main screen; if the current deployment angle is within the second angle range, the mobile phone 100 lights up the secondary screen, and the minimum value of the second angle range is greater than the first angle range. The maximum value of an angle range.
- the main screen and the secondary screen on the mobile phone 100 may be set by the user; or, the main screen and the secondary screen on the mobile phone 100 may be set by default when the mobile phone 100 is shipped from the factory; or, the main screen on the mobile phone 100 may be the body that is rotated
- the upper screen, the secondary screen is the screen on the main body that does not rotate; or, the mobile phone 100 detects which screen the user is looking at (for example, the camera on the first main body detects a face, and the user looks at the screen on the first main body), Which screen is the main screen.
- the main screen when the mobile phone 100 detects that the unfolding angle is 60 degrees, the main screen may be lit, assuming that the main screen is the screen of the rotating body (ie, the screen on the first body).
- the lock screen interface can be displayed; or the switch K1 on the stylus is provided with a fingerprint sensor, which can be used to collect the user's fingerprints and send the collected fingerprints to the mobile phone 100, and the mobile phone 100 lights up the main screen After that, it can be verified whether the fingerprint is consistent with the stored fingerprint, and if they are consistent, the device is unlocked, that is, the main interface is displayed after the main screen is lit.
- the mobile phone 100 can send a prompt message to the stylus pen.
- the prompt information (such as a voice prompt) is used to prompt the user to enter a fingerprint on the side of the stylus pen.
- the stylus pen detects that the user has entered the fingerprint, Send to mobile phone 100.
- the fingerprint sensor on the stylus pen may be integrated on the switch K1 shown in FIG. 15, that is, when the user long presses the switch K1 and controls the mobile phone 100 through the stylus pen, the fingerprint sensor on the switch K1 collects the user's fingerprint. Then the collected fingerprints are sent to the mobile phone 100.
- the lock screen interface may be displayed first, and when the fingerprint verification is successful, enter the main interface, or the mobile phone 100 may verify the fingerprint first, and after the verification is successful, the main interface may be displayed directly without displaying the lock screen interface .
- the secondary screen can be in the off-screen state.
- the mobile phone 100 detects that it is turned on at 120 degrees and can light up the secondary screen. After the secondary screen is lit, it can display The same content on the main screen can be used, that is, the display interface of the secondary screen and the main screen are the same.
- the mobile phone 100 detects that it is opened by 180 degrees, the main screen and the secondary screen are used as a complete screen and an interface is displayed, that is, the mobile phone 100 can be used as a pad.
- the specific process will be introduced later.
- FIG. 16 is a schematic diagram of the flow of controlling the unfolding angle of the mobile phone 100 by the stylus. Comparing the process shown in FIG. 16 with the process shown in FIG. 15, it can be seen that in the process shown in FIG. 16, the stylus is gradually changed from a vertical placement state to a horizontal placement state. Therefore, the unfolding angle of the mobile phone 100 is adjusted from 180 degrees. It is 0 degrees.
- the screen of the mobile phone 100 can be gradually turned off during the process from 180 degrees to 0 degrees.
- the unfolding angle of the mobile phone 100 is 180 degrees (the first process), and the main screen and the sub screen can be used as a complete display screen to display one interface.
- the main screen and the sub screen can be used as two separate displays to display the same interface.
- the secondary screen can be turned off, and when the expansion angle is reduced from 60 degrees to 0 degrees, the main screen can be turned off.
- the following describes the process of controlling the deployment angle by the hinge system 191 in the mobile phone 100.
- FIG. 17 is a schematic diagram of the rotating shaft system 191.
- the rotating shaft system 191 includes a first rotating shaft system and a second rotating shaft system.
- the first rotating shaft system can be used to drive the first body to rotate.
- the second rotating shaft system can be used to drive the second body to rotate.
- the initial state of the mobile phone 100 can be recorded.
- the initial state includes which body on the mobile phone 100 is in contact with the desktop. Assuming that the first body is in contact with the desktop, the first axis system of the mobile phone 100 drives The first body rotates; assuming that the second body is in contact with the desktop, the mobile phone 100 controls the second shaft system to drive the second body to rotate.
- the mobile phone 100 can determine which body is in contact with the object through a pressure sensor. For example, if a main body of the mobile phone 100 contacts the desktop, the pressure sensor on the main body generates a pressure signal, the mobile phone 100 can determine that the main body is in contact with the desktop, and then control the rotation of the other main body through the shaft system corresponding to the other main body.
- the mobile phone 100 can also use the ambient light sensor to determine which body does not need to rotate. For example, both the first body and the second body are provided with ambient light sensors, if the ambient light sensor on the first body If it is detected that the ambient light is weak, the mobile phone 100 can rotate the second body. For example, assuming that the user holds the first body of the mobile phone 100, the ambient light sensor on the first body detects that the ambient light is weak, and the mobile phone 100 rotates the second body.
- the mobile phone 100 can also determine which body does not need to be rotated in other ways. For example, if the mobile phone 100 determines that the first body has a larger contact area with the user's hand, the first body does not need to be rotated. 2. The body rotates.
- the first rotating shaft system includes a first cylinder and a second cylinder.
- the second cylinder may be hollow and sleeved outside the first cylinder. That is, the outer diameter of the first cylinder is smaller than the inner diameter of the second cylinder.
- the first cylinder is connected with the first connecting body, and the first connecting body is connected with the first body. Therefore, when the first cylinder rotates, the first body is driven to rotate through the first connecting body.
- the first cylinder may have magnetism.
- Four magnets are arranged inside the first cylinder and the second cylinder to drive the first cylinder to rotate. It should be understood that the four magnets may be metal bodies with wires wound on their outer surfaces. When the wires are energized, the metal bodies generate magnetism.
- the first cylinder itself is magnetic
- half of the first cylinder is S Grade
- the other half is Grade N.
- the four metal bodies are surrounded by wires, and the wires on the periphery of each metal body are connected to the power supply.
- the wires on the periphery of a certain metal body are energized, the metal body generates magnetism, which can attract or repel the first cylinder, thereby causing the A cylinder rotates.
- the switch S3 is closed, the side of the third magnet facing the first cylinder is S-level and attracts the N-level of the first cylinder.
- FIG. 19 is a schematic diagram of two forms of the mobile phone 100.
- the mobile phone 100 may be provided with four magnets, namely a first magnet, a second magnet, a third magnet, and a fourth magnet.
- the positions of the four magnets will not change. For example, when the angle between the first body and the second body is 0, the S level of the first cylinder is facing the first magnet, because at this time the side of the first magnet facing the first cylinder is N level .
- the angle between the first body and the second body is 90 degrees
- the S level of the first cylinder is facing the second magnet, because at this time the side of the second magnet facing the first cylinder is N level .
- the mobile phone 100 may be provided with four magnets, namely a first magnet, a second magnet, a third magnet, and a fourth magnet. Among them, the positions of the four magnets will not change. For example, when the angle between the first body and the second body is 0, the S level of the first cylinder is facing the first magnet, because at this time the side of the first magnet facing the first cylinder is N level . When the angle between the first body and the second body is 90 degrees, the S level of the first cylinder is facing the second magnet, because at this time the side of the second magnet facing the first cylinder is N level .
- a switch may be provided between the wire and the power supply on the periphery of each metal body in the first rotating shaft system or the second rotating shaft system.
- the initial state is recorded.
- the initial state may include the initial expansion angle.
- the mobile phone 100 receives the control instruction sent by the stylus. Assuming that the angle information indicated by the control instruction is 30 degrees, the mobile phone 100 needs to control the first The body rotates by 30, that is, the final expansion angle is 60 degrees (assuming that the initial expansion angle is also 30 degrees), the mobile phone 100 can determine the correspondence between the stored expansion angle and the closed state of S1 ⁇ S2 ⁇ S3 ⁇ S4 When the final deployment angle is 60 degrees, what is the closed state of S1 ⁇ S2 ⁇ S3 ⁇ S4?
- FIG. 20 is an example of a corresponding relationship provided in an embodiment of this application.
- the mobile phone 100 can determine that when the final deployment angle is 60 degrees, S1 is closed, S2 is closed, and S3 and S4 are opened. Therefore, the mobile phone 100 will close S1 and S2 and open S3 and S4.
- Figure 18 (b) when S1 is closed, S2 is closed, and S3 and S4 are open, the side of the first magnet directly opposite to the first cylinder is level N, and the second magnet is connected to the first cylinder The opposite side is also N grade. Therefore, the S stage on the first body rotates 30 degrees under the attractive force of the first magnet and the second magnet. In this case, the first cylinder drives the first body to rotate 30 degrees, and the mobile phone 100 finally unfolds 60 degrees.
- Fig. 20 only lists the closed states of S1 ⁇ S2 ⁇ S3 ⁇ S4 corresponding to the four expansion angles. In practical applications, it can also include more S1 ⁇ S2 ⁇ S3 ⁇ S4 corresponding to the expansion angles. The closed state of S2 ⁇ S3 ⁇ S4 is not listed in the embodiment of this application.
- the second shaft system in the mobile phone 100 can also use a similar method to drive the second body to rotate. For the sake of simplicity of the description, details are not repeated here.
- FIG. 21 is a schematic diagram of the software architecture of the mobile phone 100 provided in this embodiment of the application.
- Figure 21 with Android Take the architecture as an example.
- the architecture includes 4 layers, namely: an application (application) layer, a framework (framework) layer, a system layer, and a kernel (Linux) layer.
- the application layer includes various applications, such as system UI (system UI), WeChat, camera, etc.
- system UI system UI
- WeChat camera, etc.
- the display strategy management module is used to actually light the mode according to the opening and closing status of the mobile phone, For example, which display screen is lit, or what content is displayed on the display screen, etc. The specific content will be introduced later.
- DMS used to send the lighting pattern to WMS.
- WMS used to display the interface according to the lighting pattern sent by the DMS.
- the system library includes a status detection service module and surfaceflinger.
- the status detection service module is used to determine the opening and closing status of the mobile phone according to the sensor data, and report the determined opening and closing status to the framework layer.
- Surfaceflinger is used to trigger the display driver to drive the display interface.
- the kernel layer including sensor drivers and display drivers.
- the sensor driver is used to report the sensor data collected by the sensor to the system layer, and the sensor data includes the opening angle of the mobile phone 100.
- the display driver is used to drive the display interface.
- the hardware architecture of the mobile phone 100 shown in FIG. 3 and the software architecture of the mobile phone 100 shown in FIG. 20 are used as examples to introduce the process of intelligently lighting the screen of the mobile phone 100.
- the sensor driver in the kernel layer reports the sensor data collected by the sensor to the status detection service module in the system library.
- the sensor data includes the angle at which the mobile phone 100 is opened.
- the state detection service module can report the opening angle of the mobile phone 100 to the display policy management module in the framework layer.
- the display strategy management module determines the lighting mode according to the current opening angle.
- the display policy management module may determine the lighting mode according to the current opening angle, for example, when the current opening angle is 60 degrees, the lighting mode is a lighting mode in which the main screen is turned on and the secondary screen is off.
- the mobile phone 100 can store the corresponding relationship between the light-up mode and the opening angle. Please refer to FIG. 22, which is an example of the correspondence between the opening angle and the lighting mode provided in this embodiment of the application.
- the mobile phone 100 can be determined according to Fig. 22. When the current opening angle is 60 degrees, it is in the range of [60, 120], and the corresponding lighting mode is that the main screen is on and the secondary screen is off.
- the display strategy management module determines the lighting mode, it can also determine the display mode.
- the display policy management module determines that the main screen and the secondary screen are lit, it can also determine which interface is displayed on the primary screen and the secondary screen respectively.
- the current opening angle of the mobile phone 100 is 150, and it can be determined that the main screen and the secondary screen respectively display the same interface.
- the display interface of the primary screen and the secondary screen are the same. If the current opening angle of the mobile phone 100 is 180 degrees, it can be seen from the corresponding relationship shown in Figure 22 that the main screen and the secondary screen display one interface as one large screen.
- the primary screen and the secondary screen of the mobile phone 100 act as one large screen. The screen shows the main interface.
- the display mode can be sent to the WMS through the DMS.
- the WMS sends the display mode to the system UI, and the system UI adjusts the parameters of the display interface based on the display mode. For example, when the display mode is on the main screen and the secondary screen is off, the system UI can adjust the parameters of the display interface to the parameters suitable for the main screen. For example, the resolution of the main screen is 1024*768, then the system UI can adjust the resolution of the display interface to 1024 *768.
- the system UI can adjust the resolution of the display interface to 1024*768, through the main screen Display, and adjust the resolution of another display interface to 2400*1200, which is displayed on the secondary screen.
- the main screen and secondary screen involved in Figures 22, 23, and 24 can be set by default when the mobile phone 100 is shipped from the factory, or can be customized by the user during the use of the mobile phone 100, or The mobile phone 100 automatically recognizes it. For example, taking FIG. 1 as an example, the mobile phone 100 detects that the current second body is in contact with the desktop, then it is determined that the display screen corresponding to the second body is the secondary screen, and the display screen corresponding to the first body is the main screen; If a main body contacts the desktop, it is determined that the display screen corresponding to the first main body is the main screen, and the display screen corresponding to the second main body is the secondary screen.
- the opening and closing state of the foldable electronic device can be remotely controlled by the auxiliary device, which facilitates user operations and improves user experience.
- the method provided in the embodiments of the present application is introduced from the perspective of the electronic device (mobile phone 100) as the execution subject.
- the electronic device may include a hardware structure and a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a certain function among the above-mentioned functions is executed by a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
- Computer-readable media include computer storage media and communication media, where communication media includes any media that facilitates the transfer of computer programs from one place to another.
- the storage medium may be any available medium that can be accessed by a computer. Take this as an example, but not limited to: the computer-readable medium may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), and compact disc read-only memory (CD-ROM).
- ROM read-only memory
- Any connection can suitably become a computer-readable medium.
- the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave, Then coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, wireless and microwave are included in the fixing of the medium.
- coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, wireless and microwave are included in the fixing of the medium.
- disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (digital video discs, DVDs), floppy discs and Blu-ray discs, where Disks usually copy data magnetically, while disks use lasers to copy data optically.
- CDs compact discs
- laser discs optical discs
- digital video discs digital video discs
- floppy discs floppy discs
- Blu-ray discs where Disks usually copy data magnetically, while disks use lasers to copy data optically.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种可折叠式电子设备的控制方法和相关设备。该方法包括:检测到针对第一电子设备上第一开关的第一操作;响应于所述第一操作,所述传感器模块检测所述第一电子设备的旋转角度,所述通信模块向所述可折叠式电子设备发送第一指令,所述第一指令包括用于指示角度信息的第一指示信息和第二指示信息,所述角度信息对应所述传感器模块检测的所述第一电子设备的旋转角度;所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。用户可以通过旋转第一电子设备,实现展开或折叠可折叠式电子设备的目的,方便用户操作可折叠式电子设备,提高人机交互体验。
Description
一种可折叠式电子设备的控制方法和相关设备 本申请要求于 2019年 2月 28 日提交中国国家知识产权局、 申请号 201910150396.0、 申请名称为“一种电子设备的控制方法和相关设备”的中国专利申请的优先权, 于 2019年 3 月 27日提交中国专利局、 申请号 201910239290.8、 申请名称为“一种可折叠式电子设备的控 制方法和相关设备”的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本申请涉及终端技术领域, 尤其涉及一种可折叠式电子设备的控制方法和相关设备。 背景技术
目前各种常见的电子产品, 无论是手机、 平板电脑、 电视机等, 均存在一个趋势: 随 着产品的更新换代, 其屏幕也变得越来越大, 这是因为更大的屏幕能给使用者提供更丰富 的信息, 提高人机交流的效率, 并且能够带来更好的使用体验。
然而, 对于一些手机、 pad之类的移动式电子产品, 若其屏幕太大, 则会严重影响其便 携性能。 为了方便携带, 可折叠式电子产品应用而生。 以手机为例, 目前的大屏幕手机可 以被折叠, 折叠后的手机便于携带。
但是, 目前的可折叠式手机的折叠和展开需要用户手动操作, 操作方式单一。 发明内容
本申请提供一种可折叠式电子设备的控制方法和相关设备, 该方法能够提供了一种可 折叠式电子设备的操作方式, 更力 P方便用户的操作, 提高人机交互体验。
第一方面, 本申请实施例提供一种可折叠式电子设备的控制方法。 该方法可以由第一 电子设备执行, 所述第一电子设备包括手写笔、 智能手环、 智能手表等。 所述第一电子设 备与可折叠式电子设备通信, 所述第一电子设备上设置第一开关, 所述第一电子设备包括 传感器模块和通信模块,所述方法包括:检测到针对第一电子设备上第一开关的第一操作; 响应于所述第一操作, 所述传感器模块检测所述第一电子设备的旋转角度, 所述通信模块 向所述可折叠式电子设备发送第一指令, 所述第一指令包括用于指示角度信息的第一指示 信息和第二指示信息, 所述角度信息对应所述传感器模块检测的所述第一电子设备的旋转 角度; 所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。
在本申请实施例中, 用户可以通过第一电子设备控制可折叠式电子设备的展开角度。 具体而言, 第一电子设备检测到自身旋转角度之后, 向可折叠式电子设备发送第一指令, 该第一指令中携带角度信息, 可折叠式电子设备基于该角度信息展开或折叠一定的角度。 这样的话, 用户可以通过旋转第一电子设备, 实现展开或折叠可折叠式电子设备的目的, 方便用户操作可折叠式电子设备, 提高人机交互体验。
在一种可能的设计中, 所述第一电子设备的旋转角度等于所述第一指令中第一指示信 息所指示的角度信息。
在一种可能的设计中, 第一电子设备接收所述可折叠式电子设备发送的第二指令, 所 述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败; 响应于所述第二指令,
所述第一电子设备输出第一提示信息, 用于提示所述可折叠式电子设备响应失败。
在本申请实施例中, 第一电子设备向可折叠式电子设备发送第一指令后, 可折叠式电 子设备可能无法成功的展开或折叠对应的角度, 这样的话, 可折叠式设备可以向第一电子 设备发送第二指令, 第一电子设备接收到第二指令后可以输出提示信息, 以提示用户可折 叠式电子设备展开或折叠失败, 方便用户操作, 有助于提升用户体验。
在一种可能的设计中, 第一电子设备输出第二提示信息, 所述第二提示信息用于提示 用户操作所述第一电子设备以控制所述可折叠式电子设备; 所述第二提示信息包括语音信 息、 文字信息、 提示灯闪烁、 震动中的一种或多种。
在本申请实施例中, 第一电子设备可以输出提示信息, 以提示用户操作第一电子设备 以控制可折叠式电子设备。 比如, 提示信息可以是操作第一电子设备以控制可折叠式电子 设备的流程步骤等, 提示信息有多种, 比如语音信息、 文字信息、 提示灯闪烁、 震动等, 本申请实施例不作限定。 这样的话, 第一电子设备可以在一定程度上指导用户操作第一电 子设备来控制可折叠式电子设备, 方便用户操作, 有助于提升用户体验。
在一种可能的设计中, 所述第一电子设备上设置指纹传感器, 所述方法还包括: 通过 所述指纹传感器采集用户的指纹; 通过所述通信模块将所述指纹发送给所述可折叠式电子 设备, 所述指纹用于解锁所述可折叠式电子设备。
在本申请实施例中, 第一电子设备的指纹传感器采集到指纹之后, 可以将指纹发送给 可折叠式电子设备, 以解锁可折叠式电子设备, 这样的话, 用户无需手持可折叠式电子设 备,而且通过第一电子设备控制可折叠式电子设备解锁,方便用户操作可折叠式电子设备, 提高人机交互体验。
在一种可能的设计中, 所述第一电子设备上设置第二开关, 所述方法还包括: 当检测 到所述第二开关被触发时, 输出第三提示信息, 以提示用于停止控制所述可折叠式电子设 备。
在本申请实施例中, 第一电子设备的第二开关可以用于停止控制可折叠式电子设备, 方便用户操作。
在一种可能的设计中, 所述第一电子设备为手写笔。
应理解, 手写笔仅是第一电子设备的举例, 还可以是其它设备, 比如智能手环, 智能 手表等, 本申请实施例不作限定。
在一种可能的设计中, 所述第一指令包括四个字段, 第一字段用于指示接入码、 第二 字段用于指示头字段, 第三字段用于指示所述第一指示信息, 第三字段用于指示所述第二 指示信息。
在一种可能的设计中, 所述第一指令包括六个字段, 第一字段用于指示接入码、 第二 字段用于指示头字段, 第三字段用于指示进入 /退出屏幕控制状态, 第四字段用于指示第一 电子设备旋转后与水平面的第一夹角, 第五字段用于指示展开 /折叠, 第六字段用于指示第 一电子设备在旋转之后与水平面的第二夹角, 所述第一夹角和所述第二夹角的差值的绝对 值为旋转角度; 所述屏幕控制状态用于指示准备展开或折叠可折叠式电子设备的准备状态。
在一种可能的设计中, 第二指令包括两个字段, 第一字段用于指示接入码, 第二字段 用于指示可折叠式电子设备响应成功或失败。
在一种可能的设计中, 第一电子设备生成第一指令失败时, 或者第一电子设备向可折
叠式电子设备发送第一指令失败时, 输出提示信息, 以提示用户发送失败。
在本申请实施例中, 用户旋转第一电子设备之后, 第一电子设备可能并未成功的将第 一指令发送给可折叠式电子设备, 比如第一电子设备生成第一指令失败, 或者发送失败(信 号质量较差, 通信中断等), 可以生成提示信息, 以提示用户发送失败。
第二方面, 本申请实施例提供一种可折叠式电子设备的控制方法, 该方法可以由可折 叠式电子设备执行, 比如可折叠式手机、 可折叠式 ipad、 笔记本电脑等, 所述可折叠式电 子设备与第一电子设备通信, 所述可折叠式电子设备中包括第一本体、 第二本体和连接装 置, 所述连接装置用于控制所述可折叠式电子设备的展开角度, 所述展开角度为第一本体 和所述第二本体之间的夹角; 所述方法包括: 接收所述第一电子设备发送的第一指令, 所 述第一指令包括第一指示信息和第二指示信息, 所述第一指示信息用于指示第一角度信息, 所述第二指示信息用于指示展开或折叠所述可折叠式电子设备; 根据所述第二指示信息通 过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度, 所述第二角度是基于 所述第一角度信息确定的角度。
在本申请实施例中, 用户可以通过第一电子设备控制可折叠式电子设备的展开角度。 具体而言, 可折叠式电子设备接收到第一电子设备发送的第一指令, 该第一指令中携带角 度信息, 可折叠式电子设备基于该角度信息展开或折叠一定的角度。 这样的话, 用户可以 通过旋转第一电子设备, 实现展开或折叠可折叠式电子设备的目的, 方便用户操作可折叠 式电子设备, 提高人机交互体验。
在一种可能的设计中, 所述可折叠式电子设备包括属于所述第一本体的第一显示屏和 属于第二本体的第二显示屏; 所述方法还包括: 在接收所述第一电子设备发送的第一指令 之前, 所述第一显示屏和所述第二显示屏均熄灭, 在接收所述第一指令之后, 当所述展开 角度大于第一预设角度时, 点亮所述第一显示屏; 当所述展开角度大于第二预设角度时, 点亮所述第一显示屏所述和第二显示屏;其中,所述第二预设角度大于所述第一预设角度。
在本申请实施例中, 用户可以通过旋转第一电子设备, 实现改变可折叠式电子设备的 展开角度的目的, 当展开角度大于第一预设角度时, 点亮第一显示屏, 大于第二预设角度 时, 点亮第一显示屏和第二显示屏, 方便用户操作可折叠式电子设备,提高人机交互体验。
在一种可能的设计中, 所述第一显示屏和所述第二显示屏分别显示相同的界面, 或者 所述第一显示屏和所述第二显示屏作为一个显示屏, 各显示同一个显示界面的一部分。
在一种可能的设计中, 所述可折叠式电子设备处于锁屏状态, 所述方法还包括: 接收 所述第一电子设备发送的指纹; 若所述指纹验证成功, 所述可折叠式电子设备解锁。
在本申请实施例中, 可折叠式电子设备可以接收第一电子设备发送的指纹, 以解锁可 折叠式电子设备, 这样的话, 用户无需手持可折叠式电子设备, 而且通过第一电子设备控 制可折叠式电子设备解锁, 方便用户操作可折叠式电子设备, 提高人机交互体验。
在一种可能的设计中, 所述第二角度等于所述第一角度, 或者所述第二角度是基于如 下公式计算的:
V0 * E
v = -
90
其中, v是所述第二角度, v0是预设角度, E为所述第一角度。
在本申请实施例中, 第一角度可以等于第二角度, 或者第一角度和第二角度满足上述 公式。
在一种可能的设计中, 所述可折叠式电子设备还在通过所述连接装置控制所述可折叠 式电子设备展开或者折叠第二角度失败时, 输出提示信息, 所述提示信息用于提示所述可 折叠式电子设备展开或者折叠失败。
在本申请实施例中, 可折叠式电子设备展开或者折叠失败时, 可以提示用户展开或者 折叠失败, 方便用户操作。
在一种可能的设计中, 所述可折叠式电子设备向所述第一电子设备发送第二指令, 所 述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败。
在一种可能的设计中, 所述第一角度信息与所述第一电子设备的旋转角度对应。
在一种可能的设计中, 所述第一角度信息与所述第一电子设备的旋转角度相等。
在一种可能的设计中, 所述第一指令包括四个字段, 第一字段用于指示接入码、 第二 字段用于指示头字段, 第三字段用于指示所述第一指示信息, 第三字段用于指示所述第二 指示信息。
在一种可能的设计中, 所述第一指令包括六个字段, 第一字段用于指示接入码、 第二 字段用于指示头字段, 第三字段用于指示进入 /退出屏幕控制状态, 第四字段用于指示第一 电子设备旋转后与水平面的第一夹角, 第五字段用于指示展开 /折叠, 第六字段用于指示第 一电子设备在旋转之后与水平面的第二夹角, 所述第一夹角和所述第二夹角的差值的绝对 值为旋转角度; 所述屏幕控制状态用于指示准备展开或折叠可折叠式电子设备的准备状态。
在一种可能的设计中, 第二指令包括两个字段, 第一字段用于指示接入码, 第二字段 用于指示可折叠式电子设备响应成功或失败。
第三方面,本申请实施例提供一种第一电子设备,所述第一电子设备上设置第一开关, 所述第一电子设备包括传感器模块和通信模块; 所述第一电子设备与可折叠式电子设备通 信, 所述第一开关, 用于接收第一操作; 所述传感器模块, 用于检测所述第一电子设备的 旋转角度; 所述通信模块, 用于向所述可折叠式电子设备发送第一指令, 所述第一指令包 括用于指示角度信息的第一指示信息和第二指示信息, 所述角度信息对应所述传感器模块 检测的所述第一电子设备的旋转角度; 所述第二指示信息用于指示展开或折叠所述可折叠 式电子设备。
在一种可能的设计中, 所述通信模块还用于接收所述可折叠式电子设备发送的第二指 令, 所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败; 所述第一电子 设备还包括输出设备, 所述输出设备用于输出第一提示信息, 用于提示所述可折叠式电子 设备响应失败。
在一种可能的设计中, 所述第一电子设备的输出设备用于输出第二提示信息, 所述第 二提示信息用于提示用户操作所述第一电子设备以控制所述可折叠式电子设备; 所述第二 提示信息包括语音信息、 文字信息、 提示灯闪烁、 震动中的一种或多种。
在一种可能的设计中, 所述第一电子设备上设置指纹传感器, 所述指纹传感器用于采 集用户的指纹; 所述通信模块还用于将所述指纹发送给所述可折叠式电子设备, 所述指纹 用于解锁所述可折叠式电子设备。
在一种可能的设计中, 所述第一电子设备上设置第二开关, 所述第二开关用于检测第 二操作; 所述第一电子设备的输出设备, 用于输出第三提示信息, 以提示用于停止控制所 述可折叠式电子设备。
在一种可能的设计中, 所述第一电子设备为手写笔。
第四方面, 本申请实施例提供一种可折叠式电子设备, 所述可折叠式电子设备包括: 第一本体和第二本体; 连接装置, 用于控制所述可折叠式电子设备的展开角度, 所述展开 角度为第一本体和所述第二本体之间的夹角; 通信模块, 用于接收第一电子设备发送的第 一指令, 所述第一指令包括第一指示信息和第二指示信息, 所述第一指示信息用于指示第 一角度信息, 所述第二指示信息用于指示展开或折叠所述可折叠式电子设备; 处理器, 用 于根据所述第二指示信息控制所述连接装置展开或折叠所述可折叠式电子设备第二角度, 所述第二角度是基于所述第一角度信息确定的角度。 在一种可能的设计中, 所述可折叠式电子设备包括属于所述第一本体的第一显示屏和 属于第二本体的第二显示屏; 所述处理器, 还用于在所述可折叠式电子设备的展开角度大 于第一预设角度时, 点亮所述第一显示屏; 在所述展开角度大于第二预设角度时, 控制所 述第一显示屏所述和第二显示屏点亮; 其中, 所述第二预设角度大于所述第一预设角度。
在一种可能的设计中, 所述第一显示屏和所述第二显示屏分别显示相同的界面, 或者 所述第一显示屏和所述第二显示屏作为一个显示屏, 各显示同一个显示界面的一部分。
在一种可能的设计中, 所述可折叠式电子设备处于锁屏状态, 所述通信模块还用于接 收所述第一电子设备发送的指纹; 所述处理器还用于在所述指纹<验证成功时, 控制所述可 折叠式电子设备解锁。
在一种可能的设计中, 所述第二角度等于所述第一角度, 或者所述第二角度是基于如 下公式计算的:
V0 * E
v = -
90
其中, v是所述第二角度, v0是预设角度, E为所述第一角度。
在一种可能的设计中, 所述第一电子设备的输出设备用于: 当通过所述连接装置控制 所述可折叠式电子设备展开或者折叠第二角度失败时, 输出提示信息, 所述提示信息用于 提示所述可折叠式电子设备展开或者折叠失败。
在一种可能的设计中, 所述通信模块还用于: 向所述第一电子设备发出第二指令, 所 述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败。
在一种可能的设计中, 所述第一角度信息与所述第一电子设备的旋转角度对应。
第五方面, 本申请实施例提供一种第一电子设备, 包括第一开关、 传感器模块和通信 模块; 还包括一个或多个处理器; 存储器; 一个或多个应用程序; 一个或多个程序, 其中 所述一个或多个程序被存储在所述存储器中, 所述一个或多个程序包括指令, 当所述指令 被所述第一电子设备执行时, 使得所述第一电子设备执行第一方面或上述第一方面的任意 一种可能的设计的方法。
第六方面, 本申请实施例提供一种可折叠式电子设备, 包括第一本体、 第二本体、 连 接装置和通信模块; 还包括一个或多个处理器; 存储器; 一个或多个应用程序; 一个或多 个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令, 当所述指令被所述可折叠式电子设备执行时, 使得所述可折叠式电子设备执行第二方面或 上述第二方面的任意一种可能的设计的方法。
第七方面, 还提供了一种第一电子设备, 所述第一电子设备包括执行第一方面或者第
一方面的任意一种可能的设计的方法的模块 /单元; 这些模块 /单元可以通过硬件实现, 也可 以通过硬件执行相应的软件实现。
第八方面, 还提供了一种可折叠式电子设备, 所述可折叠式电子设备包括执行第二方 面或者第二方面的任意一种可能的设计的方法的模块 /单元; 这些模块 /单元可以通过硬件实 现, 也可以通过硬件执行相应的软件实现。
第九方面, 本申请实施例提供一种计算机存储介质, 所述计算机可读存储介质包括计 算机程序, 当计算机程序在第一电子设备上运行时, 使得所述第一电子设备执行第一方面 或上述第一方面的任意一种可能的设计的方法。
第十方面, 本申请实施例提供一种计算机存储介质, 所述计算机可读存储介质包括计 算机程序, 当计算机程序在可折叠式电子设备上运行时, 使得所述可折叠式电子设备执行 第二方面或上述第二方面的任意一种可能的设计的方法。
第十一方面, 还提供一种包含程序产品, 当所述程序产品在第一电子设备上运行时, 使得所述第一电子设备执行第一方面或上述第一方面的任意一种可能的设计的方法。
第十二方面, 还提供一种程序产品, 当所述程序产品在可折叠式电子设备上运行时, 使得所述可折叠式电子设备执行第二方面或上述第二方面的任意一种可能的设计的方法。
附图说明
图 1为本申请实施例提供的一种可折叠式手机的结构示意图;
图 2为本申请一实施例提供的一种应用场景的示意图;
图 3为本申请一实施例提供的手机 100的结构示意图;
图 4为本申请一实施例提供的手写笔的结构示意图;
图 5为本申请一实施例提供的手机 100的用户图形界面的示意图;
图 6为本申请一实施例提供的手写笔向手机 100发送数据时采用的约定的通信方式中 参数取值的含义的示意图;
图 7为本申请一实施例提供的约定的通信方式中数据传输格式的示意图;
图 8为本申请一实施例提供的手写笔向手机 100发送的数据的示意图;
图 9为本申请一实施例提供的手机 100向手写笔发送数据时采用的约定的通信方式中 的参数的含义的示意图;
图 10为本申请一实施例提供的手机 100向手写笔发送数据的示意图;
图 11为本申请一实施例提供的可折叠式电子设备的控制方法的流程示意图; 图 12为本申请一实施例提供的第一指令的示意图;
图 13为本申请一实施例提供的第二指令的示意图;
图 14为本申请一实施例提供的第三指令的示意图;
图 15为本申请一实施例提供的通过手写笔控制手机 100打开的流程示意图; 图 16为本申请一实施例提供的通过手写笔控制手机 100闭合的流程示意图; 图 17为本申请一实施例提供的手机 100的结构示意图;
图 18为本申请一实施例提供的手机 100中转轴系统的结构示意图;
图 19为本申请一实施例提供的第一转轴系统和第二转轴系统的示意图;
图 20为本申请一实施例提供的展开角度和转轴系统中每个开关的状态之间的对应关系
的示意图;
图 21为本申请一实施例提供的手机 100的软件架构的示意图;
图 22为本申请一实施例提供的手机 100的展开角度和点亮模式、 显示模式之间的对应 关系的示意图;
图 23为本申请一实施例提供的手机 100打开一个角度时,显示屏的显示界面的示意图; 图 24为本申请一实施例提供的手机 100打开另一个角度时, 显示屏的显示界面的示意 图。 具体实施方式
下面将结合本申请实施例中的附图, 对本申请实施例中的技术方案进行描述。
以下, 对本申请实施例中的部分用语进行解释说明, 以便于本领域技术人员理解。 需要说明的是, 本文中涉及到两个电子设备, 一个是可折叠式设备, 另一个是用于控 制可折叠式设备的电子设备, 为了方便区分, 下文中将可折叠式电子设备称为主设备, 将 另一个用于控制可折叠式设备的电子设备称为辅助设备, 当然还可以被称为其它名称比如 第一电子设备或者第二电子设备等, 本申请实施例对此不作限定。
本申请实施例涉及的主设备, 是可折叠式电子设备。 比如, 可折叠式手机、 可折叠式 pad、 笔记本电脑等等。 以可折叠式手机为例, 请参见图 1所示, 为本申请实施例提供的可 折叠手机的结构示意图。 如图 1 所示, 可折叠式手机包括第一本体和第二本体以及连接装 置。 连接装置可以带动第一本体或者第二本体旋转, 以改变第一本体和第二本体之间的夹 角 3, 关于连接装置的具体结构将在后文介绍。
示例性的, 图 1 所示的可折叠式手机上可以只设置一张屏幕, 即第一本体和第二本体 上覆盖一整块屏(该屏可以为柔性屏), 当第一本体或者第二本体发生旋转时, 该屏幕被折 叠。 当然, 图 1 所示的可折叠式手机上也可以设置两张独立的屏幕, 比如第一本体上设置 一个屏幕, 第二本体上设置一个屏幕, 这种情况下, 两张屏幕可以不是柔性屏。 当然, 还 可以是只在一个本体上设置一个屏幕, 另一个本体上不设置屏幕, 而是按键等, 本申请实 施例对此不限定。
本申请实施例涉及的展开角度, 即主设备(可折叠式电子设备)被打开的角度, 以图 1 所示的可折叠式手机为例, 展开角度即第一本体和第二本体之间的夹角 3, 比如夹角 3为 0 度时, 手机闭合, 夹角 3为 180度时, 手机完全打开。 可以理解, 在另外的一些实施例中, 手机完全打开时, 夹角 3也可以大于 180度, 本发明实施例对此不作限定。
应理解, 为了方便理解, 图 1中角度 3可以是两个本体所在的平面之间的夹角。
本申请实施例涉及的辅助设备, 用于控制主设备的展开角度的电子设备, 辅助设备可 以包括手写笔、 智能手环、 智能手表、 智能手机等等。 在本申请实施例中, 辅助设备与主 设备建立连接之后, 可以用于控制主设备, 以改变主设备的展开角度, 实现对主设备的操 控。
请参见图 2所示, 为本申请实施例提供的一种应用场景的示意图。 如图 2所示, 该应 用场景中包括主设备和辅助设备, 其中, 主设备以可折叠式手机为例, 辅助设备以手写笔 为例。
可折叠式手机和手写笔连接(连接过程将在后文介绍)后, 当手写笔在用户操作下旋 转一定的角度 3时, 手写笔可以向可折叠式手机发送指示信息, 该指示信息可以用于指示角
度信息 (比如指示信息用于指示角度 3)。 可折叠式手机接收到该指示信息之后, 解析该指 示信息所指示的角度信息, 然后基于该角度信息, 控制改变第一本体和第二本体之间的夹 角 £。 应理解, 角度 £和夹角 3可以相同或者不同。
当然, 手写笔还可以向可折叠式手机发送其它指示信息, 比如用于指示展开手机 100 或折叠手机 100 的指示信息。 示例性的, 上述的用于指示角度信息的指示信息和用于指示 展开或折叠手机 100 的其它指示信息可以分别发送, 可以是打包成一个控制指令发送, 本 申请实施例不作限定。 下文中, 以打包成一个控制指令为例。
可见, 本申请实施例提供的可折叠式电子设备(主设备) 的控制方法, 无需用户手动 扳动可折叠式电子设备, 而是通过其它设备控制可折叠式电子设备的展开角度, 方便用户 操作。
本申请实施例涉及的多个, 是指大于或等于两个。
需要说明的是, 本文中术语“和 /或”, 仅仅是一种描述关联对象的关联关系, 表示可以 存在三种关系, 例如, A和成 B , 可以表示: 单独存在 A, 同时存在 A和 B, 单独存在 B 这三种情况。 另外, 本文中字符“/”, 如无特殊说明, 一般表示前后关联对象是一种“或”的 关系。 且在本申请实施例的描述中, “第 “第二”等词汇, 仅用于区分描述的目的, 而不 能理解为指示或暗示相对重要性, 也不能理解为指示或暗示顺序。
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多 个实施例中包括结合该实施例描述的特定特征、 结构或特点。 由此, 在本说明书中的不同 之处出现的语句“在一个实施例中”、 “在一些实施例中”、 “在其他一些实施例中”、 “在另外 一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施 例”, 除非是以其他方式另外特别强调。 术语“包括”、 “包含”、 “具有”及它们的变形都意味 着“包括但不限于”, 除非是以其他方式另外特别强调。
以下介绍主设备、 用于这样的主设备的图形用户界面 ( graphical user interface, GUI)、 和用于使用这样的主设备的实施例。 在本申请一些实施例中, 主设备可以是便携式设备, 诸如可折叠式手机、 可折叠式平板电脑、 笔记本电脑等设备。 该便携式设备包含能够实现 通信的器件(比如无线通信模块、 移动通信模块等)、 能够实现改变展开角度的器件比如转 轴系统(后文介绍 X 该便携式设备的示例性实施例包括但不限于搭载 iOS®、 Android®、 Microsoft®或者其它操作系统的便携式设备。 上述便携式设备也可以是其它便携式设备, 只 要能够实现数据通信, 且改变展开角度即可。 还应当理解的是, 在本申请其他一些实施例 中, 上述主设备还可以是能够实现数据通信, 且能够改变展开角度的其它设备。
以主设备是可折叠式手机(比如图 2所示的应用场景中的手机) 为例, 图 3示出了手 机 100的结构示意图。
如图 3所示, 手机 100可以包括处理器 110, 外部存储器接口 120, 内部存储器 121, 天线 1, 天线 2, 移动通信模块 151, 无线通信模块 152, 传感器模块 180, 按键 190, 显示 屏 194、转轴系统 191等。其中传感器模块 180可以包括压力传感器 180A,指纹传感器 180H, 触摸传感器 180K等(传感器模块 180还可包括其他传感器比如温度传感器、环境光传感器、 陀螺仪传感器等, 图中未示出 X
可以理解的是, 本申请实施例示意的结构并不构成对手机 100 的具体限定。 在本申请 另一些实施例中, 手机 100可以包括比图示更多或更少的部件, 或者组合某些部件, 或者
拆分某些部件, 或者不同的部件布置。 图示的部件可以以硬件, 软件或软件和硬件的组合 实现。
下面对图 3示出的手机 100中的部件进行介绍。
处理器 110 可以包括一个或多个处理单元, 例如: 处理器 110 可以包括应用处理器 (application processor, AP), 调制解调处理器, 图形处理器 (graphics processing unit, GPU), 图像信号处理器 (image signal processor, ISP), 控制器, 存储器, 视频编解码器, 数字信号 处理器 (digital signal processor, DSP) , 基带处理器, 和 /或神经网络处理器 (neural-network processing unit, NPU)等。 其中, 不同的处理单元可以是独立的器件, 也可以集成在一个或 多个处理器中。 其中, 控制器可以是手机 100 的神经中枢和指挥中心。 控制器可以根据指 令操作码和时序信号, 产生操作控制信号, 完成取指令和执行指令的控制。
处理器 110中还可以设置存储器, 用于存储指令和数据。 在一些实施例中, 处理器 110 中的存储器为高速缓冲存储器。 该存储器可以保存处理器 110 刚用过或循环使用的指令或 数据。 如果处理器 110 需要再次使用该指令或数据, 可从所述存储器中直接调用。 避免了 重复存取, 减少了处理器 110的等待时间, 因而提高了系统的效率。
其中, 处理器 110 可以用于解析手机 100接收到的控制指令, 然后根据解析出的控制 指令中所包括的信息 (比如角度信息、 展开 /折叠等)控制转轴系统 191 , 以带动第一本体 或者第二本体旋转, 以改变手机 100的展开角度, 关于转轴系统 191 带动第一本体或者第 二本体选择的过程将在后文介绍。
当然, 处理器 110也可以对要发送的数据进行封装, 将封装之后的数据通过移动通信 模块 151或者无线通信模块 152发送给辅助设备比如手写笔。
应理解,手机 100和手写笔之间可以约定通信方式,该通信方式中可以对数据的格式、 参数的含义等等进行约定, 所以手机 100解析手写笔发送的控制指令时, 可以按照约定的 通信方式进行解析, 而且, 手机 100对要发送的数据进行封装时, 也可以按照约定的通信 方式进行封装, 以便手写笔能够解析封装后的数据, 关于通信方式将在后文介绍。
内部存储器 121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。 处理器 110通过运行存储在内部存储器 121的指令, 从而执行手机 100的各种功能应用以 及数据处理。 内部存储器 121 可以包括存储程序区和存储数据区。 其中, 存储程序区可存 储操作系统, 至少一个功能所需的应用程序 (比如微信、 支付宝等)等。 存储数据区可存储手 机 100使用过程中所创建的数据 (比如图片、 视频、 音频数据, 电话本等)等。
内部存储器 121还可以用于存储手机 100的解锁指纹等。 其中, 解锁指纹用于验证手 机 100接收到的指纹, 当接收到的指纹与解锁指纹一致时, 验证成功, 否则, 验证失败。
其中, 内部存储器 121 可以包括高速随机存取存储器, 还可以包括非易失性存储器, 例如至少一个磁盘存储器件, 闪存器件, 通用闪存存储器 (universal flash storage, UFS)等。
下面介绍传感器模块 180的功能。
压力传感器 180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中, 压力传感器 180A可以设置于显示屏 194。
指纹传感器 180H用于采集指纹。 手机 100可以利用采集的指纹特性实现指纹解锁, 访 问应用锁, 指纹拍照, 指纹接听来电等。
作为一种示例, 指纹传感器 180H采集解锁指纹, 然后将解锁指纹存储在内部存储器
121中, 该解锁指纹用于验证手机 100接收到的指纹, 当验证成功时, 解锁手机 100。 在本 申请实施例中, 用户可以通过辅助设备控制手机 100, 所以辅助设备可以采集用户的指纹, 并将采集到的指纹发送给手机 100。 当手机 100通过无线通信模块 152或者移动通信模块 151接收到辅助设备发送的用户的指纹后, 处理器 110可以比较接收到的指纹和内部存储器 121 中存储的解锁指纹, 若一致, 则控制解锁设备; 或者, 当手机 100 通过无线通信模块 152或者移动通信模块 151接收到辅助设备发送的用户的指纹后, 指纹传感器 180H 自身可 以对比接收到的指纹和存储的解锁指纹, 若对比一致, 则处理器控制解锁设备。
触摸传感器 180K, 也称“触控面板”。 触摸传感器 180K可以设置于显示屏 194 , 由触摸 传感器 180K与显示屏 194组成触摸屏, 也称“触控屏”。 触摸传感器 180K用于检测作用于 其上或附近的触摸操作。 触摸传感器 180K可以将检测到的触摸操作传递给应用处理器, 以 确定触摸事件类型。 可以通过显示屏 194 提供与触摸操作相关的视觉输出。 在另一些实施 例中, 触摸传感器 180K也可以设置于手机 100的表面, 与显示屏 194所处的位置不同。
手机 100通过 GPU, 显示屏 194, 以及应用处理器等实现显示功能。 GPU为图像处理 的微处理器, 连接显示屏 194和应用处理器。 GPU用于执行数学和几何计算, 用于图形渲 染。 处理器 110可包括一个或多个 GPU, 其执行程序指令以生成或改变显示信息。
显示屏 194用于显示图像, 视频等。 显示屏 194 包括显示面板。 显示面板可以采用液 晶显示屏 (liquid crystal display, LCD),有机发光二极管 (organic light-emitting diode, OLED) , 有源矩阵有机发光二极体或主动矩阵有机发光二极体 (active-matrix organic light emitting diode的, AMOLED) ,柔性发光二极管 (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, 量子点发光二极管 (quantum dot light emitting diodes, QLED)等。 在一些实施例 中, 手机 100可以包括 1个或 N个显示屏 194, N为大于 1的正整数。
如前述内容可知, 在本申请实施例中, 手机 100 可以具有一个显示屏, 也可以具有至 少两个显示屏。 以手机 100具有一个显示屏为例, 请参见图 1 所示, 第一本体上设置一个 显示屏, 第二本体上未设置显示屏; 或者, 第二本体上设置一个显示屏, 而第一本体上未 设置显示屏; 或者, 第一本体和第二本体上覆盖一个完整的显示屏 (比如柔性屏), 当手机 100被折叠时, 该完整的显示屏被折叠。
当第一本体和第二本体上覆盖一个完整的显示屏时, 该显示屏上位于第一本体上的显 示区域和位于第二本体上的显示区域可以作为两个独立的显示屏, 显示相同的内容, 或者 显示不同的内容, 或该显示屏可以作为一个大的屏幕可以显示一个界面, 本申请实施例不 作限定。
以手机 100具有两个显示屏为例, 请继续参见图 1 所示, 第一本体和第二本体上均设 置一个独立的显示屏。 示例性的, 当手机 100 包括两个显示屏时, 则这两个显示屏可以显 示相同的内容, 也可以显示不同的内容, 本申请实施例不作限定。
转轴系统 191, 用于改变手机 100的展开角度, 具体过程将在后文介绍。
手机 100可以接收按键 190输入, 产生与手机 100的用户设置以及功能控制有关的键 信号输入。
尽管图 3 未示出, 手机 100还可以包括摄像头, 例如前置摄像头、 后置摄像头; 还可 以包括音频模块 (扬声器, 受话器, 麦克风, 耳机接口 ) 等用于实现音频功能; 还可以包 括马达, 用于产生振动提示 (比如来电振动提示); 还可以包括指示器比如指示灯, 用于指
示充电状态, 电量变化, 也可以用于指示消息, 未接来电, 通知等。
下文以辅助设备是手写笔为例, 介绍手写笔的结构。
请参见图 4所示, 为本申请实施例提供的一种手写笔的结构示意图。 如图 4所示, 手 写笔包括通信模块、 处理模块、 传感器模块和存储模块。
其中, 传感器模块可以包括加速度传感器、 陀螺仪等传感器, 用于检测手写笔与水平 方向的夹角、 手写笔的旋转方向等。
处理模块, 用于对传感器模块检测到的数据进行处理, 比如按照约定的通信方式对传 感器检测到的数据进行封装处理。
存储模块, 用于存储手写笔与手机 100之间约定的通信方式, 以及其它参数, 比如手 写笔相对于水平方向的初始角度 E0等, 具体内容将在后文介绍。
通信模块, 可以是移动通信模块或者无线通信模块比如蓝牙模块。 以蓝牙模块为例, 蓝牙模块可以将封装好的数据发送给手机 100。
下面介绍通过图 4所述的手写笔控制手机 100的过程:
手写笔与手机 100 建立连接之后, 手写笔中的传感器模块检测手写笔的旋转角度、 旋 转方向等传感器数据, 然后将检测到的数据发送给处理模块, 处理模块根据约定的通信方 式对这些数据进行封装, 通过通信模块将封装后的数据发送给手机 100。 手机 100接收到手 写笔发送的封装后的数据,根据约定的通信方式对封装后的数据进行解析,获得旋转角度、 旋转方向等,然后基于旋转角度、旋转方向等控制转轴系统 191改变手机 100的展开角度。
在一些实施例中, 手写笔可以在检测到自身满足一定的条件时, 才通过传感器模块检 测数据, 比如, 手写笔上可以设置一开关, 当该开关被按下时, 传感器模块才检测数据。 具体而言,手写笔中处理模块检测到该开关被按下时,可以触发启动传感器模块检测数据。
因此, 对于用户而言, 当用户需要通过手写笔控制可折叠式手机时, 可以按下手写笔 上的开关。
在本申请一些实施例中, 为了防止用户误触发开关, 而导致误触发传感器模块检测数 据, 手写笔可以在检测到开关被长按时, 才通过传感器模块检测数据。 比如, 手写笔检测 到开关被按下的时长达到预设时间 (比如 2 秒) 时, 才触发启动传感器模块检测数据, 当 手写笔检测到开关被释放(弹起), 则关闭传感器模块。 也就是说, 用户通过手写笔控制手 机 100时, 可以长按手写笔上的开关, 当不需要控制手机 100时, 释放该开关。
当然, 手写笔还可以有其它的方式来控制传感器模块检测数据, 比如手写笔可以在检 测到某个开关被触发时,通过传感器模块检测数据, 当手写笔检测到另一个开关被触发时, 关闭传感器模块。 也就是说, 手写笔上设置有两个开关, 其中一个开关被触发时, 手写笔 可以控制手机 100, 另一个开关被触发时, 手写笔停止控制手机 100。
应理解, 用户在初次使用手写笔控制手机 100时, 可能并不清楚具体如何控制, 所以, 手机 100或者手写笔可以给予用户一定的提示。 作为一种示例, 手写笔上的每个开关可以 设置标识信息 (比如标签), 用于指示每个开关的作用, 以便用户操作。
作为另一种示例, 手机 100和手写笔连接之后, 手机 100可以显示通过手写笔控制手 机 100 的流程步骤的界面 (可以在初次连接之后, 显示所述流程步骤的界面, 也可以在每 次连接之后, 都显示所述流程步骤的界面); 或者, 手机 100和手写笔连接之后, 手写笔可 以输出提示信息(比如语音输出),以提示用户通过手写笔控制手机 100的流程步骤;或者,
手机 100和手写笔建立连接之后, 手机 100的显示屏上可以显示一个控件, 当该控件被触 发时, 弹出通过手写笔控制手机 100 的流程步骤的界面; 以上仅是列举的几种提示方式, 用于提示用户通过手写笔控制手机 100 的操作步骤, 在实际应用中, 还可以有其它提示方 式, 本申请实施例不作限定。
需要说明的是, 图 4仅是以辅助设备是手写笔为例的, 在实际应用中, 辅助设备还可 以是其它设备, 比如智能手环、 手表等, 本申请实施例对此不作限定。
下文中以图 3所示的手机 100和图 4所示的手写笔为例, 且以手机 100和手写笔通过 蓝牙连接为例, 进行说明。
应理解, 两个设备通过蓝牙进行数据通信之前, 可以先进行蓝牙配对。
示例性的, 蓝牙配对过程可以包括:
第一步, 手机 100启动蓝牙模块, 手写笔启动蓝牙模块。
示例性的, 手机 100启动蓝牙功能的过程可以是现有技术的过程, 请参见图 5所示, 为本申请实施例提供的手机 100的 GUI的示意图,如图 5 ( a )所示, 当控件 501被激活时, 手机 100启动蓝牙功能。
示例性的, 手写笔上可以设置一开关控件, 当检测到该开关控件被触发时, 手写笔启 动蓝牙模块。 应理解, 用于手写笔上用于控制启动蓝牙模块的开关和上述的开关 (用于触 发传感器模块的开关)可以是不同的开关。
第二步, 手机 100扫描到手写笔后, 显示手写笔的标识信息。
请继续参见图 5 ( a )所示, 手机 100扫描到手写笔设备后, 显示手写笔的标识 502 (该 标识可以是手写笔的名称, 可以是手写笔出厂时设置好的, 也可以是用户自定义的, 本申 请实施例对此不作限定 X
第三步, 当手机 100检测到用于触发与手写笔建立连接的操作后, 与手写笔连接。 请参见图 5 ( a )所示, 手机 100检测到用户触发控件 503的操作时, 与手写笔建立连 接; 或者手机 100检测到用户触发控件 503的操作时, 显示如图 5 ( b )所示的界面, 即手 机 100弹出提示信息 504, 以提示用户是否与手写笔建立连接, 若用户选择是, 则手机 100 与手写笔建立蓝牙连接。
当然, 图 5所示的过程仅是手机 100与手写笔建立蓝牙连接的过程中的一种举例, 在 实际应用中还可以是其它的连接方式, 比如, 手机 100 与手写笔建立蓝牙连接之前, 还可 以提示用户输入手写笔的配对码, 当手机 100检测到用户输入手写笔的配对码之后, 与手 写笔建立连接, 本申请实施例不限定。
当手写笔和手机 100建立蓝牙连接之后, 用户可以通过手写笔控制手机 100的展开角 度。 需要说明的是, 手写笔和 100手机建立蓝牙连接之后, 手写笔和手机 100之间的数据 传输可以采用约定的通信方式进行封装。
应理解, 手机 100向手写笔发送数据时采用的约定通信方式和手写笔向手机 100发送 数据时采用的约定通信方式可以不同, 下文将分别介绍。
下面介绍手写笔向手机 100发送数据时采用的约定通信方式。
请参见图 6所示, 为手写笔向手机 100发送数据时采用的约定通信方式所规定的不同 参数耳又值的含义的示例。 如图 6所示, 当参数的耳又值为 1时, 代表 0度, 当参数的耳又值为 2 时, 代表 30度, 当参数的取值为 6时, 代表进入控制状态, 当参数的取值为 7时, 代表退
出控制状态等等。 手写笔向手机 100发送数据时可以采用图 6所示的不同取值的含义对数 据进行封装, 比如, 手写笔的初始角度 E0是 30度, 则根据图 6所示的表可知, 30度对应 参数的取值为 2, 则手写笔向手机 100发送的数据中包括 2。 应理解, 图 6中, 参数的取值 是以十进制数为例的, 实际上, 参数还可以以其它方式呈现, 比如以不同的字符 (比如字 母)表示, 或者参数的取值还可以是二进制数, 本申请实施例不作限定。
请参见图 7 ( a )所示, 为手写笔向手机 100发送数据时采用的约定通信方式所规定的 数据传输格式的示例。 如图 7 ( a )所示, 数据传输格式中包括六个字段, 第一个字段内的 参数用于指示接入码 ( access code ); 第二个字段内的参数用于指示头字段 ( header ); 第三 个字段中的取值用于指示进入或退出屏幕控制状态; 第四个字段到第五个字段中每个字段 的取值可以用于指示手写笔的传感器数据; 比如, 第四个字段中的取值用于指示手写笔旋 转后的角度 E1、 第五个字段中的取值用于指示展开或折叠, 第六个字段中的取值用于指示 手写笔的初始角度 E0。 其中, 初始角度 E0可以是手写笔与水平方向的夹角。 旋转后的角 度 E1可以是手机从初始角度开始旋转一定的角度之后, 与水平方向的夹角。 因此, E1 与 E0的差值的绝对值就是手写笔旋转了多少角度。
作为一种示例, 图 7 ( a )所示的数据格式中, 第五个字段的取值可以是手写笔根据用 户操作确定出的, 比如, 手写笔上设置开关 1 和开关 2, 当用户想要通过手写笔控制手机 100展开时, 则用户触发开关 1, 手写笔检测到开关 1被触发, 则第三个字段的取值为 8; 当用户想要通过手写笔控制手机 100折叠时, 则用户触发开关 2, 手写笔检测到开关 2被触 发, 则第三个字段的取值为 9。
应理解, 前面提到, 手写笔检测到开关被长按时, 开始控制手机 100, 所以, 在实际应 用中, 手写笔检测到开关 1被长按下, 开始控制手机 100展开, 当手写笔检测到开关 1被 释放时, 停止控制手机 100; 当手写笔检测到开关 2被长按下时, 开始控制手机 100折叠, 当手写笔检测到开关 2被释放时, 停止控制手机 100。 也就是说, 用户可以使用手写笔上不 同的开关控制手机 100展开还是折叠。
作为另一种示例, 第五个字段的取值还可以是手写笔根据自身的旋转方向确定的, 比 如, 手写笔检测到用户操作手写笔与水平面的夹角增大 (即 E1和 E0的差值是正数), 则手 写笔第五个字段的取值为 8 , 手写笔检测到用户将手写笔与水平面的夹角减少 (即 E1与 E0 的差值是负数), 则手写笔确定第五个字段的取值为 9。 也就是说, 这种示例中, 用户通过 改变手写笔的旋转方向, 实现控制手机 100展开或者折叠的效果。
应理解,图 7 ( a )中,为了方便区别,第三个字段到第六个字段中的参数分别以参数 1、 参数 2、 参数 3、 参数 4来区分, 参数 1-4的取值可以是图 6所示的表中的取值。
需要说明的是, 图 7 ( a )所示的数据传输格式中, 以第四个字段用于指示角度 E1、 第 五个字段用于指示展开或折叠, 第六个字段用于指示初始角度 E0为例, 实际上, 不限定哪 一个字段用于指示角度 E1 , 比如以第四个字段用于指示初始角度 E0、 第五个字段用于指示 展开或折叠, 第六个字段用于指示角度 E1等。
因此, 手写笔向手机 100发送数据时, 可以按照图 6所示的取值的含义, 以及图 7 ( a ) 所示的数据传输格式对数据进行封装, 将封装后的数据发送给手机 100。
下面介绍图 4所示的手写笔对数据进行封装的过程。
手写笔中的传感器模块采集手写笔的传感器数据, 假设传感器模块采集的传感器数据
包括手写笔与水平面的初始角度 E0=0度、旋转后与水平面的夹角 El=30度。传感器模块可 以将传感器数据发送给处理器模块,处理器模块确定手写笔与水平面的夹角增大,即对应“展 开”, 手写笔中的存储模块中存储有图 6所示的每个取值代表的含义, 处理模块可以在存储 模块中查询 E0=0度时对应的取值即 1,E1=30度时对应的取值即 2,“展开”对应的取值即 8, 处理器模块按照图 7 ( a )所示的数据传输格式在不同的字段填充取值, 得到封装之后的数 据。 通信模块将该封装后的数据发送给手机 100。
示例性的, 请参见图 8所示, 为手写笔向手机 100发送的封装之后的数据的示意图。 如图 8所示,封装后的数据包括六个字段,其中第一个字段是接入码,第二个字段是 header, 第三个字段为空, 第四个字段中参数的取值为 2, 第五个字段中参数的取值为 8, 第六个字 段中参数的取值为 1。
下面介绍手机 100接收到封装后的数据之后, 解析封装后的数据的过程。
手机 100接收到封装后的数据之后,可以确定接入码、 header以及第三个字段到第六个 字段中每个字段的取值, 根据图 6所示的表, 确定所述每个字段中取值的含义。
其中, 接入码可以用于进行数据同步和身份识别等, 比如, 接入码中可以包括手写笔 的身份 ID, 当手机 100接收到手写笔发送的封装后的数据后, 可以通过解析数据中的接入 码获知手写笔的身份 ID, 以验证该手写笔是否是当前与手机 100建立蓝牙连接的设备。 示 例性的, 手机 100与手写笔建立蓝牙连接时, 可以存储手写笔的身份 ID, 手机 100接收到 手写笔发送的封装后的数据后,解析数据中包括的接入码,获知的身份 ID与存储的身份 ID 一致, 则确定手写笔是当前与手机 100连接的设备。 其中, 身份 ID可以是媒体访问控制 ( media access control, MAC )地址、 网络协议 ( internet protocol , IP )地址, 设备标识 (比 如产品型号)等, 本申请实施例对此不作限定。
header可以包括用于指示第三个字段到第六个字段中每个字段所占的字节的信息。手机 100可以根据 header准确的区分不同字段。示例性的,第三个字段到第六个字段中每个字段 占用的字节数可以相同或者不同。 比如, 第 1-72字节的是第一字段, 第 73-127字节的数据 是第二字段, 第 128字节到第 129字节的数据是第三字段, 用于指示进入或退出屏幕控制 状态, 第 130-131字节的数据是第四字段, 用于指示手写笔的角度 E1 , 第 132-133字节的 数据是第五字段, 用于指示展开或折叠, 第 134-135字节是第六字段, 用于指示手写笔的初 始角度 E0。
手机 100确定每个字段后, 确定每个字段的取值, 根据图 7所示的表, 确定每个字段 的取值的含义。 比如, 第五个字段中的取值指示展开手机 100, 手机 100可以根据 E1 (第 三个字段的取值的含义)和 E0 (第六个字段的取值的含义)的差值的绝对值, 打开手机 100 一定的角度, 该角度可以与 E1和 E0的差值的绝对值相同或不同。
下面介绍手机 100向手写笔发送数据时采用的约定的通信方式。
请参见图 9所示, 为手机 100向手写笔发送数据时采用的约定的通信方式所规定的不 同取值的含义的示例。 如图 9所示, 当参数的取值为 0时, 代表手机 100响应成功, 当参 数的取值为 1时, 代表手机 100响应失败。
请参见图 7 ( b )所示, 为手机 100向手写笔发送数据时采用的约定的通信方式所规定 的数据传输格式的示例。 如图 7 ( b )所示, 该数据传输格式包括第一字段、 第二字段和第 三字段。 其中, 第一字段是接入码 ( access code )、 第二字段是头字段 ( header ), 以及第三
字段包括 1个取值, 该取值用于指示手机 100响应成功或者失败。
应理解, 7 ( b )所示的数据传输格式中的第三个字段是以十进制数为例的, 实际上还 可以以字符表示, 或者以二进制数表示等, 本申请实施例不作限定。
手机 100向手写笔发送数据时, 可以按照图 7 ( b )所示的数据传输格式、 以及图 9所 示的参数取值的含义对数据进行封装, 将封装后的数据发送给手写笔。
示例性的, 请参见图 10所示, 为手机 100向手写笔发送的数据的示意图。 如图 10所 示, 手机 100向手写笔发送的数据中第三字段中的取值为 0, 根据图 9可知, 取值为 0代表 响应成功。
下面介绍手写笔接收到手机 100发送的封装之后的数据之后, 解封数据的过程。
手写笔接收到手机 100发送的封装后的数据之后,可以确定接入码、 header以及第三个 字段的取值, 根据图 9所示的表, 确定第三个字段中取值的含义。
其中, 接入码可以用于进行数据同步和身份识别, 比如, 接入码中可以包括手机 100 的身份 ID, 当手写笔接收到手机 100发送的封装的数据之后, 手写笔通过解析数据中的接 入码可以获知手机 100的身份 ID,以验证该手机 100是否是当前与手写笔建立连接的设备。
其中, header可以包括用于指示每个字段所占的字节数。 手写笔可以根据 header准确 的确定每个字节。 以图 10所示的数据中第三个字段占用两个字节为例, 手写笔接收到手机 100发送的封装后的数据后, 可以确定第 1-72字节的是第一个字段, 第 73-127字节的数据 是第二个字段, 第 128-129字节是第三个字段。 手写笔基于图 9所示的表, 确定第三个字段 的耳又值对应的含义, 第三个字段中的取值用于指示手机 100响应成功或者失败。
下文介绍通过手写笔控制手机 100的展开角度的过程。
下文中以手写笔上设置第一开关为例, 该第一开关用于开启手写笔控制手机 100 的展 开角度的功能。
请参见图 11 所示, 为本申请实施例一种可折叠式电子设备的控制方法的流程示意图。 该方法可以适用于辅助设备, 比如前文中的手写笔。 如图 11所示, 该方法的流程包括:
S1101 : 手写笔检测用户输入第一操作。
如前述内容可知, 手写笔上可以设置第一开关, 当用户想要通过手写笔控制手机 100 的展开角度时, 可以按下该第一开关。 因此, 第一操作可以是第一开关被按下的操作。
S1102: 手写笔响应于第一操作, 向手机 100发送第一指令, 所述第一指令用于指示手 机 100进入屏幕控制状态; 屏幕控制状态用于指示准备调整展开角度。
示例性的, 手写笔检测到第一开关被持续按下预设时长之后, 向手机 100发送第一指 令。
示例性的, 手写笔可以采用图 7 ( a )所示的数据传输格式对要发送的数据进行封装, 封装成第一指令, 请参见图 12所示, 为第一指令的示意图。 如图 12所示, 第一指令中的 第三个字段的取值为 6, 即用于指示进入屏幕控制状态, 第四字段到第六字段可以为空。
S1103 : 手机 100进入屏幕控制状态。
示例性的, 手机 100进入屏幕控制状态时, 可以为改变展开角度做准备工作, 比如记 录手机 100的初始状态, 初始状态包括手机 100当前哪一个本体与水平面接触, 以及当前 的展开角度 (下文筒称初始的展开角度)等。 再比如, 为转轴系统 191 上电等, 具体过程 将在后介绍。
手机 100记录初始状态 (比如当前展开角度)之后, 在初始状态上调整展开角度, 比 如, 当前展开角度是 30度, 手机 100接收到指令, 指令中携带角度信息是 30度, 且所述 指令指示展开手机 100, 则手机 100在当前展开角度的基础上再增大 30度, 即调整之后, 展开角度是 60度。
S1104: 手机 100向手写笔反馈第二指令, 所述第二指令用于指示手机 100响应成功。 手机 100可以按照采用图 7(b)所示的数据传输格式对要发送的数据进行封装, 得到 第二指令, 将第二指令发送给手写笔。
示例性的, 请参见图 13所示, 为第二指令的示意图。 如图 12所示, 第二指令中的第 三字段的取值为 0, 用于指示手机 100响应成功。
应理解, 响应成功可以用于指示手机 100成功接收到第一指令, 或者用于指示手机 100 成功进入屏幕控制状态, 本申请实施例不限定。
S1105: 手写笔检测到自身旋转第一角度。
手写笔上设置有传感器模块, 包括陀螺仪或者角速度传感器, 可以用于检测手写笔的 旋转角度。
作为一种示例, 手写笔可以在检测到第一开关被按下时, 通过传感器模块检测手写笔 与水平面的夹角即初始角度 E0, 并记录初始角度 E0。 传感器模块可以实时的, 或者周期性 的检测手写笔与水平面的夹角。 当手写笔在用户的操作下发生旋转时, 传感器模块可以检 测到手写笔旋转后的角度 E1 (手写笔旋转之后, 与水平方向的夹角)。 第一角度可以是 E1 与 E0的差值。
S1106: 手写笔向手机 100发送第三指令, 所述第三指令可以用于指示所述第一角度, 还可以用于指示折叠或展开手机 100
如前述内容可知,手写笔可以根据 E1和 E0的差值确定是展开或折叠手机 100, 比如, E1和 E0的差值是正数时, 展开手机 10, E1与 E0的差值是负数时, 折叠手机 100。 手写笔 可以采用约定的通信方式对要发送的数据进行封装, 得到第三指令。
示例性的, 请参见图 14所示, 为第三指令的示意图。 如图 14所示, 第三指令中的第 三字段的取值为空, 第四字段的取值代表旋转后的角度 E1 , 第五字段的取值代表展开, 第 六字段的取值代表初始角度 E0。 在图 14所示的示例中, 第三指令中包括初始角度 E0和旋 转后的角度 E1 , 二者的差的绝对值即手写笔旋转了多少角度。
S1107: 手机 100基于第三指令, 控制手机 100的展开角度为第二角度。
手机 100接收到第三指令之后,可以解析该第三指令,确定 E1与 E0的差值的绝对值, 得到手写笔的旋转角度, 并确定第三指令中指示的展开或折叠。
作为一种示例, 手机 100的旋转角度可以等于手写笔的旋转角度。
举例来说, 以手机 100的初始状态包括第一本体与水平面接触, 且手机 100初始的展 开角度是 30度为例, 若第三指令中指示展开手机 100, 且指示手写笔旋转 30度, 则手机 100控制转轴系统 191带动第二本体旋转 30度, 那么手机 100最终的展开角度是 60度。 若 第三指令中指示折叠手机 100,且手写笔的旋转角度为 30度,则手机 100控制转轴系统 191 带动第二本体旋转 30度, 若手机 100的初始的展开角度 30度, 那么手机 100最终的展开 角度是 0度。
作为另一种示例, 手机 100可以基于手写笔的旋转角度计算出另一个角度, 手机 100
的旋转角度为计算出的角度。
举例来说, 以手机 100的初始状态包括第一本体与水平面接触, 且手机 100初始的展 开角度是 30度为例, 第三指令指示手写笔的旋转角度是 30度, 且第三指令指示展开手机 100, 则手机 100基于 30度计算另一个角度值, 控制转轴系统 191带动第二本体旋转计算 出的角度。 因此, 手机 100的最终的展开角度是初始展开角度与计算出的角度之和。
示例性的, 手机 100可以根据如下公式( 1), 计算旋转角度:
手机 100根据第三指令中携带的 El、 E0的取值,和 V0的取值,可以计算旋转角度 V。 因此, 手机 100旋转的角度是 V, 而不是( 1 - 0)。
S1108: 手机 100向手写笔发送第四指令, 该第四指令用于指示响应成功。
示例性的, 手机 100旋转角度成功之后, 可以向手写笔发送第四指令, 用于指示旋转 成功。 当然, 手机 100旋转失败(比如转轴系统 191 工作异常, 无法上电等, 导致展开角 度并未发生变化, 或者, 手机 100 已经展开到最大角度)之后, 也可以向手写笔发送用于 旋转失败的指令。
作为一种示例, 当手写笔接收到用于指示手机 100旋转失败的指令之后, 可以输出提 示信息, 以提示用户手机 100旋转失败。 当然, 手机 100旋转失败之后, 也可以自身输出 提示信息, 以提示用户旋转失败。
在另一些实施例中, 手机 100也可以无需向手写笔发送第四指令, 本申请实施例不作 限定。
S1009: 手写笔检测到第二操作。
示例性的, 第二操作可以是手写笔上的第一开关被释放的操作。
S1010: 手写笔响应于第二操作, 向手机 100发送第五指令, 所述第五指令用于指示手 机 100退出屏幕控制状态。
示例性的, 第五指令与前述的第一指令类似, 在此不再重复赘述。
S1111 : 手机 100退出屏幕控制状态。
示例性的, 手机 100 退出屏幕控制状态时, 可以关闭转轴系统 191 , 比如将转轴系统 191断电; 或者, 将记录的初始状态的相关数据删除。
下面通过举例介绍手写笔对手机 100的控制流程。
示例 1 :
请参见图 15所示, 为手写笔控制手机 100的展开角度的流程示意图。 如图 15所示, 该流程包括:
第一过程: 手写笔水平放置, 手机 100闭合(展开角度为 0度), 且第二本体与水平面 接触。 手写笔检测到开关 K1被长按后, 向手机 100发送第一指令, 第一指令中第一个字段 包括 access code, 第二个字段包括 header, 第三字段中的取值为 6, 用于指示手机 100进入 屏幕控制状态, 其它字段为空。 手机 100接收到第一指令, 进入屏幕控制状态, 记录初始 状态, 初始状态包括初始的展开角度为 0度。
第二过程: 手写笔被用户旋转 30度, 手写笔向手机 100发送第二指令, 该第二指令中 第一个字段包括 access code, 第二个字段包括 header, 第三个字段为空, 第四个字段中取值 为 2、 第五字段中取值为 8, 第六字段中取值为 1。 手机 100接收到第二指令后, 据图 6所 示的取值的含义解析每个取值的含义, 并根据上述公式(1), 确定需要旋转 60度, 即手机 100控制转轴系统 191带动第一本体旋转 60度, 最终的展开角度是 60度。
第三个过程, 手写笔被用户继续旋转 30度, 手写笔向手机 100发送第三指令, 该第三 指令中第四字段中取值为 3, 第五字段是 8, 第六字段是 2。 手机 100接收到第三指令后, 根据图 6所示的取值的含义解析每个取值的含义, 并按照上述公式( 1), 确定需要旋转 60 度,则手机 100控制转轴系统 191带动第一本体继续旋转 60度,最终的展开角度是 120度。
第四过程: 手写笔被用户继续旋转 30度, 手写笔向手机 100发送第四指令, 该第四指 令中第四字段的取值为 4, 第五字段的取值为 8, 第六字段中取值为 3。 手机 100接收到第 四指令后, 据图 6 所示的取值的含义解析每个取值的含义, 并根据前述公式(1), 确定需 要继续旋转 60度, 则手机控制转轴系统 191带动第一本体继续旋转 60度, 最终的展开角 度是 180度。
第五过程: 手写笔检测到开关 K1被释放后, 向手机 100发送第五指令, 第五指令中第 三字段中取值为 7。 手机 100接收到第五指令后, 退出屏幕控制状态。
需要说明的是, 在图 15所示的过程中, 手机 100从 0度打开到 180度的过程中, 可以 自动点亮屏幕。
作为一种示例, 手机 100可以根据当前的展开角度, 判断点亮哪一个屏幕。 比如, 若 当前展开角度处于第一角度范围内时, 手机 100 点亮主屏; 若当前展开角度处于第二角度 范围内时, 手机 100点亮副屏, 第二角度范围的最小值大于所述第一角度范围的最大值。
示例性, 手机 100上主屏和副屏可以是用户设置的; 或者, 手机 100上的主屏和副屏 可以是手机 100出厂时默认设置好的; 或者, 手机 100上的主屏可以是发生旋转的本体上 屏幕, 副屏是未发生旋转的本体上的屏幕; 或者, 手机 100检测到用户注视哪一个屏幕(比 如第一本体上的摄像头检测到人脸,则用户注视第一本体上的屏幕),则哪一个屏幕是主屏。
示例性的, 继续以图 15为例, 手机 100检测到展开角度是 60度时, 可以点亮主屏, 假设主屏是发生旋转的本体的屏幕(即第一本体上的屏幕)。 手机 100点亮主屏之后, 可以 显示锁屏界面; 或者手写笔上的开关 K1上设置有指纹传感器, 可以用于采集用户的指纹, 并将采集到的指纹发送给手机 100, 手机 100点亮主屏之后, 可以验证该指纹与存储的指纹 是否一致, 若一致, 则解锁设备, 即主屏点亮后显示主界面。 示例性的, 手机 100 点亮主 屏后, 可以向手写笔发送一提示信息, 该提示信息 (比如语音提示)用于提示用户在手写 笔侧录入指纹, 手写笔检测到用户录入指纹之后, 将指纹发送给手机 100。 示例性的, 手写 笔上的指纹传感器可以集成在图 15所示的开关 K1上, 即当用户长按开关 K1 , 通过手写笔 控制手机 100时, 开关 K1上的指纹传感器就采集到用户指纹, 然后将采集到的指纹发送给 手机 100。
示例性的, 主屏点亮之后, 可以先显示锁屏界面, 当指纹验证成功之后, 进入主界面, 或者, 手机 100可以先验证指纹, 验证成功之后, 可以直接显示主界面, 无需显示锁屏界 面。 在第二个过程中, 副屏可以处于灭屏状态。
在第三个过程中, 手机 100检测到打开 120度, 可以点亮副屏, 副屏点亮后可以显示
可以主屏相同的内容, 即副屏和主屏的显示界面相同。 当手机 100检测到打开 180度时, 主屏和副屏作为一个完整的屏幕, 显示一个界面, 即手机 100可以作为 pad使用。 具体过程 将在后文介绍。
示例 2:
请参见图 16所示, 为手写笔控制手机 100的展开角度的流程示意图。 对比图 16所示 的过程和图 15所示的过程可知, 图 16所示的流程中, 手写笔是逐渐从竖直放置状态改变 成水平放置状态, 所以, 手机 100的展开角度从 180度调整为 0度。
需要说明的是, 在图 16所示的过程中, 手机 100从 180度到 0度的过程中, 可以逐渐 熄灭屏幕。
示例性的, 图 16所示的示例中, 手机 100的展开角度是 180度(第一个过程), 主屏 和副屏可以作为一个完整的显示屏显示一个界面。 在展开角度从 180度减小到 120度的过 程(第二个过程) 中, 主屏和副屏可以作为两个单独的显示屏显示相同的界面。 在展开角 度从 120度减小到 60度的过程(第三个过程) 中, 可以熄灭副屏, 在展开角度从 60度减 小到 0度时, 可以熄灭主屏。
下面介绍手机 100中转轴系统 191控制展开角度的过程。
请参见图 17所示, 为转轴系统 191的示意图, 如图 17所示, 转轴系统 191中包括第 一转轴系统和第二转轴系统, 其中, 第一转轴系统可以用于带动第一本体旋转, 第二转轴 系统可以用于带动第二本体旋转。 如前述内容可知, 手机 100进入屏幕控制状态时, 可以 记录手机 100的初始状态, 初始状态包括手机 100上哪一个本体与桌面接触, 假设第一本 体与桌面接触, 则手机 100 第一转轴系统带动第一本体发生旋转; 假设第二本体与桌面接 触, 则手机 100控制第二转轴系统带动第二本体发生旋转。
在一些实施例中, 手机 100可以通过压力传感器判断哪一个本体与物体接触。 比如, 手机 100的一个本体与桌面接触, 该本体上的压力传感器产生压力信号, 手机 100可以确 定该本体与桌面接触, 则通过另一个本体对应的转轴系统来控制另一个本体发生旋转。
在另一些实施例中, 手机 100也可以通过环境光传感器判断哪一个本体不需要发生旋 转, 比如, 第一本体和第二本体上都设置有环境光传感器, 若第一本体上的环境光传感器 检测到环境光较弱, 则手机 100可以旋转第二本体。 举例来说, 假设用户握持手机 100的 第一本体, 则第一本体上的环境光传感器检测到环境光较弱, 手机 100旋转第二本体。
在其它实施例中, 手机 100还可以通过其它方式判断哪一个本体不需要发生旋转, 比 如, 手机 100判断第一本体上与用户手部的接触面积较大, 则第一本体不需要旋转, 第二 本体旋转。
以第一转轴系统为例,请参见图 18( a)所示,第一转轴系统包括第一柱体和第二柱体, 第二柱体可以是空心的, 套设在第一柱体外, 即第一柱体的外径小于第二柱体的内径。 第 一柱体与第一连接体连接, 第一连接体与第一本体连接, 所以当第一柱体发生旋转时, 通 过第一连接体带动第一本体发生旋转。
第一柱体可以具有磁性, 在第一柱体外、 第二柱体内设置有四个磁体, 用于带动第一 柱体发生旋转。 应理解, 四个磁体可以是外表面缠绕着导线的金属体, 当导线通电时, 金 属体产生磁性。
示例性的, 请继续参见图 18(b)所示, 第一柱体本身具有磁性, 且第一柱体一半为 S
级, 另一半为 N级。 4个金属体外都外绕着导线, 每个金属体外围的导线与电源连接, 当 某个金属体外围的导线通电时, 该金属体产生磁性, 可以吸引或排斥第一柱体, 进而导致 第一柱体发生旋转。 请继续参见图 18 ( b )所示, 当开关 S3闭合时, 第三磁体正对第一柱 体的一侧呈 S级, 吸引第一柱体的 N级。
请参见图 19所示, 为手机 100的两种形态的示意图。 当第二本体与桌面接触, 第一转 轴系统的横截面如图 19 ( a )所示, 第一柱体带动第一本体发生旋转。 作为一种示例, 手机 100可以设置四个磁体分别为第一磁体、 第二磁体、 第三磁体, 第四磁体。 其中, 四个磁体 的位置不会变化。 比如, 当第一本体和第二本体之间的夹角为 0时, 第一柱体的 S级正对 第一磁体, 因为此时第一磁体正对第一柱体的一侧是 N级。 当第一本体和第二本体之间的 夹角为 90度时, 第一柱体的 S级正对第二磁体, 因为, 此时第二磁体正对第一柱体的一侧 是 N级。
当第一本体与桌面接触, 第二转轴系统的横截面如图 19 ( b )所示, 第二转轴系统中的 第一柱体带动第二本体发生旋转。 作为一种示例, 手机 100可以设置四个磁体分别为第一 磁体、 第二磁体、 第三磁体, 第四磁体。 其中, 四个磁体的位置不会变化。 比如, 当第一 本体和第二本体之间的夹角为 0时, 第一柱体的 S级正对第一磁体, 因为此时第一磁体正 对第一柱体的一侧是 N级。 当第一本体和第二本体之间的夹角为 90度时, 第一柱体的 S级 正对第二磁体, 因为, 此时第二磁体正对第一柱体的一侧是 N级。
应理解, 为了方便控制某一个金属体产生磁性, 第一转轴系统或第二转轴系统中每个 金属体外围的导线和电源之间可以设置一个开关。
下面以手机 100 的第二本体与桌面接触, 通过第一转轴系统带动第一本体发生旋转为 例, 进行说明。
手机 100进入屏幕控制状态时,记录初始状态,初始状态可以包括初始得的展开角度, 手机 100接收到手写笔发送的控制指令, 假设控制指令指示的角度信息为 30度, 手机 100 需要控制第一本体旋转 30, 也就是说, 最终展开角度是 60度 (假设初始的展开角度也是 30度), 手机 100中可以在存储的展开角度和 S1\S2\S3\S4的闭合状态的对应关系中确定最 终展开角度是 60度时, S1\S2\S3\S4的闭合状态如何。
请参见图 20所示, 为本申请实施例提供的一种对应关系的示例。 手机 100可以基于图 20所示的对应关系, 确定最终展开角度是 60度时, S1闭合、 S2闭合, S3和 S4打开。 因 此, 手机 100将闭合 Sl、 S2, 打开 S3、 S4。 请继续参见图 18 ( b )所示, S1闭合、 S2闭 合, S3和 S4打开时, 第一磁体上与第一柱体正对的一侧为 N级, 第二磁体上与第一柱体 正对的一侧也为 N级。 因此, 第一主体上的 S级在第一磁体和第二磁体的吸引力下, 旋转 30度, 这样的话, 第一柱体带动第一本体旋转 30度, 则手机 100最终展开 60度。
需要说明的是, 图 20所示的对应关系中仅列举了 4个展开角度对应的 S1\S2\S3\S4的 闭合状态, 在实际应用中, 还可以包括更多的展开角度对应的 S1\S2\S3\S4的闭合状态、 本 申请实施例不一一列举。
手机 100 中第二转轴系统也可以采用类似的方式带动第二本体发生旋转, 为了说明书 的筒洁, 在此不再赘述。
下面介绍手机 100的软件架构
请参见图 21所示, 为本申请实施例提供的手机 100的软件架构示意图。 图 21以安卓
架构为例, 如图所述, 该架构包括 4层, 分别为: 应用 ( application )层、框架 ( framework ) 层、 系统层、 内核 ( Linux )层。
其中, 应用层包括各种应用程序, 比如系统界面 ( system UI )、 微信、 相机等。
框架层, 包括显示策略管理模块、 多媒体系统 ( demand multimedia system, DMS )、 窗 口管理服务 ( window manager service, WMS )» 其中, 显示策略管理模块用于根据手机的开 合状态, 确实点亮模式, 比如哪一个显示屏点亮, 或者显示屏显示什么内容等等, 具体内 容将在后文介绍。
DMS , 用于将点亮模式发送给 WMS。
WMS , 用于按照 DMS发送的点亮模式显示界面。
系统库包括状态检测服务模块和 surfaceflinger 其中, 状态检测服务模块用于根据传感 器数据确定手机的开合状态, 并将确定出的开合状态上报框架层。 Surfaceflinger用于触发 显示驱动, 以驱动显示屏显示界面。
内核层, 包括传感器驱动和显示驱动。 其中传感器驱动用于将传感器采集的传感器数 据上报系统层,传感器数据包括手机 100的打开角度。显示驱动用于驱动显示屏显示界面。
下面结合图 3所示的手机 100的硬件架构、 以及图 20所示的手机 100软件架构为例, 介绍手机 100智能化点亮屏幕的过程。
( 1 )、 内核层中的传感器驱动将传感器采集到的传感器数据上报给系统库中的状态检 测服务模块。 其中, 传感器数据包括手机 100打开的角度。
( 2 )、 状态检测服务模块可以将手机 100打开的角度上报给框架层中的显示策略管理 模块。
( 3 )、 显示策略管理模块根据当前打开的角度, 确定点亮模式。
作为一种示例, 显示策略管理模块可以根据当前打开的角度确定点亮模式, 比如当前 打开角度是 60度时, 点亮模式为主屏点亮、 副屏熄灭的点亮模式。
应理解, 手机 100中可以存储有点亮模式和打开角度之间的对应关系。 请参见图 22所 示, 为本申请实施例提供的打开角度和点亮模式之间的对应关系的示例。 手机 100可以根 据图 22确定, 当前打开的角度是 60度时, 处于区间[60, 120]的范围内, 对应的点亮模式 为主屏点亮、 副屏熄灭。
( 4 )、 显示策略管理模块确定点亮模式之后, 还可以确定显示模式。
假设手机 100当前打开角度是 150, 显示策略管理模块确定主屏、 副屏点亮之后, 还可 以确定主屏和副屏分别显示什么界面。 示例性的, 请继续参见图 22所示, 手机 100当前打 开角度是 150, 可确定主屏和副屏分别显示相同的界面。 请参见图 23所示, 手机 100打开 角度是 150度时, 主屏和副屏的显示界面相同。 若手机 100当前的打开角度是 180度是, 由图 22所示的对应关系可知, 主屏和副屏作为一个大屏幕显示一个界面, 请参见图 24所 示, 手机 100主屏和副屏作为一个大屏幕, 显示主界面。
( 4 )、显示策略管理模块确定显示模式之后,可以通过 DMS将显示模式发送给 WMS。
( 5 )、 WMS将显示模式发送给 system UI, systemUI基于该显示模式调整显示界面的 参数。 比如, 显示模式为主屏点亮、 副屏熄灭时, system UI可以调整显示界面的参数为适 合主屏的参数, 比如主屏的分辨率是 1024*768 , 则 system UI可以调整显示界面的分辨率为 1024*768。
再比如, 显示模式为主屏和副屏都点亮, 且主屏和副屏分别显示相同的界面 (请参见 图 22所示), 则 system UI可以调整显示界面的分辨率为 1024*768 , 通过主屏显示, 并调整 另一显示界面的分辨率为 2400* 1200, 通过副屏显示。
需要说明的是, 在图 22、 23、 24中涉及到的主屏和副屏可以是手机 100出厂时, 默认 设置好的, 也可以是用户在使用手机 100的过程中自定义的, 还可以是手机 100 自动识别 确定的。 比如, 以图 1为例, 手机 100检测到当前第二本体与桌面接触, 则确定第二本体 对应的显示屏为副屏, 第一本体对应的显示屏为主屏; 当手机 100检测到当前第一本体与 桌面接触, 则确定第一本体对应的显示屏为主屏, 第二本体对应的显示屏为副屏。
通过以上描述可知, 本申请实施例中, 可折叠式电子设备的开合状态可以通过辅助设 备远程控制, 方便用户操作, 提升用户体验。
本申请的各个实施方式可以任意进行组合, 以实现不同的技术效果。
上述本申请提供的实施例中, 从电子设备 (手机 100 )作为执行主体的角度对本申请实 施例提供的方法进行了介绍。 为了实现上述本申请实施例提供的方法中的各功能, 电子设 备可以包括硬件结构和成软件模块, 以硬件结构、 软件模块、 或硬件结构加软件模块的形 式来实现上述各功能。 上述各功能中的某个功能以硬件结构、 软件模块、 还是硬件结构加 软件模块的方式来执行, 取决于技术方案的特定应用和设计约束条件。
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本申请实施例可 以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现时, 可以将上述 功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。 计算机可读介质包括计算机存储介质和通信介质, 其中通信介质包括便于从一个地方向另 一个地方传送计算机程序的任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不限于: 计算机可读介质可以包括 RAM、 ROM、 电可擦可编程只读存储器 ( electrically erasable programmable read only memory, EEPROM )、 只读光盘 ( compact disc read-Only memory , CD-ROM )或其他光盘存储、 磁盘存储介质或者其他磁存储设备、 或者 能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任 何其他介质。 此外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是使用同 轴电缆、 光纤光缆、 双绞线、 数字用户线 ( digital subscriber line, DSL )或者诸如红外线、 无线电和微波之类的无线技术从网站、 服务器或者其他远程源传输的, 那么同轴电缆、 光 纤光缆、 双绞线、 DSL 或者诸如红外线、 无线和微波之类的无线技术包括在所属介质的定 影中。如本申请实施例所使用的,盘 ( disk )和碟 ( disc )包括压缩光碟 ( compact disc, CD )、 激光碟、 光碟、 数字通用光碟 ( digital video disc, DVD )、 软盘和蓝光光碟, 其中盘通常磁 性的复制数据, 而碟则用激光来光学的复制数据。 上面的组合也应当包括在计算机可读介 质的保护范围之内。 总之, 以上所述仅为本申请的实施例而已, 并非用于限定本申请的保护范围。 凡根据 本申请的揭露, 所作的任何修改、 等同替换、 改进等, 均应包含在本申请的保护范围之内。
Claims
1、 一种可折叠式电子设备的控制方法, 其特征在于, 应用于第一电子设备, 所述第一 电子设备与可折叠式电子设备通信, 所述第一电子设备上设置第一开关, 所述第一电子设 备包括传感器模块和通信模块, 所述方法包括:
检测到针对第一开关的第一操作;
响应于所述第一操作, 所述传感器模块检测所述第一电子设备的旋转角度, 所述通信 模块向所述可折叠式电子设备发送第一指令, 所述第一指令包括用于指示角度信息的第一 指示信息和第二指示信息, 所述角度信息对应所述传感器模块检测的所述第一电子设备的 旋转角度; 所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。
2、 如权利要求 1所述的方法, 其特征在于, 所述方法还包括:
接收所述可折叠式电子设备发送的第二指令, 所述第二指令用于指示所述可折叠式电 子设备展开或折叠成功或失败;
响应于所述第二指令, 所述第一电子设备输出第一提示信息, 用于提示所述可折叠式 电子设备响应失败。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括:
输出第二提示信息, 所述第二提示信息用于提示用户操作所述第一电子设备以控制所 述可折叠式电子设备;
所述第二提示信息包括语音信息、 文字信息、 提示灯闪烁、 震动中的一种或多种。
4、 如权利要求 1-3任一所述的方法, 其特征在于, 所述第一电子设备上设置指纹传感 器, 所述方法还包括:
通过所述指纹传感器采集用户的指纹;
通过所述通信模块将所述指纹发送给所述可折叠式电子设备, 所述指纹用于解锁所述 可折叠式电子设备。
5、如权利要求 1-4任一所述的方法,其特征在于,所述第一电子设备上设置第二开关, 所述方法还包括:
当检测到所述第二开关被触发时, 输出第三提示信息, 以提示用于停止控制所述可折 叠式电子设备。
6、 如权利要求 1-5任一所述的方法, 其特征在于, 所述第一电子设备为手写笔。
7、 一种可折叠式电子设备的控制方法, 其特征在于, 应用于可折叠式电子设备, 所述 可折叠式电子设备与第一电子设备通信, 所述可折叠式电子设备中包括第一本体、 第二本 体和连接装置, 所述连接装置用于控制所述可折叠式电子设备的展开角度, 所述展开角度 为第一本体和所述第二本体之间的夹角; 所述方法包括:
接收所述第一电子设备发送的第一指令, 所述第一指令包括第一指示信息和第二指示 信息, 所述第一指示信息用于指示第一角度信息, 所述第二指示信息用于指示展开或折叠 所述可折叠式电子设备;
才艮据所述第二指示信息通过所述连接装置控制所述可折叠式电子设备展开或者折叠第 二角度, 所述第二角度是基于所述第一角度信息确定的角度。
8、 如权利要求 7所述的方法, 其特征在于, 所述可折叠式电子设备包括属于所述第一 本体的第一显示屏和属于第二本体的第二显示屏;
所述方法还包括: 在接收所述第一电子设备发送的第一指令之前, 所述第一显示屏和 所述第二显示屏均熄灭,
在接收所述第一指令之后, 当所述展开角度大于第一预设角度时, 点亮所述第一显示 屏; 当所述展开角度大于第二预设角度时, 点亮所述第一显示屏所述和第二显示屏;
其中, 所述第二预设角度大于所述第一预设角度。
9、 如权利要求 8所述的方法, 其特征在于, 所述方法还包括:
所述第一显示屏和所述第二显示屏分别显示相同的界面, 或者所述第一显示屏和所述 第二显示屏作为一个显示屏, 各显示同一个显示界面的一部分。
10、 如权利要求 7-9任一所述的方法, 其特征在于, 所述可折叠式电子设备处于锁屏状 态, 所述方法还包括:
接收所述第一电子设备发送的指纹;
若所述指纹验证成功, 所述可折叠式电子设备解锁。
11、如权利要求 7-10任一所述的方法,其特征在于,所述第二角度等于所述第一角度, 或者所述第二角度是基于如下公式计算的:
V0 * E
v = -
90
其中, v是所述第二角度, v0是预设角度, E为所述第一角度。
12、 如权利要求 7-11任一所述的方法, 其特征在于, 所述方法还包括:
当通过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度失败时, 输出 提示信息, 所述提示信息用于提示所述可折叠式电子设备展开或者折叠失败。
13、 如权利要求 7-12任一所述的方法, 其特征在于, 所述方法还包括:
向所述第一电子设备发送第二指令, 所述第二指令用于指示所述可折叠式电子设备展 开或折叠成功或失败。
14、 如权利要求 7-13任一所述的方法, 其特征在于, 所述第一角度信息与所述第一电 子设备的旋转角度对应。
15、 一种第一电子设备, 其特征在于, 所述第一电子设备上设置第一开关, 所述第一 电子设备包括传感器模块和通信模块; 所述第一电子设备与可折叠式电子设备通信,
所述第一开关, 用于接收第一操作;
所述传感器模块, 用于检测所述第一电子设备的旋转角度;
所述通信模块, 用于向所述可折叠式电子设备发送第一指令, 所述第一指令包括用于 指示角度信息的第一指示信息和第二指示信息, 所述角度信息对应所述传感器模块检测的 所述第一电子设备的旋转角度; 所述第二指示信息用于指示展开或折叠所述可折叠式电子 设备。
16、 如权利要求 15所述的第一电子设备, 其特征在于, 所述通信模块还用于接收所述 可折叠式电子设备发送的第二指令, 所述第二指令用于指示所述可折叠式电子设备展开或 折叠成功或失败;
所述第一电子设备还包括输出设备, 所述输出设备用于输出第一提示信息, 用于提示 所述可折叠式电子设备响应失败。
17、 如权利要求 15或 16所述的第一电子设备, 其特征在于, 所述第一电子设备的输 出设备用于输出第二提示信息, 所述第二提示信息用于提示用户操作所述第一电子设备以
控制所述可折叠式电子设备;
所述第二提示信息包括语音信息、 文字信息、 提示灯闪烁、 震动中的一种或多种。
18、 如权利要求 15-17任一所述的第一电子设备, 其特征在于, 所述第一电子设备上设 置指纹传感器, 所述指纹传感器用于采集用户的指纹;
所述通信模块还用于将所述指纹发送给所述可折叠式电子设备, 所述指纹用于解锁所 述可折叠式电子设备。
19、 如权利要求 15-18任一所述的第一电子设备, 其特征在于, 所述第一电子设备上设 置第二开关, 所述第二开关用于检测第二操作;
所述第一电子设备的输出设备, 用于输出第三提示信息, 以提示用于停止控制所述可 折叠式电子设备。
20、 如权利要求 15-19任一所述的第一电子设备, 其特征在于, 所述第一电子设备为手 写笔。
21、 一种可折叠式电子设备, 其特征在于, 所述可折叠式电子设备包括:
第一本体和第二本体;
连接装置, 用于控制所述可折叠式电子设备的展开角度, 所述展开角度为第一本体和 所述第二本体之间的夹角;
通信模块, 用于接收第一电子设备发送的第一指令, 所述第一指令包括第一指示信息 和第二指示信息, 所述第一指示信息用于指示第一角度信息, 所述第二指示信息用于指示 展开或折叠所述可折叠式电子设备;
处理器, 用于根据所述第二指示信息控制所述连接装置展开或折叠所述可折叠式电子 设备第二角度, 所述第二角度是基于所述第一角度信息确定的角度。
22、 如权利要求 21所述的可折叠式电子设备, 其特征在于, 所述可折叠式电子设备包 括属于所述第一本体的第一显示屏和属于第二本体的第二显示屏;
所述处理器, 还用于在所述可折叠式电子设备的展开角度大于第一预设角度时, 点亮 所述第一显示屏; 在所述展开角度大于第二预设角度时, 控制所述第一显示屏所述和第二 显示屏点亮;
其中, 所述第二预设角度大于所述第一预设角度。
23、 如权利要求 22所述的可折叠式电子设备, 其特征在于, 所述第一显示屏和所述第 二显示屏分别显示相同的界面, 或者所述第一显示屏和所述第二显示屏作为一个显示屏, 各显示同一个显示界面的一部分。
24、 如权利要求 21-23任一所述的可折叠式电子设备, 其特征在于, 所述可折叠式电子 设备处于锁屏状态, 所述通信模块还用于接收所述第一电子设备发送的指纹;
所述处理器还用于在所述指纹<验证成功时, 控制所述可折叠式电子设备解锁。
25、 如权利要求 21-24任一所述的可折叠式电子设备, 其特征在于, 所述第二角度等于 所述第一角度, 或者所述第二角度是基于如下公式计算的:
V0 * E
v = -
90
其中, v是所述第二角度, v0是预设角度, E为所述第一角度。
26、 如权利要求 21-25任一所述的可折叠式电子设备, 其特征在于, 所述第一电子设备 的输出设备用于:
当通过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度失败时, 输出 提示信息, 所述提示信息用于提示所述可折叠式电子设备展开或者折叠失败。
27、 如权利要求 21-26任一所述的可折叠式电子设备, 其特征在于, 所述通信模块还用 于: 向所述第一电子设备发出第二指令, 所述第二指令用于指示所述可折叠式电子设备展 开或折叠成功或失败。
28、 如权利要求 21-27任一所述的可折叠式电子设备, 其特征在于, 所述第一角度信息 与所述第一电子设备的旋转角度对应。
29、 一种第一电子设备, 其特征在于, 包括第一开关、 传感器模块和通信模块; 还包括一个或多个处理器; 存储器; 一个或多个应用程序; 一个或多个程序, 其中所 述一个或多个程序被存储在所述存储器中, 所述一个或多个程序包括指令, 当所述指令被 所述电子设备执行时, 使得所述电子设备执行如权利要求 1-6中任一所述的方法步骤。
30、 一种可折叠式电子设备, 其特征在于, 包括第一本体、 第二本体、 连接装置和通 信模块;
还包括一个或多个处理器; 存储器; 一个或多个应用程序; 一个或多个程序, 其中所 述一个或多个程序被存储在所述存储器中, 所述一个或多个程序包括指令, 当所述指令被 所述电子设备执行时, 使得所述电子设备执行如权利要求 7-14中任一所述的方法步骤。
31、 一种计算机存储介质, 其特征在于, 所述计算机可读存储介质包括计算机程序, 当计算机程序在第一电子设备上运行时, 使得所述第一电子设备执行如权利要求 1至 6任 一所述的方法。
32、 一种计算机存储介质, 其特征在于, 所述计算机可读存储介质包括计算机程序, 当计算机程序在可折叠式电子设备上运行时,使得所述可折叠式电子设备执行如权利要求 7 至 14任一所述的方法。
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910150396 | 2019-02-28 | ||
CN201910150396.0 | 2019-02-28 | ||
CN201910239290.8A CN111625052B (zh) | 2019-02-28 | 2019-03-27 | 一种可折叠式电子设备的控制方法和相关设备 |
CN201910239290.8 | 2019-03-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020173388A1 true WO2020173388A1 (zh) | 2020-09-03 |
Family
ID=72239286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/076092 WO2020173388A1 (zh) | 2019-02-28 | 2020-02-21 | 一种可折叠式电子设备的控制方法和相关设备 |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2020173388A1 (zh) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130179813A1 (en) * | 2012-01-10 | 2013-07-11 | Gilles Serge BianRosa | System and method for navigating a user interface using threshold detection |
CN104102183A (zh) * | 2013-04-13 | 2014-10-15 | 王斌 | 一种智能家居手势控制方法及装置 |
CN104220962A (zh) * | 2012-01-09 | 2014-12-17 | 莫韦公司 | 利用触摸手势的手势仿真的设备的命令 |
CN105137743A (zh) * | 2015-10-15 | 2015-12-09 | 京东方科技集团股份有限公司 | 一种智能手表 |
CN107831981A (zh) * | 2017-10-24 | 2018-03-23 | 广东欧珀移动通信有限公司 | 终端控制方法、装置、终端及计算机可读存储介质 |
CN108513065A (zh) * | 2018-03-23 | 2018-09-07 | 云谷(固安)科技有限公司 | 一种手势帖遥控操作的方法及手势帖遥控装置 |
-
2020
- 2020-02-21 WO PCT/CN2020/076092 patent/WO2020173388A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104220962A (zh) * | 2012-01-09 | 2014-12-17 | 莫韦公司 | 利用触摸手势的手势仿真的设备的命令 |
US20130179813A1 (en) * | 2012-01-10 | 2013-07-11 | Gilles Serge BianRosa | System and method for navigating a user interface using threshold detection |
CN104102183A (zh) * | 2013-04-13 | 2014-10-15 | 王斌 | 一种智能家居手势控制方法及装置 |
CN105137743A (zh) * | 2015-10-15 | 2015-12-09 | 京东方科技集团股份有限公司 | 一种智能手表 |
CN107831981A (zh) * | 2017-10-24 | 2018-03-23 | 广东欧珀移动通信有限公司 | 终端控制方法、装置、终端及计算机可读存储介质 |
CN108513065A (zh) * | 2018-03-23 | 2018-09-07 | 云谷(固安)科技有限公司 | 一种手势帖遥控操作的方法及手势帖遥控装置 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11715439B2 (en) | Dynamically controlling display mode of external device coupled to user equipment | |
WO2020228815A1 (zh) | 一种语音唤醒方法及设备 | |
JP7041792B2 (ja) | ディスプレイ装置及びその制御方法 | |
EP4072112A1 (en) | Application sharing method, electronic device and computer-readable storage medium | |
WO2019196707A1 (zh) | 一种移动终端控制方法及移动终端 | |
US10063804B2 (en) | Display apparatus and method for controlling display of display apparatus | |
CN107276666B (zh) | 移动终端和控制移动终端的功能的方法 | |
US20170180918A1 (en) | Display apparatus and method for controlling display apparatus | |
ES2596878T3 (es) | Dispositivo inalámbrico sensible al tacto y visualización en pantalla para controlar remotamente un sistema | |
WO2021017763A1 (zh) | 事件处理方法、终端设备及计算机可读存储介质 | |
WO2021109907A1 (zh) | 应用分享方法、第一电子设备及计算机可读存储介质 | |
US8949494B2 (en) | User equipment connectable to an external device | |
EP3249524A1 (en) | Method and device for upgrading a zigbee device | |
WO2021104230A1 (zh) | 同步方法及电子设备 | |
WO2019174459A1 (zh) | 应用程序的处理方法及移动终端 | |
CN111625052B (zh) | 一种可折叠式电子设备的控制方法和相关设备 | |
WO2021129529A1 (zh) | 设备切换方法及相关设备 | |
WO2021109925A1 (zh) | 应用分享方法、电子设备及计算机可读存储介质 | |
JP2003177850A (ja) | ユーザ・インタフェース | |
CN106878554B (zh) | 一种移动终端的防盗方法、装置及移动终端 | |
KR101770240B1 (ko) | Ui 제공을 위한 디스플레이 장치, 시스템 및 그 제공 방법 | |
WO2022083296A1 (zh) | 一种显示方法及电子设备 | |
WO2021121180A1 (zh) | 信息处理方法及电子设备 | |
WO2021143687A1 (zh) | 图像显示方法及电子设备 | |
WO2021057222A1 (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: 20762072 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: 20762072 Country of ref document: EP Kind code of ref document: A1 |