CN111625052A - 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
CN111625052A
CN111625052A CN201910239290.8A CN201910239290A CN111625052A CN 111625052 A CN111625052 A CN 111625052A CN 201910239290 A CN201910239290 A CN 201910239290A CN 111625052 A CN111625052 A CN 111625052A
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.)
Granted
Application number
CN201910239290.8A
Other languages
Chinese (zh)
Other versions
CN111625052B (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)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

一种可折叠式电子设备的控制方法和相关设备。该方法包括:检测到针对第一电子设备上第一开关的第一操作;响应于所述第一操作,所述传感器模块检测所述第一电子设备的旋转角度,所述通信模块向所述可折叠式电子设备发送第一指令,所述第一指令包括用于指示角度信息的第一指示信息和第二指示信息,所述角度信息对应所述传感器模块检测的所述第一电子设备的旋转角度;所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。用户可以通过旋转第一电子设备,实现展开或折叠可折叠式电子设备的目的,方便用户操作可折叠式电子设备,提高人机交互体验。

Figure 201910239290

A control method of a foldable electronic device and related devices. The method includes: detecting a first operation for 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 message to the first electronic device. The foldable electronic device sends a first instruction, where the first instruction includes first instruction information and second instruction information for indicating angle information, and the angle information corresponds to the angle of the first electronic device detected by the sensor module. the rotation angle; the second indication information is used to instruct to unfold or fold the foldable electronic device. The user can realize the purpose of unfolding or folding the foldable electronic device by rotating the first electronic device, which is convenient for the user to operate the foldable electronic device and improves the human-computer interaction experience.

Figure 201910239290

Description

一种可折叠式电子设备的控制方法和相关设备A control method of a foldable electronic device and related equipment

本申请要求于2019年2月28日提交中国专利局、申请号201910150396.0、申请名称为“一种电子设备的控制方法和相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on February 28, 2019, with the application number 201910150396.0, and the application title is "A control method for electronic equipment and related equipment", the entire contents of which are incorporated herein by reference Applying.

技术领域technical field

本申请涉及终端技术领域,尤其涉及一种可折叠式电子设备的控制方法和相关设备。The present application relates to the field of terminal technology, and in particular, to a control method of a foldable electronic device and related devices.

背景技术Background technique

目前各种常见的电子产品,无论是手机、平板电脑、电视机等,均存在一个趋势:随着产品的更新换代,其屏幕也变得越来越大,这是因为更大的屏幕能给使用者提供更丰富的信息,提高人机交流的效率,并且能够带来更好的使用体验。At present, various common electronic products, whether they are mobile phones, tablet computers, TV sets, etc., all have a trend: with the upgrading of products, their screens are also becoming larger and larger, because larger screens can give Users can provide richer information, improve the efficiency of human-machine communication, and can bring a better user experience.

然而,对于一些手机、pad之类的移动式电子产品,若其屏幕太大,则会严重影响其便携性能。为了方便携带,可折叠式电子产品应用而生。以手机为例,目前的大屏幕手机可以被折叠,折叠后的手机便于携带。However, for some mobile electronic products such as mobile phones and pads, if the screen is too large, its portability will be seriously affected. For the convenience of carrying, foldable electronic products were born. Taking a mobile phone as an example, the current large-screen mobile phone can be folded, and the folded mobile phone is easy to carry.

但是,目前的可折叠式手机的折叠和展开需要用户手动操作,操作方式单一。However, the folding and unfolding of the current foldable mobile phone requires manual operation by the user, and the operation mode is single.

发明内容SUMMARY OF THE INVENTION

本申请提供一种可折叠式电子设备的控制方法和相关设备,该方法能够提供了一种可折叠式电子设备的操作方式,更加方便用户的操作,提高人机交互体验。The present application provides a control method of a foldable electronic device and related devices, and the method can provide an operation mode of the foldable electronic device, which is more convenient for users to operate, and improves the human-computer interaction experience.

第一方面,本申请实施例提供一种可折叠式电子设备的控制方法。该方法可以由第一电子设备执行,所述第一电子设备包括手写笔、智能手环、智能手表等。所述第一电子设备与可折叠式电子设备通信,所述第一电子设备上设置第一开关,所述第一电子设备包括传感器模块和通信模块,所述方法包括:检测到针对第一电子设备上第一开关的第一操作;响应于所述第一操作,所述传感器模块检测所述第一电子设备的旋转角度,所述通信模块向所述可折叠式电子设备发送第一指令,所述第一指令包括用于指示角度信息的第一指示信息和第二指示信息,所述角度信息对应所述传感器模块检测的所述第一电子设备的旋转角度;所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。In a first aspect, an embodiment of the present application provides a control method for a foldable electronic device. The method may be performed by a first electronic device including a stylus, a smart bracelet, a smart watch, and the like. The first electronic device communicates with a foldable electronic device, a first switch is provided on the first electronic device, the first electronic device includes a sensor module and a communication module, and the method includes: a first operation of a first switch on the device; in response to the first operation, the sensor module detects the rotation angle of the first electronic device, and the communication module sends a first instruction to the foldable electronic device, The first instruction includes first indication information and second indication information for indicating angle information, the angle information corresponding to the rotation angle of the first electronic device detected by the sensor module; the second indication information is to instruct to unfold or fold the foldable electronic device.

在本申请实施例中,用户可以通过第一电子设备控制可折叠式电子设备的展开角度。具体而言,第一电子设备检测到自身旋转角度之后,向可折叠式电子设备发送第一指令,该第一指令中携带角度信息,可折叠式电子设备基于该角度信息展开或折叠一定的角度。这样的话,用户可以通过旋转第一电子设备,实现展开或折叠可折叠式电子设备的目的,方便用户操作可折叠式电子设备,提高人机交互体验。In this embodiment of the present application, the user can control the unfolding angle of the foldable electronic device through the first electronic device. Specifically, after the first electronic device detects its own rotation angle, it sends a first command to the foldable electronic device. The first command carries angle information, and the foldable electronic device unfolds or folds a certain angle based on the angle information. . In this way, the user can realize the purpose of unfolding or folding the foldable electronic device by rotating the first electronic device, which facilitates the user to operate the foldable electronic device and improves the human-computer interaction experience.

在一种可能的设计中,所述第一电子设备的旋转角度等于所述第一指令中第一指示信息所指示的角度信息。In a 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 a possible design, the first electronic device receives a second instruction sent by the foldable electronic device, where the second instruction is used to instruct the foldable electronic device to expand or fold successfully or fail; in response to In the second instruction, the first electronic device outputs first prompt information for prompting the foldable electronic device to fail to respond.

在本申请实施例中,第一电子设备向可折叠式电子设备发送第一指令后,可折叠式电子设备可能无法成功的展开或折叠对应的角度,这样的话,可折叠式设备可以向第一电子设备发送第二指令,第一电子设备接收到第二指令后可以输出提示信息,以提示用户可折叠式电子设备展开或折叠失败,方便用户操作,有助于提升用户体验。In this embodiment of the present application, after the first electronic device sends the first instruction to the foldable electronic device, the foldable electronic device may not be able to successfully unfold or fold the corresponding angle. The electronic device sends the second instruction, and after receiving the second instruction, the first electronic device can output prompt information to prompt the user that the foldable electronic device fails to unfold or fold, which is convenient for the user to operate and helps to improve the user experience.

在一种可能的设计中,第一电子设备输出第二提示信息,所述第二提示信息用于提示用户操作所述第一电子设备以控制所述可折叠式电子设备;所述第二提示信息包括语音信息、文字信息、提示灯闪烁、震动中的一种或多种。In a possible design, the first electronic device outputs second prompt information, the second prompt information is used to prompt the user to operate the first electronic device to control the foldable electronic device; the second prompt information The information includes one or more of voice information, text information, prompt light flashing, and vibration.

在本申请实施例中,第一电子设备可以输出提示信息,以提示用户操作第一电子设备以控制可折叠式电子设备。比如,提示信息可以是操作第一电子设备以控制可折叠式电子设备的流程步骤等,提示信息有多种,比如语音信息、文字信息、提示灯闪烁、震动等,本申请实施例不作限定。这样的话,第一电子设备可以在一定程度上指导用户操作第一电子设备来控制可折叠式电子设备,方便用户操作,有助于提升用户体验。In this embodiment of the present application, the first electronic device may output prompt information to prompt the user to operate the first electronic device to control the foldable electronic device. For example, the prompt information may be the process steps of operating the first electronic device to control the foldable electronic device. In this way, the first electronic device can guide the user to operate the first electronic device to control the foldable electronic device to a certain extent, which is convenient for the user to operate and helps to improve the user experience.

在一种可能的设计中,所述第一电子设备上设置指纹传感器,所述方法还包括:通过所述指纹传感器采集用户的指纹;通过所述通信模块将所述指纹发送给所述可折叠式电子设备,所述指纹用于解锁所述可折叠式电子设备。In a possible design, a fingerprint sensor is provided on the first electronic device, and the method further includes: collecting a user's fingerprint through the fingerprint sensor; sending the fingerprint to the foldable through the communication module the foldable electronic device, and the fingerprint is used to unlock the foldable electronic device.

在本申请实施例中,第一电子设备的指纹传感器采集到指纹之后,可以将指纹发送给可折叠式电子设备,以解锁可折叠式电子设备,这样的话,用户无需手持可折叠式电子设备,而且通过第一电子设备控制可折叠式电子设备解锁,方便用户操作可折叠式电子设备,提高人机交互体验。In the embodiment of the present application, after the fingerprint sensor of the first electronic device collects the fingerprint, the fingerprint can be sent to the foldable electronic device to unlock the foldable electronic device. In this case, the user does not need to hold the foldable electronic device, In addition, the foldable electronic device is controlled to be unlocked by the first electronic device, which facilitates the user to operate the foldable electronic device and improves the human-computer interaction experience.

在一种可能的设计中,所述第一电子设备上设置第二开关,所述方法还包括:当检测到所述第二开关被触发时,输出第三提示信息,以提示用于停止控制所述可折叠式电子设备。In a possible design, a second switch is provided on the first electronic device, and the method further includes: when it is detected that the second switch is triggered, outputting third prompt information to prompt for stopping the control The foldable electronic device.

在本申请实施例中,第一电子设备的第二开关可以用于停止控制可折叠式电子设备,方便用户操作。In this embodiment of the present application, the second switch of the first electronic device may be used to stop controlling the foldable electronic device, which is convenient for the user to operate.

在一种可能的设计中,所述第一电子设备为手写笔。In a possible design, the first electronic device is a stylus.

应理解,手写笔仅是第一电子设备的举例,还可以是其它设备,比如智能手环,智能手表等,本申请实施例不作限定。It should be understood that the stylus is only an example of the first electronic device, and may also be other devices, such as a smart bracelet, a smart watch, and the like, which are not limited in the embodiments of the present application.

在一种可能的设计中,所述第一指令包括四个字段,第一字段用于指示接入码、第二字段用于指示头字段,第三字段用于指示所述第一指示信息,第三字段用于指示所述第二指示信息。In a possible design, the first instruction includes four fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the first indication information, The third field is used to indicate the second indication information.

在一种可能的设计中,所述第一指令包括六个字段,第一字段用于指示接入码、第二字段用于指示头字段,第三字段用于指示进入/退出屏幕控制状态,第四字段用于指示第一电子设备旋转后与水平面的第一夹角,第五字段用于指示展开/折叠,第六字段用于指示第一电子设备在旋转之后与水平面的第二夹角,所述第一夹角和所述第二夹角的差值的绝对值为旋转角度;所述屏幕控制状态用于指示准备展开或折叠可折叠式电子设备的准备状态。In a possible design, the first instruction includes six fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the entry/exit screen control state, The fourth field is used to indicate the first angle between the first electronic device and the horizontal plane after rotation, the fifth field is used to indicate expansion/folding, and the sixth field is used to indicate the second angle between the first electronic device and the horizontal plane after rotation , the absolute value of the difference between the first included angle and the second included angle is the rotation angle; the screen control state is used to indicate the ready state of preparing to unfold or fold the foldable electronic device.

在一种可能的设计中,第二指令包括两个字段,第一字段用于指示接入码,第二字段用于指示可折叠式电子设备响应成功或失败。In a possible design, the second instruction includes two fields, the first field is used to indicate the access code, and the second field is used to indicate that the foldable electronic device responds successfully or fails.

在一种可能的设计中,第一电子设备生成第一指令失败时,或者第一电子设备向可折叠式电子设备发送第一指令失败时,输出提示信息,以提示用户发送失败。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, output prompt information to prompt the user that the sending fails.

在本申请实施例中,用户旋转第一电子设备之后,第一电子设备可能并未成功的将第一指令发送给可折叠式电子设备,比如第一电子设备生成第一指令失败,或者发送失败(信号质量较差,通信中断等),可以生成提示信息,以提示用户发送失败。In this embodiment of the present application, 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 (Poor signal quality, communication interruption, etc.), a prompt message can be generated to remind the user that the transmission failed.

第二方面,本申请实施例提供一种可折叠式电子设备的控制方法,该方法可以由可折叠式电子设备执行,比如可折叠式手机、可折叠式ipad、笔记本电脑等,所述可折叠式电子设备与第一电子设备通信,所述可折叠式电子设备中包括第一本体、第二本体和连接装置,所述连接装置用于控制所述可折叠式电子设备的展开角度,所述展开角度为第一本体和所述第二本体之间的夹角;所述方法包括:接收所述第一电子设备发送的第一指令,所述第一指令包括第一指示信息和第二指示信息,所述第一指示信息用于指示第一角度信息,所述第二指示信息用于指示展开或折叠所述可折叠式电子设备;根据所述第二指示信息通过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度,所述第二角度是基于所述第一角度信息确定的角度。In a second aspect, the embodiments of the present application provide a control method for a foldable electronic device, the method can be executed by a foldable electronic device, such as a foldable mobile phone, a foldable ipad, a notebook computer, etc. The foldable electronic device communicates with the first electronic device, the foldable electronic device includes a first body, a second body and a connecting device, the connecting device is used to control the unfolding angle of the foldable electronic device, the The deployment angle is the angle between the first body and the second body; the method includes: receiving a first instruction sent by the first electronic device, where the first instruction includes first indication information and a second indication information, the first indication information is used to indicate first angle information, and the second indication information is used to instruct unfolding or folding of the foldable electronic device; according to the second indication information, the connecting device is used to control the The foldable electronic device unfolds or folds a second angle, where the second angle is an angle determined based on the first angle information.

在本申请实施例中,用户可以通过第一电子设备控制可折叠式电子设备的展开角度。具体而言,可折叠式电子设备接收到第一电子设备发送的第一指令,该第一指令中携带角度信息,可折叠式电子设备基于该角度信息展开或折叠一定的角度。这样的话,用户可以通过旋转第一电子设备,实现展开或折叠可折叠式电子设备的目的,方便用户操作可折叠式电子设备,提高人机交互体验。In this embodiment of the present application, the 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 unfolds or folds a certain angle based on the angle information. In this way, the user can realize the purpose of unfolding or folding the foldable electronic device by rotating the first electronic device, which facilitates the user to operate the foldable electronic device and improves the human-computer interaction experience.

在一种可能的设计中,所述可折叠式电子设备包括属于所述第一本体的第一显示屏和属于第二本体的第二显示屏;所述方法还包括:在接收所述第一电子设备发送的第一指令之前,所述第一显示屏和所述第二显示屏均熄灭,在接收所述第一指令之后,当所述展开角度大于第一预设角度时,点亮所述第一显示屏;当所述展开角度大于第二预设角度时,点亮所述第一显示屏所述和第二显示屏;其中,所述第二预设角度大于所述第一预设角度。In a possible design, the foldable electronic device includes a first display screen belonging to the first body and a second display screen belonging to the second body; the method further includes: after receiving the first display screen Before the first instruction sent by the electronic device, both the first display screen and the second display screen are turned off. After receiving the first instruction, when the deployment angle is greater than the first preset angle, the display screen is turned on. the first display screen; when the unfolding angle is greater than the second preset angle, light up the first display screen and the second display screen; wherein the second preset angle is greater than the first preset angle Set the angle.

在本申请实施例中,用户可以通过旋转第一电子设备,实现改变可折叠式电子设备的展开角度的目的,当展开角度大于第一预设角度时,点亮第一显示屏,大于第二预设角度时,点亮第一显示屏和第二显示屏,方便用户操作可折叠式电子设备,提高人机交互体验。In this embodiment of the present application, the user can rotate the first electronic device to achieve the purpose of changing the unfolding angle of the foldable electronic device. When the angle is preset, the first display screen and the second display screen are lit, which facilitates the user to operate the foldable electronic device and improves the human-computer interaction experience.

在一种可能的设计中,所述第一显示屏和所述第二显示屏分别显示相同的界面,或者所述第一显示屏和所述第二显示屏作为一个显示屏,各显示同一个显示界面的一部分。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 each display the same interface Display part of the interface.

在一种可能的设计中,所述可折叠式电子设备处于锁屏状态,所述方法还包括:接收所述第一电子设备发送的指纹;若所述指纹验证成功,所述可折叠式电子设备解锁。In a possible design, the foldable electronic device is in a locked screen state, and the method further includes: receiving a fingerprint sent by the first electronic device; if the fingerprint verification is successful, the foldable electronic device Device unlocked.

在本申请实施例中,可折叠式电子设备可以接收第一电子设备发送的指纹,以解锁可折叠式电子设备,这样的话,用户无需手持可折叠式电子设备,而且通过第一电子设备控制可折叠式电子设备解锁,方便用户操作可折叠式电子设备,提高人机交互体验。In this embodiment of the present application, the foldable electronic device can receive a fingerprint sent by the first electronic device to unlock the foldable electronic device. In this way, the user does not need to hold the foldable electronic device, and controls the foldable electronic device through the first electronic device. The foldable electronic device is unlocked, which facilitates the user to operate the foldable electronic device and improves the human-computer interaction experience.

在一种可能的设计中,所述第二角度等于所述第一角度,或者所述第二角度是基于如下公式计算的:In a possible design, the second angle is equal to the first angle, or the second angle is calculated based on the following formula:

Figure BDA0002009162160000031
Figure BDA0002009162160000031

其中,v是所述第二角度,v0是预设角度,E为所述第一角度。Wherein, v is the second angle, v0 is a preset angle, and E is the first angle.

在本申请实施例中,第一角度可以等于第二角度,或者第一角度和第二角度满足上述公式。In this 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 also outputs prompt information when the connection device fails to control the foldable electronic device to unfold or fold to the second angle, and the prompt information is used to prompt The foldable electronic device fails to unfold or fold.

在本申请实施例中,可折叠式电子设备展开或者折叠失败时,可以提示用户展开或者折叠失败,方便用户操作。In the embodiment of the present application, when the foldable electronic device fails to unfold or fold, the user may be prompted that the unfolding or folding fails, which is convenient for the user to operate.

在一种可能的设计中,所述可折叠式电子设备向所述第一电子设备发送第二指令,所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败。In a possible design, the foldable electronic device sends a second instruction to the first electronic device, where the second instruction is used to instruct the foldable electronic device to succeed or fail in unfolding or folding.

