Control method and device of handwriting pen, handwriting pen and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-17
- Publication Date
- 2026-08-11
AI Technical Summary
[0005]本申请的主要目的在于提供一种手写笔的控制方法、装置、手写笔以及存储介质,旨在解决手写笔无法对屏幕进行精准控制的技术问题,提高手写笔控制的灵敏度
[0033]本申请实施例提出的手写笔的控制方法、装置、手写笔以及存储介质,通过接收所述屏端发送的配置信息;基于所述配置信息,通过所述发送电极与所述屏端进行配对;在配对成功后,基于所述发送电极向所述屏端进行打码,以供所述屏端根据所述打码的信息显示对应的笔画线条。通过手写笔的至少两个发送电极向屏端进行打码,使得屏端可以根据打码的信息显示对应的笔画线条,可以解决手写笔无法对屏幕进行精准控制的技术问题,提高手写笔控制的灵敏度。基于本申请方案,从真实世界中手写笔存在的控制规律出发,设计了一种基于点对点协议且至少包括两个发送电极的手写笔,并通过该发送电极验证了本申请提出的手写笔的控制方法的有效性,最后经过本申请方法手写笔的控制灵敏度得到明显提升。
Smart Images

Figure CN115712355B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic device technology, and in particular to a method, apparatus, stylus, and storage medium for controlling a stylus. Background Technology
[0002] With the development of science and technology, the electronics industry has experienced rapid growth, and electronic products with touch input functions, such as personal digital assistants, mobile phones, and tablets, have become increasingly widespread. These products all have touchscreens on their displays, and the use of styluses to control these screens has also emerged.
[0003] However, current styluses cannot provide precise control over the screen when used for touch.
[0004] Therefore, it is necessary to propose a solution to the problem of precise screen control by a stylus. Summary of the Invention
[0005] The main objective of this application is to provide a method, device, stylus, and storage medium for controlling a stylus, aiming to solve the technical problem that the stylus cannot accurately control the screen and improve the sensitivity of stylus control.
[0006] To achieve the above objectives, this application provides a method for controlling a stylus, the method comprising:
[0007] The stylus control method is applied to the stylus, which includes at least two transmitting electrodes. The stylus interacts with a screen. The stylus control method includes the following steps:
[0008] Receive configuration information sent by the screen terminal;
[0009] Based on the configuration information, the transmitting electrode is paired with the screen terminal;
[0010] After successful pairing, the transmitting electrode is used to mark the screen so that the screen can display the corresponding strokes based on the marked information.
[0011] Optionally, the step of coding the screen based on the transmitting electrode so that the screen can display the corresponding strokes according to the coding information includes:
[0012] Pressure information is obtained through the transmitting electrode;
[0013] The pressure information is transmitted to the screen via the transmitting electrode, so that the screen can display the size of the stroke lines based on the pressure information.
[0014] Optionally, the stylus further includes a sensor, and the transmitting electrode includes a first transmitting electrode and a second transmitting electrode. The step of obtaining pressure information through the transmitting electrode includes:
[0015] Obtain the pressure signal from the sensor;
[0016] The pressure signal is converted through the first transmitting electrode to obtain the converted pressure data;
[0017] The converted pressure data is corrected by the second transmitting electrode to obtain the pressure information.
[0018] Optionally, the step of coding the screen based on the transmitting electrode so that the screen can display the corresponding strokes according to the coding information includes:
[0019] Tilt angle information is obtained through the transmitting electrode;
[0020] The tilt angle information is transmitted to the screen via the transmitting electrode, so that the screen can display the stroke of the stroke based on the tilt angle information.
[0021] Optionally, the transmitting electrode includes a third transmitting electrode and a fourth transmitting electrode, and the step of obtaining tilt angle information through the transmitting electrode includes:
[0022] The tilt angle information is obtained by acquiring the projected distance and projected area between the third transmitting electrode and the fourth transmitting electrode.
[0023] Optionally, the configuration information includes a point-to-point protocol, and the step of pairing the transmitting electrode with the screen based on the configuration information includes:
[0024] According to the point-to-point protocol, the transmitting electrode responds to the pairing request of the screen terminal and pairs with the screen terminal in a preset coupling mode.
[0025] Optionally, the stylus further includes at least one receiving electrode, and the step of receiving configuration information sent by the screen terminal includes:
[0026] The configuration information sent by the screen terminal is received through the receiving electrode.
[0027] This application also proposes a control device for a stylus, the control device for the stylus comprising:
[0028] An information receiving module is used to receive configuration information sent by the screen terminal;
[0029] An electrode pairing module is used to pair with the screen terminal through a preset transmitting electrode based on the configuration information.
[0030] The information coding module is used to code the screen terminal based on the sending electrode after successful pairing, so that the screen terminal can display the corresponding strokes based on the code information.
[0031] This application also proposes a stylus, which includes a memory, a processor, and a stylus control program stored in the memory and executable on the processor. When the stylus control program is executed by the processor, it implements the steps of the stylus control method described above.
[0032] This application also proposes a computer-readable storage medium storing a stylus control program, which, when executed by a processor, implements the steps of the stylus control method described above.
[0033] The stylus control method, device, stylus, and storage medium proposed in this application receive configuration information sent by the screen; based on the configuration information, the stylus pairs with the screen via the transmitting electrodes; after successful pairing, the stylus uses the transmitting electrodes to encode the screen, allowing the screen to display corresponding strokes based on the encoded information. By using at least two transmitting electrodes of the stylus to encode the screen, the screen can display corresponding strokes based on the encoded information, solving the technical problem of the stylus's inability to precisely control the screen and improving the sensitivity of stylus control. Based on the solution of this application, starting from the control rules of styluses in the real world, a stylus based on a point-to-point protocol and including at least two transmitting electrodes is designed. The effectiveness of the stylus control method proposed in this application is verified through these transmitting electrodes. Finally, the control sensitivity of the stylus is significantly improved by the method of this application. Attached Figure Description
[0034] Figure 1 This is a schematic diagram of the functional modules of the stylus, which is part of the control device for the stylus in this application.
[0035] Figure 2 This is a flowchart illustrating a first exemplary embodiment of the handwriting pen control method of this application;
[0036] Figure 3 This is a flowchart illustrating a second exemplary embodiment of the handwriting pen control method of this application;
[0037] Figure 4 This is a flowchart illustrating a third exemplary embodiment of the handwriting pen control method of this application;
[0038] Figure 5 This is a flowchart illustrating a fourth exemplary embodiment of the handwriting pen control method of this application;
[0039] Figure 6 A schematic diagram of the stylus structure for the stylus control method of this application;
[0040] Figure 7 This is a schematic diagram of the functional modules of the control device for the stylus pen involved in the embodiment of the stylus pen control method of this application.
[0041] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0042] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0043] The main solution of this application embodiment is: receiving configuration information sent by the screen terminal; pairing with the screen terminal through the sending electrode based on the configuration information; after successful pairing, marking the screen terminal with the information based on the sending electrode, so that the screen terminal can display the corresponding strokes based on the marked information. By marking the screen terminal with at least two sending electrodes of the stylus, the screen terminal can display the corresponding strokes based on the marked information, which can solve the technical problem that the stylus cannot accurately control the screen and improve the sensitivity of the stylus control. Based on the solution of this application, starting from the control law of styluses in the real world, a stylus based on a point-to-point protocol and including at least two sending electrodes is designed, and the effectiveness of the stylus control method proposed in this application is verified by the sending electrodes. Finally, the control sensitivity of the stylus is significantly improved by the method of this application.
[0044] This application takes into account that, with the development of science and technology, the electronics industry has made rapid progress, and electronic products with touch input functions, such as personal digital assistants, mobile phones, and tablets, have become increasingly widespread. These products all have touchscreens on their display screens, and the use of styluses to touch the screen has also emerged.
[0045] However, current styluses cannot provide precise control over the screen when used for touch.
[0046] Therefore, the present application's embodiment, starting from the practical problem of low stylus control sensitivity, designs a stylus based on a point-to-point protocol and including at least two transmitting electrodes. The effectiveness of the stylus control method proposed in this application is verified through these transmitting electrodes, solving the technical problem that the stylus cannot accurately control the screen and improving the sensitivity of stylus control.
[0047] Specifically, refer to Figure 1 , Figure 1This is a schematic diagram of the functional modules of the stylus, which is part of the control device for the stylus in this application. The control device for the stylus can be a device independent of the stylus, capable of electrode pairing and electrode coding, and can be carried on the stylus in hardware or software form.
[0048] In this embodiment, the stylus control device includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.
[0049] The memory 130 stores the operating system and the control program for the stylus. The stylus control device can receive configuration information sent by the screen; based on the configuration information, it pairs with the screen through the transmitting electrode; after successful pairing, it performs coding on the screen based on the transmitting electrode, so that the screen can display the corresponding strokes and other information according to the coding information, which is stored in the memory 130; the output module 110 can be a display screen, etc. The communication module 140 can include a WIFI module, a mobile communication module, and a Bluetooth module, etc., and communicates with external devices or servers through the communication module 140.
[0050] When the stylus control program in memory 130 is executed by the processor, it performs the following steps:
[0051] The stylus control method is applied to the stylus, which includes at least two transmitting electrodes. The stylus interacts with a screen. The stylus control method includes the following steps:
[0052] Receive configuration information sent by the screen terminal;
[0053] Based on the configuration information, the transmitting electrode is paired with the screen terminal;
[0054] After successful pairing, the transmitting electrode is used to mark the screen so that the screen can display the corresponding strokes based on the marked information.
[0055] Furthermore, when the stylus control program in memory 130 is executed by the processor, it also performs the following steps:
[0056] Pressure information is obtained through the transmitting electrode;
[0057] The pressure information is transmitted to the screen via the transmitting electrode, so that the screen can display the size of the stroke lines based on the pressure information.
[0058] Furthermore, when the stylus control program in memory 130 is executed by the processor, it also performs the following steps:
[0059] Obtain the pressure signal from the sensor;
[0060] The pressure signal is converted through the first transmitting electrode to obtain the converted pressure data;
[0061] The converted pressure data is corrected by the second transmitting electrode to obtain the pressure information.
[0062] Furthermore, when the stylus control program in memory 130 is executed by the processor, it also performs the following steps:
[0063] Tilt angle information is obtained through the transmitting electrode;
[0064] The tilt angle information is transmitted to the screen via the transmitting electrode, so that the screen can display the stroke of the stroke based on the tilt angle information.
[0065] Furthermore, when the stylus control program in memory 130 is executed by the processor, it also performs the following steps:
[0066] The tilt angle information is obtained by acquiring the projected distance and projected area between the third transmitting electrode and the fourth transmitting electrode.
[0067] Furthermore, when the stylus control program in memory 130 is executed by the processor, it also performs the following steps:
[0068] According to the point-to-point protocol, the transmitting electrode responds to the pairing request of the screen terminal and pairs with the screen terminal in a preset coupling mode.
[0069] Furthermore, when the stylus control program in memory 130 is executed by the processor, it also performs the following steps:
[0070] The configuration information sent by the screen terminal is received through the receiving electrode.
[0071] This embodiment, through the above-described scheme, specifically receives configuration information sent by the screen terminal; based on the configuration information, it pairs with the screen terminal via the transmitting electrode; after successful pairing, it uses the transmitting electrode to encode information sent to the screen terminal, so that the screen terminal can display the corresponding strokes based on the encoded information. By using at least two transmitting electrodes of the stylus to encode information sent to the screen terminal, the screen terminal can display the corresponding strokes based on the encoded information, which solves the technical problem that the stylus cannot accurately control the screen and improves the sensitivity of stylus control. Based on the scheme of this application, starting from the control rules of styluses in the real world, a stylus based on a point-to-point protocol and including at least two transmitting electrodes is designed. The effectiveness of the stylus control method proposed in this application is verified through these transmitting electrodes. Finally, the control sensitivity of the stylus is significantly improved by the method of this application.
[0072] Based on, but not limited to, the above-described stylus architecture, this application proposes a method embodiment.
[0073] Reference Figure 2 , Figure 2 This is a flowchart illustrating a first exemplary embodiment of the stylus control method of this application. The stylus control method is applied to a stylus, which includes at least two transmitting electrodes. The stylus interacts with a screen, and the stylus control method includes the following steps:
[0074] Step S210: Receive configuration information sent by the screen terminal;
[0075] The execution subject of this embodiment can be a stylus control device, a stylus control terminal device, or a server. This embodiment uses a stylus control device as an example, which can be integrated into a stylus with data processing capabilities. The stylus includes, but is not limited to, touch pens, capacitive pens, and electronic pens.
[0076] The solution in this embodiment mainly improves the control sensitivity of the stylus, especially the stylus itself.
[0077] This embodiment addresses the practical problem of low sensitivity in stylus control by designing a stylus based on a point-to-point protocol and including at least two transmitting electrodes. The effectiveness of the stylus control method proposed in this application is verified through these transmitting electrodes, solving the technical problem that the stylus cannot accurately control the screen and improving the sensitivity of stylus control.
[0078] Specifically, the screen is used for information interaction with the stylus. The device executing the screen can be a personal digital assistant, mobile phone, tablet computer, or other electronic product with touch input capabilities. When users need to write, draw, select, mark, or indicate, they can use the stylus to touch the screen, thereby enabling them to write, draw, select, mark, and indicate on the electronic product.
[0079] In this embodiment, before sending configuration information, a pairing process is performed according to the USI 2.0 protocol. After the pairing process is completed, the stylus receives uplink configuration information from the screen, thus pairing with the screen. That is, the tablet's touch area sends configuration information to the stylus via capacitive coupling according to the USI 2.0 protocol, enabling the stylus to receive the configuration information and respond to the tablet's touch area via capacitive coupling. During the pairing process between the stylus and the screen, the controller transmits configuration information to the stylus, including downlink frequency, downlink time slots, and the information that should be transmitted in the time slots. A paired and used stylus should also listen for uplink beacons to synchronize timing, receive configuration information, and adjust pen actions, etc.
[0080] It's worth noting that the new generation USI 2.0 protocol specification covers hundreds of products and standards, allowing the same stylus to be used on different touch devices, improving the consistency and ease of use of stylus control. Furthermore, the USI 2.0 protocol specification significantly upgrades support for color palettes, increasing it from 256 colors to 16 million colors, resulting in a more realistic and natural handwriting experience.
[0081] Step S220: Based on the configuration information, pair the transmitting electrode with the screen terminal;
[0082] Specifically, the transmitting electrodes are used for coding between the stylus and the screen to complete information interaction. This embodiment uses a stylus with two transmitting electrodes as an example; in other embodiments, there may be three or more transmitting electrodes. The stylus's transmitting electrodes reply with an acknowledgment character (ACK) to the screen to respond to the USI2.0 protocol, thereby coupling the stylus's transmitting electrodes with the screen's receiving capacitor to ensure correct pairing.
[0083] It should be noted that the stylus includes at least two transmitting electrodes. Either transmitting electrode can send an ACK to the screen to respond to the USI2.0 protocol, or each transmitting electrode can send an ACK to the screen to respond to the USI2.0 protocol.
[0084] Step S230: After successful pairing, the transmitting electrode is used to code the screen so that the screen can display the corresponding strokes based on the code information.
[0085] Specifically, coding is used to send information and / or signals to the touch area of the tablet via transmitting electrodes. After the stylus is paired with the touch area of the screen, each transmitting electrode performs coding based on the uplink as a time reference, where the uplink includes configuration information. Then, downlink coding is performed by the transmitting electrodes paired with the screen through the above step S220 to output coding information to the screen. The screen reports points based on the coding information of the transmitting electrodes, that is, the screen displays the corresponding stroke lines based on the coding information of the transmitting electrodes, thereby realizing the control of the stylus. Furthermore, the stylus supports the method of embedding touch panel functions into liquid crystal pixels, that is, the stylus supports in-cell.
[0086] This embodiment, through the above-described scheme, specifically receives configuration information sent by the screen terminal; based on the configuration information, it pairs with the screen terminal via the transmitting electrode; after successful pairing, it uses the transmitting electrode to perform coding on the screen terminal, so that the screen terminal can display the corresponding strokes based on the coded information. By using at least two transmitting electrodes of the stylus to perform coding on the screen terminal, the screen terminal can display the corresponding strokes based on the coded information, which can solve the technical problem of the stylus being unable to accurately control the screen and improve the sensitivity of stylus control.
[0087] Reference Figure 3 , Figure 3 This is a flowchart illustrating a second exemplary embodiment of the handwriting pen control method of this application. Based on the above... Figure 2 In the embodiment shown, step S230 involves marking characters on the screen based on the transmitting electrode, so that the screen can display the corresponding strokes according to the marked information, including:
[0088] Step S310: Obtain pressure information through the transmitting electrode;
[0089] Specifically, the stylus has two or more transmitting electrodes for obtaining pressure information. This pressure information is then encoded and transmitted to the screen. By obtaining pressure information through at least one transmitting electrode and transmitting it to the screen, the screen can display the size of the strokes based on the pressure information.
[0090] Furthermore, the stylus also includes a sensor, and the transmitting electrode includes a first transmitting electrode and a second transmitting electrode. Step S310 involves obtaining pressure information through the transmitting electrode, including:
[0091] Step S311: Obtain the pressure signal from the sensor;
[0092] Specifically, this embodiment uses a stylus with two transmitting electrodes as an example. In other embodiments, the stylus may include two or more transmitting electrodes, wherein the first transmitting electrode and the second electrode are respectively two transmitting electrodes of the stylus. Taking the first transmitting electrode receiving the pressure signal from the sensor as an example, in other embodiments, the second transmitting electrode may receive the pressure signal, or both the first and second transmitting electrodes may receive pressure signals. In this embodiment, one end of the first transmitting electrode is disposed at the tip of the stylus, and the other end is connected to the sensor. The actual structure of the first transmitting electrode is movable. After receiving pressure, the first transmitting electrode will retract and press against the pressure sensor inside the stylus, causing the pressure sensor to feed back the pressure signal to the first transmitting electrode.
[0093] Step S312: The pressure signal is converted through the first transmitting electrode to obtain the converted pressure data;
[0094] Specifically, when a user uses a stylus, physical pressure is generated by the first transmitting electrode pressing against the screen, and a pressure signal is generated by the first transmitting electrode pressing against the sensor. The first transmitting electrode converts the pressure signal to obtain the converted pressure data.
[0095] Step S313: The converted pressure data is corrected by the second transmitting electrode to obtain the pressure information.
[0096] Specifically, the second electrode is used to assist in correcting the converted pressure data, so that the pressure information transmitted to the tablet by the coding includes the pressure level or percentage, and the screen displays the size of the corresponding stroke line according to the level or percentage, thereby improving the control accuracy of the stylus.
[0097] Step S320: The pressure information is sent to the screen terminal through the transmitting electrode, so that the screen terminal can display the size of the stroke line according to the pressure information.
[0098] Specifically, the first transmitting electrode is also connected to a circuit board (PCBA), so that coding is also performed when the first transmitting electrode receives the pressure signal from the sensor and converts the pressure signal into pressure information. This improves the control sensitivity of the stylus.
[0099] This embodiment, through the above-described scheme, specifically obtains the pressure signal from the sensor; converts the pressure signal using the first transmitting electrode to obtain converted pressure data; uses the second transmitting electrode to perform auxiliary correction on the converted pressure data to obtain pressure information; and transmits the pressure information to the screen using the transmitting electrode, so that the screen can display the size of the stroke line based on the pressure information. Using the second transmitting electrode to perform auxiliary correction on the pressure data and transmitting the pressure information to the screen using the first transmitting electrode can improve the accuracy and sensitivity of the stylus.
[0100] Reference Figure 4 , Figure 4 This is a flowchart illustrating a third exemplary embodiment of the handwriting pen control method of this application. Based on the above... Figure 2 In the embodiment shown, step S230 involves marking characters on the screen based on the transmitting electrode, so that the screen can display the corresponding strokes according to the marked information, including:
[0101] Step S410: Obtain tilt angle information through the transmitting electrode;
[0102] Specifically, the stylus has two or more transmitting electrodes for obtaining tilt information. This tilt information is then used to signal the display. By obtaining tilt information through at least two transmitting electrodes and signaling it to the display, the display can show the size of the strokes based on the pressure information.
[0103] Further, the transmitting electrode includes a third transmitting electrode and a fourth transmitting electrode. Step S410, obtaining tilt angle information through the transmitting electrode, includes:
[0104] Step S411: Obtain the projected distance and projected area between the third transmitting electrode and the fourth transmitting electrode to obtain the tilt angle information.
[0105] Specifically, this embodiment uses a stylus with two transmitting electrodes as an example. In other embodiments, the stylus may include two or more transmitting electrodes, wherein the third and fourth transmitting electrodes are two transmitting electrodes of the stylus, respectively. The projection distance and projection area are used to calculate the tilt angle information. In this embodiment, when the stylus is tilted relative to the tablet, the third and fourth transmitting electrodes will form projections on the tablet end. Based on the projection distance and projection area between the third and fourth transmitting electrodes, the tilt angle information is obtained, and the tilt angle information is sent to the touch area on the screen through the third and / or fourth transmitting electrodes, so that the touch area can display the stroke of the pen according to the tilt angle information.
[0106] Step S420: The tilt angle information is sent to the screen terminal through the transmitting electrode, so that the screen terminal can display the stroke of the stroke line according to the tilt angle information.
[0107] Specifically, in this embodiment, transmitting tilt angle information to the touch area of the screen via the transmitting electrode is preferred. In other embodiments, the tilt angle information can also be obtained by acquiring the projection distance and projection area between the electrodes through the touch area of the screen. The brushstrokes include, but are not limited to, sharp, central, side, oblique, exposed, concealed, reverse, and returning strokes.
[0108] This embodiment obtains the tilt angle information by acquiring the projected distance and projected area between the third and fourth transmitting electrodes, as described above. The tilt angle information is then transmitted to the screen via the transmitting electrodes, allowing the screen to display the stroke of the line based on the tilt angle information. By obtaining the tilt angle information from the projected distance and projected area between the transmitting electrodes, the screen can display the corresponding stroke based on the tilt angle information, thus improving the flexibility of stylus control.
[0109] Reference Figure 5 , Figure 5 This is a flowchart illustrating a fourth exemplary embodiment of the handwriting pen control method of this application. Based on the above... Figure 2 In the embodiment shown, the configuration information includes a peer-to-peer protocol, and the stylus further includes at least one receiving electrode. Step S210, the step of receiving the configuration information sent by the screen, includes:
[0110] Step S510: Receive configuration information sent by the screen terminal through the receiving electrode.
[0111] Specifically, refer to Figure 6 , Figure 6 This is a schematic diagram of the stylus structure for the control method of the stylus in this application. The diagram shows a receiving electrode RX, transmitting electrodes TX1 and TX2. Through the nested structure of the stylus, three electrodes can be integrated into a very small volume to achieve functions such as pressure and pen stroke control. The distribution of transmitting electrode TX1, receiving electrode RX, and transmitting electrode TX2 starts from the pen tip. Since each electrode needs to be ultimately connected to a circuit board (PCBA), the structure from the outside in is also a ring-shaped nested structure of transmitting electrode TX2, receiving electrode RX, and transmitting electrode TX1. When the user pairs the stylus with a tablet via Bluetooth, the stylus receives configuration information and commands sent by the tablet through the receiving electrode, and then sends specific information to the tablet through the transmitting electrode as required.
[0112] Further, the configuration information includes a point-to-point protocol. Step S220, based on the configuration information, pairs the transmitting electrode with the screen terminal, including:
[0113] Step S520: According to the point-to-point protocol, the transmitting electrode responds to the pairing request of the screen terminal and pairs with the screen terminal in a preset coupling mode.
[0114] Specifically, the point-to-point protocol is used when the stylus and screen are paired, allowing the screen to read more than one data segment simultaneously and quickly obtain information from the stylus. The point-to-point protocol includes, but is not limited to, the USI 2.0 protocol and the USI protocol; this embodiment prefers the USI 2.0 protocol. The coupling method is used for pairing the transmitting electrodes with the screen. In this embodiment, the stylus responds to the tablet's touch area via capacitive coupling.
[0115] More specifically, writing latency is reduced in two ways: one is by reading a series of individual packets over multiple frames, and the other is by reading multiple packets within a single frame. For example, in terms of response time, a single read requires approximately 8 frames, while multiple reads only require 2 frames, saving about 100ms (16.67ms per frame). Because the stylus's latency before exiting the water is reduced, it allows for the use of the widest possible bandwidth. The controller determines the specific reading method. In the case of multiple packet reading, the first data packet is in the ACK, and the second packet is read in the TS0 time slot after the first data packet has finished. The controller needs to configure all styluses within the time slot to avoid conflicts, especially preventing styluses from simultaneously and at the same frequency responding to downlink data or position packets allocated for multiple reads, instead using read data responses instead of downlink packets.
[0116] Additionally, during pairing, the controller transmits configuration information to the pen, including downlink frequency, downlink time slots, and the information that should be transmitted in each time slot. The paired pen in use should also listen to the beacon to synchronize timing and receive configuration information to adjust pen actions. During data writing, a 16-bit data segment is used to set pen values, such as the stylus's ID, physical downlink configuration (frequency, packet duration), time slots, and packet transmission scheme.
[0117] This embodiment, through the above-described scheme, specifically receives configuration information sent by the screen via the receiving electrode; according to the peer-to-peer protocol, it responds to the pairing request from the screen via the sending electrode in a preset coupling mode and pairs with the screen; after successful pairing, it performs coding on the screen based on the sending electrode, so that the screen can display the corresponding strokes according to the coding information. By obtaining the peer-to-peer protocol from the configuration information through the receiving electrode and responding to the pairing request from the screen according to the peer-to-peer protocol, the pairing speed of the stylus can be improved, and the efficiency of stylus control can be increased.
[0118] Furthermore, this application also proposes a control device for a stylus, referring to... Figure 7 , Figure 7 This is a schematic diagram of the functional modules of the control device for the stylus pen involved in the embodiment of the stylus pen control method of this application.
[0119] like Figure 7 As shown, the control device for the stylus includes:
[0120] The information receiving module 10 is used to receive configuration information sent by the screen terminal;
[0121] Electrode pairing module 20 is used to pair with the screen terminal through a preset transmitting electrode based on the configuration information;
[0122] The information coding module 30 is used to code the screen terminal based on the sending electrode after successful pairing, so that the screen terminal can display the corresponding strokes and lines according to the code information.
[0123] The principle and implementation process of controlling the stylus in this embodiment are explained in the above embodiments and will not be repeated here.
[0124] Furthermore, this application also proposes a stylus, which includes a memory, a processor, and a stylus control program stored in the memory and executable on the processor. When the stylus control program is executed by the processor, it implements the steps of the stylus control method described above.
[0125] Since the control program of this stylus adopts all the technical solutions of all the aforementioned embodiments when it is executed by the processor, it has at least all the beneficial effects brought about by all the technical solutions of all the aforementioned embodiments, which will not be repeated here.
[0126] Furthermore, embodiments of this application also propose a computer-readable storage medium storing a stylus control program, wherein the stylus control program, when executed by a processor, implements the steps of the stylus control method described above.
[0127] Since the control program of this stylus adopts all the technical solutions of all the aforementioned embodiments when it is executed by the processor, it has at least all the beneficial effects brought about by all the technical solutions of all the aforementioned embodiments, which will not be repeated here.
[0128] Compared to existing technologies, the stylus control method, device, stylus, and storage medium proposed in this application receive configuration information sent by the screen; based on the configuration information, pairing is performed between the stylus and the screen via the transmitting electrodes; after successful pairing, the stylus is used to encode the screen via the transmitting electrodes, allowing the screen to display corresponding strokes based on the encoded information. By using at least two transmitting electrodes of the stylus to encode the screen, the screen can display corresponding strokes based on the encoded information, solving the technical problem of the stylus's inability to precisely control the screen and improving the sensitivity of stylus control. Based on this application's solution, starting from the control principles of styluses in the real world, a stylus based on a point-to-point protocol and including at least two transmitting electrodes is designed. The effectiveness of the stylus control method proposed in this application is verified through these transmitting electrodes, and the control sensitivity of the stylus is significantly improved by this method.
[0129] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0130] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0131] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a stylus (which may be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the methods of each embodiment of this application.
[0132] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for controlling a stylus, characterized in that, The stylus control method is applied to the stylus, which includes at least two transmitting electrodes and at least one receiving electrode. The stylus interacts with a screen. The stylus control method includes the following steps: The receiving electrode receives configuration information sent by the screen terminal, the configuration information including a point-to-point protocol; According to the point-to-point protocol, the transmitting electrode responds to the pairing request from the screen in a preset coupling mode and pairs with the screen; the stylus that has been paired and is in use also listens to the uplink beacon, synchronizes the timing, receives configuration information and adjusts the stylus action; After successful pairing, the transmitting electrode is used to encode the screen terminal so that the screen terminal can display the corresponding strokes based on the encoded information. Specifically, after successful pairing, pressure information and tilt information are obtained based on the transmitting electrode and sent to the screen terminal through the encoded method so that the screen terminal can display the corresponding stroke size and strokes based on the encoded pressure information and tilt information. The stylus also includes a sensor, and the transmitting electrode includes a first transmitting electrode and a second transmitting electrode. The step of obtaining pressure information through the transmitting electrode includes: Obtain the pressure signal from the sensor; The pressure signal is converted through the first transmitting electrode to obtain the converted pressure data; The converted pressure data is corrected by the second transmitting electrode to obtain the pressure information.
2. The handwriting pen control method as described in claim 1, characterized in that, The transmitting electrodes include a third transmitting electrode and a fourth transmitting electrode, and the step of obtaining tilt angle information through the transmitting electrodes includes: The tilt angle information is obtained by acquiring the projected distance and projected area between the third transmitting electrode and the fourth transmitting electrode.
3. A control device for a stylus, characterized in that, The control device for the stylus includes: The information receiving module is used to receive configuration information sent by the screen terminal through the receiving electrode, the configuration information including a point-to-point protocol; The electrode pairing module is used to respond to the pairing request of the screen terminal by sending electrodes in a preset coupling mode according to the point-to-point protocol, and to pair with the screen terminal; the stylus that has been paired and is in use also listens to the uplink beacon, synchronizes the timing, receives configuration information and adjusts the stylus actions. An information coding module is used to code the screen based on the transmitting electrode after successful pairing, so that the screen can display the corresponding strokes based on the coded information. Specifically, after successful pairing, pressure and tilt information are obtained based on the transmitting electrode, and the pressure and tilt information are sent to the screen via coding, so that the screen can display the corresponding stroke size and stroke tip based on the coded pressure and tilt information. The stylus also includes a sensor, and the transmitting electrode includes a first transmitting electrode and a second transmitting electrode. The step of obtaining pressure information through the transmitting electrode includes: obtaining the pressure signal from the sensor; converting the pressure signal through the first transmitting electrode to obtain converted pressure data; and using the second transmitting electrode to perform auxiliary correction on the converted pressure data to obtain the pressure information.
4. A stylus, characterized in that, The stylus includes a memory, a processor, and a stylus control program stored in the memory and executable on the processor. When the stylus control program is executed by the processor, it implements the steps of the stylus control method as described in any one of claims 1-2.
5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a control program for the stylus, which, when executed by a processor, implements the steps of the stylus control method as described in any one of claims 1-2.
Citation Information
Patent Citations
Stylus mode switching method and device, stylus and readable storage medium
CN111580690A
Active pen communication method and device, terminal and storage medium
CN112558798A
Interaction method and system of electronic equipment and touch pen, and electronic equipment
CN113821113A