Touch operation method and device, chip, electronic equipment and storage medium

By dynamically configuring the communication format between the stylus and the touch screen according to the performance parameters of the touch screen, the poor user experience caused by the fixed communication format in the prior art is solved, and the point rate of the stylus and the communication efficiency of the equipment are improved. .

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

Patent Information

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

AI Technical Summary

Technical Problem

The communication format of the existing touch communication protocol is fixed, resulting in poor user experience and is easily disturbed by the working voltage of the touch screen, affecting the point rate and equipment communication power consumption.

Method used

The first configuration information is determined based on the performance parameters of the touch screen, and the configuration parameters are sent to the stylus through the wireless communication connection, and the communication format is flexibly configured to realize the communication format configured on demand and improve the user experience.

Benefits of technology

By dynamically configuring the communication format, the point rate of the stylus and the communication efficiency of the device are improved, the complexity of touch communication is simplified, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233281A_ABST
    Figure CN119233281A_ABST
Patent Text Reader

Abstract

The invention discloses a touch operation method and device, a chip, electronic equipment and a storage medium, the touch operation method is applied to the electronic equipment, the electronic equipment comprises a touch screen, and the method comprises the following steps: determining first configuration information according to performance parameters of the touch screen, the first configuration parameter is used for configuring a communication format of a first wireless communication connection established when a stylus is in contact with the touch screen; establishing a second wireless communication connection with the stylus; sending the first configuration parameter to the stylus through the second wireless communication connection; and receiving a touch signal sent by the stylus through the first wireless communication connection so as to realize a touch operation on the electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

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

[0003] At present, the communication protocols of touch communication of stylus pens mainly include universal stylus initiative (USI) protocol, Huawei pen protocol (HPP), Microsoft pen protocol (MPP), Apple communication protocols, etc. However, the communication formats of the above touch communication protocols are relatively fixed, resulting in poor user experience. Summary of the invention

[0004] The embodiments of the present application provide a touch operation method and device, a chip, an electronic device, and a storage medium. The following introduces various aspects involved in the embodiments of the present application.

[0005] In a first aspect, a touch operation method is provided, the method being applied to an electronic device, the electronic device comprising a touch screen, the method comprising: determining first configuration information based on performance parameters of the touch screen, the first configuration parameter being used to configure a communication format of a first wireless communication connection established when a stylus pen contacts the touch screen; establishing a second wireless communication connection with the stylus; sending the first configuration parameter to the stylus via the second wireless communication connection; and receiving a touch signal sent by the stylus via the first wireless communication connection, so as to implement touch operation on the electronic device.

[0006] In a second aspect, a touch operation device is provided, which is applied to an electronic device, wherein the electronic device includes a touch screen, and the device includes: a determination module, used to determine first configuration information according to performance parameters of the touch screen, wherein the first configuration parameter is used to configure a communication format of a first wireless communication connection established when a stylus pen contacts the touch screen; a wireless communication module, used to establish a second wireless communication connection with the stylus; a sending module, used to send the first configuration parameter to the stylus pen via the second wireless communication connection; and a receiving module, used to receive a touch signal sent by the stylus pen via the first wireless communication connection, so as to implement touch operation on the electronic device.

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

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

[0009] According to a fifth aspect, a computer-readable storage medium is provided, on which executable code is stored. When the executable code is executed, the method described in the first aspect can be implemented.

[0010] The embodiment of the present application provides a touch operation method, which can determine the first configuration information according to the performance parameters of the touch screen, and the first configuration parameters are used to configure the communication format of the first wireless communication connection established when the stylus touches the touch screen; then, the first configuration parameters are sent to the stylus through the second wireless communication connection, so as to achieve the purpose of configuring the communication format of the first wireless communication on demand; then, the touch signal sent by the stylus is received through the first wireless communication connection that has been configured, so as to realize the touch operation of the electronic device. Compared with the traditional solution in which the first configuration parameter is a fixed configuration parameter, this solution can determine the first configuration parameter according to the performance parameters of the touch screen, so as to configure the communication format of the first wireless communication on demand, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is an application scenario diagram provided by an embodiment of the present application.

[0012] Figure 2 It is a schematic diagram of the communication principle of the stylus pen on the electronic device provided in an embodiment of the present application.

[0013] Figure 3 It is a schematic diagram of a touch control system provided in an embodiment of the present application using the USI protocol for data interaction.

[0014] Figure 4 It is a schematic diagram of a touch control system of an In cell type touch screen provided in an embodiment of the present application using the HPP protocol for data interaction.

[0015] Figure 5 It is a schematic diagram of a touch control system of an On cell type touch screen provided in an embodiment of the present application using the HPP protocol for data interaction.

[0016] Figure 6 It is a flowchart of a touch operation method provided in one embodiment of the present application.

[0017] Figure 7 It is a flowchart of a touch operation method provided by another embodiment of the present application.

[0018] Figure 8 is a schematic diagram of the structure of a touch operating device provided in one embodiment of the present application.

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

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

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

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

