Stylus switching method and device, chip, stylus and electronic equipment

By actively sending device identification information by electronic devices, the stylus can quickly switch to the target device, solving the problem of low switching efficiency of stylus between multiple devices and improving user experience.

CN119225548APending Publication Date: 2024-12-31GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310802883.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The switching efficiency of the stylus when switching between multiple electronic devices is low, resulting in poor user experience.

Method used

By actively sending device identification information to the stylus, the stylus can quickly and accurately send pressure-sensitive signals to the current electronic device, realizing rapid switching.

Benefits of technology

Improves the switching efficiency of the stylus between multiple electronic devices and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225548A_ABST
    Figure CN119225548A_ABST
Patent Text Reader

Abstract

The invention discloses a switching method and device of a touch pen, a chip, the touch pen and electronic equipment, the switching method of the touch pen is applied to the touch pen, and the method comprises the following steps: establishing a first wireless communication connection with first electronic equipment; if the stylus is switched from the second electronic device to the first electronic device for touch operation, responding to the received device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection; if yes, a first pressure sensing signal is sent to the first electronic device through the first wireless communication connection, and the first pressure sensing signal is a pressure sensing signal generated when the touch pen makes contact with a touch screen of the first electronic device; wherein the second wireless communication connection is wireless communication connection established on the basis of a capacitance path formed when the touch pen is in contact with the first electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of touch technology, and more specifically, to a stylus switching method and device, a chip, a stylus, and an electronic device. Background Art

[0002] With the development of touch technology, more and more electronic devices use touch mode for human-computer interaction. In addition to finger contact operation, the touch display screen (also referred to as touch screen) of the electronic device can also be operated by touch pen.

[0003] With the development of communication technology, the application of multi-electronic device collaboration scenarios is becoming more and more extensive. In the related art, when a stylus pen switches between multiple electronic devices, the switching efficiency is low, resulting in a poor user experience. Summary of the invention

[0004] The embodiments of the present application provide a stylus switching method and device, a chip, a stylus, and an electronic device. The various aspects involved in the embodiments of the present application are introduced below.

[0005] In a first aspect, a switching method for a stylus is provided, which is applied to the stylus, and the method comprises: establishing a first wireless communication connection with a first electronic device; if the stylus switches from a second electronic device to the first electronic device for touch operation, in response to receiving device identification information of the first electronic device sent by the first electronic device via a second wireless communication connection, sending a first pressure-sensing signal to the first electronic device via the first wireless communication connection, the first pressure-sensing signal being a pressure-sensing signal generated when the stylus contacts a touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus contacts the first electronic device.

[0006] In a second aspect, a method for switching a stylus pen is provided, which is applied to a first electronic device, and the method comprises: establishing a first wireless communication connection with the stylus pen; if the stylus pen switches from the second electronic device to the first electronic device for touch operation, sending device identification information of the first electronic device to the stylus pen through a second wireless communication connection; based on the device identification information, receiving a first pressure-sensing signal sent by the stylus pen through the first wireless communication connection, the first pressure-sensing signal being a pressure-sensing signal generated when the stylus pen contacts the touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device.

[0007] According to a third aspect, a switching device for a stylus pen is provided, which is applied to the stylus pen, and comprises: a first communication module, which is used to establish a first wireless communication connection with a first electronic device; a first sending module, which is used to send a first pressure-sensing signal to the first electronic device through the first wireless communication connection if the stylus pen switches from the second electronic device to the first electronic device for touch operation, in response to receiving device identification information of the first electronic device sent by the first electronic device through a second wireless communication connection, wherein the first pressure-sensing signal is a pressure-sensing signal generated when the stylus pen contacts the touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device.

[0008] In a fourth aspect, a switching device for a stylus pen is provided, which is applied to a first electronic device, and the device includes: a second communication module, used to establish a first wireless communication connection with the stylus pen; a third sending module, used to send device identification information of the first electronic device to the stylus pen through the second wireless communication connection if the stylus pen switches from the second electronic device to the first electronic device for touch operation; a first receiving module, used to receive a first pressure-sensitive signal sent by the stylus pen through the first wireless communication connection based on the device identification information, the first pressure-sensitive signal being a pressure-sensitive signal generated when the stylus pen contacts the touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device.

[0009] In a fifth aspect, a chip is provided, comprising: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the method described in the first aspect or the second aspect.

[0010] In a sixth aspect, a stylus pen is provided, comprising a processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the stylus pen to execute the method described in the first aspect.

