CN111625052B - Control method of foldable electronic equipment and related equipment - Google Patents

Control method of foldable electronic equipment and related equipment Download PDF

Info

Publication number
CN111625052B
CN111625052B CN201910239290.8A CN201910239290A CN111625052B CN 111625052 B CN111625052 B CN 111625052B CN 201910239290 A CN201910239290 A CN 201910239290A CN 111625052 B CN111625052 B CN 111625052B
Authority
CN
China
Prior art keywords
electronic device
angle
foldable electronic
mobile phone
foldable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910239290.8A
Other languages
Chinese (zh)
Other versions
CN111625052A (en
Inventor
罗红磊
李颖
潘悦
高峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2020/076092 priority Critical patent/WO2020173388A1/en
Publication of CN111625052A publication Critical patent/CN111625052A/en
Application granted granted Critical
Publication of CN111625052B publication Critical patent/CN111625052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1615Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
    • G06F1/1616Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position
    • G06F1/1618Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with folding flat displays, e.g. laptop computers or notebooks having a clamshell configuration, with body parts pivoting to an open position around an axis parallel to the plane they define in closed position the display being foldable up to the back of the other housing with a single degree of freedom, e.g. by 360° rotation over the axis defined by the rear edge of the base enclosure
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A control method of a foldable electronic device and a related device are provided. The method comprises the following steps: detecting a first operation on a first switch on a first electronic device; in response to the first operation, the sensor module detects a rotation angle of the first electronic device, and the communication module sends a first instruction to the foldable electronic device, where the first instruction includes first indication information and second indication 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 for indicating the foldable electronic device to be unfolded or folded. The user can realize the purpose of unfolding or folding the foldable electronic equipment by rotating the first electronic equipment, so that the user can conveniently operate the foldable electronic equipment, and the human-computer interaction experience is improved.

Description

Control method of foldable electronic equipment and related equipment
The present application claims priority from chinese patent office filed on 28/2/2019, application No. 201910150396.0, entitled "a method for controlling an electronic device and related device", the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a control method for a foldable electronic device and a related device.
Background
At present, various common electronic products, no matter mobile phones, tablet computers, televisions and the like, have a trend: with the update of products, the screen of the product also becomes larger and larger, because the larger screen can provide richer information for users, improve the efficiency of man-machine communication, and bring better use experience.
However, for some mobile electronic products such as mobile phones and pads, if the screen is too large, the portability of the mobile electronic products is seriously affected. The foldable electronic product is applied to be convenient to carry. Taking a mobile phone as an example, the current large-screen mobile phone can be folded, and the folded mobile phone is convenient to carry.
However, the folding and unfolding of the current foldable mobile phone requires manual operation by a user, and the operation mode is single.
Disclosure of Invention
The application provides a control method of foldable electronic equipment and related equipment, and the method can provide an operation mode of the foldable electronic equipment, is more convenient for a user to operate and improves human-computer interaction experience.
In a first aspect, an embodiment of the present application provides a method for controlling a foldable electronic device. The method may be performed by a first electronic device comprising a stylus, a smart bracelet, a smart watch, and the like. The first electronic device is in communication with a foldable electronic device, a first switch is arranged on the first electronic device, the first electronic device comprises a sensor module and a communication module, and the method comprises the following steps: detecting a first operation on a first switch on a first electronic device; in response to the first operation, the sensor module detects a rotation angle of the first electronic device, and the communication module sends a first instruction to the foldable electronic device, where the first instruction includes first indication information and second indication 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 for indicating that the foldable electronic device is unfolded or folded.
In the embodiment of the application, a user can control the unfolding angle of the foldable electronic device through the first electronic device. Specifically, after the first electronic device detects the rotation angle of the first electronic device, the first electronic device sends a first instruction to the foldable electronic device, the first instruction carries angle information, and the foldable electronic device unfolds or folds for a certain angle based on the angle information. Therefore, the user can unfold or fold the foldable electronic equipment by rotating the first electronic equipment, the user can operate the foldable electronic equipment conveniently, and the human-computer interaction experience is improved.
In one possible design, the rotation angle of the first electronic device is equal to the angle information indicated by the first indication information in the first instruction.
In one possible design, the first electronic device receives a second instruction sent by the foldable electronic device, where the second instruction is used to indicate that the foldable electronic device is successfully or unsuccessfully unfolded or folded; and responding to the second instruction, the first electronic equipment outputs first prompt information for prompting that the foldable electronic equipment fails to respond.
In this application embodiment, after first electronic equipment sent first instruction to folded cascade electronic equipment, folded cascade electronic equipment probably can't be successful expansion or folding the angle that corresponds, like this, folded cascade equipment can send the second instruction to first electronic equipment, can output prompt information after first electronic equipment receives the second instruction to suggestion user folded cascade electronic equipment expands or folds the failure, convenience of customers operation helps promoting user experience.
In one possible design, the first electronic device outputs second prompt information, and the second prompt information is used for prompting a user to operate the first electronic device to control the foldable electronic device; the second prompt message comprises one or more of voice message, text message, prompt lamp flashing and vibration.
In this embodiment of the application, the first electronic device may output prompt information to prompt a user to operate the first electronic device to control the foldable electronic device. For example, the prompt information may be process steps of operating the first electronic device to control the foldable electronic device, and the prompt information includes various types, such as voice information, text information, flashing of a prompt light, vibration, and the like, which is not limited in the embodiment of the present application. Like this, first electronic equipment can instruct the first electronic equipment of user operation to a certain extent and control folded cascade electronic equipment, and convenience of customers operates, helps promoting user experience.
In one possible design, a fingerprint sensor is disposed on the first electronic device, and the method further includes: collecting a fingerprint of a user through the fingerprint sensor; the fingerprint is sent to the foldable electronic equipment through the communication module, and the fingerprint is used for unlocking the foldable electronic equipment.
In this application embodiment, after the fingerprint sensor of first electronic equipment gathered the fingerprint, can send the fingerprint for folded cascade electronic equipment to unblock folded cascade electronic equipment, like this, the user need not handheld folded cascade electronic equipment, and through the unblock of first electronic equipment control folded cascade electronic equipment, convenience of customers operation folded cascade electronic equipment improves human-computer interaction and experiences.
In one possible design, a second switch is provided on the first electronic device, and the method further includes: and when the second switch is detected to be triggered, outputting third prompt information to prompt that the foldable electronic equipment is stopped to be controlled.
In this embodiment of the application, the second switch of the first electronic device may be used to stop controlling the foldable electronic device, which is convenient for a user to operate.
In one possible design, the first electronic device is a stylus.
It should be understood that the stylus pen is only an example of the first electronic device, and may also be other devices, such as a smart band, a smart watch, and the like, and the embodiments of the present application are not limited thereto.
In one possible design, the first instruction includes four fields, a first field to indicate an access code, a second field to indicate a header field, a third field to indicate the first indication information, and a third field to indicate the second indication information.
In a possible design, the first instruction includes six fields, a first field is used to indicate an access code, a second field is used to indicate a header field, a third field is used to indicate entry/exit of a screen control state, a fourth field is used to indicate a first included angle between the first electronic device and a horizontal plane after rotation, a fifth field is used to indicate unfolding/folding, a sixth field is used to indicate a second included angle between the first electronic device and the horizontal plane after rotation, and an absolute value of a difference between the first included angle and the second included angle is a rotation angle; the screen control state is used for indicating a preparation state for preparing to unfold or fold the foldable electronic device.
In one possible design, the second instruction includes two fields, a first field is used for indicating the access code, and a second field is used for indicating success or failure of the response of the foldable electronic device.
In a possible design, when the first electronic device fails to generate the first instruction, or when the first electronic device fails to send the first instruction to the foldable electronic device, the prompt information is output to prompt the user that the sending fails.
In this embodiment, after the user rotates the first electronic device, 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 the first instruction (signal quality is poor, communication is interrupted, and the like), and a prompt message may be generated to prompt the user that sending fails.
In a second aspect, embodiments of the present application provide a method for controlling a foldable electronic device, which may be performed by a foldable electronic device, such as a foldable mobile phone, a foldable ipad, a notebook computer, and the like, where the foldable electronic device is in communication with a first electronic device, the foldable electronic device includes a first body, a second body, and a connection device, the connection device is configured to control an unfolding angle of the foldable electronic device, where the unfolding angle is an included angle between the first body and the second body; the method comprises the following steps: receiving a first instruction sent by the first electronic device, wherein the first instruction comprises first indication information and second indication information, the first indication information is used for indicating first angle information, and the second indication information is used for indicating that the foldable electronic device is unfolded or folded; controlling the foldable electronic device to unfold or fold by a second angle through the connecting device according to the second indication information, wherein the second angle is determined based on the first angle information.
In the embodiment of the application, a user can control the unfolding angle of the foldable electronic device through the first electronic device. Specifically, the foldable electronic device receives a first instruction sent by the first electronic device, the first instruction carries angle information, and the foldable electronic device is unfolded or folded by a certain angle based on the angle information. Therefore, the user can unfold or fold the foldable electronic equipment by rotating the first electronic equipment, the user can operate the foldable electronic equipment conveniently, and the human-computer interaction experience is improved.
In one possible design, the foldable electronic device includes a first display screen belonging to the first body and a second display screen belonging to a second body; the method further comprises the following steps: before receiving a first instruction sent by the first electronic device, both the first display screen and the second display screen are turned off, and after receiving the first instruction, when the unfolding angle is larger than a first preset angle, the first display screen is turned on; when the unfolding angle is larger than a second preset angle, lightening the first display screen and the second display screen; wherein the second preset angle is greater than the first preset angle.
In this application embodiment, the user can realize changing folded cascade electronic equipment's expansion angle's purpose through rotatory first electronic equipment, when expansion angle is greater than first predetermined angle, lights first display screen, when being greater than the second predetermined angle, lights first display screen and second display screen, and convenience of customers operation folded cascade electronic equipment improves human-computer interaction and experiences.
In a possible design, 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 and respectively display a part of the same display interface.
In one possible design, the foldable electronic device is in a screen-locking state, and the method further includes: receiving a fingerprint sent by the first electronic equipment; and if the fingerprint verification is successful, unlocking the foldable electronic equipment.
In this application embodiment, folded cascade electronic equipment can receive the fingerprint that first electronic equipment sent to unblock folded cascade electronic equipment, like this, the user need not handheld folded cascade electronic equipment, and through the unblock of first electronic equipment control folded cascade electronic equipment, convenience of customers operation folded cascade electronic equipment improves human-computer interaction and experiences.
In one possible design, the second angle is equal to the first angle, or the second angle is calculated based on the following equation:
Figure BDA0002009162160000031
wherein v is the second angle, v0 is a preset angle, and E is the first angle.
In the embodiment of the present application, the first angle may be equal to the second angle, or the first angle and the second angle satisfy the above formula.
In a possible design, the foldable electronic device further outputs a prompt message when the foldable electronic device is controlled by the connecting device to unfold or fold at the second angle and fails, where the prompt message is used to prompt that the foldable electronic device is unfolded or folded at the second angle and fails.
In the embodiment of the application, when the foldable electronic equipment fails to unfold or fold, a user can be prompted to unfold or fold the foldable electronic equipment, so that the operation of the user is facilitated.
In one possible design, the foldable electronic device sends a second instruction to the first electronic device, where the second instruction is used to indicate that the foldable electronic device is successfully or unsuccessfully unfolded or folded.
In one possible design, the first angle information corresponds to a rotation angle of the first electronic device.
In one possible design, the first angle information is equal to a rotation angle of the first electronic device.
In one possible design, the first instruction includes four fields, a first field to indicate an access code, a second field to indicate a header field, a third field to indicate the first indication information, and a third field to indicate the second indication information.
In one possible design, the first instruction includes six fields, a first field is used for indicating an access code, a second field is used for indicating a header field, a third field is used for indicating an entry/exit screen control state, a fourth field is used for indicating a first included angle between the first electronic device and a horizontal plane after rotation, a fifth field is used for indicating unfolding/folding, a sixth field is used for indicating a second included angle between the first electronic device and the horizontal plane after rotation, and an absolute value of a difference value between the first included angle and the second included angle is a rotation angle; the screen control state is used for indicating a preparation state for preparing to unfold or fold the foldable electronic device.
In one possible design, the second instruction includes two fields, a first field is used for indicating the access code, and a second field is used for indicating success or failure of the response of the foldable electronic device.
In a third aspect, an embodiment of the present application provides a first electronic device, where the first electronic device is provided with a first switch, and the first electronic device includes a sensor module and a communication module; the first electronic device is in communication with a foldable electronic device, the first switch is used for receiving a first operation; the sensor module is used for detecting the rotation angle of the first electronic equipment; the communication module is configured to send a first instruction to the foldable electronic device, where the first instruction includes first indication information and second indication information used for indicating angle information, and the angle information corresponds to a rotation angle of the first electronic device detected by the sensor module; the second indication information is used for indicating that the foldable electronic device is unfolded or folded.
In one possible design, the communication module is further configured to receive a second instruction sent by the foldable electronic device, where the second instruction is used to indicate that the foldable electronic device is successfully or unsuccessfully unfolded or folded; the first electronic device further comprises an output device, and the output device is used for outputting first prompt information for prompting that the foldable electronic device fails to respond.
In one possible design, the output device of the first electronic device is configured to output a second prompt message, where the second prompt message is used to prompt a user to operate the first electronic device to control the foldable electronic device; the second prompt message comprises one or more of voice message, text message, prompt lamp flashing and vibration.
In one possible design, a fingerprint sensor is arranged on the first electronic device, and the fingerprint sensor is used for collecting fingerprints of users; the communication module is further configured to send the fingerprint to the foldable electronic device, where the fingerprint is used to unlock the foldable electronic device.
In one possible design, a second switch is provided on the first electronic device, and the second switch is used for detecting a second operation; and the output device of the first electronic device is used for outputting third prompt information to prompt that the foldable electronic device is stopped to be controlled.
In one possible design, the first electronic device is a stylus.
In a fourth aspect, embodiments of the present application provide a foldable electronic device, including: a first body and a second body; the connecting device is used for controlling the unfolding angle of the foldable electronic equipment, and the unfolding angle is an included angle between the first body and the second body; the foldable electronic device comprises a communication module and a folding module, wherein the communication module is used for receiving a first instruction sent by first electronic equipment, the first instruction comprises first indication information and second indication information, the first indication information is used for indicating first angle information, and the second indication information is used for indicating that the foldable electronic equipment is unfolded or folded; a processor configured to control the connecting device to unfold or fold the foldable electronic device by a second angle according to the second indication information, wherein the second angle is determined based on the first angle information.
In one possible design, the foldable electronic device includes a first display screen belonging to the first body and a second display screen belonging to a second body; the processor is further configured to light the first display screen when the unfolding angle of the foldable electronic device is greater than a first preset angle; when the unfolding angle is larger than a second preset angle, controlling the first display screen and the second display screen to be lightened; wherein the second preset angle is greater than the first preset angle.
In a possible design, 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 and respectively display a part of the same display interface.
In a possible design, the foldable electronic device is in a screen-locking state, and the communication module is further configured to receive a fingerprint sent by the first electronic device; the processor is further configured to control the foldable electronic device to unlock when the fingerprint verification is successful.
In one possible design, the second angle is equal to the first angle, or the second angle is calculated based on the following equation:
Figure BDA0002009162160000051
wherein v is the second angle, v0 is a preset angle, and E is the first angle.
In one possible design, the output device of the first electronic device is to: when the foldable electronic equipment is controlled to unfold or fold at the second angle by the connecting device and fails, prompt information is output, and the prompt information is used for prompting that the foldable electronic equipment is unfolded or folded and fails.
In one possible design, the communication module is further to: and sending a second instruction to the first electronic device, wherein the second instruction is used for indicating that the foldable electronic device is successfully or unsuccessfully unfolded or folded.
In one possible design, the first angle information corresponds to a rotation angle of the first electronic device.
In a fifth aspect, an embodiment of the present application provides a first electronic device, which includes a first switch, a sensor module, and a communication module; 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 comprising instructions which, when executed by the first electronic device, cause the first electronic device to perform the first aspect or any one of the possible design methods of the first aspect described above.
In a sixth aspect, an embodiment of the present application provides a foldable electronic device, including a first body, a second body, a connecting device, and a communication module; 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 comprising instructions that, when executed by the foldable electronic device, cause the foldable electronic device to perform the second aspect or any one of the possible designed methods of the second aspect described above.
In a seventh aspect, there is also provided a first electronic device comprising means for performing the method of the first aspect or any one of the possible designs of the first aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In an eighth aspect, there is also provided a foldable electronic device comprising a module/unit performing the method of the second aspect or any one of the possible designs of the second aspect; these modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a ninth aspect, embodiments of the present application provide a computer storage medium, where the computer storage medium includes a computer program, and when the computer program runs on a first electronic device, the computer program causes the first electronic device to execute the first aspect or any one of the possible design methods of the first aspect.
In a tenth aspect, embodiments of the present application provide a computer storage medium, which includes a computer program, when the computer program is run on a foldable electronic device, causing the foldable electronic device to perform the method of the second aspect or any one of the possible designs of the second aspect.
In an eleventh aspect, there is further provided a computer program product comprising computer program code means for causing a first electronic device to perform the method of the first aspect or any one of the above-mentioned possible designs of the first aspect when the program product is run on the first electronic device.
In a twelfth aspect, there is also provided a program product, which, when run on a foldable electronic device, causes the foldable electronic device to perform the method of the second aspect or any one of the possible designs of the second aspect described above.
Drawings
Fig. 1 is a schematic structural diagram of a foldable mobile phone provided in an embodiment of the present application;
fig. 2 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a stylus pen according to an embodiment of the present application;
fig. 5 is a schematic diagram of a user graphical interface of the mobile phone 100 according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating the meaning of parameter values in an agreed communication mode adopted when a stylus pen sends data to the mobile phone 100 according to an embodiment of the present application;
fig. 7 is a schematic diagram of a data transmission format in an agreed communication manner according to an embodiment of the present application;
fig. 8 is a schematic diagram of data transmitted from a stylus to the mobile phone 100 according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating the meaning of parameters in an agreed communication mode adopted when the mobile phone 100 sends data to the stylus pen according to an embodiment of the present application;
fig. 10 is a schematic diagram of the mobile phone 100 sending data to the stylus according to an embodiment of the present application;
fig. 11 is a schematic flowchart of a method for controlling a foldable electronic device according to an embodiment of the present application;
FIG. 12 is a diagram illustrating a first instruction according to an embodiment of the present application;
FIG. 13 is a diagram illustrating a second instruction according to an embodiment of the present application;
FIG. 14 is a diagram illustrating a third instruction according to an embodiment of the present application;
fig. 15 is a schematic flowchart illustrating a process of controlling the mobile phone 100 to open by using a pen according to an embodiment of the present application;
fig. 16 is a schematic flowchart illustrating a process of controlling the closing of the mobile phone 100 by a handwriting pen according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of a rotating shaft system in the mobile phone 100 according to an embodiment of the present application;
FIG. 19 is a schematic view of a first rotating shaft system and a second rotating shaft system provided in an embodiment of the present application;
FIG. 20 is a schematic diagram illustrating the correspondence between the deployment angle and the state of each switch in the hinge system provided by an embodiment of the present application;
fig. 21 is a schematic diagram of a software architecture of the mobile phone 100 according to an embodiment of the present application;
fig. 22 is a schematic diagram illustrating a correspondence relationship between an unfolding angle, a lighting mode and a display mode of the mobile phone 100 according to an embodiment of the present application;
fig. 23 is a schematic view of a display interface of a display screen when the mobile phone 100 is opened at an angle according to an embodiment of the present application;
fig. 24 is a schematic view of a display interface of a display screen when the mobile phone 100 is opened at another angle according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Hereinafter, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
It should be noted that, two electronic devices are referred to herein, one is a foldable device, and the other is an electronic device for controlling the foldable device, and for convenience of distinction, the foldable electronic device is hereinafter referred to as a main device, and the other electronic device for controlling the foldable device is referred to as an auxiliary device, and may also be referred to by other names such as a first electronic device or a second electronic device, which is not limited in this application.
The main device related to the embodiment of the application is a foldable electronic device. Such as a foldable cell phone, a foldable pad, a notebook, etc. Taking a foldable mobile phone as an example, please refer to fig. 1, which is a schematic structural diagram of the foldable mobile phone provided in the embodiment of the present application. As shown in fig. 1, the foldable 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 so as to change the included angle between the first body and the second body
Figure BDA0002009162160000071
The specific structure of the connecting device will be described later.
For example, only one screen may be disposed on the foldable mobile phone shown in fig. 1, that is, the first body and the second body are covered with a whole screen (the screen may be a flexible screen), and when the first body or the second body rotates, the screen is folded. Of course, the foldable mobile phone shown in fig. 1 may 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 which case, the two screens may not be flexible screens. Of course, it is also possible to set only one screen on one body, and not set the screen but the keys on the other body, which is not limited in the embodiment of the present application.
The unfolding angle referred to in the embodiments of the present application, i.e., the angle at which the main device (foldable electronic device) is opened, is taken as an example of the foldable mobile phone shown in fig. 1, and is an included angle between the first body and the second body
Figure BDA0002009162160000072
Such as included angles
Figure BDA0002009162160000073
When the angle is 0 degree, the mobile phone is closed and forms an included angle
Figure BDA0002009162160000074
And when the angle is 180 degrees, the mobile phone is completely opened. It will be appreciated that in other embodiments, the angle is such that the handset is fully open
Figure BDA0002009162160000075
And may be greater than 180 degrees, which is not limited in this embodiment of the present invention.
It should be appreciated that the angles in FIG. 1 are for ease of understanding
Figure BDA0002009162160000076
May be the angle between the planes of the two bodies.
The auxiliary equipment that this application embodiment relates to for the electronic equipment of the expansion angle of control main equipment, auxiliary equipment can include handwriting pen, intelligent bracelet, smart watch, smart mobile phone etc.. In the embodiment of the application, after the auxiliary device is connected with the main device, the auxiliary device can be used for controlling the main device to change the unfolding angle of the main device, so that the main device is controlled.
Fig. 2 is a schematic view of an application scenario provided in the embodiment of the present application. As shown in fig. 2, the application scenario includes a main device and an auxiliary device, where the main device is a foldable mobile phone, and the auxiliary device is a stylus pen.
After the foldable mobile phone is connected with the stylus pen (the connection process will be described later), when the stylus pen rotates by a certain angle under the operation of the user
Figure BDA0002009162160000077
In this case, the stylus pen may transmit indication information to the foldable phone, and the indication information may be used for indicating angle information (for example, the indication information is used for indicating an angle
Figure BDA0002009162160000078
). After receiving the indication information, the foldable mobile phone analyzes the angle information indicated by the indication information, and then controls to change the included angle l between the first body and the second body based on the angle information. It should be understood that angle lR includes angle
Figure BDA0002009162160000083
May be the same or different.
Of course, the stylus pen may also transmit other indication information to the foldable phone, such as indication information for indicating to unfold the phone 100 or fold the phone 100. For example, the indication information for indicating the angle information and other indication information for indicating to unfold or fold the mobile phone 100 may be sent separately, and may be sent by being packaged into a control command, which is not limited in the embodiment of the present application. Hereinafter, packing into a control command is taken as an example.
Therefore, the control method of the foldable electronic device (main device) provided by the embodiment of the application does not need a user to manually pull the foldable electronic device, but controls the unfolding angle of the foldable electronic device through other devices, so that the operation of the user is facilitated.
The embodiments of the present application relate to a plurality of numbers greater than or equal to two.
It should be noted that the term "and/or" is only one kind of association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified. Also, in the description of the embodiments of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not intended to indicate or imply relative importance nor order to indicate or imply order.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The following describes a host device, a Graphical User Interface (GUI) for such a host device, and embodiments for using such a host device. In some embodiments of the present application, the main device may be a portable device, such as a foldable cell phone, a foldable tablet, a notebook, etc. The portable device includes a device capable of performing communication (such as a wireless communication module, a mobile communication module, and the like), and a device capable of performing change of the deployment angle, such as a hinge system (described later). Exemplary embodiments of the portable device include, but are not limited to, a mount
Figure BDA0002009162160000081
Figure BDA0002009162160000082
Or other operating system. The portable device may be other portable devicesThe device may be any device as long as it can realize data communication and the deployment angle is changed. It should also be understood that, in some other embodiments of the present application, the above-mentioned main device may also be other devices capable of implementing data communication and changing the deployment angle.
Taking the main device as a foldable mobile phone (such as the mobile phone in the application scenario shown in fig. 2) as an example, fig. 3 shows a schematic structural diagram of the mobile phone 100.
As shown in fig. 3, 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, buttons 190, a display 194, a hinge system 191, and the like. Wherein 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., not shown in the figures).
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the mobile phone 100. In other embodiments of the present application, the handset 100 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The components of the handset 100 shown in figure 3 are described below.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors. The controller may be a neural center and a command center of the cell phone 100, among others. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The processor 110 may be configured to analyze the control instruction received by the mobile phone 100, and then control the rotating shaft system 191 according to information (such as angle information, unfolding/folding, and the like) included in the analyzed control instruction, so as to drive the first body or the second body to rotate, so as to change the unfolding angle of the mobile phone 100, where a process of driving the first body or the second body to select by the rotating shaft system 191 will be described later.
Of course, the processor 110 may also encapsulate the data to be transmitted, and transmit the encapsulated data to an auxiliary device such as a stylus pen through the mobile communication module 151 or the wireless communication module 152.
It should be understood that a communication mode may be agreed between the mobile phone 100 and the stylus pen, and the communication mode may be agreed on the format of data, the meaning of parameters, and the like, so that when the mobile phone 100 parses a control command sent by the stylus pen, the parsing may be performed according to the agreed communication mode, and when the mobile phone 100 encapsulates data to be sent, the encapsulation may also be performed according to the agreed communication mode, so that the stylus pen can parse the encapsulated data, which will be described later with respect to the communication mode.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the cellular phone 100 and data processing by executing 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 may store an operating system, an application program (such as WeChat, Paibao, etc.) required by at least one function, and the like. The data storage area can store data (such as pictures, video, audio data, phone books, etc.) created during the use of the mobile phone 100.
The internal memory 121 may also be used to store an unlock fingerprint of the handset 100, and the like. The unlocking fingerprint is used for verifying 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 further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The function of the sensor module 180 is described below.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The fingerprint sensor 180H is used to collect a fingerprint. The mobile phone 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a photograph of the fingerprint, answer an incoming call with the fingerprint, and the like.
As an example, the fingerprint sensor 180H collects an unlocking fingerprint, which is used to verify the fingerprint received by the mobile phone 100, and then stores the unlocking fingerprint in the internal memory 121, and when the verification is successful, unlocks the mobile phone 100. In the embodiment of the present application, the user can control the mobile phone 100 through the auxiliary device, so the auxiliary device can collect the fingerprint of the user and send the collected fingerprint to the mobile phone 100. After the mobile phone 100 receives the fingerprint of the user sent by the auxiliary device through the wireless communication module 152 or the mobile communication module 151, the processor 110 may compare the received fingerprint with the unlocking fingerprint stored in the internal memory 121, and if the received fingerprint is consistent with the unlocking fingerprint stored in the internal memory 121, control the unlocking device; alternatively, after the mobile phone 100 receives the fingerprint of the user sent by the auxiliary device through the wireless communication module 152 or the mobile communication module 151, the fingerprint sensor 180H may compare the received fingerprint with the stored unlocking fingerprint, and if the comparison is consistent, the processor controls the unlocking device.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation acting thereon or nearby. The touch sensor 180K may pass the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the mobile phone 100, different from the position of the display screen 194.
The mobile phone 100 implements the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the cell phone 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
As can be seen from the foregoing, in the embodiment of the present application, the mobile phone 100 may have one display screen, or may have at least two display screens. Taking the mobile phone 100 with a display screen as an example, please refer to fig. 1, where the first body is provided with a display screen, and the second body is not provided with a display screen; or the second body is provided with a display screen, and the first body is not provided with the display screen; alternatively, the first body and the second body cover a complete display (e.g., a flexible screen) which is folded when the mobile phone 100 is folded.
When the first body and the second body cover a complete display screen, 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 to display the same content or different contents, or the display screen can be used as a large screen to display an interface, which is not limited in the embodiment of the application.
Taking the mobile phone 100 with two display screens as an example, please continue to refer to fig. 1, and an independent display screen is disposed on both the first body and the second body. For example, when the mobile phone 100 includes two display screens, the two display screens may display the same content or different contents, and the embodiment of the present invention is not limited thereto.
The hinge system 191 is used to change the angle of the mobile phone 100, and the specific process will be described later.
The handset 100 may receive key 190 inputs, generating key signal inputs relating to user settings and function controls of the handset 100.
Although not shown in FIG. 3, the handset 100 may also include a camera, such as a front-facing camera, a rear-facing camera; audio modules (loudspeaker, receiver, microphone, earphone interface) and the like can be further included for realizing audio functions; a motor may also be included for generating a vibration alert (such as an incoming call vibration alert); indicators such as indicator lights may also be included to indicate charge status, charge level changes, and may also be used to indicate messages, missed calls, notifications, etc.
The structure of the stylus pen will be described below by taking the example where the auxiliary device is a stylus pen.
Fig. 4 is a schematic structural diagram of a stylus pen according to an embodiment of the present disclosure. As shown in FIG. 4, the stylus 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 and a gyroscope, and is configured to detect an included angle between the stylus pen and the horizontal direction, a rotation direction of the stylus pen, and the like.
And the processing module is used for processing the data detected by the sensor module, for example, encapsulating the data detected by the sensor module according to an agreed communication mode.
The storage module is used for storing the communication mode agreed between the stylus and the mobile phone 100, and other parameters, such as the initial angle E0 of the stylus relative to the horizontal direction, which will be described 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 process of controlling the mobile phone 100 by the stylus described in fig. 4 is described as follows:
after the stylus pen is connected to the mobile phone 100, the sensor module in the stylus pen detects sensor data such as a rotation angle and a rotation direction of the stylus pen, and then sends the detected data to the processing module, the processing module encapsulates the data according to an agreed communication mode, and the encapsulated data is sent to the mobile phone 100 through the communication module. The mobile phone 100 receives the encapsulated data sent by the stylus pen, analyzes the encapsulated data according to an agreed communication mode to obtain a rotation angle, a rotation direction and the like, and then controls the rotating shaft system 191 to change the unfolding angle of the mobile phone 100 based on the rotation angle, the rotation direction and the like.
In some embodiments, the stylus pen may detect data through the sensor module when it detects that the stylus pen satisfies a certain condition, for example, a switch may be disposed on the stylus pen, and when the switch is pressed, the sensor module detects the data. Specifically, when the processing module in the stylus detects that the switch is pressed, the processing module may trigger the start sensor module to detect data.
Therefore, for the user, when the user needs to control the foldable mobile phone through the stylus pen, the switch on the stylus pen can be pressed.
In some embodiments of the present application, in order to prevent a user from triggering the switch by mistake, which may result in the sensor module being triggered by mistake to detect data, the stylus pen may detect data through the sensor module only when the switch is detected to be pressed for a long time. For example, when the stylus pen detects that the switch is pressed for a preset time (for example, 2 seconds), the sensor module is triggered to start to detect data, and when the stylus pen detects that the switch is released (bounced), the sensor module is turned off. That is, the user can press the switch on the stylus pen for a long time when controlling the mobile phone 100 by the stylus pen, and release the switch when not needed to control the mobile phone 100.
Of course, the stylus pen may have other ways to control the sensor module to detect data, for example, the stylus pen may detect data through the sensor module when detecting that a switch is triggered, and turn off the sensor module when the stylus pen detects that another switch is triggered. That is, the stylus pen is provided with two switches, wherein when one switch is triggered, the stylus pen can control the mobile phone 100, and when the other switch is triggered, the stylus pen stops controlling the mobile phone 100.
It should be understood that it may not be clear how to control the mobile phone 100 in detail when the user first uses the stylus to control the mobile phone 100, so the mobile phone 100 or the stylus may give the user some prompt. As one example, each switch on the stylus may be provided with identification information (e.g., a label) indicating the role of each switch for user operation.
As another example, after the mobile phone 100 is connected to a stylus pen, the mobile phone 100 may display an interface for controlling the process steps of the mobile phone 100 by the stylus pen (the interface for the process steps may be displayed after the initial connection, or the interface for the process steps may be displayed after each connection); or, after the mobile phone 100 is connected to the stylus pen, the stylus pen may output a prompt message (such as a voice output) to prompt the user to control the flow steps of the mobile phone 100 through the stylus pen; or, after the mobile phone 100 and the stylus pen are connected, a control may be displayed on the display screen of the mobile phone 100, and when the control is triggered, an interface of the process step of controlling the mobile phone 100 by the stylus pen pops up; the above are only some exemplary prompt manners for prompting the user to control the operation steps of the mobile phone 100 by using the stylus pen, and in practical applications, other prompt manners may be provided.
It should be noted that fig. 4 only illustrates that the auxiliary device is a stylus pen, in practical applications, the auxiliary device may also be other devices, such as a smart band, a watch, and the like, which is not limited in this embodiment of the present application.
The following description will be made by taking the mobile phone 100 shown in fig. 3 and the stylus pen shown in fig. 4 as examples, and taking the mobile phone 100 and the stylus pen as examples connected via bluetooth.
It should be appreciated that bluetooth pairing can be performed before two devices communicate data via bluetooth.
Illustratively, the bluetooth pairing process may include:
in the first step, the mobile phone 100 starts the bluetooth module, and the stylus starts the bluetooth module.
For example, the process of enabling the bluetooth function by the mobile phone 100 may be a process in the prior art, please refer to fig. 5, which is a schematic diagram of a GUI of the mobile phone 100 provided in an embodiment of the present application, as shown in fig. 5(a), when the control 501 is activated, the mobile phone 100 enables the bluetooth function.
For example, 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 will be appreciated that the switch used on the stylus for controlling activation of the bluetooth module and the switch described above (for triggering the sensor module) may be different switches.
In the second step, after the mobile phone 100 scans the stylus, the identification information of the stylus is displayed.
As shown in fig. 5(a), after the mobile phone 100 scans the handwriting pen device, an identifier 502 of the handwriting pen is displayed (the identifier may be a name of the handwriting pen, may be set when the handwriting pen leaves the factory, or may be customized by the user, which is not limited in this embodiment of the present application).
Thirdly, when the mobile phone 100 detects an operation for triggering connection with the stylus pen, the mobile phone is connected with the stylus pen.
Referring to fig. 5(a), when detecting that the user triggers the control 503, the mobile phone 100 establishes a connection with the stylus pen; or when the mobile phone 100 detects that the user triggers the operation of the control 503, an interface as shown in fig. 5(b) is displayed, that is, the mobile phone 100 pops up a prompt message 504 to prompt the user whether to establish a connection with the stylus pen, and if the user selects yes, the mobile phone 100 establishes a bluetooth connection with the stylus pen.
Certainly, the process shown in fig. 5 is only an example of a process of establishing a bluetooth connection between the mobile phone 100 and the stylus pen, and other connection manners may also be used in practical applications, for example, before the bluetooth connection between the mobile phone 100 and the stylus pen is established, the user may be prompted to input a pairing code of the stylus pen, and after the mobile phone 100 detects that the user inputs the pairing code of the stylus pen, the connection is established with the stylus pen, which is not limited in the embodiment of the present application.
After the handwriting pen establishes bluetooth connection with the mobile phone 100, the user can control the unfolding angle of the mobile phone 100 through the handwriting pen. It should be noted that, after the stylus pen and the mobile phone 100 establish the bluetooth connection, data transmission between the stylus pen and the mobile phone 100 may be encapsulated in an agreed communication manner.
It should be understood that the appointed communication mode used when the mobile phone 100 transmits data to the stylus pen and the appointed communication mode used when the stylus pen transmits data to the mobile phone 100 may be different, and will be separately described below.
The following describes the conventional communication method used when the stylus pen sends data to the mobile phone 100.
Fig. 6 shows an example of meanings of different parameter values defined by an agreed communication method adopted when the stylus pen sends data to the mobile phone 100. As shown in fig. 6, when the value of the parameter is 1, it represents 0 degree, when the value of the parameter is 2, it represents 30 degrees, when the value of the parameter is 6, it represents that the control state is entered, and when the value of the parameter is 7, it represents that the control state is exited, and so on. When the stylus pen sends data to the mobile phone 100, the data may be encapsulated by using different values shown in fig. 6, for example, if the initial angle E0 of the stylus pen is 30 degrees, it can be known from the table shown in fig. 6 that the value of the parameter corresponding to 30 degrees is 2, and the data sent by the stylus pen to the mobile phone 100 includes 2. It should be understood that, in fig. 6, the values of the parameters are shown as decimal numbers, and actually, the parameters may also be presented in other manners, such as being represented by different characters (such as letters), or the values of the parameters may also be binary numbers, and the embodiments of the present application are not limited thereto.
Fig. 7(a) shows an example of a data transmission format defined by a convention communication method adopted when a stylus pen transmits data to the mobile phone 100. As shown in fig. 7(a), the data transmission format includes six fields, and a parameter in the first field is used to indicate an access code (access code); a parameter in the second field is used to indicate a header field (header); the value in the third field is used for indicating to enter or exit the screen control state; the values of each of the fourth to fifth fields may be used to indicate sensor data of the stylus; for example, the value in the fourth field is used to indicate the rotated angle E1 of the stylus, the value in the fifth field is used to indicate unfolding or folding, 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 of the stylus with respect to the horizontal. The rotated angle E1 may be an angle between the mobile phone and the horizontal direction after the mobile phone is rotated from the initial angle. Thus, the absolute value of the difference between E1 and E0 is how much the stylus has been rotated.
As an example, in the data format shown in fig. 7(a), the value of the fifth field may be determined by the stylus pen according to user operation, for example, a switch 1 and a switch 2 are set on the stylus pen, when the user wants to control the mobile phone 100 to unfold by using the stylus pen, the user triggers the switch 1, and when the stylus pen detects that the switch 1 is triggered, the value of the third field is 8; when the user wants to control the mobile phone 100 to fold by using the stylus pen, the user triggers the switch 2, and when the stylus pen detects that the switch 2 is triggered, the value of the third field is 9.
It should be understood that, as mentioned above, the stylus pen detects that the switch is pressed for a long time, and starts to control the mobile phone 100, so, in practical applications, the stylus pen detects that the switch 1 is pressed for a long time, and starts to control the mobile phone 100 to unfold, and when the stylus pen detects that the switch 1 is released, stops controlling the mobile phone 100; when the stylus pen detects that the switch 2 is pressed for a long time, the mobile phone 100 starts to be controlled to fold, and when the stylus pen detects that the switch 2 is released, the mobile phone 100 stops being controlled. That is, the user can control whether the cell phone 100 is unfolded or folded using different switches on the stylus.
As another example, the value of the fifth field may also be determined by the stylus according to the rotation direction of the stylus, for example, if the stylus detects that the angle between the user operating the stylus and the horizontal plane is increased (i.e., the difference between E1 and E0 is a positive number), the value of the fifth field of the stylus is 8, and if the stylus detects that the user operating the stylus and the horizontal plane is decreased (i.e., the difference between E1 and E0 is a negative number), the value of the fifth field is determined by the stylus to be 9. That is, in this example, the user realizes an effect of controlling the mobile phone 100 to be unfolded or folded by changing the rotation direction of the stylus pen.
It should be understood that, in fig. 7(a), for convenience of distinction, the parameters in the third field to the sixth field are distinguished by parameter 1, parameter 2, parameter 3, and parameter 4, respectively, and the values of the parameters 1 to 4 may be values in the table shown in fig. 6.
It should be noted that, in the data transmission format shown in fig. 7(a), for example, the fourth field is used to indicate the angle E1, the fifth field is used to indicate the unfolding or folding, and the sixth field is used to indicate the initial angle E0, actually, it is not limited to which field is used to indicate the angle E1, for example, the fourth field is used to indicate the initial angle E0, the fifth field is used to indicate the unfolding or folding, and the sixth field is used to indicate the angle E1.
Therefore, when the stylus pen sends data to the mobile phone 100, the data may be encapsulated according to the meaning of the value shown in fig. 6 and the data transmission format shown in fig. 7(a), and the encapsulated data is sent to the mobile phone 100.
The process of encapsulating data with the stylus shown in fig. 4 is described below.
The sensor module in the stylus pen collects sensor data of the stylus pen, and it is assumed that the sensor data collected by the sensor module includes an initial angle E0 between the stylus pen and the horizontal plane being 0 degree, and an included angle E1 between the stylus pen and the horizontal plane after rotation being 30 degrees. The sensor module can send sensor data to the processor module, the processor module determines that an included angle between the stylus pen and the horizontal plane is increased, namely corresponding to expansion, the storage module in the stylus pen stores meanings represented by each value shown in fig. 6, the processing module can inquire a corresponding value, namely 1, when the E0 is 0 degrees, a corresponding value, namely 2, when the E1 is 30 degrees, a corresponding value, namely 8, in the storage module, the processor module fills values in different fields according to a data transmission format shown in fig. 7(a), and packaged data are obtained. The communication module sends the encapsulated data to the handset 100.
For example, please refer to fig. 8, which is a schematic diagram of packaged data sent by the stylus to the mobile phone 100. As shown in fig. 8, the encapsulated data includes six fields, where a first field is an access code, a second field is a header, a third field is null, a value of a parameter in the fourth field is 2, a value of a parameter in the fifth field is 8, and a value of a parameter in the sixth field is 1.
Next, a process of parsing the encapsulated data after the handset 100 receives the encapsulated data will be described.
After receiving the encapsulated data, the mobile phone 100 may determine the value of each of the access code, the header, and the third to sixth fields, and determine the meaning of the value in each field according to the table shown in fig. 6.
For example, the access code may include an identity ID of the stylus pen, and after the mobile phone 100 receives the encapsulated data sent by the stylus pen, the identity ID of the stylus pen may be obtained by analyzing the access code in the data to verify whether the stylus pen is a device currently establishing a bluetooth connection with the mobile phone 100. For example, when the mobile phone 100 establishes a bluetooth connection with the stylus pen, the identity ID of the stylus pen may be stored, and after the mobile phone 100 receives the encapsulated data sent by the stylus pen, the access code included in the data is analyzed, and if the acquired identity ID is consistent with the stored identity ID, it is determined that the stylus pen is the device currently connected with 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), and the like, which is not limited in this embodiment.
The header may include information indicating bytes occupied by each of the third to sixth fields. Handset 100 may accurately distinguish the different fields based on the header. Illustratively, the number of bytes occupied by each of the third to sixth fields may be the same or different. For example, bytes 1-72 are a first field, bytes 73-127 are a second field, bytes 128-129 are a third field for indicating entry or exit of a screen control state, bytes 130-131 are a fourth field for indicating an angle E1 of the stylus, bytes 132-133 are a fifth field for indicating expansion or collapse, and bytes 134-135 are a sixth field for indicating an initial angle E0 of the stylus.
After determining each field, the mobile phone 100 determines the value of each field, and determines the meaning of the value of each field according to the table shown in fig. 7. For example, the value in the fifth field indicates that the mobile phone 100 is unfolded, and the mobile phone 100 may open the mobile phone 100 by a certain angle according to the absolute value of the difference between E1 (meaning of the value in the third field) and E0 (meaning of the value in the sixth field), where the angle may be the same as or different from the absolute value of the difference between E1 and E0.
The following describes the conventional communication method used when the mobile phone 100 transmits data to the stylus pen.
Fig. 9 shows an example of meaning of different values defined by an agreed communication method adopted when the mobile phone 100 transmits data to the stylus pen. As shown in fig. 9, when the value of the parameter is 0, it represents that the response of the mobile phone 100 is successful, and when the value of the parameter is 1, it represents that the response of the mobile phone 100 is failed.
Fig. 7(b) shows an example of a data transmission format defined by an agreed communication method adopted when the mobile phone 100 transmits data to the stylus pen. As shown in fig. 7(b), 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), and the third field includes 1 value, which is used to indicate success or failure of the response of the mobile phone 100.
It should be understood that the third field in the data transmission format shown in fig. 7(b) is a decimal number, and may actually be represented by a character, or represented by a binary number, etc., and the embodiment of the present application is not limited.
When the mobile phone 100 sends data to the stylus pen, the data may be encapsulated according to the data transmission format shown in fig. 7(b) and the meaning of the parameter value shown in fig. 9, and the encapsulated data may be sent to the stylus pen.
For example, please refer to fig. 10, which is a schematic diagram illustrating data transmitted from the mobile phone 100 to the stylus. As shown in fig. 10, the value in the third field of the data sent by the mobile phone 100 to the stylus pen is 0, and as can be seen from fig. 9, the value of 0 represents that the response is successful.
The following describes a process of decapsulating data after the stylus pen receives the encapsulated data sent by the mobile phone 100.
After receiving the encapsulated data sent by the mobile phone 100, the stylus pen may determine values of the access code, the header, and the third field, and determine a meaning of the value in the third field according to the table shown in fig. 9.
For example, the access code may include an identity ID of the mobile phone 100, and after the stylus pen receives the encapsulated data sent by the mobile phone 100, the stylus pen may obtain the identity ID of the mobile phone 100 by analyzing the access code in the data, so as to verify whether the mobile phone 100 is a device currently connected to the stylus pen.
The header may include a number of bytes used to indicate the number of bytes occupied by each field. The stylus can accurately determine each byte from the header. Taking the third field in the data shown in fig. 10 occupying two bytes as an example, after the stylus receives the encapsulated data sent by the mobile phone 100, it can be determined that the 1 st to 72 th bytes are the first field, the 73 th to 127 th bytes are the second field, and the 128 th and 129 th bytes are the third fields. The stylus determines the meaning corresponding to the value of the third field based on the table shown in fig. 9, and the value in the third field is used to indicate success or failure of the response of the mobile phone 100.
The following describes a process of controlling the unfolding angle of the mobile phone 100 by the stylus pen.
Hereinafter, the first switch provided on the stylus pen is taken as an example, and the first switch is used to turn on the function of controlling the unfolding angle of the mobile phone 100 by the stylus pen.
Fig. 11 is a schematic flowchart illustrating a method for controlling a foldable electronic device according to an embodiment of the present application. The method may be applied to an auxiliary device such as a stylus as described above. As shown in fig. 11, the flow of the method includes:
s1101: the handwriting pen detects that a user inputs a first operation.
As can be seen from the foregoing, the stylus pen may be provided with a first switch, and when the user wants to control the unfolding angle of the mobile phone 100 through the stylus pen, the user may press the first switch. Therefore, the first operation may be an operation in which the first switch is pressed.
S1102: the stylus pen responds to a first operation and sends a first instruction to the mobile phone 100, and the first instruction is used for indicating the mobile phone 100 to enter a screen control state; the screen control state is used to indicate that the deployment angle is ready to be adjusted.
Illustratively, after detecting that the first switch is continuously pressed for a preset time period, the stylus pen sends a first instruction to the mobile phone 100.
For example, the stylus pen may use the data transmission format shown in fig. 7(a) to package the data to be transmitted into the first command, please refer to fig. 12, which is a schematic diagram of the first command. As shown in fig. 12, the value of the third field in the first instruction is 6, that is, the third field is used to indicate that the screen control state is entered, and the fourth to sixth fields may be empty.
S1103: the handset 100 enters a screen control state.
For example, when the mobile phone 100 enters the screen control state, preparations may be made for changing the unfolding angle, such as recording the initial state of the mobile phone 100, where the initial state includes which body of the mobile phone 100 is currently in contact with the horizontal plane, the current unfolding angle (hereinafter referred to as the initial unfolding angle), and the like. For another example, the power is applied to the shaft system 191, and the specific process will be described later.
After the mobile phone 100 records an initial state (for example, a current unfolding angle), the unfolding angle is adjusted in the initial state, for example, the current unfolding angle is 30 degrees, the mobile phone 100 receives an instruction, the angle information carried in the instruction is 30 degrees, and the instruction indicates that the mobile phone 100 is unfolded, and then the mobile phone 100 is increased by 30 degrees on the basis of the current unfolding angle, that is, after the adjustment, the unfolding angle is 60 degrees.
S1104: the mobile phone 100 feeds back a second instruction to the stylus pen, wherein the second instruction is used for indicating that the mobile phone 100 successfully responds.
The mobile phone 100 may encapsulate the data to be transmitted according to the data transmission format shown in fig. 7(b), obtain a second instruction, and transmit the second instruction to the stylus pen.
For example, please refer to fig. 13, which is a schematic diagram of the second instruction. As shown in fig. 12, the value of the third field in the second instruction is 0, which is used to indicate that the response of the mobile phone 100 is successful.
It should be understood that the success of the response may be used to indicate that the mobile phone 100 successfully receives the first instruction, or to indicate that the mobile phone 100 successfully enters the screen control state, and the embodiment of the present application is not limited thereto.
S1105: the stylus detects a first angle of rotation of the stylus itself.
The sensor module is arranged on the stylus pen, comprises a gyroscope or an angular velocity sensor, and can be used for detecting the rotation angle of the stylus pen.
As an example, the stylus pen may detect an angle of the stylus pen with the horizontal plane, i.e., an initial angle E0, through the sensor module when detecting that the first switch is pressed, and record the initial angle E0. The sensor module can detect the included angle between the stylus and the horizontal plane in real time or periodically. When the stylus is rotated by the user, the sensor module may detect an angle E1 (the angle between the stylus and the horizontal direction after the stylus is rotated) after the stylus is rotated. The first angle may be the difference between E1 and E0.
S1106: the stylus pen 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 indicate to fold or unfold the mobile phone 100.
As can be seen from the foregoing, the stylus pen can determine whether to unfold or fold the mobile phone 100 according to the difference between E1 and E0, for example, when the difference between E1 and E0 is positive, the mobile phone 10 is unfolded, and when the difference between E1 and E0 is negative, the mobile phone 100 is folded. The stylus pen may encapsulate data to be transmitted in an agreed communication manner to obtain a third instruction.
For example, please refer to fig. 14, which is a schematic diagram of the third instruction. As shown in fig. 14, the value of the third field in the third instruction is null, the value of the fourth field represents the rotated angle E1, the value of the fifth field represents the expansion, and the value of the sixth field represents the initial angle E0. In the example shown in FIG. 14, the third command includes an initial angle E0 and a rotated angle E1, the absolute value of the difference between the initial angle E0 and the rotated angle E1, i.e., how many degrees the stylus has been rotated.
S1107: the mobile phone 100 controls the unfolding angle of the mobile phone 100 to be the second angle based on the third instruction.
After receiving the third command, the mobile phone 100 may parse the third command, determine an absolute value of a difference between E1 and E0, obtain a rotation angle of the stylus pen, and determine the unfolding or folding indicated in the third command.
As an example, the rotation angle of the mobile phone 100 may be equal to the rotation angle of the stylus.
For example, taking the initial state of the mobile phone 100 including the first body contacting the horizontal plane and the initial unfolding angle of the mobile phone 100 being 30 degrees as an example, if the third instruction indicates to unfold the mobile phone 100 and indicates to rotate the stylus pen by 30 degrees, the mobile phone 100 controls the rotating shaft system 191 to drive the second body to rotate by 30 degrees, and the final unfolding angle of the mobile phone 100 is 60 degrees. If the third instruction indicates to fold the mobile phone 100 and the rotation angle of the stylus pen is 30 degrees, the mobile phone 100 controls the rotation axis system 191 to drive the second body to rotate 30 degrees, and if the initial unfolding angle of the mobile phone 100 is 30 degrees, the final unfolding angle of the mobile phone 100 is 0 degree.
As another example, the mobile phone 100 may calculate another angle based on the rotation angle of the stylus pen, and the rotation angle of the mobile phone 100 is the calculated angle.
For example, taking the initial state of the mobile phone 100 including the first body contacting the horizontal plane and the initial unfolding angle of the mobile phone 100 being 30 degrees as an example, the third instruction indicates that the rotation angle of the stylus pen is 30 degrees, and the third instruction indicates that the mobile phone 100 is unfolded, the mobile phone 100 calculates another angle value based on the 30 degrees, and controls the rotation shaft system 191 to drive the second body to rotate the calculated angle. Thus, the final deployment angle of the handset 100 is the sum of the initial deployment angle and the calculated angle.
For example, the mobile phone 100 may calculate the rotation angle according to the following formula (1):
Figure BDA0002009162160000171
where E1 is the rotated angle of the stylus, E0 is the initial angle of the stylus, and V0 is a preset angle, which may be the maximum angle that the mobile phone 100 can rotate, for example, V0 is 180 degrees.
The cell phone 100 can calculate the rotation angle V according to the values of E1 and E0 and the value of V0 carried in the third instruction. Thus, the angle of rotation of the handset 100 is V, rather than (E1-E0).
S1108: the handset 100 sends a fourth instruction to the stylus indicating that the response was successful.
For example, after the rotation angle of the mobile phone 100 is successful, a fourth instruction may be sent to the stylus pen to indicate that the rotation is successful. Of course, after the rotation of the mobile phone 100 fails (for example, the rotation shaft system 191 is abnormally operated and cannot be powered on, and the like, so that the unfolding angle is not changed, or the mobile phone 100 is unfolded to the maximum angle), an instruction for the rotation failure may also be sent to the stylus pen.
As an example, when the stylus pen receives an instruction indicating that the rotation of the mobile phone 100 has failed, a prompt message may be output to prompt the user that the rotation of the mobile phone 100 has failed. Of course, after the rotation of the mobile phone 100 fails, the mobile phone may output a prompt message to prompt the user of the rotation failure.
In other embodiments, the mobile phone 100 may not need to send the fourth instruction to the stylus pen, and the embodiment of the present application is not limited thereto.
S1009: the stylus pen detects the second operation.
For example, the second operation may be an operation in which the first switch on the stylus pen is released.
S1010: the stylus pen sends a fifth instruction to the mobile phone 100 in response to the second operation, the fifth instruction being used for instructing the mobile phone 100 to exit the screen control state.
For example, the fifth instruction is similar to the first instruction, and is not repeated here.
S1111: the handset 100 exits the screen control state.
For example, when the mobile phone 100 exits the screen control state, the hinge system 191 may be turned off, such as by powering down the hinge system 191; or deleting the related data of the recorded initial state.
The control flow of the stylus to the mobile phone 100 is described below by way of example.
Example 1:
fig. 15 is a schematic flow chart illustrating the process of controlling the unfolding angle of the mobile phone 100 by the pen. As shown in fig. 15, the process includes:
the first process is as follows: the pen is placed horizontally, the mobile phone 100 is closed (the expansion angle is 0 degree), and the second body is in contact with the horizontal plane. After detecting that the switch K1 is pressed for a long time, the stylus pen sends a first instruction to the mobile phone 100, where a first field in the first instruction includes an access code, a second field includes a header, a value in a third field is 6, the third field is used to indicate that the mobile phone 100 enters a screen control state, and other fields are empty. The mobile phone 100 receives the first instruction, enters a screen control state, and records an initial state, wherein the initial state includes an initial unfolding angle of 0 degree.
The second process: when the stylus pen is rotated by 30 degrees by the user, the stylus pen sends a second instruction to the mobile phone 100, where a first field in the second instruction includes an access code, a second field includes a header, a third field is empty, a value in a fourth field is 2, a value in a fifth field is 8, and a value in a sixth field is 1. After the mobile phone 100 receives the second instruction, the meaning of each value is analyzed according to the meaning of the value shown in fig. 6, and it is determined that 60 degrees needs to be rotated according to the formula (1), that is, the mobile phone 100 controls the rotating shaft system 191 to drive the first body to rotate 60 degrees, and the final expansion angle is 60 degrees.
In the third process, the stylus pen is rotated by the user for 30 degrees, the stylus pen sends a third instruction to the mobile phone 100, and in the third instruction, the value in the fourth field is 3, the value in the fifth field is 8, and the value in the sixth field is 2. After the mobile phone 100 receives the third instruction, the meaning of each value is analyzed according to the meaning of the value shown in fig. 6, and it is determined that 60 degrees needs to be rotated according to the above formula (1), then the mobile phone 100 controls the rotating shaft system 191 to drive the first body to continue to rotate by 60 degrees, and the final expansion angle is 120 degrees.
A fourth process: the stylus pen is rotated by the user for 30 degrees, the stylus pen sends a fourth instruction to the mobile phone 100, where a value of a fourth field in the fourth instruction is 4, a value of a fifth field is 8, and a value of a sixth field is 3. After receiving the fourth instruction, the mobile phone 100 analyzes the meaning of each value according to the meaning of the value shown in fig. 6, and determines that the first body needs to rotate for 60 degrees continuously according to the formula (1), so that the mobile phone controls the rotating shaft system 191 to drive the first body to rotate for 60 degrees continuously, and the final expansion angle is 180 degrees.
The fifth process: and after detecting that the switch K1 is released, the stylus pen sends a fifth instruction to the mobile phone 100, wherein a value in a third field in the fifth instruction is 7. After receiving the fifth instruction, the mobile phone 100 exits the screen control state.
It should be noted that in the process shown in fig. 15, the screen may be automatically lighted up in the process of opening the mobile phone 100 from 0 degree to 180 degrees.
As an example, the mobile phone 100 may determine which screen to illuminate based on the current deployment angle. For example, if the current unfolding angle is within the first angle range, the mobile phone 100 lights up the main screen; if the current expansion angle is within the second angle range, the secondary screen is turned on by the mobile phone 100, and the minimum value of the second angle range is greater than the maximum value of the first angle range.
For example, the main screen and the auxiliary screen on the mobile phone 100 can be set by the user; or, the main screen and the sub-screen on the mobile phone 100 may be default screens set when the mobile phone 100 leaves a factory; or, the main screen on the mobile phone 100 may be a rotated main screen, and the sub-screen is a screen on the main body that is not rotated; alternatively, the mobile phone 100 detects which screen the user gazes at (for example, if the camera on the first body detects a face, the user gazes at the screen on the first body), and which screen is the main screen.
Illustratively, continuing with fig. 15 as an example, when the mobile phone 100 detects that the unfolding angle is 60 degrees, the main screen may be lighted, assuming that the main screen is a screen of the rotated body (i.e., a screen on the first body). After the main screen is lightened by the mobile phone 100, a screen locking interface can be displayed; or a fingerprint sensor is arranged on the switch K1 on the stylus pen, and the fingerprint sensor can be used for collecting a fingerprint of a user and sending the collected fingerprint to the mobile phone 100, after the mobile phone 100 lights the main screen, whether the fingerprint is consistent with the stored fingerprint can be verified, and if so, the device is unlocked, that is, the main screen is lighted and then the main interface is displayed. For example, after the main screen is lit by the mobile phone 100, a prompt message (e.g., a voice prompt) may be sent to the stylus pen, where the prompt message is used to prompt the user to enter a fingerprint at the side of the stylus pen, and the stylus pen sends the fingerprint to the mobile phone 100 after detecting that the user enters the fingerprint. For example, the fingerprint sensor on the stylus pen may be integrated on the switch K1 shown in fig. 15, that is, when the user presses the switch K1 for a long time to control the mobile phone 100 by the stylus pen, the fingerprint sensor on the switch K1 captures the fingerprint of the user, and then transmits the captured fingerprint to the mobile phone 100.
For example, after the main screen is lighted up, the screen locking interface may be displayed first, and when the fingerprint verification is successful, the main interface is entered, or the mobile phone 100 may verify the fingerprint first, and after the fingerprint verification is successful, the main interface may be directly displayed without displaying the screen locking interface. In a second process, the secondary screen may be in a screen-off state.
In the third process, when the mobile phone 100 detects that the mobile phone is opened by 120 degrees, the secondary screen may be lit, and the same content as that of the main screen may be displayed after the secondary screen is lit, that is, the display interfaces of the secondary screen and the main screen are the same. When the mobile phone 100 detects that the mobile phone is opened by 180 degrees, the main screen and the sub-screen are used as a complete screen to display an interface, that is, the mobile phone 100 can be used as a pad. The specific process will be described later.
Example 2:
fig. 16 is a schematic flow chart illustrating the process of controlling the unfolding angle of the mobile phone 100 by the pen. As can be seen from a comparison between the process shown in fig. 16 and the process shown in fig. 15, in the flow shown in fig. 16, the stylus pen is gradually changed from the vertically-disposed state to the horizontally-disposed state, and therefore, the unfolding angle of the mobile phone 100 is adjusted from 180 degrees to 0 degrees.
In the process shown in fig. 16, the screen of the mobile phone 100 may be gradually turned off from 180 degrees to 0 degrees.
Illustratively, in the example shown in fig. 16, 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 an interface. In the process of decreasing the spread angle from 180 degrees to 120 degrees (second process), the main screen and the sub-screen may display the same interface as two separate display screens. In the process (third process) of reducing the spread angle from 120 degrees to 60 degrees, the sub-screen may be turned off, and in the process of reducing the spread angle from 60 degrees to 0 degrees, the main screen may be turned off.
The process of controlling the deployment angle by the pivot system 191 in the handpiece 100 is described below.
Referring to fig. 17, which is a schematic view of a spindle system 191, as shown in fig. 17, the spindle system 191 includes a first spindle system and a second spindle system, where the first spindle system may be used to drive the first body to rotate, and the second spindle system may be used to drive the second body to rotate. As can be seen from the foregoing, when the mobile phone 100 enters the screen control state, the initial state of the mobile phone 100 can be recorded, where the initial state includes which body of the mobile phone 100 is in contact with the desktop, and if the first body is in contact with the desktop, the first rotating shaft system of the mobile phone 100 drives the first body to rotate; if the second body contacts the desktop, the mobile phone 100 controls the second hinge system to rotate the second body.
In some embodiments, the cell phone 100 can determine which body is in contact with the object through a pressure sensor. For example, when one body of the mobile phone 100 contacts a desktop, a pressure sensor on the body generates a pressure signal, and the mobile phone 100 can determine that the body contacts the desktop, the other body is controlled to rotate by a rotating shaft system corresponding to the other body.
In other embodiments, the mobile phone 100 may also determine which body does not need to rotate through the ambient light sensor, for example, the first body and the second body are both provided with the ambient light sensor, and if the ambient light sensor on the first body detects that the ambient light is weak, the mobile phone 100 may rotate the second body. For example, if 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.
In other embodiments, the mobile phone 100 may determine which body does not need to rotate in other manners, for example, if the mobile phone 100 determines that the contact area between the first body and the hand of the user is larger, the first body does not need to rotate, and the second body rotates.
Taking the first rotating shaft system as an example, please refer to fig. 18(a), the first rotating shaft system includes a first cylinder and a second cylinder, the second cylinder may be hollow and is 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, so when the first cylinder rotates, the first body is driven to rotate through the first connecting body.
The first cylinder can have magnetism, and four magnets are arranged outside the first cylinder and inside the second cylinder and used for driving the first cylinder to rotate. It will be appreciated that the four magnets may be metal bodies having an outer surface wrapped around a wire, the metal bodies being magnetic when the wire is energized.
For example, with continued reference to fig. 18(b), the first pillar itself has magnetic properties, and half of the first pillar is S-level and the other half is N-level. The wires are wound outside the 4 metal bodies, the wires on the periphery of each metal body are connected with a power supply, and when the wires on the periphery of one metal body are electrified, the metal body generates magnetism and can attract or repel the first cylinder, so that the first cylinder is caused to rotate. With continued reference to fig. 18(b), when the switch S3 is closed, the side of the third magnet facing the first column is in S-stage, attracting N-stage of the first column.
Fig. 19 is a schematic diagram showing two forms of the mobile phone 100. When the second body contacts with the table top, the cross section of the first rotating shaft system is as shown in fig. 19(a), and the first cylinder drives the first body to rotate. As an example, the mobile phone 100 may be provided with four magnets, i.e., a first magnet, a second magnet, a third magnet, and a fourth magnet. Wherein the positions of the four magnets do not change. For example, when the included angle between the first body and the second body is 0, the S-stage of the first column faces the first magnet, because the side of the first magnet facing the first column is N-stage. When the included angle between the first body and the second body is 90 degrees, the S-level of the first column body is over against the second magnet, because the side of the second magnet over against the first column body is N-level at the moment.
When the first body contacts with the table top, the cross section of the second rotating shaft system is as shown in fig. 19(b), and the first cylinder in the second rotating shaft system drives the second body to rotate. As an example, the mobile phone 100 may be provided with four magnets, namely a first magnet, a second magnet, a third magnet, and a fourth magnet. Wherein the positions of the four magnets do not change. For example, when the included angle between the first body and the second body is 0, the S-stage of the first column faces the first magnet, because the side of the first magnet facing the first column is N-stage. When the included angle between the first body and the second body is 90 degrees, the S-level of the first column body is over against the second magnet, because the side of the second magnet over against the first column body is N-level at the moment.
It should be understood that, in order to control a certain metal body to generate magnetism, a switch may be disposed between the conducting wire and the power source at the periphery of each metal body in the first rotating shaft system or the second rotating shaft system.
The following description will take an example in which the second body of the mobile phone 100 contacts with a desktop and the first body is driven to rotate by the first rotating shaft system.
When the mobile phone 100 enters the screen control state, the initial state is recorded, where the initial state may include an initial deployment angle, the mobile phone 100 receives a control instruction sent by the stylus pen, and assuming that angle information indicated by the control instruction is 30 degrees, the mobile phone 100 needs to control the first body to rotate by 30, that is, the final deployment angle is 60 degrees (assuming that the initial deployment angle is also 30 degrees), and when the final deployment angle is 60 degrees, the mobile phone 100 may determine how the closed state of S1\ S2\ S3\ S4 is in the correspondence between the stored deployment angle and the closed state of S1\ S2\ S3\ S4.
Please refer to fig. 20, which is a diagram illustrating an example of a corresponding relationship according to an embodiment of the present application. The cellular phone 100 may determine that the final deployment angle is 60 degrees based on the correspondence relationship shown in fig. 20, S1 is closed, S2 is closed, and S3 and S4 are opened. Thus, the cellular phone 100 will close S1, S2 and open S3, S4. With continued reference to fig. 18(b), when S1 is closed, S2 is closed, and S3 and S4 are opened, the side of the first magnet facing the first column is N-level, and the side of the second magnet facing the first column is also N-level. Therefore, the S-stage of the first body rotates 30 degrees under the attraction of the first and second magnets, so that the first body is driven by the first cylinder to rotate 30 degrees, and the mobile phone 100 is finally unfolded 60 degrees.
It should be noted that, in the correspondence relationship shown in fig. 20, only the closed states of S1\ S2\ S3\ S4 corresponding to 4 deployment angles are listed, and in practical applications, the closed states of S1\ S2\ S3\ S4 corresponding to more deployment angles may also be included, which is not listed in the embodiment of the present application.
The second rotating shaft system in the mobile phone 100 can also drive the second body to rotate in a similar manner, and for brevity of the description, no further description is provided here.
The software architecture of the handset 100 is described below
Please refer to fig. 21, which is a schematic diagram of a software architecture of a mobile phone 100 according to an embodiment of the present application. Fig. 21 takes the android architecture as an example, and as shown in the figure, the architecture includes 4 layers, which are respectively: an application (application) layer, a framework (frame) layer, a system layer and a kernel (Linux) layer.
The application layer includes various applications such as a system interface (system UI), a WeChat, a camera, and the like.
And the framework layer comprises a display policy management module, a multimedia system (DMS) and a Window Manager Service (WMS). The display policy management module is configured to actually light a mode, such as which display screen is lighted, or what content is displayed on the display screen, and the like, according to an open/close state of the mobile phone, where specific content will be described later.
And a DMS for transmitting the lighting mode to the WMS.
And the WMS is used for displaying the interface according to the lighting mode sent by the DMS.
The system library comprises a state detection service module and a surfaceflag. The state detection service module is used for determining the opening and closing state of the mobile phone according to the sensor data and reporting the determined opening and closing state to the framework layer. The surfefringer is used for triggering the display driver to drive the display screen to display the interface.
And the inner core layer comprises a sensor driver and a display driver. The sensor driver is configured to report sensor data acquired by the sensor to the system layer, where the sensor data includes an opening angle of the mobile phone 100. The display driver is used for driving a display interface of the display screen.
The following describes a process of intelligently lighting up the screen of the mobile phone 100 by taking 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 as examples.
(1) And the sensor driver in the kernel layer reports the sensor data acquired by the sensor to a state detection service module in the system library. Wherein the sensor data includes an angle at which the handset 100 is open.
(2) 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.
(3) And the display strategy management module determines the lighting mode according to the current opening angle.
As an example, the display policy management module may determine the lighting mode according to a 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 lit and the sub-screen is extinguished.
It should be understood that the correspondence between the lighting mode and the open angle may be stored in the cellular phone 100. Please refer to fig. 22, which is an example of the corresponding relationship between the opening angle and the lighting mode provided in the embodiment of the present application. The mobile phone 100 may determine, according to fig. 22, that when the current opening angle is 60 degrees, the current opening angle is within the range of the interval [60, 120], and the corresponding lighting mode is that the main screen is lit, and the sub-screen is extinguished.
(4) After the display policy management module determines the lighting mode, the display mode may be determined.
Assuming that the current opening angle of the mobile phone 100 is 150, after the display policy management module determines that the main screen and the sub-screen are illuminated, it can also determine what interfaces are respectively displayed on the main screen and the sub-screen. For example, continuing to refer to fig. 22, where the current opening angle of the cell phone 100 is 150, it may be determined that the primary screen and the secondary screen each display the same interface. Referring to fig. 23, when the opening angle of the mobile phone 100 is 150 degrees, the display interfaces of the main screen and the sub 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 fig. 22 that the main screen and the sub-screen are used as a large screen to display an interface, please refer to fig. 24, and the main screen and the sub-screen of the mobile phone 100 are used as a large screen to display the main interface.
(4) And after the display strategy management module determines the display mode, the display mode can be sent to the WMS through the DMS.
(5) The WMS transmits the display mode to the system UI, and the system UI adjusts parameters of the display interface based on the display mode. For example, when the display mode is the main screen is on and the sub-screen is off, the system UI may adjust the parameters of the display interface to be suitable for the parameters of the main screen, for example, the resolution of the main screen is 1024 × 768, and the system UI may adjust the resolution of the display interface to be 1024 × 768.
For another example, if the display mode is that the primary screen and the secondary screen are both lit, and the primary screen and the secondary screen respectively display the same interface (see fig. 22), the system UI may adjust the resolution of the display interface to 1024 × 768, and display the interface through the primary screen, and adjust the resolution of the other display interface to 2400 × 1200, and display the interface through the secondary screen.
It should be noted that the main screen and the sub-screen related in fig. 22, 23, and 24 may be set by default when the mobile phone 100 leaves the factory, may be customized by the user in the process of using the mobile phone 100, and may be automatically identified and determined by the mobile phone 100. For example, taking fig. 1 as an example, when the mobile phone 100 detects that the current second body is in contact with the desktop, 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 primary screen; when the mobile phone 100 detects that the current first body is in contact with the desktop, it is determined that the display screen corresponding to the first body is the main screen, and the display screen corresponding to the second body is the auxiliary screen.
According to the above description, in the embodiment of the application, the opening and closing state of the foldable electronic device can be remotely controlled through the auxiliary device, so that the operation of a user is facilitated, and the user experience is improved.
The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
In the embodiments provided in the present application, the method provided in the embodiments of the present application is described from the perspective of the electronic device (the mobile phone 100) as an execution subject. In order to implement the functions in the method provided by the embodiments of the present application, the electronic device may include a hardware structure and/or a software module, and the functions are implemented in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether any of the above-described functions is implemented as a hardware structure, a software module, or a hardware structure plus a software module depends upon the particular application and design constraints imposed on the technical solution.
Through the above description of the embodiments, those skilled in the art will clearly understand that the embodiments of the present application can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Taking this as an example but not limiting: the computer-readable medium may include RAM, ROM, an Electrically Erasable Programmable Read Only Memory (EEPROM), a compact disc read-Only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, the method is simple. Any connection is properly termed a computer-readable medium. For example, if software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, the fiber optic cable, the twisted pair, the DSL, or the wireless technologies such as infrared, radio, and microwave are included in the fixation of the medium. Disk and disc, as used in accordance with embodiments of the present application, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
In short, the above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modifications, equivalents, improvements and the like made in accordance with the disclosure of the present application are intended to be included within the scope of the present application.