[0023] The stylus pen 110 may be, for example, an active stylus pen, and the stylus pen 110 may include a circuit unit, which may actively output a touch signal to the electronic device 120 for reception. The electronic device 120 may implement a touch operation on the electronic device 120 according to data information such as pressure information, display line parameters (such as line color, shape, thickness, etc.), and touch signals sent by the stylus pen 110, and the touch operation may include, for example, click, slide, write, draw, and other operation functions.

[0024] In some embodiments, the tip of the stylus pen 110 generally includes two antennas, which may also be referred to as "tip antennas". The electronic device 120 may determine the position coordinates of the stylus pen 110 on the touch screen by receiving the touch signals sent by the two antennas, and may further calculate information such as the tilt angle of the stylus pen 110.

[0025] In some embodiments, the electronic device 120 may further include a touch screen sensor 121, a sensor controller 122, and a system controller 123. In some embodiments, the touch screen sensor 121, the sensor controller 122, the system controller 123, and the stylus 110 may be referred to as a touch system.

[0026] The touch screen sensor 121 can be used to detect the touch signal sent by the stylus 110 to determine the position coordinates of the stylus on the touch screen. The sensor controller 122 is the main controller for bidirectional communication with the stylus 121. The sensor controller 122 is capacitively coupled with the stylus 110 via the touch screen sensor 121 (hereinafter referred to as Figure 2 For example, see Figure 2 The system controller 123 may control the functions of various parts of the electronic device 120 including the touch screen sensor 121 and the sensor controller 122. The system controller 123 may be, for example, a central processing unit (CPU), an application processor (AP), etc., and this application does not impose any specific restrictions on this.

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

[0028] The present embodiment does not specifically limit the signal waveform of the touch signal emitted by the stylus 110. The touch signal output by the stylus pen 110 tip antenna may be, for example, a square wave signal, a sine wave signal, a triangle wave signal, etc. For ease of description, the square wave signal is schematically used as an example for illustration below.

[0029] The above mainly introduces the application scenarios in the embodiments of the present application in detail. Figure 2 The communication principle of the sensor controller 31 and the stylus pen 110 via the touch screen sensor 121 through capacitive coupling is described by way of example.

[0030] As shown in Figure 2, there is an insulating material, such as air or glass, between the tip of the stylus pen 110 and the electrode of the touch screen sensor 121. The insulating material is equivalent to a small capacitor, so that capacitive coupling can be performed to form a capacitive path. Based on the capacitive path, the stylus pen 110 can send a touch signal to the sensor controller 122 via the touch screen sensor 121. The touch signal can be a square wave signal, and the touch signal can carry data information such as pressure information of the stylus pen 110 on the touch screen, display line parameters, etc. The touch screen sensor 121 can determine the position of the stylus pen 110 by detecting the position where the stylus pen 110 sends the touch signal on the touch screen. Accordingly, the electronic device 120 can determine whether the ink discharge conditions are met and display the trajectory based on the received pressure signal, display line information and position information of the stylus pen 110 on the touch screen.

[0031] It is understandable that the wireless communication established based on the capacitive path formed when the stylus pen 110 contacts the touch screen of the electronic device 120 can be called touch communication. In some embodiments, the touch communication can also be called pen-screen communication.

[0032] It should be noted that the communication format of touch communication (also referred to as the communication protocol of touch communication) can be configured through radio frequency parameters, and the touch signal is a square wave signal as an example. The radio frequency parameters may include the frequency of the square wave signal, the width of the transmission time slot corresponding to the square wave signal, the interval between the transmission time slots, the number of transmission time slots in a cycle, etc. The radio frequency parameters can be pre-configured. For example, the electronic device 120 can send radio frequency parameters to the stylus 110 via a Bluetooth connection to configure the communication format of touch communication. Only when the touch communication protocol between the stylus 110 and the electronic device 120 is consistent, can the stylus 110 realize touch operation with the electronic device 120.

[0033] With the development of touch technology, due to the high-precision touch technology of active stylus, more and more electronic devices use the touch method of active stylus for human-computer interaction. At present, the touch communication of active stylus mainly includes common protocols and private protocols. Common protocols include stylus protocols such as Universal Stylus Initiative (USI) protocol and Microsoft Pen Protocol (MPP), and private protocols include Huawei Pen Protocol (HPP), Wacom General Pen (WGP) and Apple and other stylus protocols. The following introduces the data interaction process of the touch system using common protocols or private protocols with specific examples.

[0034] As an example of a mutual agreement, Figure 3 FIG. 1 is a schematic diagram of a touch control system using the USI protocol for data interaction. It should be understood that the touch control system can be Figure 1 The touch system shown in .

[0035] See also Figure 1 and Figure 3 , the sensor controller 122 can periodically send a synchronization signal to the stylus 110 based on the capacitive path via the touch screen sensor 121. The synchronization signal can also be called a beacon signal (BS). The synchronization signal can be used to achieve data synchronization between the stylus 110 and the sensor controller 122. For example, the synchronization signal can be used to align the clock of the stylus 110 with the clock information on the electronic device 120 side. After the clock is synchronized, the stylus 110 can output a square wave signal based on the interval between the transmission time slots corresponding to the configured square wave signal, the width of the transmission time slot, the number of transmission time slots in one cycle, and other information. If the stylus 110 is far away from the touch screen sensor 121, the stylus 110 will always monitor the synchronization signal. When the stylus 110 moves into the range of the touch screen sensor 121, the capacitive coupling will be triggered, so that the touch communication between the stylus 110 and the sensor controller 122 can be achieved, and the stylus 110 can detect the synchronization signal periodically sent by the sensor controller 122. After receiving the synchronization signal, the stylus 110 may send confirmation information (e.g., ACK information) to the sensor controller 122 in response to the synchronization signal. Once the sensor controller 122 receives the ACK information, the working timing of the stylus 110 and the sensor controller 122 will work according to the agreed touch communication protocol. The sensor controller 122 may control the touch screen sensor 121 to detect and receive the square wave signal of the stylus 110 within the receiving time slot agreed in the protocol. The square wave signal includes the pressure-sensing signal and display line parameters generated by the stylus 110 on the touch screen. The touch screen sensor 121 may determine the position of the stylus 110 based on the position of the received square wave signal, and then send it to the sensor controller 122. Then, the sensor controller 122 may send the processed data such as the position information, pressure-sensing signal, and display line parameters of the stylus 110 to the system controller 123. The system controller 123 establishes a correspondence between the position information of the stylus pen 110 and information such as display line parameters, and sends the information to various applications such as drawing applications via the operating system of the electronic device 120 , thereby realizing touch operations on the electronic device 120 .

[0036] In some embodiments, the transmission period of the synchronization signal may be determined by the sensor controller 122. The period of the synchronization signal may be, for example, 4 ms to 25 ms.

[0037] See again Figure 3It can be seen that for data interaction using the USI protocol, one cycle can include 64 time slots, each time slot is 0.25ms. At 0ms-1.00ms, these four time slots are the time slots for the stylus 110 to detect the synchronization signal, which can also be called the synchronization signal detection time slot or the uplink synchronization signal time slot. After the stylus 110 detects the synchronization signal, it can feedback ACK information in this time slot at 1.25ms-1.50ms. In order to reserve reaction time for the stylus 110, a gap interval (GAP) can also be set for the time slot at 1.00ms-1.25ms. At 1.25ms-1.75ms, these two time slots are the time slots for the sensor controller 122 to detect and receive ACK information. Furthermore, it can be seen that five data transmission time slots (i.e., T4-T7, T16-T19, T28-T31, T40-T43, T52-T55) can be included in one cycle, the width of the transmission time slot corresponding to the square wave signal is 1ms, and the interval of the transmission time slot is 2ms. Since the touch communication connection between the stylus 110 and the sensor controller 122 is used for data transmission, it is easy to be interfered by the working voltage of the touch screen (for example, during the operation of the touch screen, the working voltage of the touch screen will generate a radiation electric field, which will interfere with the touch communication), a piece of data can also be repeatedly sent in each transmission time slot to ensure the stability of the touch communication.

[0038] It can be understood that the sending time slot and the receiving time slot in the embodiment of the present application are corresponding. If it is a data sending time slot for the stylus 110, it is a data receiving time slot for the electronic device 120.

[0039] It is understandable that in the USI protocol, the communication format of the touch communication is a pre-configured fixed format. All data is completed through the touch communication connection between the stylus 110 and the sensor controller 122. Data communication (such as pressure sensing signals, display line information, etc.) will occupy the cycle time and affect the reporting rate of the active pen. At the same time, the touch communication connection between the stylus 110 and the sensor controller 122 is easily disturbed, which will cause problems such as the stylus disconnection and ghost points.

[0040] As an example of a private protocol, the touch control system can use the HPP protocol for data interaction. Among them, the HPP protocol regulates the time slot allocation for the interaction between the On cell type touch screen and the In cell type touch screen and the corresponding frequency of the touch screen. It can be understood that the In cell type touch screen refers to the touch panel function embedded in the liquid crystal pixel, which is generally integrated with the liquid crystal layer. The On cell type touch screen refers to the touch screen embedded between the color filter substrate and the polarizer of the display screen, that is, a touch sensor is installed on the liquid crystal panel. The following examples illustrate the data interaction between electronic devices with two types of touch screens and touch pens.

[0041] Figure 4 FIG. 1 is a schematic diagram of a touch control system of an In cell type touch screen using the HPP protocol for data exchange. It should be understood that the touch control system of an In cell type touch screen can be Figure 1 The touch system shown in . Figure 1 and Figure 4 , the time slots on the electronic device 120 side include an uplink synchronization signal time slot, a display time slot, and a receiving time slot. Among them, the uplink synchronization signal time slot is used to send an uplink synchronization signal. Exemplarily, the sensor controller 122 on the electronic device 120 side can periodically send an uplink synchronization signal to the stylus 110 on the uplink synchronization signal time slot. In one example, when the stylus 110 is not detected, the uplink synchronization signal sent by the electronic device 120 side can be called a detection signal, which is used to align the clock of the stylus 110 with the clock information on the electronic device 120 side, and is also used to trigger the stylus 110 to output a square wave signal based on the aligned clock signal and the configured RF parameters. In another example, when the electronic device 120 and the stylus 110 perform signal interaction, the uplink synchronization signal sent by the electronic device 120 side can be called a synchronization signal, which is used to calibrate the clock of the stylus 110 with the clock information on the electronic device 120 side.

[0042] It should be noted that the RF parameters may be configured by the electronic device 120 sending the configuration to the stylus 110 via the Bluetooth connection after the stylus 110 and the electronic device 120 are paired via Bluetooth. Currently, a fixed format is mainly used to configure the communication RF parameters of the touch control system.

[0043] It should be noted that the stylus 110 can also use other short-range wireless technologies to exchange data with the electronic device 120, and the short-range wireless technology can be, for example, Bluetooth, Wi-Fi, or Zigbee communication technology. As an example, the stylus 110 can establish Bluetooth communication with the electronic device 120, and the pressure information and display line data of the stylus 110 on the touch screen can be transmitted to the electronic device 120 via Bluetooth communication.

[0044] See again Figure 4 As can be seen, the stylus pen 110 may include two pen tip antennas, namely, a first antenna and a second antenna. The first antenna (TX1) has a square wave signal transmission function, and the second antenna (TX2 / RX) has a square wave signal transmission and reception function. Exemplarily, TX1 may transmit a square wave signal in a transmission time slot of the stylus pen 110, for example Figure 4 The interval between the transmission time slots refers to the interval between two adjacent transmission time slots, for example Figure 4 The width of the transmission time slot refers to the duration of the square wave signal that the stylus pen 110 can send in each transmission time slot, such as the time length occupied by the time T3 to T4. The number of transmission time slots in a cycle (such as the time T1 to T10) can be 4, such as Figure 4 As shown, it may include time T3-T4, time T5-T6, time T7-T8, and time T9-T10.

[0045] Continue to see Figure 4 , illustratively, the stylus 120 can continuously monitor (for example, at T0-T1) whether a detection signal sent by the electronic device 120 (i.e., the detection signal sent by the sensor controller 122 via the touch screen sensor 121) is received through the second antenna (TX2 / RX). The electronic device 120 can send a detection signal in the uplink synchronization channel time slot (i.e., at T1-T2). As described above, the stylus 110 continuously monitors whether a detection signal is received from the electronic device 120. At T1-T2, when the stylus 110 receives the detection signal sent by the electronic device 120, the clock of the stylus 110 can be aligned with the clock information on the electronic device 120 side, and start to output a square wave signal based on the configured RF parameters.

[0046] It should be noted that the square wave signal transmission time slots of the first antenna and the second antenna can adopt a time division multiplexing mode, that is, the first antenna and the second antenna transmit square wave signals of the same frequency at different times. Exemplarily, the first antenna (TX1) transmits square wave signals at time T3-T4 and time T5-T6, and the second antenna (TX2 / RX) transmits square wave signals at time T7-T8 and time T9-T10.

[0047] It should be noted that the display screen of the electronic device 120 can display images within the display time slot.

[0048] Figure 5 FIG. 1 is a schematic diagram of a touch control system of an On cell type touch screen using the HPP protocol for data exchange. It should be understood that the touch control system of an On cell type touch screen can be Figure 1The touch system shown in . Figure 2 and Figure 5 The channel on the electronic device 120 side includes an uplink synchronization channel time slot, a finger detection time slot and a receiving time slot. Among them, the finger detection time slot is used to detect the operation of the user's finger on the touch screen. The description of other time slots can refer to Figure 4 The relevant content description of some parts will not be repeated here.

[0049] Continue to see Figure 5 , the description of time T0~T2 can refer to Figure 4 ,and Figure 4 The difference is that Figure 5 The first antenna (TX1) and the second antenna (TX2 / RX) in the embodiment transmit square wave signals in a frequency division manner, that is, the first antenna and the second antenna can transmit square wave signals of different frequencies in the same transmission time slot (for example, T4-T5 and T6-T7). For example, the first antenna can transmit a square wave signal with a frequency of 200KHz in each transmission time slot (for example, T4-T5, T6-T7, and T8-T9), and the second antenna can transmit a square wave signal with a frequency of 100KHz in each transmission time slot. Exemplarily, after the second antenna monitors the detection signal sent by the electronic device 120, the first antenna may send a square wave signal at time T3, and the second antenna may send a square wave signal at time T4, that is, the first antenna will send a square wave signal to the electronic device 120 before the second antenna. Accordingly, since the square wave signal sent by the first antenna may reach the electronic device 120 side before the square wave signal of the second antenna, the electronic device 120 may determine, based on the arrival time of the square wave signal, that the transmitting antenna corresponding to the first received square wave signal is the first antenna of the stylus 110, and the transmitting antenna corresponding to the later received square wave signal is the second antenna of the stylus 110. Furthermore, information such as the tilt angle of the stylus can be determined based on the square wave signals sent by the first antenna and the second antenna.

[0050] The above mainly gives examples of commonly used communication protocols of touch control systems. It can be seen that both public and private protocols use a fixed format to configure the RF parameters of touch control communication. However, in some scenarios, the user experience will be reduced.

[0051] For example, in a touch system that uses the USI protocol for data interaction, since the communication format is fixed (for example, the width of the transmission time slot corresponding to the square wave signal is fixed), in order to reduce the interference of the touch screen operating voltage on the touch communication, the relevant technology will repeatedly send a copy of the data in each transmission time slot, which will reduce the reporting rate of the stylus pen and increase the power consumption of the device communication, resulting in a poor user experience. It is understandable that if the width of the transmission time slot can be flexibly configured (for example, increasing the width of the transmission time slot) so that the electronic device has enough time to detect the square wave signal sent by the stylus pen, there is no need to send repeated data, thereby also improving the reporting rate of the stylus pen.

[0052] For another example, in the touch control system of the In cell type touch screen that uses the HPP protocol for data exchange, with the development of display technology, the high-definition display of the screen also means an increase in the pixel refresh time. Since the communication format is fixed (for example, the width of the transmission time slot corresponding to the square wave signal is fixed), in order to increase the pixel refresh time, in the related technology, the overall RF parameters are generally reconfigured to increase the communication cycle time to increase the number of display time slots in each cycle, so as to meet the pixel refresh time requirements. However, this will undoubtedly increase the complexity of the touch communication configuration. It is understandable that if the width of the transmission time slot can be flexibly configured (for example, increasing the width of the transmission time slot) so that the electronic device has sufficient pixel refresh time in the display time slot, the complexity of the touch communication can be greatly simplified.

[0053] For another example, in an on-cell touch screen touch system that uses the HPP protocol for data exchange, if you want to increase the receiving time slot of the electronic device or increase the finger detection time slot, the relevant technology will also reconfigure the overall RF parameters to increase or decrease the communication cycle time, so as to increase or decrease the number of display time slots in each cycle. The configuration is complex and the user experience is poor.

[0054] In order to solve the above problems, the embodiment of the present application provides a touch operation method, which can determine the first configuration information according to the performance parameters of the touch screen, and the first configuration parameters are used to configure the communication format of the first wireless communication connection established when the stylus touches the touch screen; then, the first configuration parameters are sent to the stylus through the second wireless communication connection, so as to achieve the purpose of configuring the communication format of the first wireless communication on demand; then, the touch signal sent by the stylus is received through the first wireless communication connection that has been configured, so as to realize the touch operation of the electronic device. Compared with the traditional solution in which the first configuration parameter is a fixed configuration parameter, this solution can determine the first configuration parameter according to the performance parameters of the touch screen, so as to configure the communication format of the first wireless communication on demand, thereby improving the user experience.

[0055] Combined with the following Figure 6 The touch operation method in the embodiment of the present application is described in detail. Figure 6 As shown, the touch operation method 600 can be applied to an electronic device, and the electronic device includes a touch screen. It should be understood that the electronic device can be any type of electronic device mentioned above, such as Figure 1 The electronic device 120 in the embodiment of the present invention. The touch operation method 600 may include steps S610-S640.

[0056] In step S610, first configuration information is determined according to the performance parameters of the touch screen, wherein the first configuration parameters can be used to configure the communication format of the first wireless communication connection established when the stylus pen contacts the touch screen.

[0057] In some embodiments, the first wireless communication may be a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the touch screen. The first wireless communication may also be referred to as touch communication or pen-screen communication.

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

[0059] In some embodiments, the first configuration information may include one or more of the following parameters: within a communication cycle of touch communication, the signal frequency of the touch pen sending a touch signal to the electronic device, the time slot width of the touch pen sending a touch signal to the electronic device, the display time slot width of the touch screen, the finger detection time slot width of the touch screen, the time slot interval of the touch pen sending a touch signal to the electronic device, and the number of time slots of the touch pen sending a touch signal to the electronic device. In some embodiments, the first configuration information may also be referred to as a radio frequency configuration parameter, or simply a radio frequency parameter.

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

[0061] In some embodiments, the touch screen may be a touch display screen of an electronic device, and the performance parameters of the touch screen include the operating voltage of the touch screen, the interference intensity of the touch screen to touch communication in the working state, the pixel refresh frequency of the touch screen in the working state, etc.

[0062] It should be noted that the unit of the working voltage of the touch screen is V, and the interference intensity of the touch screen on the touch communication in the working state may refer to the interference intensity of the working voltage of the touch screen on the touch communication in the working state, that is, the intensity of the radiation electric field generated by the working voltage of the touch screen, and its unit is V / m. In other words, the intensity of the radiation electric field generated by the working voltage of the touch screen in the working state can also be called the interference intensity of the touch screen on the first wireless communication in the working state. As an example, if the working voltage of the touch screen of the electronic device is 5V, its effective radiation electric field intensity (i.e., interference intensity) can reach 3.7V / m, for example. It should be understood that its interference intensity will weaken with the increase of distance.

[0063] In some embodiments, the first configuration parameter can be determined based on the interference intensity of the touch screen on the first wireless communication connection in the working state. For example, the time slot width for the stylus to send a touch signal to the electronic device can be determined based on the interference intensity of the touch screen on the first wireless communication connection in the working state. That is, the embodiment of the present application can flexibly configure the communication format of the touch communication. For example, the anti-interference ability of the first wireless communication connection can be increased by increasing the time slot width for sending the touch signal.

[0064] It should be noted that the unit of the pixel refresh frequency of the touch screen in the working state is Hz, and the reciprocal of the pixel refresh frequency is the time (in seconds) occupied by the pixel refresh.

[0065] In some embodiments, the first configuration parameter may be determined according to the pixel refresh frequency of the touch screen. For example, in a touch system of an Incell type touch screen, the pixel refresh frequency requirement of high-definition display may be met by increasing the width of the display time slot of the touch screen.

[0066] In some embodiments, the signal frequency of the touch signal sent by the stylus to the electronic device may be, for example, 100 KHz or 200 KHz, and this application does not impose any specific limitation on this.

[0067] It should be noted that the time slot width for the stylus pen to send a touch signal to the electronic device may refer to the duration during which the stylus pen can send a touch signal in each sending time slot.

[0068] It should be noted that the time slot interval for the stylus to send a touch signal to the electronic device may refer to the time interval between two adjacent sending time slots.

[0069] The embodiment of the present application does not impose any specific limitation on the number of time slots included in each cycle. For example, a communication cycle may include 16 time slots, 32 time slots, or 64 time slots.

[0070] In some embodiments, the duration of each time slot may be, for example, 0.25 ms or 1 ms, and this application does not impose any specific limitation on this.

[0071] In step S620, a second wireless communication connection is established with the stylus.

[0072] In some embodiments, the second wireless communication connection can be, for example, any one of the following wireless connections: Bluetooth connection, Wi-Fi connection, Zigbee connection, ultra-wideband connection, etc., and this application does not impose specific limitations on this.

[0073] It should be noted that the present application does not impose any specific restrictions on the execution order of step S610 and step S620. For example, step S610 may be executed before step S620, or step S610 may be executed after step S620.

[0074] In step S630, the first configuration parameter is sent to the stylus through the second wireless communication connection.

[0075] In some embodiments, after receiving the first configuration information sent by the electronic device, the stylus can configure the communication format of the first wireless communication (also referred to as the communication protocol of the first wireless communication) according to the first configuration parameter. It should be understood that only when the first wireless communication protocol between the stylus and the electronic device is consistent, can the stylus and the electronic device implement touch operation.

[0076] In step S640, a touch signal sent by the stylus is received through the first wireless communication connection to implement a touch operation on the electronic device.

[0077] In some embodiments, before receiving a touch signal sent by the stylus through the first wireless communication connection, in response to establishing the first wireless communication connection, the electronic device side may periodically send an uplink synchronization signal to the stylus in an uplink synchronization signal time slot. In one example, when the stylus is not detected, the uplink synchronization signal sent by the electronic device side may be referred to as a detection signal. After receiving the detection signal, the stylus may feedback ACK information to the electronic device side. The detection signal may be used to align the clock information of the stylus with the clock information on the electronic device side. The detection signal is also used to trigger the stylus to output a touch signal to the electronic device side through the first wireless communication connection based on the aligned clock signal.

[0078] It should be noted that when the electronic device and the stylus are interacting with each other, the electronic device will still periodically send an uplink synchronization signal, which can be used to calibrate the clock of the stylus with the clock information of the electronic device.

[0079] In some embodiments, the stylus can send data information to the electronic device via a second wireless communication, where the data information includes a pressure signal detected by the stylus and display line parameters (for example, parameter information such as line color, shape, thickness, etc.)

[0080] In some embodiments, the touch screen sensor on the electronic device side can determine the position information of the stylus according to the position of the touch signal, and based on the position information of the stylus, the pressure signal and the display line parameters, etc., the touch operation of the electronic device can be realized.

[0081] In order to further understand the above touch operation method, take the stylus including two pen tip antennas, namely, antenna 1 (Tx1) and antenna 2 (Tx2) as an example, Figure 7 The touch operation method is described in detail with examples, which may specifically include the following steps.

[0082] In step S701, a Bluetooth connection may be established between the stylus pen and the electronic device, and then the electronic device may send the touch communication timing (T0-Tn) configuration information of antenna 1 and the touch communication timing (T0-Tm) configuration information of antenna 2 to the stylus pen via the Bluetooth connection. It is understandable that the touch timing configuration information of antenna 1 and antenna 2 may be flexibly configured by the electronic device based on the performance parameters of the touch screen.

[0083] It should be noted that in the embodiments of the present application, the touch timing of antenna 1 and antenna 2 can be flexibly configured partially or completely based on the performance parameters of the touch screen. For example, the electronic device can configure part or all of the timings T0 to Tn of antenna 1, such as the timing T0 of antenna 1, or the timings T2, T5, T6, etc., and the present application does not impose specific restrictions on this. For another example, the electronic device can configure part or all of the timings T0 to Tm of antenna 2, such as the timing T1 of antenna 2, or the timing T2, and the present application does not impose specific restrictions on this.

[0084] It should be noted that the present application can configure the touch timing of antenna 1 and antenna 2 separately according to the performance parameters of the touch screen. For example, the transmission time slot of antenna 1 and the transmission time slot of antenna 2 can be configured separately.

[0085] In step S702, the electronic device side can periodically broadcast a synchronization signal in the uplink synchronization signal time slot. After the stylus receives the synchronization signal, the synchronization signal can be used to align the clock information of the stylus with the clock information of the electronic device side. The stylus can send ACK information to the electronic device side within the agreed time. Of course, the electronic device can also configure the stylus not to send ACK information through configuration information.

[0086] In some embodiments, in order to reserve reaction time for the stylus, an idle time slot may be configured before sending the ACK message.

[0087] In some embodiments, the uplink synchronization signal time slot of the electronic device may be configured as 217 us. The ACK information receiving time slot of the electronic device may be configured as 150 us.

[0088] In step S703, the stylus pen can output a touch signal to the electronic device through touch communication. At the same time, the stylus pen can send data information to the electronic device through a Bluetooth connection. The data information includes the pressure signal detected by the stylus pen and display line parameters (for example, parameter information such as line color, shape, thickness, etc.).

[0089] In step S704, the touch screen sensor on the electronic device side can determine the position information of the stylus by detecting the position of the touch signal, and based on the position information of the stylus, the pressure signal and the display line parameters, etc., the touch operation of the electronic device can be realized.

[0090] According to the above content, it can be seen that in the embodiment of the present application, the electronic device side can independently set the touch communication timing (i.e., touch communication format) between the touch pen and the touch pen. In addition, the communication timing of antenna 1 (Tx1) and antenna 2 (Tx2) can also be configured separately, which is more versatile.

[0091] Combination of the above Figures 1 to 7 The method embodiment of the present application is described in detail. Figures 8 to 10 The device embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0092] Figure 8 FIG. 8 is a schematic diagram of a touch operation device according to an embodiment of the present application. The touch operation device 800 can be applied to an electronic device including a touch screen. The touch operation device 800 can include: a determination module 810, a wireless communication module 820, a sending module 830 and a receiving module 840.

