Movatterモバイル変換


[0]ホーム

URL:


CN116709477B - Sleep awakening method, electronic device, bluetooth peripheral and storage medium - Google Patents

Sleep awakening method, electronic device, bluetooth peripheral and storage medium
Download PDF

Info

Publication number
CN116709477B
CN116709477BCN202211517348.9ACN202211517348ACN116709477BCN 116709477 BCN116709477 BCN 116709477BCN 202211517348 ACN202211517348 ACN 202211517348ACN 116709477 BCN116709477 BCN 116709477B
Authority
CN
China
Prior art keywords
state
bluetooth peripheral
bluetooth
screen
indication information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211517348.9A
Other languages
Chinese (zh)
Other versions
CN116709477A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co LtdfiledCriticalHonor Device Co Ltd
Publication of CN116709477ApublicationCriticalpatent/CN116709477A/en
Priority to PCT/CN2023/117338priorityCriticalpatent/WO2024109259A1/en
Application grantedgrantedCritical
Publication of CN116709477BpublicationCriticalpatent/CN116709477B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

A dormancy awakening method, an electronic device, a Bluetooth peripheral and a storage medium, wherein the electronic device and the Bluetooth peripheral are connected in a wireless way, and the method comprises the following steps: when the electronic equipment is switched from the first state to the second state, the electronic equipment sends first indication information to the Bluetooth peripheral equipment. The first indication information is used for indicating the Bluetooth peripheral to shield the dormancy awakening function of the Bluetooth peripheral. The Bluetooth peripheral receives first indication information from the electronic equipment, and the Bluetooth peripheral responds to the first indication information to shield a dormancy awakening function of the Bluetooth peripheral. In a first state, a display screen of the electronic equipment is on; in the second state, the display screen is off or on. Thus, the cruising ability of the Bluetooth peripheral can be improved.

Description

Translated fromChinese
休眠唤醒方法、电子设备、蓝牙外设及存储介质Sleep awakening method, electronic device, bluetooth peripheral and storage medium

本申请要求在2022年11月22日提交中国专利局、申请号为202211469261.9、申请名称为“一种手写笔的休眠唤醒方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on November 22, 2022, with application number 202211469261.9 and application name “A sleep and wake-up method for a stylus pen and an electronic device”, the entire contents of which are incorporated by reference in this application.

技术领域Technical Field

本申请涉及终端技术领域,尤其涉及一种休眠唤醒方法、电子设备、蓝牙外设及存储介质。The present application relates to the field of terminal technology, and in particular to a sleep and wake-up method, an electronic device, a Bluetooth peripheral device and a storage medium.

背景技术Background technique

鉴于蓝牙技术可支持电子设备之间的短距离通信的特点,很多电子设备都可以支持外设的蓝牙设备,即蓝牙外设。例如,手机、平板电脑等电子设备可支持电子手写笔、键盘等蓝牙外设。而对于蓝牙外设而言,为了便于用户携带,蓝牙外设的电池容量通常较小,续航时间短。针对这一情况,蓝牙外设可配置有休眠唤醒机制,以保证蓝牙外设的续航能力。Given that Bluetooth technology can support short-distance communication between electronic devices, many electronic devices can support external Bluetooth devices, i.e., Bluetooth peripherals. For example, electronic devices such as mobile phones and tablets can support Bluetooth peripherals such as electronic styluses and keyboards. As for Bluetooth peripherals, in order to facilitate users to carry them, the battery capacity of Bluetooth peripherals is usually small and the battery life is short. In view of this situation, Bluetooth peripherals can be configured with a sleep wake-up mechanism to ensure the battery life of Bluetooth peripherals.

目前,一些蓝牙外设的休眠唤醒机制是通过检测蓝牙外设的运行状态,判断蓝牙外设是否进入休眠状态或者唤醒处于休眠状态的蓝牙外设。At present, the sleep and wake-up mechanism of some Bluetooth peripherals is to determine whether the Bluetooth peripheral enters the sleep state or wake up the Bluetooth peripheral in the sleep state by detecting the running state of the Bluetooth peripheral.

但是,对于便携式蓝牙外设而言,在蓝牙外设被用户携带的场景下,蓝牙外设很有可能是一直处于运动状态的。因此,可能会导致蓝牙外设被反复休眠唤醒,使得蓝牙外设在未使用状态下掉电更快,严重缩短蓝牙外设的续航能力。However, for portable Bluetooth peripherals, when the Bluetooth peripherals are carried by users, they are likely to be in motion all the time. Therefore, the Bluetooth peripherals may be repeatedly awakened from sleep mode, causing the Bluetooth peripherals to lose power faster when not in use, seriously shortening the battery life of the Bluetooth peripherals.

发明内容Summary of the invention

有鉴于此,本申请提供了一种休眠唤醒方法、电子设备、蓝牙外设及存储介质,减少蓝牙外设被误唤醒的情况,提升蓝牙外设的续航能力。In view of this, the present application provides a sleep wake-up method, an electronic device, a Bluetooth peripheral and a storage medium to reduce the situation where the Bluetooth peripheral is woken up by mistake and improve the battery life of the Bluetooth peripheral.

第一方面,本申请提供一种休眠唤醒方法,应用于电子设备和蓝牙外设。该电子设备与蓝牙外设建立有无线连接。该蓝牙外设包括电子手写笔或蓝牙键盘中的任一种。在电子设备由第一状态(在该状态下电子设备的显示屏亮屏)切换为第二状态(该状态下电子设备的显示屏息屏或灭屏)时,电子设备向蓝牙外设发送第一指示信息。该第一指示信息用于指示蓝牙外设屏蔽所述蓝牙外设的休眠唤醒功能。蓝牙外设接收来自电子设备的第一指示信息。响应于该第一指示信息,蓝牙外设屏蔽蓝牙外设的休眠唤醒功能。该休眠唤醒功能为:蓝牙外设在加速度传感器预设时长内采集的运动数据均小于预设静止门限时,进入低功耗模式。在加速度传感器采集的运动数据大于或等于预设静止门限时,退出低功耗模式。In the first aspect, the present application provides a sleep wake-up method, which is applied to an electronic device and a Bluetooth peripheral. The electronic device establishes a wireless connection with the Bluetooth peripheral. The Bluetooth peripheral includes any one of an electronic stylus or a Bluetooth keyboard. When the electronic device switches from a first state (in which the display screen of the electronic device is on) to a second state (in which the display screen of the electronic device is off or off), the electronic device sends a first indication message to the Bluetooth peripheral. The first indication message is used to instruct the Bluetooth peripheral to shield the sleep wake-up function of the Bluetooth peripheral. The Bluetooth peripheral receives the first indication message from the electronic device. In response to the first indication message, the Bluetooth peripheral shields the sleep wake-up function of the Bluetooth peripheral. The sleep wake-up function is: when the motion data collected by the Bluetooth peripheral within a preset time length of the acceleration sensor are all less than the preset static threshold, it enters a low power consumption mode. When the motion data collected by the acceleration sensor is greater than or equal to the preset static threshold, exit the low power consumption mode.

通过这种方式,即使在携带场景下也可以保证蓝牙外设休眠检测的准确性,进而可以减少蓝牙外设被误唤醒的情况,提升蓝牙外设的续航能力,提高用户体验。In this way, the accuracy of Bluetooth peripheral sleep detection can be guaranteed even in the carrying scenario, thereby reducing the situation where the Bluetooth peripheral is woken up by mistake, improving the battery life of the Bluetooth peripheral and improving the user experience.

在第一方面的一种可能的实现方式中,在电子设备由第二状态切换为第一状态时,电子设备向蓝牙外设发送第二指示信息,第二指示信息用于指示蓝牙外设使能蓝牙外设的休眠唤醒功能。蓝牙外设接收来自电子设备的第二指示信息。蓝牙外设响应于第二指示信息,使能蓝牙外设的休眠唤醒功能。通过这种方式,可以有效使蓝牙外设在用户使用时处于激活状态,使用户可以正常使用蓝牙外设。In a possible implementation of the first aspect, when the electronic device switches from the second state to the first state, the electronic device sends second indication information to the Bluetooth peripheral, and the second indication information is used to instruct the Bluetooth peripheral to enable the sleep wake-up function of the Bluetooth peripheral. The Bluetooth peripheral receives the second indication information from the electronic device. The Bluetooth peripheral enables the sleep wake-up function of the Bluetooth peripheral in response to the second indication information. In this way, the Bluetooth peripheral can be effectively activated when the user uses it, so that the user can use the Bluetooth peripheral normally.

在第一方面的另一种可能的实现方式中,屏蔽蓝牙外设的休眠唤醒功能,包括:蓝牙外设不响应休眠唤醒功能触发蓝牙外设进入或退出低功耗模式的指令;或者,蓝牙外设关闭休眠唤醒功能。In another possible implementation of the first aspect, shielding the sleep wake-up function of the Bluetooth peripheral includes: the Bluetooth peripheral does not respond to an instruction of the sleep wake-up function that triggers the Bluetooth peripheral to enter or exit a low power consumption mode; or, the Bluetooth peripheral turns off the sleep wake-up function.

在第一方面的另一种可能的实现方式中,显示屏是折叠屏,第一状态是折叠屏的展开状态,第二状态是折叠屏的折叠状态。如此,在电子设备的显示屏是折叠屏的情况下,可以通过折叠屏的展开状态或折叠状态判断电子设备是否处于使用状态,进而判断是否屏蔽蓝牙外设的休眠唤醒功能。In another possible implementation of the first aspect, the display screen is a folding screen, the first state is the unfolded state of the folding screen, and the second state is the folded state of the folding screen. In this way, when the display screen of the electronic device is a folding screen, it is possible to determine whether the electronic device is in use by the unfolded state or folded state of the folding screen, and then determine whether to shield the sleep wake-up function of the Bluetooth peripheral.

在第一方面的另一种可能的实现方式中,电子设备是笔记本电脑。第一状态是笔记本电脑的亮屏状态,第二状态是笔记本电脑的息屏或灭屏状态。或者,第一状态是笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角大于第一预设角度的状态,第二状态是显示屏所在平面与键盘所在平面之间的夹角小于第二预设角度的状态,第二预设角度小于第一预设角度。In another possible implementation of the first aspect, the electronic device is a laptop computer. The first state is a screen-on state of the laptop computer, and the second state is a screen-off or screen-off state of the laptop computer. Alternatively, the first state is a state in which the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is greater than a first preset angle, and the second state is a state in which the angle between the plane where the display screen is located and the plane where the keyboard is located is less than a second preset angle, and the second preset angle is less than the first preset angle.

如此,在电子设备是笔记本电脑的情况下,可以通过笔记本电脑处于亮屏状态还是息屏或灭屏状态,或者,可以通过笔记本电脑的显示屏所在平面与键盘所在平面之间的夹角,判断笔记本电脑是否处于使用状态,进而判断是否屏蔽蓝牙外设的休眠唤醒功能。In this way, when the electronic device is a laptop computer, it can be determined whether the laptop computer is in use by judging whether the laptop computer is in a screen-on state, a screen-off state, or a screen-off state, or by judging whether the laptop computer is in use by judging the angle between the plane where the display screen of the laptop computer and the plane where the keyboard of the laptop computer are located, thereby judging whether to block the sleep and wake-up function of the Bluetooth peripheral device.

在第一方面的另一种可能的实现方式中,电子设备是平板电脑。第一状态是平板电脑的亮屏状态,第二状态是所述平板电脑的息屏或灭屏状态。或者,第一状态是平板电脑的皮套的展开状态,第二状态是所述皮套的闭合状态。In another possible implementation of the first aspect, the electronic device is a tablet computer. The first state is a screen-on state of the tablet computer, and the second state is a screen-off or screen-off state of the tablet computer. Alternatively, the first state is an unfolded state of a leather case of the tablet computer, and the second state is a closed state of the leather case.

如此,在电子设备是平板电脑的情况下,可以通过平板电脑处于亮屏状态还是息屏或灭屏状态,或者,可以通过平板电脑的皮套的展开状态或闭合状态,判断平板电脑是否处于使用状态,进而判断是否屏蔽蓝牙外设的休眠唤醒功能。In this way, when the electronic device is a tablet computer, it can be determined whether the tablet computer is in use by whether the tablet computer is in an on-screen state, an off-screen state, or an unfolded state or a closed state of the tablet computer's leather case, and further whether to block the sleep wake-up function of the Bluetooth peripheral.