[0011] In a seventh aspect, an electronic device is provided, comprising a processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the electronic device to execute the method described in the second aspect.

[0012] In an eighth aspect, a computer-readable storage medium is provided, on which executable code is stored. When the executable code is executed, the method as described in the first aspect or the second aspect can be implemented.

[0013] The present application embodiment provides a switching method for a stylus, which is applied to a stylus, and the switching method includes: establishing a first wireless communication connection with a first electronic device; if the stylus switches from performing a touch operation on a second electronic device to performing a touch operation on a first electronic device, in response to receiving the device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection, a first pressure-sensitive signal is sent to the first electronic device through the first wireless communication connection, and the first pressure-sensitive signal is a pressure-sensitive signal generated when the stylus contacts the touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus contacts the first electronic device. It can be seen that this solution can actively send the device identification information of the current electronic device to the stylus through touch communication (i.e., the second wireless communication) by the electronic device, that is, when the stylus switches from the second electronic device to the first electronic device, it will actively notify the stylus of the electronic device (the first electronic device) where it is currently located, so that the stylus can quickly and accurately send the first pressure-sensitive signal to the current electronic device (the first electronic device), thereby helping to improve the switching efficiency of the stylus between multiple electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 is a structural diagram of a touch control system provided in one embodiment of the present application.

[0015] Figure 2A to Figure 2D is a schematic diagram of a switching method of a stylus pen in the related art.

[0016] Figure 3 It is a flowchart of a method for switching a touch pen provided in an embodiment of the present application.

[0017] Figure 4A to Figure 4D is a schematic diagram of a stylus switching method provided in an embodiment of the present application.

[0018] Figure 5 1 is a schematic diagram of the structure of a switching device for a touch pen provided in an embodiment of the present application.

[0019] Figure 6 It is a structural schematic diagram of a switching device for a stylus pen provided in another embodiment of the present application.

[0020] Figure 7 This is a structural diagram of a touch control system provided by another embodiment of the present application.

[0021] Figure 8 It is a schematic diagram of the structure of a stylus pen provided in one embodiment of the present application.

[0022] Fig. 9It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0023] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0024] Before describing the technical solution of the embodiment of the present application, the touch control system of the embodiment of the present application is first described in conjunction with the accompanying drawings. Figure 1 , is a schematic diagram of a touch control system provided in an embodiment of the present application. The touch control system 100 may include an electronic device 110 and a stylus 120. It should be understood that the electronic device 110 includes a touch display screen (not shown in the figure), which may also be referred to as a touch screen.

[0025] The stylus pen 120 may be, for example, an active stylus pen. The stylus pen 120 may include a circuit unit that can actively output a touch signal to the electronic device 110 for reception.

[0026] In some embodiments, when the stylus 120 moves onto the touch screen of the electronic device 110, the stylus 120 can send a touch signal to the electronic device 110 based on touch communication. The electronic device 110 can determine the position coordinate information of the stylus 120 on the touch screen through the receiving position of the touch signal. At the same time, the pressure signal and display line parameters (such as the color, shape, thickness and other parameter information of the line) of the stylus 120 on the touch screen can be sent to the electronic device 110 via Bluetooth connection. Then, according to the above-mentioned pressure signal, display line parameters and the position coordinate information of the stylus 120 on the touch screen, the touch operation of the electronic device 110 can be realized, and the touch operation is, for example, click, slide, write, draw and other operation functions.

[0027] In some embodiments, the touch communication may be wireless communication established based on a capacitive path formed when the stylus 120 contacts the electronic device 110 .

[0028] In some embodiments, the touch signal emitted by the stylus 120 may be, for example, a square wave signal, a sine wave signal, a triangle wave signal, etc.

[0029] It should be noted that the electronic device 110 in the embodiment of the present application may refer to an electronic device with a touch screen. The electronic device 110 may be a mobile phone, a tablet computer (Pad), a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a smart large screen, etc., and the present application does not make any specific restrictions on this.

[0030] With the development of communication technology, the application of multi-electronic device collaboration scenarios is becoming more and more extensive. In the related art, a stylus switching method is proposed, which can enable the stylus to switch freely between multiple electronic devices. Figure 2A to Figure 2D , the switching method of the above-mentioned stylus pen is illustrated by examples.