[0093] The determination module 810 is used to determine first configuration information according to the performance parameters of the touch screen, where the first configuration parameters are used to configure a communication format of a first wireless communication connection established when the stylus pen contacts the touch screen.

[0094] The wireless communication module 820 is used to establish a second wireless communication connection with the stylus pen.

[0095] The sending module 830 is configured to send the first configuration parameter to the stylus through the second wireless communication connection.

[0096] The receiving module 840 is used to receive the touch signal sent by the stylus through the first wireless communication connection to implement a touch operation on the electronic device.

[0097] Optionally, the determination module 810 is used to determine the first configuration parameter according to the interference intensity of the touch screen on the first wireless communication connection in a working state.

[0098] Optionally, the determination module 810 is used to determine the first configuration parameter according to a pixel refresh frequency of the touch frequency.

[0099] Optionally, the touch panel is an In cell type touch screen.

[0100] Optionally, the first configuration parameter includes one or more of the following parameters: within a communication cycle of the first wireless communication connection, a signal frequency of the stylus sending a touch signal to the electronic device, a time slot width for the stylus to send a touch signal to the electronic device, a display time slot width of the touch screen, a finger detection time slot width of the touch screen, a time slot interval for the stylus to send a touch signal to the electronic device, and the number of time slots for the stylus to send a touch signal to the electronic device.

[0101] Optionally, the first wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the touch screen, and the second wireless communication connection is a Bluetooth connection, a Wi-Fi connection or a Zigbee connection.

[0102] Fig. 9 A schematic diagram showing the software structure of an electronic device provided in an embodiment of the present application is shown. Fig. 9 As shown, the electronic device 920 may include an application layer, a hardware abstraction layer (HAL) and a kernel layer.

[0103] The application layer may include a stylus management application 921. The stylus management application 921 may manage the state of the stylus 910 through the Bluetooth protocol stack 923. The state information includes the power level and component status of the stylus 910. For example, the user may be reminded to charge the stylus 910 or upgrade the components of the stylus 910. The stylus management application 921 may also send the state information of the stylus 910 to the sensor controller 926 through the sensor driver 924.

[0104] The HAL layer may include a monitoring process 922 and a Bluetooth protocol stack 923. The monitoring process 922 may also be referred to as a stylus Daemon. The Bluetooth protocol stack 923 communicates with the monitoring process 922 mainly through the inter-process communication mechanism Binder. For example, the Bluetooth driver 925 may report the pressure signal sent by the stylus 910 to the Bluetooth protocol stack 923, which may be sent to the monitoring process 922 through Binder. After the monitoring process 922 monitors the pressure parameter, it may be sent to the sensor controller 926 via the sensor driver 924. The monitoring process 922 may communicate with the touch screen driver according to the inter-process communication mechanism ioctl.