第二方面,本申请提供一种休眠唤醒方法,应用于电子设备,电子设备与蓝牙外设建立有无线连接。蓝牙外设包括电子手写笔或蓝牙键盘中的任一种。该方法包括:电子设备由第一状态切换为第二状态时,向蓝牙外设发送第一指示信息,第一指示信息用于指示所述蓝牙外设屏蔽所述蓝牙外设的休眠唤醒功能。其中,在第一状态,电子设备的显示屏亮屏;在第二状态,显示屏息屏或灭屏。休眠唤醒功能为:蓝牙外设在加速度传感器预设时长内采集的运动数据均小于预设静止门限时,进入低功耗模式;在加速度传感器采集的运动数据大于或等于预设静止门限时,退出低功耗模式。In the second aspect, the present application provides a sleep wake-up method, which is applied to an electronic device, and the electronic device establishes a wireless connection with a Bluetooth peripheral. The Bluetooth peripheral includes any one of an electronic stylus or a Bluetooth keyboard. The method includes: when the electronic device switches from a first state to a second state, a first indication message is sent to the Bluetooth peripheral, and the first indication message is used to instruct the Bluetooth peripheral to shield the sleep wake-up function of the Bluetooth peripheral. Wherein, in the first state, the display screen of the electronic device is on; in the second state, the display screen is off or turned off. The sleep wake-up function is: when the motion data collected by the Bluetooth peripheral within a preset time length of the acceleration sensor are all less than the preset static threshold, it enters a low power consumption mode; when the motion data collected by the acceleration sensor is greater than or equal to the preset static threshold, it exits the low power consumption mode.

在第二方面的一种可能的实现方式中,还包括:电子设备由第二状态切换为第一状态时,向蓝牙外设发送第二指示信息,第二指示信息用于指示蓝牙外设使能蓝牙外设的休眠唤醒功能。In a possible implementation manner of the second aspect, it also includes: when the electronic device switches from the second state to the first state, sending second indication information to the Bluetooth peripheral device, the second indication information is used to instruct the Bluetooth peripheral device to enable the sleep wake-up function of the Bluetooth peripheral device.

在第二方面的另一种可能的实现方式中,显示屏是折叠屏,第一状态是折叠屏的展开状态,第二状态是折叠屏的折叠状态。In another possible implementation manner of the second aspect, the display screen is a folding screen, the first state is an unfolded state of the folding screen, and the second state is a folded state of the folding screen.

在第二方面的另一种可能的实现方式中,电子设备是笔记本电脑;第一状态是笔记本电脑的亮屏状态,第二状态是笔记本电脑的息屏或灭屏状态;或者,第一状态是笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角大于第一预设角度的状态,第二状态是显示屏所在平面与键盘所在平面之间的夹角小于第二预设角度的状态,第二预设角度小于第一预设角度。In another possible implementation of the second aspect, the electronic device is a laptop computer; the first state is the screen-on state of the laptop computer, and the second state is the screen-off state of the laptop computer; or, the first state is a state in which the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is greater than a first preset angle, and the second state is a state in which the angle between the plane where the display screen is located and the plane where the keyboard is located is less than a second preset angle, and the second preset angle is less than the first preset angle.

在第二方面的另一种可能的实现方式中,电子设备是平板电脑。第一状态是平板电脑的亮屏状态,第二状态是平板电脑的息屏或灭屏状态;或者,第一状态是平板电脑的皮套的展开状态,第二状态是皮套的闭合状态。In another possible implementation of the second aspect, the electronic device is a tablet computer. The first state is a screen-on state of the tablet computer, and the second state is a screen-off or screen-off state of the tablet computer; or the first state is an unfolded state of a leather case of the tablet computer, and the second state is a closed state of the leather case.

第三方面,本申请提供一种休眠唤醒方法,应用于蓝牙外设,蓝牙外设包括电子手写笔或蓝牙键盘中的任一种,蓝牙外设与电子设备建立有无线连接。方法包括:接收来自电子设备的第一指示信息;其中,第一指示信息是电子设备由第一状态切换为第二状态时发送的;在第一状态,电子设备的显示屏亮屏;在第二状态,显示屏息屏或灭屏;响应于第一指示信息,屏蔽蓝牙外设的休眠唤醒功能;其中,休眠唤醒功能为:蓝牙外设在加速度传感器预设时长内采集的运动数据均小于预设静止门限时,进入低功耗模式;在加速度传感器采集的运动数据大于或等于预设静止门限时,退出低功耗模式。In the third aspect, the present application provides a sleep wake-up method, which is applied to a Bluetooth peripheral, wherein the Bluetooth peripheral includes any one of an electronic stylus or a Bluetooth keyboard, and a wireless connection is established between the Bluetooth peripheral and the electronic device. The method includes: receiving a first indication message from the electronic device; wherein the first indication message is sent when the electronic device switches from a first state to a second state; in the first state, the display screen of the electronic device is on; in the second state, the display screen is off or turned off; in response to the first indication message, the sleep wake-up function of the Bluetooth peripheral is shielded; wherein the sleep wake-up function is: when the motion data collected by the acceleration sensor within a preset time period are all less than a preset static threshold, the Bluetooth peripheral enters a low power consumption mode; when the motion data collected by the acceleration sensor is greater than or equal to the preset static threshold, the low power consumption mode is exited.

在第三方面的一种可能的实现方式中,还包括:接收来自电子设备的第二指示信息;其中,第二指示信息是电子设备由第二状态切换为第一状态时发送的;响应于第二指示信息,使能蓝牙外设的休眠唤醒功能。In a possible implementation manner of the third aspect, it also includes: receiving second indication information from the electronic device; wherein the second indication information is sent when the electronic device switches from the second state to the first state; and in response to the second indication information, enabling the sleep wake-up function of the Bluetooth peripheral.

在第三方面的另一种可能的实现方式中,屏蔽蓝牙外设的休眠唤醒功能,包括:不响应休眠唤醒功能触发蓝牙外设进入或退出低功耗模式的指令;或者,关闭休眠唤醒功能。In another possible implementation of the third aspect, shielding the sleep wake-up function of the Bluetooth peripheral includes: not responding to an instruction of the sleep wake-up function to trigger the Bluetooth peripheral to enter or exit a low power consumption mode; or, turning off the sleep wake-up function.

第四方面,本申请提供一种电子设备,包括一个或多个处理器,处理器和存储器耦合,存储器存储有程序指令,当存储器存储的程序指令被处理器执行时使得电子设备执行:电子设备由第一状态切换为第二状态时,向蓝牙外设发送第一指示信息,第一指示信息用于指示蓝牙外设屏蔽蓝牙外设的休眠唤醒功能;其中,在第一状态,电子设备的显示屏亮屏;在第二状态,显示屏息屏或灭屏;休眠唤醒功能为:蓝牙外设在加速度传感器预设时长内采集的运动数据均小于预设静止门限时,进入低功耗模式;在加速度传感器采集的运动数据大于或等于预设静止门限时,退出低功耗模式。In a fourth aspect, the present application provides an electronic device, comprising one or more processors, the processors are coupled to a memory, the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the electronic device executes: when the electronic device switches from a first state to a second state, a first indication message is sent to a Bluetooth peripheral, and the first indication message is used to instruct the Bluetooth peripheral to shield the sleep and wake-up function of the Bluetooth peripheral; wherein, in the first state, the display screen of the electronic device is on; in the second state, the display screen is off or turned off; the sleep and wake-up function is: when the motion data collected by the Bluetooth peripheral within a preset time period of the acceleration sensor are all less than a preset still threshold, the Bluetooth peripheral enters a low power consumption mode; when the motion data collected by the acceleration sensor is greater than or equal to the preset still threshold, the low power consumption mode is exited.

在第四方面的一种可能的设计方式中,当存储器存储的程序指令被处理器执行时,使得电子设备还执行:电子设备由第二状态切换为第一状态时,向蓝牙外设发送第二指示信息,第二指示信息用于指示蓝牙外设使能蓝牙外设的休眠唤醒功能。In a possible design of the fourth aspect, when the program instructions stored in the memory are executed by the processor, the electronic device further executes: when the electronic device switches from the second state to the first state, a second indication message is sent to the Bluetooth peripheral device, and the second indication message is used to instruct the Bluetooth peripheral device to enable the sleep wake-up function of the Bluetooth peripheral device.

在第四方面的另一种可能的设计方式中,显示屏是折叠屏,第一状态是折叠屏的展开状态,第二状态是折叠屏的折叠状态。In another possible design manner of the fourth aspect, the display screen is a folding screen, the first state is an unfolded state of the folding screen, and the second state is a folded state of the folding screen.

在第四方面的另一种可能的设计方式中,电子设备是笔记本电脑。第一状态是笔记本电脑的亮屏状态,第二状态是笔记本电脑的息屏或灭屏状态;或者,第一状态是笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角大于第一预设角度的状态,第二状态是显示屏所在平面与键盘所在平面之间的夹角小于第二预设角度的状态,第二预设角度小于第一预设角度。In another possible design of the fourth aspect, the electronic device is a laptop computer. The first state is a screen-on state of the laptop computer, and the second state is a screen-off or screen-off state of the laptop computer; or the first state is a state in which the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is greater than a first preset angle, and the second state is a state in which the angle between the plane where the display screen is located and the plane where the keyboard is located is less than a second preset angle, and the second preset angle is less than the first preset angle.

在第四方面的另一种可能的设计方式中,电子设备是平板电脑。第一状态是平板电脑的亮屏状态,第二状态是平板电脑的息屏或灭屏状态;或者,第一状态是平板电脑的皮套的展开状态,第二状态是皮套的闭合状态。In another possible design of the fourth aspect, the electronic device is a tablet computer. The first state is a screen-on state of the tablet computer, and the second state is a screen-off or screen-off state of the tablet computer; or the first state is an unfolded state of a leather case of the tablet computer, and the second state is a closed state of the leather case.

第五方面,本申请提供一种蓝牙外设,包括一个或多个处理器,处理器和存储器耦合,存储器存储有程序指令,当存储器存储的程序指令被处理器执行时使得蓝牙外设执行:接收来自电子设备的第一指示信息;其中,第一指示信息是电子设备由第一状态切换为第二状态时发送的;在第一状态,电子设备的显示屏亮屏;在第二状态,显示屏息屏或灭屏;响应于第一指示信息,屏蔽蓝牙外设的休眠唤醒功能;其中,休眠唤醒功能为:蓝牙外设在加速度传感器预设时长内采集的运动数据均小于预设静止门限时,进入低功耗模式;在加速度传感器采集的运动数据大于或等于预设静止门限时,退出低功耗模式。In a fifth aspect, the present application provides a Bluetooth peripheral, comprising one or more processors, the processors are coupled to a memory, and the memory stores program instructions. When the program instructions stored in the memory are executed by the processor, the Bluetooth peripheral executes: receiving a first indication message from an electronic device; wherein the first indication message is sent when the electronic device switches from a first state to a second state; in the first state, the display screen of the electronic device is turned on; in the second state, the display screen is turned off or turned off; in response to the first indication message, the sleep wake-up function of the Bluetooth peripheral is shielded; wherein the sleep wake-up function is: when the motion data collected by the acceleration sensor within a preset time period are all less than a preset still threshold, the Bluetooth peripheral enters a low power consumption mode; when the motion data collected by the acceleration sensor is greater than or equal to the preset still threshold, the low power consumption mode is exited.

在第五方面的一种可能的设计方式中,当存储器存储的程序指令被处理器执行时,使得蓝牙外设还执行:接收来自电子设备的第二指示信息;其中,第二指示信息是电子设备由第二状态切换为第一状态时发送的;响应于第二指示信息,使能蓝牙外设的休眠唤醒功能。In a possible design of the fifth aspect, when the program instructions stored in the memory are executed by the processor, the Bluetooth peripheral device also executes: receiving a second indication message from the electronic device; wherein the second indication message is sent when the electronic device switches from the second state to the first state; and enabling the sleep wake-up function of the Bluetooth peripheral device in response to the second indication message.

在第五方面的另一种可能的设计方式中,当存储器存储的程序指令被处理器执行时,使得蓝牙外设还执行:不响应休眠唤醒功能触发蓝牙外设进入或退出低功耗模式的指令;或者,关闭休眠唤醒功能。In another possible design of the fifth aspect, when the program instructions stored in the memory are executed by the processor, the Bluetooth peripheral also executes: not responding to instructions of the sleep wake-up function to trigger the Bluetooth peripheral to enter or exit the low power consumption mode; or, turning off the sleep wake-up function.

第六方面,本申请提供一种计算机可读存储介质,包括计算机指令;当计算机指令在电子设备上运行时,使得电子设备执行如第二方面及其任一种可能的实现方式所述的方法;或者,当计算机指令在蓝牙外设上运行时,使得蓝牙外设执行如第三方面及其任一种可能的实现方式所述的方法。In a sixth aspect, the present application provides a computer-readable storage medium comprising computer instructions; when the computer instructions are executed on an electronic device, the electronic device executes the method described in the second aspect and any possible implementation thereof; or, when the computer instructions are executed on a Bluetooth peripheral, the Bluetooth peripheral executes the method described in the third aspect and any possible implementation thereof.