在一种可能的设计中,所述第一角度信息与所述第一电子设备的旋转角度对应。In a possible design, the first angle information corresponds to a rotation angle of the first electronic device.

在一种可能的设计中,所述第一角度信息与所述第一电子设备的旋转角度相等。In a possible design, the first angle information is equal to the rotation angle of the first electronic device.

在一种可能的设计中,所述第一指令包括四个字段,第一字段用于指示接入码、第二字段用于指示头字段,第三字段用于指示所述第一指示信息,第三字段用于指示所述第二指示信息。In a possible design, the first instruction includes four fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the first indication information, The third field is used to indicate the second indication information.

在一种可能的设计中,所述第一指令包括六个字段,第一字段用于指示接入码、第二字段用于指示头字段,第三字段用于指示进入/退出屏幕控制状态,第四字段用于指示第一电子设备旋转后与水平面的第一夹角,第五字段用于指示展开/折叠,第六字段用于指示第一电子设备在旋转之后与水平面的第二夹角,所述第一夹角和所述第二夹角的差值的绝对值为旋转角度;所述屏幕控制状态用于指示准备展开或折叠可折叠式电子设备的准备状态。In a possible design, the first instruction includes six fields, the first field is used to indicate the access code, the second field is used to indicate the header field, and the third field is used to indicate the entry/exit screen control state, The fourth field is used to indicate the first angle between the first electronic device and the horizontal plane after rotation, the fifth field is used to indicate expansion/folding, and the sixth field is used to indicate the second angle between the first electronic device and the horizontal plane after rotation , the absolute value of the difference between the first included angle and the second included angle is the rotation angle; the screen control state is used to indicate the ready state of preparing to unfold or fold the foldable electronic device.

在一种可能的设计中,第二指令包括两个字段,第一字段用于指示接入码,第二字段用于指示可折叠式电子设备响应成功或失败。In a possible design, the second instruction includes two fields, the first field is used to indicate the access code, and the second field is used to indicate that the foldable electronic device responds successfully or fails.

第三方面,本申请实施例提供一种第一电子设备,所述第一电子设备上设置第一开关,所述第一电子设备包括传感器模块和通信模块;所述第一电子设备与可折叠式电子设备通信,所述第一开关,用于接收第一操作;所述传感器模块,用于检测所述第一电子设备的旋转角度;所述通信模块,用于向所述可折叠式电子设备发送第一指令,所述第一指令包括用于指示角度信息的第一指示信息和第二指示信息,所述角度信息对应所述传感器模块检测的所述第一电子设备的旋转角度;所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。In a third aspect, an embodiment of the present application provides a first electronic device, a first switch is provided on the first electronic device, the first electronic device includes a sensor module and a communication module; the first electronic device is connected to a foldable The first switch is used for receiving a first operation; the sensor module is used for detecting the rotation angle of the first electronic device; the communication module is used for sending the foldable electronic device to the foldable electronic device. The device sends a first instruction, where the first instruction includes first indication information and second indication information for indicating angle information, the angle information corresponding to the rotation angle of the first electronic device detected by the sensor module; the The second indication information is used to instruct to unfold or fold the foldable electronic device.

在一种可能的设计中,所述通信模块还用于接收所述可折叠式电子设备发送的第二指令,所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败;所述第一电子设备还包括输出设备,所述输出设备用于输出第一提示信息,用于提示所述可折叠式电子设备响应失败。In a 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 success or failure of unfolding or folding of the foldable electronic device ; the first electronic device further includes an output device, the output device is used for outputting first prompt information for prompting the foldable electronic device to fail to respond.

在一种可能的设计中,所述第一电子设备的输出设备用于输出第二提示信息,所述第二提示信息用于提示用户操作所述第一电子设备以控制所述可折叠式电子设备;所述第二提示信息包括语音信息、文字信息、提示灯闪烁、震动中的一种或多种。In a possible design, the output device of the first electronic device is used to output second prompt information, and the second prompt information is used to prompt the user to operate the first electronic device to control the foldable electronic device equipment; the second prompt information includes one or more of voice information, text information, prompt light flashing, and vibration.

在一种可能的设计中,所述第一电子设备上设置指纹传感器,所述指纹传感器用于采集用户的指纹;所述通信模块还用于将所述指纹发送给所述可折叠式电子设备,所述指纹用于解锁所述可折叠式电子设备。In a possible design, a fingerprint sensor is provided on the first electronic device, and the fingerprint sensor is used to collect the user's fingerprint; the communication module is also used to send the fingerprint to the foldable electronic device , the fingerprint is used to unlock the foldable electronic device.

在一种可能的设计中,所述第一电子设备上设置第二开关,所述第二开关用于检测第二操作;所述第一电子设备的输出设备,用于输出第三提示信息,以提示用于停止控制所述可折叠式电子设备。In a possible design, a second switch is provided on the first electronic device, and the second switch is used to detect the second operation; the output device of the first electronic device is used to output the third prompt information, A prompt is used to stop controlling the foldable electronic device.

在一种可能的设计中,所述第一电子设备为手写笔。In a possible design, the first electronic device is a stylus.

第四方面,本申请实施例提供一种可折叠式电子设备,所述可折叠式电子设备包括:第一本体和第二本体;连接装置,用于控制所述可折叠式电子设备的展开角度,所述展开角度为第一本体和所述第二本体之间的夹角;通信模块,用于接收第一电子设备发送的第一指令,所述第一指令包括第一指示信息和第二指示信息,所述第一指示信息用于指示第一角度信息,所述第二指示信息用于指示展开或折叠所述可折叠式电子设备;处理器,用于根据所述第二指示信息控制所述连接装置展开或折叠所述可折叠式电子设备第二角度,所述第二角度是基于所述第一角度信息确定的角度。In a fourth aspect, an embodiment of the present application provides a foldable electronic device, the foldable electronic device includes: a first body and a second body; a connecting device for controlling an unfolding angle of the foldable electronic device , the deployment angle is the angle between the first body and the second body; the communication module is used to receive the first instruction sent by the first electronic device, and the first instruction includes the first instruction information and the second indication information, the first indication information is used to indicate the first angle information, and the second indication information is used to instruct to unfold or fold the foldable electronic device; the processor is used to control the foldable electronic device according to the second indication information The connecting device unfolds or folds the foldable electronic device at a second angle, where the second angle is an angle determined based on the first angle information.

在一种可能的设计中,所述可折叠式电子设备包括属于所述第一本体的第一显示屏和属于第二本体的第二显示屏;所述处理器,还用于在所述可折叠式电子设备的展开角度大于第一预设角度时,点亮所述第一显示屏;在所述展开角度大于第二预设角度时,控制所述第一显示屏所述和第二显示屏点亮;其中,所述第二预设角度大于所述第一预设角度。In a possible design, the foldable electronic device comprises a first display screen belonging to the first body and a second display screen belonging to the second body; the processor is further configured to When the unfolding angle of the foldable electronic device is greater than the first preset angle, the first display screen is lit; when the unfolding angle is greater than the second preset angle, the first display screen and the second display screen are controlled to be displayed. The screen lights up; 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 each display the same interface Display part of the interface.

在一种可能的设计中,所述可折叠式电子设备处于锁屏状态,所述通信模块还用于接收所述第一电子设备发送的指纹;所述处理器还用于在所述指纹验证成功时,控制所述可折叠式电子设备解锁。In a possible design, the foldable electronic device is in a locked screen state, and the communication module is further configured to receive a fingerprint sent by the first electronic device; the processor is further configured to verify the fingerprint When successful, the foldable electronic device is controlled to be unlocked.

在一种可能的设计中,所述第二角度等于所述第一角度,或者所述第二角度是基于如下公式计算的:In a possible design, the second angle is equal to the first angle, or the second angle is calculated based on the following formula:

Figure BDA0002009162160000051
Figure BDA0002009162160000051

其中,v是所述第二角度,v0是预设角度,E为所述第一角度。Wherein, v is the second angle, v0 is a preset angle, and E is the first angle.

在一种可能的设计中,所述第一电子设备的输出设备用于:当通过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度失败时,输出提示信息,所述提示信息用于提示所述可折叠式电子设备展开或者折叠失败。In a possible design, the output device of the first electronic device is used for: when the connection device fails to control the foldable electronic device to unfold or fold to a second angle, output prompt information, the prompt The information is used to prompt that the foldable electronic device fails to be unfolded or folded.

在一种可能的设计中,所述通信模块还用于:向所述第一电子设备发出第二指令,所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败。In a possible design, the communication module is further configured to: issue a second instruction to the first electronic device, where the second instruction is used to instruct the foldable electronic device to succeed or fail in unfolding or folding.

在一种可能的设计中,所述第一角度信息与所述第一电子设备的旋转角度对应。In a possible design, the first angle information corresponds to a rotation angle of the first electronic device.

第五方面,本申请实施例提供一种第一电子设备,包括第一开关、传感器模块和通信模块;还包括一个或多个处理器;存储器;一个或多个应用程序;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述第一电子设备执行时,使得所述第一电子设备执行第一方面或上述第一方面的任意一种可能的设计的方法。In a fifth aspect, embodiments of the present application provide a first electronic device, including a first switch, a sensor module, and a communication module; further including one or more processors; a memory; one or more application programs; one or more programs , wherein the one or more programs are stored in the memory, the one or more programs comprising instructions that, when executed by the first electronic device, cause the first electronic device to execute the first One aspect or any one possible design method of the above-mentioned first aspect.

第六方面,本申请实施例提供一种可折叠式电子设备,包括第一本体、第二本体、连接装置和通信模块;还包括一个或多个处理器;存储器;一个或多个应用程序;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述可折叠式电子设备执行时,使得所述可折叠式电子设备执行第二方面或上述第二方面的任意一种可能的设计的方法。In a sixth aspect, embodiments of the present application provide a foldable electronic device, including a first body, a second body, a connection device, and a communication module; further including one or more processors; a memory; and 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 including instructions that, when executed by the foldable electronic device, cause the A foldable electronic device implements the second aspect or any one possible design method of the above-mentioned second aspect.

第七方面,还提供了一种第一电子设备,所述第一电子设备包括执行第一方面或者第一方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。In a seventh aspect, a first electronic device is also provided, and the first electronic device includes modules/units for executing the first aspect or any possible design method of the first aspect; these modules/units can be implemented by hardware It can also be implemented by hardware executing corresponding software.

第八方面,还提供了一种可折叠式电子设备,所述可折叠式电子设备包括执行第二方面或者第二方面的任意一种可能的设计的方法的模块/单元;这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。In an eighth aspect, a foldable electronic device is also provided, the foldable electronic device comprising modules/units for performing the second aspect or any possible design method of the second aspect; these modules/units may be It can be realized by hardware, and it can also be realized by executing corresponding software by hardware.

第九方面,本申请实施例提供一种计算机存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在第一电子设备上运行时,使得所述第一电子设备执行第一方面或上述第一方面的任意一种可能的设计的方法。In a ninth aspect, an embodiment of the present application provides a computer storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on a first electronic device, causes the first electronic device to execute the first aspect or Any one of the possible design methods of the first aspect above.

第十方面,本申请实施例提供一种计算机存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在可折叠式电子设备上运行时,使得所述可折叠式电子设备执行第二方面或上述第二方面的任意一种可能的设计的方法。In a tenth aspect, an embodiment of the present application provides a computer storage medium, where the computer-readable storage medium includes a computer program, when the computer program runs on a foldable electronic device, the foldable electronic device causes the foldable electronic device to execute a second aspect or any one possible design method of the second aspect above.

第十一方面,还提供一种包含程序产品,当所述程序产品在第一电子设备上运行时,使得所述第一电子设备执行第一方面或上述第一方面的任意一种可能的设计的方法。In an eleventh aspect, there is also provided a program product that, when the program product runs on a first electronic device, enables the first electronic device to execute the first aspect or any possible design of the first aspect above Methods.

第十二方面,还提供一种程序产品,当所述程序产品在可折叠式电子设备上运行时,使得所述可折叠式电子设备执行第二方面或上述第二方面的任意一种可能的设计的方法。A twelfth aspect further provides a program product that, when the program product is run on a foldable electronic device, enables the foldable electronic device to perform the second aspect or any one of the above-mentioned second aspects. method of design.

附图说明Description of drawings

图1为本申请实施例提供的一种可折叠式手机的结构示意图;1 is a schematic structural diagram of a foldable mobile phone according to an embodiment of the present application;

图2为本申请一实施例提供的一种应用场景的示意图;FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present application;

图3为本申请一实施例提供的手机100的结构示意图;FIG. 3 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the present application;

图4为本申请一实施例提供的手写笔的结构示意图;4 is a schematic structural diagram of a stylus provided by an embodiment of the present application;

图5为本申请一实施例提供的手机100的用户图形界面的示意图;FIG. 5 is a schematic diagram of a user graphical interface of a mobile phone 100 according to an embodiment of the present application;

图6为本申请一实施例提供的手写笔向手机100发送数据时采用的约定的通信方式中参数取值的含义的示意图;FIG. 6 is a schematic diagram of the meaning of parameter values in the agreed communication mode adopted when the stylus pen sends data to the mobile phone 100 according to an embodiment of the present application;

图7为本申请一实施例提供的约定的通信方式中数据传输格式的示意图;7 is a schematic diagram of a data transmission format in an agreed communication method provided by an embodiment of the present application;

图8为本申请一实施例提供的手写笔向手机100发送的数据的示意图;8 is a schematic diagram of data sent by a stylus to a mobile phone 100 according to an embodiment of the present application;

图9为本申请一实施例提供的手机100向手写笔发送数据时采用的约定的通信方式中的参数的含义的示意图;9 is a schematic diagram of the meaning of the parameters in the agreed communication mode adopted when the mobile phone 100 sends data to the stylus pen according to an embodiment of the present application;

图10为本申请一实施例提供的手机100向手写笔发送数据的示意图;FIG. 10 is a schematic diagram of a mobile phone 100 sending data to a stylus according to an embodiment of the application;

图11为本申请一实施例提供的可折叠式电子设备的控制方法的流程示意图;11 is a schematic flowchart of a control method for a foldable electronic device provided by an embodiment of the present application;

图12为本申请一实施例提供的第一指令的示意图;12 is a schematic diagram of a first instruction provided by an embodiment of the present application;

图13为本申请一实施例提供的第二指令的示意图;13 is a schematic diagram of a second instruction provided by an embodiment of the present application;

图14为本申请一实施例提供的第三指令的示意图;14 is a schematic diagram of a third instruction provided by an embodiment of the present application;

图15为本申请一实施例提供的通过手写笔控制手机100打开的流程示意图;FIG. 15 is a schematic flowchart of controlling the opening of the mobile phone 100 through a stylus according to an embodiment of the application;

图16为本申请一实施例提供的通过手写笔控制手机100闭合的流程示意图;FIG. 16 is a schematic flowchart of controlling the closing of the mobile phone 100 through a stylus according to an embodiment of the application;

图17为本申请一实施例提供的手机100的结构示意图;FIG. 17 is a schematic structural diagram of a mobile phone 100 according to an embodiment of the application;

图18为本申请一实施例提供的手机100中转轴系统的结构示意图;FIG. 18 is a schematic structural diagram of a hinge system of a mobile phone 100 according to an embodiment of the application;

图19为本申请一实施例提供的第一转轴系统和第二转轴系统的示意图;19 is a schematic diagram of a first rotating shaft system and a second rotating shaft system provided by an embodiment of the application;

图20为本申请一实施例提供的展开角度和转轴系统中每个开关的状态之间的对应关系的示意图;20 is a schematic diagram of the correspondence between the deployment angle and the state of each switch in the rotating shaft system provided by an embodiment of the application;

图21为本申请一实施例提供的手机100的软件架构的示意图;FIG. 21 is a schematic diagram of a software architecture of a mobile phone 100 according to an embodiment of the application;

图22为本申请一实施例提供的手机100的展开角度和点亮模式、显示模式之间的对应关系的示意图;FIG. 22 is a schematic diagram of the correspondence between the deployment angle, the lighting mode, and the display mode of the mobile phone 100 according to an embodiment of the application;

图23为本申请一实施例提供的手机100打开一个角度时,显示屏的显示界面的示意图;23 is a schematic diagram of a display interface of a display screen when the mobile phone 100 according to an embodiment of the present application is opened at an angle;

图24为本申请一实施例提供的手机100打开另一个角度时,显示屏的显示界面的示意图。FIG. 24 is a schematic diagram of a display interface of a display screen when the mobile phone 100 according to an embodiment of the present application is opened to another angle.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.

以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some terms in the embodiments of the present application will be explained, so as to facilitate the understanding of those skilled in the art.

需要说明的是,本文中涉及到两个电子设备,一个是可折叠式设备,另一个是用于控制可折叠式设备的电子设备,为了方便区分,下文中将可折叠式电子设备称为主设备,将另一个用于控制可折叠式设备的电子设备称为辅助设备,当然还可以被称为其它名称比如第一电子设备或者第二电子设备等,本申请实施例对此不作限定。It should be noted that this article involves two electronic devices, one is a foldable device, and the other is an electronic device used to control the foldable device. For the convenience of distinction, the foldable electronic device is referred to as the main For the device, another electronic device for controlling the foldable device is called an auxiliary device, and of course, it may also be called other names such as a first electronic device or a second electronic device, etc., which is not limited in this embodiment of the present application.

本申请实施例涉及的主设备,是可折叠式电子设备。比如,可折叠式手机、可折叠式pad、笔记本电脑等等。以可折叠式手机为例,请参见图1所示,为本申请实施例提供的可折叠手机的结构示意图。如图1所示,可折叠式手机包括第一本体和第二本体以及连接装置。连接装置可以带动第一本体或者第二本体旋转,以改变第一本体和第二本体之间的夹角

Figure BDA0002009162160000071
关于连接装置的具体结构将在后文介绍。The main device involved in the embodiments of the present application is a foldable electronic device. For example, foldable mobile phones, foldable pads, laptops, etc. Taking a foldable mobile phone as an example, please refer to FIG. 1 , which is a schematic structural diagram of a foldable mobile phone according to an embodiment of the present application. As shown in FIG. 1 , the foldable mobile phone includes a first body, a second body and a connecting device. The connecting device can drive the first body or the second body to rotate to change the angle between the first body and the second body
Figure BDA0002009162160000071
The specific structure of the connection device will be described later.

示例性的,图1所示的可折叠式手机上可以只设置一张屏幕,即第一本体和第二本体上覆盖一整块屏(该屏可以为柔性屏),当第一本体或者第二本体发生旋转时,该屏幕被折叠。当然,图1所示的可折叠式手机上也可以设置两张独立的屏幕,比如第一本体上设置一个屏幕,第二本体上设置一个屏幕,这种情况下,两张屏幕可以不是柔性屏。当然,还可以是只在一个本体上设置一个屏幕,另一个本体上不设置屏幕,而是按键等,本申请实施例对此不限定。Exemplarily, only one screen may be set on the foldable mobile phone shown in FIG. 1, that is, a whole screen (the screen may be a flexible screen) is covered on the first body and the second body. When the two bodies rotate, the screen is folded. Of course, the foldable mobile phone shown in FIG. 1 can also be provided with two independent screens. For example, one screen is provided on the first body and one screen is provided on the second body. In this case, the two screens may not be flexible screens. . Of course, only one screen may be provided on one body, and no screen but buttons or the like may be provided on the other body, which is not limited in the embodiments of the present application.