[0031] Figure 2A to Figure 2D This is a schematic diagram of the principle of the switching method of the stylus provided in the related art, see Figure 2A , the stylus can be connected to the tablet and the mobile phone via Bluetooth. When the stylus is used to perform touch operations on the tablet, the tablet is the main device of the stylus, that is, the pressure-sensing signal of the stylus can be output to the tablet via Bluetooth, and the tablet can display the track on the screen of the tablet based on the received pressure-sensing signal and touch signal.

[0032] See also Figure 2B , the stylus can switch from the tablet to the mobile phone to write. Since the stylus does not sense the switch, the pressure signal of the stylus will still be sent to the main device before the switch (i.e. the tablet). For the tablet, it only receives the pressure signal but not the touch signal. Accordingly, the tablet can send event 1 to the stylus to indicate that the tablet receives the pressure signal but not the touch signal. It can be understood that when the stylus is writing on the mobile phone, the mobile phone can obtain the touch signal output by the stylus but fails to receive the pressure signal. Accordingly, the mobile phone sends event 2 to the stylus to indicate that the mobile phone receives the touch signal but fails to receive the pressure signal.

[0033] See also Figure 2C , the stylus can start the multicast mode based on the received event 1, event 2, or event 1 and event 2, that is, send pressure-sensitive signals to the electronic devices (including tablets and mobile phones) connected to it in a multicast manner. Correspondingly, since the mobile phone side receives the touch signal and the pressure-sensitive signal, the mobile phone determines that the ink output conditions are met, and the mobile phone can display the track on the screen based on the received pressure-sensitive signal and touch signal.

[0034] See also Figure 2D The stylus can determine the main device after switching (i.e., the mobile phone) based on different types of events received, such as event 1 for indicating that a pressure signal is received but a touch signal is not received, and / or event 2 for indicating that a touch signal is received but a pressure signal is not received, and send the subsequently generated pressure signal in a directed manner to the mobile phone side, thereby realizing the switching of the stylus from the tablet to the mobile phone.

[0035] It can be seen that the above-mentioned stylus switching method requires the electronic device to first determine the type of signal received and then report the corresponding event. Next, the stylus also needs to determine the event type reported by each electronic device and then start the multicast mode. Finally, the master device after switching is determined according to the event type to finally complete the switching. The switching process is relatively time-consuming, resulting in low switching efficiency and poor user experience.

[0036] In order to solve the above problems, the present application embodiment provides a switching method of a stylus, which is applied to a stylus, and the switching method includes: establishing a first wireless communication connection with a first electronic device; if the stylus switches from performing a touch operation on a second electronic device to performing a touch operation on a first electronic device, in response to receiving the device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection, a first pressure-sensing signal is sent to the first electronic device through the first wireless communication connection, and the first pressure-sensing signal is a pressure-sensing signal generated when the stylus contacts the touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus contacts the first electronic device. It can be seen that this solution can actively send the device identification information of the current electronic device to the stylus through touch communication (i.e., the second wireless communication) by the electronic device, that is, when the stylus switches from the second electronic device to the first electronic device, it will actively notify the stylus of the electronic device (the first electronic device) where it is currently located, so that the stylus can quickly and accurately send the first pressure-sensing signal to the current electronic device (the first electronic device), thereby helping to improve the switching efficiency of the stylus between multiple electronic devices.

[0037] It should be noted that the switching method of the stylus in the embodiment of the present application can be applied to the scenario where the stylus is switched between multiple electronic devices. The multiple electronic devices may include a first electronic device and a second electronic device. The second electronic device may refer to the main device where the stylus is located before switching (that is, before switching, the stylus performs touch operations on the second electronic device). The first electronic device may refer to the main device after switching (that is, after switching, the stylus performs touch operations on the first electronic device). The first electronic device and the second electronic device may be any type of electronic device mentioned above. For example, the first electronic device may be a tablet computer, and the second electronic device may be a mobile phone. For another example, the first electronic device is a mobile phone, and the second electronic device is another mobile phone. This application does not impose specific restrictions on this. For the convenience of description, the following mainly takes the switching of the stylus from the second electronic device to the first electronic device as an example to illustrate the switching method of the stylus in the embodiment of the present application.

[0038] It should be noted that the stylus switching method in the embodiment of the present application is mainly illustrated from the perspective of the stylus and the first electronic device, and the stylus switching method corresponds to the stylus side and the first electronic device side. As an example, the stylus sends a pressure-sensing signal to the first electronic device, which can also be understood as the first electronic device receiving the pressure-sensing signal sent by the stylus.

