CN114089850B - Stylus control method and device, stylus and storage medium - Google Patents

Stylus control method and device, stylus and storage medium Download PDF

Info

Publication number
CN114089850B
CN114089850B CN202210029614.7A CN202210029614A CN114089850B CN 114089850 B CN114089850 B CN 114089850B CN 202210029614 A CN202210029614 A CN 202210029614A CN 114089850 B CN114089850 B CN 114089850B
Authority
CN
China
Prior art keywords
duration
beacon signal
searching
time length
stylus
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
CN202210029614.7A
Other languages
Chinese (zh)
Other versions
CN114089850A (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.)
Maxeye Smart Technologies Co ltd
Original Assignee
Maxeye Smart Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maxeye Smart Technologies Co ltd filed Critical Maxeye Smart Technologies Co ltd
Priority to CN202210029614.7A priority Critical patent/CN114089850B/en
Publication of CN114089850A publication Critical patent/CN114089850A/en
Application granted granted Critical
Publication of CN114089850B publication Critical patent/CN114089850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Abstract

The invention discloses a touch pen control method, a touch pen control device, a touch pen and a storage medium, wherein the method comprises the following steps: when the condition that the touch pens are in an unpaired state is determined, acquiring monitoring duration; intermittently searching beacon signals broadcast by the touch equipment within the monitoring duration; after the beacon signal is searched, pairing with the touch equipment according to the beacon signal; and stopping intermittently searching the beacon signal broadcast by the touch device after the pairing is successful. The invention solves the technical problem of waste of the electric quantity of the battery of the touch pen when the touch pen is not used.

Description