本申请实施例涉及的展开角度,即主设备(可折叠式电子设备)被打开的角度,以图1所示的可折叠式手机为例,展开角度即第一本体和第二本体之间的夹角

Figure BDA0002009162160000072
比如夹角
Figure BDA0002009162160000073
为0度时,手机闭合,夹角
Figure BDA0002009162160000074
为180度时,手机完全打开。可以理解,在另外的一些实施例中,手机完全打开时,夹角
Figure BDA0002009162160000075
也可以大于180度,本发明实施例对此不作限定。The deployment angle involved in the embodiment of the present application is the angle at which the main device (foldable electronic device) is opened. Taking the foldable mobile phone shown in FIG. 1 as an example, the deployment angle is the angle between the first body and the second body. included angle
Figure BDA0002009162160000072
such as angle
Figure BDA0002009162160000073
When it is 0 degrees, the mobile phone is closed, and the included angle
Figure BDA0002009162160000074
When it is 180 degrees, the phone is fully opened. It can be understood that, in some other embodiments, when the mobile phone is fully opened, the included angle
Figure BDA0002009162160000075
It may also be greater than 180 degrees, which is not limited in this embodiment of the present invention.

应理解,为了方便理解,图1中角度

Figure BDA0002009162160000076
可以是两个本体所在的平面之间的夹角。It should be understood that, for ease of understanding, the angles in FIG. 1
Figure BDA0002009162160000076
Can be the angle between the planes on which the two bodies lie.

本申请实施例涉及的辅助设备,用于控制主设备的展开角度的电子设备,辅助设备可以包括手写笔、智能手环、智能手表、智能手机等等。在本申请实施例中,辅助设备与主设备建立连接之后,可以用于控制主设备,以改变主设备的展开角度,实现对主设备的操控。The auxiliary device involved in the embodiments of the present application is an electronic device used to control the unfolding angle of the main device, and the auxiliary device may include a stylus, a smart bracelet, a smart watch, a smart phone, and the like. In this embodiment of the present application, after the auxiliary device establishes a connection with the main device, it can be used to control the main device to change the deployment angle of the main device and to control the main device.

请参见图2所示,为本申请实施例提供的一种应用场景的示意图。如图2所示,该应用场景中包括主设备和辅助设备,其中,主设备以可折叠式手机为例,辅助设备以手写笔为例。Please refer to FIG. 2 , which is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in FIG. 2 , the application scenario includes a main device and an auxiliary device, wherein the main device is a foldable mobile phone as an example, and the auxiliary device is a stylus as an example.

可折叠式手机和手写笔连接(连接过程将在后文介绍)后,当手写笔在用户操作下旋转一定的角度

Figure BDA0002009162160000077
时,手写笔可以向可折叠式手机发送指示信息,该指示信息可以用于指示角度信息(比如指示信息用于指示角度
Figure BDA0002009162160000078
)。可折叠式手机接收到该指示信息之后,解析该指示信息所指示的角度信息,然后基于该角度信息,控制改变第一本体和第二本体之间的夹角l。应理解,角度lR夹角
Figure BDA0002009162160000083
可以相同或者不同。After the foldable mobile phone and the stylus are connected (the connection process will be described later), when the stylus is rotated by a certain angle under the user's operation
Figure BDA0002009162160000077
, the stylus can send indication information to the foldable mobile phone, and the indication information can be used to indicate the angle information (for example, the indication information is used to indicate the angle
Figure BDA0002009162160000078
). After receiving the indication information, the foldable mobile phone parses the angle information indicated by the indication information, and then controls and changes the angle l between the first body and the second body based on the angle information. It should be understood that the included angle of the angle lR
Figure BDA0002009162160000083
Can be the same or different.

当然,手写笔还可以向可折叠式手机发送其它指示信息,比如用于指示展开手机100或折叠手机100的指示信息。示例性的,上述的用于指示角度信息的指示信息和用于指示展开或折叠手机100的其它指示信息可以分别发送,可以是打包成一个控制指令发送,本申请实施例不作限定。下文中,以打包成一个控制指令为例。Of course, the stylus can also send other instruction information to the foldable mobile phone, such as instruction information for instructing to unfold the mobile phone 100 or to fold the mobile phone 100 . Exemplarily, the above-mentioned indication information for indicating the angle information and other indication information for instructing to unfold or fold the mobile phone 100 may be sent separately, or may be packaged into one control command and sent, which is not limited in this embodiment of the present application. Hereinafter, take packing into one control instruction as an example.

可见,本申请实施例提供的可折叠式电子设备(主设备)的控制方法,无需用户手动扳动可折叠式电子设备,而是通过其它设备控制可折叠式电子设备的展开角度,方便用户操作。It can be seen that the control method of the foldable electronic device (main device) provided by the embodiment of the present application does not require the user to manually move the foldable electronic device, but controls the unfolding angle of the foldable electronic device through other devices, which is convenient for the user to operate .

本申请实施例涉及的多个,是指大于或等于两个。The multiple involved in the embodiments of the present application refers to greater than or equal to two.

需要说明的是,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。且在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。It should be noted that the term "and/or" in this document is only an association relationship to describe associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, and A exists at the same time and B, there are three cases of B alone. In addition, the character "/" in this text, unless otherwise specified, generally indicates that the related objects before and after are an "or" relationship. In the description of the embodiments of the present application, words such as "first" and "second" are only used for the purpose of distinguishing and describing, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean 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," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.

以下介绍主设备、用于这样的主设备的图形用户界面(graphical userinterface,GUI)、和用于使用这样的主设备的实施例。在本申请一些实施例中,主设备可以是便携式设备,诸如可折叠式手机、可折叠式平板电脑、笔记本电脑等设备。该便携式设备包含能够实现通信的器件(比如无线通信模块、移动通信模块等)、能够实现改变展开角度的器件比如转轴系统(后文介绍)。该便携式设备的示例性实施例包括但不限于搭载

Figure BDA0002009162160000081
Figure BDA0002009162160000082
或者其它操作系统的便携式设备。上述便携式设备也可以是其它便携式设备,只要能够实现数据通信,且改变展开角度即可。还应当理解的是,在本申请其他一些实施例中,上述主设备还可以是能够实现数据通信,且能够改变展开角度的其它设备。A host device, a graphical user interface (GUI) for such a host device, and embodiments for using such a host device are described below. In some embodiments of the present application, the main device may be a portable device, such as a foldable mobile phone, a foldable tablet computer, a notebook computer, and the like. The portable device includes a device capable of communication (such as a wireless communication module, a mobile communication module, etc.), and a device capable of changing the deployment angle, such as a hinge system (described later). Exemplary embodiments of the portable device include but are not limited to carrying
Figure BDA0002009162160000081
Figure BDA0002009162160000082
Or portable devices with other operating systems. The above-mentioned portable device may also be other portable devices, as long as data communication can be realized and the deployment angle can be changed. It should also be understood that, in some other embodiments of the present application, the above-mentioned master device may also be other devices capable of realizing data communication and changing the deployment angle.

以主设备是可折叠式手机(比如图2所示的应用场景中的手机)为例,图3示出了手机100的结构示意图。Taking the main device being 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 .

如图3所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,天线1,天线2,移动通信模块151,无线通信模块152,传感器模块180,按键190,显示屏194、转轴系统191等。其中传感器模块180可以包括压力传感器180A,指纹传感器180H,触摸传感器180K等(传感器模块180还可包括其他传感器比如温度传感器、环境光传感器、陀螺仪传感器等,图中未示出)。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 screen 194, Spindle system 191, etc. 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., which are not shown in the figure).

可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

下面对图3示出的手机100中的部件进行介绍。The components in the mobile phone 100 shown in FIG. 3 will be introduced below.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors. The controller may be the nerve center and command center of the mobile phone 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.

其中,处理器110可以用于解析手机100接收到的控制指令,然后根据解析出的控制指令中所包括的信息(比如角度信息、展开/折叠等)控制转轴系统191,以带动第一本体或者第二本体旋转,以改变手机100的展开角度,关于转轴系统191带动第一本体或者第二本体选择的过程将在后文介绍。The processor 110 can be used to parse the control command received by the mobile phone 100, and then control the hinge system 191 according to the information (such as angle information, unfolding/folding, etc.) included in the parsed control command, so as to drive the first body or The second body is rotated to change the unfolding angle of the mobile phone 100 . The process of the rotation axis system 191 driving the first body or the second body to select will be described later.

当然,处理器110也可以对要发送的数据进行封装,将封装之后的数据通过移动通信模块151或者无线通信模块152发送给辅助设备比如手写笔。Of course, the processor 110 may also encapsulate the data to be sent, and send the encapsulated data to an auxiliary device such as a stylus through the mobile communication module 151 or the wireless communication module 152 .

应理解,手机100和手写笔之间可以约定通信方式,该通信方式中可以对数据的格式、参数的含义等等进行约定,所以手机100解析手写笔发送的控制指令时,可以按照约定的通信方式进行解析,而且,手机100对要发送的数据进行封装时,也可以按照约定的通信方式进行封装,以便手写笔能够解析封装后的数据,关于通信方式将在后文介绍。It should be understood that a communication method can be agreed between the mobile phone 100 and the stylus, in which the format of the data, the meaning of the parameters, etc. can be agreed, so when the mobile phone 100 parses the control command sent by the stylus, it can communicate according to the agreement. In addition, when the mobile phone 100 encapsulates the data to be sent, it can also encapsulate it according to the agreed communication method, so that the stylus can parse the encapsulated data. The communication method will be introduced later.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如微信、支付宝等)等。存储数据区可存储手机100使用过程中所创建的数据(比如图片、视频、音频数据,电话本等)等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program (such as WeChat, Alipay, etc.) required for at least one function, and the like. The storage data area can store data (such as pictures, videos, audio data, phone books, etc.) created during the use of the mobile phone 100 and the like.

内部存储器121还可以用于存储手机100的解锁指纹等。其中,解锁指纹用于验证手机100接收到的指纹,当接收到的指纹与解锁指纹一致时,验证成功,否则,验证失败。The internal memory 121 may also be used to store unlocking fingerprints of the mobile phone 100 and the like. The unlocking fingerprint is used to verify the fingerprint received by the mobile phone 100 . When the received fingerprint is consistent with the unlocking fingerprint, the verification succeeds; otherwise, the verification fails.

其中,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.

下面介绍传感器模块180的功能。The function of the sensor module 180 is described below.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 .

指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.

作为一种示例,指纹传感器180H采集解锁指纹,然后将解锁指纹存储在内部存储器121中,该解锁指纹用于验证手机100接收到的指纹,当验证成功时,解锁手机100。在本申请实施例中,用户可以通过辅助设备控制手机100,所以辅助设备可以采集用户的指纹,并将采集到的指纹发送给手机100。当手机100通过无线通信模块152或者移动通信模块151接收到辅助设备发送的用户的指纹后,处理器110可以比较接收到的指纹和内部存储器121中存储的解锁指纹,若一致,则控制解锁设备;或者,当手机100通过无线通信模块152或者移动通信模块151接收到辅助设备发送的用户的指纹后,指纹传感器180H自身可以对比接收到的指纹和存储的解锁指纹,若对比一致,则处理器控制解锁设备。As an example, the fingerprint sensor 180H collects an unlocking fingerprint, and then stores the unlocking fingerprint in the internal memory 121 . The unlocking fingerprint is used to verify the fingerprint received by the mobile phone 100 , and when the verification is successful, the mobile phone 100 is unlocked. In this embodiment of the present application, the user can control the mobile phone 100 through the auxiliary device, so the auxiliary device can collect the user's fingerprint and send the collected fingerprint to the mobile phone 100 . After the mobile phone 100 receives the user's fingerprint sent by the auxiliary device through the wireless communication module 152 or the mobile communication module 151, the processor 110 can compare the received fingerprint with the unlocking fingerprint stored in the internal memory 121, and if they are consistent, control the unlocking device Or, when 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 itself can compare the received fingerprint and the stored unlocking fingerprint, if the comparison is consistent, then the processor Control to unlock the device.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器180K可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "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, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor 180K may pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the mobile phone 100 , which is different from the position where the display screen 194 is located.

手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone 100 realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the handset 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

如前述内容可知,在本申请实施例中,手机100可以具有一个显示屏,也可以具有至少两个显示屏。以手机100具有一个显示屏为例,请参见图1所示,第一本体上设置一个显示屏,第二本体上未设置显示屏;或者,第二本体上设置一个显示屏,而第一本体上未设置显示屏;或者,第一本体和第二本体上覆盖一个完整的显示屏(比如柔性屏),当手机100被折叠时,该完整的显示屏被折叠。As can be seen from the foregoing, in this 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 having a display screen as an example, please refer to FIG. 1 , a display screen is provided on the first body, and no display screen is provided on the second body; No display screen is provided on the first body and the second body; alternatively, a complete display screen (such as a flexible screen) is covered on the first body and the second body, and the complete display screen is folded when the mobile phone 100 is folded.

当第一本体和第二本体上覆盖一个完整的显示屏时,该显示屏上位于第一本体上的显示区域和位于第二本体上的显示区域可以作为两个独立的显示屏,显示相同的内容,或者显示不同的内容,或该显示屏可以作为一个大的屏幕可以显示一个界面,本申请实施例不作限定。When the first body and the second body are covered with a complete display screen, the display area on the first body and the display area on the second body can be used as two independent display screens, displaying the same content, or display different content, or the display screen can be used as a large screen to display an interface, which is not limited in this embodiment of the present application.

以手机100具有两个显示屏为例,请继续参见图1所示,第一本体和第二本体上均设置一个独立的显示屏。示例性的,当手机100包括两个显示屏时,则这两个显示屏可以显示相同的内容,也可以显示不同的内容,本申请实施例不作限定。Taking the mobile phone 100 having two display screens as an example, please continue to refer to FIG. 1 , an independent display screen is provided on both the first body and the second body. Exemplarily, when the mobile phone 100 includes two display screens, the two display screens may display the same content or different content, which is not limited in this embodiment of the present application.

转轴系统191,用于改变手机100的展开角度,具体过程将在后文介绍。The hinge system 191 is used to change the unfolding angle of the mobile phone 100, and the specific process will be described later.

手机100可以接收按键190输入,产生与手机100的用户设置以及功能控制有关的键信号输入。The mobile phone 100 can receive the key 190 input and generate the key signal input related to the user setting and function control of the mobile phone 100 .

尽管图3未示出,手机100还可以包括摄像头,例如前置摄像头、后置摄像头;还可以包括音频模块(扬声器,受话器,麦克风,耳机接口)等用于实现音频功能;还可以包括马达,用于产生振动提示(比如来电振动提示);还可以包括指示器比如指示灯,用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。Although not shown in FIG. 3 , the mobile phone 100 may further include a camera, such as a front camera and a rear camera; may also include an audio module (speaker, receiver, microphone, headphone jack), etc. for implementing audio functions; may also include a motor, It is used to generate vibration prompts (such as incoming call vibration prompts); it can also include indicators such as indicator lights, which are used to indicate charging status, battery changes, and can also be used to indicate messages, missed calls, notifications, etc.

下文以辅助设备是手写笔为例,介绍手写笔的结构。The following describes the structure of the stylus by taking the auxiliary device being a stylus as an example.

请参见图4所示,为本申请实施例提供的一种手写笔的结构示意图。如图4所示,手写笔包括通信模块、处理模块、传感器模块和存储模块。Please refer to FIG. 4 , which is a schematic structural diagram of a stylus according to an embodiment of the present application. 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, which are used to detect the angle between the stylus and the horizontal direction, the rotation direction of the stylus, and the like.

处理模块,用于对传感器模块检测到的数据进行处理,比如按照约定的通信方式对传感器检测到的数据进行封装处理。The processing module is used for processing the data detected by the sensor module, for example, encapsulating and processing the data detected by the sensor according to the agreed communication method.

存储模块,用于存储手写笔与手机100之间约定的通信方式,以及其它参数,比如手写笔相对于水平方向的初始角度E0等,具体内容将在后文介绍。The storage module is used to store the agreed communication method between the stylus and the mobile phone 100, as well as other parameters, such as the initial angle E0 of the stylus relative to the horizontal direction, etc. The specific content will be introduced later.

通信模块,可以是移动通信模块或者无线通信模块比如蓝牙模块。以蓝牙模块为例,蓝牙模块可以将封装好的数据发送给手机100。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 .

下面介绍通过图4所述的手写笔控制手机100的过程:The following describes the process of controlling the mobile phone 100 through the stylus described in FIG. 4 :

手写笔与手机100建立连接之后,手写笔中的传感器模块检测手写笔的旋转角度、旋转方向等传感器数据,然后将检测到的数据发送给处理模块,处理模块根据约定的通信方式对这些数据进行封装,通过通信模块将封装后的数据发送给手机100。手机100接收到手写笔发送的封装后的数据,根据约定的通信方式对封装后的数据进行解析,获得旋转角度、旋转方向等,然后基于旋转角度、旋转方向等控制转轴系统191改变手机100的展开角度。After the stylus is connected to the mobile phone 100, the sensor module in the stylus detects sensor data such as the rotation angle and rotation direction of the stylus, and then sends the detected data to the processing module, which processes the data according to the agreed communication method. Encapsulation, 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, parses the encapsulated data according to the agreed communication method, obtains the rotation angle, rotation direction, etc., and then controls the shaft system 191 based on the rotation angle, rotation direction, etc. to change the mobile phone 100. Expand the angle.

在一些实施例中,手写笔可以在检测到自身满足一定的条件时,才通过传感器模块检测数据,比如,手写笔上可以设置一开关,当该开关被按下时,传感器模块才检测数据。具体而言,手写笔中处理模块检测到该开关被按下时,可以触发启动传感器模块检测数据。In some embodiments, the stylus can detect data through the sensor module only when it detects that it meets certain conditions. For example, a switch can be set on the stylus, and the sensor module can only detect data when the switch is pressed. Specifically, when the processing module in the stylus detects that the switch is pressed, it can trigger and activate the sensor module to detect data.

因此,对于用户而言,当用户需要通过手写笔控制可折叠式手机时,可以按下手写笔上的开关。Therefore, for the user, when the user needs to control the foldable mobile phone through the stylus, the switch on the stylus can be pressed.

在本申请一些实施例中,为了防止用户误触发开关,而导致误触发传感器模块检测数据,手写笔可以在检测到开关被长按时,才通过传感器模块检测数据。比如,手写笔检测到开关被按下的时长达到预设时间(比如2秒)时,才触发启动传感器模块检测数据,当手写笔检测到开关被释放(弹起),则关闭传感器模块。也就是说,用户通过手写笔控制手机100时,可以长按手写笔上的开关,当不需要控制手机100时,释放该开关。In some embodiments of the present application, in order to prevent the user from erroneously triggering the switch, which may result in erroneous triggering of the sensor module detection data, the stylus may detect data through the sensor module only when it detects that the switch is long-pressed. For example, when the stylus detects that the switch is pressed for a preset time (for example, 2 seconds), the sensor module is triggered to detect data, and when the stylus detects that the switch is released (bounced up), the sensor module is turned off. That is to say, when the user controls the mobile phone 100 through the stylus, he can long press the switch on the stylus, and when he does not need to control the mobile phone 100, release the switch.