[0039] Combined with the following Figure 3 The switching method of the stylus pen in the embodiment of the present application is described in detail. Figure 3 As shown, the stylus switching method 300 can be applied to a stylus and a first electronic device. The stylus can be, for example, Figure 1 The first electronic device may be, for example, Figure 1 The electronic device 110 in the embodiment of the present invention. The stylus switching method 300 may include steps S310 to S320.

[0040] In step S310, a first wireless communication connection is established with a first electronic device.

[0041] In some embodiments, the stylus can establish a first wireless communication connection with the first electronic device while establishing a first wireless communication connection with the second electronic device.

[0042] It is understandable that before switching, the stylus can perform touch operations on the second electronic device. For example, the stylus can send a pressure signal (i.e., a pressure signal generated when the stylus contacts the touch screen of the second electronic device) to the second electronic device through the first wireless connection. At the same time, the stylus can also send a touch signal to the second electronic device based on touch communication. Based on the pressure signal and the touch signal, a touch operation on the second electronic device can be implemented. The touch operation is, for example, click, slide, write, draw, and other operation functions.

[0043] It is understandable that when the stylus pen contacts the second electronic device, capacitive coupling may be performed, thereby generating a capacitive path, and the touch communication is formally based on the wireless communication established by the capacitive path.

[0044] In some embodiments, the signal waveform of the touch signal may be, for example, a square wave signal, a sine wave signal, a triangle wave signal, etc.

[0045] In some embodiments, the first wireless communication connection may be, for example, any one of the following wireless communications: Bluetooth connection, Wi-Fi connection, Zigbee connection, ultra-wideband connection, etc., and this application does not impose any specific limitation on this.

[0046] In step S320, if the stylus is switched from the second electronic device to the first electronic device for touch operation, in response to receiving the device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection, a first pressure-sensing signal is sent to the first electronic device through the first wireless communication connection. The first pressure-sensing signal is a pressure-sensing signal generated when the stylus touches the touch screen of the first electronic device.

[0047] It should be noted that the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device. The second wireless communication may also be referred to as touch communication or pen-screen communication.

[0048] It can be understood that if the stylus is switched from the second electronic device to the first electronic device for touch operation, the first electronic device can send the device identification information of the first electronic device to the stylus through the second wireless communication connection; based on the device identification information, the stylus can send the first pressure signal to the first electronic device through the first wireless communication connection.

[0049] As an example, in response to the stylus switching from the second electronic device to the first electronic device for touch operation, the stylus will establish a second wireless communication connection with the first electronic device. Then, the first electronic device can send a synchronization signal to the stylus in the uplink synchronization signal time slot through the second wireless communication connection, wherein the synchronization signal can carry the device identification information of the first electronic device; after receiving the synchronization signal, the stylus can obtain the device identification information of the first electronic device from the synchronization signal; in response to receiving the device identification information of the first electronic device, the stylus can send a first pressure-sensitive signal to the first electronic device through the first wireless communication connection.

[0050] It can be seen that when the stylus switches from the second electronic device to the first electronic device, it will trigger the second wireless communication connection. At this time, the first electronic device will actively send the device identification information of the electronic device where the stylus is currently located (the first electronic device) to the stylus, so that the stylus can quickly and accurately send the first pressure-sensitive signal to the electronic device after the switch (the first electronic device), instead of continuing to send the first pressure-sensitive signal to the electronic device before the switch (the second electronic device), thereby helping to achieve rapid switching of touch operations from the second electronic device to the first electronic device, thereby improving the user experience.

[0051] In some embodiments, the first electronic device can send a synchronization signal to the stylus in the uplink synchronization signal time slot through the second wireless communication connection, and the synchronization signal can be used to align the clock information of the stylus with the clock information on the first electronic device side. Furthermore, the synchronization signal is also used to trigger the stylus to output a touch signal to the first electronic device side through the second wireless communication connection based on the aligned clock information.

[0052] It can be understood that in the embodiment of the present application, by carrying the device identification information of the first electronic device in the synchronization signal, the stylus can obtain the electronic device (the first electronic device) to which the stylus is located after switching before sending the touch signal to the first electronic device, so that the first pressure sensing signal can be quickly sent to the switched electronic device (the first electronic device), further improving the switching efficiency of the stylus.

