Using method and device based on touch pen
By identifying the trigger data of the first area where the touch film overlaps the cut surface, the problem of low accuracy in the use of stylus in the prior art is solved, and higher operation recognition accuracy and better user experience are achieved.
Patent Information
- Application Number
- CN202510064943.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-08-09
- Filing Date
- 2023-08-03
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2043-08-03
AI Technical Summary
The existing stylus-based usage methods are relatively low, which affects the user's experience of using stylus to control electronic devices.
By identifying the trigger data of the first area where the touch film overlaps the cut surface, the accuracy of operation recognition is improved, thereby improving the user's experience of controlling the electronic device with a stylus pen.
Improve the accuracy of operation recognition and enhance the user experience of using a stylus to control electronic devices.
Smart Images

Figure CN120045078A_ABST
Abstract
Description
[0001] This application is a divisional application. The parent application is a patent application for an invention named "Method and Device for Using a Stylus", with the application number 202380025107.9, the original application date of August 3, 2023. It also claims the priority of a Chinese patent application submitted to the China National Intellectual Property Administration on August 9, 2022, with the application number 202210951471.5 and the application name "Method and Device for Using a Stylus", and the entire content of which is incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technologies, and in particular, to a method and device for using a stylus. Background Art
[0003] With the popularization and development of the Internet, people's functional requirements for electronic devices have become increasingly diverse. For example, in order to simplify the way of using electronic devices, a stylus has gradually become an important tool for inputting data into an electronic device or controlling the electronic device.
[0004] Generally, a touch film is wrapped around the position of the stylus near the pen tip, so that the stylus can control functions such as an electronic device based on the triggering operation of the user on the touch film.
[0005] However, the accuracy of the above-mentioned method for using a stylus is relatively low, which affects the user experience of controlling an electronic device based on the stylus. Summary of the Invention
[0006] An embodiment of this application provides a method and device for using a stylus, which can improve the accuracy of operation recognition by identifying the trigger data of the first area where the touch film overlaps with the section plane, and further improve the user experience of using the stylus to control an electronic device.
[0007] In a first aspect, an embodiment of this application provides a method for using a stylus. A part or all of the pen body of the stylus is surrounded by a touch film, a section plane is provided at the pen body of the stylus, and the touch film includes a first area. The first area is smaller than the pen body area covered by the touch film and is located at the position of the section plane. The method includes: when the stylus receives a first operation on the first area, the stylus identifies the first operation to obtain an identification result, and controls a target device based on the identification result. A communication connection is established between the target device and the stylus. In this way, the accuracy of operation recognition can be improved by identifying the trigger data of the first area where the touch film overlaps with the section plane, and further improve the user experience of using the stylus to control the target device.
[0008] Wherein, the first region may be the preset region described in the embodiments of the present application; the target device may be the electronic device described in the embodiments of the present application.
[0009] In a possible implementation, when the first operation is a sliding operation away from the tip position of the stylus, the recognition result is used to indicate that the target device flips to the next page; or, when the first operation is a sliding operation towards the tip position of the stylus, the recognition result is used to indicate that the target device flips to the previous page. In this way, the stylus can control the target device to flip pages according to the user's sliding operation on the first region, avoiding accidental touches when the user touches other positions of the touch film, thereby improving the accuracy of the user using the stylus to control the target device.
[0010] In a possible implementation, the method further includes: the stylus obtains the status information of the stylus; the status information of the stylus is used to indicate the tip orientation of the stylus; the stylus recognizes the first operation to obtain a recognition result and controls the target device based on the recognition result, including: the stylus recognizes the first operation and the status information to obtain a recognition result and controls the target device based on the recognition result. In this way, the stylus can jointly control the target device to flip pages according to the tip orientation of the stylus and the sliding operation on the first region, enabling the user to flexibly control the target device using the stylus.
[0011] In a possible implementation, when the status information meets the preset condition and the first operation is a sliding operation away from the tip position of the stylus, the recognition result is used to indicate that the target device flips to the next page; or, when the status information does not meet the preset condition and the first operation is a sliding operation away from the tip position of the stylus, the recognition result is used to indicate that the target device flips to the previous page; or, when the status information meets the preset condition and the first operation is a sliding operation towards the tip position of the stylus, the recognition result is used to indicate that the target device flips to the previous page; or, when the status information does not meet the preset condition and the first operation is a sliding operation towards the tip position of the stylus, the recognition result is used to indicate that the target device flips to the next page. In this way, the stylus can jointly control the target device to flip pages according to the tip orientation of the stylus and the sliding operation on the first region, enabling the user to flexibly control the target device using the stylus.
[0012] Wherein, the preset condition may be that the tip of the stylus is upward as described in the embodiments of the present application; not meeting the preset condition may be that the tip of the stylus is downward as described in the embodiments of the present application.
[0013] In a possible implementation, the method further includes: the stylus switches from the first mode to the second mode; wherein, in the first mode, the stylus can respond to trigger operations at any position of the touch film; in the second mode, the stylus can respond to trigger operations in the first area and does not respond to trigger operations in the second area other than the first area in the touch film; the stylus receives a first operation for the first area, including: the stylus in the second mode receives a first operation for the first area. In this way, before controlling the target device, the stylus can switch from the first mode to the second mode and receive the user's operation for the first area in the second mode, avoiding accidental touches when receiving the user's first operation for the first area in the first mode.
[0014] Wherein, the first mode may be the writing mode described in the embodiments of the present application, and the second mode may be the page-turning pen mode described in the embodiments of the present application.
[0015] In a possible implementation, the stylus includes a touch integrated circuit board IC and a micro control unit MCU, and the method further includes: the MCU sends a first instruction to the touch IC; the first instruction is used to instruct the stylus to switch from the first mode to the second mode; the touch IC obtains first trigger data corresponding to the first operation based on the second mode and sends the first trigger data to the MCU; the stylus recognizes the first operation, including: the MCU recognizes the first trigger data. In this way, the touch IC in the stylus can only obtain the first trigger operation corresponding to the first operation according to the second mode, reducing the memory occupancy caused by obtaining trigger operations in the second area.
[0016] In a possible implementation, the stylus includes a touch IC and an MCU, and the method further includes: the touch IC obtains second trigger data and sends the second trigger data to the MCU; wherein, the second trigger data is trigger data for the touch film, and the second trigger data includes first trigger data corresponding to the first operation; the stylus recognizes the first operation, including: the MCU recognizes the first trigger data based on the second mode. In this way, the MCU in the stylus can receive the second trigger data sent by the touch IC and screen out the first trigger data through the second mode, enabling the stylus to improve the accuracy of operation recognition based on the first trigger data.
[0017] In a possible implementation, the stylus recognizes the first operation to obtain a recognition result and controls the target device based on the recognition result, including: the stylus recognizes the first operation to obtain a recognition result and controls the movement of the cursor in the target device and / or controls the change of the page of the target device based on the recognition result. In this way, the stylus can not only realize page turning of the target device, but also control the movement of the cursor and the change of the page of the target device, enhancing the flexibility of controlling the target device.
[0018] In a second aspect, an embodiment of the present application provides a device for using a stylus. A touch film surrounds part or all of the body of the stylus. A cut surface is provided at the body of the stylus. The touch film includes a first area, the first area is smaller than the area of the body of the stylus covered by the touch film and the first area is located at the position of the cut surface. When the processing unit receives a first operation on the first area, the recognition unit is configured to recognize the first operation to obtain a recognition result, and the processing unit is configured to control the target device based on the recognition result. A communication connection is established between the target device and the stylus.
[0019] In a possible implementation manner, when the first operation is a sliding operation away from the tip position of the stylus, the recognition result is used to indicate that the target device flips down the page; or when the first operation is a sliding operation towards the tip position of the stylus, the recognition result is used to indicate that the target device flips up the page.
[0020] In a possible implementation manner, the processing unit is further configured to obtain the status information of the stylus; the status information of the stylus is used to indicate the orientation of the tip of the stylus; the recognition unit is further configured to recognize the first operation and the status information to obtain a recognition result, and the processing unit is further configured to control the target device based on the recognition result.
[0021] In a possible implementation manner, when the status information meets a preset condition and the first operation is a sliding operation away from the tip position of the stylus, the recognition result is used to indicate that the target device flips down the page; or when the status information does not meet the preset condition and the first operation is a sliding operation away from the tip position of the stylus, the recognition result is used to indicate that the target device flips up the page; or when the status information meets the preset condition and the first operation is a sliding operation towards the tip position of the stylus, the recognition result is used to indicate that the target device flips up the page; or when the status information does not meet the preset condition and the first operation is a sliding operation towards the tip position of the stylus, the recognition result is used to indicate that the target device flips down the page.
[0022] In a possible implementation manner, the processing unit is further configured to switch from a first mode to a second mode; wherein, in the first mode, the stylus can respond to a triggering operation at any position of the touch film; in the second mode, the stylus can respond to a triggering operation in the first area and does not respond to a triggering operation in a second area other than the first area in the touch film; the processing unit is further configured to receive a first operation on the first area in the second mode.
[0023] In a possible implementation, the stylus includes a touch integrated circuit board IC, a micro control unit MCU, and a processing unit. The processing unit is further configured to send a first instruction to the touch IC. The first instruction is used to instruct the stylus to switch from a first mode to a second mode. The processing unit is further configured to obtain first trigger data corresponding to a first operation based on the second mode and send the first trigger data to the MCU. The processing unit is further configured to identify the first trigger data.
[0024] In a possible implementation, the stylus includes a touch IC and an MCU. The processing unit is further configured to obtain second trigger data and send the second trigger data to the MCU. The second trigger data is trigger data for a touch film, and the second trigger data includes the first trigger data corresponding to the first operation. The processing unit is further configured to identify the first trigger data based on the second mode.
[0025] In a possible implementation, the recognition unit is further configured to recognize the first operation to obtain a recognition result. The processing unit is further configured to control the movement of the cursor in the target device and / or control the change of the page of the target device based on the recognition result.
[0026] In a third aspect, an embodiment of the present application provides a stylus, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the stylus is caused to execute the method described in the first aspect or any one of the possible implementation manners in the first aspect.
[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the computer is caused to execute the method described in the first aspect or any one of the possible implementation manners in the first aspect.
[0028] In a fifth aspect, an embodiment of the present application provides a computer program product including a computer program. When the computer program is run, the computer is caused to execute the method described in the first aspect or any one of the possible implementation manners in the first aspect.
[0029] In a sixth aspect, an embodiment of the present application provides a system, including: a stylus and a target device. The target device is communicatively connected to the stylus. A touch film surrounds a part or all of the body of the stylus. A section is provided at the body of the stylus. The touch film includes a first area. The first area is smaller than the area of the body of the stylus covered by the touch film and the first area is located at the section position. The stylus is configured to: when receiving a first operation on the first area, recognize the first operation to obtain a recognition result; the stylus is further configured to: send the recognition result to the target device; the target device is configured to: receive the recognition result and control the target device based on the recognition result.
[0030] It should be understood that the technical solutions of the third to sixth aspects of the present application correspond to those of the first aspect of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manners are similar, which will not be elaborated herein. Description of the Drawings
[0031] Figure 1 A schematic diagram of a scenario provided by an embodiment of the present application;
[0032] Figure 2 A schematic diagram of a touch film of a stylus provided by an embodiment of the present application;
[0033] Figure 3 A schematic diagram of a holding posture provided by an embodiment of the present application;
[0034] Figure 4 A schematic diagram of a hardware structure of a stylus provided by an embodiment of the present application;
[0035] Figure 5 A schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application;
[0036] Figure 6 A schematic diagram of a touch film of another stylus provided by an embodiment of the present application;
[0037] Figure 7 A schematic diagram of a flowchart of a method for using a stylus provided by an embodiment of the present application;
[0038] Figure 8 A schematic diagram of an interface for enabling a page-turning pen mode provided by an embodiment of the present application;
[0039] Figure 9 A schematic diagram of a scenario for simulating a laser pen based on a stylus provided by an embodiment of the present application;
[0040] Figure 10 A schematic diagram of a scenario for controlling page turning based on a laser pen provided by an embodiment of the present application;
[0041] Figure 11 A schematic diagram of another scenario for controlling page turning based on a stylus provided by an embodiment of the present application;
[0042] Figure 12 A schematic diagram of a structure of a device for using a stylus provided by an embodiment of the present application;
[0043] Figure 13 A schematic diagram of a hardware structure of another stylus provided by an embodiment of the present application. Detailed Embodiments
[0044] For the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and do not limit their order. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and the terms such as "first" and "second" do not necessarily limit that they are different.
[0045] It should be noted that in the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0046] In the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (item)" or its similar expression below refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0047] Exemplarily, Figure 1 FIG. is a schematic diagram of a scenario provided for an embodiment of the present application. In Figure 1 the corresponding embodiment, an electronic device is taken as an example of a tablet computer for illustration, and this example does not limit the embodiments of the present application.
[0048] As Figure 1 shown, this scenario may include an electronic device 200 and a stylus 100. The stylus 100 can be used to input data into the electronic device 200, or can also be used to control the electronic device 200.
[0049] Under normal circumstances, both the stylus 100 and the electronic device 200 can support two working modes, such as a writing mode and a page-turning pen mode. Among them, the writing mode can be the mode that the stylus 100 defaults to enter. In the writing mode, the user can use the stylus 100 to write on the touch screen of the electronic device 200, thereby realizing the input of data into the electronic device 200. In the page-turning pen mode, based on the operation that the user holds the stylus 100 and slides up and down (or left and right) in the touch film, the page-turning control of the electronic device 200 can be realized.
[0050] It can be understood that the touch film can be a component that surrounds the front end of the stylus and is used to receive the user's triggering operation. For example, this touch film can be used to receive operations such as the user sliding up and down (or left and right) in the page-turning pen mode.
[0051] Exemplarily, Figure 2 is a schematic diagram of a touch film of a stylus provided by an embodiment of the present application. As Figure 2 shown in a of, there is a touch film around the front end of the stylus near the pen tip, and this touch film can be Figure 2 the position corresponding to the gray area shown in a of. As Figure 2 shown in b of, when the touch film is unfolded, this touch film can be a rectangular area with a width of W and a height of H.
[0052] Under normal circumstances, after the user triggers the touch film, the stylus can receive and identify the operation data at any position in the touch film. For example, taking the example that in the page-turning pen mode, the user realizes the page-turning control of the electronic device based on the stylus, the holding posture when the user triggers the stylus will be exemplified. Exemplarily, Figure 3 is a schematic diagram of a holding posture provided by an embodiment of the present application. It can be understood that the stylus can realize the page-turning control of the electronic device based on the recognition of any one of the holding postures of the touch film in Figure 3 a of, Figure 3 b of or Figure 3 c of.
[0053] However, since the holding postures of the user when triggering in the touch film vary greatly, it is easy for the stylus to misidentify the triggering of the user's palm or multiple fingers on the touch film as a page-turning operation in the page-turning pen mode, resulting in a low accuracy rate of the stylus in identifying the triggering operation, and further affecting the user experience of controlling the electronic device based on the stylus.
[0054] In view of this, an embodiment of the present application provides a method for using a stylus. A touch film is wound around the position near the tip of the stylus, and the stylus receives a first operation on the touch film; in response to the first operation, the stylus recognizes the operation in the first area of the touch film to obtain a recognition result, so that the stylus can avoid accidental touches caused when the user touches other positions of the touch film based on the recognition of the operation in the first area, thereby improving the accuracy of the user using the stylus to control the electronic device. Among them, the first area is smaller than the area corresponding to the touch film.
[0055] Exemplarily, Figure 4 FIG. is a schematic hardware structure diagram of a stylus provided by an embodiment of the present application.
[0056] Among them, the stylus can also be called a handwriting pen, a capacitive pen, an inductive pen, etc. As Figure 4 shown, the stylus 100 can have a processor 110. The processor 110 can include storage and processing circuits for supporting the operation of the stylus 100. The storage and processing circuits can include storage devices such as non-volatile memories (for example, flash memories or other electrically programmable read-only memories configured as solid-state drives), volatile memories (for example, static or dynamic random access memories), etc. The processing circuit in the processor 110 can be used to control the operation of the stylus 100. The processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, or application-specific integrated circuits, etc.
[0057] It can be understood that the processor 110 can include modules such as a touch integrated circuit board (IC) and a microcontroller unit (MCU).
[0058] Among them, the touch IC can be used to implement the acquisition of trigger operations in the touch film; the MCU is used to determine the working mode of the stylus and recognize the trigger operation based on the working mode.
[0059] The stylus 100 can include one or more sensors. For example, the sensor can include a pressure sensor 120. The pressure sensor 120 can be arranged at the writing end of the stylus 100. Of course, the pressure sensor 120 can also be arranged in the pen barrel 20 of the stylus 100. In this way, after one end of the tip of the stylus 100 is stressed, the other end of the tip moves to apply the force to the pressure sensor 120. In one embodiment, the processor 110 can adjust the line thickness when the tip of the stylus 100 writes according to the pressure magnitude detected by the pressure sensor 120.
[0060] The sensor may also include an inertial sensor 130. The inertial sensor 130 may include a three-axis accelerometer and a three-axis gyroscope sensor, and / or other components for measuring the movement of the stylus 100. For example, a three-axis magnetometer may be included in the sensor in the configuration of a nine-axis inertial sensor. In the embodiments of the present application, the gyroscope sensor may be used to detect the tip orientation of the stylus 100. For example, the gyroscope sensor may be used to detect the tip orientation of the stylus and states such as the tip of the stylus facing downwards.
[0061] The sensor may also include additional sensors, such as a temperature sensor, an ambient light sensor, a light-based proximity sensor, a contact sensor, a magnetic sensor, a pressure sensor, and / or other sensors.
[0062] The stylus 100 may include a status indicator 140 such as a light-emitting diode and a button 150. The status indicator 140 is used to prompt the user about the status of the stylus 100. The button 150 may include a mechanical button and a non-mechanical button, and the button 150 may be used to collect button press information from the user.
[0063] In the embodiments of the present application, the stylus 100 may include one or more electrodes 160. One of the electrodes 160 may be located at the writing end of the stylus 100, and one of the electrodes 160 may be located inside the tip. Reference may be made to the above related descriptions.
[0064] The stylus 100 may include a sensing circuit 170. The sensing circuit 170 can sense the capacitive coupling between the electrode 160 and the drive lines of the capacitive touch sensor panel that the stylus 100 interacts with. The sensing circuit 170 may include an amplifier for receiving the capacitance readings from the capacitive touch sensor panel, a clock for generating a demodulation signal, a phase shifter for generating a phase-shifted demodulation signal, a mixer for demodulating the capacitance readings using the in-phase demodulation frequency component, and a mixer for demodulating the capacitance readings using the quadrature demodulation frequency component, etc. The result of the mixer demodulation can be used to determine the amplitude proportional to the capacitance, so that the stylus 100 can sense the contact with the capacitive touch sensor panel.
[0065] It can be understood that, according to actual requirements, the stylus 100 may include a microphone, a speaker, an audio generator, a vibrator, a camera, a data port, and other devices. The user can control the operations of the stylus 100 and the electronic device 200 that the stylus 100 interacts with by providing commands using these devices, and receive status information and other outputs.
[0066] The processor 110 can be used to run software that controls the operations of the stylus 100 on the stylus 100. During the operation of the stylus 100, the software running on the processor 110 can process sensor inputs, button inputs, and inputs from other devices to monitor the movement of the stylus 100 and other user inputs. The software running on the processor 110 can detect user commands and can communicate with the electronic device 200.
[0067] To support wireless communication between the stylus 100 and the electronic device 200, the stylus 100 can include a wireless module. Figure 4 Taking the wireless module as the Bluetooth module 180 as an example for illustration. The wireless module can also be a WI-FI hotspot module, a WI-FI peer-to-peer module, etc. The Bluetooth module 180 can include a radio frequency transceiver, such as a transceiver. The Bluetooth module 180 can also include one or more antennas. The transceiver can use the antenna to transmit and / or receive wireless signals, and the wireless signals can be Bluetooth signals, wireless local area network signals, remote signals such as cellular phone signals, near field communication signals, or other wireless signals based on the type of the wireless module.
[0068] The stylus 100 can also include a charging module 190, and the charging module 190 can support the charging of the stylus 100 and provide power to the stylus 100.
[0069] It can be understood that the electronic device 200 in the embodiments of the present application can be referred to as a user equipment (UE), a terminal, etc. For example, the electronic device 200 can be a tablet computer (portable android device, PAD), a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device, a vehicle-mounted device, or a wearable device, a virtual reality (VR) electronic device, an augmented reality (AR) electronic device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc., a mobile terminal or a fixed terminal with a touch screen. The form of the electronic device in the embodiments of the present application is not specifically limited.
[0070] Exemplarily, Figure 5Schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.
[0071] Referring to Figure 5 , the electronic device 200 may include multiple subsystems that cooperate to perform, coordinate, or monitor one or more operations or functions of the electronic device 202. The electronic device 200 includes a processor 210, an input surface 220, a coordination engine 230, a power subsystem 240, a power connector 250, a wireless interface 260, and a display 270.
[0072] Exemplarily, the coordination engine 230 may be used to communicate and / or process data with other subsystems of the electronic device 200; communicate and / or trade data with the stylus 100; measure and / or obtain the output of one or more analog or digital sensors (such as touch sensors); measure and / or obtain the output of one or more sensor nodes of a sensor node array (such as an array of capacitive sensing nodes); receive and locate the tip signal and ring signal from the stylus 100; locate the stylus 100 based on the positions of the tip signal crossing area and the ring signal crossing area, etc.
[0073] The processor 210 may be used to receive control instructions from the stylus, and the control instructions may be used to instruct the electronic device 200 to perform corresponding controls. In the embodiments of the present application, when the stylus receives a trigger operation of the user in a preset area, the stylus may identify the trigger operation and send the control instruction corresponding to the identification result to the electronic device 200, so that the electronic device 200 can execute the control instruction. For example, the electronic device 200 may perform page turning control according to the control instruction.
[0074] Generally, the processor 210 may be configured to execute, coordinate, and / or manage the functions of the electronic device 200. Such functions may include but are not limited to: communicating and / or trading data with other subsystems of the electronic device 200, communicating and / or trading data with the stylus 100, performing data communication and / or trading data through a wireless interface, performing data communication and / or trading data through a wired interface, facilitating power exchange through wireless (such as inductive, resonant, etc.) or wired interfaces, receiving the positions and angular positions of one or more styli, etc.
[0075] The processor 210 may be implemented as any electronic device capable of processing, receiving, or sending data or instructions. For example, the processor may be a microprocessor, a central processing unit, an application-specific integrated circuit, a field-programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single-core or multi-core processor.
[0076] During use, the processor 210 may be configured to access a memory storing instructions. The instructions may be configured to cause the processor to execute, coordinate, or monitor one or more operations or functions of the electronic device 200.
[0077] The instructions stored in the memory may be configured to control or coordinate the operation of other components of the electronic device 200, such components including but not limited to: another processor, analog or digital circuitry, volatile or non-volatile memory modules, a display, a speaker, a microphone, a rotary input device, a button or other physical input devices, a biometric authentication sensor and / or system, a force or touch input / output component, a communication module (such as a wireless interface and / or a power connector), and / or a haptic feedback device.
[0078] The memory may also store electronic data that can be used by the stylus or the processor. For example, the memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data, data structures, or databases for various modules, files or configurations related to detecting tip signals and / or ring signals, etc. The memory may be configured as any type of memory. For example, the memory may be implemented as a random access memory, a read-only memory, a flash memory, a removable memory, other types of storage elements, or a combination of such devices.
[0079] In an embodiment of the present application, the memory may also store the stylus connected to the electronic device 200, the corresponding working mode of the stylus, and the usage duration of the stylus in different working modes, so that when the electronic device establishes a connection with the stylus next time, it can send the working mode with the longest usage duration to the stylus, avoiding frequent switching of the working mode of the stylus.
[0080] The electronic device 200 further includes a power subsystem 240. The power subsystem 240 may include a battery or other power source. The power subsystem 240 may be configured to supply power to the electronic device 200. The power subsystem 240 may also be coupled to a power connector 250.
[0081] The electronic device 200 further includes a wireless interface 260 to facilitate electronic communication between the electronic device 200 and the stylus 100. In an embodiment of the present application, the electronic device 200 may be configured to communicate via a low energy Bluetooth communication interface. For example, the electronic device 200 may receive an identification result from the stylus based on the wireless interface 260.
[0082] In some embodiments, the electronic device 200 also communicates with the stylus 100 using a near field communication interface. In other examples, the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device, or platform.
[0083] The wireless interface 260, whether it is the communication interface between the electronic device 200 and the stylus 100 or another communication interface, can be implemented as one or more wireless interfaces, Bluetooth interfaces, near-field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, Wi-Fi interfaces, TCP / IP interfaces, network communication interfaces, optical interfaces, acoustic interfaces, or any conventional communication interface.
[0084] The electronic device 200 further includes a display 270. The display 270 can be located behind the input surface 220 or can be integrated therewith. The processor 210 can use the display 270 to present information to the user. In many cases, the processor 210 uses the display 270 to present an interface with which the user can interact. In many cases, the user manipulates the stylus 100 to interact with the interface. In the embodiments of the present application, the display 270 can display the interface after being controlled by the stylus.
[0085] It will be apparent to those skilled in the art that some of the specific details presented above regarding the electronic device 200 may not be required for practicing a particular embodiment or its equivalents. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. In appropriate cases, some sub-modules can be implemented as software or hardware. Therefore, it should be understood that the above description is not intended to be exhaustive or to limit the present disclosure to the precise forms herein. On the contrary, many modifications and variations will be apparent to those of ordinary skill in the art in light of the above teachings.
[0086] The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. These several specific embodiments below can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0087] In the embodiments of the present application, the touch film around the front end of the stylus is illustrated by way of example. Exemplarily, Figure 6 is a schematic diagram of the touch film of another stylus provided by the embodiments of the present application. In Figure 6 the corresponding embodiment, at least one section 601 can be provided on the body of the stylus, and a preset area 602 (or also referred to as the first area) is provided at a position close to the nib of the section 601. The preset area 602 corresponding to the position of the section 601 can be used to receive the triggering operation of the user on the preset area 602 when the stylus is in the page-turning pen mode.
[0088] Among them, the cut surface is a flat surface without curvature, which extends longitudinally along the body of the stylus. The cut surface can indicate the position of the body of the stylus. When the user uses the stylus, they can quickly distinguish the cut surface area and the non-cut surface area only by holding it.
[0089] As Figure 6 shown in a of Figure 6 , the stylus can divide a touch film with a width of W and a height of H into multiple channels of equal size of 6×6, and based on the trigger operation of the user on a preset area 602 of equal size of 1×4 at the cut surface shown in b of
[0090] , identify the trigger operation in the page-turning pen mode, and then control the electronic device using the recognition result.
[0091] In possible implementation manners, the size of the preset area 602 at the cut surface position can also be 1×3, 1×5, or 1×6, etc.
[0092] It can be understood that the preset area can be understood as a long strip area set at the cut surface of the stylus body. The size of the preset area can be related to the size of the grid caused by the division of the touch film, the size of the cut surface, and the size of the finger. For example, when the touch film is divided into a 12×12 grid, the size of the preset area 602 can be 2×6, 2×7, or 3×7, etc. This application embodiment does not limit this.
[0093] It can be understood that for the 6×6 size division of the touch film and the corresponding 1×4 size of the preset area, it is only an example, and this example does not constitute a limitation to the embodiments of this application. For example, when the touch film is divided into multiple channels of 5×5, the size of the preset area can also be 1×3, 1×4, or 1×5, etc.; or when the touch film is divided into multiple channels of 7×7, the size of the preset area can also be 1×3, 1×4, 1×5, 1×6, or 1×7, etc. This application embodiment does not limit this.
[0094] It can be understood that in order to avoid the recognition of the trigger operation at any position in the touch film by the stylus, resulting in a low accuracy rate of recognizing the user's trigger operation, the stylus can recognize the trigger operation on the preset area at the cut surface position in the touch film and ignore the trigger operations at other positions in the touch film except the preset area, reduce the mis-touch situation, and thus improve the accuracy of the stylus in recognizing the trigger operation.
[0095] In Figure 6Based on the corresponding embodiments, the embodiments of the present application provide a method for using a stylus. Exemplarily, Figure 7 It is a schematic flowchart of a method for using a stylus provided by the embodiments of the present application. In Figure 7 the corresponding embodiment, the method for using the stylus may involve an electronic device and a stylus. Taking the electronic device as a tablet and the stylus including a touch IC and an MCU as an example for illustration, this example does not limit the embodiments of the present application.
[0096] As Figure 7 shown, the method for using the stylus may include the following steps:
[0097] S701. The electronic device establishes a communication connection with the stylus.
[0098] Among them, between the stylus and the electronic device, they can be interconnected through a communication network to achieve the interaction of wireless signals. The communication network can be but is not limited to: short-range communication networks such as WI-FI hotspot network, WI-FI peer-to-peer (P2P) network, Bluetooth network, zigbee network, or near field communication (NFC) network, and the embodiments of the present application do not limit this.
[0099] It can be understood that in the embodiments of the present application, the example will be given based on the Bluetooth connection between the stylus and the electronic device.
[0100] S702. The electronic device turns on the page-turning pen mode.
[0101] It can be understood that since the stylus defaults to the writing mode when it is turned on, the page-turning pen mode can be turned on through the triggering operation of the user on the electronic device.
[0102] Exemplarily, Figure 8 It is a schematic diagram of an interface for turning on the page-turning pen mode provided by the embodiments of the present application.
[0103] When the electronic device receives the operation of the user to open the setting function, the electronic device can display the interface as shown in Figure 8 a in. As Figure 8The interface shown as a in [description], which may include: a text box 801 for searching setting items, a control for viewing account information, a control for setting WLAN, a control for setting Bluetooth, a control for setting mobile network, a control for viewing the super terminal, etc. Among them, the account information may be 1234567XXXX; the operation for the user to open the setting function may be the triggering operation of the user on the control corresponding to the setting function on the desktop of the electronic device, or may also be the triggering operation of the user on the thumbnail corresponding to the setting function in the multitasking background interface of the electronic device, or may also be a voice operation, etc., which is not limited in the embodiments of the present application. Among them, the triggering operation may be a click operation, a long-press operation, a swipe operation, a voice operation or other gesture operations, etc., which is not limited in the embodiments of the present application.
[0104] As Figure 8 shown as a in [description], when the electronic device receives the user's input of searching for "demonstration page-turning pen mode" in the text box 801 for searching setting items, the electronic device may open the function interface corresponding to the delayed page-turning pen mode and display as Figure 8 shown as b in [description]. As Figure 8 shown as b in [description], this interface may include: a control 802 for turning on the page-turning pen mode, and a prompt message for turning on the page-turning pen, and the prompt message may be displayed as: after turning on the page-turning pen mode, the touch pen can be used to control the electronic device to achieve functions such as page turning.
[0105] In the interface shown as b in Figure 8 [description], when the page-turning pen mode is in the off state and the electronic device receives the triggering operation of the user on the control 802 for turning on the page-turning pen mode, the electronic device may execute the steps shown in S703.
[0106] In possible implementation manners, the touch pen may also turn on the page-turning pen mode based on the triggering operation of the user on the touch pen in the writing mode. For example, the touch pen may be switched from the writing mode to the page-turning pen mode based on the user's multiple tapping operations on the touch film, or based on the user's long-time pressing or multiple pressing operations on the tip of the touch pen, etc., and then the touch pen executes the steps shown in S703.
[0107] S703: The electronic device sends a message for instructing the touch pen to switch to the page-turning pen mode to the touch pen.
[0108] Exemplarily, in the case where the electronic device and the touch pen are communicatively connected based on Bluetooth, the electronic device may send the message for instructing the touch pen to switch to the page-turning pen mode to the touch pen based on Bluetooth or other means. Accordingly, the touch pen may receive the message sent by the electronic device for instructing the touch pen to switch to the page-turning pen mode.
[0109] S704. When the stylus receives a triggering operation from the user on the touch film, the stylus identifies the triggering operation at a preset area in the touch film to obtain an identification result.
[0110] In the embodiments of the present application, when the stylus receives a triggering operation from the user on the touch film, the stylus can identify the triggering operation at a preset area in the touch film based on the following two methods.
[0111] In one implementation, when the stylus receives a message from the electronic device for instructing the stylus to switch to the page-turning pen mode, the MCU in the stylus can send an instruction message containing the page-turning pen mode to the touch IC, instructing the touch IC to only receive the triggering operation corresponding to the preset area. Further, the touch IC can send the triggering data corresponding to the triggering operation received within the preset area to the MCU, and the MCU performs identification to obtain an identification result. Among them, the triggering data may include: the position corresponding to the triggering operation, and the change in capacitance value during triggering, etc.
[0112] Among them, the touch IC can, according to the instruction message for instructing the page-turning pen mode, only start some channels corresponding to the preset area to receive the triggering operation, so that the touch IC can receive the triggering operation corresponding to the preset area and obtain the triggering data corresponding to the triggering operation.
[0113] It can be understood that even if the user triggers an area outside the preset area in the touch film, the touch IC cannot recognize the user's triggering operation.
[0114] In another implementation, the touch IC can normally receive the triggering operation from the user at any position on the touch film and send the triggering data corresponding to the triggering operation to the MCU; the MCU can, based on the received message for instructing the stylus to switch to the page-turning pen mode, identify the triggering data corresponding to the preset area to obtain an identification result. Or it can also be understood that the MCU can filter out the triggering data outside the preset area in the touch film.
[0115] Among them, the touch IC can send the triggering data and the channel corresponding to the triggering data to the MCU together, so that the MCU can, according to the message for instructing the stylus to switch to the page-turning pen mode, identify the triggering data at the channel where the preset area is located to obtain an identification result.
[0116] Among them, the meaning of the preset area can be referred to Figure 6 the description in the corresponding embodiments and will not be elaborated here.
[0117] S705. The stylus sends a message for instructing the identification result to the electronic device.
[0118] Exemplarily, the stylus can also send the message for indicating the recognition result to the electronic device in a Bluetooth-based manner. Accordingly, the electronic device can receive the recognition result sent by the stylus.
[0119] S706. The electronic device controls the electronic device based on the recognition result.
[0120] Among them, in the page-turning pen mode, the embodiments of the present application can provide multiple control methods of the stylus for the electronic device. For example, the user can simulate a laser pointer based on the triggering operation on the stylus, and display a laser dot on the electronic device (see Figure 9 the corresponding embodiment); or, the user can also implement the page-turning control of the electronic device based on the triggering operation on the stylus (see Figure 10 the corresponding embodiment).
[0121] In one implementation, the user can simulate a laser pointer based on the triggering operation on the stylus, and display a laser dot on the electronic device.
[0122] Exemplarily, Figure 9 FIG. is a schematic diagram of a scenario of simulating a laser pointer based on a stylus provided by an embodiment of the present application.
[0123] As Figure 9 shown in scenario a in, when the stylus receives a pressing operation (or a long pressing operation) of the user in the preset area in the step shown in S704, the stylus can send the recognition result corresponding to the pressing operation to the electronic device through S705, so that the electronic device displays a laser dot 901 in the step shown in S706. The user can use the stylus to simulate a laser pointer to provide a visual demonstration during business presentations.
[0124] As Figure 9 shown in the interface displayed by the electronic device in a in, this interface can be the home page of the slide, and this interface can include: a laser dot 901, information indicating that the page is 1, text information displayed as a stylus introduction, information displayed as the sharer: User A, and time information indicating that the time is July 7, 2022, etc.
[0125] In a possible implementation manner, as Figure 9 shown in scenario b in, when the user ends the pressing operation on the preset area in the stylus, etc., the electronic device can cancel the display of the laser dot.
[0126] It can be understood that the user can simulate a laser pointer to display a laser dot on the electronic device based on the pressing operation on the preset area of the stylus, and improve the accuracy of the recognition of the pressing operation.
[0127] In another implementation, the user can also implement page turning control of the electronic device based on the triggering operation of the user on the stylus.
[0128] Exemplarily, Figure 10 FIG. is a schematic diagram of a scenario for controlling page turning based on a stylus provided in an embodiment of the present application.
[0129] As Figure 10 in the scenario shown in a of, when the stylus receives a user's slide away from the nib position in the preset area in the step shown in S704, the stylus can send the recognition result corresponding to the slide operation to the electronic device through S705, so that the electronic device performs page turning in the step shown in S706. For example, the electronic device can achieve downward page turning. At this time, the electronic device can Figure 10 switch from the interface displayed by the electronic device shown in a of Figure 10 to the interface displayed by the electronic device shown in b of.
[0130] As Figure 10 in the scenario shown in b of, when the stylus receives a user's slide towards the nib position in the preset area in the step shown in S704, the stylus can send the recognition result corresponding to the slide operation to the electronic device through S705, so that the electronic device performs page turning in the step shown in S706. For example, the electronic device can achieve upward page turning. At this time, the electronic device can Figure 10 switch from the interface displayed by the electronic device shown in b of Figure 10 to the interface displayed by the electronic device shown in a of. Among them, Figure 10 the interface displayed by the electronic device shown in b of may include: information indicating that the page is 2, and a definition introduction of the stylus, etc.
[0131] In a possible implementation, when the user adsorbs the stylus to the bottom of the electronic device, or the user turns off the switch of the demonstration page turning pen mode in the interface shown in b of Figure 8 , or the user repeatedly taps the touch film in the stylus, etc., the stylus can exit the page turning pen mode.
[0132] It can be understood that the user can control the electronic device to perform page turning based on the slide operation on the preset area of the stylus, and improve the accuracy of page turning recognition.
[0133] It can be understood that the stylus can also control the electronic device according to the orientation of the nib. As Figure 10 the interface shown in a of and Figure 10The interface shown as b in []. When the tip of the stylus is facing up, when the stylus receives a user's swipe in the preset area away from the tip position, the stylus can control the electronic device to turn the page downwards; or, when the tip of the stylus is facing up, when the stylus receives a user's swipe in the preset area close to the tip position, the stylus can control the electronic device to turn the page upwards. Among them, sensors such as gyro sensors can be set in the stylus to detect the orientation of the stylus.
[0134] In a possible implementation, when the tip of the stylus is facing down, when the stylus receives a user's swipe in the preset area close to the tip position, the stylus can control the electronic device to turn the page downwards; or, when the tip of the stylus is facing down, when the stylus receives a user's swipe in the preset area away from the tip position, the stylus can control the electronic device to turn the page upwards.
[0135] It can be understood that the orientation of different styli and different trigger operations for the preset area in different orientation states are only examples of controlling the electronic device and do not constitute a limitation on the embodiments of the present application.
[0136] Based on Figure 7 According to the content described in the corresponding embodiments, the stylus in the embodiments of the present application can avoid accidental touches caused when the user touches other positions of the touch film based on the recognition of operations on the preset area in the touch film, thereby improving the accuracy of the user using the stylus to control the electronic device.
[0137] In a possible implementation, when the electronic device displays document content, web page content, etc., the stylus can also achieve continuous paging control of the cursor in the electronic device, or of the document content and web page content, etc.
[0138] Exemplarily, Figure 11 FIG. [] is another schematic diagram of a scenario for controlling paging based on a stylus provided by an embodiment of the present application.
[0139] As Figure 11 In the scenario shown as a in []. The electronic device can display document content, and the document content can include a cursor 1101. The interface displayed by the electronic device can also include: controls for indicating the completion of document editing, save controls, undo typing controls, repeat typing controls, controls for exiting the document, controls for turning the page up, controls for turning the page down, and identifiers for indicating the position of the currently displayed content in the document, etc. Figure 11 The document content displayed by the electronic device in the scenario shown as b in [] can be different from Figure 11 the document content displayed by the electronic device in the scenario shown as a in [].
[0140] AsFigure 11 In the scenario shown in a of [reference], when the stylus receives a user's swipe away from the nib position in the preset area in the step shown in S704, the stylus can send the recognition result corresponding to the swipe operation to the electronic device through S705, so that the electronic device can control the cursor to continuously move downward in the step shown in S706. Further, when the user stops operating on the preset area, the electronic device can end the control of the cursor. For example, the electronic device can control the movement of the cursor according to the user's swipe on the stylus. For example, the electronic device can display an interface shown in a of [reference] when the user does not operate on the stylus, and when the user ends the operation on the stylus, it can display an interface shown in b of [reference]. It can be understood that the movement of the cursor will drive the change of the page display content. Figure 11 In the interface shown in a of [reference], and when the user ends the operation on the stylus, it can display an interface shown in b of [reference]. Figure 11 In the interface shown in b of [reference].
[0141] In a possible implementation, when the stylus receives a user's swipe away from the nib position in the preset area, the stylus can also control the page of the electronic device to continuously turn down. Further, when the user stops operating on the preset area, the electronic device can end the page turning operation.
[0142] Adapted, such as Figure 11 In the scenario shown in b of [reference], when the stylus receives a user's swipe towards the nib position in the preset area in the step shown in S704, the stylus can send the recognition result corresponding to the swipe operation to the electronic device through S705, so that the electronic device can control the cursor to continuously move upward in the step shown in S706. Further, when the user stops operating on the preset area, the electronic device can end the control of the cursor. For example, the electronic device can control the movement of the cursor according to the user's swipe on the stylus. For example, the electronic device can display an interface shown in b of [reference] when the user does not operate on the stylus, and when the user ends the operation on the stylus, it can display an interface shown in a of [reference]. Figure 11 In the interface shown in b of [reference], and when the user ends the operation on the stylus, it can display an interface shown in a of [reference]. Figure 11 In the interface shown in a of [reference].
[0143] In a possible implementation, when the stylus receives a user's swipe towards the nib position in the preset area, the stylus can also control the page of the electronic device to continuously turn up. Further, when the user stops operating on the preset area, the electronic device can end the page turning operation. The specific process is similar to the way the stylus controls the cursor movement in the electronic device and will not be elaborated here.
[0144] In a possible implementation, the stylus can also control the electronic device according to the orientation of the nib. Such as Figure 11 The interface shown in a of [reference] and Figure 11The interface shown as b in []. When the tip of the stylus is facing up, when the stylus receives a user's swipe in a preset area away from the tip position, the stylus can control the page displayed on the electronic device to continuously turn downwards (or the cursor displayed on the electronic device to continuously move downwards); or, when the tip of the stylus is facing up, when the stylus receives a user's swipe in a preset area close to the tip position, the stylus can control the page displayed on the electronic device to continuously turn upwards (or the cursor displayed on the electronic device to continuously move upwards).
[0145] In a possible implementation, when the tip of the stylus is facing down, when the stylus receives a user's swipe in a preset area close to the tip position, the stylus can control the page displayed on the electronic device to continuously turn downwards (or the cursor displayed on the electronic device to continuously move downwards); or, when the tip of the stylus is facing up, when the stylus receives a user's swipe in a preset area away from the tip position, the stylus can control the page displayed on the electronic device to continuously turn upwards (or the cursor displayed on the electronic device to continuously move upwards).
[0146] Based on this, the stylus can avoid accidental touches caused when the user touches other positions of the touch film based on the recognition of the operation on the preset area in the touch film and the recognition of the orientation of the stylus, and improve the accuracy of the user using the stylus to control the electronic device.
[0147] It can be understood that the interface provided in the embodiments of the present application is only an example and does not constitute a limitation to the embodiments of the present application.
[0148] As described above in combination with Figures 6 - 11 , the method provided in the embodiments of the present application has been described. Next, the apparatus for executing the above method provided in the embodiments of the present application will be described. As Figure 12 shown, Figure 12 is a schematic structural diagram of a stylus-based usage apparatus provided in an embodiment of the present application. The stylus-based usage apparatus may be a wearable device in the embodiments of the present application, or a chip or chip system inside the wearable device.
[0149] As Figure 12 shown, the stylus-based usage apparatus 1200 can be used in a communication device, a circuit, a hardware component, or a chip. The stylus-based usage apparatus includes: an identification unit 1201 and a processing unit 1202. Among them, the identification unit 1201 is used to support the stylus-based usage apparatus 1200 to execute the step of data identification, and the processing unit 1202 is used to support the stylus-based usage apparatus 1200 to execute the step of data processing.
[0150] Specifically, the embodiment of the present application provides a usage device 1200 based on a stylus. A touch film surrounds part or all of the pen body of the stylus. A cut surface is provided at the pen body of the stylus. The touch film includes a first area. The first area is smaller than the pen body area covered by the touch film and the first area is located at the cut surface position. When the processing unit 1202 receives a first operation on the first area, the recognition unit 1201 is configured to recognize the first operation to obtain a recognition result, and the processing unit 1202 is configured to control a target device based on the recognition result. A communication connection is established between the target device and the stylus.
[0151] In a possible implementation manner, the usage device 1200 based on a stylus may also include a communication unit 1203. Specifically, the communication unit 1203 is configured to support the usage device 1200 based on a stylus to perform steps of sending and receiving data. Among them, the communication unit 1203 may be an input or output interface, a pin or a circuit, etc.
[0152] In a possible embodiment, the usage device 1200 based on a stylus may further include: a storage unit 1204. The processing unit 1202 and the storage unit 1204 are connected by a line. The storage unit 1204 may include one or more memories. The memory may be a device or a component in one or more devices or circuits for storing programs or data. The storage unit 1204 may exist independently and be connected to the processing unit 1202 of the usage device based on a stylus through a communication line. The storage unit 1204 may also be integrated with the processing unit 1202.
[0153] The storage unit 1204 may store computer-executable instructions of the method in the wearable device, so that the processing unit 1202 executes the method in the above embodiment. The storage unit 1204 may be a register, a cache or a RAM, etc. The storage unit 1204 may be integrated with the processing unit 1202. The storage unit 1204 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions. The storage unit 1204 may be independent of the processing unit 1202.
[0154] Figure 13 Another schematic diagram of the hardware structure of the stylus provided by the embodiment of the present application is as Figure 13 shown. The stylus includes a processor 1301, a communication line 1304, and at least one communication interface ( Figure 13 exemplarily described by taking the communication interface 1303 as an example).
[0155] The processor 1301 can be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the solution of the present application.
[0156] The communication line 1304 can include circuits for transmitting information between the above components.
[0157] The communication interface 1303, using any device such as a transceiver, is used to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0158] Possibly, the stylus can also include a memory 1302.
[0159] The memory 1302 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory can exist independently and be connected to the processor through the communication line 1304. The memory can also be integrated with the processor.
[0160] Among them, the memory 1302 is used to store computer execution instructions for executing the solution of the present application, and is controlled by the processor 1301 to execute. The processor 1301 is used to execute the computer execution instructions stored in the memory 1302, so as to implement the wearing detection method provided by the embodiments of the present application.
[0161] Possibly, the computer execution instructions in the embodiments of the present application can also be called application code, and the embodiments of the present application do not make specific limitations thereto.
[0162] In a specific implementation, as an example, the processor 1301 may include one or more CPUs, such as Figure 13 the CPU0 and CPU1 in
[0163] In a specific implementation, as an example, the stylus may include multiple processors, such as Figure 13 the processor 1301 and the processor 1305 in. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0164] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from a website, a computer, a server, or a data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or a wireless manner (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or a data center integrating one or more available media. For example, the available medium may include magnetic media (such as floppy disks, hard disks, or magnetic tapes), optical media (such as digital versatile discs (DVDs)), or semiconductor media (such as solid state disks (SSDs)), etc.
[0165] The embodiments of the present application further provide a system. The system includes a stylus and a target device. The target device is communicatively connected to the stylus. A touch film surrounds a part or all of the body of the stylus. A cut surface is provided at the body of the stylus. The touch film includes a first region. The first region is smaller than the body region covered by the touch film and is located at the cut surface position. The stylus is configured to: when receiving a first operation on the first region, identify the first operation to obtain an identification result; the stylus is further configured to: send the identification result to the target device; the target device is configured to: receive the identification result and control the target device based on the identification result.
[0166] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. A computer-readable medium can include a computer storage medium and a communication medium, and can also include any medium that can transfer a computer program from one place to another. A storage medium can be any target medium accessible by a computer.
[0167] As a possible design, a computer-readable medium can include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc memories; a computer-readable medium can include a magnetic disk memory or other magnetic disk storage devices. Moreover, any connecting line can also be appropriately referred to as a computer-readable medium. For example, if software is transmitted using coaxial cables, fiber optic cables, twisted pairs, DSL, or wireless technologies (such as infrared, radio, and microwave) from a website, server, or other remote source, then the coaxial cables, fiber optic cables, twisted pairs, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. As used herein, magnetic disks and optical discs include optical discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where magnetic disks typically reproduce data magnetically, while optical discs utilize lasers to reproduce data optically.
[0168] The above combinations should also be included within the scope of computer-readable media. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A display control method, characterized in that, it is applied to an electronic device, the electronic device establishes a communication connection with a stylus, and at least part of the body of the stylus is provided with a touch film; the method includes: displaying the first page of the slide show interface; in the case where the first control is in the on state: when the stylus receives a sliding operation of a user in a preset area of the stylus, displaying the second page of the slide show interface; wherein, the preset area is the body area corresponding to part of the touch film; when the stylus receives a sliding operation of a user in other areas of the stylus, keeping the display of the first page of the slide show interface; wherein, the other areas are the body areas corresponding to the touch film except the preset area.
2. The method according to claim 1, characterized in that, the method further includes: in the case where the first control is in the off state: when the stylus receives a sliding operation of a user in the body area corresponding to the touch film, keeping the display of the first page of the slide show interface.
3. The method according to claim 1, characterized in that, the step of displaying the second page of the slide show interface when the stylus receives a sliding operation of a user in the preset area of the stylus includes: when the stylus receives a sliding operation of a user in the preset area of the stylus, the electronic device receives a first message sent by the stylus; based on the first message, displaying the second page of the slide show interface.
4. The method according to claim 1, characterized in that, the sliding operation in the preset area of the stylus is a sliding operation away from the tip position of the stylus.
5. The method according to claim 4, characterized in that, the method further includes: displaying the second page of the slide show interface; in the case where the first control is in the on state: when the stylus receives a sliding operation of a user in the preset area towards the tip position of the stylus, displaying the first page of the slide show interface.
6. The method according to claim 1, characterized in that, the method further includes: in the case where the first control is in the on state: when the stylus receives a press of a user in the preset area, displaying a laser dot on the slide show interface.
7. The method according to claim 6, characterized in that, the press is a long press.
8. The method according to claim 1, characterized in that, the method further includes, displaying a first interface, the first interface includes a text box for searching for setting items; responding to an operation of a user on the first interface, displaying a second interface; wherein, the second interface includes the first control.
9. The method according to claim 8, characterized in that, the operation on the first interface includes a search operation in the text box for searching for setting items.
10. The method according to claim 8, characterized in that, The first interface further includes one or more of a control for viewing account information, a control for setting WLAN, a control for setting Bluetooth, a control for setting mobile network, and a control for viewing the super terminal.
11. The method according to claim 8, wherein, the second interface further includes a first prompt message for prompting that after the first control is turned on, the electronic device can be controlled by the stylus to turn pages.
12. The method according to claim 1, wherein, the method further includes: in response to a trigger operation of the user on the first control, the first control is switched from the off state to the on state.
13. The method according to claim 12, wherein, after the first control is switched from the off state to the on state, the method further includes: the electronic device sends a second message to the stylus, and the second message is used to instruct the stylus to recognize only the sliding operation on the preset area.
14. The method according to any one of claims 1-13, wherein, a section is provided on the body of the stylus, and the preset area is located at the position of the section.
15. The method according to claim 14, wherein, the preset area is smaller than the area of the section of the stylus body corresponding to the touch film.
16. A display control method, wherein, applied to an electronic device, the electronic device establishes a communication connection with a stylus, and at least a part of the body of the stylus is provided with a touch film; the method includes: displaying the first page of the slide show interface; when the first control is in the on state: when the stylus receives a sliding operation of the user on the preset area of the stylus, displaying the second page of the slide show interface; wherein, the preset area is the area of the stylus body corresponding to a part of the touch film; when the first control is in the off state: when the stylus receives a sliding operation of the user on the area of the stylus body corresponding to the touch film, keeping the display of the first page of the slide show interface.
17. The method according to claim 16, wherein, the method further includes: when the first control is in the on state: when the stylus receives a sliding operation of the user on other areas of the stylus, keeping the display of the first page of the slide show interface; wherein, the other areas are the areas of the stylus body corresponding to the touch film except the preset area.
18. The method according to claim 16, wherein, the step of when the stylus receives a sliding operation of the user on the preset area of the stylus and displaying the second page of the slide show interface includes: when the stylus receives a sliding operation of the user on the preset area of the stylus, the electronic device receives a first message sent by the stylus; based on the first message, displaying the second page of the slide show interface.
19. The method according to claim 16, wherein, The sliding operation in the preset area of the stylus is a sliding operation away from the tip position of the stylus.
20. The method according to claim 19, wherein, the method further includes: displaying a second page of the slide show interface; when the first control is in an enabled state: when the stylus receives a sliding operation by a user in the preset area of the stylus towards the tip position of the stylus, displaying a first page of the slide show interface.
21. The method according to claim 16, wherein, the method further includes: when the first control is in an enabled state: when the stylus receives a press by a user in the preset area of the stylus, displaying a laser dot on the slide show interface.
22. The method according to claim 21, wherein, the press is a long press.
23. The method according to claim 16, wherein, the method further includes, displaying a first interface, the first interface including a text box for searching for setting items; in response to an operation by a user on the first interface, displaying a second interface; wherein, the second interface includes the first control.
24. The method according to claim 23, wherein, the operation on the first interface includes a search operation in the text box for searching for setting items.
25. The method according to claim 23, wherein, the first interface further includes one or more controls for viewing account information, for setting WLAN, for setting Bluetooth, for setting mobile network, and for viewing the super terminal.
26. The method according to claim 23, wherein, the second interface further includes a first prompt message for prompting that after the first control is in an enabled state, the stylus can be used to control the electronic device to turn pages.
27. The method according to claim 16, wherein, the method further includes: in response to a triggering operation by a user on the first control, the first control is switched from a closed state to the enabled state.
28. The method according to claim 27, wherein, after the first control is switched from a closed state to an enabled state, the method further includes: the electronic device sends a second message to the stylus, the second message being used to instruct the stylus to recognize only sliding operations in the preset area.
29. The method according to any one of claims 16 - 28, wherein, a cut surface is provided on the body of the stylus, and the preset area is located at the cut surface position.
30. The method according to claim 29, wherein, the preset area is smaller than the pen body cut surface area corresponding to the touch film.
31. A display control method, wherein, applied to a stylus, the stylus establishing a communication connection with an electronic device, at least a part of the body of the stylus being provided with a touch film; the method includes: When the first control of the electronic device is in the on state and the slide show interface is being displayed: In response to a user's sliding operation in a preset area of the stylus, send a first message to the electronic device; wherein, the first message is used for the electronic device to turn the slides, and the preset area is a pen body area corresponding to a part of the touch film; Receive a user's sliding operation in other areas of the stylus, and do not send the first message to the electronic device; wherein, the other areas are pen body areas corresponding to the touch film except the preset area.
32. The method according to claim 31, wherein, The method further includes: when the first control is in the off state, receive a user's sliding operation in the pen body area corresponding to the touch film, and do not send the first message to the electronic device.
33. The method according to claim 31, wherein, When the sliding operation in the preset area is a sliding operation away from the tip position of the stylus, the first message is used to control the electronic device to turn the slides downwards.
34. The method according to claim 31, wherein, When the sliding operation in the preset area is a sliding operation towards the tip position of the stylus, the first message is used to control the electronic device to turn the slides upwards.
35. The method according to claim 31, wherein, The method further includes: When the first control is in the on state and the electronic device is displaying the slide show interface, in response to a user's pressing operation in the preset area of the stylus, send a second message to the electronic device; wherein, the second message is used to control the electronic device to display a laser dot on the slide show interface.
36. The method according to claim 35, wherein, The pressing is a long press.
37. The method according to any one of claims 31-36, wherein, A section surface is provided on the pen body of the stylus, and the preset area is located at the section surface position.
38. The method according to claim 37, wherein, The preset area is smaller than the pen body section surface area corresponding to the touch film.
39. A display control method, wherein, Applied to a stylus, the stylus is communicatively connected to an electronic device, and at least part of the pen body of the stylus is provided with a touch film; the method includes: When the first control of the electronic device is in the on state and the slide show interface is being displayed, in response to a user's sliding operation in the preset area of the stylus, send a first message to the electronic device; wherein, the first message is used for the electronic device to turn the slides, and the preset area is a pen body area corresponding to a part of the touch film; When the first control is in the off state, receive a user's sliding operation in the pen body area corresponding to the touch film, and do not send the first message to the electronic device.
40. The method according to claim 39, wherein, The method further includes: when the first control is in an on state and the electronic device displays a slide show interface, receiving a sliding operation of the user on other areas of the stylus, and not sending the first message to the electronic device; wherein, the other areas are the pen body areas corresponding to the touch film except the preset area.
41. The method according to claim 39, wherein, when the sliding operation on the preset area is a sliding operation away from the tip position of the stylus, the first message is used to control the electronic device to turn the displayed slide down.
42. The method according to claim 39, wherein, when the sliding operation on the preset area is a sliding operation towards the tip position of the stylus, the first message is used to control the electronic device to turn the displayed slide up.
43. The method according to claim 39, wherein, the method further includes: when the first control is in an on state and the electronic device displays a slide show interface, in response to a pressing operation of the user on the preset area of the stylus, sending a second message to the electronic device; wherein, the second message is used to control the electronic device to display a laser dot on the slide show interface.
44. The method according to claim 43, wherein, the pressing is a long press.
45. The method according to any one of claims 39-44, wherein, a cut surface is provided on the pen body of the stylus, and the preset area is located at the cut surface position.
46. The method according to claim 45, wherein, the preset area is smaller than the pen body cut surface area corresponding to the touch film.
47. A display control method, wherein, the method is applied to a system including a stylus and an electronic device, the electronic device establishes a communication connection with the stylus, and at least part of the pen body of the stylus is provided with a touch film; the method includes: the electronic device displays the first page of a slide show interface; in the case where the first control is in an on state: when the stylus receives a sliding operation of the user in the preset area of the stylus; in response to the sliding operation of the user in the preset area of the stylus, the electronic device displays the second page of the slide turning interface; wherein, the preset area is the pen body area corresponding to part of the touch film; when the stylus receives a sliding operation of the user on other areas of the stylus, the electronic device keeps displaying the first page of the slide show interface; wherein, the other areas are the pen body areas corresponding to the touch film except the preset area.
48. The method according to claim 47, wherein, the method further includes: in the case where the first control is in an off state: when the user slides on the pen body of the stylus, the electronic device keeps displaying the first page of the slide show interface.
49. The method according to claim 47, wherein, The second page of the slide paging interface is displayed by the electronic device in response to a user's sliding operation in the preset area of the stylus, and it includes: In response to a user's sliding operation in the preset area of the stylus, the stylus sends a first message to the electronic device; The electronic device receives the first message; Based on the first message, the electronic device displays the second page of the slide paging interface.
50. The method according to claim 47, wherein, the method further includes: When the first control is in the on state, in response to a user pressing in the preset area, the electronic device displays a laser dot on the slide play interface.
51. The method according to any one of claims 47 - 50, wherein, a cut surface is provided on the body of the stylus, and the preset area is located at the position of the cut surface.
52. The method according to claim 51, wherein, the preset area is smaller than the pen body cut surface area corresponding to the touch film.
53. A display control method, wherein, the method is applied to a system including a stylus and an electronic device, the electronic device establishes a communication connection with the stylus, and at least a part of the body of the stylus is provided with a touch film; the method includes: The electronic device displays the first page of the slide play interface; When the first control is in the on state, the stylus receives a user's sliding operation in the preset area of the stylus, and in response to the sliding operation, the electronic device displays the second page of the slide paging interface; wherein, the preset area is the pen body area corresponding to a part of the touch film; When the first control is in the off state, the stylus receives a user's sliding operation in the pen body area corresponding to the touch film, and the electronic device keeps displaying the first page of the slide play interface.
54. The method according to claim 53, wherein, the method further includes: When the first control is in the on state and the stylus receives a user's sliding operation in other areas of the stylus, the electronic device keeps displaying the first page of the slide play interface; wherein, the other areas are the pen body areas corresponding to the touch film and excluding the preset area.
55. The method according to claim 53, wherein, the second page of the slide paging interface is displayed by the electronic device in response to the sliding operation, and it includes: In response to the sliding operation, the electronic device receives a first message sent by the stylus; Based on the first message, the electronic device displays the second page of the slide play interface.
56. The method according to claim 53, wherein, the method further includes: When the first control is in the on state, in response to a user pressing in the preset area of the stylus, the electronic device displays a laser dot on the slide play interface.
57. The method according to any one of claims 53 - 56, wherein, A cross-section is provided on the body of the stylus, and the preset area is located at the position of the cross-section.
58. The method according to claim 57, wherein, the preset area is smaller than the cross-sectional area of the stylus body corresponding to the touch film.
59. An electronic device, comprising a memory, a processor, and a display, wherein the memory stores a computer program that can run on the processor, wherein, when the processor executes the computer program, the electronic device executes the method according to any one of claims 1 to 30.
60. A stylus, characterized in that: at least a part of the body of the stylus is provided with a touch film; the stylus further includes a memory and a processor, the memory stores a computer program that can run on the processor, and when the processor executes the computer program, the stylus executes the method according to any one of claims 31 to 52.
61. A system, characterized in that: it includes the electronic device according to claim 59 and the stylus according to claim 60.
Citation Information
Patent Citations
Radio computer pen device
CN102096481A
Intelligent household appliance pen type control terminal and working method thereof
CN103941892A
Target object display method and device, electronic device and computer readable medium
CN110865734A
Touch pen, control method and device of electronic equipment and electronic equipment
CN112558790A
Laser pen interaction control system and laser pen interaction control method
CN113031841A