当然,手写笔还可以有其它的方式来控制传感器模块检测数据,比如手写笔可以在检测到某个开关被触发时,通过传感器模块检测数据,当手写笔检测到另一个开关被触发时,关闭传感器模块。也就是说,手写笔上设置有两个开关,其中一个开关被触发时,手写笔可以控制手机100,另一个开关被触发时,手写笔停止控制手机100。Of course, the stylus can also have other ways to control the sensor module to detect data. For example, the stylus can detect data through the sensor module when it detects that a certain switch is triggered, and when the stylus detects another switch is triggered, it can be turned off. sensor module. That is to say, the stylus is provided with two switches. When one switch is triggered, the stylus can control the mobile phone 100 , and when the other switch is triggered, the stylus stops controlling the mobile phone 100 .

应理解,用户在初次使用手写笔控制手机100时,可能并不清楚具体如何控制,所以,手机100或者手写笔可以给予用户一定的提示。作为一种示例,手写笔上的每个开关可以设置标识信息(比如标签),用于指示每个开关的作用,以便用户操作。It should be understood that when the user uses the stylus pen to control the mobile phone 100 for the first time, he may not know how to control the mobile phone 100 for the first time. Therefore, the mobile phone 100 or the stylus pen can give the user certain prompts. As an example, each switch on the stylus may be provided with identification information (such as a label) for indicating the function of each switch for the user to operate.

作为另一种示例,手机100和手写笔连接之后,手机100可以显示通过手写笔控制手机100的流程步骤的界面(可以在初次连接之后,显示所述流程步骤的界面,也可以在每次连接之后,都显示所述流程步骤的界面);或者,手机100和手写笔连接之后,手写笔可以输出提示信息(比如语音输出),以提示用户通过手写笔控制手机100的流程步骤;或者,手机100和手写笔建立连接之后,手机100的显示屏上可以显示一个控件,当该控件被触发时,弹出通过手写笔控制手机100的流程步骤的界面;以上仅是列举的几种提示方式,用于提示用户通过手写笔控制手机100的操作步骤,在实际应用中,还可以有其它提示方式,本申请实施例不作限定。As another example, after the mobile phone 100 and the stylus are connected, the mobile phone 100 can display the interface of the process steps of controlling the mobile phone 100 through the stylus pen (the interface of the process steps can be displayed after the initial connection, or the interface of the process steps can be displayed after each connection After that, the interface of the process steps is displayed); or, after the mobile phone 100 is connected to the stylus, the stylus can output prompt information (such as voice output) to prompt the user to control the process steps of the mobile phone 100 through the stylus; After the connection between 100 and the stylus is established, a control can be displayed on the display screen of the mobile phone 100. When the control is triggered, an interface for controlling the process steps of the mobile phone 100 by the stylus pops up; For the operation steps of prompting the user to control the mobile phone 100 through the stylus pen, in practical applications, there may also be other prompting manners, which are not limited in the embodiments of the present application.

需要说明的是,图4仅是以辅助设备是手写笔为例的,在实际应用中,辅助设备还可以是其它设备,比如智能手环、手表等,本申请实施例对此不作限定。It should be noted that FIG. 4 only takes the auxiliary device being a stylus as an example. In practical applications, the auxiliary device may also be other devices, such as smart bracelets, watches, etc., which are not limited in the embodiments of the present application.

下文中以图3所示的手机100和图4所示的手写笔为例,且以手机100和手写笔通过蓝牙连接为例,进行说明。The following description takes the mobile phone 100 shown in FIG. 3 and the stylus shown in FIG. 4 as an example, and the mobile phone 100 and the stylus are connected via Bluetooth as an example for description.

应理解,两个设备通过蓝牙进行数据通信之前,可以先进行蓝牙配对。It should be understood that, before the two devices perform data communication through Bluetooth, Bluetooth pairing may be performed first.

示例性的,蓝牙配对过程可以包括:Exemplarily, the Bluetooth pairing process may include:

第一步,手机100启动蓝牙模块,手写笔启动蓝牙模块。In the first step, the mobile phone 100 activates the Bluetooth module, and the stylus activates the Bluetooth module.

示例性的,手机100启动蓝牙功能的过程可以是现有技术的过程,请参见图5所示,为本申请实施例提供的手机100的GUI的示意图,如图5(a)所示,当控件501被激活时,手机100启动蓝牙功能。Exemplarily, the process of enabling the Bluetooth function of the mobile phone 100 may be a process in the prior art. Please refer to FIG. 5 , which is a schematic diagram of the GUI of the mobile phone 100 provided in this embodiment of the present application. When the control 501 is activated, the mobile phone 100 activates the Bluetooth function.

示例性的,手写笔上可以设置一开关控件,当检测到该开关控件被触发时,手写笔启动蓝牙模块。应理解,用于手写笔上用于控制启动蓝牙模块的开关和上述的开关(用于触发传感器模块的开关)可以是不同的开关。Exemplarily, a switch control may be set on the stylus, and when it is detected that the switch control is triggered, the stylus starts the Bluetooth module. It should be understood that the switch used on the stylus for controlling the activation of the Bluetooth module and the above-mentioned switch (the switch for triggering the sensor module) may be different switches.

第二步,手机100扫描到手写笔后,显示手写笔的标识信息。In the second step, after the mobile phone 100 scans the stylus, the identification information of the stylus is displayed.

请继续参见图5(a)所示,手机100扫描到手写笔设备后,显示手写笔的标识502(该标识可以是手写笔的名称,可以是手写笔出厂时设置好的,也可以是用户自定义的,本申请实施例对此不作限定)。Please continue to refer to Fig. 5(a), after the mobile phone 100 scans the stylus device, it displays the stylus's logo 502 (the logo can be the name of the stylus, the stylus can be set at the factory, or the user Custom, which is not limited in this embodiment of the present application).

第三步,当手机100检测到用于触发与手写笔建立连接的操作后,与手写笔连接。In the third step, when the mobile phone 100 detects the operation for triggering the establishment of the connection with the stylus, it connects with the stylus.

请参见图5(a)所示,手机100检测到用户触发控件503的操作时,与手写笔建立连接;或者手机100检测到用户触发控件503的操作时,显示如图5(b)所示的界面,即手机100弹出提示信息504,以提示用户是否与手写笔建立连接,若用户选择是,则手机100与手写笔建立蓝牙连接。Referring to FIG. 5( a ), when the mobile phone 100 detects the operation of the control 503 triggered by the user, it establishes a connection with the stylus; or when the mobile phone 100 detects the operation of the control 503 triggered by the user, the display is shown in FIG. 5( b ). interface, that is, the mobile phone 100 pops up a prompt message 504 to prompt the user whether to establish a connection with the stylus. If the user selects yes, the mobile phone 100 establishes a Bluetooth connection with the stylus.

当然,图5所示的过程仅是手机100与手写笔建立蓝牙连接的过程中的一种举例,在实际应用中还可以是其它的连接方式,比如,手机100与手写笔建立蓝牙连接之前,还可以提示用户输入手写笔的配对码,当手机100检测到用户输入手写笔的配对码之后,与手写笔建立连接,本申请实施例不限定。Of course, the process shown in FIG. 5 is only an example of the process of establishing a Bluetooth connection between the mobile phone 100 and the stylus, and other connection methods may be used in practical applications. The user may also be prompted to input the pairing code of the stylus. After the mobile phone 100 detects that the user has input the pairing code of the stylus, a connection is established with the stylus, which is not limited in the embodiment of the present application.

当手写笔和手机100建立蓝牙连接之后,用户可以通过手写笔控制手机100的展开角度。需要说明的是,手写笔和100手机建立蓝牙连接之后,手写笔和手机100之间的数据传输可以采用约定的通信方式进行封装。After the bluetooth connection is established between the stylus and the mobile phone 100, the user can control the unfolding angle of the mobile phone 100 through the stylus. It should be noted that, after the bluetooth connection is established between the stylus and the mobile phone 100, the data transmission between the stylus and the mobile phone 100 can be encapsulated by the agreed communication method.

应理解,手机100向手写笔发送数据时采用的约定通信方式和手写笔向手机100发送数据时采用的约定通信方式可以不同,下文将分别介绍。It should be understood that the agreed communication method used when the mobile phone 100 sends data to the stylus and the agreed communication method used when the stylus sends data to the mobile phone 100 may be different, which will be introduced separately below.

下面介绍手写笔向手机100发送数据时采用的约定通信方式。The following describes the agreed communication method used when the stylus pen sends data to the mobile phone 100 .

请参见图6所示,为手写笔向手机100发送数据时采用的约定通信方式所规定的不同参数取值的含义的示例。如图6所示,当参数的取值为1时,代表0度,当参数的取值为2时,代表30度,当参数的取值为6时,代表进入控制状态,当参数的取值为7时,代表退出控制状态等等。手写笔向手机100发送数据时可以采用图6所示的不同取值的含义对数据进行封装,比如,手写笔的初始角度E0是30度,则根据图6所示的表可知,30度对应参数的取值为2,则手写笔向手机100发送的数据中包括2。应理解,图6中,参数的取值是以十进制数为例的,实际上,参数还可以以其它方式呈现,比如以不同的字符(比如字母)表示,或者参数的取值还可以是二进制数,本申请实施例不作限定。Please refer to FIG. 6 , which is an example of the meanings of different parameter values specified in the agreed communication mode adopted when the stylus pen sends data to the mobile phone 100 . As shown in Figure 6, when the value of the parameter is 1, it represents 0 degrees; when the value of the parameter is 2, it represents 30 degrees; when the value of the parameter is 6, it represents entering the control state. When the value is 7, it means exiting the control state and so on. When the stylus sends data to the mobile phone 100, the data can be encapsulated with the meanings of different values shown in FIG. 6. For example, if the initial angle E0 of the stylus is 30 degrees, according to the table shown in FIG. 6, 30 degrees corresponds to If the value of the parameter is 2, the data sent by the stylus to the mobile phone 100 includes 2. It should be understood that, in FIG. 6 , the values of the parameters are taken as an example in decimal numbers. In fact, the parameters can also be presented in other ways, such as being represented by different characters (such as letters), or the values of the parameters can also be binary. number, which is not limited in the embodiments of the present application.

请参见图7(a)所示,为手写笔向手机100发送数据时采用的约定通信方式所规定的数据传输格式的示例。如图7(a)所示,数据传输格式中包括六个字段,第一个字段内的参数用于指示接入码(access code);第二个字段内的参数用于指示头字段(header);第三个字段中的取值用于指示进入或退出屏幕控制状态;第四个字段到第五个字段中每个字段的取值可以用于指示手写笔的传感器数据;比如,第四个字段中的取值用于指示手写笔旋转后的角度E1、第五个字段中的取值用于指示展开或折叠,第六个字段中的取值用于指示手写笔的初始角度E0。其中,初始角度E0可以是手写笔与水平方向的夹角。旋转后的角度E1可以是手机从初始角度开始旋转一定的角度之后,与水平方向的夹角。因此,E1与E0的差值的绝对值就是手写笔旋转了多少角度。Please refer to FIG. 7( a ), which is an example of the data transmission format specified by the agreed communication method used when the stylus pen sends data to the mobile phone 100 . As shown in Figure 7(a), the data transmission format includes six fields. The parameters in the first field are used to indicate the access code; the parameters in the second field are used to indicate the header field. ); the value in the third field is used to indicate entering or exiting the screen control state; the value of each field in the fourth field to the fifth field can be used to indicate the sensor data of the stylus; for example, the fourth field The value in the first field is used to indicate the rotated angle E1 of the stylus, the value in the fifth field is used to indicate expansion or collapse, and the value in the sixth field is used to indicate the initial angle E0 of the stylus. The initial angle E0 may be the angle between the stylus and the horizontal direction. The rotated angle E1 may be the included angle between the mobile phone and the horizontal direction after the mobile phone is rotated by a certain angle from the initial angle. Therefore, the absolute value of the difference between E1 and E0 is how much the stylus is rotated.

作为一种示例,图7(a)所示的数据格式中,第五个字段的取值可以是手写笔根据用户操作确定出的,比如,手写笔上设置开关1和开关2,当用户想要通过手写笔控制手机100展开时,则用户触发开关1,手写笔检测到开关1被触发,则第三个字段的取值为8;当用户想要通过手写笔控制手机100折叠时,则用户触发开关2,手写笔检测到开关2被触发,则第三个字段的取值为9。As an example, in the data format shown in Figure 7(a), the value of the fifth field may be determined by the stylus according to the user's operation. For example, switch 1 and switch 2 are set on the stylus. When the user wants to When the mobile phone 100 is controlled to be unfolded by the stylus, the user triggers switch 1, and the stylus detects that switch 1 is triggered, and the value of the third field is 8; when the user wants to control the folding of the mobile phone 100 by the stylus, then The user triggers switch 2, and the stylus detects that switch 2 is triggered, and the value of the third field is 9.

应理解,前面提到,手写笔检测到开关被长按时,开始控制手机100,所以,在实际应用中,手写笔检测到开关1被长按下,开始控制手机100展开,当手写笔检测到开关1被释放时,停止控制手机100;当手写笔检测到开关2被长按下时,开始控制手机100折叠,当手写笔检测到开关2被释放时,停止控制手机100。也就是说,用户可以使用手写笔上不同的开关控制手机100展开还是折叠。It should be understood that, as mentioned above, the stylus starts to control the mobile phone 100 when the stylus detects that the switch is long-pressed. Therefore, in practical applications, the stylus detects that the switch 1 is long-pressed and starts to control the mobile phone 100 to unfold. When the switch 1 is released, it stops controlling the mobile phone 100; when the stylus detects that the switch 2 is long pressed, it starts to control the folding of the mobile phone 100, and when the stylus detects that the switch 2 is released, it stops controlling the mobile phone 100. That is, the user can use different switches on the stylus to control whether the mobile phone 100 is unfolded or folded.

作为另一种示例,第五个字段的取值还可以是手写笔根据自身的旋转方向确定的,比如,手写笔检测到用户操作手写笔与水平面的夹角增大(即E1和E0的差值是正数),则手写笔第五个字段的取值为8,手写笔检测到用户将手写笔与水平面的夹角减少(即E1与E0的差值是负数),则手写笔确定第五个字段的取值为9。也就是说,这种示例中,用户通过改变手写笔的旋转方向,实现控制手机100展开或者折叠的效果。As another example, the value of the fifth field may also be determined by the stylus pen according to its own rotation direction. value is a positive number), the value of the fifth field of the stylus is 8, and the stylus detects that the user reduces the angle between the stylus and the horizontal plane (that is, the difference between E1 and E0 is a negative number), then the stylus determines the fifth The value of each field is 9. That is to say, in this example, the user realizes the effect of controlling the unfolding or folding of the mobile phone 100 by changing the rotation direction of the stylus.

应理解,图7(a)中,为了方便区别,第三个字段到第六个字段中的参数分别以参数1、参数2、参数3、参数4来区分,参数1-4的取值可以是图6所示的表中的取值。It should be understood that in Figure 7(a), for the 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 parameters 1-4 can be is the value in the table shown in Figure 6.

需要说明的是,图7(a)所示的数据传输格式中,以第四个字段用于指示角度E1、第五个字段用于指示展开或折叠,第六个字段用于指示初始角度E0为例,实际上,不限定哪一个字段用于指示角度E1,比如以第四个字段用于指示初始角度E0、第五个字段用于指示展开或折叠,第六个字段用于指示角度E1等。It should be noted that, in the data transmission format shown in Figure 7(a), the fourth field is used to indicate the angle E1, the fifth field is used to indicate expansion or collapse, and the sixth field is used to indicate the initial angle E0 For example, in fact, it is not limited 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 expansion or collapse, and the sixth field is used to indicate the angle E1. Wait.

因此,手写笔向手机100发送数据时,可以按照图6所示的取值的含义,以及图7(a)所示的数据传输格式对数据进行封装,将封装后的数据发送给手机100。Therefore, when the stylus sends data to the mobile phone 100, the data can be encapsulated according to the meaning of the values shown in FIG. 6 and the data transmission format shown in FIG. 7(a), and the encapsulated data can be sent to the mobile phone 100.

下面介绍图4所示的手写笔对数据进行封装的过程。The process of encapsulating data by the stylus shown in FIG. 4 is described below.

手写笔中的传感器模块采集手写笔的传感器数据,假设传感器模块采集的传感器数据包括手写笔与水平面的初始角度E0=0度、旋转后与水平面的夹角E1=30度。传感器模块可以将传感器数据发送给处理器模块,处理器模块确定手写笔与水平面的夹角增大,即对应“展开”,手写笔中的存储模块中存储有图6所示的每个取值代表的含义,处理模块可以在存储模块中查询E0=0度时对应的取值即1,E1=30度时对应的取值即2,“展开”对应的取值即8,处理器模块按照图7(a)所示的数据传输格式在不同的字段填充取值,得到封装之后的数据。通信模块将该封装后的数据发送给手机100。The sensor module in the stylus collects the sensor data of the stylus. It is assumed that the sensor data collected by the sensor module includes the initial angle E0 = 0 degrees between the stylus and the horizontal plane, and the included angle E1 = 30 degrees after the rotation and the horizontal plane. The sensor module can send sensor data to the processor module, and the processor module determines that the angle between the stylus and the horizontal plane increases, that is, corresponding to "expanding", and each value shown in Figure 6 is stored in the storage module in the stylus. The meaning of the representation, the processing module can query the storage module for the corresponding value when E0=0 degrees, which is 1, the corresponding value when E1=30 degrees, which is 2, and the value corresponding to "expand", which is 8. The data transmission format shown in Figure 7(a) fills in different fields with values to obtain the encapsulated data. The communication module sends the packaged data to the mobile phone 100 .

示例性的,请参见图8所示,为手写笔向手机100发送的封装之后的数据的示意图。如图8所示,封装后的数据包括六个字段,其中第一个字段是接入码,第二个字段是header,第三个字段为空,第四个字段中参数的取值为2,第五个字段中参数的取值为8,第六个字段中参数的取值为1。For example, please refer to FIG. 8 , which is a schematic diagram of the packaged data sent by the stylus to the mobile phone 100 . As shown in Figure 8, the encapsulated data includes six fields, of which the first field is the access code, the second field is the header, the third field is empty, and the value of the parameter in the fourth field is 2 , the value of the parameter in the fifth field is 8, and the value of the parameter in the sixth field is 1.

下面介绍手机100接收到封装后的数据之后,解析封装后的数据的过程。The following describes the process of parsing the encapsulated data after the mobile phone 100 receives the encapsulated data.

手机100接收到封装后的数据之后,可以确定接入码、header以及第三个字段到第六个字段中每个字段的取值,根据图6所示的表,确定所述每个字段中取值的含义。After the mobile phone 100 receives the encapsulated data, it can determine the access code, the header, and the value of each of the third to sixth fields. According to the table shown in FIG. The meaning of the value.