Claims (32)

1. A control method of a foldable electronic device is applied to a first electronic device, the first electronic device is in communication with the foldable electronic device, a first switch is arranged on the first electronic device, the first electronic device comprises a sensor module and a communication module, and the method comprises the following steps:
detecting a first operation for a first switch;
in response to the first operation, the sensor module detects a rotation angle of the first electronic device, and the communication module sends a first instruction to the foldable electronic device, where the first instruction includes first indication information and second indication 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 for indicating that the foldable electronic device is unfolded or folded.
2. The method of claim 1, wherein the method further comprises:
receiving a second instruction sent by the foldable electronic device, wherein the second instruction is used for indicating that the foldable electronic device is successfully or unsuccessfully unfolded or folded;
and responding to the second instruction, the first electronic equipment outputs first prompt information for prompting that the foldable electronic equipment fails to respond.
3. The method of claim 1 or 2, wherein the method further comprises:
outputting second prompt information, wherein the second prompt information is used for prompting a user to operate the first electronic equipment to control the foldable electronic equipment;
the second prompt message comprises one or more of voice message, text message, prompt lamp flashing and vibration.
4. The method of claim 1 or 2, wherein a fingerprint sensor is disposed on the first electronic device, the method further comprising:
collecting a fingerprint of a user through the fingerprint sensor;
the fingerprint is sent to the foldable electronic equipment through the communication module, and the fingerprint is used for unlocking the foldable electronic equipment.
5. The method of claim 1 or 2, wherein a second switch is provided on the first electronic device, the method further comprising:
and when the second switch is detected to be triggered, outputting third prompt information to prompt that the foldable electronic equipment is stopped to be controlled.
6. The method of claim 1 or 2, wherein the first electronic device is a stylus.
7. The control method of the foldable electronic equipment is characterized by being applied to the foldable electronic equipment, wherein the foldable electronic equipment is communicated with first electronic equipment, the foldable electronic equipment comprises a first body, a second body and a connecting device, the connecting device is used for controlling the unfolding angle of the foldable electronic equipment, and the unfolding angle is an included angle between the first body and the second body; the method comprises the following steps:
receiving a first instruction sent by the first electronic device, wherein the first instruction comprises first indication information and second indication information, the first indication information is used for indicating first angle information, and the second indication information is used for indicating that the foldable electronic device is unfolded or folded; the first angle information is a rotation angle of the first electronic device;
controlling the foldable electronic device to unfold or fold by a second angle through the connecting device according to the second indication information, wherein the second angle is determined based on the first angle information.
8. The method of claim 7, wherein the foldable electronic device comprises a first display screen belonging to the first body and a second display screen belonging to a second body;
the method further comprises the following steps: before receiving a first instruction sent by the first electronic device, the first display screen and the second display screen are both turned off,
after the first instruction is received, when the unfolding angle is larger than a first preset angle, lightening the first display screen; when the unfolding angle is larger than a second preset angle, lightening the first display screen and the second display screen;
wherein the second preset angle is greater than the first preset angle.
9. The method of claim 8, wherein the method further comprises:
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 and respectively display a part of the same display interface.
10. The method of any one of claims 7-9, wherein the foldable electronic device is in a screen-locked state, the method further comprising:
receiving a fingerprint sent by the first electronic equipment;
and if the fingerprint verification is successful, unlocking the foldable electronic equipment.
11. The method of any of claims 7-9, wherein the second angle is equal to the first angle, or the second angle is calculated based on the following equation:
Figure FDA0003512202970000021
wherein v is the second angle, v0 is a preset angle, and E is the first angle.
12. The method of any of claims 7-9, further comprising:
when the foldable electronic equipment is controlled to unfold or fold at the second angle by the connecting device and fails, prompt information is output, and the prompt information is used for prompting that the foldable electronic equipment is unfolded or folded and fails.
13. The method of any of claims 7-9, further comprising:
and sending a second instruction to the first electronic device, wherein the second instruction is used for indicating that the foldable electronic device is successfully or unsuccessfully unfolded or folded.
14. The method of any of claims 7-9, wherein the first angle information corresponds to a rotation angle of the first electronic device.
15. A first electronic device is characterized in that a first switch is arranged on the first electronic device, and the first electronic device comprises a sensor module and a communication module; the first electronic device is in communication with a foldable electronic device,
the first switch for receiving a first operation;
the sensor module is used for detecting the rotation angle of the first electronic equipment;
the communication module is configured to send a first instruction to the foldable electronic device, where the first instruction includes first indication information and second indication information used for indicating angle information, and the angle information corresponds to a rotation angle of the first electronic device detected by the sensor module; the second indication information is used for indicating that the foldable electronic device is unfolded or folded.
16. The first electronic device of claim 15, wherein the communication module is further configured to receive a second instruction sent by the foldable electronic device, wherein the second instruction is configured to indicate that the foldable electronic device is successfully or unsuccessfully unfolded or folded;
the first electronic device further comprises an output device, and the output device is used for outputting first prompt information for prompting that the foldable electronic device fails to respond.
17. The first electronic device according to claim 15 or 16, wherein the output device of the first electronic device is configured to output a second prompt message, the second prompt message being configured to prompt a user to operate the first electronic device to control the foldable electronic device;
the second prompt message comprises one or more of voice message, text message, prompt lamp flashing and vibration.
18. The first electronic device of claim 15 or 16, wherein a fingerprint sensor is disposed on the first electronic device, and the fingerprint sensor is configured to capture a fingerprint of a user;
the communication module is further configured to send the fingerprint to the foldable electronic device, where the fingerprint is used to unlock the foldable electronic device.
19. The first electronic device according to claim 15 or 16, wherein a second switch is provided on the first electronic device, the second switch being configured to detect a second operation;
and the output device of the first electronic device is used for outputting third prompt information to prompt that the foldable electronic device is stopped to be controlled.
20. The first electronic device of claim 15 or 16, wherein the first electronic device is a stylus.
21. A foldable electronic device, comprising:
a first body and a second body;
the connecting device is used for controlling the unfolding angle of the foldable electronic equipment, and the unfolding angle is an included angle between the first body and the second body;
the foldable electronic device comprises a communication module and a folding module, wherein the communication module is used for receiving a first instruction sent by first electronic equipment, the first instruction comprises first indication information and second indication information, the first indication information is used for indicating first angle information, and the second indication information is used for indicating that the foldable electronic equipment is unfolded or folded; the first angle information is a rotation angle of the first electronic device;
a processor configured to control the connecting device to unfold or fold the foldable electronic device by a second angle according to the second indication information, wherein the second angle is determined based on the first angle information.
22. Foldable electronic device as claimed in claim 21, wherein said foldable electronic device comprises a first display belonging to said first body and a second display belonging to a second body;
the processor is further configured to light the first display screen when the unfolding angle of the foldable electronic device is greater than a first preset angle; when the unfolding angle is larger than a second preset angle, controlling the first display screen and the second display screen to be lightened;
wherein the second preset angle is greater than the first preset angle.
23. Foldable electronic device according to claim 22, wherein the first display and the second display each display the same interface, or the first display and the second display are one display each displaying a part of the same display interface.
24. Foldable electronic device according to any of claims 21 to 23, wherein said foldable electronic device is in a screen-locked state, and said communication module is further configured to receive a fingerprint transmitted by said first electronic device;
the processor is further configured to control the foldable electronic device to unlock when the fingerprint verification is successful.
25. Foldable electronic device as claimed in any of claims 21 to 23, wherein said second angle is equal to said first angle or said second angle is calculated based on the following formula:
Figure FDA0003512202970000031
wherein v is the second angle, v0 is a preset angle, and E is the first angle.
26. Foldable electronic device as claimed in any of claims 21 to 23, wherein the output device of the first electronic device is adapted to:
when the foldable electronic equipment is controlled to unfold or fold at the second angle by the connecting device and fails, prompt information is output, and the prompt information is used for prompting that the foldable electronic equipment is unfolded or folded and fails.
27. Foldable electronic device according to any of claims 21 to 23, wherein said communication module is further adapted to: and sending a second instruction to the first electronic device, wherein the second instruction is used for indicating that the foldable electronic device is successfully or unsuccessfully unfolded or folded.
28. Foldable electronic device according to any of claims 21 to 23, wherein said first angle information corresponds to a rotation angle of said first electronic device.
29. A first electronic device comprising a first switch, a sensor module, and a communication module;
one or more processors; a memory; one or more applications; one or more programs, wherein the one or more programs are stored in the memory, the one or more programs comprising instructions, which when executed by the electronic device, cause the electronic device to perform the method steps of any of claims 1-6.
30. A foldable electronic device is characterized by comprising a first body, a second body, a connecting device and a communication module;
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 comprising instructions, which when executed by the electronic device, cause the electronic device to perform the method steps of any of claims 7-14.
31. A computer-readable storage medium, comprising a computer program which, when run on a first electronic device, causes the first electronic device to perform the method of any of claims 1 to 6.
32. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a computer program which, when run on a foldable electronic device, causes the foldable electronic device to perform the method of any of claims 7 to 14.
CN201910239290.8A 2019-02-28 2019-03-27 Control method of foldable electronic equipment and related equipment Active CN111625052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/076092 WO2020173388A1 (en) 2019-02-28 2020-02-21 Control method for foldable electronic device, and related device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2019101503960 2019-02-28
CN201910150396 2019-02-28