[0053] In some embodiments, after the stylus establishes a first wireless communication connection with the first electronic device, the stylus can assign a corresponding device number to the first electronic device, that is, the stylus can send device identification information of the first electronic device (that is, the device identification information assigned by the stylus) to the first electronic device through the first wireless communication connection.

[0054] In some embodiments, the stylus can also establish a first wireless communication connection with a second electronic device, and then assign a corresponding device number to the second electronic device, that is, the stylus can send the device identification information of the second electronic device (that is, the device identification information assigned by the stylus) to the second electronic device through the first wireless communication connection.

[0055] The device identification information in the embodiment of the present application may refer to information that uniquely identifies the current electronic device. The device identification information may be, for example, the device ID number of the electronic device. As an example, the device ID number assigned by the stylus to the first electronic device may be 1, and the device ID number assigned by the stylus to the second electronic device may be 2.

[0056] In order to understand the above-mentioned stylus switching method, the following takes the stylus switching between multiple electronic devices as an example, where the multiple electronic devices include a first electronic device, a second electronic device, ..., an Nth electronic device, where N is a positive integer greater than 1. Figure 4A to Figure 4D The switching method of the touch pen is described in detail with examples.

[0057] See also Figure 4A , the stylus can be connected to multiple electronic devices through Bluetooth. Then, the stylus assigns different ID numbers to the multiple electronic devices and transmits the assigned numbers to the corresponding electronic devices via Bluetooth. For example, ID number 1 can be sent to the first electronic device, ID number 2 to the second electronic device, ..., ID number N to the Nth electronic device.

[0058] See also Figure 4B , the stylus performs touch operation on the first electronic device, and the first electronic device can send a synchronization signal to the stylus in the uplink synchronization signal time slot through the touch communication connection, wherein the synchronization signal carries ID number 1; after receiving ID number 1, the stylus can send a first pressure-sensing signal to the first electronic device through the Bluetooth communication connection, wherein the first pressure-sensing signal is a pressure-sensing signal generated when the stylus contacts the touch screen of the first electronic device. Accordingly, since the first electronic device receives the touch signal and the pressure-sensing signal, the touch operation on the first electronic device can be realized based on the pressure-sensing signal and the touch signal.

[0059] See also Figure 4C, the stylus switches from the first electronic device to the second electronic device for uplink touch operation, and the second electronic device can send a synchronization signal to the stylus in the uplink synchronization signal time slot through the touch communication connection, wherein the synchronization signal carries ID number 2; after receiving ID number 2, the stylus can send a second pressure-sensitive signal to the second electronic device through the Bluetooth communication connection, wherein the second pressure-sensitive signal is the pressure-sensitive signal generated when the stylus contacts the touch screen of the second electronic device. Accordingly, since the second electronic device receives the touch signal and the pressure-sensitive signal, the touch operation of the second electronic device can be realized based on the pressure-sensitive signal and the touch signal.

[0060] See also Figure 4D , the stylus switches from the second electronic device to the Nth electronic device for touch operation, and the Nth electronic device can send a synchronization signal to the stylus in the uplink synchronization signal time slot through the touch communication connection, wherein the synchronization signal carries the ID number N; after receiving the ID number N, the stylus can send the Nth pressure-sensing signal to the Nth electronic device through the Bluetooth communication connection, wherein the Nth pressure-sensing signal is the pressure-sensing signal generated when the stylus contacts the touch screen of the Nth electronic device. Accordingly, since the Nth electronic device receives the touch signal and the pressure-sensing signal, the touch operation of the Nth electronic device can be realized based on the pressure-sensing signal and the touch signal.

[0061] It is understandable that the synchronization signal sent by each electronic device to the stylus is different. In other words, the synchronization signal sent by each electronic device carries the ID number corresponding to the electronic device.

[0062] From the above content, it can be seen that the stylus can assign corresponding ID numbers to multiple devices. Then, when the stylus touches different electronic devices, the different electronic devices can send corresponding synchronization signals to the stylus (that is, the synchronization signal will carry the ID number of the corresponding electronic device). In this way, the stylus can quickly identify which electronic device is currently performing a touch operation, and then quickly and accurately transmit the corresponding pressure signal to the corresponding electronic device through the Bluetooth connection, thereby helping to improve the switching efficiency of the stylus.

[0063] Combination of the above Figures 1 to 4D The method embodiment of the present application is described in detail. Figures 5 to 9 The device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0064] Figure 5FIG. 5 is a schematic diagram of a structure of a switching device for a stylus pen provided in an embodiment of the present application. The switching device 500 for a stylus pen can be applied to a stylus pen, and the switching device 500 for a stylus pen can include: a first communication module 510 and a first sending module 520 .

