Power saving method, apparatus, electronic device, and medium

By establishing a wireless connection between the stylus and the electronic device, the system determines the target's working state based on pressure information and enters the corresponding power-saving mode, thus solving the problem of high power consumption of the stylus and achieving power saving.

CN115437488BActive Publication Date: 2025-12-12VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211130168.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2025-12-12
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

When a user is using a stylus for input, there may be times when the stylus is not used for a short period of time, but the user fails to disconnect in time, resulting in the stylus consuming a large amount of power.

Method used

After the stylus establishes a wireless connection with the electronic device, it determines the target working state by acquiring pressure information and enters the corresponding power-saving mode, including super low power mode, low power mode and normal power mode.

Benefits of technology

By adjusting the stylus's operating status based on pressure information, it avoids being constantly in use, thereby saving power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115437488B_ABST
    Figure CN115437488B_ABST
Patent Text Reader

Abstract

The application discloses an electricity-saving method and device, electronic equipment and medium, and belongs to the technical field of electronics. The electricity-saving method comprises the following steps: acquiring first pressure information detected by a stylus in the case that a wireless connection is established with the electronic equipment; determining a target working state of the stylus according to the first pressure information; and controlling the stylus to be in a first electricity-saving mode corresponding to the target working state.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of electronics, and particularly relates to a power saving method and device, an electronic device and a medium. BACKGROUND

[0002] Generally, in the scenario that a user uses a stylus to input on a display screen of an electronic device, if the user uses the stylus, the user can trigger the electronic device to disconnect from the stylus, so that the stylus is in a non-use state, thereby saving the power consumption of the stylus.

[0003] However, during the use of the stylus for input, the user may not use the stylus for a short time, at which time the user may not trigger the electronic device to disconnect from the stylus, that is, the stylus is still in a use state.

[0004] Therefore, the power consumption of the stylus is large. SUMMARY

[0005] The purpose of the embodiments of the present application is to provide a power saving method and device, an electronic device and a medium, which can solve the problem of large power consumption of the stylus.

[0006] In order to solve the above technical problem, the present application is implemented as follows:

[0007] In a first aspect, the embodiments of the present application provide a power saving method applied to a stylus, the method comprising: in the case of establishing a wireless connection with an electronic device, obtaining first pressure information detected by the stylus; determining a target working state of the stylus according to the first pressure information; and controlling the stylus to be in a first power saving mode corresponding to the target working state.

[0008] In a second aspect, the embodiments of the present application provide a power saving method applied to an electronic device, the method comprising: in the case of establishing a wireless connection with a stylus, obtaining first pressure information detected by the stylus; determining a target working state of the stylus according to the first pressure information; and controlling the electronic device to be in a second power saving mode corresponding to the target working state.

[0009] In a third aspect, the embodiments of the present application provide a power saving device, which is a first power saving device, the first power saving device comprising: an obtaining module and a determining module; the obtaining module is configured to obtain first pressure information detected by the first power saving device in the case of establishing a wireless connection with the first power saving device; the determining module is configured to determine a target working state of the first power saving device according to the first pressure information obtained by the obtaining module; and a processing module is configured to control the first power saving device to be in a first power saving mode corresponding to the target working state determined by the determining module.

[0010] In a fourth aspect, an embodiment of the present application provides a power saving device, which is a second power saving device. The second power saving device comprises: an obtaining module and a determining module. The obtaining module is configured to obtain first pressure information detected by a first power saving device in a case where the first power saving device establishes a wireless connection. The determining module is configured to determine a target working state of the first power saving device according to the first pressure information obtained by the obtaining module. The processing module is configured to control the second power saving device to be in a second power saving mode corresponding to the target working state determined by the determining module.

[0011] In a fifth aspect, an embodiment of the present application provides an electronic device. The electronic device comprises a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the steps of the method in the first aspect are implemented.

[0012] In a sixth aspect, an embodiment of the present application provides a readable storage medium. The readable storage medium stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method in the first aspect are implemented.

[0013] In a seventh aspect, an embodiment of the present application provides a chip. The chip comprises a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run programs or instructions to implement the method in the first aspect.

[0014] In an eighth aspect, an embodiment of the present application provides a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement the method in the first aspect.

[0015] In the embodiments of the present application, the stylus can obtain first pressure information detected by the stylus in a case where the electronic device establishes a wireless connection with the stylus, and determine a target working state of the stylus according to the first pressure information, so as to control the stylus to be in a first power saving mode corresponding to the target working state. Since the target working state of the stylus is determined according to the first pressure information obtained by the stylus in a case where the electronic device establishes a wireless connection with the stylus, so as to make the stylus enter a power saving mode corresponding to the target working state, the stylus is prevented from being in a use state all the time, and thus the power consumption of the stylus can be saved. BRIEF DESCRIPTION OF DRAWINGS

[0016] Figure 1 is one of flowcharts of a power saving method provided by an embodiment of the present application;

[0017] Figure 2 is one of schematic diagrams of a pressure information change trend of an electronic device obtained from a stylus provided by an embodiment of the present application;

[0018] Figure 3Figure 2 is a flowchart of a power saving method according to an embodiment of the present application;

[0019] Figure 4 Figure 3 is a flowchart of a power saving method according to an embodiment of the present application;

[0020] Figure 5 Figure 4 is a schematic diagram of a first power saving device according to an embodiment of the present application;

[0021] Figure 6 Figure 5 is a schematic diagram of a second power saving device according to an embodiment of the present application;

[0022] Figure 7 Figure 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;

[0023] Figure 8 Figure 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0025] The terms “first”, “second”, and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be exchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by “first”, “second”, and the like are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, “and / or” in the specification and claims indicates at least one of the connected objects, and the character “ / ” generally indicates that the front and rear associated objects are in an “or” relationship.

[0026] The power saving method, device, electronic device, and medium provided by the embodiments of the present application will be described in detail below with reference to the drawings and specific embodiments and application scenarios.

[0027] Generally, in a scenario where a user uses a stylus to input on a display screen of an electronic device, if the user finishes using the stylus, the user can trigger the electronic device to disconnect from the stylus, so that the stylus is in a non-use state, thereby saving the power consumption of the stylus. However, during the use of the stylus for input, the user may not use the stylus for a short time, at which time the user may not trigger the electronic device to disconnect from the stylus, that is, the stylus is still in a use state. Therefore, the power consumption of the stylus is large.