Stylus control method and device, stylus and storage medium
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling a stylus, and a storage medium.
Background
With the rapid development of artificial intelligence technology, in order to meet the needs of life and work of people, various electronic touch devices, such as a touch screen tablet computer, a touch screen smart phone and the like, appear in the market. In order to improve the user experience, most electronic touch devices are equipped with a touch pen, that is, after the electronic touch devices are connected with the touch pen in a pairing manner, the user can control the electronic touch devices through the touch pen. However, once the electronic touch device and the stylus are connected in a paired manner, the stylus is always in a working state, and when the user does not use the stylus, the stylus is still connected to the electronic touch device, so that the battery power of the stylus is wasted.
Disclosure of Invention
The embodiment of the invention provides a touch control pen control method and device, a touch control pen and a storage medium, and aims to solve the technical problem of waste of electric quantity of a touch control pen battery when the touch control pen is not used.
The embodiment of the invention provides a touch control pen control method, which comprises the following steps:
when the stylus is determined to be in an unpaired state, acquiring monitoring duration;
intermittently searching beacon signals broadcast by the touch equipment in the monitoring duration;
after the beacon signal is searched, pairing the touch equipment according to the beacon signal;
and stopping intermittently searching the beacon signal broadcast by the touch device after the pairing is successful.
In an embodiment, the step of intermittently searching for the beacon signal broadcast by the touch device within the monitoring duration includes:
starting timing and searching a beacon signal broadcast by the touch equipment;
stopping searching for the beacon signal after searching for the beacon signal for a first duration;
when the time length for stopping searching the beacon signal reaches a second time length, judging whether the timing time length reaches the monitoring time length;
and returning to the step of searching the beacon signal broadcast by the touch equipment when the timing duration does not reach the monitoring duration.
In one embodiment, the step of stopping searching for the beacon signal after searching for the beacon signal for the first duration comprises:
and after the first time length of the beacon signal is searched, switching to a sleep state to stop searching the beacon signal.
In an embodiment, after the step of determining whether the time duration of stopping searching for the beacon signal reaches the monitoring time duration, the method further includes:
and when the timing duration reaches the monitoring duration, increasing the first duration and the second duration, and returning to the step of executing the timing starting and searching the beacon signal broadcast by the touch equipment.
In one embodiment, the step of increasing the first duration and the second duration comprises:
judging whether the first time length is less than a preset searching time length or not;
and when the first time length is less than the preset searching time length, increasing the first time length and the second time length.
In an embodiment, the step of determining whether the first duration is less than a preset search duration further includes:
when the first time length is larger than or equal to the preset search time length, acquiring a preset search stopping time length;
and taking the preset search duration as the increased first duration and taking the preset search stopping duration as the increased second duration.
In an embodiment, the first duration is greater than the second duration.
In addition, to achieve the above object, the present invention also provides a stylus control apparatus including:
the acquisition module is used for acquiring monitoring duration when the stylus is determined to be in an unpaired state;
the searching module is used for intermittently searching a beacon signal broadcasted by the touch equipment in the monitoring duration;
the pairing module is used for pairing the touch equipment according to the beacon signal after the beacon signal is searched;
and the control module is used for stopping intermittently searching the beacon signal broadcasted by the touch equipment after the pairing is successful.
In addition, to achieve the above object, the present invention also provides a stylus comprising: the touch control method comprises a memory, a processor and a touch control program which is stored on the memory and can run on the processor, wherein the touch control program realizes the steps of the touch control method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a storage medium having a stylus control program stored thereon, wherein the stylus control program, when executed by a processor, implements the steps of the stylus control method described above.
The technical scheme of the stylus control method, the device, the stylus and the storage medium provided by the embodiment of the invention at least has the following technical effects or advantages:
the technical scheme that the beacon signals broadcasted by the touch equipment are intermittently searched within the monitoring duration, the beacon signals are paired with the touch equipment according to the beacon signals after the beacon signals are searched, and the intermittent searching of the beacon signals broadcasted by the touch equipment is stopped after the pairing is successful is adopted, so that the technical problem of waste of the battery power of the touch pen when the touch pen is not used is solved, the power consumption of the touch pen is reduced, and the service time of the battery power of the touch pen is prolonged.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first exemplary embodiment of a stylus control method according to the present invention;
FIG. 3 is a flowchart illustrating a stylus control method according to a second embodiment of the invention;
FIG. 4 is a flowchart illustrating a stylus control method according to a third embodiment of the invention;
FIG. 5 is a functional block diagram of a stylus control apparatus according to the present invention.
Detailed Description
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As an implementation manner, as shown in fig. 1, fig. 1 is a schematic diagram of a hardware architecture of a device according to an embodiment of the present invention.
An embodiment of the present invention relates to a stylus, including: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, a memory 102, which is a storage medium, may include therein a stylus control program; and the processor 101 may be configured to call the stylus control program stored in the memory 102 and perform the following operations:
when the stylus is determined to be in an unpaired state, acquiring monitoring duration;
intermittently searching beacon signals broadcast by the touch equipment in the monitoring duration;
after the beacon signal is searched, pairing the touch control equipment according to the beacon signal;
and stopping intermittently searching the beacon signal broadcast by the touch device after the pairing is successful.
In one embodiment, the processor 101 may be configured to call a stylus control program stored in the memory 102 and perform the following operations:
starting timing and searching a beacon signal broadcast by the touch equipment;
stopping searching for the beacon signal after a first time period of searching for the beacon signal;
when the time length for stopping searching the beacon signal reaches a second time length, judging whether the timing time length reaches the monitoring time length;
and returning to the step of searching the beacon signal broadcast by the touch equipment when the timing duration does not reach the monitoring duration.
In one embodiment, the processor 101 may be configured to call a stylus control program stored in the memory 102 and perform the following operations:
and after the first time length of the beacon signal is searched, switching to a sleep state to stop searching the beacon signal.
In one embodiment, the processor 101 may be configured to call a stylus control program stored in the memory 102 and perform the following operations:
and when the timing duration reaches the monitoring duration, increasing the first duration and the second duration, and returning to the step of executing the timing starting and searching the beacon signal broadcast by the touch equipment.
In one embodiment, the processor 101 may be configured to call a stylus control program stored in the memory 102 and perform the following operations:
judging whether the first time length is less than a preset searching time length or not;
and when the first time length is less than the preset searching time length, increasing the first time length and the second time length.
In one embodiment, the processor 101 may be configured to call a stylus control program stored in the memory 102 and perform the following operations:
when the first time length is larger than or equal to the preset search time length, acquiring a preset search stopping time length;
and taking the preset search duration as the increased first duration and taking the preset search stopping duration as the increased second duration.
Wherein the first duration is greater than the second duration.
It should be noted that, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described herein may be executed in a sequence different from that of the flowchart, and the stylus control method is applied to control of a stylus, where the stylus may operate a touch device, and the touch device refers to a type of smart device capable of performing touch control, for example, a touch screen supporting a USI protocol, and such smart devices capable of performing touch control are all configured with a stylus. For example, a user controls the touch screen using a stylus, such as writing, drawing, and the like on the touch screen. The following embodiments of the present invention are described by taking a touch screen configured with a stylus and supporting the USI protocol as an example.
As shown in fig. 2, in a first embodiment of the present invention, a stylus control method according to the present invention includes the following steps:
step S210: and acquiring monitoring duration when the stylus is determined to be in an unpaired state.
At present, when a touch screen configured with a stylus is used by a user, the user can use the stylus to control the touch screen only after the stylus needs to be paired with the touch screen within a preset pairing range. However, when the user does not use the stylus to control the touch screen, the stylus is always in an idle state. The stylus in the idle state may consume its own power. In one case, the stylus is currently within a preset pairing range, and the touch screen is normally in an on state, the stylus will always be in a pairing state (the stylus will always be connected to the touch screen), thereby causing a waste of power of the stylus. In another case, the stylus is not currently within the preset pairing range (for example, the user holds the stylus far away from the touch screen, so that the distance between the stylus and the touch screen exceeds the preset pairing range for a long time), in this case, the stylus continuously searches for a Beacon signal broadcast by the touch screen, so as to cause a waste of the electric quantity of the stylus, where the Beacon signal is a Beacon signal. In another case, the stylus is currently within the preset pairing range, but the touch screen is powered off, and the stylus will also continuously try to search for the beacon signal broadcast by the touch screen, thereby causing a waste of power consumption of the stylus. It is noted that the beacon signal is not broadcast after the touch screen is turned off. The invention adopts a touch control pen control method to control the touch control pen, thereby reducing the waste of the electric quantity of the touch control pen in an idle state.
In this embodiment, the stylus searches for a beacon signal broadcast by the touch screen, and according to a state after the beacon signal is paired with the touch screen, the pairing state can be understood as a pairing state, and the stylus in the pairing state can normally control the touch screen. For example, a user draws a picture on a touch screen using a stylus. The beacon signal broadcast by the touch screen cannot be searched by the touch pen, that is, the touch pen cannot be paired with the touch screen, and at the moment, the touch pen is in an unpaired state. Specifically, when the stylus is determined to be in the unpaired state, the monitoring duration is obtained. The monitoring duration refers to a period duration for controlling the stylus to intermittently search for a beacon signal and sleep when the stylus is in an idle state.
Step S220: and intermittently searching for the beacon signal broadcast by the touch equipment in the monitoring time length.
In this embodiment, after the monitoring duration is obtained, the stylus is controlled to intermittently search for the beacon signal broadcast by the touchscreen within the monitoring duration. If the stylus is determined to be in the unpaired state, the beacon signal search end of the stylus is firstly kept open for a certain search time, for example, the RX receiving port is kept open for a certain search time, and then the beacon signal broadcast by the touch screen is searched for the search time through the RX receiving port; if the beacon signal is not searched after the search duration is reached, closing the RX receiving port, and keeping the RX receiving port closed for a certain search stop duration, that is, under the condition that the stylus is determined to be in an unpaired state, firstly controlling the stylus to search for the certain search duration of the beacon signal, if the stylus is not searched, controlling the stylus to stop searching for the certain search stop duration of the beacon signal, and then repeating the operations of controlling the stylus to search for the beacon signal and stopping searching for the beacon signal within the monitoring duration. Wherein, turning off the RX receiving port means controlling the stylus to stop searching for the beacon signal.
Step S230: and after the beacon signal is searched, pairing the touch equipment according to the beacon signal.
Step S240: and stopping intermittently searching the beacon signal broadcast by the touch device after the pairing is successful.
In this embodiment, within a certain search duration, if the stylus searches for the beacon signal broadcast by the touch screen, the stylus is controlled to pair with the touch screen according to the beacon signal, and then, after the pairing is successful, the stylus is controlled to stop intermittently searching for the beacon signal broadcast by the touch device.
According to the technical scheme, the beacon signal broadcasted by the touch equipment is intermittently searched within the monitoring duration by acquiring the monitoring duration when the touch pen is determined to be in an unpaired state, the beacon signal is paired with the touch equipment according to the beacon signal after being searched, and the intermittent searching of the beacon signal broadcasted by the touch equipment is stopped after the pairing is successful.
As shown in fig. 3, in the second embodiment of the present invention, based on the first embodiment, the step S220 includes the steps of:
step S221: and starting timing.
Step S222: and searching for a beacon signal broadcast by the touch equipment.
Step S223: stopping searching for the beacon signal after searching for the beacon signal for a first duration.
Step S224: and judging whether the time length for stopping searching the beacon signal reaches a second time length, if so, executing the step S225, and if not, returning to execute the step S222.
Step S225: and judging whether the timing duration reaches the monitoring duration, if so, executing the step S226, and if not, returning to execute the step S222.
Step S226: and increasing the first time length and the second time length, and returning to execute the step S221.
In this embodiment, after the monitoring duration is obtained, a timer is set, the timer starts timing according to the monitoring duration, then the stylus is controlled to search for the beacon signal broadcast by the touch screen, and meanwhile, the duration of searching for the beacon signal is obtained, where the duration of searching for the beacon signal is the searching duration, and if the searching duration reaches the first duration, the searching for the beacon signal is stopped. Specifically, after the first duration of the search for the beacon signal, stopping searching for the beacon signal includes controlling the stylus to switch to a sleep state after the first duration of the search for the beacon signal, so as to stop searching for the beacon signal, where the sleep state may be understood as the stylus not performing a beacon signal search.
Further, a time length for stopping searching for the beacon signal is obtained, where the time length for stopping searching for the beacon signal is the time length for stopping searching for the beacon signal, if the time length for stopping searching for the beacon signal does not reach the second time length, the step S222 is continuously executed, and if the time length for searching for the beacon signal reaches the second time length, the step S225 is then executed. It should be noted that the first duration and the second duration are preset durations, the first duration represents a threshold of the search duration, and the second duration represents a threshold of the search stopping duration, specifically, the first duration in the monitoring duration is greater than the second duration, and according to the use experience of the stylus, the stylus can keep a longer time to search for the beacon signal by setting the first duration to be greater than the second duration, so that when the user uses the stylus again, the stylus can timely end the sleep and timely pair with the touch screen. If the first duration is set to be less than or equal to the second duration, the sleep time of the touch pen is longer, namely the search stopping duration is lengthened, so that when the user uses the touch pen again, the touch pen is in a sleep state for a long time and cannot be paired with the touch screen after a delay, the user experience is influenced, and the problem is solved by setting the first duration to be greater than the second duration.
When step S225 is executed, first, the timing duration of the timer is obtained, then, whether the timing duration reaches the obtained monitoring duration is judged, if the timing duration does not reach the monitoring duration, step S222 is continuously executed; and if the timed duration reaches the monitoring duration and the beacon signal is not searched yet, increasing the first duration and the second duration, resetting the timer according to the acquired monitoring duration, and re-executing the operations of the steps S221 to S226, namely, continuing to execute the operations of the steps S221 to S226 in the next period.
Specifically, the increasing of the first duration and the second duration is an operation of extending the first duration and the second duration on the basis of the original first duration and second duration. It should be noted that the monitoring duration is the same each time step S221 to step S226 are executed again, each monitoring duration may be understood as a search period for intermittently searching for a beacon signal broadcast by the touch screen, and a corresponding first duration and a corresponding second duration are preset in each search period, for example, the first duration corresponding to the 1 st search period is 28ms, and the second duration is 2 ms; the first duration corresponding to the 2 nd search period is 64ms, and the second duration is 38 ms; the first duration for the 3 rd search period is 128ms, the second duration is 102ms, and so on. For example, the first duration corresponding to the previous search period is 28ms, the second duration is 2ms, the timing duration reaches the acquired monitoring duration, the monitoring duration is 15S, and the beacon signal is not yet searched, after the first duration and the second duration are increased, the first duration corresponding to the next search period is 64ms, the second duration is 38ms, the timer is reset according to 15S, and the operations of step S221 to step S226 are executed again.
As shown in fig. 4, in the third embodiment of the present invention, the step of increasing the first time period and the second time period includes the steps of, based on the second embodiment:
step S2261: and judging whether the first time length is less than a preset searching time length, if so, executing step S2262, and if not, executing step S2263.
Step S2262: increasing the first duration and the second duration.
Step S2263: and acquiring preset search stopping time.
Step S2264: and taking the preset search duration as the increased first duration and taking the preset search stopping duration as the increased second duration.
In this embodiment, the preset search duration refers to an upper limit value of a threshold of the search duration, that is, a maximum first duration, and the preset search stopping duration refers to an upper limit value of a threshold of the search stopping duration, that is, a maximum second duration. If the preset search duration and the preset search stopping duration are not set, when no beacon signal is searched in a plurality of continuous search periods, the sleep time of the stylus pen is continuously prolonged, and if a user uses the stylus pen, the stylus pen is in a sleep state for a long time due to the fact that the sleep time of the stylus pen is continuously prolonged, the stylus pen is unavailable, and user experience is influenced.
In this regard, in this embodiment, when the first duration and the second duration in the next search period are increased, it is first determined whether the first duration in the previous search period is smaller than the preset search duration, and if the first duration in the previous search period is smaller than the preset search duration, the first duration in the next search period is increased according to the first duration corresponding to the next search period, and the second duration in the next search period is increased according to the second duration corresponding to the next search period. For example, the first duration corresponding to the next search period is 64ms, the first duration corresponding to the previous search period is 28ms, the increased first duration is 64ms, that is, the first duration corresponding to the next search period, and likewise, the second duration corresponding to the next search period is 38ms, the first duration corresponding to the previous search period is 2ms, and the increased first duration is 38ms, that is, the second duration corresponding to the next search period.
If the first time length in the last search period is greater than or equal to the preset search time length, acquiring the preset search stopping time length, taking the preset search time length as the increased first time length and the preset search stopping time length as the increased second time length, namely taking the preset search time length as the corresponding first time length in the next search period, and taking the preset search stopping time length as the corresponding second time length in the next search period. For example, if no beacon signal is searched in any of search periods 1 to 3, the search for a beacon signal is continued according to search period 4. Wherein, the first duration corresponding to the 3 rd search period is exactly equal to the preset search duration, the preset search duration is 128ms, the first duration corresponding to the 4 th search period is set to 128ms, meanwhile, the preset search stopping duration is obtained, the preset search stopping duration is 102ms, the second duration corresponding to the 4 th search period is set to 102ms, and then the step S221 is continuously executed. Further, if no beacon signal is searched in the 4 th search period, the stylus is controlled to search for the beacon signal according to 128ms and the stylus is controlled to sleep according to 102ms in the 5 th search period and other subsequent search periods.
Further, based on the above embodiments, the stylus control method according to the present invention may be specifically implemented as follows:
assuming that the monitoring time is 15s, the first time corresponding to the 1 st search period is 28ms, and the second time is 2 ms; the first duration corresponding to the 2 nd search period is 64ms, and the second duration is 38 ms; the first duration corresponding to the 3 rd search period is 128ms, the second duration is 102ms, the first duration corresponding to each search period in the 4 th to the n th search periods is 128ms, and the second duration is 102 ms.
1 st search period:
step T11: the timer is set according to 15s and starts counting.
Step T12: searching for a beacon signal broadcast by the touch screen.
Step T13: after the first time period t11 of the search for the beacon signal, the search for the beacon signal is stopped, t11=28 ms.
Step T14: it is determined whether the duration for stopping searching for the beacon signal reaches the second duration T12, and if so, step T15 is performed, and if not, the step T12 is returned to, and T12=2 ms.
Step T15: and judging whether the timing duration reaches the monitoring duration, if so, executing the step T16, and if not, returning to execute the step T12.
Step T16: the first time length T11 and the second time length T12 are increased to obtain an increased first time length T111 and an increased second time length T121, respectively, where T111=64ms and T121=38ms, where T111<128ms and T121<102ms, then step T21 is executed.
Search cycle 2:
step T21: the timer is set according to 15s and starts counting.
Step T22: searching for a beacon signal broadcast by the touch screen.
Step T23: after the first time period t21 of the search for the beacon signal, the search for the beacon signal is stopped, t21=64 ms.
Step T24: it is determined whether the duration of stopping the search for the beacon signal reaches the second duration T22, and if so, step T25 is performed, and if not, the execution returns to step T22, with T22=38 ms.
Step T25: and judging whether the timing duration reaches the monitoring duration, if so, executing the step T26, and if not, returning to execute the step T22.
Step T26: the first time length T21 and the second time length T22 are increased to obtain an increased first time length T211 and an increased second time length T221, respectively, where T211=128ms and T221=102ms, then step T31 is executed.
Search cycle 3:
step T31: the timer is set according to 15s and starts counting.
Step T32: searching for a beacon signal broadcast by the touch screen.
Step T33: after the first time period t31 of the search for the beacon signal, the search for the beacon signal is stopped, t31=128 ms.
Step T34: it is determined whether the duration of stopping the search for the beacon signal reaches the second duration T32, and if so, step T35 is performed, and if not, the execution returns to step T32, with T32=102 ms.
Step T35: and judging whether the timing duration reaches the monitoring duration, if so, executing the step T36, and if not, returning to execute the step T32.
Step T36: since T31=138ms and T32=103ms, steps T41-T46 are performed.
The control manner of the stylus pen in the 4 th to nth search periods is the same as that of the stylus pen in the 3 rd search period, and is not described herein again.
As shown in fig. 5, the present invention provides a stylus control apparatus, including:
an obtaining module 310, configured to obtain a monitoring duration when it is determined that the stylus is in an unpaired state;
the searching module 320 is configured to intermittently search for a beacon signal broadcast by the touch device within the monitoring duration;
the pairing module 330 is configured to pair the touch device according to the beacon signal after the beacon signal is searched;
and the control module 340 is configured to stop intermittently searching for the beacon signal broadcast by the touch device after the pairing is successful.
Further, the search module 320 includes:
the signal searching unit is used for starting timing and searching a beacon signal broadcasted by the touch equipment;
a timing unit, configured to stop searching for the beacon signal after searching for the beacon signal for a first duration;
a time judging unit, configured to judge whether a timing duration reaches the monitoring duration when the duration for stopping searching for the beacon signal reaches a second duration; and when the timing duration does not reach the monitoring duration, returning to the step of searching the beacon signal broadcast by the touch equipment.
Further, the timing unit, in terms of stopping searching for the beacon signal after searching for the first duration of the beacon signal, is specifically configured to switch to a sleep state after searching for the first duration of the beacon signal, so as to stop searching for the beacon signal.
Further, the time determination unit is further configured to increase the first duration and the second duration when the timing duration reaches the monitoring duration, and return to the step of executing the timing start and searching for a beacon signal broadcast by the touch device.
Further, the time determination unit is specifically configured to determine whether the first duration is less than a preset search duration in terms of increasing the first duration and the second duration; and when the first time length is less than the preset searching time length, increasing the first time length and the second time length.
Further, the time determination unit is further configured to, in terms of increasing the first duration and the second duration, specifically, to obtain a preset search stop duration when the first duration is greater than or equal to the preset search duration; and taking the preset search duration as the increased first duration and the preset search stopping duration as the increased second duration.
Further, the first duration is greater than the second duration.
The specific implementation of the stylus control apparatus of the present invention is substantially the same as that of the above-mentioned stylus control method, and is not described herein again.
Further, the present invention also provides a stylus comprising: the touch control method comprises a memory, a processor and a touch control program which is stored on the memory and can run on the processor, wherein the touch control program realizes the steps of the touch control method when being executed by the processor.
Further, the present invention also provides a storage medium, on which a stylus control program is stored, and the steps of the stylus control method are implemented when the stylus control program is executed by a processor.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1. A stylus control method, comprising:
when the stylus is determined to be in an unpaired state, acquiring monitoring duration;
starting timing and searching a beacon signal broadcast by the touch equipment;
stopping searching for the beacon signal after searching for the beacon signal for a first duration;
when the time length for stopping searching the beacon signal reaches a second time length, judging whether the timing time length reaches the monitoring time length;
when the timing duration does not reach the monitoring duration, returning to the step of searching the beacon signal broadcast by the touch equipment;
when the timing duration reaches the monitoring duration, judging whether the first duration is smaller than a preset search duration;
when the first time length is less than the preset searching time length, increasing the first time length and the second time length;
returning to the step of executing the start timing and searching for the beacon signal broadcast by the touch equipment;
after the beacon signal is searched, pairing the touch equipment according to the beacon signal;
and stopping intermittently searching the beacon signal broadcast by the touch device after the pairing is successful.
2. The method of claim 1, wherein said step of ceasing to search for said beacon signal after searching for said beacon signal for a first duration comprises:
and after the first time length of the beacon signal is searched, switching to a sleep state to stop searching the beacon signal.
3. The method of claim 1, wherein the step of determining whether the first duration is less than a preset search duration further comprises:
when the first time length is larger than or equal to the preset search time length, acquiring a preset search stopping time length;
and taking the preset search duration as the increased first duration and taking the preset search stopping duration as the increased second duration.
4. The method of claim 1, wherein the first duration is greater than the second duration.
5. A stylus control apparatus, comprising:
the acquisition module is used for acquiring monitoring duration when the stylus is determined to be in an unpaired state;
the searching module is used for starting timing and searching a beacon signal broadcasted by the touch equipment; stopping searching for the beacon signal after searching for the beacon signal for a first duration; when the time length for stopping searching the beacon signal reaches a second time length, judging whether the timing time length reaches the monitoring time length; when the timing duration does not reach the monitoring duration, returning to the step of searching the beacon signal broadcast by the touch equipment; when the timing duration reaches the monitoring duration, judging whether the first duration is smaller than a preset search duration; when the first time length is less than the preset searching time length, increasing the first time length and the second time length; returning to the step of executing the starting timing and searching for the beacon signal broadcast by the touch equipment;
the pairing module is used for pairing the touch equipment according to the beacon signal after the beacon signal is searched;
and the control module is used for stopping intermittently searching the beacon signal broadcasted by the touch equipment after the pairing is successful.
6. A stylus, comprising: memory, a processor and a stylus control program stored on the memory and executable on the processor, the stylus control program, when executed by the processor, implementing the steps of the stylus control method according to any one of claims 1-4.
7. A storage medium having stored thereon a stylus control program which, when executed by a processor, implements the steps of the stylus control method according to any one of claims 1 to 4.
CN202210029614.7A 2022-01-12 2022-01-12 Stylus control method and device, stylus and storage medium Active CN114089850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210029614.7A CN114089850B (en) 2022-01-12 2022-01-12 Stylus control method and device, stylus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210029614.7A CN114089850B (en) 2022-01-12 2022-01-12 Stylus control method and device, stylus and storage medium