Publications (2)

Publication Number Publication Date
CN111625052A CN111625052A (en) 2020-09-04
CN111625052B true CN111625052B (en) 2022-05-24

Family

ID=72258746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910239290.8A Active CN111625052B (en) 2019-02-28 2019-03-27 Control method of foldable electronic equipment and related equipment

Country Status (1)

Country Link
CN (1) CN111625052B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112510779B (en) * 2020-11-25 2023-01-31 维沃移动通信有限公司 Charging apparatus and charging method
CN116414185B (en) * 2021-12-29 2024-03-12 荣耀终端有限公司 Foldable electronic device
CN115118815B (en) * 2022-08-29 2023-02-03 荣耀终端有限公司 Anti-reverse-folding alarm method and related device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140102000A (en) * 2013-02-13 2014-08-21 성영호 Notebook-type computer with open and angle adjustment funciton, and mouse apparatus for the same
US9400570B2 (en) * 2014-11-14 2016-07-26 Apple Inc. Stylus with inertial sensor
KR20170140976A (en) * 2016-06-14 2017-12-22 엘지전자 주식회사 Foldable device and method for controlling the same
CN107885277B (en) * 2017-10-19 2020-12-18 Oppo广东移动通信有限公司 Method and device for adjusting angle of display screen, mobile terminal and storage medium
CN108228061B (en) * 2017-12-29 2020-11-20 北京珠穆朗玛移动通信有限公司 Information display method based on double screens, mobile terminal and storage medium
CN108513065A (en) * 2018-03-23 2018-09-07 云谷(固安)科技有限公司 A kind of method and gesture note remote control of the straighforward operation of gesture note