[0028] In the embodiment of the present application, the stylus can obtain first pressure information detected by the stylus in a case where the stylus establishes a wireless connection with the electronic device, and determine a target working state of the stylus according to the first pressure information, so as to control the stylus to be in a first power saving mode corresponding to the target working state. Since the target working state of the stylus can be determined according to the first pressure information obtained by the stylus in a case where the stylus establishes a wireless connection with the electronic device, the stylus enters a power saving mode corresponding to the target working state, and the stylus is prevented from being in a use state all the time, thereby saving the power consumption of the stylus.

[0029] The power saving method provided in the embodiment of the present application is executed by a power saving device, which can be an electronic device, or a control unit or module in the electronic device, and the embodiment of the present application does not limit the power saving device. The technical solution provided in the embodiment of the present application will be described below by taking the power saving device as an example.

[0030] The embodiment of the present application provides a power saving method, Figure 1 A flowchart of a power saving method provided in the embodiment of the present application is shown, and the method can be applied to a stylus. As shown in Figure 1 The power saving method provided in the embodiment of the present application can include the following steps 201 to 203.

[0031] Step 201: Obtain first pressure information detected by the stylus in a case where a wireless connection is established between the stylus and an electronic device.

[0032] Optionally, in the embodiment of the present application, the first pressure information can be pressure information detected by a pressure sensor arranged on a body of the stylus.

[0033] Exemplarily, the wireless connection can be any one of the following: a Bluetooth connection, a Wireless-Fidelity (Wi-Fi) connection, a local area network connection, and the like.

[0034] Optionally, in the embodiment of the present application, the first pressure information can include one or more pieces of pressure information obtained by the stylus in real time.

[0035] Exemplarily, the first pressure information can be a pressure value greater than or equal to 0.

[0036] In step 202, a target working state of the stylus is determined according to the first pressure information.

[0037] Optionally, in the embodiments of the present application, the target working state can be a working state currently taken by the stylus.

[0038] Further optionally, in the embodiments of the present application, the target working state can be any one of the following: an idle state, a pen-taking state, a pen-holding state after the pen is taken, a pen-dropping state, a writing state, a pen-lifting state, a pen-holding state after the pen is lifted, a pen-putting state, and the like.

[0039] The following will be exemplarily described according to the working states that can occur in the process of writing by using the stylus.

[0040] Exemplarily, the idle state is used to indicate a static state of the stylus in a case where the stylus is not contacted by the user. For example, the idle state can be a state that the stylus is currently in a magnetic attraction state or a charging state.

[0041] Exemplarily, the pen-taking state is used to indicate a state of the stylus in a case where the stylus is taken by the user and has not contacted the display screen.

[0042] Exemplarily, the pen-holding state after the pen is taken is used to indicate a state of the stylus in a case where the stylus is held in the hand after the stylus is taken by the user and has not contacted the display screen.

[0043] Exemplarily, the pen-dropping state is used to indicate a state of the stylus in a case where the stylus is controlled to move to the display screen by the user in the process of using the stylus.

[0044] Exemplarily, the writing state is used to indicate a state of the stylus in a case where the stylus is contacted with the display screen in the process of writing by the user.

[0045] Exemplarily, the pen-lifting state is used to indicate a state of the stylus in a case where the stylus is lifted by the user in the process of writing by using the stylus.

[0046] Exemplarily, the pen-holding state after the pen is lifted is used to indicate a state of the stylus in a case where the stylus is held in the hand after the stylus is lifted by the user and has not contacted the display screen.

[0047] Exemplarily, the pen-putting state is used to indicate a state of the stylus in a case where the stylus is put down by the user after the process of writing by using the stylus is completed.

[0048] In step 203, the stylus is controlled to be in a first power saving mode corresponding to the target working state.

[0049] The first power saving mode is used to indicate that the stylus receives a target signal transmitted by the electronic device.

[0050] Optionally, in the case where the target working state is any one of an idle state, a pen holding state, or a pen putting state, the stylus is started in a first power saving mode corresponding to the target working state, i.e., a super low power consumption mode (or a deep sleep mode).

[0051] The super low power consumption mode (or the deep sleep mode) is used to indicate that the stylus is currently in a power consumption mode in which the stylus stops receiving a target signal transmitted by the electronic device.

[0052] Optionally, in the case where the target working state is any one of a pen holding state after the pen is picked up, a pen lifting state, or a pen holding state after the pen is put down, the stylus is started in a first power saving mode corresponding to the target working state, i.e., a low power consumption mode.

[0053] The low power consumption mode is used to indicate that the stylus is currently in a power consumption mode in which the stylus receives a target signal at a first frequency lower than or equal to a preset frequency. The preset frequency is used to indicate the frequency at which the stylus receives a target signal per unit time. The preset frequency can be set by a user as needed, or can be pre-stored in the electronic device.

[0054] Optionally, in the case where the target working state is any one of a writing state or a pen landing state, the stylus is started in a first power saving mode corresponding to the target working state, i.e., a normal power consumption mode.

[0055] The normal power consumption mode is used to indicate that the stylus is currently in a power consumption mode in which the stylus receives a target signal at a second frequency higher than the first frequency.

[0056] In the embodiment, the stylus can establish a wireless connection with the electronic device, acquire first pressure information detected by the stylus, and determine a target working state of the stylus according to the first pressure information, so as to control the stylus to be in a first power saving mode corresponding to the target working state. Since the stylus can determine the target working state according to the acquired first pressure information in the case where the stylus establishes a wireless connection with the electronic device, the stylus enters a power saving mode corresponding to the target working state, and the stylus is prevented from being in a use state all the time, so that the power consumption of the stylus can be saved.

[0057] The following will be illustrated as an example how to determine the target working state of the stylus according to the first pressure information received by the stylus.

[0058] Optionally, the step 202 can be implemented through the following steps 202a and 202b in the embodiments of the present application.

[0059] The step 202a determines the target preset pressure range corresponding to the first pressure information from the N preset pressure ranges.

[0060] Each of the N preset pressure ranges corresponds to at least one second working state, and N is a positive integer.

[0061] Optionally, the N preset pressure ranges can be pre-stored in the electronic device or set in advance by the user according to the requirements in the embodiments of the present application.

[0062] Further optionally, the N preset pressure ranges can be at least one of the following: [0, g1], [g1, g2], [g2, g3], [g3, g4], [g4, Max], etc. in the embodiments of the present application.

[0063] g1, g2, g3, and g4 are used to indicate different pressure thresholds, which can be set according to actual needs.

[0064] Max is used to indicate the maximum pressure value detected by the stylus in the embodiments of the present application.

[0065] Optionally, the target preset pressure range can be the pressure range in which the first pressure information is located in the embodiments of the present application. The pressure range in which the first pressure information is located can be understood as that the first pressure information is less than the maximum critical value of the target preset pressure range and greater than the minimum critical value of the target preset pressure range.