其中,接入码可以用于进行数据同步和身份识别等,比如,接入码中可以包括手写笔的身份ID,当手机100接收到手写笔发送的封装后的数据后,可以通过解析数据中的接入码获知手写笔的身份ID,以验证该手写笔是否是当前与手机100建立蓝牙连接的设备。示例性的,手机100与手写笔建立蓝牙连接时,可以存储手写笔的身份ID,手机100接收到手写笔发送的封装后的数据后,解析数据中包括的接入码,获知的身份ID与存储的身份ID一致,则确定手写笔是当前与手机100连接的设备。其中,身份ID可以是媒体访问控制(mediaaccess control,MAC)地址、网络协议(internet protocol,IP)地址,设备标识(比如产品型号)等,本申请实施例对此不作限定。The access code may be used for data synchronization and identity recognition. For example, the access code may include the identity ID of the stylus. When the mobile phone 100 receives the encapsulated data sent by the stylus, it can parse the data The access code of the stylus is used to obtain the identity ID of the stylus, so as to verify whether the stylus is a device currently establishing a Bluetooth connection with the mobile phone 100 . Exemplarily, when the mobile phone 100 establishes a Bluetooth connection with the stylus, the identity ID of the stylus can be stored. After receiving the encapsulated data sent by the stylus, the mobile phone 100 parses the access code included in the data, and the learned identity ID and If the stored IDs are consistent, it is determined that the stylus is the device currently connected to the mobile phone 100 . Wherein, the identity ID may be a media access control (media access control, MAC) address, an internet protocol (internet protocol, IP) address, a device identifier (such as a product model), etc., which is not limited in this embodiment of the present application.

header可以包括用于指示第三个字段到第六个字段中每个字段所占的字节的信息。手机100可以根据header准确的区分不同字段。示例性的,第三个字段到第六个字段中每个字段占用的字节数可以相同或者不同。比如,第1-72字节的是第一字段,第73-127字节的数据是第二字段,第128字节到第129字节的数据是第三字段,用于指示进入或退出屏幕控制状态,第130-131字节的数据是第四字段,用于指示手写笔的角度E1,第132-133字节的数据是第五字段,用于指示展开或折叠,第134-135字节是第六字段,用于指示手写笔的初始角度E0。The header may include information indicating the bytes occupied by each of the third to sixth fields. The mobile phone 100 can accurately distinguish different fields according to the header. Exemplarily, the number of bytes occupied by each of the third field to the sixth field may be the same or different. For example, bytes 1-72 are the first field, bytes 73-127 are the second field, and bytes 128 to 129 are the third field, used to indicate entering or exiting the screen Control status, the data of the 130th-131st bytes is the fourth field, which is used to indicate the angle E1 of the stylus, and the data of the 132th-133th bytes is the fifth field, which is used to indicate expansion or folding, and the words 134-135 Section is the sixth field and is used to indicate the initial angle E0 of the stylus.

手机100确定每个字段后,确定每个字段的取值,根据图7所示的表,确定每个字段的取值的含义。比如,第五个字段中的取值指示展开手机100,手机100可以根据E1(第三个字段的取值的含义)和E0(第六个字段的取值的含义)的差值的绝对值,打开手机100一定的角度,该角度可以与E1和E0的差值的绝对值相同或不同。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 to expand the mobile phone 100, and the mobile phone 100 can determine the absolute value of the difference between E1 (the meaning of the value of the third field) and E0 (the meaning of the value of the sixth field) , turn on the mobile phone 100 at a certain angle, and the angle may be the same as or different from the absolute value of the difference between E1 and E0.

下面介绍手机100向手写笔发送数据时采用的约定的通信方式。The following describes the agreed communication method adopted when the mobile phone 100 sends data to the stylus.

请参见图9所示,为手机100向手写笔发送数据时采用的约定的通信方式所规定的不同取值的含义的示例。如图9所示,当参数的取值为0时,代表手机100响应成功,当参数的取值为1时,代表手机100响应失败。Please refer to FIG. 9 , which is an example of the meaning of different values specified by the agreed communication mode adopted when the mobile phone 100 sends data to the stylus. As shown in FIG. 9 , when the value of the parameter is 0, it means that the mobile phone 100 responds successfully, and when the value of the parameter is 1, it means that the mobile phone 100 fails to respond.

请参见图7(b)所示,为手机100向手写笔发送数据时采用的约定的通信方式所规定的数据传输格式的示例。如图7(b)所示,该数据传输格式包括第一字段、第二字段和第三字段。其中,第一字段是接入码(access code)、第二字段是头字段(header),以及第三字段包括1个取值,该取值用于指示手机100响应成功或者失败。Please refer to FIG. 7( b ), which is an example of the data transmission format specified by the agreed communication method used when the mobile phone 100 sends data to the stylus. 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, the second field is a header field, and the third field includes one value, which is used to indicate whether the mobile phone 100 responds successfully or fails.

应理解,7(b)所示的数据传输格式中的第三个字段是以十进制数为例的,实际上还可以以字符表示,或者以二进制数表示等,本申请实施例不作限定。It should be understood that the third field in the data transmission format shown in 7(b) is an example of a decimal number, and may actually be represented by a character or a binary number, which is not limited in the embodiments of the present application.

手机100向手写笔发送数据时,可以按照图7(b)所示的数据传输格式、以及图9所示的参数取值的含义对数据进行封装,将封装后的数据发送给手写笔。When the mobile phone 100 sends data to the stylus, it can encapsulate the data according to the data transmission format shown in FIG. 7( b ) and the meaning of the parameter values shown in FIG. 9 , and send the encapsulated data to the stylus.

示例性的,请参见图10所示,为手机100向手写笔发送的数据的示意图。如图10所示,手机100向手写笔发送的数据中第三字段中的取值为0,根据图9可知,取值为0代表响应成功。For example, please refer to FIG. 10 , which is a schematic diagram of data sent by the mobile phone 100 to the stylus. As shown in FIG. 10 , the value of the third field in the data sent by the mobile phone 100 to the stylus is 0. It can be seen from FIG. 9 that the value of 0 represents a successful response.

下面介绍手写笔接收到手机100发送的封装之后的数据之后,解封数据的过程。The following describes the process of decapsulating the data after the stylus pen receives the encapsulated data sent by the mobile phone 100 .

手写笔接收到手机100发送的封装后的数据之后,可以确定接入码、header以及第三个字段的取值,根据图9所示的表,确定第三个字段中取值的含义。After receiving the encapsulated data sent by the mobile phone 100, the stylus can determine the access code, the header, and the values of the third field, and determine the meaning of the values in the third field according to the table shown in FIG. 9 .

其中,接入码可以用于进行数据同步和身份识别,比如,接入码中可以包括手机100的身份ID,当手写笔接收到手机100发送的封装的数据之后,手写笔通过解析数据中的接入码可以获知手机100的身份ID,以验证该手机100是否是当前与手写笔建立连接的设备。The access code can be used for data synchronization and identity identification. For example, the access code can include the identity ID of the mobile phone 100. After the stylus pen receives the packaged data sent by the mobile phone 100, the stylus pen parses the data in the data. The access code can obtain the identity ID of the mobile phone 100 to verify whether the mobile phone 100 is the device currently connected with the stylus.

其中,header可以包括用于指示每个字段所占的字节数。手写笔可以根据header准确的确定每个字节。以图10所示的数据中第三个字段占用两个字节为例,手写笔接收到手机100发送的封装后的数据后,可以确定第1-72字节的是第一个字段,第73-127字节的数据是第二个字段,第128-129字节是第三个字段。手写笔基于图9所示的表,确定第三个字段的取值对应的含义,第三个字段中的取值用于指示手机100响应成功或者失败。Among them, the header can include the number of bytes used to indicate each field. The stylus can accurately determine each byte according to the header. Taking the third field in the data shown in Figure 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 bytes 1-72 are the first field, and bytes 1-72 are the first field. Bytes 73-127 of data are the second field, and bytes 128-129 are the third field. 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 whether the mobile phone 100 responds successfully or fails.

下文介绍通过手写笔控制手机100的展开角度的过程。The following describes the process of controlling the unfolding angle of the mobile phone 100 through the stylus.

下文中以手写笔上设置第一开关为例,该第一开关用于开启手写笔控制手机100的展开角度的功能。Hereinafter, the first switch is set on the stylus pen as an example, and the first switch is used to enable the function of the stylus pen to control the unfolding angle of the mobile phone 100 .

请参见图11所示,为本申请实施例一种可折叠式电子设备的控制方法的流程示意图。该方法可以适用于辅助设备,比如前文中的手写笔。如图11所示,该方法的流程包括:Please refer to FIG. 11 , which is a schematic flowchart of a control method for a foldable electronic device according to an embodiment of the present application. This method can be applied to auxiliary devices, such as the stylus mentioned above. As shown in Figure 11, the flow of the method includes:

S1101:手写笔检测用户输入第一操作。S1101: The stylus pen detects that a user inputs a first operation.

如前述内容可知,手写笔上可以设置第一开关,当用户想要通过手写笔控制手机100的展开角度时,可以按下该第一开关。因此,第一操作可以是第一开关被按下的操作。As can be seen from the foregoing, a first switch may be provided on the stylus, and when the user wants to control the unfolding angle of the mobile phone 100 through the stylus, the first switch may be pressed. Therefore, the first operation may be an operation in which the first switch is pressed.

S1102:手写笔响应于第一操作,向手机100发送第一指令,所述第一指令用于指示手机100进入屏幕控制状态;屏幕控制状态用于指示准备调整展开角度。S1102: In response to the first operation, the stylus sends a first instruction to the mobile phone 100, where the first instruction is used to instruct the mobile phone 100 to enter a screen control state; the screen control state is used to indicate that the deployment angle is ready to be adjusted.

示例性的,手写笔检测到第一开关被持续按下预设时长之后,向手机100发送第一指令。Exemplarily, the stylus pen sends the first instruction to the mobile phone 100 after detecting that the first switch is continuously pressed for a preset period of time.

示例性的,手写笔可以采用图7(a)所示的数据传输格式对要发送的数据进行封装,封装成第一指令,请参见图12所示,为第一指令的示意图。如图12所示,第一指令中的第三个字段的取值为6,即用于指示进入屏幕控制状态,第四字段到第六字段可以为空。Exemplarily, the stylus can use the data transmission format shown in FIG. 7( a ) to encapsulate the data to be sent, and encapsulate it into a first instruction. Please refer to FIG. 12 , which is a schematic diagram of the first instruction. As shown in FIG. 12 , the value of the third field in the first instruction is 6, that is, it is used to indicate entering the screen control state, and the fourth to sixth fields may be empty.

S1103:手机100进入屏幕控制状态。S1103: The mobile phone 100 enters the screen control state.

示例性的,手机100进入屏幕控制状态时,可以为改变展开角度做准备工作,比如记录手机100的初始状态,初始状态包括手机100当前哪一个本体与水平面接触,以及当前的展开角度(下文简称初始的展开角度)等。再比如,为转轴系统191上电等,具体过程将在后介绍。Exemplarily, when the mobile phone 100 enters the screen control state, preparations can be made for changing the deployment angle, such as recording the initial state of the mobile phone 100. The initial state includes which body of the mobile phone 100 is currently in contact with the horizontal plane, and the current deployment angle (hereinafter referred to as the initial deployment angle), etc. For another example, powering on the shaft system 191, etc., the specific process will be described later.

手机100记录初始状态(比如当前展开角度)之后,在初始状态上调整展开角度,比如,当前展开角度是30度,手机100接收到指令,指令中携带角度信息是30度,且所述指令指示展开手机100,则手机100在当前展开角度的基础上再增大30度,即调整之后,展开角度是60度。After the mobile phone 100 records the initial state (such as the current deployment angle), the deployment angle is adjusted in the initial state. For example, the current deployment angle is 30 degrees, and the mobile phone 100 receives an instruction, the angle information carried in the instruction is 30 degrees, and the instruction indicates When the mobile phone 100 is unfolded, the mobile phone 100 is further increased by 30 degrees on the basis of the current unfolding angle, that is, after adjustment, the unfolding angle is 60 degrees.

S1104:手机100向手写笔反馈第二指令,所述第二指令用于指示手机100响应成功。S1104: The mobile phone 100 feeds back a second instruction to the stylus, where the second instruction is used to indicate that the mobile phone 100 responds successfully.

手机100可以按照采用图7(b)所示的数据传输格式对要发送的数据进行封装,得到第二指令,将第二指令发送给手写笔。The mobile phone 100 can encapsulate the data to be sent according to the data transmission format shown in FIG. 7( b ), obtain a second instruction, and send the second instruction to the stylus.

示例性的,请参见图13所示,为第二指令的示意图。如图12所示,第二指令中的第三字段的取值为0,用于指示手机100响应成功。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 mobile phone 100 responds successfully.

应理解,响应成功可以用于指示手机100成功接收到第一指令,或者用于指示手机100成功进入屏幕控制状态,本申请实施例不限定。It should be understood that the response success 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, which is not limited in this embodiment of the present application.

S1105:手写笔检测到自身旋转第一角度。S1105: The stylus detects that it is rotated by the first angle.

手写笔上设置有传感器模块,包括陀螺仪或者角速度传感器,可以用于检测手写笔的旋转角度。The stylus is provided with a sensor module, including a gyroscope or an angular velocity sensor, which can be used to detect the rotation angle of the stylus.

作为一种示例,手写笔可以在检测到第一开关被按下时,通过传感器模块检测手写笔与水平面的夹角即初始角度E0,并记录初始角度E0。传感器模块可以实时的,或者周期性的检测手写笔与水平面的夹角。当手写笔在用户的操作下发生旋转时,传感器模块可以检测到手写笔旋转后的角度E1(手写笔旋转之后,与水平方向的夹角)。第一角度可以是E1与E0的差值。As an example, when the stylus pen detects that the first switch is pressed, the sensor module detects the included angle between the stylus pen and the horizontal plane, that is, the initial angle E0, and records the initial angle E0. The sensor module can detect the angle between the stylus and the horizontal plane in real time or periodically. When the stylus is rotated under the operation of the user, the sensor module can detect the angle E1 after the stylus is rotated (the angle between the stylus and the horizontal direction after the stylus is rotated). The first angle may be the difference between E1 and E0.

S1106:手写笔向手机100发送第三指令,所述第三指令可以用于指示所述第一角度,还可以用于指示折叠或展开手机100。S1106: The stylus sends a third instruction to the mobile phone 100, where the third instruction may be used to indicate the first angle, and may also be used to instruct the mobile phone 100 to be folded or unfolded.

如前述内容可知,手写笔可以根据E1和E0的差值确定是展开或折叠手机100,比如,E1和E0的差值是正数时,展开手机10,E1与E0的差值是负数时,折叠手机100。手写笔可以采用约定的通信方式对要发送的数据进行封装,得到第三指令。As can be seen from the foregoing, the stylus 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 a positive number, unfold the mobile phone 10, and when the difference between E1 and E0 is a negative number, fold the mobile phone 100. Phone 100. The stylus can encapsulate the data to be sent by using the agreed communication method to obtain the third instruction.

示例性的,请参见图14所示,为第三指令的示意图。如图14所示,第三指令中的第三字段的取值为空,第四字段的取值代表旋转后的角度E1,第五字段的取值代表展开,第六字段的取值代表初始角度E0。在图14所示的示例中,第三指令中包括初始角度E0和旋转后的角度E1,二者的差的绝对值即手写笔旋转了多少角度。For example, please refer to FIG. 14 , which is a schematic diagram of the third instruction. As shown in Figure 14, the value of the third field in the third instruction is empty, the value of the fourth field represents the rotated angle E1, the value of the fifth field represents expansion, and the value of the sixth field represents the initial Angle E0. In the example shown in FIG. 14 , the third instruction includes the initial angle E0 and the rotated angle E1 , and the absolute value of the difference between the two is the angle by which the stylus is rotated.

S1107:手机100基于第三指令,控制手机100的展开角度为第二角度。S1107: The mobile phone 100 controls the deployment angle of the mobile phone 100 to be the second angle based on the third instruction.

手机100接收到第三指令之后,可以解析该第三指令,确定E1与E0的差值的绝对值,得到手写笔的旋转角度,并确定第三指令中指示的展开或折叠。After receiving the third instruction, the mobile phone 100 can parse the third instruction, determine the absolute value of the difference between E1 and E0, obtain the rotation angle of the stylus, and determine the unfolding or folding indicated in the third instruction.

作为一种示例,手机100的旋转角度可以等于手写笔的旋转角度。As an example, the rotation angle of the mobile phone 100 may be equal to the rotation angle of the stylus.

举例来说,以手机100的初始状态包括第一本体与水平面接触,且手机100初始的展开角度是30度为例,若第三指令中指示展开手机100,且指示手写笔旋转30度,则手机100控制转轴系统191带动第二本体旋转30度,那么手机100最终的展开角度是60度。若第三指令中指示折叠手机100,且手写笔的旋转角度为30度,则手机100控制转轴系统191带动第二本体旋转30度,若手机100的初始的展开角度30度,那么手机100最终的展开角度是0度。For example, taking the initial state of the mobile phone 100 including the contact between the first body and the horizontal plane, and the initial deployment angle of the mobile phone 100 is 30 degrees, if the third command instructs to unfold the mobile phone 100 and instructs the stylus to rotate 30 degrees, then The mobile phone 100 controls the rotating shaft system 191 to drive the second body to rotate by 30 degrees, so the final unfolding angle of the mobile phone 100 is 60 degrees. If the third command instructs to fold the mobile phone 100 and the rotation angle of the stylus is 30 degrees, the mobile phone 100 controls the hinge system 191 to drive the second body to rotate by 30 degrees. The spread angle is 0 degrees.

作为另一种示例,手机100可以基于手写笔的旋转角度计算出另一个角度,手机100的旋转角度为计算出的角度。As another example, the mobile phone 100 may calculate another angle based on the rotation angle of the stylus, and the rotation angle of the mobile phone 100 is the calculated angle.

举例来说,以手机100的初始状态包括第一本体与水平面接触,且手机100初始的展开角度是30度为例,第三指令指示手写笔的旋转角度是30度,且第三指令指示展开手机100,则手机100基于30度计算另一个角度值,控制转轴系统191带动第二本体旋转计算出的角度。因此,手机100的最终的展开角度是初始展开角度与计算出的角度之和。For example, taking the initial state of the mobile phone 100 including the contact between the first body and the horizontal plane, and the initial deployment angle of the mobile phone 100 being 30 degrees, the third instruction instructs the rotation angle of the stylus to be 30 degrees, and the third instruction instructs the deployment For the mobile phone 100, the mobile phone 100 calculates another angle value based on 30 degrees, and controls the rotating shaft system 191 to drive the second body to rotate by the calculated angle. Therefore, the final deployment angle of the mobile phone 100 is the sum of the initial deployment angle and the calculated angle.

示例性的,手机100可以根据如下公式(1),计算旋转角度:Exemplarily, the mobile phone 100 can calculate the rotation angle according to the following formula (1):

Figure BDA0002009162160000171
Figure BDA0002009162160000171

其中,E1为手写笔旋转后的角度,E0为手写笔的初始角度,V0为预设角度,预设角度可以是手机100可以旋转的最大角度,比如V0=180度。Wherein, E1 is the rotation angle of the stylus pen, E0 is the initial angle of the stylus pen, V0 is a preset angle, and the preset angle may be the maximum angle that the mobile phone 100 can rotate, such as V0=180 degrees.

手机100根据第三指令中携带的E1、E0的取值,和V0的取值,可以计算旋转角度V。因此,手机100旋转的角度是V,而不是(E1-E0)。The mobile phone 100 can calculate the rotation angle V according to the values of E1, E0 and the value of V0 carried in the third instruction. Therefore, the angle by which the mobile phone 100 is rotated is V, not (E1-E0).

S1108:手机100向手写笔发送第四指令,该第四指令用于指示响应成功。S1108: The mobile phone 100 sends a fourth instruction to the stylus, where the fourth instruction is used to indicate that the response is successful.

示例性的,手机100旋转角度成功之后,可以向手写笔发送第四指令,用于指示旋转成功。当然,手机100旋转失败(比如转轴系统191工作异常,无法上电等,导致展开角度并未发生变化,或者,手机100已经展开到最大角度)之后,也可以向手写笔发送用于旋转失败的指令。Exemplarily, after the mobile phone 100 rotates the angle successfully, a fourth instruction may be sent to the stylus to indicate that the rotation is successful. Of course, after the rotation of the mobile phone 100 fails (for example, the rotating shaft system 191 works abnormally, cannot be powered on, etc., so that the deployment angle does not change, or the mobile phone 100 has been deployed to the maximum angle), the stylus can also be sent to the stylus for the rotation failure. instruction.

作为一种示例,当手写笔接收到用于指示手机100旋转失败的指令之后,可以输出提示信息,以提示用户手机100旋转失败。当然,手机100旋转失败之后,也可以自身输出提示信息,以提示用户旋转失败。As an example, after the stylus pen receives an instruction for indicating that the mobile phone 100 fails to rotate, it can output prompt information to prompt the user that the mobile phone 100 fails to rotate. Of course, after the mobile phone 100 fails to rotate, the mobile phone 100 can also output prompt information by itself to prompt the user that the rotation fails.

在另一些实施例中,手机100也可以无需向手写笔发送第四指令,本申请实施例不作限定。In other embodiments, the mobile phone 100 may also not need to send the fourth instruction to the stylus, which is not limited in the embodiments of the present application.

S1009:手写笔检测到第二操作。S1009: The stylus detects the second operation.

示例性的,第二操作可以是手写笔上的第一开关被释放的操作。Exemplarily, the second operation may be an operation in which the first switch on the stylus is released.

S1010:手写笔响应于第二操作,向手机100发送第五指令,所述第五指令用于指示手机100退出屏幕控制状态。S1010: In response to the second operation, the stylus sends a fifth instruction to the mobile phone 100, where the fifth instruction is used to instruct the mobile phone 100 to exit the screen control state.

示例性的,第五指令与前述的第一指令类似,在此不再重复赘述。Exemplarily, the fifth instruction is similar to the foregoing first instruction, and details are not repeated here.

S1111:手机100退出屏幕控制状态。S1111: The mobile phone 100 exits the screen control state.

示例性的,手机100退出屏幕控制状态时,可以关闭转轴系统191,比如将转轴系统191断电;或者,将记录的初始状态的相关数据删除。Exemplarily, when the mobile phone 100 exits the screen control state, the hinge system 191 may be turned off, for example, the hinge system 191 may be powered off; or, the recorded data related to the initial state may be deleted.

下面通过举例介绍手写笔对手机100的控制流程。The control flow of the stylus pen to the mobile phone 100 is described below by way of example.

示例1:Example 1:

请参见图15所示,为手写笔控制手机100的展开角度的流程示意图。如图15所示,该流程包括:Please refer to FIG. 15 , which is a schematic flowchart of a stylus pen controlling the unfolding angle of the mobile phone 100 . As shown in Figure 15, the process includes:

第一过程:手写笔水平放置,手机100闭合(展开角度为0度),且第二本体与水平面接触。手写笔检测到开关K1被长按后,向手机100发送第一指令,第一指令中第一个字段包括access code,第二个字段包括header,第三字段中的取值为6,用于指示手机100进入屏幕控制状态,其它字段为空。手机100接收到第一指令,进入屏幕控制状态,记录初始状态,初始状态包括初始的展开角度为0度。The first process: the stylus is placed horizontally, the mobile phone 100 is closed (the deployment angle is 0 degrees), and the second body is in contact with the horizontal plane. After the stylus detects that the switch K1 is long pressed, it sends a first command to the mobile phone 100. The first field in the first command includes the access code, the second field includes the header, and the value in the third field is 6, which is used for Indicates that the mobile phone 100 enters the screen control state, and other fields are empty. The mobile phone 100 receives the first instruction, enters the screen control state, and records the initial state, where the initial state includes that the initial deployment angle is 0 degrees.

第二过程:手写笔被用户旋转30度,手写笔向手机100发送第二指令,该第二指令中第一个字段包括access code,第二个字段包括header,第三个字段为空,第四个字段中取值为2、第五字段中取值为8,第六字段中取值为1。手机100接收到第二指令后,据图6所示的取值的含义解析每个取值的含义,并根据上述公式(1),确定需要旋转60度,即手机100控制转轴系统191带动第一本体旋转60度,最终的展开角度是60度。The second process: the stylus is rotated 30 degrees by the user, and the stylus sends a second command to the mobile phone 100. The first field of the second command includes the access code, the second field includes the header, the third field is empty, and the third field is empty. The value of the four fields is 2, the value of the fifth field is 8, and the value of the sixth field is 1. After the mobile phone 100 receives the second command, it analyzes the meaning of each value according to the meaning of the values shown in FIG. 6 , and determines that it needs to be rotated 60 degrees according to the above formula (1), that is, the mobile phone 100 controls the rotating shaft system 191 to drive the first value. A body is rotated 60 degrees, and the final deployment angle is 60 degrees.

第三个过程,手写笔被用户继续旋转30度,手写笔向手机100发送第三指令,该第三指令中第四字段中取值为3,第五字段是8,第六字段是2。手机100接收到第三指令后,根据图6所示的取值的含义解析每个取值的含义,并按照上述公式(1),确定需要旋转60度,则手机100控制转轴系统191带动第一本体继续旋转60度,最终的展开角度是120度。In the third process, the stylus is continuously rotated by the user by 30 degrees, and the stylus sends a third command to the mobile phone 100. The value of the fourth field in the third command is 3, the fifth field is 8, and the sixth field is 2. After the mobile phone 100 receives the third instruction, it analyzes the meaning of each value according to the meaning of the values shown in FIG. 6, and according to the above formula (1), it is determined that it needs to be rotated by 60 degrees, then the mobile phone 100 controls the rotating shaft system 191 to drive the first value. A body continues to rotate 60 degrees, and the final deployment angle is 120 degrees.

第四过程:手写笔被用户继续旋转30度,手写笔向手机100发送第四指令,该第四指令中第四字段的取值为4,第五字段的取值为8,第六字段中取值为3。手机100接收到第四指令后,据图6所示的取值的含义解析每个取值的含义,并根据前述公式(1),确定需要继续旋转60度,则手机控制转轴系统191带动第一本体继续旋转60度,最终的展开角度是180度。The fourth process: the stylus is continuously rotated by the user by 30 degrees, and the stylus sends a fourth instruction to the mobile phone 100. In the fourth instruction, the value of the fourth field is 4, the value of the fifth field is 8, and the value of the sixth field The value is 3. After the mobile phone 100 receives the fourth instruction, it analyzes the meaning of each value according to the meaning of the values shown in FIG. 6, and according to the aforementioned formula (1), it is determined that it needs to continue to rotate 60 degrees, then the mobile phone controls the rotating shaft system 191 to drive the first value. A body continues to rotate 60 degrees, and the final deployment angle is 180 degrees.

第五过程:手写笔检测到开关K1被释放后,向手机100发送第五指令,第五指令中第三字段中取值为7。手机100接收到第五指令后,退出屏幕控制状态。Fifth process: after detecting that the switch K1 is released, the stylus pen sends a fifth instruction to the mobile phone 100, and the value of the third field in the fifth instruction is 7. After receiving the fifth instruction, the mobile phone 100 exits the screen control state.

需要说明的是,在图15所示的过程中,手机100从0度打开到180度的过程中,可以自动点亮屏幕。It should be noted that, in the process shown in FIG. 15 , during the process of opening the mobile phone 100 from 0 degrees to 180 degrees, the screen can be automatically turned on.

作为一种示例,手机100可以根据当前的展开角度,判断点亮哪一个屏幕。比如,若当前展开角度处于第一角度范围内时,手机100点亮主屏;若当前展开角度处于第二角度范围内时,手机100点亮副屏,第二角度范围的最小值大于所述第一角度范围的最大值。As an example, the mobile phone 100 may determine which screen to light up according to the current deployment angle. For example, if the current deployment angle is within the first angle range, the mobile phone 100 lights up the main screen; if the current deployment angle is within the second angle range, the mobile phone 100 lights up the secondary screen, and the minimum value of the second angle range is greater than the second angle range. The maximum value of an angular range.

示例性,手机100上主屏和副屏可以是用户设置的;或者,手机100上的主屏和副屏可以是手机100出厂时默认设置好的;或者,手机100上的主屏可以是发生旋转的本体上屏幕,副屏是未发生旋转的本体上的屏幕;或者,手机100检测到用户注视哪一个屏幕(比如第一本体上的摄像头检测到人脸,则用户注视第一本体上的屏幕),则哪一个屏幕是主屏。Exemplarily, the main screen and the secondary screen on the mobile phone 100 may be set by the user; alternatively, the main screen and the secondary screen on the mobile phone 100 may be set by default when the mobile phone 100 leaves the factory; or, the main screen on the mobile phone 100 may be a body that rotates The upper screen, the secondary screen is the screen on the main body that has not rotated; or, the mobile phone 100 detects which screen the user is looking at (for example, if the camera on the first main body detects a human face, the user is looking at the screen on the first main body), Which screen is the home screen.

示例性的,继续以图15为例,手机100检测到展开角度是60度时,可以点亮主屏,假设主屏是发生旋转的本体的屏幕(即第一本体上的屏幕)。手机100点亮主屏之后,可以显示锁屏界面;或者手写笔上的开关K1上设置有指纹传感器,可以用于采集用户的指纹,并将采集到的指纹发送给手机100,手机100点亮主屏之后,可以验证该指纹与存储的指纹是否一致,若一致,则解锁设备,即主屏点亮后显示主界面。示例性的,手机100点亮主屏后,可以向手写笔发送一提示信息,该提示信息(比如语音提示)用于提示用户在手写笔侧录入指纹,手写笔检测到用户录入指纹之后,将指纹发送给手机100。示例性的,手写笔上的指纹传感器可以集成在图15所示的开关K1上,即当用户长按开关K1,通过手写笔控制手机100时,开关K1上的指纹传感器就采集到用户指纹,然后将采集到的指纹发送给手机100。Exemplarily, continuing to take FIG. 15 as an example, when the mobile phone 100 detects that the unfolding angle is 60 degrees, it can light up the main screen, assuming that the main screen is the screen of the rotating body (ie the screen on the first body). After the mobile phone 100 lights up the main screen, the lock screen interface can be displayed; or the switch K1 on the stylus is provided with a fingerprint sensor, which can be used to collect the user's fingerprint and send the collected fingerprint to the mobile phone 100, and the mobile phone 100 lights up the main screen After that, it can be verified whether the fingerprint is consistent with the stored fingerprint. If they are consistent, the device is unlocked, that is, the main interface is displayed after the main screen is lit. Exemplarily, after the mobile phone 100 lights up the home screen, it can send a prompt message to the stylus, and the prompt message (such as a voice prompt) is used to prompt the user to enter a fingerprint on the side of the stylus. Sent to mobile phone 100. Exemplarily, the fingerprint sensor on the stylus can 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 through the stylus, the fingerprint sensor on the switch K1 collects the user’s fingerprint, Then, the collected fingerprints are sent to the mobile phone 100 .

示例性的,主屏点亮之后,可以先显示锁屏界面,当指纹验证成功之后,进入主界面,或者,手机100可以先验证指纹,验证成功之后,可以直接显示主界面,无需显示锁屏界面。在第二个过程中,副屏可以处于灭屏状态。Exemplarily, after the main screen is turned on, the lock screen interface can be displayed first, and after the fingerprint verification is successful, the main interface is entered, or the mobile phone 100 can verify the fingerprint first, and after the verification is successful, the main interface can be directly displayed without displaying the lock screen interface. . In the second process, the secondary screen can be in an off-screen state.

在第三个过程中,手机100检测到打开120度,可以点亮副屏,副屏点亮后可以显示可以主屏相同的内容,即副屏和主屏的显示界面相同。当手机100检测到打开180度时,主屏和副屏作为一个完整的屏幕,显示一个界面,即手机100可以作为pad使用。具体过程将在后文介绍。In the third process, the mobile phone 100 detects that it is opened by 120 degrees, and can light up the secondary screen. After the secondary screen is lit, it can display the same content as the main screen, that is, the display interfaces of the secondary screen and the main screen are the same. When the mobile phone 100 detects that it is opened by 180 degrees, the main screen and the secondary screen act 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 introduced later.

示例2:Example 2:

请参见图16所示,为手写笔控制手机100的展开角度的流程示意图。对比图16所示的过程和图15所示的过程可知,图16所示的流程中,手写笔是逐渐从竖直放置状态改变成水平放置状态,所以,手机100的展开角度从180度调整为0度。Please refer to FIG. 16 , which is a schematic flowchart of a stylus pen controlling the unfolding angle of the mobile phone 100 . Comparing the process shown in FIG. 16 with the process shown in FIG. 15, it can be seen that in the process shown in FIG. 16, the stylus is gradually changed from the vertical placement state to the horizontal placement state, so the deployment angle of the mobile phone 100 is adjusted from 180 degrees is 0 degrees.

需要说明的是,在图16所示的过程中,手机100从180度到0度的过程中,可以逐渐熄灭屏幕。It should be noted that, in the process shown in FIG. 16 , during the process of the mobile phone 100 from 180 degrees to 0 degrees, the screen can be gradually turned off.

示例性的,图16所示的示例中,手机100的展开角度是180度(第一个过程),主屏和副屏可以作为一个完整的显示屏显示一个界面。在展开角度从180度减小到120度的过程(第二个过程)中,主屏和副屏可以作为两个单独的显示屏显示相同的界面。在展开角度从120度减小到60度的过程(第三个过程)中,可以熄灭副屏,在展开角度从60度减小到0度时,可以熄灭主屏。Exemplarily, 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 reducing the deployment angle from 180 degrees to 120 degrees (the second process), the main screen and the secondary screen can display the same interface as two separate display screens. In the process of reducing the deployment angle from 120 degrees to 60 degrees (the third process), the secondary screen can be turned off, and when the deployment angle is reduced from 60 degrees to 0 degrees, the main screen can be turned off.

下面介绍手机100中转轴系统191控制展开角度的过程。The following describes the process of controlling the unfolding angle by the rotating shaft system 191 of the mobile phone 100 .

请参见图17所示,为转轴系统191的示意图,如图17所示,转轴系统191中包括第一转轴系统和第二转轴系统,其中,第一转轴系统可以用于带动第一本体旋转,第二转轴系统可以用于带动第二本体旋转。如前述内容可知,手机100进入屏幕控制状态时,可以记录手机100的初始状态,初始状态包括手机100上哪一个本体与桌面接触,假设第一本体与桌面接触,则手机100第一转轴系统带动第一本体发生旋转;假设第二本体与桌面接触,则手机100控制第二转轴系统带动第二本体发生旋转。Please refer to FIG. 17, which is a schematic diagram of the rotating shaft system 191. As shown in FIG. 17, the rotating shaft system 191 includes a first rotating shaft system and a second rotating shaft system, wherein the first rotating shaft system can be used to drive the first body to rotate. The second shaft system can 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, and the initial state includes which body on the mobile phone 100 is in contact with the desktop. The first body rotates; if the second body is in contact with the desktop, the mobile phone 100 controls the second shaft system to drive the second body to rotate.

在一些实施例中,手机100可以通过压力传感器判断哪一个本体与物体接触。比如,手机100的一个本体与桌面接触,该本体上的压力传感器产生压力信号,手机100可以确定该本体与桌面接触,则通过另一个本体对应的转轴系统来控制另一个本体发生旋转。In some embodiments, the mobile phone 100 can determine which body is in contact with the object through the pressure sensor. For example, if a body of the mobile phone 100 is in contact with the desktop, a pressure sensor on the body generates a pressure signal, the mobile phone 100 can determine that the body is in contact with the desktop, and control the rotation of the other body through the shaft system corresponding to the other body.

在另一些实施例中,手机100也可以通过环境光传感器判断哪一个本体不需要发生旋转,比如,第一本体和第二本体上都设置有环境光传感器,若第一本体上的环境光传感器检测到环境光较弱,则手机100可以旋转第二本体。举例来说,假设用户握持手机100的第一本体,则第一本体上的环境光传感器检测到环境光较弱,手机100旋转第二本体。In other embodiments, the mobile phone 100 can also determine which body does not need to rotate through the ambient light sensor. For example, both the first body and the second body are provided with ambient light sensors. If the ambient light sensor on the first body When it is detected that the ambient light is weak, the mobile phone 100 can 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.

在其它实施例中,手机100还可以通过其它方式判断哪一个本体不需要发生旋转,比如,手机100判断第一本体上与用户手部的接触面积较大,则第一本体不需要旋转,第二本体旋转。In other embodiments, the mobile phone 100 can also determine which body does not need to be rotated in other ways. For example, if the mobile phone 100 determines that the contact area between the first body and the user's hand is larger, the first body does not need to be rotated, and the first body does not need to be rotated. The two bodies rotate.

以第一转轴系统为例,请参见图18(a)所示,第一转轴系统包括第一柱体和第二柱体,第二柱体可以是空心的,套设在第一柱体外,即第一柱体的外径小于第二柱体的内径。第一柱体与第一连接体连接,第一连接体与第一本体连接,所以当第一柱体发生旋转时,通过第一连接体带动第一本体发生旋转。Taking the first shaft system as an example, please refer to Fig. 18(a), the first shaft system includes a first cylinder and a second cylinder, and the second cylinder may be hollow and sleeved outside the first cylinder, That is, the outer diameter of the first cylinder is smaller than the inner diameter of the second cylinder. The first cylinder is connected with the first connecting body, and the first connecting body is connected with the first body, so when the first cylinder rotates, the first connecting body drives the first body to rotate.

第一柱体可以具有磁性,在第一柱体外、第二柱体内设置有四个磁体,用于带动第一柱体发生旋转。应理解,四个磁体可以是外表面缠绕着导线的金属体,当导线通电时,金属体产生磁性。The first cylinder may have magnetism, and four magnets are arranged outside the first cylinder and inside the second cylinder to drive the first cylinder to rotate. It should be understood that the four magnets may be metal bodies with wires wound around their outer surfaces, and when the wires are energized, the metal bodies generate magnetism.

示例性的,请继续参见图18(b)所示,第一柱体本身具有磁性,且第一柱体一半为S级,另一半为N级。4个金属体外都外绕着导线,每个金属体外围的导线与电源连接,当某个金属体外围的导线通电时,该金属体产生磁性,可以吸引或排斥第一柱体,进而导致第一柱体发生旋转。请继续参见图18(b)所示,当开关S3闭合时,第三磁体正对第一柱体的一侧呈S级,吸引第一柱体的N级。Exemplarily, please continue to refer to FIG. 18( b ), the first cylinder itself has magnetism, and half of the first cylinder is S-level, and the other half is N-level. The 4 metal bodies are surrounded by wires, and the wires around the periphery of each metal body are connected to the power supply. When the wire around a metal body is energized, the metal body generates magnetism, which can attract or repel the first cylinder, which in turn leads to the first cylinder. A cylinder rotates. Please continue to refer to Fig. 18(b), when the switch S3 is closed, the side of the third magnet facing the first cylinder is in the S-level, attracting the N-level of the first cylinder.

请参见图19所示,为手机100的两种形态的示意图。当第二本体与桌面接触,第一转轴系统的横截面如图19(a)所示,第一柱体带动第一本体发生旋转。作为一种示例,手机100可以设置四个磁体分别为第一磁体、第二磁体、第三磁体,第四磁体。其中,四个磁体的位置不会变化。比如,当第一本体和第二本体之间的夹角为0时,第一柱体的S级正对第一磁体,因为此时第一磁体正对第一柱体的一侧是N级。当第一本体和第二本体之间的夹角为90度时,第一柱体的S级正对第二磁体,因为,此时第二磁体正对第一柱体的一侧是N级。Please refer to FIG. 19 , which are schematic diagrams of two forms of the mobile phone 100 . When the second body is in contact with the desktop, the cross section of the first shaft system is shown in Figure 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, namely a first magnet, a second magnet, a third magnet, and a fourth magnet. Among them, the positions of the four magnets do not change. For example, when the angle between the first body and the second body is 0, the S-level of the first cylinder is facing the first magnet, because the side of the first magnet facing the first cylinder is the N-level at this time. . When the angle between the first body and the second body is 90 degrees, the S-level of the first cylinder is facing the second magnet, because at this time the side of the second magnet facing the first cylinder is the N-level .

当第一本体与桌面接触,第二转轴系统的横截面如图19(b)所示,第二转轴系统中的第一柱体带动第二本体发生旋转。作为一种示例,手机100可以设置四个磁体分别为第一磁体、第二磁体、第三磁体,第四磁体。其中,四个磁体的位置不会变化。比如,当第一本体和第二本体之间的夹角为0时,第一柱体的S级正对第一磁体,因为此时第一磁体正对第一柱体的一侧是N级。当第一本体和第二本体之间的夹角为90度时,第一柱体的S级正对第二磁体,因为,此时第二磁体正对第一柱体的一侧是N级。When the first body is in contact with the desktop, the cross section of the second shaft system is shown in Figure 19(b), and the first cylinder in the second 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. Among them, the positions of the four magnets do not change. For example, when the angle between the first body and the second body is 0, the S-level of the first cylinder is facing the first magnet, because the side of the first magnet facing the first cylinder is the N-level at this time. . When the angle between the first body and the second body is 90 degrees, the S-level of the first cylinder is facing the second magnet, because at this time the side of the second magnet facing the first cylinder is the N-level .

应理解,为了方便控制某一个金属体产生磁性,第一转轴系统或第二转轴系统中每个金属体外围的导线和电源之间可以设置一个开关。It should be understood that, in order to conveniently control a certain metal body to generate magnetism, a switch may be provided between the wires on the periphery of each metal body in the first rotating shaft system or the second rotating shaft system and the power source.

下面以手机100的第二本体与桌面接触,通过第一转轴系统带动第一本体发生旋转为例,进行说明。The following description will be given by taking the second body of the mobile phone 100 in contact with the desktop and driving the first body to rotate through the first rotating shaft system as an example.

手机100进入屏幕控制状态时,记录初始状态,初始状态可以包括初始得的展开角度,手机100接收到手写笔发送的控制指令,假设控制指令指示的角度信息为30度,手机100需要控制第一本体旋转30,也就是说,最终展开角度是60度(假设初始的展开角度也是30度),手机100中可以在存储的展开角度和S1\S2\S3\S4的闭合状态的对应关系中确定最终展开角度是60度时,S1\S2\S3\S4的闭合状态如何。When the mobile phone 100 enters the screen control state, the initial state is recorded. The initial state may include the initial expansion angle. The mobile phone 100 receives the control command sent by the stylus. Assuming that the angle information indicated by the control command is 30 degrees, the mobile phone 100 needs to control the first The body rotates 30 degrees, that is to say, the final deployment angle is 60 degrees (assuming the initial deployment angle is also 30 degrees), the mobile phone 100 can determine the corresponding relationship between the stored deployment angle and the closed state of S1\S2\S3\S4 When the final deployment angle is 60 degrees, what is the closed state of S1\S2\S3\S4.

请参见图20所示,为本申请实施例提供的一种对应关系的示例。手机100可以基于图20所示的对应关系,确定最终展开角度是60度时,S1闭合、S2闭合,S3和S4打开。因此,手机100将闭合S1、S2,打开S3、S4。请继续参见图18(b)所示,S1闭合、S2闭合,S3和S4打开时,第一磁体上与第一柱体正对的一侧为N级,第二磁体上与第一柱体正对的一侧也为N级。因此,第一主体上的S级在第一磁体和第二磁体的吸引力下,旋转30度,这样的话,第一柱体带动第一本体旋转30度,则手机100最终展开60度。Please refer to FIG. 20 , which is an example of a corresponding relationship provided by this embodiment of the present application. Based on the corresponding relationship shown in FIG. 20 , the mobile phone 100 can determine that when the final deployment angle is 60 degrees, S1 is closed, S2 is closed, and S3 and S4 are open. Therefore, the handset 100 will close S1, S2 and open S3, S4. Please continue to refer to Figure 18(b), when S1 is closed, S2 is closed, and S3 and S4 are open, the side of the first magnet opposite to the first cylinder is N-level, and the second magnet is connected to the first cylinder. The opposite side is also rated N. Therefore, the S stage on the first body rotates 30 degrees under the attractive force of the first magnet and the second magnet. In this case, the first cylinder drives the first body to rotate 30 degrees, and the mobile phone 100 is finally unfolded by 60 degrees.

需要说明的是,图20所示的对应关系中仅列举了4个展开角度对应的S1\S2\S3\S4的闭合状态,在实际应用中,还可以包括更多的展开角度对应的S1\S2\S3\S4的闭合状态、本申请实施例不一一列举。It should be noted that the correspondence shown in Figure 20 only lists the closed states of S1\S2\S3\S4 corresponding to the four deployment angles. The closed states of S2\S3\S4 and the embodiments of the present application are not listed one by one.

手机100中第二转轴系统也可以采用类似的方式带动第二本体发生旋转,为了说明书的简洁,在此不再赘述。The second rotating shaft system in the mobile phone 100 can also drive the second body to rotate in a similar manner, which is not repeated here for the sake of brevity of the description.

下面介绍手机100的软件架构The software architecture of the mobile phone 100 is described below

请参见图21所示,为本申请实施例提供的手机100的软件架构示意图。图21以安卓架构为例,如图所述,该架构包括4层,分别为:应用(application)层、框架(framework)层、系统层、内核(Linux)层。Please refer to FIG. 21 , which is a schematic diagram of the software architecture of the mobile phone 100 according to the embodiment of the present application. Figure 21 takes the Android architecture as an example. As shown in the figure, the architecture includes four layers, namely: an application layer, a framework layer, a system layer, and a kernel (Linux) layer.

其中,应用层包括各种应用程序,比如系统界面(system UI)、微信、相机等。Among them, the application layer includes various applications, such as system UI, WeChat, camera, and so on.

框架层,包括显示策略管理模块、多媒体系统(demand multimedia system,DMS)、窗口管理服务(window manager service,WMS)。其中,显示策略管理模块用于根据手机的开合状态,确实点亮模式,比如哪一个显示屏点亮,或者显示屏显示什么内容等等,具体内容将在后文介绍。The framework layer includes a display strategy management module, a multimedia system (demand multimedia system, DMS), and a window management service (window manager service, WMS). Among them, the display strategy management module is used to determine the lighting mode according to the opening and closing state of the mobile phone, such as which display screen is lit, or what content is displayed on the display screen, etc. The specific content will be introduced later.

DMS,用于将点亮模式发送给WMS。DMS, used to send lighting pattern to WMS.

WMS,用于按照DMS发送的点亮模式显示界面。WMS, used to display the interface according to the lighting mode sent by DMS.

系统库包括状态检测服务模块和surfaceflinger。其中,状态检测服务模块用于根据传感器数据确定手机的开合状态,并将确定出的开合状态上报框架层。Surfaceflinger用于触发显示驱动,以驱动显示屏显示界面。The system library includes the state detection service module and surfaceflinger. Among them, the state detection service module is used to determine the opening and closing state of the mobile phone according to the sensor data, and report the determined opening and closing state to the framework layer. Surfaceflinger is used to trigger the display driver to drive the display interface.

内核层,包括传感器驱动和显示驱动。其中传感器驱动用于将传感器采集的传感器数据上报系统层,传感器数据包括手机100的打开角度。显示驱动用于驱动显示屏显示界面。Kernel layer, including sensor driver and display driver. The sensor driver is used to report the sensor data collected by the sensor to the system layer, and the sensor data includes the opening angle of the mobile phone 100 . The display driver is used to drive the display interface of the display screen.

下面结合图3所示的手机100的硬件架构、以及图20所示的手机100软件架构为例,介绍手机100智能化点亮屏幕的过程。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 an example, the following describes the process of intelligently lighting the screen of the mobile phone 100 .

(1)、内核层中的传感器驱动将传感器采集到的传感器数据上报给系统库中的状态检测服务模块。其中,传感器数据包括手机100打开的角度。(1) The sensor driver in the kernel layer reports the sensor data collected by the sensor to the state detection service module in the system library. The sensor data includes the opening angle of the mobile phone 100 .

(2)、状态检测服务模块可以将手机100打开的角度上报给框架层中的显示策略管理模块。(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)、显示策略管理模块根据当前打开的角度,确定点亮模式。(3) The display strategy management module determines the lighting mode according to the current opening angle.

作为一种示例,显示策略管理模块可以根据当前打开的角度确定点亮模式,比如当前打开角度是60度时,点亮模式为主屏点亮、副屏熄灭的点亮模式。As an example, the display strategy management module may determine the lighting mode according to the current opening angle. For example, when the current opening angle is 60 degrees, the lighting mode is a lighting mode in which the main screen is turned on and the secondary screen is turned off.

应理解,手机100中可以存储有点亮模式和打开角度之间的对应关系。请参见图22所示,为本申请实施例提供的打开角度和点亮模式之间的对应关系的示例。手机100可以根据图22确定,当前打开的角度是60度时,处于区间[60,120]的范围内,对应的点亮模式为主屏点亮、副屏熄灭。It should be understood that the corresponding relationship between the lighting mode and the opening angle may be stored in the mobile phone 100 . Please refer to FIG. 22 , which is an example of the correspondence between the opening angle and the lighting mode provided by the embodiment of the present application. The mobile phone 100 can be determined according to FIG. 22 , when the current opening angle is 60 degrees, which is in the range of [60, 120], the corresponding lighting mode is to turn on the main screen and turn off the secondary screen.

(4)、显示策略管理模块确定点亮模式之后,还可以确定显示模式。(4) After the display strategy management module determines the lighting mode, it can also determine the display mode.

假设手机100当前打开角度是150,显示策略管理模块确定主屏、副屏点亮之后,还可以确定主屏和副屏分别显示什么界面。示例性的,请继续参见图22所示,手机100当前打开角度是150,可确定主屏和副屏分别显示相同的界面。请参见图23所示,手机100打开角度是150度时,主屏和副屏的显示界面相同。若手机100当前的打开角度是180度是,由图22所示的对应关系可知,主屏和副屏作为一个大屏幕显示一个界面,请参见图24所示,手机100主屏和副屏作为一个大屏幕,显示主界面。Assuming that the current opening angle of the mobile phone 100 is 150 degrees, after the display policy management module determines that the main screen and the secondary screen are lit, it can also determine which interface is displayed on the main screen and the secondary screen respectively. 22, the current opening angle of the mobile phone 100 is 150 degrees, and it can be determined that the main screen and the secondary screen display the same interface respectively. 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 secondary screen are used as a large screen to display an interface, as shown in FIG. 24, the main screen and the secondary screen of the mobile phone 100 are used as a large screen screen to display the main interface.

(4)、显示策略管理模块确定显示模式之后,可以通过DMS将显示模式发送给WMS。(4) After the display strategy management module determines the display mode, the display mode can be sent to the WMS through the DMS.

(5)、WMS将显示模式发送给system UI,systemUI基于该显示模式调整显示界面的参数。比如,显示模式为主屏点亮、副屏熄灭时,system UI可以调整显示界面的参数为适合主屏的参数,比如主屏的分辨率是1024*768,则system UI可以调整显示界面的分辨率为1024*768。(5) The WMS sends the display mode to the system UI, and the system UI adjusts the parameters of the display interface based on the display mode. For example, when the display mode is on the main screen and the secondary screen is off, the system UI can adjust the parameters of the display interface to the parameters suitable for the main screen. For example, the resolution of the main screen is 1024*768, then the system UI can adjust the resolution of the display interface to 1024 *768.

再比如,显示模式为主屏和副屏都点亮,且主屏和副屏分别显示相同的界面(请参见图22所示),则system UI可以调整显示界面的分辨率为1024*768,通过主屏显示,并调整另一显示界面的分辨率为2400*1200,通过副屏显示。For another example, if the display mode is on both the main screen and the secondary screen, and the main screen and the secondary screen display the same interface (see Figure 22), the system UI can adjust the resolution of the display interface to 1024*768, and the main screen display, and adjust the resolution of the other display interface to 2400*1200, and display it through the secondary screen.

需要说明的是,在图22、23、24中涉及到的主屏和副屏可以是手机100出厂时,默认设置好的,也可以是用户在使用手机100的过程中自定义的,还可以是手机100自动识别确定的。比如,以图1为例,手机100检测到当前第二本体与桌面接触,则确定第二本体对应的显示屏为副屏,第一本体对应的显示屏为主屏;当手机100检测到当前第一本体与桌面接触,则确定第一本体对应的显示屏为主屏,第二本体对应的显示屏为副屏。It should be noted that the main screen and the secondary screen involved in FIGS. 22 , 23 and 24 can be set by default when the mobile phone 100 leaves the factory, or they can be customized by the user in the process of using the mobile phone 100 , or they can be The mobile phone 100 automatically recognizes that it is determined. 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 determines that the display screen corresponding to the second body is the secondary screen, and the display screen corresponding to the first body is the main screen; when the mobile phone 100 detects that the current second body is in contact with the desktop When a main body is in contact with the desktop, it is determined that the display screen corresponding to the first main body is the main screen, and the display screen corresponding to the second main body is the secondary screen.

通过以上描述可知,本申请实施例中,可折叠式电子设备的开合状态可以通过辅助设备远程控制,方便用户操作,提升用户体验。It can be seen from the above description that, in the embodiment of the present application, the opening and closing states of the foldable electronic device can be remotely controlled by the auxiliary device, which facilitates user operations and improves user experience.

本申请的各个实施方式可以任意进行组合,以实现不同的技术效果。Various embodiments of the present application can be arbitrarily combined to achieve different technical effects.