第七方面,本申请提供一种包含程序指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第二方面及其任一种可能的实现方式所述的方法,或者,执行上述第三方面及其任一种可能的实现方式所述的方法。In the seventh aspect, the present application provides a computer program product comprising program instructions, which, when executed on a computer, enables the computer to execute the method described in the second aspect and any possible implementation thereof, or to execute the method described in the third aspect and any possible implementation thereof.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例提供的休眠唤醒系统示例的示意图;FIG1 is a schematic diagram of an example of a sleep-wake-up system provided in an embodiment of the present application;

图2为本申请实施例提供的蓝牙外设的硬件结构框图;FIG2 is a hardware structure block diagram of a Bluetooth peripheral provided in an embodiment of the present application;

图3为本申请实施例提供的电子设备的硬件结构框图;FIG3 is a hardware structure block diagram of an electronic device provided in an embodiment of the present application;

图4为本申请实施例提供的电子设备的软件结构框图;FIG4 is a software structure block diagram of an electronic device provided in an embodiment of the present application;

图5为本申请实施例提供的折叠屏手机的示意图;FIG5 is a schematic diagram of a folding screen mobile phone provided in an embodiment of the present application;

图6为本申请实施例提供的休眠唤醒方法一示例的流程图;FIG6 is a flowchart of an example of a sleep awakening method provided in an embodiment of the present application;

图7为本申请实施例提供的屏蔽和使能休眠唤醒功能的流程图;FIG7 is a flowchart of shielding and enabling sleep wake-up functions provided in an embodiment of the present application;

图8为本申请实施例提供的第一状态和第二状态的笔记本电脑的示意图;FIG8 is a schematic diagram of a laptop computer in a first state and a second state provided by an embodiment of the present application;

图9为本申请实施例提供的休眠唤醒方法另一示例的流程图;FIG9 is a flowchart of another example of a sleep awakening method provided in an embodiment of the present application;

图10为本申请实施例提供的第一状态和第二状态的平板电脑的示意图;FIG10 is a schematic diagram of a tablet computer in a first state and a second state provided by an embodiment of the present application;

图11为本申请实施例提供的休眠唤醒方法另一示例的流程图。FIG. 11 is a flowchart of another example of the sleep-wake-up method provided in an embodiment of the present application.

具体实施方式Detailed ways

以下将参考附图详细说明本申请的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated. The word "exemplary" is used here to mean "used as an example, embodiment, or illustrative". Any embodiment described here as "exemplary" is not necessarily to be interpreted as being superior or better than other embodiments.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

另外,为了更好地说明本申请,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本申请的主旨。In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.

本申请实施例提供一种休眠唤醒方法,该方法可以应用于休眠唤醒系统。该休眠唤醒系统可以包括电子设备以及蓝牙外设。蓝牙外设可以与电子设备配合使用。通常,蓝牙外设可以作为电子设备的输入设备。例如,蓝牙外设可以是电子手写笔,电子设备是折叠屏手机。如图1所示,电子手写笔可以被用户使用,供用户在折叠屏手机上进行书写、绘画等操作。An embodiment of the present application provides a sleep wake-up method, which can be applied to a sleep wake-up system. The sleep wake-up system may include an electronic device and a Bluetooth peripheral. The Bluetooth peripheral can be used in conjunction with the electronic device. Generally, the Bluetooth peripheral can be used as an input device for the electronic device. For example, the Bluetooth peripheral can be an electronic stylus, and the electronic device is a folding screen mobile phone. As shown in FIG1 , the electronic stylus can be used by the user to write, draw, and perform other operations on the folding screen mobile phone.

为了便于理解,本申请实施例这里介绍常规技术中蓝牙外设的休眠唤醒机制。以蓝牙外设是电子手写笔为例,电子手写笔作为电子设备的输入设备,与电子设备配合使用。通常,为了便于用户携带,蓝牙外设的电池容量通常较小,续航时间短。针对这一情况,蓝牙外设可配置有休眠唤醒机制,以保证蓝牙外设的续航能力。For ease of understanding, the present application embodiment introduces the sleep wake-up mechanism of the Bluetooth peripheral in the conventional technology. Take the Bluetooth peripheral as an electronic stylus as an example. The electronic stylus is used in conjunction with the electronic device as an input device of the electronic device. Usually, in order to facilitate the user to carry, the battery capacity of the Bluetooth peripheral is usually small and the battery life is short. In view of this situation, the Bluetooth peripheral can be configured with a sleep wake-up mechanism to ensure the battery life of the Bluetooth peripheral.

以蓝牙外设是电子手写笔为例。电子手写笔可以通过配置在电子手写笔中的加速度传感器(Accelerometer sensor,ACC)采集电子手写笔的运动数据。通过ACC采集的运动数据,电子手写笔可使用休眠唤醒功能。该休眠唤醒功能为:如果ACC在持续一段时间内采集到的运动数据均小于预设静止门限,则电子手写笔可以休眠进入低功耗模式,以降低功耗。如果ACC采集到的运动数据大于或等于预设静止门限,则电子手写笔可以自动唤醒,退出低功耗模式,以供用户使用电子手写笔。Take the example of an electronic stylus pen, which is a Bluetooth peripheral. The electronic stylus pen can collect motion data of the electronic stylus pen through the accelerometer sensor (ACC) configured in the electronic stylus pen. Through the motion data collected by ACC, the electronic stylus pen can use the sleep wake-up function. The sleep wake-up function is: if the motion data collected by ACC for a period of time is less than the preset static threshold, the electronic stylus pen can sleep and enter a low-power mode to reduce power consumption. If the motion data collected by ACC is greater than or equal to the preset static threshold, the electronic stylus pen can automatically wake up and exit the low-power mode for the user to use the electronic stylus pen.

但是,在电子手写笔被用户携带的场景下,电子手写笔很有可能是一直处于运动状态的。因此,采用上述基于ACC的休眠唤醒功能,可能会导致电子手写笔被反复休眠唤醒,使得电子手写笔在未使用状态下掉电更快,严重缩短电子手写笔的续航能力,用户体验差。However, when the electronic stylus is carried by the user, it is very likely that the electronic stylus is always in motion. Therefore, the use of the above-mentioned sleep and wake-up function based on ACC may cause the electronic stylus to be repeatedly woken up from sleep mode, causing the electronic stylus to lose power faster when not in use, seriously shortening the battery life of the electronic stylus and causing poor user experience.

有鉴于此,本申请实施例提供的方法中,考虑到蓝牙外设是与上述电子设备配合使用的,只有在上述电子设备的显示屏亮屏的情况下,用户才需要使用蓝牙外设。因此,可以根据上述电子设备的显示屏亮屏或者息屏(或灭屏),来指示蓝牙外设屏蔽或使能上述休眠唤醒功能。In view of this, in the method provided in the embodiment of the present application, considering that the Bluetooth peripheral is used in conjunction with the above-mentioned electronic device, the user only needs to use the Bluetooth peripheral when the display screen of the above-mentioned electronic device is on. Therefore, the Bluetooth peripheral can be instructed to shield or enable the above-mentioned sleep wake-up function according to whether the display screen of the above-mentioned electronic device is on or off (or off).

在电子设备由第一状态(在该状态下电子设备的显示屏亮屏)切换为第二状态(该状态下电子设备的显示屏息屏或灭屏)时,电子设备可向蓝牙外设发送指示蓝牙外设屏蔽休眠唤醒功能的第一指示信息。蓝牙外设响应于该第一指示信息,屏蔽该休眠唤醒功能。When the electronic device switches from a first state (in which the display screen of the electronic device is on) to a second state (in which the display screen of the electronic device is off or off), the electronic device may send first indication information to the Bluetooth peripheral device to instruct the Bluetooth peripheral device to shield the sleep wake-up function. In response to the first indication information, the Bluetooth peripheral device shields the sleep wake-up function.

可以理解的是,电子设备在屏息屏或灭屏的第二状态下,可认为电子设备未被使用。此时,用户使用蓝牙外设操作电子设备的概率较小。电子设备指示蓝牙外设屏蔽休眠唤醒功能,可以减少蓝牙外设在被用户携带的场景下,基于休眠唤醒功能反复被唤醒的情况。即使在携带场景下也可以保证蓝牙外设休眠检测的准确性,进而可以减少蓝牙外设被误唤醒的情况,提升蓝牙外设的续航能力,提高用户体验。It is understandable that when the electronic device is in the second state of holding the screen or turning off the screen, it can be considered that the electronic device is not in use. At this time, the probability of the user using the Bluetooth peripheral to operate the electronic device is small. The electronic device instructs the Bluetooth peripheral to shield the sleep wake-up function, which can reduce the situation where the Bluetooth peripheral is repeatedly awakened based on the sleep wake-up function in the scenario where the user is carrying it. The accuracy of the Bluetooth peripheral sleep detection can be guaranteed even in the carrying scenario, thereby reducing the situation where the Bluetooth peripheral is mistakenly awakened, improving the battery life of the Bluetooth peripheral, and improving the user experience.

在电子设备由第二状态(该状态下电子设备的显示屏息屏或灭屏)切换为第一状态(在该状态下电子设备的显示屏亮屏)时,电子设备可向蓝牙外设发送指示蓝牙外设使能休眠唤醒功能的第二指示信息。蓝牙外设响应于该第二指示信息,使能该休眠唤醒功能。When the electronic device switches from the second state (in which the display screen of the electronic device is off or off) to the first state (in which the display screen of the electronic device is on), the electronic device may send second indication information to the Bluetooth peripheral device to instruct the Bluetooth peripheral device to enable the sleep wake-up function. In response to the second indication information, the Bluetooth peripheral device enables the sleep wake-up function.

可以理解的是,电子设备在亮屏的第一状态下,可认为电子设备正处于使用状态。此时,用户使用蓝牙外设操作电子设备的概率较大。电子设备指示蓝牙外设使能休眠唤醒功能,可以有效使蓝牙外设在用户使用时处于激活状态,使用户可以正常使用蓝牙外设。It is understandable that when the electronic device is in the first state of the screen being on, it can be considered that the electronic device is in use. At this time, the user is more likely to use the Bluetooth peripheral to operate the electronic device. The electronic device instructs the Bluetooth peripheral to enable the sleep wake-up function, which can effectively activate the Bluetooth peripheral when the user is using it, so that the user can use the Bluetooth peripheral normally.

上述屏蔽休眠唤醒功能可以理解为:蓝牙外设不响应休眠唤醒功能触发蓝牙外设进入或退出低功耗模式的指令;或者,蓝牙外设关闭休眠唤醒功能。在蓝牙外设屏蔽休眠唤醒的情况下,即使蓝牙外设处于运动中,处于休眠状态蓝牙外设也不会唤醒。The above-mentioned shielding of the sleep wake-up function can be understood as: the Bluetooth peripheral does not respond to the instruction of the sleep wake-up function to trigger the Bluetooth peripheral to enter or exit the low power consumption mode; or the Bluetooth peripheral turns off the sleep wake-up function. In the case where the Bluetooth peripheral shields the sleep wake-up, even if the Bluetooth peripheral is in motion, the Bluetooth peripheral will not wake up in the sleep state.

上述休眠唤醒功能可以为:蓝牙外设在加速度传感器预设时长内采集的运动数据均小于预设静止门限时,进入低功耗模式。在加速度传感器采集的运动数据大于或等于预设静止门限时,退出低功耗模式。The sleep wake-up function can be: when the motion data collected by the acceleration sensor within a preset time period are all less than a preset static threshold, the Bluetooth peripheral enters a low power mode, and when the motion data collected by the acceleration sensor is greater than or equal to the preset static threshold, the Bluetooth peripheral exits the low power mode.

该运动数据可以包括一个轴或多个轴的加速度。可以理解的是,三维空间中具有三个方向,通常用x、y和z表示。其中每个方向均可以对应一个轴,即x轴、y轴和z轴。不同的运动数据可以对应不同的预设静止门限。举例来说,上述运动参数可以包括三轴加速度(x轴加速度、y轴加速度和z轴加速度)。此时,预设静止门限可以包括x轴加速度门限、y轴加速度门限和z轴加速度门限。上述运动数据均小于预设静止门限,可以理解为:x轴加速度小于x轴加速度门限、y轴加速度小于y轴加速度门限以及z轴加速度小于z轴加速度门限。The motion data may include acceleration of one or more axes. It is understood that there are three directions in three-dimensional space, usually represented by x, y and z. Each direction may correspond to an axis, i.e., an x-axis, a y-axis and a z-axis. Different motion data may correspond to different preset static thresholds. For example, the above motion parameters may include three-axis acceleration (x-axis acceleration, y-axis acceleration and z-axis acceleration). At this time, the preset static threshold may include an x-axis acceleration threshold, a y-axis acceleration threshold and a z-axis acceleration threshold. The above motion data are all less than the preset static threshold, which can be understood as: the x-axis acceleration is less than the x-axis acceleration threshold, the y-axis acceleration is less than the y-axis acceleration threshold and the z-axis acceleration is less than the z-axis acceleration threshold.