[0066] It should be noted that each of the N preset pressure ranges can correspond to one or more working states.

[0067] Exemplarily, the N preset pressure ranges in the stylus can be: [0, g1], [g1, g2], [g2, g3], [g3, g4], [g4, Max]. Wherein, [0, g1] corresponds to one working state, i.e. idle state, [g1, g2] corresponds to two working states, i.e. pen holding state or pen putting state, [g2, g3] corresponds to two working states, i.e. pen holding state after pen holding or pen holding state after pen lifting, [g3, g4] corresponds to two working states, i.e. pen putting state or pen lifting state, and [g4, Max] corresponds to one working state, i.e. writing state. If the pressure values contained in the first pressure information are all in [0, g1], then [0, g1] is determined as the target preset pressure range corresponding to the first pressure information. If the pressure values contained in the first pressure information are all in [g1, g2], then [g1, g2] is determined as the target preset pressure range corresponding to the first pressure information. If the pressure values contained in the first pressure information are all in [g2, g3], then [g2, g3] is determined as the target preset pressure range corresponding to the first pressure information. If the pressure values contained in the first pressure information are all in [g3, g4], then [g3, g4] is determined as the target preset pressure range corresponding to the first pressure information. If the pressure values contained in the first pressure information are all in [g4, Max], then [g4, Max] is determined as the target preset pressure range corresponding to the first pressure information.

[0068] In step 202b, the target working state is determined according to the first working state corresponding to the target preset pressure range.

[0069] Exemplarily, when the target preset pressure range corresponds to one working state, the working state is determined as the target working state.

[0070] For example, assuming that the first pressure information is that 5 pressure values are acquired by the stylus within 200 ms, and the pressure values contained in the first pressure information are all in [0, g1], then the stylus can determine the first working state (i.e. idle state) corresponding to [0, g1] as the target working state.

[0071] Exemplarily, when the target preset pressure range corresponds to two working states, the target working state needs to be determined according to the variation trend corresponding to the first pressure information. Specifically, the variation trend can be increasing trend or decreasing trend.

[0072] For example, as shown in FIG. 2, when the target preset pressure range is [g1, g2], the stylus can determine the target working state according to the variation trend corresponding to the first pressure information. If the pressure values contained in the first pressure information are all in [g1, g2] and the pressure values are increasing, then the stylus can determine the target working state as pen holding state. If the pressure values contained in the first pressure information are all in [g1, g2] and the pressure values are decreasing, then the stylus can determine the target working state as pen putting state. Figure 2As shown, assuming that the first pressure information is the pressure information detected by the stylus in the time period of 0-t1, and the pressure values contained in the first pressure information are all within [0, g1], it is determined that the target working state of the stylus is the idle state. Assuming that the first pressure information is the pressure information detected by the stylus in the time period of t2-t3, and the pressure values contained in the first pressure information are all within [g1, g2], and the change trend of the first pressure information is an increasing trend, it is determined that the target working state of the stylus is the pen holding state. Assuming that the first pressure information is the pressure information detected by the stylus in the time period of t3-t4, and the pressure values contained in the first pressure information are all within [g2, g3], and the previous working state is the pen holding state, it is determined that the target working state of the stylus is the pen holding state after the pen is held. Assuming that the first pressure information is the pressure information detected by the stylus in the time period of t3-t4, and the pressure values contained in the first pressure information are all within [g3, g4], and the change trend of the first pressure information is an increasing trend, it is determined that the target working state of the stylus is the pen dropping state.

[0073] Assuming that the first pressure information is the pressure information detected by the stylus in the time period of t4-t5, and the pressure values contained in the first pressure information are all within [g4, max], it is determined that the target working state of the stylus is the writing state. Assuming that the first pressure information is the pressure information detected by the stylus in the time period of t5-t6, and the pressure values contained in the first pressure information are all within [g3, g4], and the change trend of the first pressure information is a decreasing trend, it is determined that the target working state of the stylus is the pen lifting state. Assuming that the first pressure information is the pressure information detected by the stylus in the time period of t6-t7, and the pressure values contained in the first pressure information are all within [g2, g3], and the previous working state is the pen lifting state, it is determined that the target working state of the stylus is the pen holding state after the pen is lifted. Assuming that the first pressure information is the pressure information detected by the stylus in the time period of t7-t8, and the pressure values contained in the first pressure information are all within [g1, g2], and the change trend of the first pressure information is a decreasing trend, it is determined that the target working state of the stylus is the pen putting state.

[0074] The following will illustrate the plurality of working states corresponding to the target preset pressure range.

[0075] Optionally, in the case where the target preset pressure range corresponds to at least two first working states in the embodiment of the present application, the at least two first working states include: a fifth working state and a sixth working state, and the step 202b can be implemented by the following steps 202b1 to 202b3.

[0076] The step 202b1 acquires the pressure change trend of the first pressure information.

[0077] Optionally, in embodiments of the present application, the pressure change trend is specifically used to indicate a change trend of the pressure value contained in the first pressure information over time.

[0078] Further optionally, in embodiments of the present application, the change trend can be an increasing trend or a decreasing trend.

[0079] In step 202b2, in the case where the change trend is an increasing trend, the fifth working state is determined as the target working state.

[0080] Optionally, in embodiments of the present application, the fifth working state can be one of the two working states corresponding to the target preset pressure range, and the change trend between the corresponding first pressure information is an increasing trend.

[0081] Further optionally, in embodiments of the present application, the fifth working state can be any one of the following: a pen holding state, a pen holding state after the pen is held, a pen dropping state, and the like.

[0082] For example, it is assumed that the first pressure information includes g1” and g2”, the g1” is pressure information detected by the stylus at a t1 timestamp, and the g2” is pressure information detected by the stylus at a t2 timestamp, where Δt = t2-t1>0, if g2”-g1”=△g>0, and the ratio f of the pressure difference △g to the time period △t is greater than 0 and less than 1, i.e. 0

[0083] In step 202b3, in the case where the change trend is a decreasing trend, the sixth working state is determined as the target working state.

[0084] Optionally, in embodiments of the present application, the sixth working state can be one of the two working states corresponding to the target preset pressure range, and the change trend between the corresponding first pressure information is a decreasing trend.

[0085] Further optionally, in embodiments of the present application, the sixth working state can be any one of the following: a pen lifting state, a pen holding state after the pen is lifted, a pen putting state, and the like.

[0086] For example, the first pressure information includes g1” and g2”, the g1” is pressure information detected by the stylus at a t1 timestamp, and the g2” is pressure information detected by the stylus at a t2 timestamp, where Δt = t2-t1>0, if g2”-g1”=△g<0, and the ratio f of the pressure difference △g to the time period △t is greater than -1 and less than 0, i.e. -1