[0105] The kernel layer is a layer between hardware and software. The kernel layer may include a sensor driver 924 and a Bluetooth driver 925, etc.

[0106] The sensor controller 926 is the main control device of the touch control system, and the sensor controller 926 can be a general-purpose processor or a special-purpose processor. For example, the processor can be a central processing unit. Alternatively, the processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0107] Understandably, Fig. 9The touch control system in can be used to implement the touch control operation method mentioned above. As an example, the stylus 910 can establish a Bluetooth connection with the sensor controller 926, and then the sensor controller 926 can send the timing configuration information of the touch control communication to the stylus 910 through the Bluetooth driver 925. Then the sensor controller 926 can periodically broadcast the uplink synchronization signal, and after receiving the synchronization signal, the stylus 910 can align the clock information of the electronic device 920 side and the stylus 910. In some embodiments, the stylus 910 can send ACK information to the sensor controller 926 within the agreed time. Then, the stylus 910 can send a touch signal to the sensor controller 926 through touch control communication. At the same time, the stylus 910 can send pressure sensing signals and display line parameters to the sensor controller 926 based on Bluetooth communication via the Bluetooth driver 925, the Bluetooth protocol stack 923, the monitoring process 922 and the sensor driver 924. Based on the touch signal, the pressure sensing signal and the display line parameters, etc., the touch operation of the electronic device 920 can be realized.