示例性地,本申请实施例中所述的蓝牙外设可以是电子手写笔或蓝牙键盘。本申请实施例中所述的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备、媒体播放器、电视机等设备。Exemplarily, the Bluetooth peripheral described in the embodiment of the present application may be an electronic stylus or a Bluetooth keyboard. The electronic device described in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, a media player, a television, and other devices.

本申请实施例中以蓝牙外设是电子手写笔100为例,介绍本申请实施例中蓝牙外设的硬件结构。如图2所示,电子手写笔可以包括:处理器110、存储器120、传感器模块130、通信模块140和电源模块150。In the embodiment of the present application, the Bluetooth peripheral is an electronic stylus 100 as an example to introduce the hardware structure of the Bluetooth peripheral in the embodiment of the present application. As shown in FIG2 , the electronic stylus may include: a processor 110 , a memory 120 , a sensor module 130 , a communication module 140 and a power module 150 .

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP)、调制解调处理器、控制器、数字信号处理器(digitalsignal processor,DSP)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a controller, a digital signal processor (DSP), etc. Different processing units may be independent devices or integrated into one or more processors.

存储器120,可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在存储器120的指令,从而执行电子手写笔的各种功能应用以及数据处理。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The memory 120 may be used to store computer executable program codes, which may include instructions. The processor 110 executes various functional applications and data processing of the electronic stylus by running the instructions stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

传感器模块130可以包括压力传感器和加速度传感器。The sensor module 130 may include a pressure sensor and an acceleration sensor.

压力传感器可用于获取电子手写笔笔尖的运动轨迹信号,并用于感应和电子手写笔相配合的接触面(例如电子设备的显示屏)所施加在电子手写笔笔尖上的压力信号。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以包括至少两个具有导电材料的平行板。当有力作用于压力传感器时,电极之间的电容改变。电子手写笔可以根据电容的变化确定压力的强度。The pressure sensor can be used to obtain the motion trajectory signal of the tip of the electronic stylus pen, and to sense the pressure signal applied to the tip of the electronic stylus pen by the contact surface (such as the display screen of an electronic device) that matches the electronic stylus pen. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. Capacitive pressure sensors can include at least two parallel plates with conductive materials. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The electronic stylus can determine the intensity of the pressure based on the change in capacitance.

加速度传感器可检测电子手写笔在各个方向上(一般为三轴)加速度的大小。当电子手写笔静止时可检测出重力的大小及方向。The acceleration sensor can detect the magnitude of the acceleration of the electronic stylus in various directions (generally three axes). When the electronic stylus is stationary, it can detect the magnitude and direction of gravity.

通信模块140可以包括蓝牙模块。蓝牙模块以包括经典蓝牙(BR/EDR)模块和低功耗蓝牙(BLE)模块。蓝牙模块用于支持电子手写笔100与电子设备建立无线连接。The communication module 140 may include a Bluetooth module. The Bluetooth module may include a classic Bluetooth (BR/EDR) module and a low-power Bluetooth (BLE) module. The Bluetooth module is used to support the electronic stylus 100 to establish a wireless connection with an electronic device.

电源模块150,可用于向电子手写笔所包含的各个部件供电。在一些实现方式中,该电源模块150可以是电池,如可充电电池。The power module 150 can be used to supply power to various components included in the electronic stylus. In some implementations, the power module 150 can be a battery, such as a rechargeable battery.

本申请实施例中以电子设备是手机为例,介绍本申请实施例中电子设备的硬件结构。如图3所示,手机200可以包括:处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。In the embodiment of the present application, the electronic device is a mobile phone as an example to introduce the hardware structure of the electronic device in the embodiment of the present application. As shown in Figure 3, the mobile phone 200 may include: a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.

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

处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

在一些实施例中,处理器210可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.

外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos are stored in the external memory card.

内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行手机200的各种功能应用以及数据处理。例如,在本申请实施例中,处理器210可以通过执行存储在内部存储器221中的指令,内部存储器221可以包括存储程序区和存储数据区。The internal memory 221 may be used to store computer executable program codes, which include instructions. The processor 210 executes various functional applications and data processing of the mobile phone 200 by running the instructions stored in the internal memory 221. For example, in an embodiment of the present application, the processor 210 may execute the instructions stored in the internal memory 221, and the internal memory 221 may include a program storage area and a data storage area.

其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)、马达291的配置文件等。存储数据区可存储手机200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), a configuration file of the motor 291, etc. The data storage area may store data created during the use of the mobile phone 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为手机200供电。The charging management module 240 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 240 charges the battery 242, it can also power the mobile phone 200 through the power management module 241.

电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。在一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260. In some embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

手机200的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。在一些实施例中,手机200的天线1和移动通信模块250耦合,天线2和无线通信模块260耦合,使得手机200可以通过无线通信技术与网络以及其他设备通信。The wireless communication function of the mobile phone 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor. In some embodiments, the antenna 1 of the mobile phone 200 is coupled with the mobile communication module 250, and the antenna 2 is coupled with the wireless communication module 260, so that the mobile phone 200 can communicate with the network and other devices through wireless communication technology.

天线1和天线2用于发射和接收电磁波信号。手机200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization rate of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

移动通信模块250可以提供应用在手机200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(lownoise amplifier,LNA)等。移动通信模块250可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。The mobile communication module 250 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the mobile phone 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.

移动通信模块250还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块250的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块250的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 can be set in the same device as at least some modules of the processor 210.