[0087] Therefore, the stylus can determine the target working state from the plurality of first working states according to the pressure change trend of the first pressure information, so that the stylus can accurately determine the current working state of the stylus according to the first pressure information obtained by the stylus, and thus the accuracy of the stylus entering the power saving mode can be improved.

[0088] The following will illustrate how to adjust the critical value corresponding to the first preset pressure range according to the second pressure information.

[0089] Optionally, before step 202a, the photographing method provided in the embodiment of the present application can further include steps 301 to 303 as follows.

[0090] Step 301: In a case where it is detected that the working state of the stylus is the seventh working state, the second pressure information detected by the stylus is obtained.

[0091] For example, in a case where the user triggers the stylus to start the critical value update mode of the preset pressure range, the first target working state of the stylus is detected, so that in a case where it is detected that the first target working state of the stylus is the seventh working state, the second pressure information detected by the stylus is obtained.

[0092] The first target working state of the stylus is determined according to the indication information sent by the stylus, and / or the first target working state of the stylus is determined according to the signal that the stylus contacts the display screen.

[0093] In the embodiment of the present application, the second pressure information can be one or more pressure information obtained by the stylus in the case where the stylus is in the seventh working state.

[0094] For example, the second pressure information can be a pressure value greater than or equal to 0.

[0095] Specifically, the second pressure information can be different from the first pressure information, or can be the same as the first pressure information.

[0096] Further optionally, in the embodiment of the present application, the seventh working state can be any one of the following: an idle state, a pen holding state, a writing state, etc.

[0097] Specifically, the idle state is used to indicate that the stylus is in a charging state or a magnetic attraction state.

[0098] In a case where the stylus is in a charging state or a magnetic attraction state, the stylus can send first indication information to the electronic device, the first indication information being used to indicate that the stylus is in an idle state, so that the first target working state of the stylus can be determined as the idle state.

[0099] Specifically, the holding pen state is used to indicate that the stylus is not in the charging state or the magnetic attraction state, and when the signal that the stylus contacts the display screen cannot be detected, the state of the stylus.

[0100] In the case that the stylus is not in the charging state or the magnetic attraction state, the stylus can send second indication information to the electronic device, the second indication information being used to indicate that the stylus is not in the idle state, at this time, it is determined whether the signal that the stylus contacts the display screen is detected, and in the case that it is determined that the signal that the stylus contacts the display screen is not detected, the first target working state of the stylus is determined to be the holding pen state.

[0101] Specifically, the writing state is used to indicate that the stylus is not in the charging state or the magnetic attraction state, and when the signal that the stylus contacts the display screen can be detected, the state of the stylus.

[0102] It is determined whether the signal that the stylus contacts the display screen is detected, and in the case that it is determined that the signal that the stylus contacts the display screen is detected, the first target working state of the stylus is determined to be the writing state.

[0103] Step 302, determining target pressure information according to the second pressure information.

[0104] Optionally, in the embodiment of the present application, the stylus can determine the target pressure information according to the second pressure information in the case that the second pressure information meets the update condition.

[0105] The update condition can include at least one of a first update condition and a second update condition.

[0106] For example, the first update condition can be that the number of pressure information in the second pressure information that exceeds the critical value of the first preset pressure range is greater than or equal to a preset number. The "critical value exceeding the first preset pressure range" can be a minimum critical value less than the first preset pressure range, or a maximum critical value greater than the first preset pressure range.

[0107] For example, the second update condition can be that the average value of the pressure information in the second pressure information exceeds the critical value of the first preset pressure range.

[0108] Optionally, in the embodiment of the present application, the electronic device can determine the maximum pressure information in the second pressure information as the target pressure information, or the electronic device can determine the average value of the maximum pressure information in the second pressure information as the target pressure information.

[0109] Step 303, adjusting at least part of the critical value of the first preset pressure range corresponding to the seventh working state according to the target pressure information.

[0110] Optionally, in the embodiments of the present application, the first preset pressure range corresponds to the seventh working state one by one.

[0111] Specifically, when the seventh working state is the idle state, the corresponding first preset pressure range is [0, g1].

[0112] Specifically, when the seventh working state is the pen holding state, the corresponding first preset pressure range is [g2, g3].

[0113] Specifically, when the seventh working state is the writing state, the corresponding first preset pressure range is [g4, Max].

[0114] Optionally, in the embodiments of the present application, the at least one critical value can be one critical value, or two critical values.

[0115] For example, when the seventh working state is the idle state, the stylus can adjust the maximum critical value of the first preset pressure range, i.e., the value of g1 in [0, g1], based on the target pressure information.

[0116] For example, when the seventh working state is the pen holding state, the stylus can adjust the minimum critical value and / or the maximum critical value of the first preset pressure range, i.e., the value of g2 and / or the value of g3 in [g2, g3], based on the target pressure information.

[0117] For example, when the seventh working state is the writing state, the stylus can adjust the minimum critical value of the first preset pressure range, i.e., the value of g4 in [g4, Max], based on the target pressure information.

[0118] For example, assuming that when it is determined that the stylus is currently in the idle state, the maximum pressure value g1' in the collected second pressure information is greater than g1, and the duration of collecting g1' exceeds the preset time threshold t, the maximum critical value g1 is updated to g1', i.e., the first preset pressure range corresponding to the idle state is updated from [0, g1] to [0, g1'].

[0119] For example, assuming that when it is determined that the stylus is currently in the pen holding state, the minimum pressure value g2' in the collected second pressure information is less than g2, the maximum pressure value g3' is greater than g3, and the duration of collecting g2' and g3' exceeds the preset time threshold t, the minimum critical value g2 and the maximum critical value g3 are updated to g2' and g3', i.e., the first preset pressure range corresponding to the pen holding state is updated from [g2, g3] to [g2', g3'].

[0120] For example, assuming that the average value of all pressure values less than the minimum threshold g4 in the collected second pressure information is g4' in the case of determining that the stylus is currently in the writing state, and g4' < g4, the minimum threshold g4 is updated to g4', that is, the first preset pressure range corresponding to the writing state is updated from [g4, max] to [g4', max].

[0121] Optionally, in a possible implementation manner of the embodiment of the present application, the stylus can adjust the maximum threshold (or the minimum threshold) of the first preset pressure range to the target pressure information.

[0122] Optionally, in another possible implementation manner of the embodiment of the present application, the stylus can adjust the maximum threshold of the first preset pressure range to the third pressure information, and adjust the minimum threshold of the first preset pressure range to the fourth pressure information. The third pressure information is the sum of the target pressure information and the preset pressure information, and the fourth pressure information is the difference between the target pressure information and the preset pressure information.

[0123] Therefore, in the seventh working state of the stylus, the stylus adjusts the threshold of the first predetermined pressure range corresponding to the seventh working state in a timely manner according to the acquired second pressure information, thereby improving the convenience of updating the threshold corresponding to the first preset pressure range of the stylus.

[0124] Optionally, the step 203 in the embodiment of the present application can be implemented through the following step 203a.

[0125] The step 203a comprises: in the case of the target working state being the second working state, controlling the stylus to stop receiving the target signal.

[0126] The target signal is a signal sent by the electronic device to the stylus.

[0127] Optionally, in the embodiment of the present application, the second working state can be any one of the following: an idle state, a pen holding state, a pen placing state, and the like.

[0128] It should be noted that in the case of detecting that the stylus is in any one of the second working states, the stylus is controlled to stop receiving the target signal.

[0129] Therefore, the stylus can stop receiving the target signal according to the case that the stylus is in any one of the second working states, so as to save the power consumption of the stylus.

[0130] Optionally, the step 203 in the embodiment of the present application can be implemented through the following step 203b.

[0131] Step 203b, in the case where the target working state is the third working state, controlling the stylus to detect the target signal at the first frequency.

[0132] The first frequency is lower than or equal to a preset frequency; and the target signal is a signal sent by the electronic device to the stylus.

[0133] Specifically, the preset frequency is used to indicate the frequency of receiving the target signal by the stylus per unit time. The preset frequency can be pre-stored by the electronic device, or can be set in advance by the user according to the needs.

[0134] Optionally, in the embodiment of the present application, the third working state can be any one of the following: a pen-holding state after picking up the pen, a pen-lifting state, a pen-holding state after lifting the pen, etc.

[0135] It should be noted that when it is detected that the stylus is in any one of the third working states, the stylus receives the signal at the first frequency which is lower than or equal to the preset frequency.

[0136] Therefore, since the stylus can receive the target signal at the first frequency which is lower than or equal to the preset frequency according to any one of the third working states, the power consumption of the stylus is saved and the stylus can be connected with the electronic device.

[0137] Optionally, in the embodiment of the present application, after step 203b, the power saving method provided by the embodiment of the present application can further include the following step 203c.

[0138] Step 203c, in the case where the target working state is the fourth working state, controlling the stylus to detect the target signal at the second frequency.

[0139] The second frequency is higher than the first frequency.

[0140] Optionally, in the embodiment of the present application, the fourth working state can be any one of the following: a pen-dropping state, a writing state, etc.

[0141] It should be noted that when it is detected that the stylus is in any one of the fourth working states, the stylus receives the target signal at the second frequency which is higher than the first frequency.

[0142] Therefore, since the stylus can receive the target signal at the second frequency which is higher than the first frequency according to any one of the fourth working states, the stylus can be normally connected with the electronic device, so as to ensure the smooth writing of the stylus on the display screen of the electronic device.

[0143] In the embodiment of the present application, the stylus can acquire the first pressure information detected by the stylus in the case that the stylus establishes a wireless connection with the electronic device, and determine the target working state of the stylus according to the first pressure information, so as to control the stylus to enter the first power saving mode corresponding to the target working state. Since the stylus can determine the target working state according to the acquired first pressure information in the case that the stylus establishes a wireless connection with the electronic device, so as to make the stylus enter the power saving mode corresponding to the target working state, and avoid the stylus being always in the use state, therefore, the power consumption of the stylus can be saved.

[0144] The embodiment of the present application provides a power saving method, Figure 3 A flow chart of a power saving method provided by the embodiment of the present application is shown, and the method can be applied to an electronic device. As shown in Figure 3 The power saving method provided by the embodiment of the present application can include the following steps 401 to 403.

[0145] Step 401: acquire first pressure information detected by the stylus in the case that a wireless connection is established between the stylus and the electronic device.

[0146] Optionally, in the embodiment of the present application, the first pressure information can be pressure information detected by a pressure sensor arranged on the stylus body.

[0147] Exemplarily, the wireless connection can be any one of the following: Bluetooth connection, Wireless-Fidelity (Wi-Fi) connection, local area network connection, etc.

[0148] Optionally, in the embodiment of the present application, the first pressure information can include one or more pressure information acquired by the stylus in real time.

[0149] Exemplarily, the first pressure information can be a pressure value greater than or equal to 0.

[0150] Step 402: determine the target working state of the stylus according to the first pressure information.

[0151] Optionally, in the embodiment of the present application, the target working state can be the working state currently in which the stylus is.

[0152] Further optionally, in the embodiment of the present application, the target working state can be any one of the following: idle state, pen holding state, pen holding state after the pen is held, pen dropping state, writing state, pen lifting state, pen holding state after the pen is lifted, pen putting state, etc.

[0153] The following will be illustrated by example according to the working state that can appear in the process that the user uses the stylus to write.

[0154] Exemplarily, the idle state is used to indicate a stationary state of the stylus when the user does not touch the stylus.

[0155] Exemplarily, the picking state is used to indicate a state of the stylus when the user picks up the stylus and the stylus does not touch the display screen.

[0156] Exemplarily, the holding state after picking is used to indicate a state of the stylus when the user holds the stylus in hand after picking up the stylus and the stylus does not touch the display screen.

[0157] Exemplarily, the landing state is used to indicate a state of the stylus when the user controls the stylus to move towards the display screen during use of the stylus.

[0158] Exemplarily, the writing state is used to indicate a state of the stylus when the stylus touches the display screen during use of the stylus by the user.

[0159] Exemplarily, the lifting state is used to indicate a state of the stylus when the user lifts the stylus during use of the stylus.

[0160] Exemplarily, the holding state after lifting is used to indicate a state of the stylus when the user holds the stylus in hand after lifting the stylus and the stylus does not touch the display screen.

[0161] Exemplarily, the putting state is used to indicate a state of the stylus when the user puts down the stylus after use of the stylus.

[0162] Step 403: controlling the electronic device to be in a second power saving mode corresponding to the target working state.

[0163] Exemplarily, the second power saving mode is used to indicate a power consumption mode corresponding to the target signal sent by the electronic device to the stylus.

[0164] Optionally, in the embodiment of the present application, when the target working state is any one of the idle state, the picking state, or the putting state, the electronic device starts the second power saving mode, i.e., a super low power consumption mode (or a deep sleep mode), corresponding to the target working state.

[0165] Exemplarily, the super low power consumption mode (or the deep sleep mode) is used to indicate a power consumption mode in which the electronic device currently stops sending the target signal to the stylus.

[0166] Optionally, in the embodiments of the present application, in the case that the target working state is any one of the pen-holding state after the pen is picked up, the pen-lifting state, or the pen-holding state after the pen is lifted, the electronic device starts the second power saving mode corresponding to the target working state, i.e., the low-power-consumption mode.

[0167] For example, the low-power-consumption mode is used to indicate that the electronic device is currently in a power consumption mode in which the target signal is transmitted at a first frequency lower than or equal to a preset frequency. The preset frequency is used to indicate the frequency of transmitting the target signal by the stylus per unit time. The preset frequency can be set by the user as needed, or can be pre-stored in the electronic device.

[0168] Optionally, in the embodiments of the present application, in the case that the target working state is any one of the writing state or the pen-dropping state, the electronic device starts the second power saving mode corresponding to the target working state, i.e., the normal power consumption mode.

[0169] For example, the normal power consumption mode is used to indicate that the stylus is currently in a power consumption mode in which the target signal is transmitted at a second frequency higher than the first frequency.

[0170] In the embodiments of the present application, the electronic device can establish a wireless connection with the stylus, obtain the first pressure information detected by the stylus, and determine the target working state of the stylus according to the first pressure information, so as to control the electronic device to enter the second power saving mode corresponding to the target working state. Since the electronic device can determine the target working state according to the first pressure information obtained by the stylus in the case that the electronic device establishes a wireless connection with the stylus, the electronic device enters the power saving mode corresponding to the target working state, and avoids being in the use state all the time, so that the power consumption of the electronic device can be saved.

[0171] Optionally, in the embodiments of the present application, the step 403 can be implemented by the following step 403a.

[0172] Step 403a, in the case that the target working state is the second working state, the electronic device is controlled to stop transmitting the target signal.

[0173] The target signal is a signal transmitted by the electronic device to the stylus.

[0174] Optionally, in the embodiments of the present application, the second working state can be any one of the idle state, the pen-picking state, the pen-dropping state, etc.

[0175] It should be noted that in the case that the electronic device detects that the stylus is in any one of the second working states, the electronic device is controlled to stop transmitting the signal.

[0176] Therefore, the electronic device can stop sending signals according to the situation that the stylus is in any one of the second working states, so as to save the power consumption of the electronic device.

[0177] Optionally, in the embodiment of the present application, the step 403 can be implemented by the following step 403b.

[0178] Step 403b, in the case that the target working state is the third working state, the electronic device is controlled to send the target signal at the first frequency.

[0179] The first frequency is lower than or equal to a preset frequency, and the target signal is a signal sent by a display screen of the electronic device to the stylus.

[0180] Specifically, the preset frequency is used to indicate the frequency of sending the target signal by the stylus per unit time. The preset frequency can be pre-stored by the electronic device, or can be set in advance by the user according to the demand.

[0181] Optionally, in the embodiment of the present application, the third working state can be any one of the following: a pen-holding state after picking up the pen, a pen-lifting state, a pen-holding state after lifting the pen, etc.

[0182] It should be noted that the electronic device detects that the stylus is in any one of the third working states, and controls the electronic device to send signals at a first frequency lower than or equal to a preset frequency.

[0183] Therefore, the electronic device can send signals at a first frequency lower than or equal to a preset frequency according to the situation that the stylus is in any one of the third working states, so as to save the power consumption of the electronic device and ensure the connection between the stylus and the electronic device.

[0184] Optionally, in the embodiment of the present application, after the step 403b, the power saving method provided by the present application can further include the following step 403c.

[0185] Step 403c, in the case that the target working state is the fourth working state, the electronic device is controlled to send the target signal at the second frequency.

[0186] The second frequency is higher than the first frequency.

[0187] Optionally, in the embodiment of the present application, the fourth working state can be any one of the following: a pen-dropping state, a writing state, etc.

[0188] It should be noted that the electronic device detects that the stylus is in any one of the fourth working states, and controls the electronic device to send signals at a second frequency higher than the first frequency.

[0189] Thus, it can be known that, since the electronic device can control the electronic device to send signals at the second frequency higher than the first frequency according to the stylus being in any one of the fourth working states, the stylus and the electronic device are normally connected, so as to ensure that the stylus writes smoothly on the display screen of the electronic device.

[0190] The power saving method provided by the embodiments of the present application will be exemplarily described below.

[0191] Exemplarily, as shown in the figure, Figure 4 The power saving method provided by the present application can include the following steps S1 to S10:

[0192] Step S1: detecting whether the stylus Bluetooth and the electronic device Bluetooth are successfully paired, if yes, entering step S2, if not, entering step S10.

[0193] Step S2: collecting the current stylus body pressure information of the stylus.

[0194] Step S3: judging the target working state of the stylus according to the stylus body pressure information.

[0195] Step S4: detecting whether the stylus is in contact with the display screen, if yes, entering step S8, if not, entering step S5.

[0196] Step S5: detecting whether the stylus is in the pen drop state or the writing mode, if yes, entering step S8, if not, entering step S6.

[0197] Step S6: detecting whether the stylus is in any one of the following modes: the pen holding mode after picking up the pen, the pen lifting mode and the pen holding mode after lifting the pen, if yes, entering step S9, if not, entering step S7.

[0198] Step S7: detecting whether the stylus is in any one of the following modes: the idle mode, the pen picking up mode and the pen putting down mode, if yes, entering step S10, if not, re-entering step S2.

[0199] Step S8: starting the display screen and the stylus in the normal power consumption mode corresponding to the working state in the above step S5, that is, the display screen sends the target signal at the second frequency, and the stylus receives the target signal at the second frequency.

[0200] Step S9: starting the display screen and the stylus in the low power consumption mode corresponding to the working state in the above step S6, that is, the display screen sends the target signal at the first frequency, and the stylus receives the target signal at the first frequency.

[0201] Step S10: turn on the display screen and the stylus to the deep sleep mode corresponding to the working state in step S7, that is, the display screen stops sending the target signal, and the stylus stops receiving the target signal.

[0202] The target signal is a signal sent by the display screen to the stylus; the first frequency is lower than or equal to a preset frequency; the second frequency is higher than the first frequency; and the preset frequency can be set in advance by the user or pre-stored by the electronic device.

[0203] The power saving method provided in the embodiments of the present application can be executed by a power saving device. In the embodiments of the present application, the power saving device is taken as an example to illustrate the power saving device provided in the embodiments of the present application.