上述本申请提供的实施例中,从电子设备(手机100)作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。In the above embodiments provided in the present application, the methods provided in the embodiments of the present application are introduced from the perspective of an electronic device (mobile phone 100 ) as an execution subject. In order to implement the functions in the methods provided by the above embodiments of the present application, the electronic device may include a hardware structure and/or software modules, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请实施例可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、电可擦可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、只读光盘(compactdisc read-Only memory,CD-ROM)或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(digital subscriber line,DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本申请实施例所使用的,盘(disk)和碟(disc)包括压缩光碟(compact disc,CD)、激光碟、光碟、数字通用光碟(digital video disc,DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。From the description of the above embodiments, those skilled in the art can clearly understand that the embodiments of the present application may 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 medium can be any available medium that a computer can access. Take this as an example but not limited to: computer readable media may include RAM, ROM, electrically erasable programmable read only memory (EEPROM), compact disc read-Only memory (CD-ROM) ) or other optical disk storage, magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer. also. Any connection can be appropriately made into a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, Then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fusing of the pertinent medium. As used in the embodiments of the present application, disks and discs include compact discs (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks, and Blu-ray discs, wherein 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 a word, the above descriptions are merely examples of the present application, and are not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of this application shall be included within the protection scope of this application.

Claims (32)

1.一种可折叠式电子设备的控制方法,其特征在于,应用于第一电子设备,所述第一电子设备与可折叠式电子设备通信,所述第一电子设备上设置第一开关,所述第一电子设备包括传感器模块和通信模块,所述方法包括:1. A control method for a foldable electronic device, characterized in that it is applied to a first electronic device, the first electronic device communicates with the foldable electronic device, and a first switch is provided on the first electronic device, The first electronic device includes a sensor module and a communication module, and the method includes: 检测到针对第一开关的第一操作;detecting a first operation for the first switch; 响应于所述第一操作,所述传感器模块检测所述第一电子设备的旋转角度,所述通信模块向所述可折叠式电子设备发送第一指令,所述第一指令包括用于指示角度信息的第一指示信息和第二指示信息,所述角度信息对应所述传感器模块检测的所述第一电子设备的旋转角度;所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。In response to the first operation, the sensor module detects the rotation angle of the first electronic device, and the communication module sends a first instruction to the foldable electronic device, the first instruction includes an instruction for indicating an angle The first indication information and the second indication information of the information, the angle information corresponds to the rotation angle of the first electronic device detected by the sensor module; the second indication information is used to indicate unfolding or folding of the foldable Electronic equipment. 2.如权利要求1所述的方法,其特征在于,所述方法还包括:2. The method of claim 1, wherein the method further comprises: 接收所述可折叠式电子设备发送的第二指令,所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败;receiving a second instruction sent by the foldable electronic device, where the second instruction is used to instruct the foldable electronic device to unfold or fold successfully or fail; 响应于所述第二指令,所述第一电子设备输出第一提示信息,用于提示所述可折叠式电子设备响应失败。In response to the second instruction, the first electronic device outputs first prompt information for prompting the foldable electronic device to fail to respond. 3.如权利要求1或2所述的方法,其特征在于,所述方法还包括:3. The method of claim 1 or 2, wherein the method further comprises: 输出第二提示信息,所述第二提示信息用于提示用户操作所述第一电子设备以控制所述可折叠式电子设备;outputting second prompt information, the second prompt information is used to prompt the user to operate the first electronic device to control the foldable electronic device; 所述第二提示信息包括语音信息、文字信息、提示灯闪烁、震动中的一种或多种。The second prompt information includes one or more of voice information, text information, prompt light flashing, and vibration. 4.如权利要求1-3任一所述的方法,其特征在于,所述第一电子设备上设置指纹传感器,所述方法还包括:4. The method according to any one of claims 1-3, wherein a fingerprint sensor is provided on the first electronic device, and the method further comprises: 通过所述指纹传感器采集用户的指纹;collecting the user's fingerprint by the fingerprint sensor; 通过所述通信模块将所述指纹发送给所述可折叠式电子设备,所述指纹用于解锁所述可折叠式电子设备。The fingerprint is sent to the foldable electronic device through the communication module, and the fingerprint is used to unlock the foldable electronic device. 5.如权利要求1-4任一所述的方法,其特征在于,所述第一电子设备上设置第二开关,所述方法还包括:5. The method according to any one of claims 1-4, wherein a second switch is provided on the first electronic device, and the method further comprises: 当检测到所述第二开关被触发时,输出第三提示信息,以提示用于停止控制所述可折叠式电子设备。When it is detected that the second switch is triggered, third prompt information is output to prompt for stopping controlling the foldable electronic device. 6.如权利要求1-5任一所述的方法,其特征在于,所述第一电子设备为手写笔。6. The method according to any one of claims 1-5, wherein the first electronic device is a stylus. 7.一种可折叠式电子设备的控制方法,其特征在于,应用于可折叠式电子设备,所述可折叠式电子设备与第一电子设备通信,所述可折叠式电子设备中包括第一本体、第二本体和连接装置,所述连接装置用于控制所述可折叠式电子设备的展开角度,所述展开角度为第一本体和所述第二本体之间的夹角;所述方法包括:7. A control method for a foldable electronic device, characterized in that it is applied to a foldable electronic device, the foldable electronic device communicates with a first electronic device, and the foldable electronic device includes a first electronic device. A body, a second body and a connecting device, the connecting device is used to control the unfolding angle of the foldable electronic device, the unfolding angle being the angle between the first body and the second body; the method include: 接收所述第一电子设备发送的第一指令,所述第一指令包括第一指示信息和第二指示信息,所述第一指示信息用于指示第一角度信息,所述第二指示信息用于指示展开或折叠所述可折叠式电子设备;Receive a first instruction sent by the first electronic device, where the first instruction includes first indication information and second indication information, the first indication information is used to indicate the first angle information, and the second indication information is used for to instruct the unfolding or folding of the foldable electronic device; 根据所述第二指示信息通过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度,所述第二角度是基于所述第一角度信息确定的角度。Control the foldable electronic device to unfold or fold a second angle according to the second indication information through the connection device, where the second angle is an angle determined based on the first angle information. 8.如权利要求7所述的方法,其特征在于,所述可折叠式电子设备包括属于所述第一本体的第一显示屏和属于第二本体的第二显示屏;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 the second body; 所述方法还包括:在接收所述第一电子设备发送的第一指令之前,所述第一显示屏和所述第二显示屏均熄灭,The method further includes: before receiving the first instruction sent by the first electronic device, both the first display screen and the second display screen are turned off, 在接收所述第一指令之后,当所述展开角度大于第一预设角度时,点亮所述第一显示屏;当所述展开角度大于第二预设角度时,点亮所述第一显示屏所述和第二显示屏;After receiving the first instruction, when the deployment angle is greater than a first preset angle, the first display screen is lit; when the deployment angle is greater than a second preset angle, the first display screen is lit the display screen and the second display screen; 其中,所述第二预设角度大于所述第一预设角度。Wherein, the second preset angle is greater than the first preset angle. 9.如权利要求8所述的方法,其特征在于,所述方法还包括: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 each display a part of the same display interface. 10.如权利要求7-9任一所述的方法,其特征在于,所述可折叠式电子设备处于锁屏状态,所述方法还包括:10. The method according to any one of claims 7-9, wherein the foldable electronic device is in a screen-locked state, and the method further comprises: 接收所述第一电子设备发送的指纹;receiving the fingerprint sent by the first electronic device; 若所述指纹验证成功,所述可折叠式电子设备解锁。If the fingerprint verification is successful, the foldable electronic device is unlocked. 11.如权利要求7-10任一所述的方法,其特征在于,所述第二角度等于所述第一角度,或者所述第二角度是基于如下公式计算的:11. The method according to any one of claims 7-10, wherein the second angle is equal to the first angle, or the second angle is calculated based on the following formula:
Figure FDA0002009162150000021
Figure FDA0002009162150000021
其中,v是所述第二角度,v0是预设角度,E为所述第一角度。Wherein, v is the second angle, v0 is a preset angle, and E is the first angle.
12.如权利要求7-11任一所述的方法,其特征在于,所述方法还包括:12. The method according to any one of claims 7-11, wherein the method further comprises: 当通过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度失败时,输出提示信息,所述提示信息用于提示所述可折叠式电子设备展开或者折叠失败。When the foldable electronic device fails to be unfolded or folded by the second angle controlled by the connection device, prompt information is output, and the prompt information is used to prompt the foldable electronic device to fail to unfold or fold. 13.如权利要求7-12任一所述的方法,其特征在于,所述方法还包括:13. The method according to any one of claims 7-12, wherein the method further comprises: 向所述第一电子设备发送第二指令,所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败。Send a second instruction to the first electronic device, where the second instruction is used to instruct the foldable electronic device to expand or fold successfully or fail. 14.如权利要求7-13任一所述的方法,其特征在于,所述第一角度信息与所述第一电子设备的旋转角度对应。14. The method according to any one of claims 7-13, wherein the first angle information corresponds to a rotation angle of the first electronic device. 15.一种第一电子设备,其特征在于,所述第一电子设备上设置第一开关,所述第一电子设备包括传感器模块和通信模块;所述第一电子设备与可折叠式电子设备通信,15. A first electronic device, characterized in that a first switch is provided on the first electronic device, the first electronic device comprises a sensor module and a communication module; the first electronic device and the foldable electronic device communication, 所述第一开关,用于接收第一操作;the first switch for receiving a first operation; 所述传感器模块,用于检测所述第一电子设备的旋转角度;the sensor module for detecting the rotation angle of the first electronic device; 所述通信模块,用于向所述可折叠式电子设备发送第一指令,所述第一指令包括用于指示角度信息的第一指示信息和第二指示信息,所述角度信息对应所述传感器模块检测的所述第一电子设备的旋转角度;所述第二指示信息用于指示展开或折叠所述可折叠式电子设备。The communication module is configured to send a first instruction to the foldable electronic device, where the first instruction includes first instruction information and second instruction information for indicating angle information, the angle information corresponding to the sensor The rotation angle of the first electronic device detected by the module; the second indication information is used to instruct to unfold or fold the foldable electronic device. 16.如权利要求15所述的第一电子设备,其特征在于,所述通信模块还用于接收所述可折叠式电子设备发送的第二指令,所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败;16. The first electronic device according to 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 used to instruct the foldable electronic device Successful or unsuccessful unfolding or folding of the foldable electronic device; 所述第一电子设备还包括输出设备,所述输出设备用于输出第一提示信息,用于提示所述可折叠式电子设备响应失败。The first electronic device further includes an output device, where the output device is configured to output first prompt information for prompting the foldable electronic device to fail to respond. 17.如权利要求15或16所述的第一电子设备,其特征在于,所述第一电子设备的输出设备用于输出第二提示信息,所述第二提示信息用于提示用户操作所述第一电子设备以控制所述可折叠式电子设备;17. The first electronic device according to claim 15 or 16, wherein the output device of the first electronic device is used to output second prompt information, and the second prompt information is used to prompt a user to operate the a first electronic device to control the foldable electronic device; 所述第二提示信息包括语音信息、文字信息、提示灯闪烁、震动中的一种或多种。The second prompt information includes one or more of voice information, text information, prompt light flashing, and vibration. 18.如权利要求15-17任一所述的第一电子设备,其特征在于,所述第一电子设备上设置指纹传感器,所述指纹传感器用于采集用户的指纹;18. The first electronic device according to any one of claims 15-17, wherein a fingerprint sensor is provided on the first electronic device, and the fingerprint sensor is used to collect a user's fingerprint; 所述通信模块还用于将所述指纹发送给所述可折叠式电子设备,所述指纹用于解锁所述可折叠式电子设备。The communication module is further configured to send the fingerprint to the foldable electronic device, and the fingerprint is used to unlock the foldable electronic device. 19.如权利要求15-18任一所述的第一电子设备,其特征在于,所述第一电子设备上设置第二开关,所述第二开关用于检测第二操作;19. The first electronic device according to any one of claims 15-18, wherein a second switch is provided on the first electronic device, and the second switch is used to detect a second operation; 所述第一电子设备的输出设备,用于输出第三提示信息,以提示用于停止控制所述可折叠式电子设备。The output device of the first electronic device is used for outputting third prompt information to prompt for stopping controlling the foldable electronic device. 20.如权利要求15-19任一所述的第一电子设备,其特征在于,所述第一电子设备为手写笔。20. The first electronic device according to any one of claims 15-19, wherein the first electronic device is a stylus. 21.一种可折叠式电子设备,其特征在于,所述可折叠式电子设备包括:21. A foldable electronic device, wherein the foldable electronic device comprises: 第一本体和第二本体;a first body and a second body; 连接装置,用于控制所述可折叠式电子设备的展开角度,所述展开角度为第一本体和所述第二本体之间的夹角;a connecting device for controlling the unfolding angle of the foldable electronic device, the unfolding angle being the angle between the first body and the second body; 通信模块,用于接收第一电子设备发送的第一指令,所述第一指令包括第一指示信息和第二指示信息,所述第一指示信息用于指示第一角度信息,所述第二指示信息用于指示展开或折叠所述可折叠式电子设备;A communication module, configured to receive a first instruction sent by a first electronic device, where the first instruction includes first indication information and second indication information, the first indication information is used to indicate first angle information, the second indication information The instruction information is used to instruct unfolding or folding of the foldable electronic device; 处理器,用于根据所述第二指示信息控制所述连接装置展开或折叠所述可折叠式电子设备第二角度,所述第二角度是基于所述第一角度信息确定的角度。The processor is configured to control the connecting device to unfold or fold the foldable electronic device by a second angle according to the second indication information, where the second angle is an angle determined based on the first angle information. 22.如权利要求21所述的可折叠式电子设备,其特征在于,所述可折叠式电子设备包括属于所述第一本体的第一显示屏和属于第二本体的第二显示屏;22. The foldable electronic device according to claim 21, wherein the foldable electronic device comprises a first display screen belonging to the first body and a second display screen belonging to the second body; 所述处理器,还用于在所述可折叠式电子设备的展开角度大于第一预设角度时,点亮所述第一显示屏;在所述展开角度大于第二预设角度时,控制所述第一显示屏所述和第二显示屏点亮;The processor is further configured to light up 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 greater than a second preset angle, control the The first display screen and the second display screen are lit; 其中,所述第二预设角度大于所述第一预设角度。Wherein, the second preset angle is greater than the first preset angle. 23.如权利要求22所述的可折叠式电子设备,其特征在于,所述第一显示屏和所述第二显示屏分别显示相同的界面,或者所述第一显示屏和所述第二显示屏作为一个显示屏,各显示同一个显示界面的一部分。23. The foldable electronic device according to claim 22, wherein the first display screen and the second display screen respectively display the same interface, or the first display screen and the second display screen The display screen acts as a display screen, and each displays a part of the same display interface. 24.如权利要求21-23任一所述的可折叠式电子设备,其特征在于,所述可折叠式电子设备处于锁屏状态,所述通信模块还用于接收所述第一电子设备发送的指纹;24. The foldable electronic device according to any one of claims 21-23, wherein the foldable electronic device is in a screen-locked state, and the communication module is further configured to receive a transmission from the first electronic device fingerprints; 所述处理器还用于在所述指纹验证成功时,控制所述可折叠式电子设备解锁。The processor is further configured to control the foldable electronic device to unlock when the fingerprint verification is successful. 25.如权利要求21-24任一所述的可折叠式电子设备,其特征在于,所述第二角度等于所述第一角度,或者所述第二角度是基于如下公式计算的:25. The foldable electronic device according to any one of claims 21-24, wherein the second angle is equal to the first angle, or the second angle is calculated based on the following formula:
Figure FDA0002009162150000031
Figure FDA0002009162150000031
其中,v是所述第二角度,v0是预设角度,E为所述第一角度。Wherein, v is the second angle, v0 is a preset angle, and E is the first angle.
26.如权利要求21-25任一所述的可折叠式电子设备,其特征在于,所述第一电子设备的输出设备用于:26. The foldable electronic device according to any one of claims 21-25, wherein the output device of the first electronic device is used for: 当通过所述连接装置控制所述可折叠式电子设备展开或者折叠第二角度失败时,输出提示信息,所述提示信息用于提示所述可折叠式电子设备展开或者折叠失败。When the foldable electronic device fails to be unfolded or folded by the second angle controlled by the connection device, prompt information is output, and the prompt information is used to prompt the foldable electronic device to fail to unfold or fold. 27.如权利要求21-26任一所述的可折叠式电子设备,其特征在于,所述通信模块还用于:向所述第一电子设备发出第二指令,所述第二指令用于指示所述可折叠式电子设备展开或折叠成功或失败。27. The foldable electronic device according to any one of claims 21-26, wherein the communication module is further configured to: issue a second instruction to the first electronic device, wherein the second instruction is used for Indicates success or failure of unfolding or folding of the foldable electronic device. 28.如权利要求21-27任一所述的可折叠式电子设备,其特征在于,所述第一角度信息与所述第一电子设备的旋转角度对应。28. The foldable electronic device according to any one of claims 21-27, wherein the first angle information corresponds to a rotation angle of the first electronic device. 29.一种第一电子设备,其特征在于,包括第一开关、传感器模块和通信模块;29. A first electronic device, comprising a first switch, a sensor module and a communication module; 还包括一个或多个处理器;存储器;一个或多个应用程序;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行如权利要求1-6中任一所述的方法步骤。also includes one or more processors; 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, The instructions, when executed by the electronic device, cause the electronic device to perform the method steps of any one of claims 1-6. 30.一种可折叠式电子设备,其特征在于,包括第一本体、第二本体、连接装置和通信模块;30. A foldable electronic device, comprising a first body, a second body, a connecting device and a communication module; 还包括一个或多个处理器;存储器;一个或多个应用程序;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行如权利要求7-14中任一所述的方法步骤。also includes one or more processors; 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, The instructions, when executed by the electronic device, cause the electronic device to perform the method steps of any of claims 7-14. 31.一种计算机存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在第一电子设备上运行时,使得所述第一电子设备执行如权利要求1至6任一所述的方法。31. A computer storage medium, characterized in that the computer-readable storage medium comprises a computer program that, when the computer program runs on a first electronic device, causes the first electronic device to perform any one of claims 1 to 6. a described method. 32.一种计算机存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在可折叠式电子设备上运行时,使得所述可折叠式电子设备执行如权利要求7至14任一所述的方法。32. A computer storage medium, characterized in that the computer-readable storage medium comprises a computer program that, when the computer program is run on a foldable electronic device, causes the foldable electronic device to perform as claimed in claims 7 to 7. 14. The method of any one.
CN201910239290.8A 2019-02-28 2019-03-27 A control method of a foldable electronic device 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 true CN111625052A (en) 2020-09-04
CN111625052B 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 A control method of a foldable electronic device and related equipment

Country Status (1)

Country Link
CN (1) CN111625052B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112510779A (en) * 2020-11-25 2021-03-16 维沃移动通信有限公司 Charging apparatus and charging method
CN115118815A (en) * 2022-08-29 2022-09-27 荣耀终端有限公司 Anti-reverse-folding alarm method and related device
WO2023124189A1 (en) * 2021-12-29 2023-07-06 荣耀终端有限公司 Foldable electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140226276A1 (en) * 2013-02-13 2014-08-14 Young Ho Sung Notebook-type computer with open and angle adjustment function, and mouse apparatus for the same
CN105607763A (en) * 2014-11-14 2016-05-25 苹果公司 Stylus with inertial sensor
US20170357292A1 (en) * 2016-06-14 2017-12-14 Lg Electronics Inc. Foldable device and controlling method thereof
CN107885277A (en) * 2017-10-19 2018-04-06 广东欧珀移动通信有限公司 A kind of method, apparatus, mobile terminal and storage medium for adjusting display screen angle
CN108228061A (en) * 2017-12-29 2018-06-29 北京珠穆朗玛移动通信有限公司 Method for information display, mobile terminal and storage medium based on double screen
CN108513065A (en) * 2018-03-23 2018-09-07 云谷(固安)科技有限公司 A kind of method and gesture note remote control of the straighforward operation of gesture note

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140226276A1 (en) * 2013-02-13 2014-08-14 Young Ho Sung Notebook-type computer with open and angle adjustment function, and mouse apparatus for the same
CN105607763A (en) * 2014-11-14 2016-05-25 苹果公司 Stylus with inertial sensor
US20170357292A1 (en) * 2016-06-14 2017-12-14 Lg Electronics Inc. Foldable device and controlling method thereof
CN107885277A (en) * 2017-10-19 2018-04-06 广东欧珀移动通信有限公司 A kind of method, apparatus, mobile terminal and storage medium for adjusting display screen angle
CN108228061A (en) * 2017-12-29 2018-06-29 北京珠穆朗玛移动通信有限公司 Method for information display, mobile terminal and storage medium based on double screen
CN108513065A (en) * 2018-03-23 2018-09-07 云谷(固安)科技有限公司 A kind of method and gesture note remote control of the straighforward operation of gesture note

Cited By (5)

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

Also Published As

Publication number Publication date
CN111625052B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN112882777B (en) Split-screen display method and electronic device
CN112394891B (en) Screen projection method and electronic device
WO2020228815A1 (en) Voice-based wakeup method and device
US10939065B2 (en) Display apparatus and method for controlling display of display apparatus
CN112115444B (en) Unlocking method and electronic equipment
CN111625052B (en) A control method of a foldable electronic device and related equipment
WO2019228293A1 (en) Display control method and terminal
US20170180918A1 (en) Display apparatus and method for controlling display apparatus
US20130162502A1 (en) Dynamically controlling display mode of external device coupled to user equipment
WO2019174459A1 (en) Application processing method and mobile terminal
WO2021083040A1 (en) Message viewing method and terminal
CN111459333A (en) Content display method and electronic equipment
CN115580677B (en) Method for controlling equipment, electronic equipment and storage medium
JP2017529621A (en) Display device, system for providing UI, and method for providing the same
CN107168818A (en) Terminal and brush machine failure recovery method
CN115390620B (en) Method for operating an electronic device and the electronic device
CN114449098B (en) Display method and electronic equipment
WO2021082770A1 (en) Method and apparatus for interface display, and electronic device
CN112114883A (en) Terminal awakening method, terminal and computer storage medium
WO2021098707A1 (en) Application program control method and electronic device
CN114327326A (en) A display device and display method
CN114296679A (en) A method and display device for fast start broadcasting in speaker mode
WO2020173388A1 (en) Control method for foldable electronic device, and related device
WO2020220993A1 (en) Message display method and mobile terminal
CN114302377A (en) Display device and communication connection method

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