[0065] The first communication module 510 is used to establish a first wireless communication connection with a first electronic device.

[0066] The first sending module 520 is used for sending a first pressure-sensing signal to the first electronic device through the first wireless communication connection if the stylus is switched from the second electronic device to the first electronic device for touch operation, in response to receiving device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection, wherein the first pressure-sensing signal is a pressure-sensing signal generated when the stylus is in contact with the touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus is in contact with the first electronic device.

[0067] Optionally, in response to receiving device identification information of the first electronic device sent by the first electronic device via a second wireless communication connection, sending a first pressure-sensitive signal to the first electronic device via the first wireless communication connection, including: receiving a synchronization signal sent by the first electronic device via the second wireless communication connection in an uplink synchronization signal time slot, wherein the synchronization signal carries the device identification information of the first electronic device; obtaining the device identification information of the first electronic device from the synchronization signal; and in response to receiving the device identification information of the first electronic device, sending the first pressure-sensitive signal to the first electronic device via the first wireless communication connection.

[0068] Optionally, the apparatus 500 further includes: a second sending module 530, configured to send device identification information of the first electronic device to the first electronic device through the first wireless communication connection after the first wireless communication connection is established with the first electronic device.

[0069] Optionally, the device identification information is a device ID number.

[0070] Optionally, the first wireless communication connection is a Bluetooth connection, a Wi-Fi connection or a Zigbee connection.

[0071] Figure 6 FIG. 6 is a schematic diagram of a stylus pen switching device according to another embodiment of the present application. The stylus pen switching device 600 may be applied to a first electronic device, and may include: a second communication module 610 , a third sending module 620 , and a first receiving module 630 .

[0072] The second communication module 610 is used to establish a first wireless communication connection with the stylus pen.

[0073] The third sending module 620 is configured to send device identification information of the first electronic device to the stylus via a second wireless communication connection if the stylus is switched from the second electronic device to the first electronic device for touch operation.

[0074] The first receiving module 630 is used to receive a first pressure-sensitive signal sent by the stylus through the first wireless communication connection based on the device identification information, wherein the first pressure-sensitive signal is a pressure-sensitive signal generated when the stylus contacts the touch screen of the first electronic device; wherein the second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus contacts the first electronic device.

[0075] Optionally, sending the device identification information of the first electronic device to the stylus via the second wireless communication connection includes: sending a synchronization signal to the stylus in an uplink synchronization signal time slot via the second wireless communication connection; wherein the synchronization signal carries the device identification information of the first electronic device.

[0076] Optionally, the apparatus 600 further includes: a second receiving module 640, configured to receive the device identification information sent by the stylus through the first wireless communication connection after the first wireless communication connection with the stylus is established.

[0077] Optionally, the device identification information is a device ID number.

[0078] Optionally, the first wireless communication connection is a Bluetooth connection, a Wi-Fi connection or a Zigbee connection.

[0079] Figure 7 FIG. 1 shows a schematic diagram of the structure of a touch control system provided by an embodiment of the present application. Figure 7 As shown, the touch control system 700 may include an electronic device 710 and a stylus 720. The electronic device 710 may include a touch screen sensor 701, a sensor controller 702, and a system controller 703. The electronic device 710 may be any type of electronic device mentioned above.

[0080] The touch screen sensor 701 can be used to detect the touch signal sent by the stylus 720 to determine the position coordinates of the stylus on the touch screen. The sensor controller 702 is the main controller for bidirectional communication with the stylus 701. The sensor controller 702 sends a synchronization signal to the stylus 720 based on the touch communication via the touch screen sensor 701. The system controller 703 can establish Bluetooth communication with the stylus 720, and the stylus 720 can send a pressure signal to the system controller 703 through Bluetooth communication. In addition, the system controller 703 can perform system control on the functions of various parts of the electronic device 710 including the touch screen sensor 701 and the sensor controller 702. The system controller 703 can be, for example, a central processing unit (CPU), an application processor (AP), etc., and this application does not impose specific restrictions on this.