[0204] Figure 5 A possible structural schematic diagram of the first power saving device 70 involved in the embodiments of the present application is shown. As shown in the figure, the first power saving device 70 can include an acquisition module 71, a determination module 72 and a processing module 73, wherein: Figure 5 The acquisition module 71 is configured to acquire first pressure information detected by the first power saving device when a wireless connection is established with a second power saving device; the determination module 72 is configured to determine a target working state of the first power saving device according to the first pressure information acquired by the acquisition module; and the processing module is configured to control the first power saving device to be in a first power saving mode corresponding to the target working state.

[0205] In a possible implementation, the determination module 72 is specifically configured to determine a target preset pressure range corresponding to the first pressure information from N preset pressure ranges, each preset pressure range corresponds to at least one first working state, N is a positive integer; and determine the target working state according to the first working state corresponding to the target preset pressure range.

[0206] In a possible implementation, the processing module 73 is specifically configured to control the first power saving device to stop receiving a target signal when the target working state is a second working state; wherein the target signal is a signal sent by the second power saving device to the first power saving device.

[0207] In a possible implementation, the processing module 73 is specifically configured to control the first power saving device to detect the target signal according to a first frequency when the target working state is a third working state; wherein the first frequency is lower than or equal to a preset frequency; and the target signal is a signal sent by the second power saving device to the first power saving device.

[0208] In a possible implementation, the processing module 73 is specifically configured to, in the case where the target working state is the fourth working state, control the first power saving device to detect the target signal at a second frequency; and the second frequency is higher than the first frequency.

[0209] In the embodiments of the present application, the first power saving device can acquire the first pressure information detected by the first power saving device in the case where the wireless connection is established between the first power saving device and the second power saving device, and determine the target working state of the first power saving device according to the first pressure information, so as to control the first power saving device to enter the first power saving mode corresponding to the target working state. Since the target working state of the first power saving device can be determined according to the first pressure information acquired by the first power saving device in the case where the wireless connection is established between the first power saving device and the second power saving device, the first power saving device can enter the power saving mode corresponding to the target working state, and the use state of the first power saving device can be avoided, so that the power consumption of the first power saving device can be saved.

[0210] Figure 6 A possible structure of the second power saving device 80 involved in the embodiments of the present application is shown. As shown in the figure, the second power saving device 80 can include an acquisition module 81, a determination module 82 and a processing module 83. Figure 6

[0211] The acquisition module 81 is configured to acquire the first pressure information detected by the first power saving device in the case where the wireless connection is established between the first power saving device and the second power saving device; the determination module 82 is configured to determine the target working state of the first power saving device according to the first pressure information acquired by the acquisition module; and the processing module 83 is configured to control the second power saving device to be in the second power saving mode corresponding to the target working state.

[0212] In a possible implementation, the processing module 83 is configured to, in the case where the target working state is the second working state, control the second power saving device to stop sending the target signal; or, in the case where the target working state is the third working state, control the second power saving device to send the target signal at a first frequency; or, in the case where the target working state is the fourth working state, control the second power saving device to send the target signal at a second frequency; the target signal is a signal sent by the second power saving device to the first power saving device; the first frequency is lower than or equal to a preset frequency; and the second frequency is higher than the first frequency.

[0213] In the embodiments of the present application, since the second power saving device can determine the target working state of the first power saving device according to the first pressure information acquired by the first power saving device in the case where the wireless connection is established between the second power saving device and the first power saving device, the second power saving device can enter the power saving mode corresponding to the target working state, instead of being in the use state all the time, so that the power consumption of the second power saving device can be saved.​

[0214] The power saving device in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application are not limited in this regard.

[0215] The power saving device in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating system, and the embodiments of the present application are not limited in this regard.

[0216] The power saving device provided in the embodiments of the present application can achieve the method embodiments Figures 1 to 5 The method embodiments achieve various processes, and to avoid repetition, the details are not described herein.

[0217] Optionally, as shown in Figure 7 The embodiments of the present application also provide an electronic device 90, which includes a processor 91 and a memory 92, and the memory 92 stores a program or instruction which can run on the processor 91. When the program or instruction is executed by the processor 91, various steps of the above power saving method embodiments are implemented, and the same technical effects can be achieved. To avoid repetition, the details are not described herein.

[0218] It should be noted that the electronic device in the embodiments of the present application includes the above mobile electronic device and non-mobile electronic device.

[0219] Figure 8 To implement the hardware structure of an electronic device according to an embodiment of the present application, the electronic device is a stylus.

[0220] The electronic device 100 includes, but is not limited to, a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.

[0221] Those skilled in the art can understand that the electronic device 100 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 110 through a power management system, so as to realize the functions of managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.

[0222] The processor 110 is configured to, in a case where a wireless connection is established with the electronic device, acquire first pressure information detected by the stylus pen, and determine a target working state of the stylus pen according to the first pressure information, and control the stylus pen to be in a first power saving mode corresponding to the target working state.

[0223] Optionally, in the embodiment of the present application, the processor 110 is specifically configured to: determine a target preset pressure range corresponding to the first pressure information from N preset pressure ranges, each preset pressure range corresponding to at least one first working state, N being a positive integer; and determine the target working state according to the first working state corresponding to the target preset pressure range.

[0224] Optionally, in the embodiment of the present application, the processor 110 is specifically configured to: in a case where the target working state is the second working state, control the stylus pen to stop receiving a target signal; wherein the target signal is a signal sent by the electronic device to the stylus pen.

[0225] Optionally, in the embodiment of the present application, the processor 110 is specifically configured to: in a case where the target working state is the third working state, control the stylus pen to detect the target signal at a first frequency; wherein the first frequency is lower than or equal to a preset frequency; and the target signal is a signal sent by the electronic device to the stylus pen.

[0226] Optionally, in the embodiment of the present application, the processor 110 is specifically configured to: in a case where the target working state is the fourth working state, control the stylus pen to detect the target signal at a second frequency; wherein the second frequency is higher than the first frequency.

[0227] Figure 8 A hardware structure schematic diagram of an electronic device according to an embodiment of the present application.

[0228] The electronic device 100 includes, but is not limited to, a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.

[0229] As can be appreciated by those skilled in the art, the electronic device 100 can further include a power supply (such as a battery) for supplying power to the various components, which can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which will not be described here.

[0230] The processor 110 is configured to, in a case where a wireless connection is established with the stylus, acquire first pressure information detected by the stylus; determine a target working state of the stylus according to the first pressure information; and control the electronic device to be in a second power saving mode corresponding to the target working state.

[0231] Optionally, in the embodiments of the present application, the processor 110 is further configured to, in a case where the target working state is the second working state, control the electronic device to stop sending a target signal; or, in a case where the target working state is the third working state, control the electronic device to send the target signal at a first frequency; or, in a case where the target working state is the fourth working state, control the electronic device to send the target signal at a second frequency; wherein the target signal is a signal sent by the electronic device to the stylus; the first frequency is lower than or equal to a preset frequency; and the second frequency is higher than the first frequency.