[0108] Combine the following Fig.10 The electronic device 1000 in the embodiment of the present application is introduced. The electronic device 1000 can be used to implement the method described in the above method embodiment.

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

[0110] The electronic device 1000 may include one or more processors 1010. The processor 1010 may support the electronic device 1000 to implement the method described in the foregoing method embodiment.

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

[0112] The electronic device 1000 may further include one or more memories 1020. The memory 1020 stores a program, which can be executed by the processor 1010 to control the electronic device 1000 to execute the method described in the above method embodiment. The memory 1020 may be independent of the processor 1010 or integrated in the processor 1010.

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

[0114] The electronic device 1000 may further include a transceiver 1030. The processor 1010 may communicate with other devices through the transceiver 1030. For example, the processor 1010 may transmit and receive data with other devices through the transceiver 1030.

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

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

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

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

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

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

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

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

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

Claims

1. A touch operation method, characterized in that: The method is applied to an electronic device, wherein the electronic device includes a touch screen, and the method includes: Determining first configuration information according to performance parameters of the touch screen, where the first configuration parameters are used to configure a communication format of a first wireless communication connection established when the stylus pen contacts the touch screen; establishing a second wireless communication connection with the stylus; sending the first configuration parameter to the stylus via the second wireless communication connection; A touch signal sent by the stylus pen is received through the first wireless communication connection to implement a touch operation on the electronic device.

