WO2023020022A1 - 一种触控笔的连接方法及电子设备 - Google Patents
一种触控笔的连接方法及电子设备 Download PDFInfo
- Publication number
- WO2023020022A1 WO2023020022A1 PCT/CN2022/091220 CN2022091220W WO2023020022A1 WO 2023020022 A1 WO2023020022 A1 WO 2023020022A1 CN 2022091220 W CN2022091220 W CN 2022091220W WO 2023020022 A1 WO2023020022 A1 WO 2023020022A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- stylus
- pressure
- electronic device
- frequency
- electromagnetic wave
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 238000005070 sampling Methods 0.000 claims abstract description 62
- 241001422033 Thestylus Species 0.000 claims description 189
- 238000004590 computer program Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 10
- 238000004891 communication Methods 0.000 description 25
- 230000006870 function Effects 0.000 description 25
- 230000035945 sensitivity Effects 0.000 description 23
- 238000013461 design Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 16
- 230000001939 inductive effect Effects 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 230000005674 electromagnetic induction Effects 0.000 description 7
- 230000008878 coupling Effects 0.000 description 6
- 238000010168 coupling process Methods 0.000 description 6
- 238000005859 coupling reaction Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 239000003550 marker Substances 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000006260 foam Substances 0.000 description 1
- 238000010348 incorporation Methods 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/04166—Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
- G06F3/0442—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using active external devices, e.g. active pens, for transmitting changes in electrical potential to be received by the digitiser
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/046—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means
Definitions
- the embodiments of the present application relate to the technical field of electronic equipment, and in particular, relate to a method for connecting a stylus and electronic equipment.
- an electronic device can establish a connection with a stylus.
- the electronic device can display the touch trace of the stylus.
- an electronic device can establish a connection with a stylus, and display the touch trace of the stylus acting on the touch screen.
- users can use a stylus to take notes on a tablet.
- a user can use a stylus to draw on a tablet computer.
- the electronic device can only establish a connection with one stylus, and the electronic device can only display the touch track of the stylus connected to the electronic device. If multiple users need to operate the stylus to input data to the electronic device, the users need to use the stylus in turn, which seriously affects the user experience.
- the present application provides a method for connecting a stylus and an electronic device.
- the electronic device can be connected to multiple stylus to display touch tracks of the multiple stylus.
- the present application provides a method for connecting a stylus, which can be applied to an electronic device to connect multiple stylus, the electronic device includes a touch screen, and the multiple stylus includes a first stylus and a second stylus. Control the pen.
- the electronic device can establish a connection with the first stylus, and the electronic device can establish a connection with the second stylus.
- the electronic device can send an uplink synchronization signal.
- the electronic device can send the first coding information to the first stylus.
- the first coding information includes the first sampling time and the first frequency.
- the first sampling time is the time when the electromagnetic wave signal is received, and the first frequency is the first The frequency of the electromagnetic wave signal sent by the stylus.
- the electronic device may send the second coding information to the second stylus, the second coding information includes the first sampling time and the second frequency, the second frequency is the frequency of the electromagnetic wave signal sent by the second stylus, and the second coding information includes the first sampling time and the second frequency.
- the first frequency is different from the second frequency.
- the first stylus and the second stylus are synchronized with the electronic device, the first stylus can send an electromagnetic wave signal of the first frequency at the first sampling time, and the second stylus can send the electromagnetic wave signal at the first sampling time.
- the electromagnetic wave signal of the second frequency is sent for a sampling time. In this way, not only can the electronic device be able to receive the electromagnetic wave signal sent by the stylus; but also the first frequency is different from the second frequency, and the electronic device can distinguish electromagnetic wave signals of different stylus according to the frequency of the electromagnetic wave signal.
- the electronic device may receive the electromagnetic wave signal of the first frequency and the electromagnetic wave signal of the second frequency at the first sampling time, and receive the first pressure-sensitive identification and the pressure-sensitive data of the first stylus from the first stylus, And the second pressure-sensitive identification from the second stylus and the pressure-sensitive data of the second stylus.
- the first pressure-sensitivity mark is used to identify the pressure-sensitivity data of the first stylus
- the second pressure-sensitivity mark is used to identify the pressure-sensitivity data of the second stylus
- the second pressure-sensitivity mark is different from the first pressure-sensitivity mark .
- the pressure-sensitivity data is used to indicate the force with which the touch pen presses the touch screen of the electronic device.
- the pressure sensitivity data of the first stylus is 0, it means that the first stylus has not pressed the tablet computer. If the pressing data of the first stylus is 1, it means that the force of the first stylus pressing the tablet computer is relatively small.
- the first pressure-sensitivity mark is used to identify the pressure-sensitivity data of the first stylus
- the second pressure-sensitivity mark is used to identify the pressure-sensitivity data of the second stylus
- the second pressure-sensitivity mark is the same as the first pressure-sensitivity mark The logos are different. Therefore, the electronic device can identify the stylus acting on the touch screen according to the pressure-sensitivity data and the pressure-sensitivity identification.
- the electronic device can use the electromagnetic wave signal of the first frequency, the electromagnetic wave signal of the second frequency, the first pressure-sensitivity identification, the pressure-sensitivity data of the first stylus, the second pressure-sensitivity identification and the pressure-sensitivity of the second stylus Data, displaying the touch track of the first stylus and/or the touch track of the second stylus.
- the electronic device stores a first corresponding relationship and a second corresponding relationship, the first corresponding relationship is the corresponding relationship between the first pressure-sensitive identification and the first frequency, and the second corresponding relationship is the corresponding relationship between the second pressure-sensitive identification and the second Correspondence between frequencies.
- the electronic device can distinguish the electromagnetic wave signals of different stylus according to the frequency of the electromagnetic wave signal, and can identify the stylus acting on the touch screen according to the pressure sensitivity data and the pressure sensitivity identification.
- the electronic device stores the relationship between the pressure sensitive marker and the frequency of the electromagnetic wave signal (that is, the first corresponding relationship and the second corresponding relationship). In this way, it can be ensured that when the electronic device is connected with multiple stylus, the touch tracks of different stylus (that is, the touch track of the first stylus and/or the touch track of the second stylus) are respectively displayed. trajectory).
- multiple users can use multiple stylus pens at the same time, which improves the operating efficiency and user experience.
- the first coding information may further include a first pressure-sensitive identification
- the second coding information may include a second pressure-sensitive identification. That is to say, the electronic device may configure the first pressure-sensitive mark for the first stylus, and configure the second pressure-sensitive mark for the second stylus. In this way, the electronic device can be configured with different pressure-sensitivity marks for different stylus, ensuring that the electronic device can recognize the pressure-sensitivity data of different stylus. In this way, it can be ensured that the electronic device is connected with multiple touch pens, and the user experience is improved.
- the electronic device may receive the first correspondence from the first stylus.
- the electronic device may receive the second correspondence from the second stylus. That is to say, the first stylus and the second stylus can send the pressure-sensitive identification to the electronic device.
- the electronic device can determine the electromagnetic wave signal acting on the stylus on the touch screen according to the first correspondence relationship and the second correspondence relationship, and display the touch trace. In this way, it can be ensured that the electronic device is connected with multiple touch pens, and the user experience is improved.
- the electronic device may display The touch track corresponding to the electromagnetic wave signal of the first frequency. If the pressure-sensitivity data of the second stylus is greater than the preset pressure-sensitivity data threshold, the electronic device can display the touch track corresponding to the electromagnetic wave signal of the second frequency according to the second pressure-sensitivity identification and the second corresponding relationship.
- the electronic device can The relationship, the second pressure-sensitivity sign and the second corresponding relationship display the touch trace corresponding to the electromagnetic wave signal of the first frequency and the touch trace corresponding to the electromagnetic wave signal of the second frequency.
- the touch track corresponding to the electromagnetic wave signal of the first frequency is the touch track of the first stylus
- the touch track corresponding to the electromagnetic wave signal of the second frequency is the touch track of the second stylus.
- the electronic device can display the touch track acting on the touch screen according to the electromagnetic wave signal, pressure-sensitive data and pressure-sensitive mark of different stylus. In this way, it can be ensured that the electronic device is connected with multiple touch pens, and the user experience is improved.
- the line information of the touch track of the first stylus is different from the line information of the touch track of the second stylus.
- the line information may include at least one of the following: line width, line color and line form.
- the electronic device displays different line information, which is convenient for the user to distinguish the touch traces of different stylus pens, and improves the user experience.
- the electronic device may acquire a first connection number, where the first connection number is the number of stylus that establishes a connection with the electronic device. If the first connection number is less than the preset connection number threshold, the electronic device can establish a connection with the second touch pen.
- the electronic device can be prevented from establishing connections with a large number of stylus pens, thereby reducing the power consumption of the electronic device.
- the electronic device may disconnect from the third stylus, and the third stylus is A stylus that establishes a connection with an electronic device. That is to say, if the number of stylus connected to the electronic device is large, the electronic device may disconnect from the third stylus.
- the power consumption of the electronic device can be reduced, and then the electronic device can be connected with other stylus (for example, the second stylus), which improves the user experience.
- other stylus for example, the second stylus
- the third stylus can be the stylus with the lowest remaining power among the stylus that establishes a connection with the electronic device, or the third stylus can be Among the stylus pens that establish a connection with electronic devices, the stylus with the longest connection time.
- disconnecting the stylus with the lowest remaining power from the tablet computer can guarantee the usable time of the stylus that remains connected.
- the probability that the first connected stylus continues to be used is low, and disconnecting the first connected stylus can reduce the probability of affecting other users' use of the stylus. In this way, user experience can be improved.
- the electronic device may display a first prompt message, where the first prompt message is used to instruct disconnection of the stylus connected to the electronic device.
- the electronic device may disconnect from the third stylus, and the first operation is used to trigger the electronic device to disconnect from the third stylus.
- the tablet computer displays the first prompt message, and the user can operate the tablet computer to disconnect the touch pen according to his or her own needs. In this way, the impact on the user of disconnecting the stylus can be reduced, and the user experience is improved.
- the present application provides an electronic device, which includes: a memory, a display screen, and one or more processors, the above-mentioned memory, the display screen and the above-mentioned processor are coupled; the memory is used to store computer program codes, and the computer program The code includes computer instructions; when the computer instructions are executed by the above-mentioned one or more processors, the electronic device is made to execute the method described in the first aspect and any possible design manner thereof.
- the present application provides a chip system, which is applied to an electronic device.
- the system-on-a-chip includes one or more interface circuits and one or more processors.
- the interface circuit and the processor are interconnected by wires.
- the interface circuit is for receiving signals from the memory of the electronic device and sending the signals to the processor, the signals including computer instructions stored in the memory.
- the processor executes the computer instructions
- the electronic device executes the method described in the first aspect and any possible design manner thereof.
- the present application provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the electronic device according to the first aspect and any one thereof.
- the computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the electronic device according to the first aspect and any one thereof.
- One possible design approach is described.
- the present application provides a computer program product.
- the computer program product runs on a computer, the computer executes the method described in the first aspect and any possible design manner thereof.
- FIG. 1A is a schematic diagram of a scene provided by an embodiment of the present application.
- FIG. 1B is a schematic diagram of another scenario provided by the embodiment of the present application.
- FIG. 2 is a schematic structural diagram of a stylus provided in an embodiment of the present application.
- FIG. 3A is a schematic structural frame diagram of a stylus provided in an embodiment of the present application.
- FIG. 3B is a schematic structural framework diagram of an electronic device provided in an embodiment of the present application.
- FIG. 4 is a flow chart of a connection method for a stylus provided in an embodiment of the present application.
- FIG. 5 is a schematic diagram of an example of a time period provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of an example of synchronization between a tablet computer and a stylus provided in an embodiment of the present application
- FIG. 7 is a flow chart of another method for connecting a stylus according to an embodiment of the present application.
- FIG. 8 is a schematic diagram of an example of a display interface of a prompt message provided by an embodiment of the present application.
- FIG. 9 is a flow chart of another method for connecting a stylus provided in an embodiment of the present application.
- FIG. 10 is a schematic diagram of another example of synchronization between a tablet computer and a stylus provided in an embodiment of the present application.
- FIG. 11 is a schematic diagram of an example of a touch track provided by an embodiment of the present application.
- FIG. 12 is a schematic diagram of the structural composition of a chip system provided by an embodiment of the present application.
- A/B can be understood as A or B.
- first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality” means two or more.
- words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design described herein as “exemplary” or “for example” is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words “exemplary” or “such as” is intended to present concepts in a specific manner.
- electronic devices can be connected with each other. For example, after the electronic device is connected with the stylus, the electronic device can display the touch track of the stylus on the touch screen in response to the touch operation of the stylus acting on the touch screen of the electronic device (that is, the stylus writes on the touch screen). Content).
- the electronic device when the electronic device is connected with multiple stylus, the electronic device cannot recognize the touch traces of different stylus. Therefore, in the current technical solution, the electronic device can only establish a connection with one stylus, and the electronic device can only display the touch track of the stylus connected to the electronic device. However, in this way, if multiple users need to operate the stylus to input data to the electronic device, the users need to use the stylus in turn, which seriously affects the user experience.
- an embodiment of the present application provides a method for connecting a stylus.
- the method can be applied to establishing a connection between a touch pen and an electronic device.
- the electronic device can establish connection with multiple touch pens.
- the electronic device can assign different coding frequencies and pressure-sensitive data identifiers to the multiple stylus, and each stylus corresponds to a coding frequency and pressure-sensitive data identifier.
- the electronic device can display touch trajectories of different stylus according to the coding frequency of the stylus and the pressure-sensitivity data identification of the stylus. In this way, multiple users can operate multiple stylus to input data to the electronic device, which improves the operation efficiency of the user using the stylus and improves the user experience.
- FIG. 1A is a schematic diagram of a scene applicable to this embodiment of the present application.
- the scene includes at least one stylus (stylus) 100 (such as stylus 100 - 1 and stylus 100 - 2 ) and an electronic device 200 .
- the electronic device 200 is a tablet computer (portable android device, PAD) as an example for illustration.
- the stylus 100 may provide an input to the electronic device 200 , and the electronic device 200 performs an operation in response to the input based on the input of the stylus 100 .
- the stylus 100 and the electronic device 200 may be interconnected through a communication network to realize wireless signal interaction.
- the communication network can be but not limited to: WI-FI hotspot network, WI-FI point-to-point (peer-to-peer, P2P) network, Bluetooth network, zigbee network or near field communication (near field communication, NFC) network and other short-distance Communications network.
- the stylus 100 can be, but not limited to: an inductive pen and a capacitive pen.
- the electronic device 200 has a touch screen 201.
- the touch screen 201 of the electronic device 200 interacting with the stylus 100 needs to integrate an electromagnetic induction board. Coils are distributed on the electromagnetic induction board, and coils are also integrated in the inductive pen. Based on the principle of electromagnetic induction, within the range of the magnetic field generated by the electromagnetic induction board, as the inductive pen moves, the inductive pen can store electric energy. The inductive pen can transmit the accumulated electric energy to the electromagnetic induction board through the coil in the inductive pen through free oscillation.
- the electromagnetic induction board can scan the coil on the electromagnetic induction board based on the electric energy from the inductive pen, and calculate the position of the inductive pen on the touch screen 201 .
- Capacitive pens can include: passive capacitive pens and active capacitive pens.
- a passive capacitive pen can be called a passive capacitive pen, and an active capacitive pen can be called an active capacitive pen.
- the passive capacitive pen imitates the touch of a finger, and the nib 10 of the passive capacitive pen is a conductive material, such as conductive foam, metal, and a brush.
- the stylus 100 is a passive capacitive stylus
- the touch screen 201 of the electronic device 200 interacting with the stylus 100 needs to integrate a capacitive sensing sensor.
- the distance between the passive capacitive pen and the touch screen 201 of the electronic device 200 is related to the capacitance value detected by the capacitive sensing sensor, therefore, the electronic device 200 can determine the distance between the passive capacitive pen and the touch screen 201 of the electronic device 200 based on the detected capacitance value .
- the movement of the passive capacitive pen on the touch screen 201 will cause a change in the capacitance value at the contact position between the passive capacitive pen and the touch screen 201. Therefore, the electronic device 200 can determine whether the passive capacitive pen is on the touch screen 201 based on the detected capacitance value. s position.
- the electronic device 200 can simultaneously receive the touch operation of the stylus 100-1 and the stylus 100-2 acting on the electronic device 200, and display the touch track of the stylus 100-1.
- a for example, the touch track a is the letter "a”
- the touch track b of the stylus 100-2 for example, the touch track b is the letter "b"
- the stylus in the embodiment of the present application acts on the electronic device 200, which means that the tip of the stylus touches the touch screen of the electronic device 200, for example, the tip of the stylus touches the touch screen when the stylus is pressed, Tap and swipe etc.
- FIG. 1B is a schematic diagram of another scenario applicable to this embodiment of the present application.
- the scene includes a plurality of stylus (stylus) 100 (such as stylus 100-1, stylus 100-2, stylus 100-3 and stylus 100-4) and a plurality of An electronic device 200 (such as a tablet computer 200-1 and a touch screen TV 200-2).
- the plurality of stylus 100 can be interconnected with the tablet computer 200-1 and the touch screen TV 200-2 through a communication network, so as to realize the interaction of wireless signals. That is to say, the stylus 100-1, the stylus 100-2, the stylus 100-3 and the stylus 100-4 can both input to the tablet computer 200-1 at the same time, and can also input to the touch screen TV 200-1 at the same time. 2 inputs.
- the tablet computer 200-1 can simultaneously receive the touch operation of the stylus 100-1 and the stylus 100-2 acting on the electronic device 200, and display the touch operation of the stylus 100-1.
- the control track a (for example, the touch track a is the letter "a") and the touch track b of the stylus 100-2 (for example, the touch track b is the letter "b").
- the touch screen TV 200-2 can simultaneously receive the touch operation of the stylus 100-3 and the stylus 100-3 acting on the touch screen TV 200-2, and display the touch track c of the stylus 100-3 (such as the touch track c is the letter "c") and the touch trace d of the stylus 100-4 (for example, the touch trace d is the letter "d").
- FIG. 2 is a schematic structural diagram of a stylus.
- the stylus 100 may include a pen tip 10 , a pen barrel 20 and a back cover 30 .
- the inside of the pen holder 20 is a hollow structure, the nib 10 and the rear end 30 are located at the two ends of the pen holder 20 respectively, and the back cover 30 and the pen holder 20 can be inserted or engaged.
- a sensor (such as a pressure sensor) is provided inside the pen tip 10 .
- a wireless charging coil is provided inside the pen holder 20 . When the stylus 100 is attached to the electronic device 200, wireless charging can be performed.
- a coil is integrated inside the pen holder 20 .
- FIG. 3A is a schematic diagram of a hardware structure of a stylus provided by an embodiment of the present application.
- the stylus 100 may have a processor 110 .
- Processor 110 may include storage and processing circuitry to support the operation of stylus 100 .
- Storage and processing circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid state drive), volatile memory (e.g., static or dynamic random access memory) wait.
- Processing circuits in the processor 110 can be used to control the operation of the stylus 100 .
- the processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, and the like.
- the sensors may include pressure sensor 120 .
- the pressure sensor 120 may be disposed on the tip 10 of the stylus 100 (as shown in FIG. 2 ).
- the pressure sensor 120 can also be set in the barrel 20 of the stylus 100 . In this way, after one end of the nib 10 of the stylus 100 receives force, the other end of the nib 10 moves to apply force to the pressure sensor 120 .
- the processor 110 can adjust the thickness of the line when writing with the nib 10 of the stylus 100 according to the pressure detected by the pressure sensor 120 .
- the sensors may also include inertial sensors 130 .
- Inertial sensor 130 may include a three-axis accelerometer and a three-axis gyroscope, and/or other components for measuring motion of stylus 100, for example, a three-axis magnetometer may be included in a nine-axis inertial sensor configuration in the sensor.
- the sensors may also include additional sensors such as temperature sensors, ambient light sensors, light-based proximity sensors, contact sensors, magnetic sensors, pressure sensors, and/or other sensors.
- a status indicator 140 such as a light emitting diode and a button 150 may be included in the stylus 100 .
- the status indicator 140 is used to remind the user of the status of the stylus 100 .
- Buttons 150 may include mechanical buttons and non-mechanical buttons, and buttons 150 may be used to collect button press information from a user.
- 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 in the pen tip 10 .
- the stylus 100 may include a sensing circuit 170 .
- Sensing circuitry 170 can sense capacitive coupling between electrodes 160 and drive lines of a capacitive touch sensor panel that interacts with stylus 100 .
- the sensing circuit 170 may include an amplifier to receive capacitance readings from a capacitive touch sensor panel, a clock to generate a demodulated signal, a phase shifter to generate a phase-shifted demodulated signal, a frequency shifter to use an in-phase demodulation
- a mixer to demodulate capacitance readings using quadrature demodulation frequency components, a mixer to demodulate capacitance readings using quadrature demodulation frequency components, etc.
- the results of the mixer demodulation can be used to determine an amplitude proportional to the capacitance so that the stylus 100 can sense contact with the capacitive touch sensor panel.
- the stylus 100 may include a microphone, a speaker, an audio generator, a vibrator, a camera, a data port and other devices.
- a user can control the operation of the stylus 100 and the electronic device 200 that interacts with the stylus 100 by providing commands with these devices, and receive status information and other output.
- the processor 110 may be used to run software on the stylus 100 that controls the operation of the stylus 100 .
- software running on the processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor the movement of the stylus 100 and other user inputs.
- Software running on the processor 110 can detect user commands and can communicate with the electronic device 200 .
- the stylus 100 may include a wireless module.
- the wireless module is the Bluetooth module 180 as an example for illustration.
- the wireless module can also be a WI-FI hotspot module, a WI-FI point-to-point module, and the like.
- the Bluetooth module 180 may include a radio frequency transceiver, such as a transceiver.
- the Bluetooth module 180 may also include one or more antennas.
- the transceiver may utilize the antenna to transmit and/or receive wireless signals, which may be Bluetooth signals, wireless local area network signals, long-range signals such as cellular phone signals, near field communication signals, or other wireless signals based on the type of wireless module.
- the stylus 100 may further include a charging module 190 , and the charging module 190 may support charging of the stylus 100 and provide power for the stylus 100 .
- the electronic device 200 in the embodiment of the present application may be called user equipment (user equipment, UE), terminal (terminal), etc.
- the electronic device 200 may be a tablet computer (portable android device, PAD), personal digital processing (personal digital assistant, PDA), handheld devices with wireless communication functions, computing devices, vehicle-mounted devices or wearable devices, virtual reality (virtual reality, VR) terminal equipment, augmented reality (augmented reality, AR) terminal equipment, industrial control Wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation safety
- a mobile terminal or a fixed terminal with a touch screen such as a wireless terminal in a smart city, a wireless terminal in a smart home, or a wireless terminal in a smart home.
- the form of the terminal device is not specifically limited in the embodiment of the present application.
- FIG. 3B is a schematic structural diagram of an electronic device 200 provided in an embodiment of the present application.
- electronic device 200 may include multiple subsystems that cooperate to perform, coordinate or monitor one or more operations or functions of electronic device 202 .
- Electronic device 200 includes processor 210 , input surface 220 , coordination engine 230 , power subsystem 240 , power connector 250 , wireless interface 260 and display 270 .
- the coordination engine 230 can 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 one or more analog or digital output of a sensor, such as a touch sensor; measure and/or obtain the output of one or more sensor nodes of an array of sensor nodes, such as an array of capacitive sensing nodes; receive and locate tip and ring signals from stylus 100 ; positioning the stylus 100 based on the positions of the tip signal crossing area and the ring signal crossing area, etc.
- the coordination engine 230 of the electronic device 200 includes or is otherwise communicatively coupled to a sensor layer underlying or integrated with the input surface 220 .
- Coordination engine 230 utilizes the sensor layer to position stylus 100 on input surface 220 and uses techniques described herein to estimate the angular position of stylus 100 relative to the plane of input surface 220 .
- the input surface 220 may be referred to as a touch screen 201 .
- the sensor layer of the coordination engine 230 of the electronic device 200 is a grid of capacitive sensing nodes arranged in columns and rows. More specifically, the array of column traces is arranged perpendicular to the array of row traces.
- the sensor layer can be separated from other layers of the electronic device, or the sensor layer can be placed directly on another layer, such as but not limited to: display stack layer, force sensor layer, digitizer layer, polarizer layer, battery layer , structural or decorative shell layers, etc.
- the sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sensing node at each point of overlap (eg, "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sensing nodes at each point of overlap. In another embodiment, adjacent column traces and/or adjacent row traces may each form a single capacitive sensing node (eg, a "horizontal" mutual capacitance) if operating in mutual capacitance mode.
- the sensor layer may detect the presence of the tip 10 of the stylus 100 and/or the touch of a user's finger by monitoring changes in capacitance (eg, mutual capacitance or self capacitance) present at each capacitive sensing node.
- coordination engine 230 may be configured to detect tip and ring signals received from stylus 100 through the sensor layer via capacitive coupling.
- the tip signal and/or the ring signal may include specific information and/or data that may be configured to enable the electronic device 200 to recognize the stylus 100 .
- Such information is generally referred to herein as "stylus identity" information.
- This information and/or data may be received by the sensor layer and interpreted, decoded and/or demodulated by the coordination engine 230 .
- the processor 210 may use the stylus identity information to receive input from more than one stylus at the same time.
- coordination engine 230 may be configured to transmit the position and/or angular position of each of the number of stylus detected by coordination engine 230 to processor 210 .
- the coordination engine 230 may also transmit to the processor 210 information related to the relative positions and/or relative angular positions of the plurality of stylus detected by the coordination engine 230 .
- the coordination engine 220 may notify the processor 210 that the detected first stylus is located at a distance from the detected second stylus.
- the end signal and/or the ring signal may also include specific information and/or data for enabling the electronic device 200 to identify a specific user. Such information is generally referred to herein as "user-identifying" information.
- Coordination engine 230 may forward user identity information (if detected and/or recoverable) to processor 210 . If the user identity information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the user identity information is not available. Processor 210 can utilize user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or denying input from a specific user, allowing or denying access to specific functions of the electronic device, and the like. Processor 210 may use user identity information to receive input from more than one user at a time.
- the tip signal and/or ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to recognize a user's or stylus 100's settings or preferences. Such information is generally referred to herein as "stylus settings" information.
- Coordination engine 230 may forward stylus setting information (if detected and/or recoverable) to processor 210 . If the stylus setting information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the stylus setting information is not available.
- the electronic device 200 can use the stylus to set the information (or the absence of the information) in any suitable way, including but not limited to: applying the setting to the electronic device, applying the setting to the program running on the electronic device, changing the The line thickness, color, and pattern presented by the graphics program of the electronic device, changing the settings of the video game operated on the electronic device, etc.
- the processor 210 may be configured to perform, coordinate and/or manage the functions of the electronic device 200 .
- Such functions may include, but are not limited to: communicating and/or transacting data with other subsystems of the electronic device 200, communicating and/or transacting data with the stylus 100, communicating data and/or transacting data via a wireless interface, communicating via a wired
- the interface communicates and/or trades data, facilitates power exchange via wireless (eg, inductive, resonant, etc.) or wired interfaces, receives position and angular position of one or more stylus, and the like.
- Processor 210 may be implemented as any electronic device capable of processing, receiving or sending data or instructions.
- a processor may be a microprocessor, central processing unit, application specific integrated circuit, field programmable gate array, digital signal processor, analog circuit, digital circuit, or a combination of these devices.
- Processors can be single-threaded or multi-threaded.
- Processors can be single-core or multi-core processors.
- processor 210 may be configured to access memory storing instructions.
- the instructions may be configured to cause the processor to perform, coordinate or monitor one or more operations or functions of the electronic device 200 .
- the instructions stored in memory may be configured to control or coordinate the operation of other components of electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, volatile or non-volatile memory modules, displays, speakers, microphones, rotary input devices, buttons or other physical input devices, biometric authentication sensors and/or systems, force or touch input/output components, communication modules (such as wireless interfaces and/or power connectors), and/or Haptic feedback devices.
- the memory can also store electronic data that can be used by the stylus or the processor.
- 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, and detect tip signals and/or Or ring signal-related files or configurations, etc.
- the memory can be configured as any type of memory.
- memory may be implemented as random access memory, read only memory, flash memory, removable memory, other types of storage elements, or a combination of such devices.
- the electronic device 200 also includes a power subsystem 240 .
- Power subsystem 240 may include a battery or other power source.
- the power subsystem 240 may be configured to provide power to the electronic device 200 .
- the power subsystem 240 may also be coupled to a power connector 250 .
- Power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and/or to provide power to an external load.
- power connector 250 may be used to recharge a battery within power subsystem 240 .
- power connector 250 may be used to transfer power stored (or available) within power subsystem 240 to stylus 100 .
- the electronic device 200 also includes a wireless interface 260 to facilitate electronic communication between the electronic device 200 and the stylus 100 .
- the electronic device 200 may be configured to communicate with the stylus 100 via a Bluetooth low energy communication interface or a near field communication interface.
- the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device or platform.
- Wireless interface 260 may be implemented as one or more of a wireless interface, a Bluetooth interface, a near field communication interface, a magnetic interface, a general purpose serial Bus interface, inductive interface, resonant interface, capacitive coupling interface, Wi-Fi interface, TCP/IP interface, network communication interface, optical interface, acoustic interface or any traditional communication interface.
- the electronic device 200 also includes a display 270 .
- Display 270 may be located behind input surface 220, or may be integrated therewith.
- a display 270 may be coupled to the processor 210 .
- Processor 210 may present information to a user using display 270 .
- processor 210 uses display 270 to present an interface with which a user can interact.
- the user manipulates the stylus 100 to interact with the interface.
- the following takes the electronic device as a tablet computer, and at least one stylus includes a first stylus and a second stylus as an example, that is, taking the connection between the first stylus and the second stylus and the tablet computer as an example, for this Application examples are introduced.
- An embodiment of the present application provides a method for connecting a stylus. As shown in FIG. 4 , the method for connecting a stylus may include S401-S409.
- the tablet computer establishes a connection with the first stylus.
- the tablet computer can enable the Bluetooth function to establish a Bluetooth connection between the tablet computer and the first stylus.
- the tablet computer can establish a Bluetooth connection with the first stylus.
- the first stylus is provided with a touch button, and the touch button is used to enable the Bluetooth function of the first stylus.
- the tablet computer can establish a Bluetooth connection with the first stylus.
- the tablet computer can also establish a connection with the first stylus through other communication methods.
- the tablet computer can establish a wired connection with the first stylus, or establish a connection through other wireless communication technologies such as Wifi.
- the embodiment of this application does not limit the technical way of establishing a connection.
- the tablet computer sends an uplink synchronization signal.
- the uplink synchronization signal is used to indicate that the touch pen receiving the uplink synchronization signal is synchronized with the tablet computer.
- the tablet computer may periodically broadcast an uplink synchronization signal.
- a tablet computer may broadcast an uplink synchronization signal every 100 milliseconds.
- the first stylus receives an uplink synchronization signal.
- the first stylus can periodically receive the uplink synchronization signal.
- the first stylus may receive the uplink synchronization signal within a preset receiving time.
- the preset receiving time may be 10 milliseconds, 20 milliseconds, or 30 milliseconds, etc., which is not limited in this embodiment of the present application.
- the preset receiving time 501 is the time for receiving an uplink synchronization signal.
- the first stylus after the first stylus receives the uplink synchronization signal, the first stylus can be synchronized with the tablet computer.
- the tablet computer can receive the signal from the first stylus stably.
- the tablet computer sends the first coding information to the first stylus.
- the first coding information may include a first sampling time and a first frequency.
- the first coding information may also include a first pressure-sensitive mark.
- the first coding information may also include a first sampling interval.
- the first sampling time is the time when the electromagnetic wave signal from the stylus is received
- the first sampling interval is the time interval between two adjacent receptions of the electromagnetic wave signal.
- the first sampling interval may also be the time for displaying the touch track of the stylus (that is, the writing content of the stylus). That is to say, the tablet computer can receive the electromagnetic wave signal from the stylus at the first sampling time, and the tablet computer can display the touch track of the stylus at the first sampling interval.
- the tablet computer after the tablet computer receives the electromagnetic wave signal from the stylus, it can calculate the position where the stylus interacts with the touch screen according to the electromagnetic wave signal of the stylus. In this way, the tablet computer can display the touch track of the stylus on the touch screen.
- the embodiment of the present application does not limit the first sampling time and the first sampling interval.
- the first sampling time may be 1 millisecond, 3 milliseconds or 5 milliseconds.
- the first sampling interval may be 3 milliseconds, 6 milliseconds or 10 milliseconds.
- the tablet computer may periodically receive the electromagnetic wave signal from the stylus at the first sampling time, and display the touch track of the stylus at the first sampling interval. For example, as shown in (a) in FIG. 6 , within a time period, the tablet computer can send an uplink synchronization signal at time 601, can display the touch trace of the stylus at the first sampling interval 602, and can display the touch trace of the stylus at the first sampling interval Sampling time 603 receives electromagnetic wave signals.
- the first frequency is the frequency of the electromagnetic wave signal sent by the first stylus
- the first pressure-sensitivity identifier is used to identify the pressure-sensitivity data of the first stylus.
- the pressure-sensitivity data is used to indicate the force with which the stylus presses the touch screen of the tablet computer. Exemplarily, if the pressure sensitivity data of the first stylus is 0, it means that the first stylus has not pressed the tablet computer. If the pressing data of the first stylus is 1, it means that the force of the first stylus pressing the tablet computer is relatively small. If the pressing data of the first stylus is 5, it means that the force of the first stylus pressing the tablet computer is relatively strong.
- the tablet computer can store multiple preset frequencies.
- the first frequency is any one of a plurality of preset frequencies.
- the preset frequency may be 20 hertz (Hertz, Hz), 30 Hz, 50 Hz, etc., which is not limited in the embodiment of the present application.
- the multiple preset frequencies may include: 20Hz, 30Hz and 50Hz, and the first frequency may be 20Hz.
- the tablet computer may generate the first pressure-sensitive identifier before the tablet computer sends the first pressure-sensitive identifier to the first stylus.
- the embodiment of the present application does not limit the manner in which the tablet computer generates the first pressure-sensitive mark.
- the tablet computer may generate the first pressure-sensitive identifier through a preset random number algorithm.
- the tablet computer may store multiple preset identifiers, and the tablet computer may use any one of the multiple preset identifiers as the first pressure-sensitive identifier.
- the tablet computer may store a correspondence between the first frequency and the first pressure-sensitive identifier (which may be referred to as the first correspondence).
- the tablet computer After the tablet computer receives the first pressure sensitivity identification, it can be determined according to the pressure sensitivity data that the first stylus is pressing the tablet computer. In this way, the tablet computer can determine the electromagnetic wave signal of the first stylus according to the first correspondence, and then display the touch track of the first stylus on the touch screen.
- the embodiment of the present application does not limit the manner in which the tablet computer sends the first pressure-sensitive information (ie, the first sampling time, the first sampling interval, the first frequency, and the first pressure-sensitive identifier).
- the tablet computer may send the first pressure sensitivity information to the first stylus through the same message, that is, the message carries the first sampling time, the first sampling interval, the first frequency, and the first pressure sensitivity identifier.
- the tablet computer may send the first pressure sensitivity information to the first stylus through multiple messages, that is, the multiple messages respectively carry the first sampling time, the first sampling interval, the first frequency, and the first pressure sensitivity identifier .
- the embodiment of the present application does not limit the order in which the tablet computer sends the uplink synchronization signal and sends the first coding information.
- the tablet computer may first execute S402 (that is, the tablet computer sends an uplink sending synchronization signal), and then execute S404 (that is, the tablet computer sends the first coding information).
- the tablet computer may execute S404 first, and then execute S402.
- the tablet computer may execute S402 and S404 at the same time.
- the first stylus receives the first coding information from the tablet computer.
- the first stylus after the first stylus receives the first coding information from the tablet computer, it can periodically send the first frequency electromagnetic wave signal and the first pressure-sensitive label to the tablet computer according to the first sampling time. pressure sensitivity data.
- the first stylus can receive an uplink synchronization signal at time 601, and can send an electromagnetic wave signal according to the first sampling time 603, and every interval The electromagnetic wave signal is sent once at the first sampling interval 602 .
- the first sampling time is 1 millisecond and the first sampling interval is 3 milliseconds, after the synchronization between the first stylus and the tablet computer, in each time period, the first stylus sends An electromagnetic wave signal.
- the first stylus can send the electromagnetic wave signal according to the first sampling time.
- the tablet computer can receive the electromagnetic wave signal sent by the first stylus.
- the first stylus sends the electromagnetic wave signal of the first frequency and the pressure-sensitive data carrying the first pressure-sensitive identification, which can make the tablet computer determine the touch point of the first stylus according to the first pressure-sensitive identification and the first frequency. control track, and display the touch track of the first stylus on the touch screen.
- the tablet computer establishes a connection with the second touch pen.
- the second stylus receives an uplink synchronization signal.
- the synchronization between the second stylus and the tablet computer can ensure that the tablet computer can stably receive the signal from the second stylus.
- the tablet computer sends the second coding information to the second stylus.
- the second coding information may include the first sampling time and the second frequency.
- the second coding information may also include the first sampling interval.
- the second coding information may also include a second pressure-sensitive mark.
- the second frequency is the frequency of the electromagnetic wave signal sent by the second stylus, and the second pressure-sensitivity identification is used to identify the pressure-sensitivity data of the second stylus.
- the first frequency is different from the second frequency, and the first pressure-sensitivity marker is different from the second pressure-sensitivity marker.
- the first frequency can be 50 Hz
- the first pressure-sensitive identification can be "01”
- the second frequency can be 60 Hz
- the second pressure-sensitive identification can be "02".
- the difference between the first frequency and the second frequency can enable the tablet computer to distinguish the electromagnetic wave signal of the first stylus from the electromagnetic wave signal of the second stylus, and then distinguish the first stylus from the second stylus touch track.
- the first pressure-sensitive identification is different from the second pressure-sensitive identification, and the tablet computer can respectively determine the pressure-sensitive data of the first stylus and the second stylus, and determine whether the first stylus and the second stylus Act on the touch screen, and then display the touch track of the stylus acting on the touch screen on the touch screen.
- the tablet computer before the tablet computer sends the second frequency to the second stylus, can determine the second frequency according to the first frequency and multiple preset frequencies, and the second frequency is one of the multiple preset frequencies frequencies other than the first frequency. Specifically, the tablet computer may determine the allocated frequency (that is, the first frequency) from multiple preset frequencies. Afterwards, the tablet computer may use any frequency in the plurality of preset frequencies except the first frequency as the second frequency.
- the tablet computer may generate the second pressure-sensitive identifier before the tablet computer sends the second pressure-sensitive identifier to the second stylus.
- the embodiment of the present application does not limit the manner in which the tablet computer generates the second pressure-sensitive mark.
- the tablet computer can generate the second pressure-sensitive identification through a preset random number algorithm.
- the tablet computer may store a plurality of preset identifiers, and the tablet computer may use any identifier in the plurality of preset identifiers except the first pressure-sensitive identifier as the second pressure-sensitive identifier.
- the tablet computer may store the correspondence between the second frequency and the second pressure-sensitive identifier (which may be referred to as the second correspondence).
- the tablet computer After the tablet computer receives the second pressure sensitivity identification, it can be determined according to the pressure sensitivity data that the second stylus is pressing the tablet computer. In this way, the tablet computer can determine the electromagnetic wave signal of the second stylus according to the second correspondence, and then display the touch track of the second stylus on the touch screen.
- the second stylus receives the second coding information from the tablet computer.
- the second stylus after receiving the second coding information from the tablet computer, the second stylus can periodically send the electromagnetic wave signal of the second frequency and the The pressure sensitivity data of the second pressure sensitivity indicator.
- the second stylus can receive an uplink synchronization signal at time 601, and can send an electromagnetic wave signal according to the first sampling time 603, and every interval The electromagnetic wave signal is sent once at the first sampling interval 602 .
- the first sampling time is 1 millisecond and the first sampling interval is 3 milliseconds, after the second stylus and the tablet computer are synchronized, in each time period, the second stylus sends An electromagnetic wave signal.
- the way the second stylus receives the second coding information from the tablet computer can refer to the introduction of the first stylus receiving the first coding information from the tablet computer in S405, which is not described here. repeat.
- the second stylus can send the electromagnetic wave signal according to the first sampling time.
- the tablet computer can receive the electromagnetic wave signal sent by the second stylus.
- the second stylus sends the electromagnetic wave signal of the second frequency and the pressure-sensitive data carrying the second pressure-sensitive identification, which can make the tablet computer determine the touch point of the second stylus according to the second pressure-sensitive identification and the second frequency. control track, and display the touch track of the second stylus on the touch screen.
- the performance of the tablet computer will be affected (for example, power consumption is accelerated, processing capability is reduced), and user experience is reduced.
- the tablet computer can determine whether to connect with the stylus (for example, the second stylus) according to the number of stylus that has established connection with the tablet computer.
- An embodiment of the present application provides a method for connecting a stylus. As shown in FIG. 7 , before establishing a connection between the tablet computer and the second stylus (that is, S406 ), the method for connecting the stylus may include S701-S703.
- the tablet computer receives a second operation.
- the second operation is used to trigger the tablet computer to establish a connection with the second touch pen.
- the embodiment of the present application does not limit the second operation.
- the second operation may be an operation of attaching the second stylus to the tablet computer.
- the second operation may be an operation of enabling the Bluetooth function of the tablet computer.
- the tablet computer determines whether the first connection number is less than a preset connection number threshold.
- the first number of connections is the number of touch pens that have established connections with the tablet computer. Exemplarily, if the tablet computer establishes connections with the stylus A, the stylus B and the stylus C, the first connection number is 3.
- the embodiment of the present application does not set a limit on the threshold of the preset number of connections.
- the preset connection number threshold may be 4.
- the preset connection number threshold may be five.
- the preset connection number threshold may be 7.
- the embodiment of the present application does not limit the manner of saving the preset connection number threshold.
- a preset connection threshold can be set by the developer.
- the preset connection number threshold may be set by the user independently.
- the tablet computer may obtain the first number of connections. Afterwards, the tablet computer can compare the first connection number with the preset connection number threshold. If the first connection number is less than the preset connection number threshold, the tablet computer can establish a connection with the second stylus (that is, execute S406).
- the first connection number is less than the preset connection number threshold, it means that the load of the tablet computer is low, and the tablet computer can establish a connection with the second stylus. In this way, it can not only ensure that multiple users operate on the tablet computer through multiple stylus pens, but also reduce the impact on the performance of the tablet computer and improve the user experience.
- the tablet computer may execute S703.
- the third stylus can be any stylus that has been connected with the tablet computer.
- the method for disconnecting the tablet computer from the third stylus can refer to the method for disconnecting two electronic devices (for example, Bluetooth connection) in the conventional technology, which will not be repeated here.
- the tablet computer may establish a connection with the second stylus (that is, execute S406).
- the stylus that has established connection with the tablet computer includes: stylus A, stylus B, and stylus C.
- the tablet computer may disconnect from the stylus A (or stylus B, or stylus C). After that, the tablet can establish a connection with the Stylus D.
- the tablet computer can establish a connection with the second stylus. In this way, it can not only ensure that the user can use a new stylus to operate the tablet computer at any time, but also maintain the number of stylus connected to the tablet computer, reduce the impact on the performance of the tablet computer, and improve the user experience.
- the third stylus may be the stylus with the lowest remaining power among the styli connected with the tablet computer.
- the tablet computer can acquire the remaining power of each stylus connected to the tablet computer. The tablet can then compare the remaining power of each stylus to determine the stylus with the lowest remaining power.
- the method for the tablet computer to obtain the remaining power of the stylus connected to the tablet computer can refer to the method for an electronic device to obtain the remaining power of another electronic device connected to the electronic device in the conventional technology. I will repeat.
- disconnecting the stylus with the lowest remaining power from the tablet computer can guarantee the usable time of the stylus that remains connected. In this way, user experience can be improved.
- the third stylus may also be the stylus with the longest connection time among the stylus established with the tablet computer. That is to say, the third stylus may be the first stylus that establishes connection with the tablet among the stylus that establishes connection with the tablet. Specifically, the tablet computer can acquire the connection duration with each stylus. The tablet can then compare the connection time of each stylus and determine which stylus has been connected the longest.
- the first connected stylus has a lower probability of continuing to be used. In this way, disconnecting the first connected stylus can reduce the probability of affecting other users' use of the stylus and improve the user experience.
- the active disconnection between the tablet computer and the stylus may cause the user to be unable to use the stylus and affect the user experience.
- the tablet computer may prompt the user to select the stylus to disconnect. Specifically, before the tablet computer is disconnected from the third stylus, the tablet computer may display a first prompt message, where the first prompt message is used to instruct disconnection of the stylus connected to the tablet computer. Afterwards, the tablet computer may receive a first operation of the user, and the first operation is used to trigger the tablet computer to disconnect from the third stylus. In response to the first operation, the tablet computer disconnects from the third stylus.
- the stylus that has established connection with the tablet computer includes: stylus A, stylus B, and stylus C.
- the tablet computer can display a first prompt message 801
- the first prompt message 801 includes: stylus A option, stylus B option, stylus C option
- the first prompt message 801 also includes The "OK” button and the "Cancel” button, the "OK” button is used to trigger the tablet computer to disconnect from the selected stylus, and the "Cancel” button is used to trigger the tablet computer not to display the first prompt message 801, namely Do not disconnect the connected stylus.
- the first prompt message 801 may also include prompt information, such as "The number of currently connected stylus has reached the threshold, please disconnect any of the following stylus to ensure that the tablet computer can communicate with the new stylus.” establish connection”. Afterwards, in response to the first operation, the tablet computer may disconnect from the stylus C.
- the tablet computer displays the first prompt message, and the user can operate the tablet computer to disconnect the touch pen according to his or her own needs. In this way, the impact on the user of disconnecting the stylus can be reduced, and the user experience is improved.
- the tablet computer can The pen's electromagnetic wave signal frequency and pressure sensitivity information are displayed on the touch screen as the touch track of the stylus.
- the pressure-sensitivity information includes pressure-sensitivity data and pressure-sensitivity identification.
- An embodiment of the present application provides a method for connecting a stylus. As shown in FIG. 9 , the method for connecting a stylus may further include S901-S910.
- the first stylus sends an electromagnetic wave signal of a first frequency to the tablet computer.
- the first stylus sends the electromagnetic wave signal of the first frequency to the tablet computer according to the first sampling time. It can be seen from (b) in FIG. 6 that within a time period, the first stylus can send electromagnetic wave signals according to the first sampling time 603 , and send electromagnetic wave signals every first sampling interval 602 .
- the tablet computer can receive the electromagnetic wave signal of the first stylus.
- the tablet computer receives the electromagnetic wave signal of the first frequency.
- the tablet computer can receive the electromagnetic wave signal of the first frequency at the first sampling time.
- the tablet computer may receive the electromagnetic wave signal at the first sampling time 603 .
- the first stylus sends the first pressure-sensitive information to the tablet computer.
- the first pressure-sensitivity information includes the first pressure-sensitivity identification and the pressure-sensitivity data of the first stylus.
- the first stylus can send the first pressure-sensitivity information to the tablet computer through Bluetooth technology.
- the tablet computer receives first pressure-sensitive information from the first stylus.
- the second stylus sends an electromagnetic wave signal of a second frequency to the tablet computer.
- the second stylus sends the electromagnetic wave signal of the second frequency to the tablet computer according to the first sampling time. It can be seen from (c) in FIG. 6 that within a time period, the second stylus can send electromagnetic wave signals according to the second sampling time 603 , and send electromagnetic wave signals once every first sampling interval 602 .
- the tablet computer receives the electromagnetic wave signal of the second frequency.
- the tablet computer can receive the electromagnetic wave signal of the first frequency at the first sampling time.
- the second stylus sends the second pressure-sensitive information to the tablet computer.
- the second pressure-sensitivity information includes the second pressure-sensitivity identification and the pressure-sensitivity data of the second stylus.
- the second stylus can send the second pressure-sensitive information to the tablet computer through Bluetooth technology.
- the tablet computer receives second pressure-sensitive information from the second stylus.
- the tablet computer determines the target electromagnetic wave signal according to the first pressure-sensitive information, the second pressure-sensitive information, the first correspondence, and the second correspondence.
- the target electromagnetic wave signal is an electromagnetic wave signal acting on the stylus of the touch screen.
- the target electromagnetic wave signal is the electromagnetic wave signal of the first stylus.
- the target electromagnetic wave signal is the electromagnetic wave signal of the second stylus.
- the target electromagnetic wave signal includes the electromagnetic wave signal of the first stylus and the electromagnetic wave signal of the second stylus.
- a preset pressure-sensitivity data threshold is stored in the tablet computer.
- the tablet computer can determine whether the first touch pen and the second touch pen act on the touch screen according to the first pressure sensitivity information, the second pressure sensitivity information and the preset pressure sensitivity data threshold. Specifically, the tablet computer may compare the pressure-sensitivity data of the first stylus in the first pressure-sensitivity information with a preset pressure-sensitivity data threshold, and compare the pressure-sensitivity data of the second stylus in the second pressure-sensitivity information with the Preset pressure sensitivity data threshold comparison. If the pressure-sensitivity data of the first stylus in the first pressure-sensitivity information is greater than the preset pressure-sensitivity data threshold, the tablet computer will use the first stylus to act on the touch screen.
- the tablet computer determines that the first stylus does not act on the touch screen. If the pressure-sensitivity data of the second stylus in the second pressure-sensitivity information is greater than the preset pressure-sensitivity data threshold, the tablet computer determines that the second stylus acts on the touch screen. If the pressure-sensitivity data of the second stylus in the second pressure-sensitivity information is less than the preset pressure-sensitivity data threshold, the tablet computer determines that the second stylus does not act on the touch screen.
- the tablet computer determines that the first stylus acts on the touch screen and the second stylus does not act on the touch screen. If the pressure-sensitivity data of the first stylus is 2 and the pressure-sensitivity data of the second stylus is 4, the tablet computer determines that both the first stylus and the second stylus act on the touch screen.
- determining whether the stylus acts on the touch screen according to the pressure-sensitivity data can avoid displaying touch traces on the display screen due to false touches or when the stylus does not act on the touch screen. In this way, user experience can be improved.
- the tablet computer can determine the target electromagnetic wave signal . Specifically, if the pressure-sensitivity data of the first stylus is greater than the preset pressure-sensitivity data threshold, the tablet computer determines the first frequency according to the first pressure-sensitivity identification and the first corresponding relationship, and uses the electromagnetic wave signal of the first frequency as the target electromagnetic wave Signal. If the pressure-sensitivity data of the second stylus is greater than the preset pressure-sensitivity data threshold, the tablet computer determines the second frequency according to the second pressure-sensitivity identification and the second corresponding relationship, and uses the electromagnetic wave signal of the second frequency as the target electromagnetic wave signal.
- the tablet computer will The first frequency is determined, the second frequency is determined according to the second pressure-sensitive identification and the second corresponding relationship, and the electromagnetic wave signal of the first frequency and the electromagnetic wave signal of the second frequency are used as target electromagnetic wave signals.
- Table 1 shows the correspondence between the identification of the pressure-sensitivity data of the stylus and the frequency of the electromagnetic wave signal of the stylus.
- Stylus logo The frequency of the electromagnetic wave signal Stylus A 01 50Hz Stylus B 02 70Hz
- the tablet computer can use the electromagnetic wave signal of 50 Hz as the target electromagnetic wave signal. If the pressure-sensitivity data of the stylus A and the stylus B are both greater than the preset pressure-sensitivity data threshold, the tablet computer can use the electromagnetic wave signal of 50 Hz and the electromagnetic wave signal of 70 Hz as the target electromagnetic wave signal.
- the tablet computer can identify the stylus acting on the touch screen according to the pressure sensitivity information of the stylus. Moreover, there is a corresponding relationship between the identifier of the pressure-sensitivity data of the stylus and the electromagnetic wave signal of the stylus. In this way, the tablet computer can determine the electromagnetic wave signal of the stylus acting on the touch screen, and then display the corresponding touch track.
- the tablet computer displays a touch track according to the target electromagnetic wave signal.
- the tablet computer can determine the position where the stylus acts on the touch screen according to the electromagnetic wave signal, and display the touch track of the stylus. Specifically, if the target electromagnetic wave signal is the first electromagnetic wave signal, the tablet computer can display the first touch track according to the first electromagnetic wave signal, and the first touch track is the touch track of the first stylus acting on the touch screen. If the target electromagnetic wave signal is the second electromagnetic wave signal, the tablet computer can display the touch track according to the second electromagnetic wave signal, and the second touch track is the touch track of the second stylus acting on the touch screen. If the target electromagnetic wave signal includes the first electromagnetic wave signal and the second electromagnetic wave signal, the tablet computer can display the first touch track according to the first electromagnetic wave signal, and display the second touch track according to the second electromagnetic wave signal.
- the tablet computer displays the touch track of the stylus acting on the touch screen according to the target electromagnetic wave signal. In this way, it can be ensured that when multiple stylus acts on the touch screen at the same time, the tablet computer can recognize and display the touch track of the corresponding stylus. In this way, it can be ensured that multiple users operate the tablet computer through the touch pen at the same time, which improves the user's operation efficiency and improves the user's experience.
- the tablet computer can display the touch track according to the target electromagnetic wave signal and a preset prediction algorithm.
- the preset prediction algorithm is used to predict the touch track of the stylus acting on the touch screen.
- the embodiment of the present application does not limit the preset prediction algorithm.
- the tablet computer predicts the touch trajectory through a preset prediction algorithm, which can increase the speed at which the tablet computer displays the touch trajectory. In this way, user experience can be improved.
- the tablet computer can identify the pressure-sensitive data of different stylus according to the time when the pressure-sensitive data from the stylus is received.
- the above-mentioned pressure-sensitivity indicator can be used to indicate the time when the stylus sends the pressure-sensitivity data.
- the first pressure-sensitivity mark is used to indicate the time when the first stylus sends the pressure-sensitive data
- the second pressure-sensitivity mark is used to indicate the time when the second stylus sends the pressure-sensitivity data.
- the first pressure sensitivity marks are 19:00:01, 19:00:03 and 19:00:05
- the second pressure sense marks are 19:00:02, 19:00:04 and 19:00 :06.
- the first stylus can send pressure-sensitive data to the tablet computer at 19:00:01, 19:00:03 and 19:00:05 respectively
- the second stylus can send pressure-sensitive data at 19:00:02 and 19:00:05 respectively.
- 00:04 and 19:00:06 send pressure-sensitive data to the tablet.
- the stylus only sends the pressure-sensitive data to the tablet computer, and does not send the pressure-sensitive identification. That is to say, in the embodiment of the present application, S903 may be replaced by: the first stylus sends the pressure-sensitivity data of the first stylus to the tablet computer. S907 may be replaced by: the second stylus sends the pressure-sensitivity data of the second stylus to the tablet computer.
- the tablet computer may receive the pressure-sensitivity data from the first stylus and the pressure-sensitivity data from the second stylus. After the tablet computer receives the pressure-sensitive data, the tablet computer can according to the pressure-sensitive data of the first stylus, the pressure-sensitive data of the second stylus, the time of receiving the pressure-sensitive data, the first correspondence and the second correspondence relationship to determine the target electromagnetic wave signal.
- Table 2 shows the correspondence between the identification of the pressure-sensitivity data of the stylus and the frequency of the electromagnetic wave signal of the stylus.
- Stylus logo The frequency of the electromagnetic wave signal Stylus A 19:00:01 and 19:00:03 50Hz Stylus B 19:00:02 and 19:00:04 70Hz
- the tablet computer can use the electromagnetic wave signal of 50 Hz as the target electromagnetic wave signal. If the pressure-sensitivity data received by the tablet computer at 19:00:01 and 19:00:02 are both greater than the preset pressure-sensitivity data threshold, the tablet computer may use the electromagnetic wave signal of 50 Hz and the electromagnetic wave signal of 70 Hz as the target electromagnetic wave signal.
- the time when the stylus sends the pressure-sensitive data is equal to the time when the tablet computer receives the pressure-sensitive data.
- the time when the stylus sends the pressure-sensitive data is the same as the time when the tablet computer receives the pressure-sensitive data, which means that the time when the stylus sends the pressure-sensitive data is the same as the time when the tablet computer receives the pressure-sensitive data or exists Minor difference (for example, the time difference between the time when the stylus sends the pressure-sensitive data and the time when the tablet computer receives the pressure-sensitive data is less than a preset time difference, such as 0.01 seconds).
- the tablet computer can identify the pressure-sensitivity data of different stylus according to the time when the pressure-sensitivity data is received, and then can identify the stylus acting on the touch screen according to the pressure-sensitivity data. Moreover, there is a corresponding relationship between the identifier of the pressure-sensitivity data of the stylus and the electromagnetic wave signal of the stylus. In this way, the tablet computer can determine the electromagnetic wave signal of the stylus acting on the touch screen, and then display the corresponding touch track.
- the tablet computer may not configure a pressure-sensitive indicator for the stylus, that is, the tablet computer does not send a pressure-sensitive indicator to the stylus.
- the stylus can establish a correspondence between the pressure-sensitive identification and the preset frequency, and send the correspondence to the tablet computer.
- the first stylus may send the first correspondence to the tablet computer.
- the tablet computer may receive the first correspondence and save the first correspondence.
- the second stylus can send the second correspondence to the tablet computer.
- the tablet computer may receive the second correspondence and save the second correspondence.
- the first pressure-sensitive identifier may be the Media Access Control (MAC) address, device ID (Device ID) and unique device identification code ( Unique Device Identifier, UDID), etc.
- the second pressure-sensitive identification can be the MAC address, Divice ID, UDID, etc. of the second stylus. In this way, it can be ensured that the first pressure-sensitive mark is different from the second pressure-sensitive mark.
- the number of electromagnetic wave frequencies allocated by the tablet computer to the stylus is relatively small. If at least two of the multiple stylus connected to the tablet computer have the same electromagnetic wave frequency, the tablet computer may not be able to accurately display the touch track on the touch screen.
- the tablet computer can identify the electromagnetic wave signals of different stylus pens according to the time when the electromagnetic wave signals from the stylus pens are received. Specifically, the tablet computer may send different sampling times and sampling intervals to the first stylus and the second stylus. Afterwards, the tablet computer can identify the electromagnetic wave signal of the first stylus and the electromagnetic wave signal of the second stylus according to the time when the electromagnetic wave signal from the stylus is received.
- the tablet computer may receive the electromagnetic wave signal at the first sampling time 603 .
- the first stylus can send electromagnetic wave signals at sampling time 1001
- the second stylus can send electromagnetic wave signals at sampling time 1002 . That is to say, the time when the first stylus sends the electromagnetic wave signal is different from the time when the second stylus sends the electromagnetic wave signal, and the time when the tablet computer receives the electromagnetic wave signal from the first stylus is different from the time when the tablet computer receives the second touch stylus. The timing of the pen's electromagnetic wave signal is different.
- the tablet computer can identify electromagnetic wave signals of different stylus according to the time when the electromagnetic wave signal from the stylus is received. In this way, the touch tracks of different touch pens can be distinguished, thereby ensuring that multiple touch pens can operate the touch screen at the same time, thereby improving user experience.
- the tablet computer can display the touch traces of the multiple touch pens. In this way, the user may not be able to distinguish the content written by different stylus, which affects the user experience.
- the line information of the first touch track is different from the line information of the second touch track.
- the line information is used to form a touch track, and the line information includes at least one of the following: line width, line color and line form.
- the line forms include solid lines and dashed lines.
- the embodiment of the present application does not limit the form of the dotted line.
- a plurality of preset line information is stored in the tablet computer. The tablet computer can configure different line information for electromagnetic wave signals of different frequencies.
- the tablet computer simultaneously receives the touch operation of the first stylus 1101 and/or the second stylus 1102 on the touch screen, and displays the first touch track (such as the letter "a") and The second touch track (for example, the letter “b").
- the line width of the letter "a” is greater than the line width of the letter "b".
- the letter "a” is formed by solid lines, and the letter “b” is formed by dotted lines.
- the color of the letter “a” can be black, and the color of the letter “b” can be blue (not shown in the figure).
- the electronic device includes hardware structures and/or software modules corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or by electronic equipment software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
- the embodiment of the present application can divide the connecting device of the stylus into functional modules or functional units according to the above-mentioned method example, for example, each functional module or functional unit can be divided corresponding to each function, or two or more functions can be divided integrated in one processing module.
- the above-mentioned integrated modules can be implemented in the form of hardware, or in the form of software function modules or functional units.
- the division of modules or units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
- the electronic device may include memory and one or more processors.
- the memory is coupled to the processor.
- the electronic device may also include a camera. Alternatively, the electronic device can be connected with an external camera.
- the memory is used to store computer program code comprising computer instructions.
- the processor executes the computer instructions, the electronic device can execute various functions or steps performed by the mobile phone in the foregoing method embodiments.
- the embodiment of the present application also provides a chip system, as shown in FIG. 12 , the chip system includes at least one processor 1201 and at least one interface circuit 1202 .
- the processor 1201 and the interface circuit 1202 may be interconnected through wires.
- interface circuit 1202 may be used to receive signals from other devices, such as memory of an electronic device.
- the interface circuit 1202 may be used to send signals to other devices (such as the processor 1201).
- the interface circuit 1202 can read instructions stored in the memory, and send the instructions to the processor 1201 .
- the electronic device for example, the electronic device 200 shown in FIG. 3B
- the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.
- the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on the above-mentioned electronic device (such as the electronic device 200 shown in FIG. 3B ), the The electronic device executes various functions or steps executed by the mobile phone in the foregoing method embodiments.
- the embodiment of the present application also provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute each function or step performed by the mobile phone in the method embodiment above.
- the disclosed devices and methods may be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented.
- the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
- the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
- the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage medium includes: various media that can store program codes such as U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种触控笔的连接方法及电子设备,涉及电子设备技术领域,可以保障电子设备与多个触控笔连接,显示多个触控笔的触控轨迹。具体方案包括:电子设备可以分别与第一触控笔、第二触控笔建立连接。电子设备可以在第一采样时间接收第一频率的电磁波信号、第二频率的电磁波信号,并接收来自第一触控笔的第一压感标识和第一触控笔的压感数据,以及来自第二触控笔的第二压感标识和第二触控笔的压感数据。第二压感标识与第一压感标识不同。然后,电子设备可以根据第一频率的电磁波信号、第二频率的电磁波信号、第一压感标识、第一触控笔的压感数据、第二压感标识和第二触控笔的压感数据,显示第一触控笔的触控轨迹和/或第二触控笔的触控轨迹。
Description
本申请要求于2021年08月19日提交国家知识产权局、申请号为202110955069.X、发明名称为“一种触控笔的连接方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及电子设备技术领域,尤其涉及一种触控笔的连接方法及电子设备。
随着科技的发展,电子设备(如手机、平板电脑、笔记本电脑、智能电视等)的功能越来越多。例如,电子设备可以与触控笔建立连接。响应于触控笔作用于电子设备的触摸屏的触控操作,电子设备可以显示触控笔的触控轨迹。
目前,电子设备可以和一个触控笔建立连接,并显示该触控笔作用于触摸屏的触控轨迹。例如,用户可以使用触控笔在平板电脑上记录笔记。又例如,用户可以使用触控笔在平板电脑上绘画。
但是,上述方案中,电子设备仅可以和一个触控笔建立连接,且电子设备仅可以显示与电子设备连接的触控笔的触控轨迹。若有多个用户需要操作触控笔向电子设备输入数据时,用户需要轮流使用触控笔,严重影响用户的使用体验。
发明内容
本申请提供一种触控笔的连接方法及电子设备,电子设备可以与多个触控笔连接,显示多个触控笔的触控轨迹。
第一方面,本申请提供一种触控笔的连接方法,该方法可以应用于电子设备连接多个触控笔,电子设备包括触摸屏,多个触控笔包括第一触控笔和第二触控笔。
该方法中,电子设备可以与第一触控笔建立连接,电子设备可以与第二触控笔建立连接。并且,电子设备可以发送上行同步信号。之后,电子设备可以向第一触控笔发送第一打码信息,第一打码信息包括第一采样时间和第一频率,第一采样时间为接收电磁波信号的时间,第一频率为第一触控笔发送的电磁波信号的频率。并且,电子设备可以向第二触控笔发送第二打码信息,第二打码信息包括第一采样时间和第二频率,第二频率为第二触控笔发送的电磁波信号的频率,第一频率与第二频率不同。这样一来,在第一触控笔和第二触控笔与电子设备进行同步之后,第一触控笔可以在第一采样时间发送第一频率的电磁波信号,第二触控笔可以在第一采样时间发送第二频率的电磁波信号。如此,不仅可以保障电子设备能够接收到触控笔发送的电磁波信号;而且第一频率与第二频率不同,电子设备可以根据电磁波信号的频率区分不同触控笔的电磁波信号。
接着,电子设备可以在第一采样时间接收第一频率的电磁波信号、第二频率的电磁波信号,并接收来自第一触控笔的第一压感标识和第一触控笔的压感数据,以及来自第二触控笔的第二压感标识和第二触控笔的压感数据。其中,第一压感标识用于标 识第一触控笔的压感数据,第二压感标识用于标识第二触控笔的压感数据,第二压感标识与第一压感标识不同。
需要说明的是,压感数据用于指示触控笔按压电子设备的触摸屏的力度。示例性的,假如第一触控笔的压感数据为0,则说明第一触控笔未按压平板电脑。假如第一触控笔的按压数据为1,则说明第一触控笔按压平板电脑的力度较小。并且,由于第一压感标识用于标识第一触控笔的压感数据,第二压感标识用于标识第二触控笔的压感数据,且第二压感标识与第一压感标识不同。因此,电子设备可以根据压感数据和压感标识,识别作用于触摸屏的触控笔。
然后,电子设备可以根据第一频率的电磁波信号、第二频率的电磁波信号、第一压感标识、第一触控笔的压感数据、第二压感标识和第二触控笔的压感数据,显示第一触控笔的触控轨迹和/或第二触控笔的触控轨迹。其中,电子设备中存储有第一对应关系和第二对应关系,第一对应关系为第一压感标识与第一频率之间的对应关系,第二对应关系为第二压感标识与第二频率之间的对应关系。
可以理解的是,电子设备可以根据电磁波信号的频率区分不同触控笔的电磁波信号,可以根据压感数据和压感标识,识别作用于触摸屏的触控笔。并且,电子设备中存储有压感标识与电磁波信号的频率之间的关系(即第一对应关系和第二对应关系)。这样一来,可以保障电子设备在连接多个触控笔时,分别显示不同的触控笔的触控轨迹(即第一触控笔的触控轨迹和/或第二触控笔的触控轨迹)。并且,多个用户可以同时使用多个触控笔,提高了操作效率,改善了用户的使用体验。
结合第一方面,在一种可能的设计方式中,第一打码信息还可以包括第一压感标识,第二打码信息包括第二压感标识。也就是说,电子设备可以为第一触控笔配置第一压感标识,为第二触控笔配置第二压感标识。这样一来,电子设备可以为不同触控笔配置不同的压感标识,保障电子设备能够识别不同触控笔的压感数据。如此,可以保障电子设备连接多个触控笔,改善了用户的使用体验。
结合第一方面,在另一种可能的设计方式中,电子设备可以接收来自第一触控笔的第一对应关系。并且,电子设备可以接收来自第二触控笔的第二对应关系。也就是说,第一触控笔和第二触控笔可以向电子设备发送压感标识。
这样一来,电子设备可以根据第一对应关系和第二对应关系确定作用于触摸屏的触控笔的电磁波信号,并显示触控轨迹。如此,可以保障电子设备连接多个触控笔,改善了用户的使用体验。
结合第一方面,在另一种可能的设计方式中,若第一触控笔的压感数据大于预设压感数据阈值,电子设备则可以根据第一压感标识和第一对应关系,显示第一频率的电磁波信号对应的触控轨迹。若第二触控笔的压感数据大于预设压感数据阈值,电子设备则可以根据第二压感标识和第二对应关系,显示第二频率的电磁波信号对应的触控轨迹。若第一触控笔的压感数据大于预设压感数据阈值,且第二触控笔的压感数据大于预设压感数据阈值,电子设备则可以根据第一压感标识、第一对应关系、第二压感标识和第二对应关系,显示第一频率的电磁波信号对应的触控轨迹和第二频率的电磁波信号对应的触控轨迹。其中,第一频率的电磁波信号对应的触控轨迹为第一触控笔的触控轨迹,第二频率的电磁波信号对应的触控轨迹为第二触控笔的触控轨迹。
这样一来,电子设备可以根据不同的触控笔的电磁波信号、压感数据和压感标识,显示作用于触摸屏的触控轨迹。如此,可以保障电子设备连接多个触控笔,改善了用户的使用体验。
结合第一方面,在另一种可能的设计方式中,第一触控笔的触控轨迹的线条信息与第二触控笔的触控轨迹的线条信息不同。线条信息可以包括以下至少一项:线条宽度、线条颜色和线条形式。
可以理解的是,电子设备显示不同的线条信息,便于用户区分不同的触控笔的触控轨迹,提高了用户的使用体验。
结合第一方面,在另一种可能的设计方式中,电子设备可以获取第一连接数,第一连接数为与电子设备建立连接的触控笔的数量。若第一连接数小于预设连接数阈值,电子设备可以与第二触控笔建立连接。
这样一来,可以避免电子设备与大量触控笔建立连接,进而可以降低电子设备的功耗。
结合第一方面,在另一种可能的设计方式中,若第一连接数等于预设连接数阈值,电子设备则可以断开与第三触控笔之间的连接,第三触控笔为与电子设备建立连接的触控笔。也就是说,若电子设备连接的触控笔的数量较多时,电子设备可以断开与第三触控笔之间的连接。
这样一来,可以降低电子设备的功耗,进而可以使电子设备与其他的触控笔(例如第二触控笔)建立连接,提高了用户的使用体验。
结合第一方面,在另一种可能的设计方式中,第三触控笔可以为与电子设备建立连接的触控笔中,剩余电量最低的触控笔,或者,第三触控笔可以为与电子设备建立连接的触控笔中,连接时长最长的触控笔。
可以理解的是,平板电脑断开剩余电量最低的触控笔,可以保障保持连接的触控笔的可用时长。第一个连接的触控笔继续被使用的概率较低,断开第一个连接的触控笔,可以降低影响其他用户使用触控笔的概率。如此,可以提高用户的使用体验。
结合第一方面,在另一种可能的设计方式中,电子设备可以显示第一提示消息,该第一提示消息用于指示断开与电子设备连接的触控笔。响应于用户的第一操作,电子设备可以断开与第三触控笔之间的连接,第一操作用于触发电子设备断开与第三触控笔的连接。
可以理解的是,平板电脑显示第一提示消息,用户可以根据自身需求操作平板电脑断开与触控笔之间的连接。如此,可以减小断开触控笔对用户的影响,提高了用户的使用体验。
第二方面,本申请提供一种电子设备,该电子设备包括:存储器、显示屏和一个或多个处理器,上述存储器、显示屏与上述处理器耦合;存储器用于存储计算机程序代码,计算机程序代码包括计算机指令;当计算机指令被上述一个或多个处理器执行时,使得电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第三方面,本申请提供一种芯片系统,该芯片系统应用于电子设备。该芯片系统包括一个或多个接口电路和一个或多个处理器。该接口电路和处理器通过线路互联。该接口电路用于从电子设备的存储器接收信号,并向处理器发送该信号,该信号包括 存储器中存储的计算机指令。当处理器执行所述计算机指令时,电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第五方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的方法。
可以理解地,上述提供的第二方面所述的电子设备,第三方面所述的芯片系统,第四方面所述的计算机可读存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
图1A为本申请实施例提供的一种场景示意图;
图1B为本申请实施例提供的另一种场景示意图;
图2为本申请实施例提供的触控笔的结构示意图;
图3A为本申请实施例提供的触控笔的结构框架示意图;
图3B为本申请实施例提供的电子设备的结构框架示意图;
图4为本申请实施例提供的一种触控笔的连接方法流程图;
图5为本申请实施例提供的一种时间周期的实例示意图;
图6为本申请实施例提供的一种平板电脑与触控笔同步的实例示意图;
图7为本申请实施例提供的另一种触控笔的连接方法流程图;
图8为本申请实施例提供的一种提示消息的显示界面的实例示意图;
图9为本申请实施例提供的另一种触控笔的连接方法流程图;
图10为本申请实施例提供的另一种平板电脑与触控笔同步的实例示意图;
图11为本申请实施例提供的一种触控轨迹的实例示意图;
图12为本申请实施例提供的一种芯片系统的结构组成示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
本申请中字符“/”,一般表示前后关联对象是一种“或者”的关系。例如,A/B可以理解为A或者B。
术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
此外,本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括其他没有列出的步骤或 模块,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。
另外,在本申请实施例中,“示例性的”、或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”、或者“例如”等词旨在以具体方式呈现概念。
为了便于理解本申请的技术方案,在对本申请实施例的触控笔的连接方法进行详细介绍之前,先对常规技术进行介绍。
随着科技的发展,电子设备与电子设备之间可以建立连接。例如,电子设备与触控笔建立连接之后,电子设备响应于触控笔作用于电子设备的触摸屏的触控操作,可以在触摸屏上显示触控笔的触控轨迹(即触控笔在触摸屏书写的内容)。
目前的技术方案中,在电子设备与多个触控笔建立连接的情况下,电子设备无法识别不同触控笔的触控轨迹。因此,目前的技术方案中,电子设备仅可以和一个触控笔建立连接,且电子设备仅可以显示与电子设备连接的触控笔的触控轨迹。但是,这样一来,若有多个用户需要操作触控笔向电子设备输入数据时,用户需要轮流使用触控笔,严重影响用户的使用体验。
为此,本申请实施例提供一种触控笔的连接方法。该方法可以应用于触控笔与电子设备建立连接。该方法中,电子设备可以与多个触控笔建立连接。之后电子设备可以为多个触控笔分配不同的打码频率和压感数据标识,每个触控笔对应一个打码频率和压感数据标识。在多个触控笔向电子设备输入触控操作的情况下,电子设备可以根据触控笔的打码频率和触控笔的压感数据标识,显示不同触控笔的触控轨迹。这样一来,多个用户可以操作多个触控笔向电子设备输入数据,提高了用户使用触控笔的操作效率,改善了用户的使用体验。
图1A为本申请实施例适用的一种场景示意图。参照图1A,该场景中包括至少一个触控笔(stylus)100(例如触控笔100-1和触控笔100-2)和电子设备200。图1A中以电子设备200为平板电脑(portable android device,PAD)为例进行说明。触控笔100可以向电子设备200提供输入,电子设备200基于触控笔100的输入,执行响应于该输入的操作。在一种实施例中,触控笔100和电子设备200之间,可以通过通信网络进行互联,以实现无线信号的交互。该通信网络可以但不限于为:WI-FI热点网络、WI-FI点对点(peer-to-peer,P2P)网络、蓝牙网络、zigbee网络或近场通信(near field communication,NFC)网络等近距离通信网络。
触控笔100可以但不限于为:电感笔和电容笔。电子设备200具有触摸屏201,触控笔100为电感笔时,与触控笔100交互的电子设备200的触摸屏201上需要集成电磁感应板。电磁感应板上分布有线圈,电感笔中也集成有线圈。基于电磁感应原理,在电磁感应板所产生的磁场范围内,随着电感笔的移动,电感笔能够积蓄电能。电感笔可以将积蓄的电能通过自由震荡,经电感笔中的线圈传输至电磁感应板。电磁感应板可以基于来自电感笔的电能,对电磁感应板上的线圈进行扫描,计算出电感笔在触摸屏201上的位置。
电容笔可以包括:无源电容笔和有源电容笔。无源电容笔可以称为被动式电容笔,有源电容笔可以称为主动式电容笔。被动式电容笔是模仿手指的触摸,被动式电容笔 的笔尖10为导电材料,如导电泡棉、金属、毛刷等。触控笔100为被动式电容笔时,与触控笔100交互的电子设备200触摸屏201上需要集成电容感应传感器。被动式电容笔和电子设备200的触摸屏201的距离,与电容感应传感器检测到的电容值相关,因此,电子设备200可以基于检测到的电容值,确定被动式电容笔与电子设备200的触摸屏201的距离。另外,被动式电容笔在触摸屏201上移动,会造成被动式电容笔与触摸屏201的接触位置处的电容值的改变,因此,电子设备200可以基于检测到的电容值,确定被动式电容笔在触摸屏201上的位置。
示例性的,如图1A所示,电子设备200可以同时接收触控笔100-1和触控笔100-2作用于电子设备200的触控操作,显示触控笔100-1的触控轨迹a(例如触控轨迹a为字母“a”)和触控笔100-2的触控轨迹b(例如触控轨迹b为字母“b”)。
需要说明的是,本申请实施例中的触控笔作用于电子设备200,是指触控笔的笔尖触碰到电子设备200的触控屏,例如触控笔的笔尖在触控笔按压、敲击和滑动等。
图1B为本申请实施例适用的另一种场景示意图。参照图1B,该场景中包括多个触控笔(stylus)100(例如触控笔100-1、触控笔100-2、触控笔100-3和触控笔100-4)和多个电子设备200(例如平板电脑200-1和触摸屏电视200-2)。其中,多个触控笔100均可以与平板电脑200-1和触摸屏电视200-2通过通信网络进行互联,以实现无线信号的交互。也就是说,触控笔100-1、触控笔100-2、触控笔100-3和触控笔100-4既可以同时向平板电脑200-1输入,也可以同时向触摸屏电视200-2输入。
示例性的,如图1B所示,平板电脑200-1可以同时接收触控笔100-1和触控笔100-2作用于电子设备200的触控操作,显示触控笔100-1的触控轨迹a(例如触控轨迹a为字母“a”)和触控笔100-2的触控轨迹b(例如触控轨迹b为字母“b”)。触摸屏电视200-2可以同时接收触控笔100-3和触控笔100-3作用于触摸屏电视200-2的触控操作,显示触控笔100-3的触控轨迹c(例如触控轨迹c为字母“c”)和触控笔100-4的触控轨迹d(例如触控轨迹d为字母“d”)。
图2为触控笔的结构示意图。参照图2所示,触控笔100可以包括笔尖10、笔杆20和后盖30。笔杆20的内部为中空结构,笔尖10和后端30分别位于笔杆20的两端,后盖30与笔杆20之间可以通过插接或者卡合方式。可选的,笔尖10的内部设置有传感器(例如压力传感器)。可选的,笔杆20的内部设置有无线充电线圈。在触控笔100被吸附在电子设备200情况下,可以进行无线充电。可选的,笔杆20的内部集成有线圈。
图3A为本申请实施例提供的一种触控笔的硬件结构示意图。参照图3A所示,触控笔100可以具有处理器110。处理器110可以包括用于支持触控笔100的操作的存储和处理电路。存储和处理电路可以包括诸如非易失性存储器的存储装置(例如,闪存存储器或构造为固态驱动器的其它电可编程只读存储器)、易失性存储器(例如,静态或动态随机存取存储器)等。处理器110中的处理电路可以用来控制触控笔100的操作。处理电路可以基于一个或多个微处理器、微控制器、数字信号处理器、基带处理器、电源管理单元、音频芯片、专用集成电路等。
触控笔100中可以包括一个或多个传感器。例如,传感器可以包括压力传感器120。压力传感器120可以设置在触控笔100的笔尖10(如图2所示)。当然,压力传感器 120还可以设在触控笔100的笔杆20内,这样,触控笔100的笔尖10一端受力后,笔尖10的另一端移动将力作用到压力传感器120。在一种实施例中,处理器110根据压力传感器120检测到的压力大小可以调整触控笔100的笔尖10书写时的线条粗细。
传感器也可以包括惯性传感器130。惯性传感器130可以包括三轴加速计和三轴陀螺仪,和/或,用于测量触控笔100的运动的其它部件,例如,三-轴磁力计可以以九-轴惯性传感器的构造被包括在传感器中。传感器也可以包括附加的传感器,诸如温度传感器、环境光传感器、基于光的接近传感器、接触传感器、磁传感器、压力传感器和/或其它传感器。
触控笔100中可以包括如发光二极管的状态指示器140和按钮150。状态指示器140用于向用户提示触控笔100的状态。按钮150可以包括机械按钮和非机械按钮,按钮150可以用于从用户收集按钮按压信息。
本申请实施例中,触控笔100中可以包括一个或多个电极160,其中一个电极160可以位于触控笔100的书写端处,其中一个电极160可以位于笔尖10内。
触控笔100中可以包括感测电路170。感测电路170可感测位于电极160和与触控笔100交互的电容触摸传感器面板的驱动线之间的电容耦合。感测电路170可以包括用以接收来自电容触摸传感器面板的电容读数的放大器、用以生成解调信号的时钟、用以生成相移的解调信号的相移器、用以使用同相解调频率分量来解调电容读数的混频器、以及用以使用正交解调频率分量来解调电容读数的混频器等。混频器解调的结果可用于确定与电容成比例的振幅,使得触控笔100可以感测到与电容触摸传感器面板的接触。
可以理解的是,根据实际需求,在触控笔100可以包括麦克风、扬声器、音频发生器、振动器、相机、数据端口以及其它设备。用户可以通过利用这些设备提供命令来控制触控笔100和与触控笔100交互的电子设备200的操作,并且接收状态信息和其它输出。
处理器110可以用于运行触控笔100上的控制触控笔100的操作的软件。触控笔100的操作过程中,运行在处理器110上的软件可以处理传感器输入、按钮输入和来自其它装置的输入以监视触控笔100的移动和其它用户输入。在处理器110上运行的软件可以检测用户命令并且可以与电子设备200通信。
为了支持触控笔100与电子设备200的无线通信,触控笔100可以包括无线模块。图3A中以无线模块为蓝牙模块180为例进行说明。无线模块还可以为WI-FI热点模块、WI-FI点对点模块等。蓝牙模块180可以包括射频收发器,例如收发器。蓝牙模块180也可以包括一个或多个天线。收发器可以利用天线发射和/或接收无线信号,无线信号基于无线模块的类型,可以是蓝牙信号、无线局域网信号、诸如蜂窝电话信号的远程信号、近场通信信号或其它无线信号。
触控笔100还可以包括充电模块190,充电模块190可以支持触控笔100的充电,为触控笔100提供电力。
应理解,本申请实施例中的电子设备200可以称为用户设备(user equipment,UE)、终端(terminal)等,例如,电子设备200可以为平板电脑(portable android device,PAD)、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持 设备、计算设备、车载设备或可穿戴设备,虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等具有触控屏的移动终端或固定终端。本申请实施例中对终端设备的形态不做具体限定。
图3B为本申请实施例提供的一种电子设备200的结构示意图。参照图3B,电子设备200可以包括多个子系统,这些子系统协作以执行、协调或监控电子设备202的一个或多个操作或功能。电子设备200包括处理器210、输入表面220、协调引擎230、电源子系统240、电源连接器250、无线接口260和显示器270。
示例性的,协调引擎230可以用于与电子设备200的其他子系统进行通信和/或处理数据;与触控笔100通信和/或交易数据;测量和/或获得一个或多个模拟或数字传感器(诸如触摸传感器)的输出;测量和/或获得传感器节点阵列(诸如电容感测节点的阵列)的一个或多个传感器节点的输出;接收和定位来自触控笔100的尖端信号和环信号;基于尖端信号交叉区域和环形信号交叉区域的位置来定位触控笔100等。
电子设备200的协调引擎230包括或以其他方式可通信地耦接至位于输入表面220下方或与该输入表面集成一体的传感器层。协调引擎230利用传感器层对输入表面220上的触控笔100进行定位,并使用本文所述的技术来估计触控笔100相对于输入表面220的平面的角位置。在一种实施例中,输入表面220可以称为触摸屏201。
例如,电子设备200的协调引擎230的传感器层是布置为列和行的电容感测节点网格。更具体地说,列迹线阵列被设置成垂直于行迹线阵列。传感器层可以与电子设备的其他层分开,或者传感器层可以直接设置在另一个层上,其他层诸如但不限于:显示器叠堆层、力传感器层、数字转换器层、偏光器层、电池层、结构性或装饰性外壳层等。
传感器层能够以多种模式操作。如果以互电容模式操作,则列迹线和行迹线在每个重叠点(例如,“垂直”互电容)处形成单个电容感测节点。如果以自电容模式操作,则列迹线和行迹线在每个重叠点处形成两个(垂直对齐的)电容感测节点。在另一个实施方案中,如果以互电容模式操作,则相邻的列迹线和/或相邻的行迹线可各自形成单个电容感测节点(例如,“水平”互电容)。如上所述,传感器层可以通过监测在每个电容感测节点处呈现的电容(例如,互电容或自电容)变化来检测触控笔100的笔尖10的存在和/或用户手指的触摸。在许多情况下,协调引擎230可被配置为经由电容耦合来检测通过传感器层从触控笔100接收的尖端信号及环信号。
其中,尖端信号和/或环信号可以包括可被配置为令电子设备200识别触控笔100的特定信息和/或数据。此类信息在本文通常被称为“触笔身份”信息。该信息和/或数据可以由传感器层接收,并由协调引擎230解译、解码和/或解调。
处理器210可以使用触笔身份信息来同时接收来自一支以上的触笔的输入。具体地,协调引擎230可被配置为将由协调引擎230检测到的若干触笔中的每个触笔的位置和/或角位置传输给处理器210。在其他情况下,协调引擎230还可以向处理器210 传输与由协调引擎230检测到的多个触笔的相对位置和/或相对角位置有关的信息。例如,协调引擎220可以通知处理器210所检测的第一触控笔位于距离所检测的第二触控笔的位置。
在其他情况下,端信号和/或环信号还可以包括用于令电子设备200识别特定用户的特定信息和/或数据。此类信息在本文通常被称为“用户身份”信息。
协调引擎230可以将用户身份信息(如果检测到和/或可复原的话)转发到处理器210。如果用户身份信息不能从尖端信号和/或环信号中复原,则协调引擎230可以可选地向处理器210指示用户身份信息不可用。处理器210能够以任何合适的方式利用用户身份信息(或不存在该信息的情况),包括但不限于:接受或拒绝来自特定用户的输入,允许或拒绝访问电子设备的特定功能等。处理器210可以使用用户身份信息来同时接收来自一个以上的用户的输入。
在另外的其他情况下,尖端信号和/或环信号可以包括可被配置为令电子设备200识别用户或触控笔100的设置或偏好的特定信息和/或数据。此类信息在本文通常被称为“触笔设置”信息。
协调引擎230可以将触笔设置信息(如果检测到和/或可复原的话)转发到处理器210。如果触笔设置信息不能从尖端信号和/或环信号中复原,则协调引擎230可以可选地向处理器210指示触笔设置信息不可用。电子设备200能够以任何合适的方式利用触笔设置信息(或不存在该信息的情况),包括但不限于:将设置应用于电子设备,将设置应用于在电子设备上运行的程序,改变由电子设备的图形程序所呈现的线条粗细、颜色、图案,改变在电子设备上操作的视频游戏的设置等。
一般而言,处理器210可被配置为执行、协调和/或管理电子设备200的功能。此类功能可以包括但不限于:与电子设备200的其他子系统通信和/或交易数据,与触控笔100通信和/或交易数据,通过无线接口进行数据通信和/或交易数据,通过有线接口进行数据通信和/或交易数据,促进通过无线(例如,电感式、谐振式等)或有线接口进行电力交换,接收一个或多个触笔的位置和角位置等。
处理器210可被实现为能够处理、接收或发送数据或指令的任何电子设备。例如,处理器可以是微处理器、中央处理单元、专用集成电路、现场可编程门阵列、数字信号处理器、模拟电路、数字电路或这些设备的组合。处理器可以是单线程或多线程处理器。处理器可以是单核或多核处理器。
在使用期间,处理器210可被配置为访问存储有指令的存储器。该指令可被配置为使处理器执行、协调或监视电子设备200的一个或多个操作或功能。
存储在存储器中的指令可被配置为控制或协调电子设备200的其他部件的操作,该部件诸如但不限于:另一处理器、模拟或数字电路、易失性或非易失性存储器模块、显示器、扬声器、麦克风、旋转输入设备、按钮或其他物理输入设备、生物认证传感器和/或系统、力或触摸输入/输出部件、通信模块(诸如无线接口和/或电源连接器),和/或触觉反馈设备。
存储器还可存储可由触笔或处理器使用的电子数据。例如,存储器可以存储电子数据或内容(诸如媒体文件、文档和应用程序)、设备设置和偏好、定时信号和控制信号或者用于各种模块的数据、数据结构或者数据库,与检测尖端信号和/或环信号相关 的文件或者配置等等。存储器可被配置为任何类型的存储器。例如,存储器可被实现作为随机存取存储器、只读存储器、闪存存储器、可移动存储器、其他类型的存储元件或此类设备的组合。
电子设备200还包括电源子系统240。电源子系统240可包括电池或其它电源。电源子系统240可被配置为向电子设备200提供电力。电源子系统240还可耦接到电源连接器250。电源连接器250可以是任何合适的连接器或端口,其可被配置为从外部电源接收电力并且/或者被配置为向外部负载提供电力。例如,在一些实施方案中,电源连接器250可以用于对电源子系统240内的电池进行再充电。在另一个实施方案中,电源连接器250可以用于将存储在(或可用于)电源子系统240内的电力传输到触控笔100。
电子设备200还包括无线接口260,以促进电子设备200与触控笔100之间的电子通信。在一个实施方案中,电子设备200可被配置为经由低能量蓝牙通信接口或近场通信接口与触控笔100通信。在其他示例中,通信接口有利于电子设备200与外部通信网络、设备或平台之间的电子通信。
无线接口260(无论是电子设备200与触控笔100之间的通信接口还是另外的通信接口)可被实现为一个或多个无线接口、蓝牙接口、近场通信接口、磁性接口、通用串行总线接口、电感接口、谐振接口,电容耦合接口、Wi-Fi接口、TCP/IP接口、网络通信接口、光学接口、声学接口或任何传统的通信接口。
电子设备200还包括显示器270。显示器270可以位于输入表面220后方,或者可以与其集成一体。显示器270可以耦接至处理器210。处理器210可以使用显示器270向用户呈现信息。在很多情况下,处理器210使用显示器270来呈现用户可以与之交互的界面。在许多情况下,用户操纵触控笔100与界面进行交互。
对于本领域的技术人员而言将显而易见的是,上文关于电子设备200所呈现的具体细节中的一些细节可为实践特定的所述实施方案或其等同物所不需要的。类似地,其他电子设备可以包括更多数量的子系统、模块、部件等。在适当的情况下,一些子模块可以被实现为软件或硬件。因此,应当理解,上述描述并非旨在穷举或将本公开限制于本文所述的精确形式。相反,对于本领域的普通技术人员而言将显而易见的是,根据上述教导内容,许多修改和变型是可能的。
以下以电子设备为平板电脑,至少一个触控笔包括第一触控笔和第二触控笔为例,即以第一触控笔和第二触控笔与平板电脑建立连接为例,对本申请实施例进行介绍。
本申请实施例提供一种触控笔的连接方法,如图4所示,该触控笔的连接方法可以包括S401-S409。
S401、平板电脑与第一触控笔建立连接。
在一些实施例中,平板电脑可以开启蓝牙功能,以建立平板电脑与第一触控笔之间的蓝牙连接。示例性的,在第一触控笔被吸附在平板电脑之后,平板电脑可以与第一触控笔建立蓝牙连接。又例如,第一触控笔设置有触控按钮,该触控按钮用于开启第一触控笔的蓝牙功能。响应于用户作用于触控按钮的操作,平板电脑可以与第一触控笔被建立蓝牙连接。具体对于平板电脑与第一触控笔建立蓝牙连接的方式的说明,可以参考常规技术中电子设备与另一台电子设备建立蓝牙连接的方法,此处不予赘述。
可以理解的是,平板电脑也可以和第一触控笔通过其他通讯方式建立连接。例如,平板电脑可以与第一触控笔建立有线连接,也可以通过Wifi等其他无线通讯技术建立连接。本申请实施例对建立连接的技术方式不做限定。
S402、平板电脑发送上行同步信号。
其中,上行同步信号用于指示接收到上行同步信号的触控笔与平板电脑同步。
一种可能的实现方式,平板电脑可以周期性广播上行同步信号。例如,平板电脑可以每间隔100毫秒广播一次上行同步信号。
S403、第一触控笔接收上行同步信号。
在一些实施例中,第一触控笔可以周期性接收上行同步信号。可选的,第一触控笔可以在预设接收时间内接收上行同步信号。例如,该预设接收时间可以为10毫秒、20毫秒或者30毫秒等,本申请实施例对此不作限定。示例性的,如图5所示,在一个时间周期内,预设接收时间501为接收上行同步信号的时间。
在本申请实施例中,在第一触控笔接收到上行同步信号之后,第一触控笔可以与平板电脑同步。
这样一来,可以保障平板电脑能够稳定接收来自第一触控笔的信号。
S404、平板电脑向第一触控笔发送第一打码信息。
其中,第一打码信息可以包括第一采样时间和第一频率。可选的,第一打码信息还可以包括第一压感标识。可选的,第一打码信息还可以包括第一采样间隔。
在本申请实施例中,第一采样时间为接收来自触控笔的电磁波信号的时间,第一采样间隔为相邻两次接收电磁波信号之间的时间间隔。可选的,第一采样间隔还可以为显示触控笔的触控轨迹(即触控笔的书写内容)的时间。也就是说,平板电脑可以在第一采样时间接收来自触控笔的电磁波信号,平板电脑可以在第一采样间隔显示触控笔的触控轨迹。
需要说明的是,在本申请实施例中,平板电脑在接收到来自触控笔的电磁波信号之后,可以根据触控笔的电磁波信号,计算触控笔作用与触摸屏的位置。如此,平板电脑可以在触摸屏显示触控笔的触控轨迹。
本申请实施例对第一采样时间和第一采样间隔不作限定。例如,第一采样时间可以为1毫秒、3毫秒或者5毫秒。又例如,第一采样间隔可以为3毫秒、6毫秒或者10毫秒。
示例性的,平板电脑可以周期性的在第一采样时间接收来自触控笔的电磁波信号,在第一采样间隔显示触控笔的触控轨迹。例如,如图6中的(a)所示,在一个时间周期内,平板电脑可以在时间601发送上行同步信号,可以在第一采样间隔602显示触控笔的触控轨迹,可以在第一采样时间603接收电磁波信号。
在本申请实施例中,第一频率为第一触控笔发送的电磁波信号的频率,第一压感标识用于标识第一触控笔的压感数据。
需要说明的是,压感数据用于指示触控笔按压平板电脑的触摸屏的力度。示例性的,假如第一触控笔的压感数据为0,则说明第一触控笔未按压平板电脑。假如第一触控笔的按压数据为1,则说明第一触控笔按压平板电脑的力度较小。假如第一触控笔的按压数据为5,则说明第一触控笔按压平板电脑的力度较大。
在本申请实施例中,平板电脑可以存储多个预设频率。第一频率为多个预设频率中任一频率。本申请实施例中,预设频率可以为20赫兹(Hertz,Hz)、30Hz、50Hz等,本申请实施例对此不作限定。例如,多个预设频率可以包括:20Hz、30Hz和50Hz,第一频率可以为20Hz。
在一些实施例中,在平板电脑向第一触控笔发送第一压感标识之前,平板电脑可以生成第一压感标识。本申请实施例对平板电脑生成第一压感标识的方式不作限定。例如,平板电脑可以通过预设随机数算法生成第一压感标识。又例如,平板电脑可以保存多个预设标识,平板电脑可以将多个预设标识中的任一标识,作为第一压感标识。
在本申请实施例中,平板电脑可以保存第一频率和第一压感标识之间的对应关系(可以称为第一对应关系)。
这样一来,在平板电脑接收到第一压感标识之后,可以根据压感数据确定第一触控笔在按压平板电脑。如此,平板电脑可以根据第一对应关系确定第一触控笔的电磁波信号,进而在触摸屏上显示第一触控笔的触控轨迹。
需要说明的是,本申请实施例对平板电脑发送第一压感信息(即第一采样时间、第一采样间隔、第一频率和第一压感标识)的方式不作限定。例如,平板电脑可以通过同一个消息向第一触控笔发送第一压感信息,即该消息携带有第一采样时间、第一采样间隔、第一频率和第一压感标识。又例如,平板电脑可以通过多条消息向第一触控笔发送第一压感信息,即多个消息中分别携带有第一采样时间、第一采样间隔、第一频率和第一压感标识。
需要说明的是,本申请实施例对平板电脑发送上行同步信号和发送第一打码信息的顺序不作限定。例如,平板电脑可以先执行S402(即平板电脑发送上行发送同步信号),再执行S404(即平板电脑发送第一打码信息)。又例如,平板电脑可以先执行S404,再执行S402。又例如,平板电脑可以同时执行S402和S404。
S405、第一触控笔接收来自平板电脑的第一打码信息。
在本申请实施例中,第一触控笔接收来自平板电脑的第一打码信息之后,可以按照第一采样时间,周期性向平板电脑发送第一频率的电磁波信号和携带有第一压感标识的压感数据。
示例性的,如图6中的(b)所示,在一个时间周期内,第一触控笔可以在时间601接收上行同步信号,可以按照第一采样时间603发送电磁波信号,并且每间隔一次第一采样间隔602发送一次电磁波信号。例如,假如第一采样时间为1毫秒,第一采样间隔为3毫秒,则在第一触控笔与平板电脑完成同步之后,在每个时间周期内,第一触控笔每间隔3毫秒发送一次电磁波信号。
可以理解的是,第一触控笔可以按照第一采样时间发送电磁波信号。如此,可以保障第一触控笔发送电磁波信号之后,平板电脑可以接收到第一触控笔发送的电磁波信号。并且,第一触控笔发送第一频率的电磁波信号和携带有第一压感标识的压感数据,可以使平板电脑根据第一压感标识和第一频率,确定第一触控笔的触控轨迹,并在触控屏上显示第一触控笔的触控轨迹。
S406、平板电脑与第二触控笔建立连接。
需要说明的是,平板电脑与第二触控笔建立连接的方式,可以参考S401中对平板 电脑与第一触控笔建立连接的介绍,此处不予赘述。
S407、第二触控笔接收上行同步信号。
需要说明的是,第二触控笔接收上行同步信号的方式,可以参考S403中对第一触控笔接收上行同步信号的介绍,此处不予赘述。
可以理解的是,第二触控笔与平板电脑同步,可以保障平板电脑能够稳定接收来自第二触控笔的信号。
S408、平板电脑向第二触控笔发送第二打码信息。
其中,第二打码信息可以包括第一采样时间和第二频率。可选的,第二打码信息还可以包括第一采样间隔。可选的,第二打码信息还可以包括第二压感标识。第二频率为第二触控笔发送的电磁波信号的频率,第二压感标识用于标识第二触控笔的压感数据。
在本申请实施例中,第一频率与第二频率不同,第一压感标识与第二压感标识不同。示例性的,假如第一频率可以为50Hz,第一压感标识可以为“01”;第二频率可以为60Hz,第二压感标识可以为“02”。
可以理解的是,第一频率与第二频率不同,可以使平板电脑区分第一触控笔的电磁波信号和第二触控笔的电磁波信号,进而区分第一触控笔和第二触控笔的触控轨迹。并且,第一压感标识与第二压感标识不同,平板电脑可以分别确定第一触控笔和第二触控笔的压感数据,并确定第一触控笔和第二触控笔是否作用于触摸屏,进而在触摸屏显示作用于触摸屏的触控笔的触控轨迹。
在一些实施例中,在平板电脑向第二触控笔发送第二频率之前,平板电脑可以根据第一频率和多个预设频率,确定第二频率,第二频率为多个预设频率中除第一频率以外的频率。具体的,平板电脑可以从多个预设频率中确定已经分配的频率(即第一频率)。之后,平板电脑可以将多个预设频率中除第一频率之外的任一频率作为第二频率。
在一些实施例中,在平板电脑向第二触控笔发送第二压感标识之前,平板电脑可以生成第二压感标识。本申请实施例对平板电脑生成第二压感标识的方式不作限定。例如,平板电脑可以通过预设随机数算法生成第二压感标识。又例如,平板电脑可以保存多个预设标识,平板电脑可以将多个预设标识中除第一压感标识之外的任一标识,作为第二压感标识。
在本申请实施例中,平板电脑可以保存第二频率和第二压感标识之间的对应关系(可以称为第二对应关系)。
这样一来,在平板电脑接收到第二压感标识之后,可以根据压感数据确定第二触控笔在按压平板电脑。如此,平板电脑可以根据第二对应关系确定第二触控笔的电磁波信号,进而在触摸屏上显示第二触控笔的触控轨迹。
需要说明的是,具体对平板电脑向第二触控笔发送第二打码信息的介绍,可以参考S404中对平板电脑向第一触控笔发送第一打码信息的介绍,此处不予赘述。
S409、第二触控笔接收来自平板电脑的第二打码信息。
在本申请实施例中,第二触控笔接收来自平板电脑的第二打码信息之后,可以按照第一采样时间和第一采样间隔,周期性向平板电脑发送第二频率的电磁波信号和携 带有第二压感标识的压感数据。
示例性的,如图6中的(c)所示,在一个时间周期内,第二触控笔可以在时间601接收上行同步信号,可以按照第一采样时间603发送电磁波信号,并且每间隔一次第一采样间隔602发送一次电磁波信号。例如,假如第一采样时间为1毫秒,第一采样间隔为3毫秒,则在第二触控笔与平板电脑完成同步之后,在每个时间周期内,第二触控笔每间隔3毫秒发送一次电磁波信号。
需要说明的是,第二触控笔接收来自平板电脑的第二打码信息的方式,可以参考S405中对第一触控笔接收来自平板电脑的第一打码信息的介绍,此处不予赘述。
可以理解的是,第二触控笔可以按照第一采样时间发送电磁波信号。如此,可以保障第二触控笔发送电磁波信号之后,平板电脑可以接收到第二触控笔发送的电磁波信号。并且,第二触控笔发送第二频率的电磁波信号和携带有第二压感标识的压感数据,可以使平板电脑根据第二压感标识和第二频率,确定第二触控笔的触控轨迹,并在触控屏上显示第二触控笔的触控轨迹。
需要说明的是,在平板电脑与多个触控笔连接的情况下,会影响平板电脑的性能(例如加快电量消耗、降低处理能力),降低了用户的使用体验。
在一些实施例中,平板电脑可以根据已经与平板电脑建立连接的触控笔的数量,判断是否与触控笔(例如第二触控笔)。
本申请实施例提供一种触控笔的连接方法,如图7所示,在平板电脑与第二触控笔建立连接(即S406)之前,该触控笔的连接方法可以包括S701-S703。
S701、平板电脑接收第二操作。
其中,第二操作用于触发平板电脑与第二触控笔建立连接。
需要说明的是,本申请实施例对第二操作不作限定。例如,第二操作可以为平板电脑吸附第二触控笔的操作。又例如,第二操作可以为平板电脑开启蓝牙功能的操作。
S702、响应于第二操作,平板电脑确定第一连接数是否小于预设连接数阈值。
其中,第一连接数为已经与平板电脑建立连接的触控笔的数量。示例性的,假如平板电脑与触控笔A、触控笔B和触控笔C建立连接,则第一连接数为3。
需要说明的是,本申请实施例对预设连接数阈值不作限定。例如,预设连接数阈值可以为4。又例如,预设连接数阈值可以为5。又例如,预设连接数阈值可以为7。本申请实施例对保存预设连接数阈值的方式不作限定。例如,可以由开发人员设置预设连接数阈值。又例如,可以由用户自主设定预设连接数阈值。
一种可能的实现方式中,平板电脑可以获取第一连接数。之后,平板电脑可以比较第一连接数与预设连接数阈值。若第一连接数小于预设连接数阈值,平板电脑则可以与第二触控笔建立连接(即执行S406)。
可以理解的是,第一连接数小于预设连接数阈值,则说明平板电脑的负载较低,平板电脑可以与第二触控笔建立连接。如此,不仅可以保障多个用户通过多个触控笔在平板电脑操作,而且降低了对平板电脑性能的影响,提高了用户的使用体验。
若第一连接数等于或者大于预设连接数阈值,平板电脑则可以执行S703。
S703、若第一连接数等于或者大于预设连接数阈值,平板电脑断开与第三触控笔之间的连接。
一种可能的设计中,第三触控笔可以为已经与平板电脑建立连接的任一触控笔。
需要说明的是,平板电脑断开与第三触控笔之间的连接的方式,可以参考常规技术中两个电子设备之间断开连接(例如蓝牙连接)的方法,此处不予赘述。
在一些实施例中,在平板电脑断开与第三触控笔之间的连接之后,平板电脑可以与第二触控笔建立连接(即执行S406)。
示例性的,假如预设连接数阈值为3,已经与平板电脑建立连接的触控笔包括:触控笔A、触控笔B、触控笔C。响应于第二操作(例如触控笔D吸附到平板电脑),平板电脑可以断开与触控笔A(或者触控笔B、或者触控笔C)之间的连接。之后,平板电脑可以与触控笔D建立连接。
可以理解的是,第一连接数等于预设连接数阈值,则说明平板电脑的负载较高。在平板电脑断开与其他触控笔之间的连接之后,平板电脑可以与第二触控笔建立连接。如此,不仅可以保障用户随时使用新的触控笔在平板电脑操作,而且维持了平板电脑连接触控笔的数量,降低了对平板电脑性能的影响,提高了用户的使用体验。
可选的,第三触控笔可以为与平板电脑建立连接的触控笔中,剩余电量最低的触控笔。具体的,平板电脑可以获取每一个与平板电脑建立连接的触控笔的剩余电量。之后,平板电脑可以比较每个触控笔的剩余电量,确定剩余电量最低的触控笔。
需要说明的是,平板电脑获取与平板电脑建立连接的触控笔的剩余电量的方式,可以参考常规技术中电子设备获取与该电子设备连接的另一个电子设备的剩余电量的方法,此处不予赘述。
可以理解的是,平板电脑断开剩余电量最低的触控笔,可以保障保持连接的触控笔的可用时长。如此,能够提高用户的使用体验。
可选的,第三触控笔还可以为与平板电脑建立连接的触控笔中,连接时长最长的触控笔。也就是说,第三触控笔可以为与平板电脑建立连接的触控笔中,第一个与平板电脑建立连接的触控笔。具体的,平板电脑可以获取与每个触控笔的连接时长。之后,平板电脑可以比较每个触控笔的连接时长,确定连接时长最长的触控笔。
可以理解的是,第一个连接的触控笔继续被使用的概率较低。如此,断开第一个连接的触控笔,可以降低影响其他用户使用触控笔的概率,提高了用户的使用体验。
需要说明的是,平板电脑主动断开与触控笔之间的连接,可能会导致用户无法使用该触控笔,影响用户的使用体验。
在一些实施例中,若第一连接数等于或者大于预设连接数阈值,平板电脑可以提示用户,由用户选择断开连接的触控笔。具体的,在平板电脑与第三触控笔断开连接之前,平板电脑可以显示第一提示消息,该第一提示消息用于指示断开与平板电脑连接的触控笔。之后,平板电脑可以接收用户的第一操作,该第一操作用于触发平板电脑断开与第三触控笔的连接。响应于第一操作,平板电脑断开与第三触控笔之间的连接。
示例性的,假如预设连接数阈值为3,已经与平板电脑建立连接的触控笔包括:触控笔A、触控笔B、触控笔C。如图8所示,平板电脑可以显示第一提示消息801,该第一提示消息801包括:触控笔A选项、触控笔B选项、触控笔C选项,该第一提示消息801还包括“确定”按钮和“取消”按钮,“确定”按钮用于触发平板电脑断 开与选择的触控笔之间的连接,“取消”按钮用于触发平板电脑不显示第一提示消息801,即不断开已经连接的触控笔。可选的,第一提示消息801还可以包括提示信息,例如“当前连接的触控笔的数量已经达到阈值,请断开以下任一触控笔,以保障平板电脑可以与新的触控笔建立连接”。之后,响应于第一操作,平板电脑可以断开与触控笔C之间的连接。
可以理解的是,平板电脑显示第一提示消息,用户可以根据自身需求操作平板电脑断开与触控笔之间的连接。如此,可以减小断开触控笔对用户的影响,提高了用户的使用体验。
需要说明的是,在平板电脑与触控笔(即第一触控和第二触控笔)完成同步,并且完成对触控笔的配置(即S401-S409)之后,平板电脑可以根据触控笔的电磁波信号频率和压感信息,在触摸屏显示触控笔的触控轨迹。其中,压感信息包括压感数据和压感标识。
本申请实施例提供一种触控笔的连接方法,如图9所示,该触控笔的连接方法还可以包括S901-S910。
S901、第一触控笔向平板电脑发送第一频率的电磁波信号。
在一些实施例中,第一触控笔按照第一采样时间,向平板电脑发送第一频率的电磁波信号。结合图6中的(b)可知,在一个时间周期内,第一触控笔可以按照第一采样时间603发送电磁波信号,并且每间隔一次第一采样间隔602发送一次电磁波信号。
这样一来,可以保障平板电脑能够接收到第一触控笔的电磁波信号。
S902、平板电脑接收第一频率的电磁波信号。
在一些实施例中,平板电脑可以在第一采样时间接收第一频率的电磁波信号。示例性的,结合图6中的(a)可知,在一个时间周期内,平板电脑可以在第一采样时间603接收电磁波信号。
S903、第一触控笔向平板电脑发送第一压感信息。
其中,第一压感信息包括第一压感标识和第一触控笔的压感数据。
在一些实施例中,第一触控笔可以通过蓝牙技术向平板电脑发送第一压感信息。
S904、平板电脑接收来自第一触控笔的第一压感信息。
S905、第二触控笔向平板电脑发送第二频率的电磁波信号。
在一些实施例中,第二触控笔按照第一采样时间,向平板电脑发送第二频率的电磁波信号。结合图6中的(c)可知,在一个时间周期内,第二触控笔可以按照第二采样时间603发送电磁波信号,并且每间隔一次第一采样间隔602发送一次电磁波信号。
S906、平板电脑接收第二频率的电磁波信号。
在一些实施例中,平板电脑可以在第一采样时间接收第一频率的电磁波信号。
S907、第二触控笔向平板电脑发送第二压感信息。
其中,第二压感信息包括第二压感标识和第二触控笔的压感数据。
在一些实施例中,第二触控笔可以通过蓝牙技术向平板电脑发送第二压感信息。
S908、平板电脑接收来自第二触控笔的第二压感信息。
S909、平板电脑根据第一压感信息、第二压感信息、第一对应关系和第二对应关系,确定目标电磁波信号。
其中,目标电磁波信号为作用于触摸屏的触控笔的电磁波信号。示例性的,假如第一触控笔作用于平板电脑的触摸屏,则目标电磁波信号为第一触控笔的电磁波信号。又例如,假如第二触控笔作用于平板电脑的触摸屏,则目标电磁波信号为第二触控笔的电磁波信号。又例如,假如第一触控笔和第二触控笔均作用于平板电脑的触摸屏,则目标电磁波信号包括第一触控笔的电磁波信号和第二触控笔的电磁波信号。
在一些实施例中,平板电脑中保存有预设压感数据阈值。平板电脑可以根据第一压感信息、第二压感信息和预设压感数据阈值,确定第一触控笔和第二触控笔是否作用于触摸屏。具体的,平板电脑可以将第一压感信息中的第一触控笔的压感数据与预设压感数据阈值比较,将第二压感信息中的第二触控笔的压感数据与预设压感数据阈值比较。若第一压感信息中的第一触控笔的压感数据大于预设压感数据阈值,平板电脑则第一触控笔作用于触摸屏。若第一压感信息中的第一触控笔的压感数据小于预设压感数据阈值,平板电脑则确定第一触控笔未作用于触摸屏。若第二压感信息中的第二触控笔的压感数据大于预设压感数据阈值,平板电脑则确定第二触控笔作用于触摸屏。若第二压感信息中的第二触控笔的压感数据小于预设压感数据阈值,平板电脑则确定第二触控笔未作用于触摸屏。
示例性的,假如预设压感数据为0。若第一触控笔的压感数据为3,第二触控笔的压感数据为0,平板电脑则确定第一触控笔作用于触摸屏,第二触控笔未作用于触摸屏。若第一触控笔的压感数据为2,第二触控笔的压感数据为4,平板电脑则确定第一触控笔和第二触控笔均作用于触摸屏。
可以理解的是,根据压感数据确定触控笔是否作用于触摸屏,可以避免由于误触或者触控笔未作用于触摸屏,而导致显示屏显示触控轨迹。如此,可以提高用户的使用体验。
在本申请实施例中,在平板电脑确定作用于触摸屏的触控笔之后,平板电脑可以根据第一压感标识、第二压感标识、第一对应关系和第二对应关系,确定目标电磁波信号。具体的,若第一触控笔的压感数据大于预设压感数据阈值,平板电脑则根据第一压感标识和第一对应关系确定第一频率,将第一频率的电磁波信号作为目标电磁波信号。若第二触控笔的压感数据大于预设压感数据阈值,平板电脑则根据第二压感标识和第二对应关系确定第二频率,将第二频率的电磁波信号作为目标电磁波信号。若第一触控笔的压感数据大于预设压感数据阈值,且第二触控笔的压感数据大于预设压感数据阈值,平板电脑则根据第一压感标识和第一对应关系确定第一频率,根据第二压感标识和第二对应关系确定第二频率,将第一频率的电磁波信号和第二频率的电磁波信号作为目标电磁波信号。
示例性的,请参考表1,其示出了触控笔的压感数据的标识和触控笔的电磁波信号的频率之间的对应关系。
表1
触控笔 | 标识 | 电磁波信号的频率 |
触控笔A | 01 | 50Hz |
触控笔B | 02 | 70Hz |
结合表1可知,假如触控笔A的压感数据均大于预设压感数据阈值,平板电脑则 可以将50Hz的电磁波信号作为目标电磁波信号。假如触控笔A和触控笔B的压感数据均大于预设压感数据阈值,平板电脑则可以将50Hz的电磁波信号和70Hz的电磁波信号作为目标电磁波信号。
可以理解的是,平板电脑根据触控笔的压感信息可以识别作用于触摸屏的触控笔。并且,触控笔的压感数据的标识与触控笔的电磁波信号存在对应关系。这样一来,平板电脑可以确定作用于触摸屏的触控笔的电磁波信号,进而显示相应的触控轨迹。
S910、平板电脑根据目标电磁波信号,显示触控轨迹。
在一些实施例中,在平板电脑确定目标电磁波信号之后,平板电脑可以根据电磁波信号,确定触控笔作用于触摸屏的位置,显示触控笔的触控轨迹。具体的,若目标电磁波信号为第一电磁波信号,平板电脑则可以根据第一电磁波信号,显示第一触控轨迹,第一触控轨迹为第一触控笔作用于触摸屏的触控轨迹。若目标电磁波信号为第二电磁波信号,平板电脑则可以根据第二电磁波信号显示触控轨迹,第二触控轨迹为第二触控笔作用于触摸屏的触控轨迹。若目标电磁波信号包括第一电磁波信号和第二电磁波信号,平板电脑则可以根据第一电磁波信号显示第一触控轨迹,并根据第二电磁波信号显示第二触控轨迹。
可以理解的是,平板电脑根据目标电磁波信号,显示作用于触摸屏的触控笔的触控轨迹。这样一来,能够保障多个触控笔同时作用于触摸屏时,平板电脑可以识别并显示相应的触控笔的触控轨迹。如此,可以保障多个用户同时通过触控笔操作平板电脑,提高了用户的操作效率,改善了用户的使用体验。
需要说明的是,平板电脑获取电磁波信号可能存在延迟,这样可能导致平板电脑显示的触控笔的触控轨迹不准确,影响用户的使用体验。
在一些实施例中,平板电脑可以根据目标电磁波信号和预设预测算法,显示触控轨迹。其中,该预设预测算法用于预测作用于触摸屏的触控笔的触控轨迹。本申请实施例对预设预测算法不作限定。
需要说明的是,具体对于平板电脑根据目标电磁波信号和预设预测算法显示触控轨迹的方式,可以参考常规技术中电子设备预测触控笔的触控轨迹的方法,此处不予赘述。
可以理解的是,平板电脑通过预设预测算法预测触控轨迹,可以提高平板电脑显示触控轨迹的速度。如此,可以提高用户的使用体验。
在另一些实施例中,平板电脑可以根据接收到来自触控笔的压感数据的时间,识别不同的触控笔的压感数据。具体的,上述压感标识可以用于指示触控笔发送压感数据的时间。其中,第一压感标识用于指示第一触控笔发送压感数据的时间,第二压感标识用于指示第二触控笔发送压感数据的时间。在第一触控笔接收到来自平板电脑的第一压感标识之后,第一触控笔可以按照第一压感标识发送第一触控笔的压感数据。在第二触控笔接收到来自平板电脑的第二压感标识之后,第二触控笔可以按照第二压感标识发送第二触控笔的压感数据。
示例性的,假如第一压感标识为19:00:01、19:00:03和19:00:05,第二压感标识为19:00:02、19:00:04和19:00:06。则第一触控笔可以分别在19:00:01、19:00:03和19:00:05向平板电脑发送压感数据,第二触控笔可以分别在19:00:02、19:00:04和19:00:06向 平板电脑发送压感数据。
需要说明的是,在本申请实施例中,触控笔仅向平板电脑发送压感数据,不发送压感标识。也就是说,在本申请实施例中,S903可以替换为:第一触控笔向平板电脑发送第一触控笔的压感数据。S907可以替换为:第二触控笔向平板电脑发送第二触控笔的压感数据。
在本申请实施例中,平板电脑可以接收到来自第一触控笔的压感数据和来自第二触控笔的压感数据。在平板电脑接收到压感数据之后,平板电脑可以根据第一触控笔的压感数据、第二触控笔的压感数据、接收到压感数据的时间、第一对应关系和第二对应关系,确定目标电磁波信号。
示例性的,请参考表2,其示出了触控笔的压感数据的标识和触控笔的电磁波信号的频率之间的对应关系。
表2
触控笔 | 标识 | 电磁波信号的频率 |
触控笔A | 19:00:01和19:00:03 | 50Hz |
触控笔B | 19:00:02和19:00:04 | 70Hz |
结合表2可知,假如平板电脑在19:00:01接收到的压感数据大于预设压感数据阈值,平板电脑则可以将50Hz的电磁波信号作为目标电磁波信号。假如平板电脑在19:00:01和19:00:02接收到的压感数据均大于预设压感数据阈值,平板电脑则可以将50Hz的电磁波信号和70Hz的电磁波信号作为目标电磁波信号。
本申请实施例中,触控笔发送压感数据的时间等于平板电脑接收到压感数据的时间。
需要说明的是,触控笔发送压感数据的时间与平板电脑接收到压感数据的时间相同,是指触控笔发送压感数据的时间与平板电脑接收到压感数据的时间相同或者存在微小差异(例如触控笔发送压感数据的时间与平板电脑接收到压感数据的时间之间的时间差小于预设时间差,如0.01秒)。
可以理解的是,平板电脑根据接收到压感数据的时间可以识别不同触控笔的压感数据,进而可以根据压感数据识别作用于触摸屏的触控笔。并且,触控笔的压感数据的标识与触控笔的电磁波信号存在对应关系。这样一来,平板电脑可以确定作用于触摸屏的触控笔的电磁波信号,进而显示相应的触控轨迹。
在另一些实施例中,平板电脑可以不为触控笔配置压感标识,即平板电脑不向触控笔发送压感标识。在触控笔接收到平板电脑发送的预设频率之后,触控笔可以建立压感标识与预设频率之间的对应关系,向平板电脑发送该对应关系。具体的,在第一触控笔接收到第一频率之后,第一触控笔可以向平板电脑发送第一对应关系。之后,平板电脑可以接收第一对应关系,并保存第一对应关系。同理,在第二触控笔接收到第二频率之后,第二触控笔可以向平板电脑发送第二对应关系。之后,平板电脑可以接收第二对应关系,并保存第二对应关系。
需要说明的是,在本申请实施例中,第一压感标识可以为第一触控笔的媒体存取控制(Media Access Control,MAC)地址、设备ID(Divice ID)和唯一设备标识码(Unique Device Identifier,UDID)等。第二压感标识可以为第二触控笔的MAC地址、 Divice ID和UDID等。这样一来,可以保障第一压感标识与第二压感标识不同。
需要说明的是,平板电脑为触控笔分配的电磁波频率的数量较少。若与平板电脑连接的多个触控笔中,有至少两个触控笔的电磁波频率相同,则可能导致平板电脑无法准确地显示触控屏的触控轨迹。
在一些实施例中,平板电脑可以根据接收到来自触控笔的电磁波信号的时间,识别不同触控笔的电磁波信号。具体的,平板电脑可以向第一触控笔和第二触控笔发送不同的采样时间和采样间隔。之后,平板电脑可以根据接收到来自触控笔的电磁波信号的时间,识别第一触控笔的电磁波信号和第二触控笔的电磁波信号。
示例性的,结合图6中的(a)可知,平板电脑可以在第一采样时间603接收电磁波信号。如图10中的(a)所示,第一触控笔可以在采样时间1001发送电磁波信号,如图10中的(b)所示,第二触控笔可以在采样时间1002发送电磁波信号。也就是说,第一触控笔发送电磁波信号的时间与第二触控笔发送电磁波信号的时间不同,平板电脑接收到第一触控笔的电磁波信号的时间与平板电脑接收到第二触控笔的电磁波信号的时间不同。
可以理解的是,平板电脑可以根据接收到来自触控笔的电磁波信号的时间,识别不同触控笔的电磁波信号。如此,可以区分不同的触控笔的触控轨迹,进而可以保障多个触控笔可以同时对触摸屏进行操作,提高了用户的使用体验。
需要说明的是,多个触控笔在平板电脑上输入触控操作,平板电脑可以显示多个触控笔的触控轨迹。这样一来,可能导致用户无法区分不同触控笔书写的内容,影响用户的使用体验。
在一些实施例中,第一触控轨迹的线条信息与第二触控轨迹的线条信息不同。其中,线条信息用于构成触控轨迹,线条信息包括以下至少一项:线条宽度、线条颜色和线条形式。其中,线条形式包括实线和虚线。本申请实施例对虚线的形式不作限定。具体的,平板电脑中保存有多个预设线条信息。平板电脑可以为不同频率的电磁波信号配置不同的线条信息。
示例性的,如图11所示,平板电脑同时接收第一触控笔1101和或第二触控笔1102作用于触摸屏的触控操作,显示第一触控轨迹(例如字母“a”)和第二触控轨迹(例如字母“b”)。其中,字母“a”的线条宽度大于字母“b”的线条宽度。可选的,字母“a”是由实线构成,字母“b”是由虚线构成。可选的,字母“a”的颜色可以为黑色,字母“b”的颜色可以为蓝色(图中未示出)。
可以理解的是,不同触控笔在平板电脑显示的触控轨迹的线条信息不同,可以便于用户区分书写的内容,进而可以提高用户的使用体验。
上述主要从电子设备的角度对本申请实施例提供的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请所公开的实施例描述的各示例的一种触控笔的连接方法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是电子设备软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对触控笔的连接装置进行功能模块或者功能单元的划分,例如,可以对应各个功能划分各个功能模块或者功能单元,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块或者功能单元的形式实现。其中,本申请实施例中对模块或者单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
本申请另一些实施例提供了一种电子设备(如图3B所示的电子设备200)。该电子设备可以包括:存储器和一个或多个处理器。该存储器和处理器耦合。该电子设备还可以包括摄像头。或者,该电子设备可以外接摄像头。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。该电子设备的结构可以参考图3B所示的电子设备200的结构。
本申请实施例还提供一种芯片系统,如图12所示,该芯片系统包括至少一个处理器1201和至少一个接口电路1202。处理器1201和接口电路1202可通过线路互联。例如,接口电路1202可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1202可用于向其它装置(例如处理器1201)发送信号。示例性的,接口电路1202可读取存储器中存储的指令,并将该指令发送给处理器1201。当所述指令被处理器1201执行时,可使得电子设备(如图3B所示的电子设备200)执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在上述电子设备(如图3B所示的电子设备200)上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (11)
- 一种触控笔的连接方法,其特征在于,应用于电子设备连接多个触控笔,所述电子设备包括触摸屏,所述多个触控笔包括第一触控笔和第二触控笔,所述方法包括:所述电子设备与所述第一触控笔建立连接,所述电子设备与所述第二触控笔建立连接;所述电子设备发送上行同步信号;所述电子设备向所述第一触控笔发送第一打码信息,所述第一打码信息包括第一采样时间和第一频率,所述第一采样时间为接收电磁波信号的时间,所述第一频率为所述第一触控笔发送的电磁波信号的频率;所述电子设备向所述第二触控笔发送第二打码信息,所述第二打码信息包括所述第一采样时间和第二频率,所述第二频率为所述第二触控笔发送的电磁波信号的频率,所述第一频率与所述第二频率不同;所述电子设备在所述第一采样时间接收所述第一频率的电磁波信号、所述第二频率的电磁波信号,并接收来自所述第一触控笔的第一压感标识和所述第一触控笔的压感数据,以及来自所述第二触控笔的第二压感标识和所述第二触控笔的压感数据;其中,所述第一压感标识用于标识所述第一触控笔的压感数据,所述第二压感标识用于标识所述第二触控笔的压感数据,所述第二压感标识与所述第一压感标识不同;所述电子设备根据所述第一频率的电磁波信号、所述第二频率的电磁波信号、所述第一压感标识、所述第一触控笔的压感数据、所述第二压感标识和所述第二触控笔的压感数据,显示所述第一触控笔的触控轨迹和/或所述第二触控笔的触控轨迹;其中,所述电子设备中存储有第一对应关系和第二对应关系,所述第一对应关系为所述第一压感标识与所述第一频率之间的对应关系,所述第二对应关系为所述第二压感标识与所述第二频率之间的对应关系。
- 根据权利要求1所述的方法,其特征在于,所述第一打码信息还包括所述第一压感标识,所述第二打码信息还包括所述第二压感标识。
- 根据权利要求1所述的方法,其特征在于,在所述第一触控笔接收所述第一频率之后,所述方法还包括:所述电子设备接收来自所述第一触控笔的所述第一对应关系;在所述第二触控笔接收所述第二频率之后,所述方法还包括:所述电子设备接收来自所述第二触控笔的所述第二对应关系。
- 根据权利要求1-3中任一项所述的方法,其特征在于,所述电子设备根据所述第一频率的电磁波信号、所述第二频率的电磁波信号、所述第一压感标识、所述第一触控笔的压感数据、所述第二压感标识和所述第二触控笔的压感数据,显示第一触控笔和/或第二触控笔的触控轨迹,包括:若所述第一触控笔的压感数据大于预设压感数据阈值,所述电子设备则根据所述第一压感标识和所述第一对应关系,显示所述第一频率的电磁波信号对应的触控轨迹;若所述第二触控笔的压感数据大于所述预设压感数据阈值,所述电子设备则根据所述第二压感标识和所述第二对应关系,显示所述第二频率的电磁波信号对应的触控轨迹;若所述第一触控笔的压感数据大于预设压感数据阈值,且所述第二触控笔的压感数据大于所述预设压感数据阈值,所述电子设备则根据所述第一压感标识、所述第一对应关系、所述第二压感标识和所述第二对应关系,显示所述第一频率的电磁波信号对应的触控轨迹和所述第二频率的电磁波信号对应的触控轨迹;其中,所述第一频率的电磁波信号对应的触控轨迹为所述第一触控笔的触控轨迹,所述第二频率的电磁波信号对应的触控轨迹为所述第二触控笔的触控轨迹。
- 根据权利要求1-4中任一项所述的方法,其特征在于,所述第一触控笔的触控轨迹的线条信息与所述第二触控笔的触控轨迹的线条信息不同;所述线条信息包括以下至少一项:线条宽度、线条颜色和线条形式。
- 根据权利要求1-5中任一项所述的方法,其特征在于,在所述电子设备与所述第二触控笔建立连接之前,所述方法还包括:所述电子设备获取第一连接数,所述第一连接数为与所述电子设备建立连接的触控笔的数量;所述电子设备与所述第二触控笔建立连接,包括:若所述第一连接数小于预设连接数阈值,所述电子设备与所述第二触控笔建立连接。
- 根据权利要求6所述的方法,其特征在于,所述方法还包括:若所述第一连接数等于所述预设连接数阈值,所述电子设备则断开与第三触控笔之间的连接,所述第三触控笔为与所述电子设备建立连接的触控笔。
- 根据权利要求7所述的方法,其特征在于,所述第三触控笔为与所述电子设备建立连接的触控笔中,剩余电量最低的触控笔,或者,所述第三触控笔为与所述电子设备建立连接的触控笔中,连接时长最长的触控笔。
- 根据权利要求7或8所述的方法,其特征在于,在所述电子设备断开与第三触控笔之间的连接之前,所述方法还包括:所述电子设备显示第一提示消息,所述第一提示消息用于指示断开与所述电子设备连接的触控笔;所述电子设备则断开与第三触控笔之间的连接,包括:响应于用户的第一操作,所述电子设备断开与所述第三触控笔之间的连接,所述第一操作用于触发所述电子设备断开与所述第三触控笔的连接。
- 一种电子设备,其特征在于,所述电子设备包括:存储器、显示屏和一个或多个处理器;所述存储器、所述显示屏与所述处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1-9中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110955069.X | 2021-08-19 | ||
CN202110955069.XA CN114461092B (zh) | 2021-08-19 | 2021-08-19 | 一种触控笔的连接方法及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023020022A1 true WO2023020022A1 (zh) | 2023-02-23 |
Family
ID=81406346
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/091220 WO2023020022A1 (zh) | 2021-08-19 | 2022-05-06 | 一种触控笔的连接方法及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114461092B (zh) |
WO (1) | WO2023020022A1 (zh) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5963199A (en) * | 1996-02-09 | 1999-10-05 | Kabushiki Kaisha Sega Enterprises | Image processing systems and data input devices therefor |
CN107111409A (zh) * | 2015-01-16 | 2017-08-29 | 三星电子株式会社 | 触控笔、触摸面板以及具有上述装置的坐标指示系统 |
CN107969152A (zh) * | 2016-08-26 | 2018-04-27 | 深圳市汇顶科技股份有限公司 | 信号发射方法、信号解析方法、主动笔及触控屏 |
CN110959150A (zh) * | 2019-09-30 | 2020-04-03 | 深圳市汇顶科技股份有限公司 | 信号发射与接收方法、处理器芯片、主动笔、触摸屏 |
CN112558798A (zh) * | 2021-02-19 | 2021-03-26 | 深圳市千分一智能技术有限公司 | 主动笔的通信方法、装置、终端和存储介质 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10261604B2 (en) * | 2016-11-04 | 2019-04-16 | Microsoft Technology Licensing, Llc | Active stylus velocity correction |
CN110462568A (zh) * | 2017-12-14 | 2019-11-15 | 深圳市汇顶科技股份有限公司 | 触控笔的坐标确定方法、装置、电子设备及存储介质 |
CN110851006B (zh) * | 2020-01-16 | 2020-05-19 | 深圳市千分一智能技术有限公司 | 触控笔模式切换方法、装置、设备及可读存储介质 |
CN113178900B (zh) * | 2021-03-15 | 2023-02-17 | 荣耀终端有限公司 | 无线充电系统、芯片和无线充电电路 |
-
2021
- 2021-08-19 CN CN202110955069.XA patent/CN114461092B/zh active Active
-
2022
- 2022-05-06 WO PCT/CN2022/091220 patent/WO2023020022A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5963199A (en) * | 1996-02-09 | 1999-10-05 | Kabushiki Kaisha Sega Enterprises | Image processing systems and data input devices therefor |
CN107111409A (zh) * | 2015-01-16 | 2017-08-29 | 三星电子株式会社 | 触控笔、触摸面板以及具有上述装置的坐标指示系统 |
CN107969152A (zh) * | 2016-08-26 | 2018-04-27 | 深圳市汇顶科技股份有限公司 | 信号发射方法、信号解析方法、主动笔及触控屏 |
CN110959150A (zh) * | 2019-09-30 | 2020-04-03 | 深圳市汇顶科技股份有限公司 | 信号发射与接收方法、处理器芯片、主动笔、触摸屏 |
CN112558798A (zh) * | 2021-02-19 | 2021-03-26 | 深圳市千分一智能技术有限公司 | 主动笔的通信方法、装置、终端和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114461092A (zh) | 2022-05-10 |
CN114461092B (zh) | 2022-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240094841A1 (en) | Method Applied to Signal Synchronization System, System, Stylus, and Electronic Device | |
CN104484063B (zh) | 主动式电容笔及触控装置 | |
CN116466867B (zh) | 笔迹绘制方法、装置、电子设备和可读存储介质 | |
WO2023040602A1 (zh) | 一种电子设备连接方法及电子设备 | |
WO2023185210A1 (zh) | 控制方法、触控笔及触控系统 | |
WO2023169029A1 (zh) | 一种降低设备功耗的方法和电子设备 | |
WO2023273526A1 (zh) | 笔迹绘制方法、装置、电子设备和可读存储介质 | |
CN114217700B (zh) | 一种触控笔的切换方法和输入设备 | |
WO2023020022A1 (zh) | 一种触控笔的连接方法及电子设备 | |
WO2018166057A1 (zh) | 一种输出触控信号的方法和电子设备 | |
CN118034527A (zh) | 检测笔相对于电子设备的定位 | |
WO2023134408A9 (zh) | 一种信息传输方法和装置 | |
CN107506059A (zh) | 主动笔及利用主动笔控制移动终端的光标的方法 | |
CN114995665A (zh) | 触控笔的笔尖寿命提示方法、触控笔及电子设备 | |
EP4206885A1 (en) | Functional mode switching method, electronic device, and system | |
CN115599229B (zh) | 一种触控笔的控制方法和触控笔设备 | |
CN116339547B (zh) | 触控笔压力值传输方法、电子设备及系统 | |
US12050739B2 (en) | Method and system for generating note | |
CN116088695B (zh) | 系统升级方法及相关装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22857340 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |