Stylus switching methods, electronic devices and storage media
By switching communication protocols between the stylus and multiple electronic devices, the problem of seamless switching between multiple devices is solved, achieving convenient multi-device applicability and an efficient switching process.
Patent Information
- Application Number
- CN202311840040.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2043-12-27
AI Technical Summary
Existing touch technology cannot support seamless switching of styluses between multiple electronic devices, making it impossible to use styluses freely on multiple devices.
The stylus establishes a communication connection with the first electronic device, transmits the corresponding communication protocol, and detects switching operations to switch to the second electronic device, achieving seamless switching between different devices, including through touch operation, drawing patterns, or receiving switching commands.
It enables seamless switching of the stylus between multiple electronic devices, simplifies the switching process, and improves user experience and device compatibility.
Smart Images

Figure CN120255715B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch technology, and more particularly to a method for switching a stylus, an electronic device, and a storage medium. Background Technology
[0002] With the development of touch technology, more and more electronic devices are adopting touch for human-computer interaction. In addition to finger touch, electronic devices' touchscreens can also be operated using styluses or pen styluses.
[0003] Using a stylus pen to write on electronic devices such as mobile phones, tablets, and laptops brings great convenience and creative enjoyment to users, which has made styluses pen a standard feature of electronic devices.
[0004] Currently, styluses / pencils are used for writing on only one paired electronic device. However, with the development of communication technology, applications of multiple electronic devices operating collaboratively are becoming increasingly widespread. However, current touch technology cannot support the free switching of styluses / pencils between multiple electronic devices. Summary of the Invention
[0005] This application provides a method for switching styluses, an electronic device, and a storage medium, which enables seamless / free switching of a stylus between multiple electronic devices, facilitating the use of a single stylus on multiple electronic devices.
[0006] In a first aspect, this application provides a method for switching a stylus, the method comprising: establishing a communication connection between the stylus and a first electronic device; transmitting a first communication protocol corresponding to the first electronic device to the stylus; detecting a switching operation; and responding to the switching operation by transmitting a second communication protocol corresponding to the second electronic device to a second electronic device.
[0007] Optionally, the first electronic device is different from the second electronic device, and the switching operation is used to indicate switching the first electronic device that interacts with the stylus to the second electronic device.
[0008] A first communication protocol is used to instruct a first electronic device to respond to a first input operation of a stylus pen on the first electronic device, and the stylus pen can be used on the first electronic device based on the first communication protocol.
[0009] The second communication protocol is used to instruct the second electronic device to respond to a second input operation of the stylus pen on the second electronic device, and the stylus pen can be used on the second electronic device based on the second communication protocol.
[0010] The stylus switching method provided in this application embodiment uses different communication protocols for different electronic devices. The stylus establishes a communication connection with a first electronic device and transmits a first communication protocol corresponding to that first electronic device. Based on this first communication protocol, the stylus can be used on the first electronic device. When the stylus detects a switching operation, it responds by transmitting a second communication protocol corresponding to the second electronic device. This allows the stylus to be used on the second electronic device even when no communication connection is established (e.g., no Bluetooth connection is established). In other words, the stylus switching method provided in this application embodiment allows the stylus to be used in pairs with the first electronic device, and can also be used on the second electronic device even when not paired with it. This achieves seamless / free switching between the first and second electronic devices, enabling one stylus to be used seamlessly / freely between multiple electronic devices, which is beneficial for using one stylus on multiple electronic devices.
[0011] Furthermore, the stylus is easy to use when switching between multiple electronic devices, which improves the speed of switching between multiple electronic devices and enhances the user experience.
[0012] In conjunction with the first aspect, in some implementations of the first aspect, the stylus includes a pen body, and the switching operation includes a touch operation on the pen body and / or an operation of drawing a specified pattern using the stylus.
[0013] Touch operations can include swiping, single-clicking, double-clicking, double-clicking, and long-pressing.
[0014] This implementation method simplifies the switching process, making it easy for users to switch between electronic devices and improving the speed at which the stylus can switch between multiple electronic devices, thus enhancing the user experience.
[0015] In conjunction with the first aspect, in some implementations of the first aspect, after the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device, the stylus switching method provided in this application further includes: the stylus receiving a switching command sent by the first electronic device; and the stylus transmitting the second communication protocol corresponding to the second electronic device to the second electronic device based on the switching command.
[0016] The switching command is generated by the first electronic device in response to a touch operation, which includes touching the switching control displayed on the display interface of the first electronic device. The switching command is used to indicate that the first electronic device interacting with the stylus is switched to the second electronic device.
[0017] Optionally, a switching command is generated when the toggle control is touched.
[0018] Optionally, the display interface of the first electronic device may also display prompts corresponding to the switching control. The prompts are used to prompt the user to use the stylus on the second electronic device, and may also be used to prompt the user to switch the first electronic device interacting with the stylus to the second electronic device.
[0019] In this implementation, when the stylus receives a switching command, it responds by transmitting a second communication protocol corresponding to the second electronic device. This allows the stylus to be used on the second electronic device even when no communication connection has been established. In other words, the stylus switching method provided in this application allows the stylus to be used in pairs with the first electronic device, and even without pairing with the second electronic device, it can still be used on the second electronic device. This achieves seamless / free switching between the first and second electronic devices, enabling one stylus to seamlessly / freely switch between multiple electronic devices, which is beneficial for using one stylus on multiple electronic devices.
[0020] Furthermore, the stylus offers a simple switching process when switching between multiple electronic devices, improving the speed of switching between devices and enhancing the user experience. This also increases the competitiveness of the stylus product, providing users with more convenient and diverse application scenarios.
[0021] In conjunction with the first aspect, in some implementations of the first aspect, after transmitting the second communication protocol corresponding to the second electronic device to the second electronic device, the handwriting pen switching method provided in this application further includes: the handwriting pen re-establishing a communication connection with the first electronic device, and the handwriting pen transmitting the first communication protocol corresponding to the first electronic device to the first electronic device.
[0022] In this implementation, the stylus is paired with a first electronic device. Even without establishing a communication connection with a second electronic device, the stylus can be used on the second electronic device by transmitting a communication protocol corresponding to the second electronic device. When the user wants to use the stylus on the first electronic device again, a communication connection is established between the stylus and the first electronic device, allowing the stylus to flexibly switch between the first and second electronic devices, which is beneficial for using a single stylus on multiple electronic devices.
[0023] In conjunction with the first aspect, in some implementations of the first aspect, after transmitting the second communication protocol corresponding to the second electronic device to the second electronic device, the handwriting pen switching method provided in this application further includes: the handwriting pen detecting a reverse switching operation; the reverse switching operation being used to indicate switching the second electronic device interacting with the handwriting pen to the first electronic device; and the handwriting pen responding to the reverse switching operation by transmitting the first communication protocol corresponding to the first electronic device to the first electronic device.
[0024] The reverse switching operation is different from the switching operation. The reverse switching operation can include a reverse swipe operation on the pen body, where the swipe direction is opposite to that of the regular swipe operation.
[0025] In this implementation, the stylus is paired with a first electronic device. Even without establishing a communication connection with a second electronic device, the stylus can be used on the second electronic device by transmitting a communication protocol corresponding to the second electronic device. When the user wants to use the stylus on the first electronic device again, it is not necessary to re-establish a communication connection between the stylus and the first electronic device. Instead, after detecting a reverse switching operation, the first communication protocol is sent to the first electronic device, allowing the stylus to be used on the first electronic device again. This achieves seamless / free switching between multiple electronic devices using a single stylus, which is beneficial for using a single stylus on multiple electronic devices.
[0026] In conjunction with the first aspect, in some implementations of the first aspect, the handwriting pen switching method provided by this application further includes: the handwriting pen detecting an uplink coding signal; the handwriting pen parsing the uplink coding signal to obtain a parsing result; when the parsing result indicates that the uplink coding signal is a signal emitted by a first electronic device, the handwriting pen transmitting a first communication protocol corresponding to the first electronic device to the first electronic device; or, when the parsing result indicates that the uplink coding signal is a signal emitted by a second electronic device, the handwriting pen transmitting a second communication protocol corresponding to the second electronic device to the second electronic device.
[0027] Optionally, the uplink coding signal has signal characteristics, which may include at least one of coding voltage amplitude, coding frequency, coding period, duty cycle, etc.
[0028] Optionally, the uplink coding signal may include identification data, data content, and verification data.
[0029] This implementation method analyzes the detected uplink coding signal to determine which electronic device to send the corresponding communication protocol to, enabling the stylus to be used on that device. Users don't need to manually switch styluses; the stylus can be seamlessly switched between multiple electronic devices without the user's awareness. The switching process is simple, improving the speed of switching between multiple devices and enhancing the user experience. Simultaneously, it increases the competitiveness of stylus products, providing users with more convenient and diverse multi-functional scenarios.
[0030] In conjunction with the first aspect, in some implementations of the first aspect, the stylus switching method provided in this application further includes: when the stylus detects a target uplink coding signal, it transmits a first communication protocol corresponding to the first electronic device to the first electronic device. When the stylus does not detect a target uplink coding signal, it transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
[0031] In this implementation, the system determines whether to send a communication protocol corresponding to a specific electronic device based on whether the target uplink coding signal is detected. This enables the stylus to be used on that electronic device without requiring the user to perform a special switching operation. The stylus can be freely switched between multiple electronic devices without the user's awareness, and the switching process is simple. This improves the speed of switching between multiple electronic devices and enhances the user experience.
[0032] In conjunction with the first aspect, in certain implementations of the first aspect, when the stylus does not detect the target uplink coding signal, it transmits a second communication protocol corresponding to the second electronic device, including: the stylus does not detect the target uplink coding signal, but detects the touch signal and pressure signal generated by the stylus; the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device.
[0033] In this implementation, to avoid situations where the target uplink coding signal is not detected because the user is not using the stylus, the touch and pressure signals generated by the stylus are detected when the stylus does not detect the target uplink coding signal. When the stylus does not detect the target uplink coding signal but both touch and pressure signals are detected, a second communication protocol corresponding to the second electronic device is transmitted. This ensures that the electronic device is switched according to the user's needs, improving the user experience and increasing the accuracy of electronic device switching.
[0034] In conjunction with the first aspect, in some implementations of the first aspect, the stylus switching method provided in this application further includes: when switching from a first electronic device interacting with the stylus to a second electronic device, the stylus vibrates using a first vibration mode. When switching from a second electronic device interacting with the stylus to a first electronic device, the stylus vibrates using a second vibration mode.
[0035] Optionally, the first vibration mode may include rapid point vibration, and the second vibration mode may include long vibration.
[0036] In this implementation, different vibration patterns can be used to notify the user that they have successfully switched to the electronic device interacting with the stylus, thus improving the user experience.
[0037] Secondly, this application provides a stylus, comprising: one or more processors; one or more memories; the memories storing one or more programs, which, when executed by the processor, cause the stylus to perform the methods described in the first aspect and any possible implementation thereof.
[0038] Thirdly, this application provides a chip including a processor. The processor is used to read and execute a computer program stored in a memory to perform the methods in the first aspect and any possible implementation thereof.
[0039] Optionally, the chip may also include memory, which is connected to the processor via circuitry or wires.
[0040] Optionally, the chip may also include a communication interface.
[0041] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a stylus, causes the stylus to perform the methods of the first aspect and any possible implementation thereof.
[0042] Fifthly, this application provides a computer program product comprising: computer program code, which, when run on a stylus pen, causes the stylus pen to execute the methods in the first aspect and any possible implementation thereof.
[0043] In a sixth aspect, this application provides a device system including a stylus pen and an electronic device. The electronic device includes a touch screen, on which the stylus pen can perform operations such as writing and drawing. The stylus pen and the electronic device cooperate with each other to enable the stylus pen to perform the methods in the first aspect and any possible implementation thereof.
[0044] In a seventh aspect, this application provides an electronic device, comprising: one or more processors; one or more memories; the memories storing one or more programs, which, when executed by the processor, cause the electronic device to perform the methods described in the first aspect and any possible implementation thereof in conjunction with a stylus.
[0045] The technical effects achieved by the second, third, fourth, fifth, sixth, and seventh aspects mentioned above are similar to the technical effects achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0046] Figure 1(a) is a schematic diagram of an application scenario of a stylus provided in an embodiment of this application;
[0047] Figure 1(b) is a schematic diagram of another application scenario of the stylus provided in the embodiment of this application;
[0048] Figure 1(c) is a schematic diagram of another application scenario of a stylus provided in the embodiments of this application;
[0049] Figure 2 This application provides an illustration of an application scenario where a stylus is used on multiple electronic devices.
[0050] Figure 3 A schematic diagram of the structure of a stylus 100 provided in an embodiment of this application;
[0051] Figure 4 This is a schematic diagram of the hardware structure of an electronic device shown in an exemplary embodiment of this application;
[0052] Figure 5 This is a schematic flowchart illustrating a method for switching styluses according to an embodiment of this application;
[0053] Figure 6 This is a schematic diagram illustrating different sliding positions of a stylus according to an embodiment of this application;
[0054] Figure 7 This is a schematic diagram illustrating a sliding operation according to an embodiment of this application;
[0055] Figure 8 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application;
[0056] Figure 9 This is a schematic flowchart illustrating yet another method for switching styluses according to an embodiment of this application;
[0057] Figure 10 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application;
[0058] Figure 11 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application;
[0059] Figure 12 This is a schematic diagram of a display interface shown in an embodiment of this application;
[0060] Figure 13 This is a schematic diagram of another display interface shown in an embodiment of this application;
[0061] Figure 14 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application;
[0062] Figure 15 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application;
[0063] Figure 16 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application;
[0064] Figure 17 This is a schematic diagram of an uplink coding signal shown in an embodiment of this application;
[0065] Figure 18 This is a schematic diagram illustrating the operation of an electronic device according to an embodiment of this application;
[0066] Figure 19 This is a schematic flowchart illustrating yet another method for switching styluses according to an embodiment of this application;
[0067] Figure 20 This is a schematic diagram illustrating the operation of another electronic device according to an embodiment of this application;
[0068] Figure 21 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application;
[0069] Figure 22 This is a schematic flowchart illustrating yet another method for switching styluses according to an embodiment of this application;
[0070] Figure 23 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation
[0071] The technical solutions in this application will now be described with reference to the accompanying drawings.
[0072] In the description of the embodiments of this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0073] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.
[0074] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0075] It should be noted that the stylus switching method provided in this application embodiment can be applied to any electronic device that supports the use of a stylus, and can seamlessly / freely switch styluses between multiple electronic devices.
[0076] In some embodiments of this application, the electronic device may be referred to as user equipment (UE), terminal equipment, etc. For example, the electronic device can be a smart screen, a portable Android device (PAD), a touchpad, a handheld device with wireless communication capabilities (such as a mobile phone), a wearable device (such as a smartwatch), a television, an in-vehicle electronic device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical care, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, a wireless terminal device in a smart home, or other devices or apparatus that support the use of a stylus. This application does not limit the specific type of electronic device.
[0077] To better understand the stylus switching method provided in the embodiments of this application, some terms involved in the embodiments of this application will be explained below so that those skilled in the art can understand them.
[0078] 1. Stylus
[0079] A stylus is also called a touch pen. In this embodiment of the application, the stylus may include an active stylus.
[0080] An active stylus pen, also known as an active pen or an active touch pen, emits a downward coding signal from its tip during use. Once detected, the electronic device executes the corresponding function of the stylus pen (such as handwriting or drawing).
[0081] 2. Reporting location
[0082] In the embodiments of this application, the reporting position refers to the position of the pen tip on the touch screen detected by the electronic device through the touch signal emitted by the antenna in the stylus when the pen tip comes into contact with the touch screen.
[0083] The above is a brief introduction to the terms used in the embodiments of this application, and will not be repeated below.
[0084] With the development of touch technology, more and more electronic devices are adopting touch for human-computer interaction. In addition to finger touch operation, electronic devices' touchscreens can also be operated using a stylus.
[0085] Using a stylus to write and draw on electronic devices such as mobile phones, tablets, laptops, and touchpads brings great convenience and creative enjoyment to users, while also improving productivity. This has led to styluses gradually becoming a standard feature of electronic devices. The application scenarios of the styluses and electronic devices involved in this application will be described below with reference to the accompanying drawings.
[0086] Please refer to Figure 1(a), which is a schematic diagram of an application scenario of a stylus provided in an embodiment of this application. This application scenario includes a stylus 100 and an electronic device 200. As shown in Figure 1(a), the stylus 100 can be an active stylus, and the electronic device 200 can be a tablet computer. The active stylus is paired with the tablet computer for use. For example, after the active stylus establishes a communication connection (such as a Bluetooth connection) with the tablet computer, the user uses the active stylus to perform input operations on the touch screen of the tablet computer, and the tablet computer responds to the input operation.
[0087] Please refer to Figure 1(b), which is a schematic diagram of another application scenario of the stylus provided in this application embodiment. As shown in Figure 1(b), the electronic device 200 can be a mobile phone, and the stylus 100 is used in conjunction with the mobile phone. Similarly, after the active stylus establishes a communication connection (such as a Bluetooth connection) with the mobile phone, the user uses the active stylus to perform input operations on the touch screen of the mobile phone, and the mobile phone responds to the input operation.
[0088] Please refer to Figure 1(c), which is a schematic diagram of another application scenario of a stylus provided in an embodiment of this application. As shown in Figure 1(c), the electronic device 200 can be a laptop computer, and the stylus 100 is paired with the laptop computer for use. Similarly, after the active stylus establishes a communication connection (such as a Bluetooth connection) with the laptop computer, the user uses the active stylus to perform input operations on the laptop computer's touch screen or pressure-sensitive touchpad, and the laptop computer responds to the input operation.
[0089] For example, handwriting and drawing can be achieved by directly touching the touch screen of the electronic device 200 using the stylus 100. Input from the stylus 100 can also be used to recognize control commands, etc., without limitation. These control commands may include commands to switch brushes, switch colors, switch to eraser mode, switch stroke thickness, and undo commands, etc.
[0090] The above mainly demonstrates application scenarios of using a stylus on a single electronic device. However, with technological advancements, users' demands for styluses and electronic devices are increasing. For example, more and more application scenarios require a single stylus to operate collaboratively across multiple electronic devices, meaning it needs to be used on multiple devices simultaneously. However, current touch technology cannot support seamless / free switching of a stylus between multiple electronic devices. For instance, in related technologies, after a stylus establishes a communication connection (such as Bluetooth) with an electronic device (e.g., a tablet), another electronic device (e.g., a laptop, touchpad) cannot establish a communication connection (e.g., Bluetooth) with the stylus, rendering it unusable on the other device. This prevents seamless / free switching of a stylus between multiple electronic devices, hindering its use on multiple devices.
[0091] In view of this, embodiments of this application provide a method for switching a stylus, the method comprising: establishing a communication connection between the stylus and a first electronic device; transmitting a first communication protocol corresponding to the first electronic device to the stylus; the first communication protocol being used to instruct the first electronic device to respond to a first input operation of the stylus on the first electronic device; the stylus detecting a switching operation; the switching operation being used to instruct switching the first electronic device interacting with the stylus to a second electronic device; the stylus responding to the switching operation by transmitting a second communication protocol corresponding to the second electronic device to the second electronic device; the second communication protocol being used to instruct the second electronic device to respond to a second input operation of the stylus on the second electronic device.
[0092] The stylus switching method provided in this application embodiment uses different communication protocols for different electronic devices. The stylus establishes a communication connection with a first electronic device and transmits a first communication protocol corresponding to that first electronic device to the first electronic device. Based on the first communication protocol, the stylus can be used on the first electronic device. When the stylus detects a switching operation, it transmits a second communication protocol corresponding to the second electronic device in response to the switching operation. This allows the stylus to be used on the second electronic device even when no communication connection is established with it (such as no Bluetooth connection). In other words, the stylus switching method provided in this application embodiment pairs the stylus with the first electronic device. Even when no communication connection is established with the second electronic device, the stylus can still be used on the second electronic device. This achieves seamless / free switching between the first electronic device interacting with the stylus and the second electronic device, enabling seamless / free switching of a single stylus between multiple electronic devices, which is beneficial for using a single stylus on multiple electronic devices.
[0093] Furthermore, the stylus is easy to use when switching between multiple electronic devices, which improves the speed of switching between multiple electronic devices and enhances the user experience.
[0094] The following description, in conjunction with the accompanying drawings, describes the application scenarios of the stylus involved in this application on various electronic devices.
[0095] Please see Figure 2 , Figure 2 This illustration shows an application scenario where a stylus is used on multiple electronic devices, as provided in an embodiment of this application. The application scenario includes a stylus 100, a first electronic device 200, and a second electronic device 300. It should be understood that in this example, the first electronic device 100 and the second electronic device 300 are different. Specifically, the first electronic device 200 can be a tablet computer, and the second electronic device 300 can be a laptop computer.
[0096] The stylus 100 establishes a communication connection (e.g., Bluetooth connection) with the first electronic device 200 (such as a tablet computer 200). For example, a user can trigger the stylus to power on, and after powering on, the stylus's Bluetooth module can be activated. Simultaneously, the user enables the Bluetooth function in the Bluetooth settings interface of the first electronic device 200 (such as the tablet computer 200). Figure 2As shown in (a), the user can place the stylus 100 on the top of the tablet computer 200, causing the stylus 100 to magnetically attach to the top of the tablet computer 200. A pairing prompt box will pop up on the touch screen of the tablet computer 200, displaying an image of the stylus 100, the stylus name, a cancel option, and a connect option. The user can click the connect option, and the tablet computer 200 will respond to the user's click, triggering the establishment of a Bluetooth connection between the stylus 100 and the tablet computer 200.
[0097] The stylus 100 sends a communication protocol corresponding to the tablet computer 200 to the tablet computer 200. Then, as... Figure 2 As shown in (b), a user can use the stylus 100 on the tablet computer 200. For example, the user uses the stylus 100 to perform input operations on the touch screen of the tablet computer 200, and the tablet computer 200 responds to the input operation.
[0098] At this point, if one wishes to continue using the stylus 100 on a second electronic device 300 (such as a laptop computer 300), a switching operation can be performed. For example, one can slide the stylus 100 across its surface or draw a specified pattern using the stylus 100. In response to this switching operation, the stylus 100 sends a communication protocol corresponding to the laptop computer 300, thereby switching the tablet computer 200 interacting with the stylus 100 to the laptop computer 300.
[0099] After that, as Figure 2 As shown in (c), a user can use the stylus 100 on the laptop 300. For example, the user uses the stylus 100 to perform an input operation on the touch screen of the laptop 300, and the laptop 300 responds to the input operation.
[0100] In this application scenario, the stylus 100 establishes a Bluetooth connection with the tablet computer 200, allowing it to be used on the tablet computer 200. Simultaneously, the stylus 100 can also be used on the laptop computer 300 without establishing a Bluetooth connection, achieving seamless / free switching between the tablet computer 200 and the laptop computer 300. This enables seamless / free switching between multiple electronic devices using a single stylus, facilitating its use on multiple devices. Furthermore, the switching process between multiple electronic devices is simple, improving the speed of switching and enhancing the user experience.
[0101] The application scenarios of the stylus involved in this application have been described above. The structure of the stylus is described below with reference to the accompanying drawings. Please refer to... Figure 3 , Figure 3 This is a structural schematic diagram of a stylus 100 provided in an embodiment of this application. Figure 3 As shown, the stylus 100 may include a pen tip 1011, a button 1012, a pen body 1013, and a main circuit board. The main circuit board is located in the pen body 1013, and an antenna is located in the pen tip 1011.
[0102] Specifically, the touch screen of the electronic device 200 is a capacitive touch screen with electrodes distributed on it. When the stylus 100 approaches or touches the capacitive touch screen, the portion of the stylus 100 that approaches or touches the capacitive touch screen (such as the stylus tip 1011) forms a capacitance with the electrodes near the corresponding position on the capacitive touch screen. Then, the stylus 100 emits a touch signal via an antenna, which is transmitted to the electronic device 200 via the main circuit board. After receiving the touch signal emitted by the antenna, the electronic device 200 can determine the position of the stylus tip 1011 on the touch screen.
[0103] Optionally, a touch sensor and a pressure sensor can also be provided in the pen body 1013 of the stylus 100. These sensors can be used to determine whether the stylus 100 is being held. For example, if a holding signal is detected by the touch sensor and a pressure signal is detected by the pressure sensor, it is determined that the stylus 100 is being held. Conversely, if no holding signal is detected by the touch sensor and no pressure signal is detected by the pressure sensor, it is determined that the stylus 100 is not being held.
[0104] It is worth noting that the touch sensor can also be used to detect the user's sliding operation on the pen body 1013. For example, when the user's finger slides on the pen body 1013, the touch sensor can detect the sliding direction and position of the user's finger on the pen body 1013.
[0105] Optionally, when a user's finger slides on the pen body 1013, the pressure sensor can also detect the sliding force of the user's finger on the pen body 1013.
[0106] Alternatively, a pressure sensor can be provided in the tip 1011 of the stylus 100. This pressure sensor can be used to detect the pressure of the tip 1011.
[0107] Alternatively, a battery assembly can be provided in the pen body 1013 of the stylus 100. This battery assembly is used to provide power to the main circuit board.
[0108] Optionally, the main circuit board may include a processor. The processor may include storage circuitry and processing circuitry to support various operations of the stylus 100. The storage circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other programmable read-only memory configured as a solid-state drive), volatile memory (e.g., static or dynamic random access memory), etc. The non-volatile memory and volatile memory can be used to store different communication protocols corresponding to different electronic devices, facilitating the subsequent transmission of different communication protocols between the stylus 100 and different electronic devices.
[0109] Optionally, the storage device of non-volatile memory, volatile memory, etc., can also be used to store different switching operations corresponding to different electronic devices, so that when the stylus 100 detects different switching operations, it can determine which electronic device to switch to based on the switching operation.
[0110] The processing circuitry in the processor can be used to control various operations of the stylus 100. For example, the processing circuitry may include one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application-specific integrated circuits, etc.
[0111] Optionally, the processor can adjust the line thickness of the pen tip 1011 when writing on the touch screen based on the pressure detected by the pressure sensor.
[0112] Optionally, an accelerometer may also be provided in the pen body 1013 of the stylus 100. The accelerometer may include a three-axis accelerometer and a three-axis gyroscope, and / or other components for measuring the motion of the stylus 100.
[0113] The triaxial accelerometer is used to collect the triaxial acceleration values of the stylus 100, which include acceleration values on the X-axis, Y-axis, and Z-axis.
[0114] The accelerometer can send triaxial acceleration values to the processor, which can then determine information such as the tilt angle, motion state, and trajectory of the stylus 100 based on these values. The motion state characterizes whether the stylus 100 is stationary or not.
[0115] Alternatively, additional sensors may be incorporated into the pen body 1013 of the stylus 100. These may include, for example, a temperature sensor, an ambient light sensor, a light-based proximity sensor, a magnetic sensor, and / or other sensors.
[0116] Optionally, a non-mechanical button can also be provided in the pen body 1013 of the stylus 100. This non-mechanical button, along with button 1012 (mechanical button), is used to collect press information from the user. For example, button 1012 can be used to control the stylus 100 to trigger various functions (e.g., power off, power on, switching between eraser and pen, etc.).
[0117] Understandably, depending on actual needs, the stylus 100 may also include a microphone, speaker, audio generator, vibrator, camera, data port, and other components. Users can use these components to provide commands to control the stylus 100 and the electronic device 200 that interacts with it. The stylus 100 can receive status information and other outputs (e.g., playing audio through the speaker, generating vibrations of different modes using the vibrator, etc.) through these components.
[0118] To support communication between the stylus 100 and the electronic device 200, and to enable information interaction between them, the stylus 100 may include a wireless module. This wireless module is used to establish a short-range wireless communication connection between the stylus 100 and the electronic device 200. This short-range wireless communication connection may include, but is not limited to: Bluetooth connection, Wi-Fi connection, Wi-Fi peer-to-peer (P2P) connection, Zigbee connection, and Near Field Communication (NFC) connection.
[0119] Optionally, the stylus 100 may also include a charging module. This charging module can be used to support charging the stylus 100, providing power to the stylus 100.
[0120] The structure of the stylus has been described above with reference to the accompanying drawings. Below, we will briefly introduce the hardware structure of the electronic device 200 involved in the embodiments of this application with reference to the accompanying drawings.
[0121] Please see Figure 4 , Figure 4 This is a schematic diagram of the hardware structure of an electronic device illustrated in an exemplary embodiment of this application.
[0122] like Figure 4As shown, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen 292, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
[0123] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0124] Processor 210 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0125] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0126] The charging management module 240 receives charging input from the charger. While charging the battery 242, the charging management module 240 can also supply power to the electronic device 200 via the power management module 241. In this embodiment, the charging management module 240 can also charge the stylus 100. For example, when the stylus 100 is magnetically attached to the top of the electronic device 200 (such as a tablet computer), the charging management module 240 can charge the stylus 100.
[0127] The power management module 241 is used to connect the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, internal memory 221, display screen 294, camera 293, and wireless communication module 260, etc. Similarly, in this embodiment, the power management module 241 can also supply power to the stylus 100.
[0128] The wireless communication function of electronic device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor.
[0129] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The structure of antenna 1 and antenna 2 in this embodiment is only an example. Each antenna in electronic device 200 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0130] The mobile communication module 250 can provide wireless communication solutions, including 2G / 3G / 2G / 5G, for use on electronic devices 200.
[0131] The wireless communication module 260 can provide solutions for wireless communication applications on the electronic device 200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies.
[0132] The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2. In this embodiment, a short-range wireless communication connection can be established between the wireless communication module 260 and the stylus 100.
[0133] In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the electronic device 200 can communicate with other devices through wireless communication technology, such as enabling the electronic device 200 to communicate with the stylus 100 through wireless communication technology.
[0134] Electronic device 200 implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0135] Display screen 294 is used to display images, videos, etc. A series of graphical user interfaces (GUIs) can be displayed on display screen 294 of electronic device 200.
[0136] In this embodiment, the display screen 294 can be a touch display screen. The display screen 294 may integrate a touch sensor 280K. The touch sensor 280K can also be referred to as a "touch panel." That is, the display screen 294 may include a display panel and a touch panel, and the touch sensor 280K and the display screen 294 together form a touch display screen, also called a "touch screen." The touch sensor 280K is used to detect touch operations applied to or near it. After the touch sensor 280K detects a touch operation, it can be passed to the upper layer by the kernel layer driver (such as the TP driver) to determine the touch event type. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor 280K may also be disposed on the surface of the electronic device 200, in a different position than the display screen 294.
[0137] For example, when the touch sensor 280K receives a touch operation from the stylus 100, the kernel layer processes the touch operation into a raw input event. This raw input event includes information such as touch coordinates, touch pressure, timestamp of the touch operation, and type of the touch subject. The raw input event is stored in the kernel layer, which then reports it to the application framework layer. The application framework layer parses the information included in the raw input event to obtain the operation type, reporting point location, etc.
[0138] Internal memory 221 can be used to store computer executable program code, including instructions. Processor 210 executes various functional applications and data processing of electronic device 200 by running the instructions stored in internal memory 221. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 200 (such as various mapping relationships), etc. Furthermore, internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0139] Pressure sensor 280A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 280A can be disposed on display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to pressure sensor 280A, the capacitance between the electrodes changes. Electronic device 200 determines the intensity of the pressure based on the change in capacitance. For example, when stylus 100 approaches or touches display screen 294, the portion of stylus 100 that approaches or touches display screen 294 (such as the pen tip) forms a capacitance with the electrodes near the corresponding position on display screen 294. Then, stylus 100 emits a touch signal via antenna, which is transmitted to electronic device 200 via main circuit board. After receiving the touch signal emitted by the antenna, electronic device 200 determines the pen tip signal strength, pen tip position, etc., based on the change in capacitance.
[0140] The electronic device 200 can also calculate the position of the touch based on the detection signal of the pressure sensor 280A. For example, it can determine the position of the stylus tip 100 on the touch screen.
[0141] The accelerometer 280E can detect the magnitude of acceleration of electronic device 200 in various directions (typically three axes). When electronic device 200 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic device, and can be applied to applications such as screen orientation switching and pedometers.
[0142] It is understandable that electronic devices may also include speed sensors. Speed sensors are used to obtain the moving speed of the electronic device.
[0143] The stylus switching method provided in this application embodiment can be implemented in an electronic device 200 having the above-described hardware structure.
[0144] The hardware structure of the electronic device 200 involved in the embodiments of this application has been briefly introduced above. The handwriting pen switching method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0145] Please see Figure 5 , Figure 5 This is a schematic flowchart illustrating a method for switching styluses according to an embodiment of this application. The method is described in detail below.
[0146] S101, The stylus establishes a communication connection with the first electronic device, and the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0147] The first electronic device can be a smart screen, tablet computer, touchpad, wearable device (such as a smartwatch), television, in-vehicle electronic device, VR device, laptop computer, netbook, PDA and other devices with touch screens, or it can be other devices or apparatus that can support the use of a stylus. The specific type of electronic device is not limited in the embodiments of this application.
[0148] It is worth noting that the communication connection between the stylus and the first electronic device in this application can be established in three ways: it can be that the communication connection has already been established; it can be that the communication connection has not been established but is about to be established; or it can be that the communication connection is being established. The actual implementation shall prevail, and no limitation is made in this regard.
[0149] For example, when a user wants to use the stylus on a first electronic device, a short-range wireless communication connection is established between the stylus and the first electronic device. For instance, when the user needs to use the stylus as an auxiliary tool to control the first electronic device or to write on it, the user can trigger the stylus to power on and enable the Bluetooth function of the first electronic device. After the stylus is powered on, its Bluetooth module can be activated. Once the stylus's Bluetooth module is activated, a Bluetooth connection can be established with the first electronic device through this module.
[0150] Optionally, in one possible implementation, after the Bluetooth module of the stylus is enabled, the Bluetooth module of the stylus can send handshake data to the first electronic device (such as a tablet computer). When the distance between the stylus and the first electronic device meets a preset connection threshold, the electronic device can receive the handshake data from the stylus. Then, the first electronic device performs device verification based on the received handshake data and returns the device verification result to the stylus.
[0151] When the first electronic device returns a device verification result to the stylus indicating that the verification is successful, the stylus sends its Bluetooth information to the first electronic device. Next, the first electronic device performs Bluetooth verification based on the received Bluetooth information. Finally, the first electronic device returns the Bluetooth verification result to the stylus. When the Bluetooth verification result indicates that the verification is successful, the first electronic device and the stylus establish a Bluetooth connection.
[0152] It is understandable that the aforementioned "preset connection threshold" refers to the maximum transmission distance for Bluetooth communication between the stylus and the first electronic device, such as within 8 meters, within 10 meters, or within 15 meters.
[0153] Optionally, in one possible implementation, both the first electronic device and the stylus may include a wireless chip that supports wireless communication within a preset distance. For example, the stylus may send handshake data to the first electronic device via wireless pass-through. This handshake data may include device information related to the stylus, such as its device name, serial number (SN), software system information, and product hardware information; however, this embodiment does not limit the scope of this application.
[0154] It is understandable that the aforementioned "preset distance" refers to the maximum transmission distance between the wireless chip of the stylus and the wireless chip of the first electronic device.
[0155] Alternatively, in one possible implementation, the user can place the stylus on top of a first electronic device (such as a tablet computer), causing the stylus to magnetically attach to the top of the device. With both the stylus's Bluetooth module and the first electronic device's Bluetooth function enabled, a pairing prompt will pop up on the touchscreen of the first electronic device (such as the tablet computer). This prompt displays an image of the stylus, its name, a cancel option, and a connect option. The user can click the connect option, and the first electronic device (such as the tablet computer) will respond to this action, triggering the establishment of a Bluetooth connection between the stylus and the first electronic device (such as the tablet computer).
[0156] Alternatively, in one possible implementation, the user can attach the stylus to the corresponding charging stick, and connect the charging stick with the stylus attached to it to the first electronic device via a data cable carried on the charging stick. A pairing prompt will pop up on the touch screen of the first electronic device. The user can click the connection option in the pairing prompt, and the first electronic device will respond to the user's click of the connection option, triggering the establishment of a Bluetooth connection between the stylus and the first electronic device.
[0157] It should be understood that in the embodiments of this application, both the first electronic device and the stylus include a Bluetooth module with integrated Bluetooth functionality for communication via Bluetooth transmission. Optionally, the Bluetooth module may include a chip, circuitry, and other peripheral devices, which will not be elaborated here. Optionally, the Bluetooth module may include a classic Bluetooth (BT) module or a Bluetooth Low Energy (BLE) module; the implementation form of the Bluetooth module is not limited in the embodiments of this application.
[0158] It should also be understood that, in the embodiments of this application, "Bluetooth information of the stylus" may include Bluetooth protocol information, wireless information, Media Access Control (MAC) address information when Bluetooth is connected, Internet protocol address (IP address), and other information related to Bluetooth connection.
[0159] For example, after the stylus establishes a communication connection with the first electronic device, the stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0160] The first communication protocol is used to instruct the first electronic device to respond to the first input operation of the stylus pen on the first electronic device.
[0161] It should be understood that a stylus can be used on electronic devices because the stylus and the electronic device follow the same communication protocol (or pen protocol). In the embodiments of this application, different types of electronic devices are pre-set to follow (or correspond to) different communication protocols. For example, the first electronic device is pre-set to correspond to the first communication protocol, the second electronic device to correspond to the second communication protocol, the third electronic device to correspond to the third communication protocol, the fourth electronic device to correspond to the fourth communication protocol, and so on.
[0162] It is worth noting that the first electronic device, the second electronic device, the third electronic device, and the fourth electronic device are different types of electronic devices. For example, the first electronic device is a tablet computer, the second electronic device is a laptop computer, the third electronic device is a mobile phone, and the fourth electronic device is a touchpad, etc.
[0163] It's understandable that electronic devices of the same type produced by different manufacturers may use different communication protocols. For example, tablets produced by manufacturer A and tablets produced by manufacturer B may use different communication protocols. The communication protocol for each electronic device can be set according to the actual situation. When the stylus transmits the communication protocol, it can instruct the corresponding electronic device to respond to the stylus's input operation. There are no restrictions on this.
[0164] Specifically, after the stylus establishes a communication connection with the first electronic device, the stylus acquires the first communication protocol corresponding to the first electronic device and transmits the first communication protocol to the first electronic device. Since the first communication protocol can instruct the first electronic device to respond to the stylus's first input operation on the first electronic device, the stylus can be used on the first electronic device.
[0165] The first input operation can include handwriting, drawing, touch, and control commands. Touch operations can include clicking, and control commands can include switching brushes, switching colors, switching to eraser mode, switching stroke thickness, and undoing.
[0166] For example, after the stylus transmits a first communication protocol to the first electronic device, the user uses the stylus to write text on the first electronic device. The first electronic device responds to the writing operation by displaying the text written by the user on its touch screen.
[0167] S102, The stylus detected a switching operation.
[0168] For example, after using the stylus on the first electronic device, if the user also wants to use the stylus on a second electronic device, a switching operation can be performed. This switching operation is used to indicate switching from the first electronic device to the second electronic device for interacting with the stylus.
[0169] It should be understood that the term "second electronic device" is used to distinguish it from the first electronic device, and does not limit the scope of the second electronic device. For example, the first electronic device may be a tablet computer, while the second electronic device may be a laptop computer, a mobile phone, a touchpad, etc.
[0170] Switching operations can include touch operations on the stylus body and / or operations of drawing a specified pattern using the stylus.
[0171] Touch operations can include swiping, single-clicking, double-clicking, double-clicking, and long-pressing.
[0172] The sliding direction of the swipe operation can be set according to the actual situation. For example, the sliding direction can be from the tip of the pen to the top of the stylus. Or, the sliding direction can be from the top of the stylus to the tip of the pen.
[0173] Drawing a specified pattern using a stylus can be done either by drawing the pattern in the air or by drawing the pattern on a second electronic device. The specified pattern can include any one of the numbers 0 to 9 (such as the numbers 6 and 8), any one of the 26 English letters (such as the letters C and Z), or special characters (such as & and ∞).
[0174] In this embodiment of the application, different switching operations are pre-set for different types of electronic devices. For example, the pre-set switching operation for a laptop is to slide on the stylus; the pre-set switching operation for a mobile phone is to draw a specified pattern using the stylus; the pre-set switching operation for a touchpad is to slide on the stylus and draw a specified pattern using the stylus, and so on.
[0175] In this implementation, different switching operations are pre-defined for different types of electronic devices. This allows the stylus to switch the electronic device currently interacting with the stylus to the corresponding electronic device based on the detected switching operation. This simplifies the process of switching electronic devices, increases the speed of switching electronic devices, and enhances the user experience.
[0176] Optionally, in one possible implementation, the switching operation for different types of electronic devices is pre-set to draw different specified patterns. For example, the switching operation for a laptop is pre-set to draw the letter C using a stylus; the switching operation for a mobile phone is pre-set to draw the letter T using a stylus; and the switching operation for a touchpad is pre-set to draw the letter Z using a stylus, etc.
[0177] Optionally, in one possible implementation, the switching operation for different types of electronic devices is pre-set as a swipe operation on different positions on the stylus. See also... Figure 6 , Figure 6 This is a schematic diagram illustrating different sliding positions of a stylus according to an embodiment of this application. Figure 6 As shown, the stylus is divided into several different sliding positions, such as the first sliding position, the second sliding position, and the third sliding position. The switching operation is pre-set to slide at the first sliding position for laptops; the second sliding position for mobile phones; the third sliding position for touchpads, and so on.
[0178] For example, a swiping operation on the stylus body is detected by a touch sensor installed in the stylus. Taking a tablet computer as the first electronic device and a laptop computer as the second electronic device, with the switching operation on the laptop computer being a swiping operation on the stylus body as an example, this will be explained further. Please refer to [link / reference]. Figure 7 , Figure 7 This is a schematic diagram illustrating a sliding operation according to an embodiment of this application. Figure 7As shown, the user slides their finger across the stylus, either from the tip towards the top of the stylus. The touch sensor in the stylus detects this signal change and determines the direction and position of the finger's slide, thus confirming that a slide has occurred and identifying the corresponding electronic device as a laptop computer. In other words, the slide indicates that the interaction between the stylus and the tablet computer is being switched to a laptop computer.
[0179] For example, the operation of drawing a specified pattern with the stylus is detected by the pressure sensor and accelerometer installed in the stylus. Taking a tablet computer as the first electronic device and a laptop computer as the second electronic device, and the switching operation corresponding to the laptop computer being drawing the letter C in the air with the stylus as an example, when the user draws the letter C in the air with the stylus, the accelerometer in the stylus detects that the stylus's movement trajectory is the letter C, and the pressure sensor detects that the pressure at the pen tip is 0. This determines that the user has performed the operation of drawing a specified pattern with the stylus, and determines that the electronic device corresponding to this operation is the laptop computer; that is, it determines that this operation of drawing a specified pattern is used to instruct switching the tablet computer interacting with the stylus to the laptop computer.
[0180] S103, the stylus responds to the switching operation and transmits the second communication protocol corresponding to the second electronic device to the second electronic device.
[0181] The second communication protocol is used to instruct the second electronic device to respond to a second input operation by the stylus pen.
[0182] For example, after detecting a switching operation, the stylus determines the electronic device corresponding to the switching operation and responds to the switching operation based on the corresponding electronic device. For instance, if the electronic device corresponding to the switching operation is determined to be a laptop computer, a second communication protocol (i.e., the communication protocol corresponding to the laptop computer) is transmitted to the laptop computer. Since the communication protocol corresponding to the laptop computer can instruct the laptop computer to respond to the stylus's second input operation on the laptop computer, the stylus can be used on the laptop computer.
[0183] The second input operation can include handwriting, drawing, touch, and control commands. Touch operations can include click operations, and control commands can include brush switching, color switching, eraser switching, stroke thickness switching, and undo commands.
[0184] For example, after the stylus transmits a second communication protocol to the laptop, the user writes text on the laptop using the stylus. The laptop responds to the writing operation and displays the text on its touchscreen. In this implementation, there is no need for a communication connection (such as Bluetooth connection) between the second electronic device (such as the laptop) and the stylus. The stylus can be used on the second electronic device (such as the laptop) simply by transmitting the corresponding communication protocol from the stylus to the second electronic device (such as the laptop), achieving instant use. This allows for seamless / free switching of the stylus from the first electronic device (such as a tablet) to the second electronic device (such as a laptop), which is beneficial for using a single stylus on multiple electronic devices.
[0185] The stylus switching method provided in this application embodiment uses different communication protocols for different electronic devices. The stylus establishes a communication connection with a first electronic device and transmits a first communication protocol corresponding to that first electronic device. Based on this first communication protocol, the stylus can be used on the first electronic device. When the stylus detects a switching operation, it responds by transmitting a second communication protocol corresponding to the second electronic device. This allows the stylus to be used on the second electronic device even when no communication connection has been established with it. In other words, the stylus switching method provided in this application embodiment pairs the stylus with the first electronic device, and even without establishing a communication connection with the second electronic device, the stylus can still be used on the second electronic device. This achieves seamless / free switching between the first and second electronic devices, enabling one stylus to seamlessly / freely switch between multiple electronic devices, which is beneficial for using one stylus on multiple electronic devices.
[0186] Furthermore, the stylus offers a simple switching process when switching between multiple electronic devices, improving the speed of switching between devices and enhancing the user experience. This also increases the competitiveness of the stylus product, providing users with more convenient and diverse application scenarios.
[0187] Optionally, in one possible implementation, after the stylus responds to the switching operation by transmitting a second communication protocol corresponding to the second electronic device to the second electronic device, if another switching operation is detected, the stylus responds to the detected switching operation by transmitting a third communication protocol corresponding to the third electronic device to the third electronic device.
[0188] It should be understood that the term "third electronic device" is used to distinguish it from the first and second electronic devices, and does not limit the scope of the third electronic device. For example, the first electronic device is a tablet computer, the second electronic device is a laptop computer, and the third electronic device can be a mobile phone, a touchpad, etc.
[0189] The re-detected switching operation is used to indicate switching from the second electronic device interacting with the stylus to the third electronic device. This re-detected switching operation differs from the switching operation corresponding to the second electronic device. For example, the switching operation for the second electronic device (such as a laptop) is a swipe operation on the stylus; the switching operation for the third electronic device (such as a mobile phone) is drawing a specified pattern using the stylus.
[0190] Similarly, the stylus switching method provided in this application can also switch the third electronic device interacting with the stylus to a fourth electronic device, a fifth electronic device, etc., in a similar manner.
[0191] In this implementation, the stylus is paired with the first electronic device. Even without establishing a communication connection with other electronic devices, the stylus can be used on other electronic devices by transmitting different communication protocols, achieving seamless / free switching between multiple electronic devices with one stylus, which is beneficial for using one stylus on multiple electronic devices.
[0192] Furthermore, the stylus offers a simple switching process when switching between multiple electronic devices, improving the speed of switching between devices and enhancing the user experience. This also increases the competitiveness of the stylus product, providing users with more convenient and diverse application scenarios.
[0193] Optionally, in one possible implementation, the stylus switching method provided in this application may further include step S104 after step S103 described above. Please refer to... Figure 8 , Figure 8 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described in detail below.
[0194] S101, The stylus establishes a communication connection with the first electronic device, and the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0195] S102, The stylus detected a switching operation.
[0196] S103, the stylus responds to the switching operation and transmits the second communication protocol corresponding to the second electronic device to the second electronic device.
[0197] It should be understood that the implementation methods of steps S101 to S103 above can be referred to the aforementioned related descriptions, and will not be repeated here.
[0198] S104. The stylus re-establishes a communication connection with the first electronic device, and the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0199] For example, after the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device, it automatically disconnects the communication connection with the first electronic device. When the user wants to use the stylus on the first electronic device again, the stylus needs to re-establish the communication connection with the first electronic device.
[0200] It is worth noting that the method for re-establishing a communication connection between the stylus and the first electronic device can refer to the method for establishing a communication connection between the stylus and the first electronic device in step S101 above, and will not be repeated here.
[0201] For example, after the stylus re-establishes a communication connection with the first electronic device, the stylus transmits a first communication protocol corresponding to the first electronic device. Since the first communication protocol can instruct the first electronic device to respond to the stylus's first input operation on it, the stylus can be used again on the first electronic device. This enables the stylus to switch from the second electronic device to the first electronic device, facilitating the use of a single stylus on multiple electronic devices.
[0202] In this implementation, the stylus is paired with a first electronic device. Even without establishing a communication connection with a second electronic device, the stylus can be used on the second electronic device by transmitting a communication protocol corresponding to the second electronic device. When the user wants to use the stylus on the first electronic device again, a communication connection is established between the stylus and the first electronic device, allowing the stylus to flexibly switch between the first and second electronic devices, which is beneficial for using a single stylus on multiple electronic devices.
[0203] Optionally, in one possible implementation, the stylus switching method provided in this application may further include steps S201 to S205. See also... Figure 9 , Figure 9 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described in detail below.
[0204] S201, The stylus establishes a communication connection with the first electronic device, and the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0205] S202, The stylus detected a switching operation.
[0206] S203, the stylus responds to the switching operation and transmits the second communication protocol corresponding to the second electronic device to the second electronic device.
[0207] It should be understood that the implementation methods of steps S201 to S203 above can be referred to the descriptions of steps S101 to S103 above, and will not be repeated here.
[0208] S204, The stylus detected a reverse switching operation.
[0209] In the embodiments of this application, different reverse switching operations are pre-set for different types of electronic devices.
[0210] For example, after the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device, it can automatically disconnect the communication connection with the first electronic device, or it can continue to disconnect the communication connection with the first electronic device. When the user wants to use the stylus on the first electronic device again, a reverse switching operation can be performed. This reverse switching operation is used to indicate that the second electronic device interacting with the stylus should be switched back to the first electronic device.
[0211] A reverse toggle operation is different from a toggle operation. A reverse toggle operation can include a reverse swipe operation on the pen body, where the swipe direction is opposite to that of the regular swipe operation. For example, if the swipe direction is from the pen tip to the top of the stylus, the reverse swipe direction is from the top of the stylus to the pen tip. Similarly, if the swipe direction is from the top of the stylus to the pen tip, the reverse swipe direction is from the pen tip to the top of the stylus.
[0212] For example, when the toggle operation is a single click on the pen, the reverse toggle operation can be a double click or a series of clicks on the pen. Conversely, when the toggle operation is a double click or a series of clicks on the pen, the reverse toggle operation can be a single click on the pen. This is merely an illustrative example and is not intended to be limiting.
[0213] For example, a reverse swipe operation on the stylus body is detected by a touch sensor in the stylus. Taking a tablet computer as the first electronic device and a laptop computer as the second, the reverse switching operation corresponding to the tablet computer is an reverse swipe operation on the stylus body as an example. For instance, the user performs a reverse swipe operation on the stylus body, the direction of which is from the top of the stylus towards the tip. The touch sensor in the stylus detects the signal change and determines the direction and position of the user's finger swipe on the pen body based on the detected signal. This determines that a reverse swipe operation has occurred on the stylus body and identifies the corresponding electronic device as a tablet computer; that is, the reverse swipe operation is used to instruct switching the laptop computer interacting with the stylus to a tablet computer.
[0214] S205, the stylus responds to the reverse switching operation and transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0215] For example, after detecting a reverse switching operation, the stylus determines the electronic device corresponding to the reverse switching operation and responds to the reverse switching operation based on the electronic device corresponding to the reverse switching operation. For example, if the electronic device corresponding to the reverse switching operation is determined to be a tablet computer, a first communication protocol (i.e., the communication protocol corresponding to the tablet computer) is transmitted to the tablet computer. Since the communication protocol corresponding to the tablet computer can instruct the tablet computer to respond to the stylus's first input operation on the tablet computer, the stylus can be used on the tablet computer again.
[0216] In this implementation, the stylus is paired with a first electronic device. Even without establishing a communication connection with a second electronic device, the stylus can be used on the second electronic device by transmitting a communication protocol corresponding to the second electronic device. When the user wants to use the stylus on the first electronic device again, it is not necessary to re-establish a communication connection between the stylus and the first electronic device. Instead, after detecting a reverse switching operation, the first communication protocol is sent to the first electronic device, allowing the stylus to be used on the first electronic device again. This achieves seamless / free switching between multiple electronic devices using a single stylus, which is beneficial for using a single stylus on multiple electronic devices.
[0217] Furthermore, the stylus offers a simple switching process when switching between multiple electronic devices, improving the speed of switching between devices and enhancing the user experience. This also increases the competitiveness of the stylus product, providing users with more convenient and diverse application scenarios.
[0218] Please see Figure 10 , Figure 10 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described below.
[0219] S301, The stylus establishes a communication connection with the first electronic device.
[0220] S302, The stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0221] S303, The stylus performs the first input operation on the first electronic device.
[0222] S304. Has the stylus detected a switching operation?
[0223] For example, after using the stylus on the first electronic device, if the user wants to use the stylus on a second electronic device, a switching operation can be performed, and the stylus will detect this switching operation. If the user only wants to use the stylus on the first electronic device and does not want to use it on other electronic devices, no switching operation will be performed, and the stylus will not detect the switching operation.
[0224] S305. The stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
[0225] S306, The stylus performs a second input operation on the second electronic device.
[0226] S307, The stylus and the first electronic device re-establish a communication connection.
[0227] S308, The stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0228] S309, The stylus performs a first input operation on the first electronic device.
[0229] This implementation allows for seamless / free switching of the stylus from one electronic device to another, facilitating its use on multiple devices. Furthermore, the switching process between multiple devices is simple, increasing the speed of switching and enhancing the user experience.
[0230] Optionally, in one possible implementation, the stylus switching method provided in this application may further include steps S401 to S403. See also... Figure 11 , Figure 11 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described in detail below.
[0231] S401, The stylus establishes a communication connection with the first electronic device, and the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0232] S402, The stylus receives a switching command sent by the first electronic device.
[0233] For example, if a user wants to use the stylus on a second electronic device after it has been used on the first electronic device, the first electronic device can be triggered to send a switching command.
[0234] The switching command is generated by the first electronic device in response to a touch operation, which includes touching the switching control displayed on the first electronic device's screen. In other words, when the switching control is touched, a switching command is generated, instructing the user to switch from the first electronic device interacting with the stylus to the second electronic device.
[0235] Optionally, the display interface of the first electronic device may also display prompt information corresponding to the switching control. The prompt information is used to prompt the user to use the stylus on the second electronic device. The prompt information may also be used to prompt the user to switch the first electronic device that interacts with the stylus to the second electronic device.
[0236] For example, the first electronic device is set as the master device (e.g., the electronic device that first establishes a communication connection with the stylus is designated as the master device). On the master device's main interface, clicking the "Settings" option will redirect the first electronic device from the main interface to the settings interface. Clicking the "Accessibility" option in the settings interface will then display a switching control and corresponding prompts on the display screen.
[0237] Optionally, the display interface of the first electronic device may also display an image model of the electronic device corresponding to the switching control.
[0238] This explanation uses a tablet computer as the first electronic device and a laptop computer as the second electronic device. Please refer to [link / reference]. Figure 12 , Figure 12 This is a schematic diagram illustrating a display interface according to an embodiment of this application. Figure 12 As shown in (a), when "Accessibility" is selected, the right side of the display shows a toggle control, a corresponding prompt message for the toggle control, and an image model of the electronic device corresponding to the toggle control. In this example, the prompt message could be "Use the stylus on the laptop," and the image model could be an image model of the laptop.
[0239] It is worth noting that the toggle control is in a closed state at this time (or rather, the toggle function corresponding to the toggle control is in a closed state), such as Figure 12 As shown in (a), the circle in the toggle control is on the left. When the user clicks the "toggle control," it triggers the tablet to activate the toggle control (or, in other words, it triggers the tablet to activate the toggle function corresponding to the toggle control). Figure 12 As shown in (b), after the user clicks the "Toggle Control," the circle in the toggle control moves to the right. The tablet computer responds to the user's click on the "Toggle Control," generates a toggle command, and sends the toggle command to the stylus. The stylus receives the toggle command sent by the tablet computer.
[0240] Optionally, in one possible implementation, the display interface of the first electronic device may display multiple switching controls and corresponding prompt information for each switching control.
[0241] In this embodiment, the number of switching controls can be determined and adjusted according to the number of electronic devices that the user actually wants to switch, and there is no limitation on this.
[0242] It is understandable that different switching controls correspond to different electronic devices. In other words, different switching controls generate different switching instructions when touched, and these different switching instructions are used to indicate whether to switch the first electronic device interacting with the stylus to a different electronic device (such as a second electronic device, a third electronic device, a fourth electronic device, etc.).
[0243] Please see Figure 13 , Figure 13 This is a schematic diagram illustrating another display interface according to an embodiment of this application. For example... Figure 13 As shown in (a), when “Accessibility” is selected, the right side of the display screen shows the first switch control, the second switch control, and the third switch control, as well as the prompt information corresponding to each switch control.
[0244] In this example, the prompt message for the first toggle control could be "Use the stylus on the laptop," the prompt message for the second toggle control could be "Use the stylus on the phone," and the prompt message for the third toggle control could be "Use the stylus on the touchpad." At this time, all toggle controls are in a closed state (or in other words, the toggle function corresponding to each toggle control is disabled), such as... Figure 13 As shown in (a), the circles in each toggle control are all on the left.
[0245] For example, when a user clicks the "first switching control," it triggers the first electronic device (such as a tablet computer) to activate the first switching control (or, in other words, triggers the tablet computer to activate the switching function corresponding to the first switching control). The circle in the first switching control moves to the right. The tablet computer responds to the user's click on the "first switching control," generates a first switching instruction, and sends the first switching instruction to the stylus. The stylus receives the first switching instruction sent by the tablet computer. In this example, the first switching instruction is used to instruct the tablet computer interacting with the stylus to be switched to a laptop computer.
[0246] Optionally, when the user clicks the "first switching control", the display interface of the first electronic device may also display an image model of the laptop corresponding to the first switching control.
[0247] When a user clicks the "second switching control," it triggers the first electronic device (such as a tablet) to activate the second switching control (or, in other words, triggers the tablet to activate the switching function corresponding to the second switching control), such as... Figure 13 As shown in (b), the circle in the second switching control moves to the right. The tablet responds to the user's tap on the "second switching control," generates a second switching instruction, and sends it to the stylus. The stylus receives the second switching instruction from the tablet. In this example, the second switching instruction instructs the user to switch the tablet interacting with the stylus to a mobile phone.
[0248] Optionally, such as Figure 13 As shown in (b), when the user clicks the "second switching control", the display interface of the first electronic device can also display the image model of the mobile phone corresponding to the second switching control.
[0249] The operation of the third switching control can be referred to the above description, and will not be repeated here. In this implementation, different switching commands can be generated through different switching controls. Different switching commands are used to indicate the switching of the first electronic device interacting with the stylus to a different electronic device, which facilitates the subsequent sending of different communication protocols to different electronic devices. This is beneficial for achieving seamless / free switching of a stylus between multiple electronic devices, as well as the use of a stylus on multiple electronic devices.
[0250] S403, the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device based on the switching command.
[0251] For example, the switching instruction carries identification information of the electronic device corresponding to the switching instruction. For instance, the switching instruction carries identification information of a second electronic device. Based on the identification information carried in the switching instruction, the stylus determines that the electronic device to be switched to is the second electronic device and transmits a second communication protocol corresponding to the second electronic device. Since the second communication protocol can instruct the second electronic device to respond to the stylus's input operation to it, the stylus can be used on the second electronic device.
[0252] The stylus switching method provided in this application embodiment uses different communication protocols for different electronic devices. The stylus establishes a communication connection with a first electronic device and transmits a first communication protocol corresponding to that first electronic device. Based on the first communication protocol, the stylus can be used on the first electronic device. When the stylus receives a switching command, it responds by transmitting a second communication protocol corresponding to the second electronic device. This allows the stylus to be used on the second electronic device even when no communication connection has been established with it. In other words, the stylus switching method provided in this application embodiment pairs the stylus with the first electronic device. Even without a communication connection with the second electronic device, the stylus can still be used on the second electronic device, achieving seamless / free switching between the first and second electronic devices. This enables seamless / free switching of a single stylus between multiple electronic devices, facilitating its use on multiple devices.
[0253] Furthermore, the stylus offers a simple switching process when switching between multiple electronic devices, improving the speed of switching between devices and enhancing the user experience. This also increases the competitiveness of the stylus product, providing users with more convenient and diverse application scenarios.
[0254] It is worth noting that in the stylus switching method provided in this application, after step S403, step S104, or steps S204 and S205 can also be executed. For details, please refer to the relevant description above, which will not be repeated here.
[0255] Please see Figure 14 , Figure 14 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described below.
[0256] S501, The stylus establishes a communication connection with the first electronic device.
[0257] S502, The stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0258] S503, The stylus performs the first input operation on the first electronic device.
[0259] S504. Has the stylus received a switching command?
[0260] For example, after the stylus has been used on the first electronic device, if the user wants to use the stylus on a second electronic device, the first electronic device can send a switching command to the stylus. For instance, the user clicks a switching control on the display interface of the first electronic device. The first electronic device responds to the user's click by generating a switching command and sending the switching command to the stylus. The stylus receives the switching command sent by the first electronic device.
[0261] If a user only wants to use the stylus on the first electronic device and not on other electronic devices, the first electronic device will not send a switching command, and the stylus will not receive the switching command.
[0262] S505, The stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
[0263] S506, The stylus performs a second input operation on the second electronic device.
[0264] S507, the stylus and the first electronic device re-establish a communication connection.
[0265] S508, The stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0266] S509, The stylus performs a first input operation on the first electronic device.
[0267] This implementation allows for seamless / free switching of the stylus from one electronic device to another, facilitating its use on multiple devices. Furthermore, the switching process between multiple devices is simple, increasing the speed of switching and enhancing the user experience.
[0268] Alternatively, in one possible implementation, when the stylus is powered on, its state can include an active state and a sleep state. The stylus can switch between active and sleep states depending on the user's different operations on it.
[0269] The following describes the stylus switching method provided in this application, taking into account the stylus's state.
[0270] Please see Figure 15 , Figure 15 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described below.
[0271] S601, the stylus is in sleep mode.
[0272] For example, the stylus is typically in working mode when it is first powered on. If no use of the stylus is detected within a first preset period of time, the stylus switches its state from working mode to sleep mode, which helps to save power consumption.
[0273] For example, if the touch sensor of the stylus does not detect a signal within a first preset time period, and it is determined that the stylus has not been paired and used within the first preset time period, then the stylus will change its state from working state to sleep state.
[0274] For example, if the touch sensor of the stylus does not detect a signal within a first preset time period, and the stylus does not establish a communication connection with any electronic device, it is determined that the stylus has not been paired and used within the first preset time period, and the stylus adjusts its state from working state to sleep state.
[0275] The first preset duration can be set and adjusted according to the actual situation. For example, the first preset duration can be 2 minutes, 3 minutes, 5 minutes, 10 minutes, 20 minutes, etc. This is only an example and is not a limitation.
[0276] S602. Is the stylus activated?
[0277] For example, whether the stylus is woken up refers to whether the stylus is detected as being used. For instance, if the stylus's touch sensor detects a signal, it determines that the stylus is being used, and the stylus is woken up from its sleep state. Conversely, if the stylus's touch sensor does not detect a signal, it determines that the stylus is not being used, and the stylus remains in its sleep state.
[0278] Optionally, if the stylus is not detected to be in use within a first preset time after being woken up from the sleep state, the stylus will return to the sleep state from the wake-up state, which helps to save the power consumption of the stylus.
[0279] S603, the stylus is in working condition.
[0280] For example, after the stylus is woken up from the sleep state, if the stylus's touch sensor continues to detect a signal, the stylus will change its state from the sleep state to the working state.
[0281] S604. Was an operation targeting the stylus detected?
[0282] For example, operations on the stylus may include switching operations, receiving switching commands, and establishing communication connections. Switching operations may include sliding operations on the stylus body and / or drawing specified patterns using the stylus.
[0283] For example, if no operation is detected on the stylus when it is in working mode, the stylus will switch from working mode to sleep mode within a first preset time period, which helps to save power consumption.
[0284] For example, when the stylus is in working condition, an operation targeting the stylus is detected, and different processes are executed depending on the different operations targeting the stylus.
[0285] S605, The stylus establishes a communication connection with the first electronic device, and the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0286] In one possible implementation, the operation on the stylus can be an operation to establish a communication connection. The stylus responds to the operation to establish a communication connection, establishes a communication connection with the first electronic device, and transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0287] It should be understood that the implementation method in step S605 above can be referred to the description in step S101 above, and will not be repeated here.
[0288] S606, the stylus responds to the switching operation and transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
[0289] In one possible implementation, the operation on the stylus can be a switching operation. For example, the stylus detects a switching operation, responds to the switching operation, and transmits a second communication protocol corresponding to the second electronic device.
[0290] It should be understood that the implementation method of step S606 above can be referred to the description in steps S102 and S103 above, and will not be repeated here.
[0291] Optionally, in one possible implementation, the operation on the stylus can be an operation of receiving a switching command. For example, the stylus receives a switching command sent by a first electronic device, and based on the switching command, transmits a second communication protocol corresponding to the second electronic device. Specific implementation details can be found in the descriptions of steps S402 and S403 above, and will not be repeated here.
[0292] In this implementation, when the stylus is detected to be in use, its state is adjusted to working state; when the stylus is detected to be out of use, its state is adjusted to sleep state. This effectively saves the stylus's power consumption, extends its standby time, and improves the user experience.
[0293] The stylus switching method described above is implemented through user operations on the stylus. The stylus switching method provided in this application can also be implemented without the user's awareness.
[0294] Please see Figure 16 , Figure 16 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described below.
[0295] S701, The stylus detected an upward coding signal.
[0296] The signal sent from the electronic device to the stylus is called the uplink coding signal, and the signal sent from the stylus to the electronic device is called the downlink coding signal. It should be understood that both uplink and downlink coding signals have signal characteristics, which may include at least one of the following: coding voltage amplitude, coding frequency, coding period, duty cycle, etc.
[0297] For example, the stylus continuously detects uplink coding signals sent by any electronic device.
[0298] S702: The stylus analyzes the upward coding signal and obtains the analysis result.
[0299] For example, different electronic devices are pre-defined to correspond to different uplink coding signals, that is, different electronic devices correspond to different signal characteristics. After the stylus detects the uplink coding signal, it parses the uplink coding signal, that is, it analyzes the signal characteristics of the uplink coding signal and determines the parsing result based on the signal characteristics.
[0300] In one example, when the electronic devices interacting with the stylus include a first electronic device and a second electronic device, the parsing result can be either the uplink coding signal being a signal emitted by the first electronic device, or the parsing result can be either the uplink coding signal being a signal emitted by the second electronic device.
[0301] Alternatively, in one possible implementation, the uplink coding signal may include identification data, data content, and verification data.
[0302] The identification data can be used to identify the signal as an uplink coding signal, and the identification data may include at least one preamble. In this embodiment, the identification data may include a 3-bit preamble, for example, 0, 0, and 1.
[0303] The data content can include 4 bits of data, such as data1, data2, data3, and data4. This data content is used to distinguish different uplink coding signals, meaning that the data content included in the uplink coding signals sent by different electronic devices is different. For example, the data content included in the uplink coding signal sent by the first electronic device can be preset to 0000, the data content included in the uplink coding signal sent by the second electronic device to 0001, the data content included in the uplink coding signal sent by the third electronic device to 0010, and the data content included in the uplink coding signal sent by the fourth electronic device to 0100, and so on.
[0304] The verification data may include one bit of verification data. This verification data is used to verify the uplink code signal. For example, when a stylus parses the uplink coding signal and extracts the verification data from it, a preset verification method can be used to verify the uplink code signal.
[0305] In the embodiments of this application, the preset verification methods may include odd verification, even verification, cyclic redundancy check (CRC), etc.
[0306] For easier understanding, please refer to Figure 17 , Figure 17 This is a schematic diagram illustrating an uplink coding signal according to an embodiment of this application. Figure 17 As shown, the uplink coding signal includes a 3-bit preamble, namely preamble 1, preamble 2, and preamble 3. It also includes 4 bits of data and 1 bit of checksum data. When the data content is 0000, it indicates that the electronic device corresponding to the uplink coding signal is the first electronic device, and the corresponding communication protocol is the first communication protocol; when the data content is 0001, it indicates that the electronic device corresponding to the uplink coding signal is the second electronic device, and the corresponding communication protocol is the second communication protocol; when the data content is 0010, it indicates that the electronic device corresponding to the uplink coding signal is the third electronic device, and the corresponding communication protocol is the third communication protocol, and so on.
[0307] For example, different electronic devices correspond to different uplink coding signals. The stylus parses the detected uplink coding signal to obtain the data content in the uplink coding signal, and then determines which electronic device sent the uplink coding signal based on the data content. For example, if the data content in the uplink coding signal is 0001, it is determined that the uplink coding signal was sent by the first electronic device, and thus the parsing result is determined that the uplink coding signal was sent by the first electronic device.
[0308] S703. When the parsing result indicates that the uplink coding signal is a signal sent by the first electronic device, the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0309] For example, when the parsing result indicates that the uplink coding signal is emitted by the first electronic device, the electronic device interacting with the stylus is determined to be the first electronic device, or in other words, the stylus is determined to be used on the first electronic device. The stylus then transmits a first communication protocol corresponding to the first electronic device to the first electronic device. Since the first communication protocol can instruct the first electronic device to respond to the stylus's first input operation on the first electronic device, the stylus can be used on the first electronic device.
[0310] S704. When the parsing result indicates that the uplink coding signal is a signal emitted by the second electronic device, the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device.
[0311] For example, when the parsing result indicates that the uplink coding signal is emitted by the second electronic device, the electronic device interacting with the stylus is determined to be the second electronic device, or in other words, the stylus is determined to be used on the second electronic device. The stylus then transmits a second communication protocol corresponding to the second electronic device to the second electronic device. Since the second communication protocol can instruct the second electronic device to respond to the second input operation of the stylus, the stylus can be used on the second electronic device.
[0312] This implementation method analyzes the detected uplink coding signal to determine which electronic device to send the corresponding communication protocol to, enabling the stylus to be used on that device. Users don't need to manually switch styluses; the stylus can be seamlessly switched between multiple electronic devices without the user's awareness. The switching process is simple, improving the speed of switching between multiple devices and enhancing the user experience. Simultaneously, it increases the competitiveness of stylus products, providing users with more convenient and diverse multi-functional scenarios.
[0313] Alternatively, in one possible implementation, the electronic device can detect signals in addition to sending uplink coding signals, which helps the electronic device to better detect the stylus.
[0314] The detected signal can be a mutual capacitance signal, a self-capacitance signal, a stylus signal, a noise signal, etc., and there are no restrictions on this.
[0315] For example, each electronic device corresponds to one duty cycle. For instance, the duty cycle for the first electronic device is TA, and the duty cycle for the second electronic device is TB. The electronic devices send uplink coding signals and detection signals within their respective duty cycles.
[0316] For easier understanding, please refer to Figure 18 , Figure 18 This is a schematic diagram illustrating the operation of an electronic device according to an embodiment of this application. Figure 18 As shown, the first electronic device sends an uplink coding signal and a detection signal within each working cycle TA. It should be understood that, in this example, the uplink coding signal sent by the first electronic device is represented by A, and the signals detected by the first electronic device are represented by A1, A2, and A3. The second electronic device sends an uplink coding signal and a detection signal within each working cycle TB. It should be understood that, in this example, the uplink coding signal sent by the second electronic device is represented by B, and the signals detected by the second electronic device are represented by B1, B2, and B3.
[0317] In this implementation, the electronic device operates periodically, which helps the stylus to quickly and accurately detect the upward coding signal.
[0318] The above describes how to switch styluses without the user noticing. The following describes how to switch styluses without the user noticing, taking into account the stylus's state.
[0319] Please see Figure 19 , Figure 19 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described below.
[0320] S801, the stylus is in sleep mode.
[0321] S802, Is the stylus activated?
[0322] S803, the stylus is in working condition.
[0323] It should be understood that the implementation methods in steps S801 to S803 can be referred to the descriptions in steps S601 to S603 above, and will not be repeated here.
[0324] S804. Has the stylus detected the upward coding signal?
[0325] For example, the stylus continuously detects uplink coding signals sent by any electronic device. If no uplink coding signal is detected within a second preset time period, the stylus switches its state from working state to sleep state, which helps to save power consumption of the stylus.
[0326] If an uplink coding signal is detected, the uplink coding signal is parsed to obtain the parsing result. The specific implementation method can be found in the description of step S702 above, and will not be repeated here.
[0327] The second preset duration can be set and adjusted according to actual conditions. For example, the second preset duration can be 2 minutes, 3 minutes, 5 minutes, 10 minutes, 20 minutes, etc. This is only an example and is not a limitation.
[0328] S805. When the uplink coding signal is a signal sent by the first electronic device, the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0329] S806. When the uplink coding signal is a signal sent by the second electronic device, the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device.
[0330] It should be understood that the implementation methods in steps S805 and S806 can be referred to the descriptions in steps S703 and S704 above, and will not be repeated here.
[0331] In this implementation, when the stylus is detected to be in use, the stylus is switched to working mode. If no uplink coding signal is detected within a certain period of time, the stylus is switched to sleep mode, which effectively saves the power consumption of the stylus, extends the standby time of the stylus, and improves the user experience.
[0332] Optionally, in one possible implementation, this application embodiment also provides a method for switching a stylus, which may include: the stylus detecting a target uplink coding signal and transmitting a first communication protocol corresponding to the first electronic device to a first electronic device; and the stylus not detecting a target uplink coding signal and transmitting a second communication protocol corresponding to the second electronic device to a second electronic device.
[0333] For example, each electronic device corresponds to one duty cycle. For instance, the duty cycle corresponding to the first electronic device is TA, and the duty cycle corresponding to the second electronic device is TB. The first electronic device is pre-set to send an uplink coding signal (also referred to as the target uplink coding signal in this example) within TA, while the second electronic device does not send an uplink coding signal within TB, thereby distinguishing the first electronic device from the second electronic device.
[0334] For easier understanding, please refer to Figure 20 , Figure 20 This is a schematic diagram illustrating the operation of another electronic device according to an embodiment of this application. Figure 20As shown, the first electronic device sends an uplink coding signal and a detection signal within each duty cycle TA. It should be understood that, in this example, the uplink coding signal sent by the first electronic device is represented by A, and the signals detected by the first electronic device are represented by A1, A2, and A3. The second electronic device does not send an uplink coding signal within each duty cycle TB, but it does send a detection signal. It should be understood that, in this example, the signals detected by the second electronic device are represented by B1, B2, and B3.
[0335] The stylus continuously detects uplink coding signals sent by any electronic device. In one example, if the stylus detects an uplink coding signal, and determines that the uplink coding signal is from a first electronic device, the stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device. If the stylus does not detect an uplink coding signal, it determines that the stylus is interacting with a second electronic device, and transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
[0336] In another example, if the stylus detects an uplink coding signal, and determines that the uplink coding signal is a signal emitted by the first electronic device, the stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0337] If the stylus does not detect the uplink coding signal, it may be because the user is not using the stylus, rather than intending to use it on the second electronic device. To avoid misjudgment, it is also necessary to detect the touch and pressure signals generated by the stylus. If the stylus does not detect the uplink coding signal, but the touch and pressure signals generated by the stylus are detected, it is determined that the stylus is interacting with the second electronic device, and the second communication protocol corresponding to the second electronic device is transmitted to it.
[0338] Touch signals can be detected by the touch sensor in the stylus, and pressure signals can be detected by the pressure sensor in the stylus.
[0339] In this implementation, the system determines whether to send a communication protocol corresponding to a specific electronic device based on whether an uplink coding signal is detected. This enables the stylus to be used on that device without requiring the user to manually switch devices. The stylus can be seamlessly switched between multiple electronic devices without the user's awareness, and the switching process is simple, improving the speed of switching between devices and enhancing the user experience. Simultaneously, this also increases the competitiveness of the stylus product, providing users with more convenient and diverse multi-functional scenarios.
[0340] The following describes how to switch stylus settings without the user noticing, taking into account the stylus's status.
[0341] Please see Figure 21 , Figure 21 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described below.
[0342] S901, the stylus is in sleep mode.
[0343] S902, Is the stylus activated?
[0344] S903, the stylus is in working condition.
[0345] It should be understood that the implementation methods in steps S901 to S903 can be referred to the descriptions in steps S601 to S603 above, and will not be repeated here.
[0346] S904. Has the stylus detected an upward coding signal?
[0347] For example, the stylus continuously detects the uplink coding signal sent by any electronic device. If no uplink coding signal is detected within a third preset time period, and no touch signal or pressure signal generated by the stylus is detected, the stylus adjusts its state from working state to sleep state, which helps to save the power consumption of the stylus.
[0348] S905, the stylus detects the uplink coding signal and transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
[0349] S906: The stylus did not detect the upward coding signal, but detected the touch signal and pressure signal, and transmitted the second communication protocol corresponding to the second electronic device to the second electronic device.
[0350] In this implementation, when the use of the stylus is detected, the stylus is switched to working mode. If no uplink coding signal is detected within a certain period of time, and no touch or pressure signals generated by the stylus are detected, the stylus is switched to sleep mode. This effectively saves the power consumption of the stylus, extends its standby time, and improves the user experience.
[0351] Optionally, in one possible implementation, the stylus switching method provided in this application may further include: when switching from a first electronic device interacting with the stylus to a second electronic device, the stylus vibrates using a first vibration mode. When switching from a second electronic device interacting with the stylus to a first electronic device, the stylus vibrates using a second vibration mode. This is described below with reference to a flowchart.
[0352] Please see Figure 22 , Figure 22 This is a schematic flowchart illustrating another method for switching styluses according to an embodiment of this application. The method is described below.
[0353] The stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device; it determines whether to switch the first electronic device interacting with the stylus to a second electronic device; if it is determined that the first electronic device interacting with the stylus should be switched to the second electronic device, the stylus vibrates using a first vibration method. If it is determined that the first electronic device interacting with the stylus has not been switched to the second electronic device, the first communication protocol corresponding to the first electronic device continues to be transmitted to the first electronic device.
[0354] For example, the stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device. If the stylus detects a switching operation, in response to the switching operation, it transmits a second communication protocol corresponding to the second electronic device to the second electronic device, thereby switching the first electronic device interacting with the stylus to the second electronic device. At this time, the stylus vibrates using a first vibration method.
[0355] The first vibration method can include rapid tapping. For example, when switching from a first electronic device to a second electronic device that interacts with the stylus, the stylus vibrates several times within 300 milliseconds via a motor.
[0356] Similarly, the stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device; it then determines whether to switch the second electronic device interacting with the stylus to the first electronic device; if it is determined that the second electronic device interacting with the stylus should be switched to the first electronic device, the stylus vibrates using a second vibration method. If it is determined that the second electronic device interacting with the stylus has not been switched to the first electronic device, the stylus continues to transmit the second communication protocol corresponding to the second electronic device to the second electronic device.
[0357] For example, the stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device. If the stylus detects a reverse switching operation, in response to the reverse switching operation, or if it detects that the stylus has re-established a communication connection with the first electronic device, it transmits a first communication protocol corresponding to the first electronic device to the first electronic device, thereby switching the second electronic device interacting with the stylus to the first electronic device. At this time, the stylus vibrates using a second vibration method.
[0358] The second vibration mode can include prolonged vibration. For example, when switching from a second electronic device to a first electronic device that interacts with the stylus, the stylus vibrates for several milliseconds (e.g., 200 milliseconds) via a motor.
[0359] In this implementation, different vibration patterns can be used to alert the user that they have successfully switched to the electronic device interacting with the stylus.
[0360] The stylus switching method provided in this application may also include:
[0361] The stylus transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
[0362] The system determines to switch the first electronic device for interacting with the stylus to the second electronic device, and the stylus vibrates using the first vibration mode.
[0363] The stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
[0364] When it is determined that the second electronic device interacting with the stylus will be switched to the first electronic device, the stylus will vibrate using the second vibration mode.
[0365] In this implementation, different vibration patterns can be used to notify the user that they have successfully switched to the electronic device interacting with the stylus, thus improving the user experience.
[0366] Alternatively, in one possible implementation, the stylus can notify the user of a successful switch to an electronic device through voice prompts, flashing indicator lights, or other means.
[0367] Alternatively, in one possible implementation, the electronic device can remind the user of a successful switch via voice prompts, flashing indicator lights, text prompts, or other means.
[0368] This implementation method can use different reminder methods to notify users of successfully switching the electronic device that interacts with the stylus, thus improving the user experience.
[0369] This application embodiment can divide the stylus into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0370] It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.
[0371] The stylus provided in this embodiment is used to execute the stylus switching method described above, and thus can achieve the same effect as the above implementation method.
[0372] When using an integrated unit, the stylus may also include a processing module, a storage module, and a communication module. The processing module controls and manages the stylus's movements. The storage module supports the stylus in executing stored program code and data. The communication module supports communication between the stylus and other electronic devices.
[0373] The processing module can be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a WiFi chip, or other devices that interact with other devices.
[0374] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the stylus switching method of any of the above embodiments.
[0375] This application also provides a computer program product that, when run on a stylus pen, causes the stylus pen to perform the aforementioned steps to implement the stylus pen switching method described in the above embodiments.
[0376] This application also provides a device system, which includes a stylus pen and an electronic device. The electronic device includes a touch screen, and the stylus pen can perform writing, drawing and other operations on the touch screen. The stylus pen and the electronic device work together to realize the stylus pen switching method in the above embodiments.
[0377] This application also provides a chip. Please refer to [link / reference]. Figure 23 , Figure 23 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Figure 23 The chip shown can be a general-purpose processor or a dedicated processor. The chip includes a processor 410. The processor 410 is used to execute the stylus switching method of any of the above embodiments.
[0378] Optionally, the chip also includes a transceiver 420, which is used to receive control from the processor and to support the communication device in executing the aforementioned technical solution.
[0379] Optional, Figure 23 The chip shown may also include: storage medium 430.
[0380] It should be noted that, Figure 23 The chip shown can be implemented using one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this application.
[0381] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0382] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0383] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0384] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0385] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0386] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0387] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A switching method of a handwriting pen, characterized by, The method comprises: The stylus establishes a communication connection with the first electronic device, and transmits a first communication protocol corresponding to the first electronic device to the first electronic device. The first communication protocol is used to instruct the first electronic device to respond to a first input operation of the stylus on the first electronic device. The stylus detects a switching operation; the switching operation is used to instruct the first electronic device to be switched to a second electronic device for interaction with the stylus; the stylus comprises a pen body, and the switching operation comprises a touch operation on the pen body, the touch operation comprising at least one of a sliding operation, a single-click operation, and a double-click operation. The stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device in response to the switching operation; the second communication protocol is used to instruct the second electronic device to respond to a second input operation of the stylus on the second electronic device; and the stylus does not establish a Bluetooth connection with the second electronic device.
2. The method of claim 1, wherein, The switching operation further comprises an operation of drawing a specified pattern by using the stylus.
3. The method according to claim 1 or 2, characterized in that, After the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device, the method further comprises: The stylus receives a switching instruction sent by the first electronic device, the switching instruction being generated by the first electronic device in response to a touch operation, the touch operation comprising an operation of touching a switching control displayed in a display interface of the first electronic device, and the switching instruction being used to instruct the first electronic device to be switched to a second electronic device for interaction with the stylus. The stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device based on the switching instruction.
4. The method according to any one of claims 1 to 3, characterized in that, After the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device, the method further comprises: The stylus re-establishes a communication connection with the first electronic device, and transmits the first communication protocol corresponding to the first electronic device to the first electronic device.
5. The method according to claim 2 or 3, characterized in that, After the stylus transmits the second communication protocol corresponding to the second electronic device to the second electronic device, the method further comprises: The stylus detects a reverse switching operation; the reverse switching operation is used to instruct the second electronic device to be switched to the first electronic device for interaction with the stylus. The stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device in response to the reverse switching operation.
6. The method of claim 5, wherein, The reverse switching operation comprises a reverse sliding operation on the pen body, and a sliding direction corresponding to the reverse sliding operation is opposite to a sliding direction corresponding to the sliding operation.
7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: The stylus detects an uplink code printing signal. The stylus analyzes the uplink code printing signal to obtain an analysis result. When the analysis result is that the uplink code printing signal is a signal sent by the first electronic device, the stylus transmits the first communication protocol corresponding to the first electronic device to the first electronic device; or, When the analysis result is that the uplink code signal is the signal sent by the second electronic device, the stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
8. The method according to any one of claims 1 to 6, characterized in that, The method further includes: The stylus detects a target uplink code signal and transmits a first communication protocol corresponding to the first electronic device to the first electronic device.
9. The method according to any one of claims 1 to 6, characterized in that, The method further includes: The stylus does not detect the target uplink code signal and transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
10. The method of claim 9, wherein, The stylus does not detect the target uplink code signal and transmits a second communication protocol corresponding to the second electronic device to the second electronic device, including: The stylus does not detect the target uplink code signal and detects a touch signal and a pressure signal generated by the stylus; The stylus transmits a second communication protocol corresponding to the second electronic device to the second electronic device.
11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: When the first electronic device interacting with the stylus is switched to the second electronic device, the stylus vibrates in a first vibration mode.
12. The method according to any one of claims 1 to 10, characterized in that, The method further includes: When the second electronic device interacting with the stylus is switched to the first electronic device, the stylus vibrates in a second vibration mode.
13. The method of claim 3, wherein, The display interface of the first electronic device further displays prompt information corresponding to the switching control, and the prompt information is used to prompt the use of the stylus on the second electronic device.
14. A stylus, characterized by Comprise: One or more processors; One or more memories; The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method in any one of claims 1 to 13.
15. A chip, characterized by Comprise: A processor is configured to call and run a computer program from a memory, so that an electronic device installed with the chip executes the method in any one of claims 1 to 13.
16. A computer readable storage medium characterized by: The computer readable storage medium stores a computer program, and when the computer program is executed by an electronic device, the electronic device executes the method in any one of claims 1 to 13.
Citation Information
Patent Citations
Handwriting pen connection method and Bluetooth system
CN113115294A
Switching method of touch pen and input equipment
CN114217700A
Multi-protocol Coexistence in an Active Stylus
US20210286494A1