[0232] The electronic device provided in the embodiments of the present application can, in a case where a wireless connection is established between the electronic device and the stylus, determine the target working state of the stylus according to the first pressure information acquired by the stylus, so as to control the electronic device to be in a power saving mode corresponding to the target working state, thereby avoiding the electronic device being in a use state all the time, and thus saving the power consumption of the electronic device.

[0233] It should be understood that in the embodiments of the present application, the input unit 104 can include a graphics processing unit (GPU) 1041 and a microphone 1042. The graphics processing unit 1041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 can include a display panel 1061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 can include two parts of a touch detection device and a touch controller. The other input devices 1072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0234] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 109 can include a volatile memory or a non-volatile memory, or the memory 109 can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link DRAM (SLDRAM), and a direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0235] The processor 110 can include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 110.

[0236] The embodiments of the present application further provide a readable storage medium, and the readable storage medium stores programs or instructions, which are executed by a processor to realize the processes of the above power saving method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0237] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0238] The embodiments of the present application further provide a chip, and the chip includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to execute programs or instructions to realize the processes of the above power saving method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0239] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system level chip, a system chip, a chip system, or a system on chip, etc.

[0240] The embodiments of the present application provide a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to realize the processes of the above power saving method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0241] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element. Furthermore, it is to be understood that the method and apparatus of the present application can be carried out by more than one process, method, article, or apparatus either simultaneously, concurrently, or with intervening action that are carried out at the same time, either in a simultaneous fashion or in a fashion that is interleaved in time. For example, the described methods can be performed in a different order from that described, and / or various steps can be combined or omitted, and / or additional steps can be added, without departing from the scope of the described methods. Also, features described with respect to certain examples can be combined in other examples.

[0242] From the above description of the embodiments, it is apparent that the above-mentioned method can be realized by means of software and necessary universal hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solution of the present application can be embodied in the form of computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disc, optical disc), and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network equipment, etc.) execute the method of each embodiment of the present application.

[0243] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, but not restrictive, and those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A power saving method applied to a stylus, characterized in that, The method comprises: In the case of establishing a wireless connection with the electronic device, acquiring first pressure information detected by the stylus pen; According to the first pressure information, determining the target working state of the stylus pen; Control the stylus pen in the first power saving mode corresponding to the target working state; The method comprises: From N preset pressure ranges, determine the target preset pressure range corresponding to the first pressure information, each of the preset pressure ranges corresponds to at least one first working state, and N is a positive integer; According to the first working state corresponding to the target preset pressure range, determine the target working state; The method comprises: In the case of the target working state being the second working state, control the stylus pen to stop receiving target signals; wherein the target signal is a signal sent by the electronic device to the stylus pen; In the case of the target working state being the third working state, control the stylus pen to detect target signals at a first frequency; wherein the first frequency is lower than or equal to a preset frequency; the target signal is a signal sent by the electronic device to the stylus pen.

2. The method of claim 1, wherein, After the method comprises: In the case of the target working state being the fourth working state, control the stylus pen to detect the target signal at a second frequency; Wherein, the second frequency is higher than the first frequency.

3. A power saving method applied to an electronic device, comprising: The method comprises: In the case of establishing a wireless connection with the stylus pen, acquiring first pressure information detected by the stylus pen; According to the first pressure information, determining the target working state of the stylus pen; Control the electronic device in the second power saving mode corresponding to the target working state; The method comprises: In the case of the target working state being the second working state, control the electronic device to stop sending target signals; In the case of the target working state being the third working state, control the electronic device to send target signals at a first frequency; Wherein, the target signal is a signal sent by the electronic device to the stylus pen; the first frequency is lower than or equal to a preset frequency.

4. The method of claim 3, wherein, The method comprises: In the case of the target working state being the fourth working state, control the electronic device to send the target signal at a second frequency; Wherein, the second frequency is higher than the first frequency.

5. A power saving device, characterized by comprising: The power saving device is a first power saving device, and the power saving device comprises an acquisition module, a determination module and a processing module; The acquisition module is configured to acquire first pressure information detected by the first power saving device in the case of establishing a wireless connection with the second power saving device; The determination module is configured to determine the target working state of the first power saving device according to the first pressure information acquired by the acquisition module; The processing module is configured to control the first power saving device to be in a first power saving mode corresponding to the target working state determined by the determining module. The determining module is specifically configured to determine, from N preset pressure ranges, a target preset pressure range corresponding to the first pressure information, each of the preset pressure ranges corresponding to at least one first working state, N being a positive integer; and determine the target working state according to the first working state corresponding to the target preset pressure range. The processing module is specifically configured to, in a case where the target working state is a second working state, control the first power saving device to stop receiving a target signal; the target signal being a signal sent by the second power saving device to the first power saving device. The processing module is specifically configured to, in a case where the target working state is a third working state, control the first power saving device to detect a target signal at a first frequency. The first frequency is lower than or equal to a preset frequency; and the target signal is a signal sent by the second power saving device to the first power saving device.

6. The power saving device of claim 5, wherein The processing module is specifically configured to, after the control of the first power saving device to detect a target signal at a first frequency, in a case where the target working state is a fourth working state, control the first power saving device to detect the target signal at a second frequency. The second frequency is higher than the first frequency.

7. A power saving device, characterized by comprising: The power saving device is a second power saving device, and the power saving device comprises an obtaining module, a determining module and a processing module. The obtaining module is configured to, in a case where a wireless connection is established with a first power saving device, obtain first pressure information detected by the first power saving device. The determining module is configured to determine a target working state of the first power saving device according to the first pressure information obtained by the obtaining module. The processing module is configured to control the second power saving device to be in a second power saving mode corresponding to the target working state determined by the determining module. The processing module is specifically configured to, in a case where the target working state is a second working state, control the second power saving device to stop sending a target signal. The processing module is specifically configured to, in a case where the target working state is a third working state, control the second power saving device to send a target signal at a first frequency. The target signal is a signal sent by the second power saving device to the first power saving device; and the first frequency is lower than or equal to a preset frequency.

8. The power saving device of claim 7, wherein The processing module is specifically configured to, in a case where the target working state is a fourth working state, control the second power saving device to send the target signal at a second frequency. The second frequency is higher than the first frequency.

9. An electronic device, comprising: A processor and a memory, the memory stores programs or instructions that can run on the processor, and the programs or instructions are executed by the processor to implement the steps of the power saving method in any one of claims 1-4.

10. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, which, when executed by the processor, implement the steps of the power saving method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Configurable active stylus devices

    US20150363012A1