[0081] Understandably, Figure 7 The touch control system in can be used to implement the above-mentioned stylus switching method. As an example, the stylus 720 can assign an ID number (for example, an ID number 1) to the electronic device 710, and transmit the assigned ID number 1 to the system controller 703 via Bluetooth. The system controller 703 can transmit the ID number 1 to the sensor controller 702. If the stylus 720 switches from other electronic devices to the electronic device 710 for uplink touch operation, the sensor controller 702 can send a synchronization signal to the stylus via the touch screen sensor 701 in the uplink synchronization signal time slot, wherein the synchronization signal carries the ID number 1; after receiving the ID number 1, the stylus 720 can send a pressure signal to the system controller 703 via the Bluetooth communication connection, wherein the pressure signal is a pressure signal generated when the stylus 720 contacts the touch screen of the electronic device 710. At the same time, the stylus 720 can send a touch signal to the touch screen sensor 701 via touch communication. Accordingly, based on the pressure-sensing signal and the touch signal, a touch operation on the electronic device 710 can be implemented, thereby achieving the purpose of switching the stylus pen 720 from other electronic devices to the electronic device 710.

[0082] Combine the following Figure 8 The present invention introduces a stylus pen 800 in an embodiment of the present application. The stylus pen 800 can be used to implement the method applied to the stylus pen described in the above method embodiment.

[0083] The stylus pen 800 may include one or more processors 810. The processor 810 may support the stylus pen 800 to implement the method applied to the stylus pen described in the above method embodiment.

[0084] The processor 810 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit. Alternatively, the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0085] The stylus pen 800 may further include one or more memories 820. The memory 820 stores a program that can be executed by the processor 810 to control the stylus pen 800 to execute the method applied to the stylus pen described in the above method embodiment. The memory 820 may be independent of the processor 810 or integrated in the processor 810.

[0086] The memory 820 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, the memory 820 may also be various types of random access memory (RAM), such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous-link DRAM (SLDRAM) and direct ram-bus RAM (DR RAM).

[0087] The stylus pen 800 may further include a transceiver 830. The processor 810 may communicate with other devices through the transceiver 830. For example, the processor 810 may transmit and receive data with other devices through the transceiver 830.

[0088] Combine the following Fig. 9 The electronic device 900 in the embodiment of the present application is introduced. The electronic device 900 can be used to implement the method applied to the electronic device described in the above method embodiment.

[0089] It should be understood that the electronic device 900 can be any type of electronic device mentioned above.

[0090] The electronic device 900 may include one or more processors 910. The processor 910 may support the electronic device 900 to implement the method applied to the electronic device described in the foregoing method embodiment.

[0091] The processor 910 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit. Alternatively, the processor may be other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0092] The electronic device 900 may further include one or more memories 920. The memory 920 stores a program that can be executed by the processor 910 to control the electronic device 900 to execute the method applied to the electronic device described in the above method embodiment. The memory 920 may be independent of the processor 910 or integrated in the processor 910.

[0093] The memory 920 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or a flash memory. The volatile memory may be a random access memory, which is used as an external cache. By way of example but not limitation, the memory 920 may also be various types of random access memories, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously connected dynamic random access memory, and direct memory bus random access memory.

[0094] The electronic device 900 may further include a transceiver 930. The processor 910 may communicate with other devices through the transceiver 930. For example, the processor 910 may perform data transmission and reception with other devices through the transceiver 930.

[0095] The present application also provides a chip in an embodiment, including a processor, which can be used to call and run a computer program from a memory, so that a device equipped with the chip performs the method described in the above method embodiment. It is understood that the processor can be any type of processor mentioned above. It is understood that the memory can be independent of the chip or integrated in the chip.

[0096] The embodiment of the present application also provides a machine-readable storage medium for storing a program, and the program enables a computer to execute the method in each embodiment of the present application.

[0097] The embodiment of the present application also provides a computer program product. The computer program product includes a program. The program enables a computer to execute the method in each embodiment of the present application.

[0098] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a machine-readable storage medium, or transmitted from one machine-readable storage medium to another machine-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The machine-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0099] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0100] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0102] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0103] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for switching a touch pen, characterized in that: Applied to the stylus pen, the method comprises: Establishing a first wireless communication connection with a first electronic device; If the stylus is switched from the second electronic device to the first electronic device for touch operation, in response to receiving device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection, a first pressure-sensing signal is sent to the first electronic device through the first wireless communication connection, where the first pressure-sensing signal is a pressure-sensing signal generated when the stylus is in contact with the touch screen of the first electronic device; The second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device.