Publications (2)

Publication Number Publication Date
CN114089850A CN114089850A (en) 2022-02-25
CN114089850B true CN114089850B (en) 2022-05-10

Family

ID=80308702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210029614.7A Active CN114089850B (en) 2022-01-12 2022-01-12 Stylus control method and device, stylus and storage medium

Country Status (1)

Country Link
CN (1) CN114089850B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094383A (en) * 2014-05-13 2015-11-25 联想(新加坡)私人有限公司 Smart pen pairing and connection
CN107850951A (en) * 2015-08-19 2018-03-27 株式会社和冠 Method, stylus and the sensor controller of stylus detection sensor controller
CN108780364A (en) * 2016-03-11 2018-11-09 微软技术许可有限责任公司 Stylus is matched

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140038524A1 (en) * 2012-07-31 2014-02-06 Research In Motion Limited Method and apparatus pertaining to the timing of stylus location transmissions
CN105519005B (en) * 2013-07-24 2019-06-18 五十三股份有限公司 For authenticating the device, method and system being wirelessly connected
JP6253497B2 (en) * 2014-04-25 2017-12-27 株式会社東芝 Data input system, active stylus pen, and control method of active stylus pen
CN105898678B (en) * 2016-03-29 2018-12-14 联想(北京)有限公司 A kind of matching method and electronic equipment
US10564741B2 (en) * 2017-10-19 2020-02-18 Microsoft Technology Licensing, Llc Active stylus pairing with a digitizer
CN109871143A (en) * 2019-02-12 2019-06-11 广州视源电子科技股份有限公司 The matching method and device of stylus and touch control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094383A (en) * 2014-05-13 2015-11-25 联想(新加坡)私人有限公司 Smart pen pairing and connection
CN107850951A (en) * 2015-08-19 2018-03-27 株式会社和冠 Method, stylus and the sensor controller of stylus detection sensor controller
CN108780364A (en) * 2016-03-11 2018-11-09 微软技术许可有限责任公司 Stylus is matched