2. The method according to claim 1, characterized in that The determining the first configuration information according to the performance parameter of the touch screen includes: The first configuration parameter is determined according to the interference intensity of the touch screen on the first wireless communication connection in a working state.

3. The method according to claim 1, characterized in that The determining the first configuration information according to the performance parameter of the touch screen includes: The first configuration parameter is determined according to a pixel refresh frequency of the touch frequency.

4. The method according to claim 3, characterized in that The touch screen is an In cell type touch screen.

5. The method according to any one of claims 1 to 4, characterized in that The first configuration parameter includes one or more of the following parameters: Within a communication cycle of the first wireless communication connection, the signal frequency of the touch signal sent by the stylus pen to the electronic device, the time slot width of the touch signal sent by the stylus pen to the electronic device, the display time slot width of the touch screen, the finger detection time slot width of the touch screen, the time slot interval of the touch signal sent by the stylus pen to the electronic device, and the number of time slots for the stylus pen to send touch signals to the electronic device.

6. The method according to any one of claims 1 to 4, characterized in that The first wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the touch screen, and the second wireless communication connection is a Bluetooth connection, a Wi-Fi connection or a Zigbee connection.

7. A touch-operated device, characterized in that: The device is applied to an electronic device, the electronic device includes a touch screen, and the device includes: a determination module, configured to determine first configuration information according to performance parameters of the touch screen, wherein the first configuration parameters are used to configure a communication format of a first wireless communication connection established when the stylus pen contacts the touch screen; a wireless communication module, used to establish a second wireless communication connection with the stylus; a sending module, configured to send the first configuration parameter to the stylus pen through the second wireless communication connection; The receiving module is used to receive the touch signal sent by the stylus through the first wireless communication connection to implement the touch operation on the electronic device.

8. The device according to claim 7, characterized in that The determination module is used for: The first configuration parameter is determined according to the interference intensity of the touch screen on the first wireless communication connection in a working state.

9. The device according to claim 7, characterized in that The determination module is used for: The first configuration parameter is determined according to a pixel refresh frequency of the touch frequency.

10. The device according to claim 9, characterized in that The touch screen is an In cell type touch screen.

11. The device according to any one of claims 7 to 10, characterized in that The first configuration parameter includes one or more of the following parameters: Within a communication cycle of the first wireless communication connection, the signal frequency of the touch signal sent by the stylus pen to the electronic device, the time slot width of the touch signal sent by the stylus pen to the electronic device, the display time slot width of the touch screen, the finger detection time slot width of the touch screen, the time slot interval of the touch signal sent by the stylus pen to the electronic device, and the number of time slots for the stylus pen to send touch signals to the electronic device.

12. The device according to any one of claims 7 to 10, characterized in that The first wireless communication connection is a wireless communication connection established based on a capacitive path formed when the stylus pen contacts the touch screen, and the second wireless communication connection is a Bluetooth connection, a Wi-Fi connection or a Zigbee connection.

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

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

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