Also Published As

Publication number Publication date
CN111625052A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN111625052B (en) Control method of foldable electronic equipment and related equipment
EP3846427B1 (en) Control method and electronic device
KR102169952B1 (en) Wearable device and method of controlling thereof
CN107957839A (en) A kind of display control method and mobile terminal
WO2020199984A1 (en) Camera module, and mobile terminal and control method therefor
CN107402709A (en) A kind of multi-screen display method, terminal and computer-readable recording medium
JP2021525430A (en) Display control method and terminal
CN108377279A (en) A kind of mobile terminal and control method
WO2019174459A1 (en) Application processing method and mobile terminal
KR20040083788A (en) Portable communication terminal capable of operating program using a gesture command and program operating method using thereof
CN106878554B (en) A kind of theft preventing method of mobile terminal, device and mobile terminal
WO2020238445A1 (en) Screen recording method and terminal
WO2021143687A1 (en) Image display method and electronic device
WO2022227984A1 (en) Display control method, electronic device, and computer storage medium
WO2020098535A1 (en) Folding terminal device and method for controlling housing to open and close
CN108900695A (en) A kind of display processing method and terminal device
CN109067949A (en) A kind of electronic equipment and its control method
CN108279842A (en) A kind of function controlling method, function controlling device and terminal device
KR101639392B1 (en) Mobile terminal
CN111597592B (en) Input method, input device and mobile terminal
WO2023222130A1 (en) Display method and electronic device
WO2020108262A1 (en) Terminal and control method therefor
WO2023020012A1 (en) Data communication method between devices, device, storage medium, and program product
CN217271405U (en) Rotating shaft mechanism and mobile terminal
CN107734370A (en) Information interacting method, information interactive device and electronic equipment

Legal Events

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