2. The method according to claim 1, characterized in that In response to receiving the device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection, sending a first pressure-sensing signal to the first electronic device through the first wireless communication connection, comprising: receiving a synchronization signal sent by the first electronic device in an uplink synchronization signal time slot through the second wireless communication connection, wherein the synchronization signal carries device identification information of the first electronic device; Acquire device identification information of the first electronic device from the synchronization signal; In response to receiving the device identification information of the first electronic device, the first pressure-sensing signal is sent to the first electronic device through the first wireless communication connection.

3. The method according to claim 2, characterized in that After establishing the first wireless communication connection with the first electronic device, the method further includes: The device identification information of the first electronic device is sent to the first electronic device through the first wireless communication connection.

4. The method according to any one of claims 1 to 3, characterized in that The device identification information is the device ID number.

5. The method according to any one of claims 1 to 3, characterized in that: The first wireless communication connection is a Bluetooth connection, a Wi-Fi connection or a Zigbee connection.

6. A method for switching a touch pen, characterized in that: Applied to a first electronic device, the method includes: establishing a first wireless communication connection with the stylus; If the stylus is switched from the second electronic device to the first electronic device for touch operation, sending device identification information of the first electronic device to the stylus via the second wireless communication connection; Based on the device identification information, receiving a first pressure-sensing signal sent by the stylus through the first wireless communication connection, where the first pressure-sensing signal is a pressure-sensing signal generated when the stylus touches a touch screen of the first electronic device; The second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device.

7. The method according to claim 6, characterized in that The sending the device identification information of the first electronic device to the stylus through the second wireless communication connection includes: Sending a synchronization signal to the stylus pen in an uplink synchronization signal time slot via the second wireless communication connection; The synchronization signal carries device identification information of the first electronic device.

8. The method according to claim 7, characterized in that After establishing the first wireless communication connection with the stylus, the method further includes: The device identification information sent by the stylus through the first wireless communication connection is received.

9. The method according to any one of claims 6 to 8, characterized in that: The device identification information is the device ID number.

10. The method according to any one of claims 6 to 8, characterized in that: The first wireless communication connection is a Bluetooth connection, a Wi-Fi connection or a Zigbee connection.

11. A switching device for a touch pen, characterized in that: The device is applied to the stylus pen, and the device includes: A first communication module, used to establish a first wireless communication connection with a first electronic device; a first sending module, configured to send a first pressure-sensing signal to the first electronic device through the first wireless communication connection in response to receiving device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection if the stylus is switched from the second electronic device to the first electronic device for touch operation, wherein the first pressure-sensing signal is a pressure-sensing signal generated when the stylus is in contact with the touch screen of the first electronic device; The second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device.

12. The device according to claim 11, characterized in that In response to receiving the device identification information of the first electronic device sent by the first electronic device through the second wireless communication connection, sending a first pressure-sensing signal to the first electronic device through the first wireless communication connection, comprising: receiving a synchronization signal sent by the first electronic device in an uplink synchronization signal time slot through the second wireless communication connection, wherein the synchronization signal carries device identification information of the first electronic device; Acquire device identification information of the first electronic device from the synchronization signal; In response to receiving the device identification information of the first electronic device, the first pressure-sensing signal is sent to the first electronic device through the first wireless communication connection.

13. A switching device for a touch pen, characterized in that: Applied to a first electronic device, the device comprises: A second communication module, used to establish a first wireless communication connection with the stylus; a third sending module, configured to send device identification information of the first electronic device to the stylus through a second wireless communication connection if the stylus is switched from the second electronic device to the first electronic device for touch operation; A first receiving module, configured to receive, based on the device identification information, a first pressure-sensing signal sent by the stylus pen through the first wireless communication connection, wherein the first pressure-sensing signal is a pressure-sensing signal generated when the stylus pen contacts the touch screen of the first electronic device; The second wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the first electronic device.

14. The device according to claim 13, characterized in that The sending the device identification information of the first electronic device to the stylus through the second wireless communication connection includes: Sending a synchronization signal to the stylus pen in an uplink synchronization signal time slot via the second wireless communication connection; The synchronization signal carries device identification information of the first electronic device.

15. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 10.

16. A touch pen, characterized in that: include: A processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the stylus to execute the method as described in any one of claims 1-5.

17. An electronic device, characterized in that: include: A processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to control the electronic device to execute the method as described in any one of claims 6 to 10.

18. A computer-readable storage medium having executable code stored thereon, characterized in that: The code is used to implement the method according to any one of claims 1 to 10.