Also Published As

Publication number Publication date
CN114089850A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN103218033A (en) Method and device for waking up hardware equipment
CN103118188A (en) Application heartbeat cycle adjusting method and device, and terminal
CN112530056A (en) Method for reducing power consumption of intelligent door lock, intelligent door lock and storage medium
US8659563B2 (en) Electronic device with a page turning function during a sleep mode of the electronic device
CN111240459B (en) System-on-chip power consumption management method, computer device and computer readable storage medium
CN103838352A (en) Low-power states for a computer system with integrated baseband
CN105785405B (en) Real-time clock circuit, navigation control chip and navigation device
CN104092822A (en) Mobile phone state switching method and system based on face detection and eyeball tracking
CN104038632A (en) Method and device for managing intelligent terminal
CN112558796A (en) Electronic pen, control method and device thereof, and computer-readable storage medium
CN104345861A (en) Data processing method and device as well as electronic equipment
CN114089850B (en) Stylus control method and device, stylus and storage medium
CN106598193B (en) Power consumption control method and device
WO2022242683A1 (en) Memory recovery method and apparatus, and electronic device
CN101968678A (en) Low-power consumption power supply management equipment for embedded Linux equipment
CN110568921B (en) Method for reducing chip power consumption
CN105919340A (en) Wake-up method, device and system based on intelligent bed
CN103543982A (en) Clock frequency management method and mobile device
CN102915692A (en) Screen brightness adjusting method and device and mobile device
WO2018010438A1 (en) Responding method and apparatus for terminal
US9733690B2 (en) Communication device which decreases power comsumption by powering off unused functions when device is inactive
CN111045507A (en) List management and control method, device, mobile terminal and storage medium
CN113237238A (en) Energy-saving control method, system and device for water heater and storage medium
CN111679730A (en) Processor state control method and device based on FreeRTOS
CN112672408A (en) Method and device for controlling power consumption of baseband chip, mobile terminal and storage medium

Legal Events

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