Touch screen response method, electronic pen response method, and touch system
By setting the color gear and pen tip on the electronic pen, generating the target color signal and obtaining coordinate information, identifying and automatically responding to touch operations, the problem of users needing to select input mode in the prior art is solved, and the operation efficiency of the touch screen is improved.
Patent Information
- Application Number
- PCT/CN2024/074229
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2025-07-31
AI Technical Summary
In the prior art, when using the touch device, a user needs to select an input mode before inputting a touch command, resulting in low operation efficiency and difficulty in identifying a hand-written touch operation.
By setting the color gear and pen tip on the electronic pen, the target color signal is generated, and coordinate information is obtained within the preset time period, and the electronic pen touch operation is identified based on the signal and coordinate information to achieve automatic response.
There is no need for the user to select the interactive mode before touching the operation, and directly perform hand touch or pen touch operations, which improves the operation efficiency of the touch screen.
Smart Images

Figure CN2024074229_31072025_PF_FP_ABST
Abstract
Description
Touch screen response method, electronic pen response method and touch control system Technical Field
[0001] The present application relates to the field of human-computer interaction technology, and in particular to a touch screen response method, an electronic pen response method, a touch screen response device, an electronic pen response device, a touch control system, a computer device, a storage medium, and a computer program product. Background Art
[0002] With the advancement of technology and living standards, more and more smart devices are appearing in people's daily lives. Touchscreen devices, such as interactive intelligent panels (IIPs), are one of these devices. Touchscreen devices allow people to operate directly on the display screen, eliminating the need for a mouse or other device for wired or wireless operation, making them convenient and fast. Simultaneously, writing devices capable of writing on touchscreen devices have also emerged. Using writing devices, people can write on touchscreen devices as freely as with a pen. They can also choose the color and type of handwriting to suit their needs.
[0003] Traditional solutions generally require users to select an input mode in a menu on the tablet before inputting touch commands, such as selecting normal input mode or electronic pen input mode. In application scenarios where repeated switching of input modes is required, the user's operation workload is greatly increased, resulting in low user operation efficiency.
[0004] Current electronic devices have difficulty recognizing hand-pen touch operations, which affects the user's operational efficiency.
[0005] Summary of the Invention
[0006] Based on this, it is necessary to provide a touch screen response method, electronic pen response method, touch screen response device, electronic pen response device, touch control system, computer equipment, storage medium and computer program product that can recognize hand touch operations in order to address the above technical problems.
[0007] In a first aspect, the present application provides a touch screen response method, which is applied to an electronic device equipped with a touch screen, wherein the electronic device is also equipped with an electronic pen, the electronic pen having a triggerable pen tip and at least one color setting, comprising:
[0008] When a target color signal transmitted by the electronic pen is obtained, timing is started; the target color signal is generated when the target color position and the pen tip of the electronic pen are triggered simultaneously;
[0009] When the first coordinate information is obtained within the preset time period, determining that the coordinate information is an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to the first touch input;
[0010] The electronic pen triggering event is responded to on the touch screen according to the target color signal and the first coordinate information.
[0011] In one embodiment, responding to an electronic pen triggering event on a touch screen according to the target color signal and the first coordinate information includes:
[0012] determining a writing trajectory according to the first coordinate information;
[0013] determining the target color of the writing track according to the target color signal;
[0014] The writing track is displayed on the touch screen according to the target color.
[0015] In one embodiment, the method further comprises:
[0016] If the first coordinate information is not obtained within the preset time period, the target color signal is identified as an interference signal.
[0017] In one embodiment, the method further comprises:
[0018] In the case where the target color signal is not obtained, in response to a second touch operation on the touch screen, obtaining second coordinate information, and determining that the second coordinate information is a non-electronic pen triggering event;
[0019] The non-electronic pen triggering event is responded to on the touch screen according to the second coordinate information.
[0020] In one embodiment, responding to a non-electronic pen triggering event on the touch screen according to the second coordinate information includes:
[0021] determining a touch trajectory according to the second coordinate information;
[0022] Adjust the display content on the touch screen according to the touch trajectory.
[0023] In a second aspect, the present application further provides an electronic pen response method, which is applied to an electronic pen having a triggerable pen tip and at least one color setting, and the electronic pen is also equipped with an electronic device having a touch screen, including:
[0024] When the target color position is triggered, determining the target color corresponding to the target color position;
[0025] When the pen tip is triggered, a target color signal corresponding to the target color is generated and transmitted to the electronic device; the target color signal is used to instruct the electronic device to start timing, and when the first coordinate information is obtained within a preset time period, the coordinate information is determined to be an electronic pen trigger event, and the electronic pen trigger event is responded to on the touch screen based on the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to the first touch operation.
[0026] In one embodiment, the electronic pen is provided with at least one independent non-self-locking button, each non-self-locking button corresponds to a color level, and each non-self-locking button is provided with a color indicator light that matches the corresponding color level; the method further includes:
[0027] When the non-self-locking key corresponding to the target color gear is pressed, the target color corresponding to the target color gear is determined, and the color indicator light corresponding to the target color gear is lit until the non-self-locking key corresponding to the new color gear is pressed;
[0028] When the pen tip is triggered, a target color signal corresponding to the target color is generated and transmitted to the electronic device.
[0029] In one embodiment, the electronic pen is provided with a toggle switch, the toggle switch includes a plurality of toggle positions, each toggle position corresponds to a color setting, and each toggle position is provided with a color identifier that matches the corresponding color setting; the method further includes:
[0030] When the pen tip is triggered, the currently triggered target color gear is identified; the target color gear is determined according to the toggle position of the toggle switch, and the target color gear is used to determine the target color;
[0031] generating a target color signal corresponding to the target color, and transmitting the target color signal to the electronic device;
[0032] When the electronic device receives the target color signal, it switches to the low power consumption working mode until the toggle switch changes its toggle position.
[0033] In a third aspect, the present application further provides a touch screen response device, which is applied to an electronic device provided with a touch screen, wherein the electronic device is also provided with an electronic pen, the electronic pen having a triggerable pen tip and at least one color setting, including:
[0034] The timing module is used to start timing when a target color signal transmitted by the electronic pen is obtained; the target color signal is generated when the electronic pen is in the target color position and the pen tip is triggered simultaneously;
[0035] a determination module, configured to determine, when first coordinate information is acquired within a preset time period, that the coordinate information is an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to the first touch input;
[0036] The response module is used to respond to the electronic pen triggering event on the touch screen according to the target color signal and the first coordinate information.
[0037] In a fourth aspect, the present application further provides an electronic pen response device, which is applied to an electronic pen having a triggerable pen tip and at least one color setting, and the electronic pen is also equipped with an electronic device having a touch screen, including:
[0038] A determination module, configured to determine a target color corresponding to the target color position when the target color position is triggered;
[0039] The transmission module is used to generate a target color signal corresponding to the target color when the pen tip is triggered, and transmit the target color signal to the electronic device; the target color signal is used to instruct the electronic device to start timing, and when the first coordinate information is obtained within a preset time, the coordinate information is determined to be an electronic pen trigger event, and the electronic pen trigger event is responded to on the touch screen based on the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to the first touch operation.
[0040] In a fifth aspect, the present application further provides a touch control system, comprising an electronic device provided with a touch screen, and an electronic pen provided with a triggerable pen tip and at least one color setting;
[0041] The electronic pen is used to determine a target color signal corresponding to the target color position when the target color position is triggered; and transmit the target color signal to the electronic device when the pen tip is triggered;
[0042] An electronic device, configured to start timing upon acquiring a target color signal transmitted by an electronic pen; determine that the coordinate information is an electronic pen trigger event upon acquiring first coordinate information within a preset time period; and respond to the electronic pen trigger event on a touch screen based on the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to a first touch input.
[0043] In a sixth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0044] When a target color signal transmitted by the electronic pen is obtained, timing is started; the target color signal is generated when the target color position and the pen tip of the electronic pen are triggered simultaneously;
[0045] When the first coordinate information is obtained within the preset time period, determining that the coordinate information is an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to the first touch input;
[0046] The electronic pen triggering event is responded to on the touch screen according to the target color signal and the first coordinate information.
[0047] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0048] When a target color signal transmitted by the electronic pen is obtained, timing is started; the target color signal is generated when the target color position and the pen tip of the electronic pen are triggered simultaneously;
[0049] When the first coordinate information is obtained within the preset time period, determining that the coordinate information is an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to the first touch input;
[0050] The electronic pen triggering event is responded to on the touch screen according to the target color signal and the first coordinate information.
[0051] In an eighth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:
[0052] When a target color signal transmitted by the electronic pen is obtained, timing is started; the target color signal is generated when the target color position and the pen tip of the electronic pen are triggered simultaneously;
[0053] When the first coordinate information is obtained within the preset time period, determining that the coordinate information is an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to the first touch input;
[0054] The electronic pen triggering event is responded to on the touch screen according to the target color signal and the first coordinate information.
[0055] The above-mentioned touch screen response method, electronic pen response method, touch screen response device, electronic pen response device, touch control system, computer device, storage medium, and computer program product are as follows: the electronic pen generates a target color signal when the target color position and pen tip are simultaneously triggered; the electronic device starts timing when it obtains the target color signal transmitted by the electronic pen; the touch screen on the electronic device generates first coordinate information in response to a first touch input; and the electronic device determines that the coordinate information is an electronic pen trigger event when it obtains the first coordinate information within a preset time period, and responds to the electronic pen trigger event on the touch screen based on the target color signal and the first coordinate information. The electronic device can recognize hand and pen touch operations, eliminating the need for the user to manually select an interaction mode before the touch operation. The user can directly perform hand or pen touch operations on the touch screen, reducing the number of human-computer interaction steps and thereby improving the operational efficiency of the touch screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the conventional technology, the following briefly introduces the drawings required for use in the embodiments or the conventional technology descriptions. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without any creative work.
[0057] FIG1 is a diagram illustrating an application environment of a touch screen response method according to an embodiment;
[0058] FIG2 is a schematic diagram of a flow chart of a touch screen response method in one embodiment;
[0059] FIG3 is a schematic flow chart of an electronic pen response method according to an embodiment;
[0060] FIG4 is a schematic diagram of a non-self-locking key electronic pen according to an embodiment;
[0061] FIG5 is a schematic diagram of a non-self-locking key interrupt detection circuit in one embodiment;
[0062] FIG6 is a schematic diagram of a toggle switch electronic pen according to an embodiment;
[0063] FIG7 is a schematic diagram of a toggle switch interrupt detection circuit according to one embodiment;
[0064] FIG8 is a schematic diagram of a touch control system workflow in one embodiment;
[0065] FIG9 is a schematic diagram of the working process of a touch control system according to another embodiment;
[0066] FIG10 is a structural block diagram of a touch screen response device according to an embodiment;
[0067] FIG11 is a block diagram of a structure of an electronic pen response device according to an embodiment;
[0068] FIG12 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0070] Interactive intelligent panels (IIPs) include conference panels used in meeting scenarios and educational panels used in educational scenarios. In conference or educational panel usage scenarios, different colored pens are often needed for writing, annotating, and other operations. Traditional solutions generally require switching colors through a menu on the panel, which increases user operations and is different from real-world usage habits. In reality, multiple pens can correspond to multiple colors, or a single pen can switch between multiple colors. In short, pens of corresponding colors can write words of corresponding colors. Traditional whole-machine systems can only respond to touch operations on the touch screen. For the whole-machine system, it does not know what object is touching the touch screen and can only respond to all touch operations in the same way in the selected operation mode. During PowerPoint presentations, users often need to annotate the PowerPoint content. Because the whole-machine system cannot distinguish whether the touch operation is a pen or a hand, it cannot know whether the user wants to perform menu operations or write annotations, so it requires the user to first click the "Annotation" menu to enter the writing state. This adds an extra operation step, and users often forget this operation and want to annotate directly when they pick up the pen. After discovering that the operation is wrong, they perform operations such as undo and reselect, which affects the user's operating efficiency and usage experience.
[0071] If the entire system can identify whether the touch operation is from an electronic pen or a hand, the entire system can set touch functions based on the electronic pen and hand, achieving the function of separating hand and pen touch operations. Users no longer need to select an interaction mode on the touch screen before performing a touch operation. They can directly perform hand or pen touch operations on the touch screen, eliminating the mode selection step and improving the overall efficiency of touch operations. The touch screen response method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. In this embodiment, electronic device 102 communicates with electronic pen 104 via a data cable or network. Electronic device 102 is equipped with a touch screen. Electronic pen 104 is equipped with a triggerable pen tip and at least one color setting. Electronic pen 104 is equipped with a microprocessor. The pen tip is equipped with a pressure sensor or push switch that can be triggered by contact or pressure. Electronic device 102 can be, but is not limited to, various interactive smart tablets, personal computers, laptops, smartphones, tablets, Internet of Things devices, and portable wearable devices. Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
[0072] In an exemplary embodiment, as shown in FIG2 , a touch screen response method is provided, which is described by taking the method applied to the electronic device 102 in FIG1 as an example, and includes the following steps 202 to 206 . Among them:
[0073] Step 202 , when a target color signal transmitted by the electronic pen is acquired, timing is started; the target color signal is generated when the target color position and the pen tip of the electronic pen are triggered simultaneously.
[0074] Optionally, when a user uses an electronic pen to input on the touch screen, they can trigger any color range on the electronic pen as the target color range. After the target color range is triggered, the electronic pen determines the target color selected by the user and waits for the pen tip to be triggered. When the pen tip is triggered, it transmits a target color signal corresponding to the target color to the electronic device. When the electronic terminal receives the target color signal, it starts timing.
[0075] It should be noted that the pen tip being triggered does not mean that the pen tip is in contact with the touch screen. When the pen tip comes into contact with any object and is subjected to pressure, it can be considered as being triggered.
[0076] Step 204 : When the first coordinate information is acquired within a preset time period, respond on the touch screen according to the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to the contact operation.
[0077] The preset time length is usually in milliseconds (ms), and can be, but is not limited to, 10ms. The first touch input can be, but is not limited to, operations such as contact tapping and contact movement of the electronic pen on the touch screen.
[0078] Optionally, after the electronic terminal begins timing, it acquires coordinate information via the touch screen. If the coordinate information is acquired within a preset time period, it is considered first coordinate information and the first coordinate information is determined to be triggered by the electronic pen, i.e., it is determined that the user is currently performing an electronic pen touch operation. An electronic pen touch operation refers to a touch operation in which the tip of the electronic pen contacts the touch screen, and may include, but is not limited to, writing text, drawing graphics, and adding color markings.
[0079] Furthermore, when the electronic terminal determines that the first coordinate information is triggered by the electronic pen, the corresponding electronic pen response result is displayed on the touch screen based on the target color signal and the first coordinate information. The electronic pen response result can reflect the corresponding characteristics of the target color, the first coordinate information and the electronic pen touch operation.
[0080] In the above-mentioned touch screen response method, the electronic pen generates a target color signal when the target color position and the pen tip are simultaneously triggered; the electronic device starts timing when it receives the target color signal transmitted by the electronic pen; the touch screen on the electronic device generates first coordinate information in response to the first touch input; and when the electronic device receives the first coordinate information within a preset time period, it determines that the coordinate information is an electronic pen trigger event and responds to the electronic pen trigger event on the touch screen based on the target color signal and the first coordinate information. The electronic device can recognize hand and pen touch operations, eliminating the need for the user to select an interaction mode on the touch screen before performing a touch operation. Hand or pen touch operations can be performed directly on the touch screen, eliminating the mode selection step, reducing the number of human-computer interaction steps, and thereby improving the operational efficiency of the touch screen.
[0081] In one embodiment, a response to an electronic pen triggering event is performed on a touch screen based on a target color signal and first coordinate information, including: determining a writing trajectory based on the first coordinate information; determining a target color of the writing trajectory based on the target color signal; and displaying the writing trajectory on the touch screen according to the target color.
[0082] Optionally, when the electronic terminal determines that the first coordinate information is an electronic pen trigger event, it determines the movement trajectory of the electronic pen tip on the touch screen based on the first coordinate information, uses the movement trajectory as the writing trajectory to be displayed on the touch screen, and determines the target color of this writing trajectory based on the target color signal, and finally displays the writing trajectory of the target color on the touch screen to realize the recognition and response of the electronic pen trigger event.
[0083] In this embodiment, the electronic pen generates a target color signal when the target color position and pen tip are simultaneously triggered. Upon receiving the target color signal transmitted by the electronic pen, the electronic device begins timing. Upon receiving first coordinate information within a preset time period, the electronic device determines the coordinate information as an electronic pen trigger event and determines a writing trajectory based on the first coordinate information. The target color of the writing trajectory is determined based on the target color signal, and the writing trajectory is displayed on the touch screen according to the target color. The electronic device can recognize pen touch operations, eliminating the need for the user to manually select an electronic pen interaction mode before performing a touch operation. This allows the user to perform pen touch operations directly on the touch screen, and the electronic device can directly respond to pen touch operations correctly, reducing human-computer interaction steps and improving touch screen operation efficiency.
[0084] In one embodiment, the method further includes: if the first coordinate information is not acquired within a preset time period, treating the target color signal as an interference signal that does not require a response.
[0085] Optionally, when the electronic device obtains the target color signal transmitted by the electronic pen, it starts timing and obtains coordinate information through the touch screen. If the tip of the electronic pen does not touch the touch screen within a preset time, that is, the user does not perform any touch input operation on the touch screen, then the electronic device does not obtain any coordinate information within the preset time, and it will determine that the target color signal transmitted by the electronic pen this time is generated by the electronic pen being accidentally touched, and the target color signal will be identified as an interference signal and will not be processed.
[0086] In a feasible implementation, after the target color signal is confirmed as an interference signal, the electronic device may further display a prompt message on the touch screen to remind the user that the color position of the electronic pen has been accidentally touched.
[0087] In this embodiment, the electronic pen generates a target color signal when the target color position and pen tip are simultaneously triggered. Upon receiving the target color signal transmitted by the electronic pen, the electronic device begins timing. If the first coordinate information is not received within a preset time period, the target color signal is identified as an interference signal. The electronic device can recognize pen touch operations, eliminating the need for the user to manually select an electronic pen interaction mode before performing a touch operation. This allows the user to perform pen touch operations directly on the touch screen, and the electronic device can directly respond to the pen touch operations correctly. Furthermore, if the electronic pen does not properly contact the touch screen, the electronic device can identify the operation as an error and not respond. This reduces the number of human-computer interactions and improves the efficiency of touch screen operation.
[0088] In one embodiment, the method further includes: acquiring second coordinate information in response to a contact operation on the touch screen when the target color signal is not acquired; and responding on the touch screen according to the second coordinate information.
[0089] Optionally, if the electronic terminal fails to acquire the target color signal, it continuously acquires coordinate information via the touchscreen. If coordinate information is acquired, it deems it as second coordinate information and determines that the second coordinate information was not generated by an electronic pen, thereby determining that the user is performing a non-electronic pen touch operation. If the electronic terminal determines that the second coordinate information was generated by a non-electronic pen, it displays a corresponding non-electronic pen response on the touchscreen based on the second coordinate information. The non-electronic pen response can reflect the second coordinate information and the corresponding characteristics of the finger touch operation. A non-electronic pen touch operation refers to a touch operation performed by a finger or passive pen contacting the touchscreen, and can include, but is not limited to, moving the interface, turning pages forward and backward, zooming in and out, adjusting the volume, and adjusting the screen brightness.
[0090] In this embodiment, if the target color signal is not obtained, the electronic device responds to a second touch operation on the touch screen by acquiring second coordinate information, determining that the second coordinate information is a non-electronic pen trigger event, and responding to the non-electronic pen trigger event on the touch screen based on the second coordinate information. The electronic device can recognize the hand touch operation without requiring the user to manually select an interaction mode before the touch operation. The user can directly perform a hand touch operation on the touch screen, and the electronic device can directly respond to the hand touch operation correctly, reducing the number of human-computer interaction steps and thereby improving the efficiency of touch screen operation.
[0091] In one embodiment, responding to a non-electronic pen triggering event on the touch screen according to the second coordinate information includes: determining a touch trajectory according to the second coordinate information; and adjusting display content on the touch screen according to the touch trajectory.
[0092] Optionally, when the electronic terminal determines that the second coordinate information is a non-electronic pen trigger event, the movement trajectory of the finger or passive pen on the touch screen is determined based on the second coordinate information, and the movement trajectory is used as the touch trajectory input by the user to the touch screen. Based on the mapping relationship between the touch trajectory and the touch instruction, the touch instruction input by the user is determined, and finally the display content on the touch screen is adjusted based on the touch instruction, such as moving, enlarging or reducing the display interface in the touch screen, turning pages forward and backward, adjusting the volume and adjusting the screen brightness, so as to realize the recognition and response to non-electronic pen trigger events.
[0093] In this embodiment, when the target color signal is not obtained, the electronic device responds to a second touch operation on the touch screen by obtaining second coordinate information, determining that the second coordinate information is not a trigger event caused by an electronic pen; determining a touch trajectory based on the second coordinate information; and adjusting the display content on the touch screen based on the touch trajectory. The electronic device can recognize hand touch operations without requiring the user to manually select an interaction mode before performing a touch operation. This allows the user to perform a hand touch operation directly on the touch screen, and the electronic device can directly respond to the hand touch operation correctly, reducing the number of human-computer interaction steps and thereby improving the efficiency of touch screen operation.
[0094] In one embodiment, a touch screen response method, taking the method applied to the electronic device 102 in FIG. 1 as an example, includes:
[0095] In the case where the target color signal is not obtained, in response to the second touch operation on the touch screen, second coordinate information is obtained, and the second coordinate information is determined to be a non-electronic pen trigger event; based on the second coordinate information, a touch trajectory is determined; and based on the touch trajectory, the display content on the touch screen is adjusted.
[0096] When the target color signal transmitted by the electronic pen is acquired, timing starts; the target color signal is generated when the target color position and the pen tip of the electronic pen are triggered at the same time.
[0097] When the first coordinate information is obtained within a preset time period, the coordinate information is determined to be an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to the first touch input; based on the first coordinate information, a writing trajectory is determined; based on the target color signal, a target color of the writing trajectory is determined; and according to the target color, the writing trajectory is displayed on the touch screen.
[0098] If the first coordinate information is not obtained within the preset time period, the target color signal is identified as an interference signal.
[0099] In an exemplary embodiment, as shown in FIG2 , an electronic pen response method is also provided, which is described by taking the electronic pen 104 in FIG1 as an example, and includes the following steps 302 to 304 . Among them:
[0100] Step 302: When the target color shift is triggered, determine the target color corresponding to the target color shift.
[0101] Optionally, when the user needs to use the electronic pen to perform a touch operation on the touch screen, the user can select a target color on the electronic pen and trigger the corresponding target color gear. When the target color gear is triggered, the electronic pen determines the target color currently selected by the user.
[0102] Step 304: When the pen tip is triggered, a target color signal corresponding to the target color is generated and transmitted to the electronic device; the target color signal is used to instruct the electronic device to start timing, and when the first coordinate information is obtained within a preset time period, the coordinate information is determined to be an electronic pen trigger event, and the electronic pen trigger event is responded to on the touch screen based on the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to the first touch operation.
[0103] Optionally, when the pen tip receives pressure and is triggered, the electronic pen generates a corresponding target color signal based on the currently determined target color, and transmits the target color signal to the electronic device.
[0104] The electronic device begins timing when it receives a target color signal transmitted by the electronic pen. If it receives first coordinate information within a preset time period, it determines the coordinate information as an electronic pen trigger event and responds to the electronic pen trigger event on the touch screen based on the target color signal and the first coordinate information. If it fails to receive the first coordinate information within the preset time period, it determines the target color signal as an interference signal.
[0105] In a feasible embodiment, the electronic pen is provided with at least one independent non-self-locking button, each non-self-locking button corresponds to a color gear, and each non-self-locking button is provided with a color indicator light matching the corresponding color gear; the method also includes: when the non-self-locking button corresponding to the target color gear is pressed, determining the target color corresponding to the target color gear, lighting up the color indicator light corresponding to the target color gear until the non-self-locking button corresponding to the new color gear is pressed; when the pen tip is triggered, generating a target color signal corresponding to the target color, and transmitting the target color signal to the electronic device.
[0106] Specifically, an electronic pen with four independent, non-locking buttons is shown in Figure 4. The pen body features four colored, non-locking, touch buttons that spring back when pressed. These buttons, for example, are blue, green, red, and white. LEDs of corresponding colors are placed on either side of these buttons. The electronic pen also contains an internal MCU circuit with four ID1, ID2, ID3, and ID4 codes corresponding to these four colors. The electronic pen also has a key interrupt detection circuit, as shown in Figure 5. R1, R2, R3, and R4 act as voltage dividers with R5. The voltage divider values here are VCC*1, VCC*0.8, VCC*0.6, and VCC*0.4, respectively. Other voltage ratios can also be set. Note that the minimum voltage divider must be greater than the VGS turn-on voltage of QD3A. Only in this way can a reverse interrupt signal Key_INT be generated after a key is pressed. The MCU detects the voltage of RXD / Key through ADC sampling to determine which key is pressed. Then, based on the pressed key, the MCU records the target color currently selected by the user. When the pen tip is triggered, the corresponding target color signal is generated based on the recorded target color and transmitted to the electronic device.
[0107] In another feasible embodiment, the electronic pen is provided with a toggle switch, which includes multiple toggle positions, each toggle position corresponds to a color gear, and each toggle position is provided with a color identification that matches the corresponding color gear; the method also includes: when the pen tip is triggered, identifying the currently triggered target color gear; the target color gear is determined according to the toggle position of the toggle switch, and the target color gear is used to determine the target color; generating a target color signal corresponding to the target color, and transmitting the target color signal to the electronic device; when the electronic device receives the target color signal, switching to a low-power working mode until the toggle position of the toggle switch changes.
[0108] Specifically, an electronic pen with a toggle switch is shown in Figure 6. The toggle switch has four color settings, each with a color printed on it, such as blue, green, red, and white. To achieve low power consumption, the LED color indicator has been removed. The electronic pen contains an MCU circuit with four sets of ID1, ID2, ID3, and ID4 codes corresponding to the four colors. Because the toggle switch has a self-locking function, once set to a certain setting, it remains in that setting. When the pen tip is not triggered, the MCU defaults to standby mode, requiring no data recording or processing. Only when the pen tip is triggered does the MCU wake up, identify the currently triggered target color setting, generate a corresponding target color signal based on the target color setting, and transmit the target color signal to the electronic device. After the transmission is complete, the MCU returns to standby mode. This significantly reduces the power consumption of the electronic pen's MCU, achieving a low-power electronic pen design. The electronic pen also has a key interrupt detection circuit, as shown in Figure 7. The GPIO that provides voltage to the voltage divider circuit will be turned off when the MCU is in standby mode, so the user cannot wake up the MCU by generating an interrupt by toggling the switch. For example, pushing the switch to the blue position indicates that pins 1 and 2 are connected.
[0109] In this embodiment, the electronic pen generates a target color signal when the target color position and pen tip are simultaneously triggered. Upon receiving the target color signal transmitted by the electronic pen, the electronic device begins timing. Upon receiving first coordinate information within a preset time period, the electronic device determines the coordinate information as an electronic pen trigger event and responds to the electronic pen trigger event on the touch screen based on the target color signal and the first coordinate information. This enables a single active pen to switch between four colors. After the user selects a color, the electronic device recognizes the pen touch operation, eliminating the need for the user to manually select an interaction mode before performing a touch operation. This allows the user to perform either hand or pen touch operations directly on the touch screen, reducing the number of human-computer interaction steps and improving touch screen operation efficiency.
[0110] In an exemplary embodiment, in combination with the above-mentioned touch screen response method and electronic pen response method, a touch control system is provided, comprising an electronic device provided with a touch screen, and an electronic pen provided with a triggerable pen tip and at least one color setting; wherein:
[0111] The electronic pen is used to determine a target color signal corresponding to the target color position when the target color position is triggered; and transmit the target color signal to the electronic device when the pen tip is triggered;
[0112] An electronic device, configured to start timing upon acquiring a target color signal transmitted by an electronic pen; determine that the coordinate information is an electronic pen trigger event upon acquiring first coordinate information within a preset time period; and respond to the electronic pen trigger event on a touch screen based on the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to a first touch input.
[0113] In one embodiment, the electronic device is further used to determine the writing track based on the first coordinate information; determine the target color of the writing track based on the target color signal; and display the writing track on the touch screen according to the target color.
[0114] In one embodiment, the electronic device is further configured to identify the target color signal as an interference signal when the first coordinate information is not acquired within a preset time period.
[0115] In one embodiment, the electronic device is also used to, in the absence of obtaining the target color signal, respond to a second touch operation on the touch screen, obtain second coordinate information, and determine that the second coordinate information is a non-electronic pen trigger event; and respond to the non-electronic pen trigger event on the touch screen based on the second coordinate information.
[0116] In one embodiment, the electronic device is further configured to determine a touch trajectory according to the second coordinate information; and adjust display content on the touch screen according to the touch trajectory.
[0117] In one embodiment, as shown in FIG4 , the electronic pen is provided with at least one independent non-self-locking button, each non-self-locking button corresponds to a color gear, and each non-self-locking button is provided with a color indicator light that matches the corresponding color gear;
[0118] The electronic pen is also used to determine the target color corresponding to the target color gear when the non-self-locking button corresponding to the target color gear is pressed, and light up the color indicator light corresponding to the target color gear until the non-self-locking button corresponding to the new color gear is pressed; when the pen tip is triggered, it generates a target color signal corresponding to the target color and transmits the target color signal to the electronic device.
[0119] In one embodiment, as shown in FIG6 , the electronic pen is provided with a toggle switch, which includes a plurality of toggle positions, each of which corresponds to a color position, and each of which is provided with a color mark that matches the corresponding color position;
[0120] The electronic pen is also used to identify the currently triggered target color gear when the pen tip is triggered; the target color gear is determined according to the toggle position of the toggle switch, and the target color gear is used to determine the target color; a target color signal corresponding to the target color is generated and the target color signal is transmitted to the electronic device; when the electronic device receives the target color signal, it switches to a low-power working mode until the toggle position of the toggle switch changes.
[0121] For example, consider the electronic pen shown in Figure 4. The pen body features four colored touch buttons—blue, green, red, and white—with corresponding colored LEDs placed on either side. The pen also contains an internal MCU circuit with four ID1, ID2, ID3, and ID4 codes corresponding to these four colors. The touch screen defaults to white. The touch system's workflow is shown in Figure 8 , including the following: When a user presses the blue button, a key interrupt signal is generated. Upon receiving the interrupt signal, the MCU detects the voltage value through the ADC interface. If the voltage value matches the preset blue button, the blue button is considered pressed. For example, the preset voltage values are: blue = VCC, green = 0.8*VCC, red = 0.6*VCC, and white = 0.4*VCC, where VCC is the MCU's power supply voltage. After determining this, the MCU changes the pen's color indicator to blue. When the pen tip presses the screen, an interrupt signal is generated. Upon receiving this interrupt signal, the MCU transmits an ID1 code signal, which can be an infrared or radio code signal. The entire system receives the coded signal and identifies it. It also determines whether it has received coordinate information within 10ms. If so, the system confirms receipt of the ID1 signal and responds to the corresponding operation by displaying the corresponding color. If not, the system assumes it was a false trigger and does not respond. If the user uses a finger or stylus to perform a touch operation, the system only receives the coordinate information and responds to the finger or stylus operation. Because the system can distinguish between pen and hand touches, it can achieve the function of separating hand and pen touch operations.
[0122] For example, consider the electronic pen shown in Figure 6. The pen body features a toggle switch with four positions, each silkscreened with a color, such as blue, green, red, and white. To minimize power consumption, the LED color indicator has been removed. The pen also contains an internal MCU circuit with four ID1, ID2, ID3, and ID4 codes corresponding to the four colors. The touch control system workflow is shown in Figure 9. The user pushes the toggle switch to the blue position, and the MCU remains idle. When the pen tip presses the screen, an interrupt signal is generated. Upon receiving this interrupt signal, the MCU uses an internal push-pull circuit to set the GPIO voltage to VCC, thus powering the toggle switch detection circuit. The MCU then uses the ADC to sample the RXD / Key voltage to determine the toggle switch position. For example, if the toggle switch is in the blue position, the MCU transmits an ID1 code signal, which can be an infrared or radio code signal. After completing the code transmission, the MCU enters standby low-power mode. The remaining logic is identical to the touch key solution.
[0123] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0124] Based on the same inventive concept, embodiments of the present application also provide a touch screen response device for implementing the aforementioned touch screen response method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more touch screen response device embodiments provided below can be found in the above-described limitations of the touch screen response method and will not be further elaborated here.
[0125] In an exemplary embodiment, as shown in FIG10 , a touch screen response device 1000 is provided, which is applied to an electronic device equipped with a touch screen. The electronic device is also equipped with an electronic pen, which has a triggerable pen tip and at least one color setting. The device includes a timing module 1001, a determination module 1002, and a response module 1003, wherein:
[0126] The timing module 1001 is configured to start timing when a target color signal transmitted by the electronic pen is obtained; the target color signal is generated when the target color position and the pen tip of the electronic pen are triggered simultaneously;
[0127] The determination module 1002 is configured to determine, when the first coordinate information is acquired within a preset time period, that the coordinate information is an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to the first touch input;
[0128] The response module 1003 is configured to respond to the electronic pen triggering event on the touch screen according to the target color signal and the first coordinate information.
[0129] In one embodiment, the response module 1003 is further configured to determine a writing track according to the first coordinate information; determine a target color of the writing track according to the target color signal; and display the writing track on the touch screen according to the target color.
[0130] In one embodiment, the determination module 1002 is further configured to determine the target color signal as an interference signal if the first coordinate information is not acquired within a preset time period.
[0131] In one embodiment, the determination module 1002 is further used to obtain second coordinate information in response to a second touch operation on the touch screen when the target color signal is not obtained, and determine that the second coordinate information is a non-electronic pen trigger event; and respond to the non-electronic pen trigger event on the touch screen based on the second coordinate information.
[0132] In one embodiment, the response module 1003 is further configured to determine a touch trajectory according to the second coordinate information; and adjust display content on the touch screen according to the touch trajectory.
[0133] Each module in the above-mentioned touch screen response device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor of the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0134] Based on the same inventive concept, embodiments of the present application also provide a touch screen response device for implementing the aforementioned electronic pen response method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more electronic pen response device embodiments provided below can be found in the above-described limitations of the electronic pen response method and will not be further elaborated here.
[0135] In an exemplary embodiment, as shown in FIG11 , an electronic pen response device 1100 is provided. The device is applied to an electronic pen having a triggerable pen tip and at least one color setting, and the electronic pen is also equipped with an electronic device having a touch screen. The device includes: a determination module 1101 and a transmission module 1102, wherein:
[0136] A determination module 1101 is configured to determine a target color corresponding to the target color position when the target color position is triggered;
[0137] The transmission module 1102 is used to generate a target color signal corresponding to the target color when the pen tip is triggered, and transmit the target color signal to the electronic device; the target color signal is used to instruct the electronic device to start timing, and when the first coordinate information is obtained within a preset time period, the coordinate information is determined to be an electronic pen trigger event, and the electronic pen trigger event is responded to on the touch screen based on the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to the first touch operation.
[0138] In one embodiment, the electronic pen is provided with at least one independent non-self-locking button, each non-self-locking button corresponds to a color gear, and each non-self-locking button is provided with a color indicator light that matches the corresponding color gear;
[0139] The determining module 1101 is further configured to, when the non-self-locking key corresponding to the target color gear is pressed, determine the target color corresponding to the target color gear, and light up the color indicator light corresponding to the target color gear until the non-self-locking key corresponding to the new color gear is pressed;
[0140] The transmission module 1102 is further configured to generate a target color signal corresponding to a target color when the pen tip is triggered, and transmit the target color signal to the electronic device.
[0141] In one embodiment, the electronic pen is provided with a toggle switch, the toggle switch includes a plurality of toggle positions, each toggle position corresponds to a color position, and each toggle position is provided with a color mark that matches the corresponding color position; the method further includes:
[0142] The determination module 1101 is further configured to identify the currently triggered target color position when the pen tip is triggered; the target color position is determined based on the toggle position of the toggle switch, and the target color position is used to determine the target color;
[0143] The transmission module 1102 is also used to generate a target color signal corresponding to the target color and transmit the target color signal to the electronic device; when the electronic device receives the target color signal, it switches to a low power operation mode until the toggle switch changes its position.
[0144] Each module in the electronic pen response device described above may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a computer device memory in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0145] In an exemplary embodiment, a computer device is provided, which may be a terminal. A diagram of its internal structure may be shown in FIG12 . The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and an external device. The communication interface of the computer device is configured to communicate with an external terminal via wired or wireless communication, where the wireless communication may be achieved via Wi-Fi, a mobile cellular network, NFC (near-field communication), or other technologies. When executed by the processor, the computer program implements a touch screen response method. The display unit of the computer device is configured to produce a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.
[0146] Those skilled in the art will understand that the structure shown in FIG12 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0147] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: when a target color signal transmitted by an electronic pen is obtained, timing is started; the target color signal is generated when the electronic pen is in a target color position and the pen tip is triggered at the same time; when first coordinate information is obtained within a preset time period, the coordinate information is determined to be an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to a first touch input; and the electronic pen trigger event is responded to on the touch screen based on the target color signal and the first coordinate information.
[0148] In one embodiment, when the processor executes the computer program, it also implements the following steps: determining the writing track based on the first coordinate information; determining the target color of the writing track based on the target color signal; and displaying the writing track on the touch screen according to the target color.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: if the first coordinate information is not acquired within a preset time period, the target color signal is identified as an interference signal.
[0150] In one embodiment, when the processor executes the computer program, it further implements the following steps: when the target color signal is not obtained, in response to a second touch operation on the touch screen, obtaining second coordinate information, and determining that the second coordinate information is a non-electronic pen trigger event; and responding to the non-electronic pen trigger event on the touch screen based on the second coordinate information.
[0151] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: determining a touch trajectory according to the second coordinate information; and adjusting the display content on the touch screen according to the touch trajectory.
[0152] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when a target color signal transmitted by an electronic pen is obtained, timing is started; the target color signal is generated when the electronic pen is in a target color position and the pen tip is triggered at the same time; when first coordinate information is obtained within a preset time period, the coordinate information is determined to be an electronic pen trigger event; the first coordinate information is generated by the touch screen in response to a first touch input; and the electronic pen trigger event is responded to on the touch screen based on the target color signal and the first coordinate information.
[0153] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the writing track based on the first coordinate information; determining the target color of the writing track based on the target color signal; and displaying the writing track on the touch screen according to the target color.
[0154] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the first coordinate information is not obtained within a preset time period, the target color signal is identified as an interference signal.
[0155] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the target color signal is not obtained, in response to a second touch operation on the touch screen, second coordinate information is obtained, and the second coordinate information is determined to be a non-electronic pen trigger event; based on the second coordinate information, the non-electronic pen trigger event is responded to on the touch screen.
[0156] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a touch trajectory according to the second coordinate information; and adjusting the display content on the touch screen according to the touch trajectory.
[0157] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps: starting timing when a target color signal transmitted by an electronic pen is obtained; the target color signal is generated when the electronic pen is in a target color position and the pen tip is triggered simultaneously; when first coordinate information is obtained within a preset time period, determining that the coordinate information is an electronic pen trigger event; the first coordinate information is generated by a touch screen in response to a first touch input; and responding to the electronic pen trigger event on the touch screen based on the target color signal and the first coordinate information.
[0158] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the writing track based on the first coordinate information; determining the target color of the writing track based on the target color signal; and displaying the writing track on the touch screen according to the target color.
[0159] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: if the first coordinate information is not obtained within a preset time period, the target color signal is identified as an interference signal.
[0160] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the target color signal is not obtained, in response to a second touch operation on the touch screen, second coordinate information is obtained, and the second coordinate information is determined to be a non-electronic pen trigger event; based on the second coordinate information, the non-electronic pen trigger event is responded to on the touch screen.
[0161] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a touch trajectory according to the second coordinate information; and adjusting the display content on the touch screen according to the touch trajectory.
[0162] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0163] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0164] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0165] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.
Claims
1. A touch screen response method, characterized in that, Applied to an electronic device equipped with a touch screen, the electronic device is also equipped with an electronic pen, and the electronic pen is provided with a triggerable nib and at least one color gear; the method includes: When the target color signal transmitted by the electronic pen is obtained, start timing; the target color signal is generated when the electronic pen is in the target color gear and the nib is triggered; When the first coordinate information is obtained within a preset time period, respond on the touch screen according to the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to a contact operation.
2. The method according to claim 1, wherein The responding on the touch screen according to the target color signal and the first coordinate information includes: Determine the writing trajectory according to the first coordinate information; Determine the target color of the writing trajectory according to the target color signal; Display the writing trajectory on the touch screen according to the target color.
3. The method according to claim 1, wherein When the first coordinate information is not obtained within a preset time period, regard the target color signal as an interference signal that does not need to be responded to.
4. The method according to claim 1, characterized in that, The method further includes: When the target color signal is not obtained, in response to a contact operation on the touch screen, obtain second coordinate information; Respond on the touch screen according to the second coordinate information.
5. The method according to claim 4, characterized in that The responding on the touch screen according to the second coordinate information includes: Determine the touch trajectory according to the second coordinate information; Adjust the display content on the touch screen according to the touch trajectory.
6. The method according to claim 1, wherein The target color signal is an infrared light encoding signal or a radio encoding signal.
7. An electronic pen response method, characterized in that, Applied to an electronic pen with a triggerable nib and at least one color gear, and an electronic device that is used in conjunction with the electronic pen and is equipped with a touch screen; the method includes: When the target color gear and the nib are triggered, determine the target color corresponding to the target color gear, generate a target color signal corresponding to the target color, and transmit the target color signal to the electronic device; the target color signal is used to instruct the electronic device to start timing, and when the first coordinate information is obtained within a preset time period, respond on the touch screen according to the target color signal and the first coordinate information; the first coordinate information is generated by the touch screen in response to a contact operation.
8. The method according to claim 7, wherein The electronic pen is provided with at least one independent non-self-locking button, each non-self-locking button corresponds to a color gear, and each non-self-locking button is provided with a color indicator light that matches the corresponding color gear; the method further includes: When the non-self-locking button corresponding to the target color gear is pressed, determine the target color corresponding to the target color gear, turn on the color indicator light corresponding to the target color gear until the non-self-locking button corresponding to the new color gear is pressed; When the nib is triggered, generate the target color signal corresponding to the target color, and transmit the target color signal to the electronic device.
9. The method according to claim 7, characterized in that The electronic pen is provided with a toggle switch, the toggle switch includes a plurality of toggle positions, each toggle position corresponds to a color gear, and each toggle position is provided with a color identifier matching the corresponding color gear; The method further includes: When the pen tip is triggered, identifying the currently triggered target color gear; The target color gear is determined according to the toggle position of the toggle switch, and the target color gear is used to determine the target color; Generating a target color signal corresponding to the target color, and transmitting the target color signal to the electronic device; When the electronic device receives the target color signal, switching to the low-power working mode until the toggle position of the toggle switch changes.
10. The method according to claim 7, wherein The target color signal is an infrared light coding signal or a radio coding signal.
11. A touch screen response device, characterized in that, Applied to an electronic device with a touch screen, the electronic device is also equipped with an electronic pen, and the electronic pen is provided with a triggerable pen tip and at least one color gear; The device includes: A timing module, configured to start timing when a target color signal transmitted by the electronic pen is obtained; The target color signal is generated by the electronic pen when the target color gear and the pen tip are triggered; A determination module, configured to determine that the first coordinate information is an electronic pen trigger event when the first coordinate information is obtained within a preset duration; The first coordinate information is generated by the touch screen in response to a first touch input; A response module, configured to respond to the electronic pen trigger event on the touch screen according to the target color signal and the first coordinate information.
12. A touch control system, characterized in that, The system includes an electronic device with a touch screen, and an electronic pen with a triggerable pen tip and at least one color gear; The electronic pen is configured to determine a target color corresponding to the target color gear when the target color gear and the pen tip are triggered, generate a target color signal corresponding to the target color, and transmit the target color signal to the electronic device; The electronic device is configured to start timing when the target color signal transmitted by the electronic pen is obtained; when the first coordinate information is obtained within a preset duration, make a response on the touch screen according to the target color signal and the first coordinate information; The first coordinate information is generated by the touch screen in response to a contact operation.
13. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Stroke display output method and apparatus for writing system
CN106547377A
Stylus and color information transmission method
CN107850955A
Handwriting display method and device, writing equipment and touch equipment
CN109407863A
Mistaken touch prevention method and device, equipment and storage medium
CN111488076A
Writing system, writing device and writing method of electronic whiteboard
CN112596634A