无线通信模块260可以提供应用在手机200上的包括WLAN(如(wirelessfidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigationsatellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(nearfield communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。The wireless communication module 260 can provide wireless communication solutions for application on the mobile phone 200, including WLAN (such as (wirelessfidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), nearfield wireless communication technology (nearfield communication, NFC), infrared technology (infrared, IR), etc.

无线通信模块260可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块260经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块260还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 260 may also receive a signal to be sent from the processor 210, modulate the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna 2.

手机200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 200 can implement audio functions such as music playing and recording through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the earphone interface 270D, and the application processor.

传感器模块280可以包括压力传感器、陀螺仪传感器、加速度传感器、加速度重力传感器、磁传感器、触摸传感器,环境光传感器和骨传导传感器等传感器。手机200可通过传感器模块280采集各种数据。例如,手机的显示屏为折叠屏。加速度重力传感器可以用于采集折叠屏的折叠角度,用于判断显示屏处于展开状态还是折叠状态。再例如,磁传感器可以用于通过感应磁场变化,判断手机的保护套是展开状态还是闭合状态。The sensor module 280 may include sensors such as a pressure sensor, a gyroscope sensor, an acceleration sensor, an acceleration gravity sensor, a magnetic sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor. The mobile phone 200 can collect various data through the sensor module 280. For example, the display screen of the mobile phone is a folding screen. The acceleration gravity sensor can be used to collect the folding angle of the folding screen to determine whether the display screen is in an unfolded state or a folded state. For another example, the magnetic sensor can be used to determine whether the protective cover of the mobile phone is in an unfolded state or a closed state by sensing changes in the magnetic field.

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

显示屏294用于显示图像,视频等。该显示屏294包括显示面板。The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel.

手机200可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。ISP用于处理摄像头293反馈的数据。摄像头293用于捕获静态图像或视频。在一些实施例中,手机200可以包括1个或多个摄像头293。The mobile phone 200 can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor. The ISP is used to process the data fed back by the camera 293. The camera 293 is used to capture a static image or a video. In some embodiments, the mobile phone 200 may include one or more cameras 293.

按键290包括开机键,音量键等。按键290可以是机械按键。也可以是触摸式按键。马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和手机200的接触和分离。手机200可以支持1个或多个SIM卡接口。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。The button 290 includes a power button, a volume button, etc. The button 290 can be a mechanical button. It can also be a touch button. The motor 291 can generate a vibration prompt. The motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 292 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 295 is used to connect the SIM card. The SIM card can be connected to and separated from the mobile phone 200 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295. The mobile phone 200 can support one or more SIM card interfaces. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对蓝牙外设和电子设备的结构限定。在另一些实施例中,蓝牙外设和电子设备也可以包括比上述实施例提供的更多或者更少的模块,各个模块之间也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。以下实施例中的方法均可以在具备上述硬件结构的蓝牙外设和电子设备中实现。It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation on the Bluetooth peripherals and electronic devices. In other embodiments, the Bluetooth peripherals and electronic devices may also include more or fewer modules than those provided in the above embodiments, and different interface connection methods in the above embodiments or a combination of multiple interface connection methods may be used between the modules. The methods in the following embodiments can all be implemented in Bluetooth peripherals and electronic devices having the above hardware structures.

上述电子为设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以安卓(Android)系统的分层架构为例,示例性说明电子设备的软件结构。The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the layered architecture of the Android system as an example to illustrate the software structure of the electronic device.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过接口通信。在一些实施例中,Android系统可以包括应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,硬件抽象层(hardware abstraction layer,HAL)以及内核层。需要说明的是,本申请实施例以Android系统举例来说明,在其他操作系统中(例如IOS系统等),只要各个功能模块实现的功能和本申请的实施例类似也能实现本申请的方案。The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, a hardware abstraction layer (HAL) and a kernel layer. It should be noted that the embodiments of the present application are illustrated by taking the Android system as an example. In other operating systems (such as IOS systems, etc.), as long as the functions implemented by each functional module are similar to those of the embodiments of the present application, the solutions of the present application can also be implemented.

其中,应用程序层可以包括一系列应用程序包。如图4所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,设置,音乐,蓝牙,游戏,视频,浏览器等应用程序。当然,应用程序层还可以包括其他应用程序包,例如支付应用,购物应用等第三方应用,本申请不做限定。The application layer may include a series of application packages. As shown in FIG4 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, settings, music, Bluetooth, game, video, browser, etc. Of course, the application layer may also include other application packages, such as payment applications, shopping applications, and other third-party applications, which are not limited in this application.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。例如可以包括活动管理器、窗口管理器,内容提供器,视图系统,资源管理器,通知管理器,配件管理服务(也称为屏幕管理)等,本申请实施例对此不做任何限制。配件管理服务用于提供主机屏幕状态(如上述第一状态或第二状态)监测的相关服务。The application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes some predefined functions. For example, it may include an activity manager, a window manager, a content provider, a view system, a resource manager, a notification manager, an accessory management service (also called screen management), etc., and the embodiments of the present application do not impose any restrictions on this. The accessory management service is used to provide related services for monitoring the host screen status (such as the first state or the second state mentioned above).

系统库可以包括多个功能模块。例如,媒体库(media libraries),二维/三维图像处理库等。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。安卓运行时(android runtime)包括核心库和虚拟机。android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The system library can include multiple functional modules. For example, media libraries, 2D/3D image processing libraries, etc. The media library supports a variety of commonly used audio, video format playback and recording, as well as static image files, etc. The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library contains two parts: one part is the function functions that need to be called by the Java language, and the other part is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.

HAL层是对Linux内核驱动程序的封装,向上提供接口,屏蔽底层硬件的实现细节。例如,HAL层中可以包括相机HAL(camera HAL)、Wi-Fi HAL、蓝牙HAL等。The HAL layer is a package of the Linux kernel driver, providing an interface to the upper layer and shielding the implementation details of the underlying hardware. For example, the HAL layer may include camera HAL, Wi-Fi HAL, Bluetooth HAL, etc.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,音频驱动,相机驱动,振动驱动等。其中,振动驱动是一个允许高级计算机软件与硬件交互的程序,也就是驱使马达工作的一组程序。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, audio drivers, camera drivers, vibration drivers, etc. Among them, the vibration driver is a program that allows high-level computer software to interact with hardware, that is, a set of programs that drive the motor to work.

硬件层包括显示模块和蓝牙模块等。其中,显示模块可以用于检测显示屏的状态,用于判断显示屏处于上述第一状态或上述第二状态。蓝牙模块用于支持电子设备与蓝牙外设建立无线连接。The hardware layer includes a display module and a Bluetooth module, etc. The display module can be used to detect the state of the display screen, and to determine whether the display screen is in the first state or the second state. The Bluetooth module is used to support the electronic device to establish a wireless connection with a Bluetooth peripheral.

下面对本申请实施例提供的方法所涉及的软件模块和模块间的交互进行说明。以电子设备是手机,蓝牙外设是电子手写笔为例。当用户控制手机的显示屏亮屏或息屏(或灭屏)时,硬件层的显示模块可以检测到显示屏的点亮或熄灭,并向上层上报显示屏点亮的第一状态或熄灭的第二状态。应用程序框架层的配件管理服务(也称为屏幕管理服务)接收到第一状态或第二状态后,可以判断显示屏处于亮屏或息屏(或灭屏)。并且,配件管理服务可以在显示屏由第一状态切换为第二状态时,向下层发送第一控制命令,该第一控制命令用于指示通过蓝牙模块向电子手写笔发送第一指示信息。配件管理服务可以在显示屏由第二状态切换为第一状态时,向下层发送第二控制命令,该第二控制命令用于指示通过蓝牙模块向电子手写笔发送第二指示信息。其中,第一指示信息和第二指示信息的具体内容和含义可以参考以下实施例中的详细介绍,这里不予赘述。The following is an explanation of the software modules and the interactions between modules involved in the method provided in the embodiment of the present application. Take the electronic device as a mobile phone and the Bluetooth peripheral as an electronic stylus as an example. When the user controls the display screen of the mobile phone to light up or turn off (or turn off), the display module of the hardware layer can detect the lighting or turning off of the display screen, and report the first state of the display screen lighting up or the second state of the display screen turning off to the upper layer. After receiving the first state or the second state, the accessory management service (also called the screen management service) of the application framework layer can determine whether the display screen is in the light screen or the screen is off (or the screen is off). In addition, the accessory management service can send a first control command to the lower layer when the display screen switches from the first state to the second state, and the first control command is used to indicate that the first indication information is sent to the electronic stylus through the Bluetooth module. The accessory management service can send a second control command to the lower layer when the display screen switches from the second state to the first state, and the second control command is used to indicate that the second indication information is sent to the electronic stylus through the Bluetooth module. Among them, the specific content and meaning of the first indication information and the second indication information can refer to the detailed description in the following embodiments, which will not be repeated here.

以下实施例中,以蓝牙外设是电子手写笔,以电子设备分别是折叠屏的手机、笔记本电脑和带皮套的平板电脑为例,对本申请实施例提供的方法进行说明。电子手写笔可以与这些电子设备配合使用,供用户在电子设备的显示屏上进行书写、绘画等操作。其中,折叠屏的手机、笔记本电脑或者平板电脑上还可以提供用于收纳电子手写笔的收纳腔。或者,用户可以将电子手写笔与上述电子设备收纳在一起,方便携带。In the following embodiments, the method provided in the embodiments of the present application is described by taking the Bluetooth peripheral as an electronic stylus and the electronic devices as a folding screen mobile phone, a laptop computer, and a tablet computer with a leather case as examples. The electronic stylus can be used in conjunction with these electronic devices for users to write, draw, and perform other operations on the display screen of the electronic device. Among them, a storage cavity for storing the electronic stylus can also be provided on the folding screen mobile phone, laptop computer, or tablet computer. Alternatively, the user can store the electronic stylus together with the above-mentioned electronic devices for easy carrying.

这里,先以电子设备是手机,该手机的显示屏是折叠屏(即折叠屏手机)为例,对本申请实施例提供的方法进行说明。手机的折叠屏处于展开状态时,折叠屏亮屏。该展开状态可以认为是上述第一状态。手机的折叠屏处于折叠状态时,折叠屏息屏或灭屏。该折叠状态可认为是上述第二状态。Here, the method provided in the embodiment of the present application is first described by taking the electronic device as a mobile phone, and the display screen of the mobile phone as a folding screen (i.e., a folding screen mobile phone) as an example. When the folding screen of the mobile phone is in the unfolded state, the folding screen is on. The unfolded state can be considered as the first state mentioned above. When the folding screen of the mobile phone is in the folded state, the folding screen is off or turned off. The folded state can be considered as the second state mentioned above.

为了便于理解,本申请实施例这里先介绍折叠屏以及折叠屏的展开状态和折叠状态。To facilitate understanding, the embodiment of the present application first introduces the folding screen and the unfolded state and folded state of the folding screen.

上述折叠屏可折叠形成至少两个屏。例如,折叠屏可沿折叠轴折叠形成第一屏和第二屏。可以理解的是,该折叠屏被折叠后形成的至少两个屏,可以为独立存在的多个屏,也可以为一体结构的一个完整屏,只是被折叠形成了至少两部分。The folding screen can be folded to form at least two screens. For example, the folding screen can be folded along a folding axis to form a first screen and a second screen. It is understandable that the at least two screens formed after the folding screen is folded can be multiple independent screens, or a complete screen of an integrated structure, which is just folded to form at least two parts.

示例性地,上述折叠屏可以是柔性折叠屏。柔性折叠屏包括采用柔性材质制作的折叠轴。该柔性折叠屏的部分或全部采用柔性材质制作。例如:该柔性折叠屏中只有可折叠的部分(如折叠轴)采用柔性材质制作,其它部分采用刚性材质制作;或者,该柔性折叠屏全部采用柔性材质制作。该折叠屏可沿折叠轴折叠形成多个(两个或两个以上)屏。Exemplarily, the folding screen may be a flexible folding screen. The flexible folding screen includes a folding axis made of a flexible material. Part or all of the flexible folding screen is made of a flexible material. For example, only the foldable part (such as the folding axis) of the flexible folding screen is made of a flexible material, and the other parts are made of a rigid material; or, the flexible folding screen is made entirely of a flexible material. The folding screen can be folded along the folding axis to form multiple (two or more) screens.

例如,图5中的(a)所示的折叠屏是柔性折叠屏。图5中的(a)所示的折叠屏是一个完整的显示屏,该显示屏包括采用柔性材质制作的折叠轴。该折叠屏沿折叠轴折叠后,可形成图5中的(b)所示的A屏和B屏(即第一屏和第二屏)。其中,柔性折叠屏也可以折叠形成三个或三个以上的屏。For example, the folding screen shown in (a) of FIG5 is a flexible folding screen. The folding screen shown in (a) of FIG5 is a complete display screen, and the display screen includes a folding axis made of a flexible material. After the folding screen is folded along the folding axis, the A screen and the B screen (i.e., the first screen and the second screen) shown in (b) of FIG5 can be formed. Among them, the flexible folding screen can also be folded to form three or more screens.

在另一些实施例中,折叠屏可以为多屏折叠屏。该多屏折叠屏可包括多个(两个或两个以上)屏。需要注意的是,这多个屏是多个单独的显示屏。这多个屏可依次通过折叠轴连接。每个屏可以绕与其连接的折叠轴转动,实现多屏折叠屏的折叠。In some other embodiments, the folding screen may be a multi-screen folding screen. The multi-screen folding screen may include multiple (two or more) screens. It should be noted that the multiple screens are multiple separate display screens. The multiple screens may be connected in sequence through a folding axis. Each screen may rotate around the folding axis connected thereto to achieve folding of the multi-screen folding screen.

上述图5中是将电子设备的折叠屏纵向折叠,实现折叠屏的折叠的。当然,也可以将电子设备的折叠屏横向折叠,以实现折叠屏的折叠(附图未示出)。In the above-mentioned Figure 5, the folding screen of the electronic device is folded longitudinally to realize the folding of the folding screen. Of course, the folding screen of the electronic device can also be folded transversely to realize the folding of the folding screen (not shown in the drawings).

本申请实施例中,折叠屏处于展开状态具体可以为:上述第一屏和第二屏的夹角为180°;或者,上述第一屏和第二屏的夹角与180°的差值的绝对值小于预设角度阈值。例如,预设角度阈值可以为5°,10°或者15°等。例如,如图5中的(a)所示,A屏和B屏之间的夹角为180°,图5中的(a)为折叠屏处于展开状态的形态示意图。图5中的(c)为折叠屏处于折叠状态的形态示意图。图5中的(b)为折叠屏处于未完全展开状态(也是一种折叠状态)的形态示意图。In the embodiment of the present application, the folding screen in the unfolded state may specifically be: the angle between the first screen and the second screen is 180°; or, the absolute value of the difference between the angle between the first screen and the second screen and 180° is less than the preset angle threshold. For example, the preset angle threshold may be 5°, 10° or 15°, etc. For example, as shown in (a) in FIG. 5 , the angle between screen A and screen B is 180°, and (a) in FIG. 5 is a schematic diagram of the folding screen in the unfolded state. (c) in FIG. 5 is a schematic diagram of the folding screen in the folded state. (b) in FIG. 5 is a schematic diagram of the folding screen in an incompletely unfolded state (also a folded state).

本申请实施例提供的方法中,手机与电子手写笔建立有无线连接(如蓝牙连接)。如图6所示,该方法可以包括S601-S606:In the method provided in the embodiment of the present application, a wireless connection (such as a Bluetooth connection) is established between the mobile phone and the electronic stylus. As shown in FIG6 , the method may include S601-S606:

S601、在手机由折叠屏的展开状态切换为折叠状态时,手机向电子手写笔发送第一指示信息。S601: When the mobile phone switches from the unfolded state of the folding screen to the folded state, the mobile phone sends first indication information to the electronic stylus.

这里,上述第一状态是折叠屏的展开状态。上述第二状态是折叠屏的折叠状态。在手机的折叠屏由展开状态切换为折叠状态的情况下,可以认为用户从使用手机转变为不使用手机。在用户不使用手机时,手机外设的电子手写笔通常也不被使用。此时,手机可以向电子手写笔发送第一指示信息。第一指示信息用于指示电子手写笔屏蔽该电子手写笔的休眠唤醒功能。Here, the first state is the unfolded state of the folding screen. The second state is the folded state of the folding screen. When the folding screen of the mobile phone switches from the unfolded state to the folded state, it can be considered that the user changes from using the mobile phone to not using the mobile phone. When the user is not using the mobile phone, the electronic stylus of the mobile phone peripheral is usually not used. At this time, the mobile phone can send a first indication message to the electronic stylus. The first indication message is used to instruct the electronic stylus to shield the sleep wake-up function of the electronic stylus.

S602、电子手写笔接收来自手机的第一指示信息。S602: The electronic stylus receives first instruction information from the mobile phone.

S603、电子手写笔响应于第一指示信息,屏蔽电子手写笔的休眠唤醒功能。S603: The electronic stylus pen shields the sleep and wake-up function of the electronic stylus pen in response to the first indication information.

这里,电子手写笔响应于指示电子手写笔屏蔽休眠唤醒功能的第一指示信息,可以进入低功耗模式(即休眠模式),并且屏蔽电子手写笔的休眠唤醒功能。电子手写笔屏蔽休眠唤醒功能的情况下,即使电子手写笔处于运动中,电子手写笔也不会退出低功耗模式。Here, the electronic stylus can enter a low power consumption mode (i.e., sleep mode) and shield the sleep and wake-up function of the electronic stylus in response to the first instruction information instructing the electronic stylus to shield the sleep and wake-up function. When the electronic stylus shields the sleep and wake-up function, the electronic stylus will not exit the low power consumption mode even if the electronic stylus is in motion.

这里,电子手写笔屏蔽休眠唤醒功能,有以下两种实现方式:Here, the electronic stylus shields the sleep wake-up function, and there are two ways to implement it:

实现方式(1):电子手写笔中的休眠唤醒功能仍然工作。但是,电子手写笔不响应休眠唤醒功能触发电子手写笔进入或退出低功耗模式的指令。Implementation method (1): The sleep-wake-up function in the electronic stylus pen still works. However, the electronic stylus pen does not respond to the instruction of the sleep-wake-up function to trigger the electronic stylus pen to enter or exit the low power consumption mode.

例如,如图7所示,电子手写笔屏蔽休眠唤醒功能后,无论ACC在预设时长内(如1分钟或5分钟等)采集的运动数据均小于预设静止门限(即电子手写笔执行S701),还是ACC采集到的运动数据大于或等于预设静止门限(即电子手写笔执行S702),电子手写笔都不响应休眠唤醒功能触发电子手写笔进入或退出低功耗模式的指令(即电子手写笔执行S703)。For example, as shown in FIG7 , after the electronic stylus shields the sleep wake-up function, regardless of whether the motion data collected by the ACC within a preset time period (such as 1 minute or 5 minutes, etc.) is less than the preset still threshold (i.e., the electronic stylus executes S701), or the motion data collected by the ACC is greater than or equal to the preset still threshold (i.e., the electronic stylus executes S702), the electronic stylus does not respond to the instruction of the sleep wake-up function to trigger the electronic stylus to enter or exit the low power consumption mode (i.e., the electronic stylus executes S703).

实现方式(2):电子手写笔关闭休眠唤醒功能。Implementation method (2): Disable the sleep/wake-up function of the electronic stylus.

例如,电子手写笔关闭休眠唤醒功能后,ACC可以不再采集运动数据。或者,即使ACC在预设时长内(如10秒或1分钟等)采集到的运动数据均小于预设静止门限,或是ACC采集到的运动数据大于或等于预设静止门限,电子手写笔中的休眠唤醒功能都不再触发电子手写笔进入或退出低功耗模式的指令。For example, after the electronic stylus turns off the sleep wake-up function, the ACC may no longer collect motion data. Alternatively, even if the motion data collected by the ACC within a preset time (such as 10 seconds or 1 minute, etc.) is less than the preset static threshold, or the motion data collected by the ACC is greater than or equal to the preset static threshold, the sleep wake-up function in the electronic stylus will no longer trigger the instruction for the electronic stylus to enter or exit the low power consumption mode.

可以理解的是,手机切换为折叠状态后,用户再使用电子手写笔操作手机的概率较小。此时,手机指示电子手写笔屏蔽休眠唤醒功能,可以减少电子手写笔在被用户携带的场景下,基于休眠唤醒功能反复被唤醒的情况。如此,可以提高电子手写笔在未使用状态下的续航能力。It is understandable that after the mobile phone is switched to the folded state, the probability of the user using the electronic stylus to operate the mobile phone is low. At this time, the mobile phone instructs the electronic stylus to block the sleep wake-up function, which can reduce the situation where the electronic stylus is repeatedly awakened based on the sleep wake-up function when the user is carrying it. In this way, the battery life of the electronic stylus when not in use can be improved.

S604、在手机由折叠屏的折叠状态切换为展开状态时,手机向电子手写笔发送第二指示信息。S604: When the mobile phone switches from the folded state of the folding screen to the unfolded state, the mobile phone sends second indication information to the electronic stylus.

这里,第二指示信息用于指示电子手写笔使能休眠唤醒功能。在手机的折叠屏由折叠状态切换为展开状态的情况下,可以认为用户从不使用手机转变为使用手机。在用户使用手机时,手机外设的电子手写笔可能被使用。此时,手机可以向电子手写笔发送第二指示信息,指示电子手写笔使能该电子手写笔的休眠唤醒功能。Here, the second indication information is used to instruct the electronic stylus to enable the sleep wake-up function. When the folding screen of the mobile phone is switched from the folded state to the unfolded state, it can be considered that the user changes from not using the mobile phone to using the mobile phone. When the user uses the mobile phone, the electronic stylus of the mobile phone peripheral may be used. At this time, the mobile phone can send the second indication information to the electronic stylus to instruct the electronic stylus to enable the sleep wake-up function of the electronic stylus.

S605、电子手写笔接收来自手机的第二指示信息。S605: The electronic stylus receives second instruction information from the mobile phone.

S606、电子手写笔响应于第二指示信息,使能休眠唤醒功能。S606: The electronic stylus enables the sleep-wake function in response to the second indication information.

这里,在上述实现方式(1)中,电子手写笔使能休眠唤醒功能,具体是指:电子手写笔响应休眠唤醒功能触发电子手写笔进入或退出低功耗模式的指令。Here, in the above implementation (1), the electronic stylus enables the sleep-wake-up function, which specifically means that the electronic stylus responds to the sleep-wake-up function to trigger an instruction for the electronic stylus to enter or exit a low power consumption mode.

例如,如图7所示,电子手写笔使能休眠唤醒功能后,若ACC在预设时长内(如1分钟或5分钟等)采集的运动数据均小于预设静止门限(即电子手写笔执行S701),电子手写笔可以执行S704:进入低功耗模式(即休眠模式)。若ACC在预设时长内(如1分钟或5分钟等)采集的运动数据大于或等于预设静止门限(即电子手写笔执行S702),电子手写笔可以执行S705:退出低功耗模式(即唤醒模式)。For example, as shown in FIG7 , after the electronic stylus enables the sleep wake-up function, if the motion data collected by the ACC within a preset time (such as 1 minute or 5 minutes, etc.) are all less than the preset static threshold (i.e., the electronic stylus executes S701), the electronic stylus can execute S704: enter low power mode (i.e., sleep mode). If the motion data collected by the ACC within a preset time (such as 1 minute or 5 minutes, etc.) is greater than or equal to the preset static threshold (i.e., the electronic stylus executes S702), the electronic stylus can execute S705: exit low power mode (i.e., wake-up mode).

可以理解的是,手机切换为展开状态后,用户使用电子手写笔操作手机的概率较大。此时,手机指示电子手写笔使能休眠唤醒功能,可以有效使电子手写笔在用户使用时处于激活状态,保障用户可以正常使用电子手写笔。It is understandable that after the mobile phone is switched to the unfolded state, the user is more likely to use the electronic stylus to operate the mobile phone. At this time, the mobile phone instructs the electronic stylus to enable the sleep wake-up function, which can effectively activate the electronic stylus when the user uses it, ensuring that the user can use the electronic stylus normally.

本申请实施例中,介绍了折叠屏手机与电子手写笔配套使用的引用场景。通过本申请实施例的方法,可以提升电子手写笔休眠检测的准确性,即使在电子手写笔跟随折叠屏手机携带的场景下,也可以在保证电子手写笔的正常使用的同时,提高手电子写笔休眠检测的准确性,提升电子手写笔的续航能力,提高用户体验。In the embodiment of the present application, a reference scenario of using a foldable screen mobile phone with an electronic stylus is introduced. Through the method of the embodiment of the present application, the accuracy of the electronic stylus sleep detection can be improved. Even in the scenario where the electronic stylus is carried with the foldable screen mobile phone, the accuracy of the electronic stylus sleep detection can be improved while ensuring the normal use of the electronic stylus, the endurance of the electronic stylus can be improved, and the user experience can be improved.

在另一实现方式中,以电子设备是笔记本电脑为例,进一步对本申请实施例提供的方法进行说明。In another implementation, taking the electronic device as a laptop computer as an example, the method provided in the embodiment of the present application is further explained.

为了便于理解,本申请实施例这里先介绍笔记本电脑的第一状态以及第二状态。For ease of understanding, the present embodiment first introduces the first state and the second state of the laptop computer.

在一些示例中,笔记本电脑处于亮屏状态时,可以认为是上述第一状态。笔记本电脑处于息屏或灭屏状态时,可认为是上述第二状态。In some examples, when the laptop computer is in a screen-on state, it can be considered as the first state. When the laptop computer is in a screen-off or screen-off state, it can be considered as the second state.

在一些示例中,笔记本电脑还可以检测笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角,确认笔记本电脑处于第一状态或第二状态。上述第一状态可以是笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角大于第一预设角度(如60°)的状态。例如,如图8中的(a)所示,笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角为90°,大于第一预设角度(如60°)。此时,笔记本电脑为第一状态。第二状态是笔记本电脑的显示屏所在平面与键盘所在平面之间的夹角小于第二预设角度(如45°)的状态,第二预设角度小于第一预设角度。例如,如图8中的(b)所示,笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角为30°,小于第二预设角度(如45°)。此时,笔记本电脑为第二状态。In some examples, the laptop computer can also detect the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located, and confirm that the laptop computer is in the first state or the second state. The above-mentioned first state can be a state where the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is greater than the first preset angle (such as 60°). For example, as shown in (a) in Figure 8, the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is 90°, which is greater than the first preset angle (such as 60°). At this time, the laptop computer is in the first state. The second state is a state where the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard is located is less than the second preset angle (such as 45°), and the second preset angle is less than the first preset angle. For example, as shown in (b) in Figure 8, the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is 30°, which is less than the second preset angle (such as 45°). At this time, the laptop computer is in the second state.

下面以笔记本电脑的第一状态是笔记本电脑的显示屏所在平面与笔记本电脑的键盘所在平面之间的夹角大于第一预设角度的状态,笔记本电脑的第二状态是笔记本电脑的显示屏所在平面与键盘所在平面之间的夹角小于第二预设角度的状态为例,介绍本申请实施例提供的方法。笔记本电脑与电子手写笔建立有无线连接(如蓝牙连接)。如图9所示,该方法可以包括S901-S906:The following uses the first state of a laptop computer, that is, the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is greater than a first preset angle, and the second state of the laptop computer, that is, the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard of the laptop computer is located is less than a second preset angle, as an example to introduce the method provided by an embodiment of the present application. The laptop computer and the electronic stylus pen have established a wireless connection (such as a Bluetooth connection). As shown in FIG. 9 , the method may include S901-S906:

S901、在笔记本电脑的显示屏所在平面与键盘所在平面的夹角由大于第一预设角度切换为小于第二预设角度时,笔记本电脑向电子手写笔发送第一指示信息。S901. When the angle between the plane where the display screen of the notebook computer is located and the plane where the keyboard is located switches from being greater than a first preset angle to being less than a second preset angle, the notebook computer sends first indication information to the electronic stylus.

这里,在笔记本电脑的显示屏所在平面与键盘所在平面的夹角由大于第一预设角度切换为小于第二预设角度的情况下,可以认为用户从使用笔记本电脑转变为不使用笔记本电脑。在用户不使用笔记本电脑时,笔记本电脑外设的电子手写笔通常也不被使用。此时,笔记本电脑可以向电子手写笔发送第一指示信息。第一指示信息用于指示电子手写笔屏蔽该电子手写笔的休眠唤醒功能。Here, when the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard is located is switched from being greater than the first preset angle to being less than the second preset angle, it can be considered that the user changes from using the laptop computer to not using the laptop computer. When the user is not using the laptop computer, the electronic stylus pen of the laptop computer peripheral is usually not used. At this time, the laptop computer can send first indication information to the electronic stylus pen. The first indication information is used to instruct the electronic stylus pen to shield the sleep wake-up function of the electronic stylus pen.

S902、电子手写笔接收来自笔记本电脑的第一指示信息。S902: The electronic stylus receives first instruction information from the notebook computer.

S903、电子手写笔响应于第一指示信息,屏蔽电子手写笔的休眠唤醒功能。S903: The electronic stylus pen shields the sleep and wake-up function of the electronic stylus pen in response to the first indication information.

这里,电子手写笔响应于指示电子手写笔屏蔽休眠唤醒功能的第一指示信息,可以进入低功耗模式(即休眠模式),并且屏蔽电子手写笔的休眠唤醒功能。电子手写笔屏蔽休眠唤醒功能的情况下,即使电子手写笔处于运动中,电子手写笔也不会退出低功耗模式。Here, the electronic stylus can enter a low power consumption mode (i.e., sleep mode) and shield the sleep and wake-up function of the electronic stylus in response to the first instruction information instructing the electronic stylus to shield the sleep and wake-up function. When the electronic stylus shields the sleep and wake-up function, the electronic stylus will not exit the low power consumption mode even if the electronic stylus is in motion.

这里,电子手写笔屏蔽休眠唤醒功能可以参见上文中S603的描述,这里不再赘述。Here, the electronic stylus pen shielding sleep wake-up function can refer to the description of S603 above, which will not be repeated here.

可以理解的是,笔记本电脑的显示屏所在平面与键盘所在平面的夹角切换为小于第二预设角度后,用户不会再使用电子手写笔操作笔记本电脑。此时,笔记本电脑指示电子手写笔屏蔽休眠唤醒功能,可以减少电子手写笔在被用户携带的场景下,基于休眠唤醒功能反复被唤醒的情况。如此,可以提高电子手写笔在未使用状态下的续航能力。It is understandable that after the angle between the plane where the display screen of the laptop computer and the plane where the keyboard is located is switched to be smaller than the second preset angle, the user will no longer use the electronic stylus to operate the laptop computer. At this time, the laptop computer instructs the electronic stylus to shield the sleep wake-up function, which can reduce the situation where the electronic stylus is repeatedly awakened based on the sleep wake-up function when the user is carrying it. In this way, the battery life of the electronic stylus when not in use can be improved.

S904、在笔记本电脑的显示屏所在平面与键盘所在平面的夹角由小于第二预设角度切换为大于第一预设角度时,笔记本电脑向电子手写笔发送第二指示信息。S904: When the angle between the plane where the display screen of the notebook computer is located and the plane where the keyboard is located switches from being smaller than the second preset angle to being larger than the first preset angle, the notebook computer sends second indication information to the electronic stylus.

这里,第二指示信息用于指示电子手写笔使能休眠唤醒功能。在在笔记本电脑的显示屏所在平面与键盘所在平面的夹角由小于第二预设角度切换为大于第一预设角度的情况下,可以认为用户从不使用笔记本电脑转变为使用笔记本电脑。在用户使用笔记本电脑时,笔记本电脑外设的电子手写笔可能被使用。此时,笔记本电脑可以向电子手写笔发送第二指示信息。第二指示信息用于指示电子手写笔使能该电子手写笔的休眠唤醒功能。Here, the second indication information is used to instruct the electronic stylus to enable the sleep wake-up function. When the angle between the plane where the display screen of the laptop computer is located and the plane where the keyboard is located is switched from less than the second preset angle to greater than the first preset angle, it can be considered that the user changes from not using the laptop computer to using the laptop computer. When the user uses the laptop computer, the electronic stylus of the laptop computer peripheral may be used. At this time, the laptop computer can send the second indication information to the electronic stylus. The second indication information is used to instruct the electronic stylus to enable the sleep wake-up function of the electronic stylus.

S905、电子手写笔接收来自笔记本电脑的第二指示信息。S905: The electronic stylus receives second instruction information from the notebook computer.

S906、电子手写笔响应于第二指示信息,使能休眠唤醒功能。S906: The electronic stylus enables the sleep-wake function in response to the second indication information.

这里,电子手写笔使能休眠唤醒功能可以参见上文中S606的描述,这里不再赘述。Here, the electronic stylus pen enables the sleep wake-up function, as described in S606 above, which will not be repeated here.

可以理解的是,笔记本电脑的显示屏所在平面与键盘所在平面的夹角切换为大于第一预设角度后,用户使用电子手写笔操作笔记本电脑的概率较大。此时,笔记本电脑指示电子手写笔使能休眠唤醒功能,可以有效保障电子手写笔在用户需要使用时处于激活状态,保障用户的正常使用。It is understandable that after the angle between the plane where the display screen of the laptop computer and the plane where the keyboard is located is switched to be greater than the first preset angle, the user is more likely to use the electronic stylus to operate the laptop computer. At this time, the laptop computer instructs the electronic stylus to enable the sleep wake-up function, which can effectively ensure that the electronic stylus is in an activated state when the user needs to use it, ensuring the normal use of the user.

本申请实施例中,介绍了笔记本电脑与电子手写笔配套使用的应用场景。通过本申请实施例的方法,可以提升电子手写笔休眠检测的准确性。即使在电子手写笔跟随笔记本电脑携带的场景下,也可以在保证电子手写笔的正常使用的同时,提高电子手写笔休眠检测的准确性,提升电子手写笔的续航能力,提高用户体验。In the embodiment of the present application, an application scenario of a laptop computer and an electronic stylus pen are introduced. The method of the embodiment of the present application can improve the accuracy of the electronic stylus pen sleep detection. Even in the scenario where the electronic stylus pen is carried with the laptop computer, the accuracy of the electronic stylus pen sleep detection can be improved while ensuring the normal use of the electronic stylus pen, the endurance of the electronic stylus pen can be improved, and the user experience can be improved.

在另一实现方式中,以电子设备是平板电脑为例,进一步对本申请实施例提供的方法进行说明。In another implementation, taking the electronic device being a tablet computer as an example, the method provided in the embodiment of the present application is further described.

为了便于理解,本申请实施例这里先介绍平板电脑的第一状态以及第二状态。For ease of understanding, the present embodiment first introduces the first state and the second state of the tablet computer.

在一些示例中,平板电脑处于亮屏状态时,可以认为是上述第一状态。平板电脑处于息屏或灭屏状态时,可认为是上述第二状态。In some examples, when the tablet computer is in the screen-on state, it can be considered as the first state. When the tablet computer is in the screen-off or screen-off state, it can be considered as the second state.

在一些示例中,平板电脑可以配有皮套。该皮套可以是平板电脑的保护套,用于对平板电脑进行保护和支撑。该皮套配置有磁扣,通过磁扣该皮套可实现展开状态和闭合状态。平板电脑可以通过检测平板电脑的皮套的展开状态或闭合状态,确认平板电脑处于第一状态或第二状态。例如,平板电脑可以通过内部的磁传感器感应磁场变化,确认皮套处于展开状态或是闭合状态。上述第一状态可以是平板电脑的皮套的展开状态。例如,如图10中的(a)所示,平板电脑的皮套为展开状态。在平板电脑的皮套处于展开状态的情况下,平板电脑很大可能被用户使用,从而皮套的展开状态可以是上述第一状态。上述第二状态可以是平板电脑的皮套的闭合状态。例如,如图10中的(b)所示,平板电脑的皮套为闭合状态。在平板电脑的皮套处于闭合状态,平板电脑很大可能不被用户使用,从而皮套的闭合状态可以是上述第二状态。In some examples, the tablet computer may be provided with a leather case. The leather case may be a protective case of the tablet computer, which is used to protect and support the tablet computer. The leather case is provided with a magnetic buckle, and the leather case can be in an expanded state and a closed state through the magnetic buckle. The tablet computer can confirm that the tablet computer is in a first state or a second state by detecting the expanded state or the closed state of the leather case of the tablet computer. For example, the tablet computer can sense the change of the magnetic field through the internal magnetic sensor to confirm that the leather case is in an expanded state or a closed state. The above-mentioned first state may be the expanded state of the leather case of the tablet computer. For example, as shown in (a) of FIG. 10, the leather case of the tablet computer is in an expanded state. When the leather case of the tablet computer is in an expanded state, the tablet computer is very likely to be used by the user, so that the expanded state of the leather case may be the above-mentioned first state. The above-mentioned second state may be the closed state of the leather case of the tablet computer. For example, as shown in (b) of FIG. 10, the leather case of the tablet computer is in a closed state. When the leather case of the tablet computer is in a closed state, the tablet computer is very likely not to be used by the user, so that the closed state of the leather case may be the above-mentioned second state.

下面以平板电脑的第一状态是平板电脑的皮套的展开状态,平板电脑的第二状态是平板电脑的皮套的闭合状态为例,介绍本申请实施例提供的方法。平板电脑与电子手写笔建立有无线连接(如蓝牙连接)。如图11所示,该方法可以包括S1101-S1106:The following takes the case where the first state of the tablet computer is the unfolded state of the tablet computer's leather case and the second state of the tablet computer is the closed state of the tablet computer's leather case as an example to introduce the method provided by the embodiment of the present application. The tablet computer and the electronic stylus pen have established a wireless connection (such as a Bluetooth connection). As shown in FIG. 11 , the method may include S1101-S1106:

S1101、在平板电脑的皮套由展开状态切换为闭合状态时,平板电脑向电子手写笔发送第一指示信息。S1101: When the leather case of the tablet computer is switched from an open state to a closed state, the tablet computer sends first instruction information to the electronic stylus.

这里,在平板电脑的皮套由展开状态切换为闭合状态的情况下,可以认为用户从使用平板电脑转变为不使用平板电脑。在用户不使用平板电脑时,平板电脑外设的电子手写笔通常也不被使用。此时,平板电脑可以向电子手写笔发送第一指示信息。第一指示信息用于指示电子手写笔屏蔽该电子手写笔的休眠唤醒功能。Here, when the leather case of the tablet computer switches from an unfolded state to a closed state, it can be considered that the user changes from using the tablet computer to not using the tablet computer. When the user does not use the tablet computer, the electronic stylus pen of the tablet computer peripheral is usually not used. At this time, the tablet computer can send first indication information to the electronic stylus pen. The first indication information is used to instruct the electronic stylus pen to shield the sleep wake-up function of the electronic stylus pen.

S1102、电子手写笔接收来自平板电脑的第一指示信息。S1102: The electronic stylus receives first indication information from the tablet computer.

S1103、电子手写笔响应于第一指示信息,屏蔽电子手写笔的休眠唤醒功能。S1103: The electronic stylus pen shields a sleep and wake-up function of the electronic stylus pen in response to the first indication information.

这里,电子手写笔响应于指示电子手写笔屏蔽休眠唤醒功能的第一指示信息,可以进入低功耗模式(即休眠模式),并且屏蔽电子手写笔的休眠唤醒功能。电子手写笔屏蔽休眠唤醒功能的情况下,即使电子手写笔处于运动中,电子手写笔也不会退出低功耗模式。Here, the electronic stylus can enter a low power consumption mode (i.e., sleep mode) and shield the sleep and wake-up function of the electronic stylus in response to the first instruction information instructing the electronic stylus to shield the sleep and wake-up function. When the electronic stylus shields the sleep and wake-up function, the electronic stylus will not exit the low power consumption mode even if the electronic stylus is in motion.

这里,电子手写笔屏蔽休眠唤醒功能可以参见上文中S603的描述,这里不再赘述。Here, the electronic stylus pen shielding sleep wake-up function can refer to the description of S603 above, which will not be repeated here.

可以理解的是,平板电脑的皮套切换为闭合状态后,用户不会再使用电子手写笔操作平板电脑。此时,平板电脑指示电子手写笔屏蔽休眠唤醒功能,可以减少电子手写笔在被用户携带的场景下,基于休眠唤醒功能反复被唤醒的情况。如此,可以提高电子手写笔在未使用状态下的续航能力。It is understandable that after the tablet computer's leather case is switched to the closed state, the user will no longer use the electronic stylus to operate the tablet computer. At this time, the tablet computer instructs the electronic stylus to block the sleep wake-up function, which can reduce the situation where the electronic stylus is repeatedly awakened based on the sleep wake-up function when the user is carrying it. In this way, the battery life of the electronic stylus when not in use can be improved.

S1104、在平板电脑的皮套由闭合状态切换为展开状态时,平板电脑向电子手写笔发送第二指示信息。S1104: When the leather case of the tablet computer is switched from the closed state to the unfolded state, the tablet computer sends second instruction information to the electronic stylus.

这里,第二指示信息用于指示电子手写笔使能休眠唤醒功能。在平板电脑的皮套由闭合状态切换为展开状态的情况下,可以认为用户从不使用平板电脑转变为使用平板电脑。在用户使用平板电脑时,平板电脑外设的电子手写笔可能被使用。此时,平板电脑可以向电子手写笔发送第二指示信息。第二指示信息用于指示电子手写笔使能该电子手写笔的休眠唤醒功能。Here, the second indication information is used to instruct the electronic stylus to enable the sleep wake-up function. When the leather case of the tablet computer is switched from a closed state to an unfolded state, it can be considered that the user changes from not using the tablet computer to using the tablet computer. When the user uses the tablet computer, the electronic stylus of the tablet computer peripheral may be used. At this time, the tablet computer can send the second indication information to the electronic stylus. The second indication information is used to instruct the electronic stylus to enable the sleep wake-up function of the electronic stylus.

S1105、电子手写笔接收来自平板电脑的第二指示信息。S1105: The electronic stylus receives second indication information from the tablet computer.

S1106、电子手写笔响应于第二指示信息,使能休眠唤醒功能。S1106: The electronic stylus enables the sleep-wake function in response to the second indication information.

这里,电子手写笔使能休眠唤醒功能可以参见上文中S606的描述,这里不再赘述。Here, the electronic stylus pen enables the sleep wake-up function, as described in S606 above, which will not be repeated here.

可以理解的是,平板电脑的皮套切换为展开状态后,用户使用电子手写笔操作平板电脑的概率较大。此时,平板电脑指示电子手写笔使能休眠唤醒功能,可以有效保障电子手写笔在用户需要使用时处于激活状态,保障用户的正常使用。It is understandable that after the tablet computer's leather case is switched to the unfolded state, the user is more likely to use the electronic stylus to operate the tablet computer. At this time, the tablet computer instructs the electronic stylus to enable the sleep wake-up function, which can effectively ensure that the electronic stylus is in an activated state when the user needs to use it, ensuring the user's normal use.

本申请实施例中,介绍了平板电脑与电子手写笔配套使用的应用场景。通过本申请实施例的方法,可以提升电子手写笔休眠检测的准确性。即使在电子手写笔跟随平板电脑携带的场景下,也可以在保证电子手写笔的正常使用的同时,提高电子手写笔休眠检测的准确性,提升电子手写笔的续航能力,提高用户体验。In the embodiment of the present application, an application scenario of using a tablet computer and an electronic stylus in combination is introduced. Through the method of the embodiment of the present application, the accuracy of the electronic stylus sleep detection can be improved. Even in the scenario where the electronic stylus is carried with the tablet computer, the accuracy of the electronic stylus sleep detection can be improved while ensuring the normal use of the electronic stylus, the endurance of the electronic stylus can be improved, and the user experience can be improved.

通过本申请实施例提供的方法,可以有效减少蓝牙外设跟随电子设备携带场景中的功耗。以蓝牙外设是电子手写笔为例,在携带场景中处于运动状态下的电子手写笔,其功耗从原有的3mA降低至0.2mA,待机时间从10小时提升至60天。可见,通过本申请实施例提供的方法,可以有效减低蓝牙外设跟随电子设备携带场景中的功耗,提升蓝牙外设的续航能力。The method provided in the embodiment of the present application can effectively reduce the power consumption of Bluetooth peripherals in the scenario where they are carried with electronic devices. Taking the Bluetooth peripheral as an electronic stylus as an example, the power consumption of the electronic stylus in motion in the carrying scenario is reduced from the original 3mA to 0.2mA, and the standby time is increased from 10 hours to 60 days. It can be seen that the method provided in the embodiment of the present application can effectively reduce the power consumption of Bluetooth peripherals in the scenario where they are carried with electronic devices, and improve the endurance of Bluetooth peripherals.

在一些实现方式中,为了减少蓝牙外设与电子设备断开连接而无法正常使用的情况,蓝牙外设还可以以预设时间间隔(如1分钟、2分钟等)向电子设备发送携带有连接状态的状态信息。例如,蓝牙外设每间隔1分钟向电子设备发送状态信息。在状态信息指示蓝牙外设与电子设备的连接状态为保持连接的情况下,蓝牙外设继续正常工作。在状态信息指示蓝牙外设与电子设备的连接状态为断开连接的情况下,蓝牙外设无法正常工作。此时,蓝牙外设可以自动发送蓝牙广播。该蓝牙广播用于请求与电子设备重新建立连接。或者,蓝牙外设可以向用户发出连接断开的提示,并根据用户指示连接的用户操作(如按压蓝牙外设上的预设按键的按压操作)向电子设备发送蓝牙广播,请求与电子设备重新建立连接。In some implementations, in order to reduce the situation where the Bluetooth peripheral is disconnected from the electronic device and cannot be used normally, the Bluetooth peripheral can also send status information carrying the connection status to the electronic device at preset time intervals (such as 1 minute, 2 minutes, etc.). For example, the Bluetooth peripheral sends status information to the electronic device every 1 minute. When the status information indicates that the connection status of the Bluetooth peripheral and the electronic device is to maintain the connection, the Bluetooth peripheral continues to work normally. When the status information indicates that the connection status of the Bluetooth peripheral and the electronic device is disconnected, the Bluetooth peripheral cannot work normally. At this time, the Bluetooth peripheral can automatically send a Bluetooth broadcast. The Bluetooth broadcast is used to request to re-establish a connection with the electronic device. Alternatively, the Bluetooth peripheral can send a disconnection prompt to the user, and send a Bluetooth broadcast to the electronic device according to the user operation indicating the connection (such as pressing a preset button on the Bluetooth peripheral) to request to re-establish a connection with the electronic device.

这里,电子设备在接收到蓝牙外设的蓝牙广播之后,与蓝牙外设重新建立无线连接(如蓝牙连接)。为了使蓝牙外设在连接后可以正常使用,电子设备可以在与蓝牙外设建立连接之后,可以根据电子设备的当前状态(如上述第一状态或上述第二状态),向蓝牙外设发送上述第一指示信息或第二指示信息。Here, after receiving the Bluetooth broadcast of the Bluetooth peripheral, the electronic device re-establishes a wireless connection (such as a Bluetooth connection) with the Bluetooth peripheral. In order to enable the Bluetooth peripheral to be used normally after the connection, the electronic device can send the first indication information or the second indication information to the Bluetooth peripheral according to the current state of the electronic device (such as the first state or the second state) after establishing the connection with the Bluetooth peripheral.

例如,若电子设备的显示屏亮屏,则电子设备的当前状态是第一状态。在电子设备是第一状态的情况下,电子设备可以向蓝牙外设发送上述第二指示信息,通过第二指示信息指示蓝牙外设使能休眠唤醒功能。蓝牙外设响应于第二指示信息,使能休眠唤醒功能。若电子设备的显示屏息屏或灭屏,则电子设备的当前状态是第二状态。在电子设备是第二状态的情况下,电子设备可以向蓝牙外设发送上述第一指示信息,通过第一指示信息指示蓝牙外设屏蔽休眠唤醒功能。蓝牙外设响应于第一指示信息,屏蔽休眠唤醒功能,并进入低功耗模式(即休眠模式)。这样,在蓝牙外设与电子设备断开连接的场景中,蓝牙外设可以与电子设备重新建立连接,并在重新连接后可以正常使用。For example, if the display screen of the electronic device is on, the current state of the electronic device is the first state. When the electronic device is in the first state, the electronic device can send the above-mentioned second indication information to the Bluetooth peripheral, and instruct the Bluetooth peripheral to enable the sleep wake-up function through the second indication information. The Bluetooth peripheral responds to the second indication information and enables the sleep wake-up function. If the display screen of the electronic device is off or off, the current state of the electronic device is the second state. When the electronic device is in the second state, the electronic device can send the above-mentioned first indication information to the Bluetooth peripheral, and instruct the Bluetooth peripheral to shield the sleep wake-up function through the first indication information. The Bluetooth peripheral responds to the first indication information, shields the sleep wake-up function, and enters a low power consumption mode (ie, sleep mode). In this way, in a scenario where the Bluetooth peripheral is disconnected from the electronic device, the Bluetooth peripheral can re-establish a connection with the electronic device and can be used normally after reconnection.

本申请另一些实施例提供了一种电子设备,该电子设备包括:存储器和一个或多个处理器。该存储器与处理器耦合。其中,上述存储器中存储有计算机程序代码,该计算机程序代码包括计算机指令。当计算机指令被处理器执行时,电子设备可执行上述方法实施例中的各个功能或者步骤。该电子设备的结构可以参考图3所示的手机200的结构。Some other embodiments of the present application provide an electronic device, the electronic device comprising: a memory and one or more processors. The memory is coupled to the processor. The memory stores a computer program code, the computer program code comprising computer instructions. When the computer instructions are executed by the processor, the electronic device can perform each function or step in the above method embodiment. The structure of the electronic device can refer to the structure of the mobile phone 200 shown in FIG. 3.

本申请另一些实施例提供了一种蓝牙外设,该蓝牙外设可以是电子手写笔或者蓝牙键盘等任一种设备。该蓝牙外设包括:存储器和一个或多个处理器。该存储器与处理器耦合。其中,上述存储器中存储有计算机程序代码,该计算机程序代码包括计算机指令。当计算机指令被处理器执行时,蓝牙外设可执行上述方法实施例中的各个功能或者步骤。该蓝牙外设的结构可以参考图2所示的电子手写笔100的结构。Some other embodiments of the present application provide a Bluetooth peripheral, which can be any device such as an electronic stylus or a Bluetooth keyboard. The Bluetooth peripheral includes: a memory and one or more processors. The memory is coupled to the processor. The memory stores a computer program code, which includes computer instructions. When the computer instructions are executed by the processor, the Bluetooth peripheral can perform various functions or steps in the above method embodiments. The structure of the Bluetooth peripheral can refer to the structure of the electronic stylus 100 shown in FIG. 2.

本申请实施例还提供一种芯片系统,该芯片系统包括至少一个处理器和至少一个接口电路。处理器和接口电路可通过线路互联。例如,接口电路可用于从其它装置(例如电子设备或蓝牙外设的存储器)接收信号。又例如,接口电路可用于向其它装置(例如处理器)发送信号。示例性的,接口电路可读取存储器中存储的指令,并将该指令发送给处理器。当所述指令被处理器执行时,可使得电子设备或蓝牙外设执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application also provides a chip system, which includes at least one processor and at least one interface circuit. The processor and the interface circuit can be interconnected through lines. For example, the interface circuit can be used to receive signals from other devices (such as the memory of an electronic device or a Bluetooth peripheral). For another example, the interface circuit can be used to send signals to other devices (such as a processor). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device or Bluetooth peripheral can perform the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.

本申请实施例还提供一种计算机可读存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中的各个功能或者步骤。或者,当所述计算机指令在上述蓝牙外设上运行时,使得该蓝牙外设执行上述方法实施例中的各个功能或者步骤。The embodiment of the present application also provides a computer-readable storage medium, which includes computer instructions, and when the computer instructions are executed on the electronic device, the electronic device executes each function or step in the method embodiment. Alternatively, when the computer instructions are executed on the Bluetooth peripheral device, the Bluetooth peripheral device executes each function or step in the method embodiment.

本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中各个功能或者步骤。The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step in the above method embodiment.

通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

CN202211517348.9A2022-11-222022-11-29 Sleep awakening method, electronic device, bluetooth peripheral and storage mediumActiveCN116709477B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
PCT/CN2023/117338WO2024109259A1 (en)2022-11-222023-09-06Sleep wake-up method, electronic device, bluetooth peripheral, and storage medium

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN2022114692612022-11-22
CN20221146926192022-11-22

Publications (2)

Publication NumberPublication Date
CN116709477A CN116709477A (en)2023-09-05
CN116709477Btrue CN116709477B (en)2024-05-14

Family

ID=87826399

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211517348.9AActiveCN116709477B (en)2022-11-222022-11-29 Sleep awakening method, electronic device, bluetooth peripheral and storage medium

Country Status (2)

CountryLink
CN (1)CN116709477B (en)
WO (1)WO2024109259A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116709477B (en)*2022-11-222024-05-14荣耀终端有限公司 Sleep awakening method, electronic device, bluetooth peripheral and storage medium
CN117177059B (en)*2023-10-272024-04-12荣耀终端有限公司Camera control method for video call, electronic device and storage medium
CN117950737B (en)*2024-03-222024-07-26荣耀终端有限公司 Wake-up processing method, device, electronic device and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101943939A (en)*2009-07-092011-01-12上海易狄欧电子科技有限公司Terminal and method for controlling stylus pen of terminal
CN105516901A (en)*2015-12-212016-04-20飞天诚信科技股份有限公司Low-power Bluetooth device and working method thereof
WO2019183783A1 (en)*2018-03-262019-10-03华为技术有限公司Management method for peripheral device in terminal and terminal
CN111124158A (en)*2019-11-112020-05-08华为技术有限公司Information input equipment, terminal, control method thereof and chip
WO2022218118A1 (en)*2021-04-152022-10-20Oppo广东移动通信有限公司Wakeup method and apparatus for electronic accessories, wearable device, and electronic accessories

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2003241862A (en)*2002-02-212003-08-29Toshiba Corp Information processing system and state transition control method thereof
CN103984491B (en)*2014-05-202017-11-24联想(北京)有限公司A kind of hardware device connection method and electronic equipment
CN111475077A (en)*2020-02-042020-07-31华为技术有限公司Display control method and electronic equipment
CN115243398B (en)*2021-04-222025-05-16华为技术有限公司 WiFi link sleep awakening method, electronic device and system
CN113741634B (en)*2021-08-302024-06-11海信视像科技股份有限公司State control method based on wearable device and wearable device
CN116709477B (en)*2022-11-222024-05-14荣耀终端有限公司 Sleep awakening method, electronic device, bluetooth peripheral and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101943939A (en)*2009-07-092011-01-12上海易狄欧电子科技有限公司Terminal and method for controlling stylus pen of terminal
CN105516901A (en)*2015-12-212016-04-20飞天诚信科技股份有限公司Low-power Bluetooth device and working method thereof
WO2019183783A1 (en)*2018-03-262019-10-03华为技术有限公司Management method for peripheral device in terminal and terminal
CN111124158A (en)*2019-11-112020-05-08华为技术有限公司Information input equipment, terminal, control method thereof and chip
WO2022218118A1 (en)*2021-04-152022-10-20Oppo广东移动通信有限公司Wakeup method and apparatus for electronic accessories, wearable device, and electronic accessories

Also Published As

Publication numberPublication date
CN116709477A (en)2023-09-05
WO2024109259A1 (en)2024-05-30

Similar Documents

PublicationPublication DateTitle
CN116709477B (en) Sleep awakening method, electronic device, bluetooth peripheral and storage medium
CN112671976B (en)Control method and device of electronic equipment, electronic equipment and storage medium
US20140160045A1 (en)Terminal and method for providing user interface using a pen
WO2021104030A1 (en)Split-screen display method and electronic device
CN109614061B (en) Display method and terminal
KR20140126140A (en)Mobile apparatus providing with changed-shortcut icon responding to status of mobile apparatus and control method thereof
KR20140079012A (en)Mobile apparatus having function of face recognition with additional component
CN114143906B (en) An electronic device connection method and electronic device
CN110502163A (en) Terminal device control method and terminal device
CN115113747B (en)Touch pen using method and system and touch pen
KR20170051950A (en)Electronic device and method for controlling display thereof
CN112114883A (en)Terminal awakening method, terminal and computer storage medium
US10114496B2 (en)Apparatus for measuring coordinates and control method thereof
CN117354772A (en)Method for establishing connection with handwriting pen and electronic equipment
KR20140090112A (en)Method and apparatus for pairing electronic devices
CN108363536A (en)A kind of expression packet application method and terminal device
KR20160026135A (en)Electronic device and method of sending a message using electronic device
KR20140089868A (en)Mobile apparatus providing hybrid-widget and control method thereof
CN117116258B (en)Voice awakening method and electronic equipment
CN108153652A (en)A kind of progress display methods and mobile terminal
CN115802325A (en) A stylus connection method and bluetooth system
CN116700855B (en)Interface display method and electronic equipment
CN117076017B (en)Scroll bar display method and electronic equipment
CN116708647B (en) Notification message reply method and electronic device
CN116088726B (en)Application icon display method and terminal equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

Address after:Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after:Honor Terminal Co.,Ltd.

Country or region after:China

Address before:3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before:Honor Device Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp