Synchronization method, wireless communication chip and active pen
Through the wireless communication chip, time information is transmitted between the touch screen and the active pen, time synchronization between the two is achieved, solving the problem of long synchronization process and poor anti-interference ability in the existing technology, and improving the active pen Response speed and user experience.
Patent Information
- Application Number
- CN202411914200.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-11-23
AI Technical Summary
In the prior art, the synchronization process between the touch screen and the active pen takes a long time, resulting in delay, affecting the response speed of the first writing of the active pen, and poor anti-interference ability, affecting the user experience.
By utilizing a wireless communication chip, time synchronization between the touch screen and the active pen is achieved. The specific method is that the first detection chip periodically transmits a synchronization signal, the first wireless communication chip receives the synchronization signal and sends time information associated therewith to the second wireless communication chip, and the second detection chip adjusts it according to the received time information. The timing of the synchronization signal is transmitted to achieve synchronization with the first detection chip.
Effectively avoid the delay caused by the synchronization method of the active pen coding signal of the touch screen blindly. It can immediately detect the position of the pen tip when the active pen approaches the touch screen, speed up the response speed of the active pen's first writing, and enable the touch screen Keeping synchronization with active pen for a long time improves the user experience.
Smart Images

Figure CN119473049A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention application with application date of November 23, 2021, application number 202111391572.3, and name “Synchronization method, wireless communication chip, synchronization device, electronic device and active pen”. Technical Field
[0002] Embodiments of the present application relate to the field of touch control technology, and more specifically, to a synchronization method, a wireless communication chip, and an active pen. Background Art
[0003] With the popularity of capacitive screens, the application of capacitive active pens has become more and more widespread. The protocol between the active pen and the touch screen is also constantly evolving, and its development trend has evolved from the early one-way communication to the current two-way communication. However, no matter what communication protocol is adopted, the touch screen and the active pen need to establish a connection in accordance with the signal reception and transmission timing and cycle agreed in the protocol, so that the touch screen can collect the coordinate signal of the active pen, thereby realizing the writing function of the active pen. It can be seen that the working premise of the active pen is to synchronize the timing with the touch screen to establish a connection. For this reason, how to effectively achieve synchronization between the touch screen and the active pen has become a problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a synchronization method, a wireless communication chip, and an active pen, which can effectively realize the synchronization between a touch screen and an active pen.
[0005] In a first aspect, a synchronization method is provided for time synchronization between a first detection chip of a first device and a second detection chip of a second device, wherein the first detection chip periodically sends a synchronization signal, and the method comprises:
[0006] A first wireless communication chip connected to the first detection chip receives the synchronization signal sent by the first detection chip at a first moment;
[0007] The first wireless communication chip sends time information associated with the synchronization signal to a second wireless communication chip connected to the second detection chip, wherein the time information is used to determine a second time when the first detection chip sends the synchronization signal next time, so that the second detection chip is synchronized with the first detection chip at the second time.
[0008] Based on this technical solution, after receiving the synchronization signal sent by the first detection chip at the first moment, the first wireless communication chip connected to the first detection chip will send the time information associated with the synchronization signal to the second wireless communication chip connected to the second detection chip. The second device obtains the time information associated with the synchronization signal through the second wireless communication chip, and uses the first moment as the time anchor point for sending the synchronization signal, so as to determine the second moment when the first detection chip sends the synchronization signal next time based on the first moment, so that the second detection chip and the first detection chip are synchronized at the second moment. Since the wireless communication chip is used to achieve synchronization between the touch screen and the active pen, the delay caused by the synchronization method of the blind detection of the active pen coding signal by the touch screen is avoided, and the pen tip position can be detected immediately when the active pen approaches the touch screen, which speeds up the response speed of the first stroke of the active pen, and can keep the touch screen and the active pen synchronized for a long time, improving the user experience.
[0009] In a possible implementation manner, the time information is used to determine a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment, and the first time difference is used to determine the second moment.
[0010] In a possible implementation, the second moment is a certain time period after the third moment, and the time period is equal to the difference between the length of a period in which the first detection chip sends the synchronization signal and the first time difference.
[0011] In a possible implementation, the first wireless communication chip transmits data with the second wireless communication chip based on its connection interval, and the time information is the second time difference between the fourth moment when the first Bluetooth chip receives the synchronization signal and the fifth moment when the first wireless communication chip last transmitted data with the second wireless communication chip.
[0012] In a possible implementation manner, the first time difference is equal to a difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times:
[0013] the length of the connection period;
[0014] Data transmission time between the first wireless communication chip and the second wireless communication chip;
[0015] The time delay between the fourth moment and the first moment.
[0016] In a possible implementation manner, the synchronization signal is the last synchronization signal received by the first wireless communication chip within the connection period.
[0017] In a possible implementation manner, the first wireless communication chip and the second wireless communication chip are any one of the following: a BLE chip, a WIFI chip, an RF chip, and an NFC chip.
[0018] In a possible implementation, the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen.
[0019] In a second aspect, a synchronization method is provided for time synchronization between a first detection chip of a first device and a second detection chip of a second device, wherein the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen, and the first detection chip periodically sends a synchronization signal, and the method includes:
[0020] Acquire time information associated with a synchronization signal sent by a first wireless communication chip connected to the first detection chip to a second wireless communication chip connected to the second detection chip, wherein the synchronization signal is sent by the first detection chip at a first moment;
[0021] According to the time information, a second time when the first detection chip sends the synchronization signal next time is determined, so that the second detection chip is synchronized with the first detection chip at the second time.
[0022] Based on this technical solution, the second wireless communication chip connected to the second detection chip can receive the time information associated with the synchronization signal sent by the first wireless communication chip connected to the first detection chip, and the synchronization signal is sent by the first detection chip at the first moment. The second device obtains the time information associated with the synchronization signal through the second wireless communication chip, and uses the first moment as the time anchor point for sending the synchronization signal, so as to determine the second moment when the first detection chip sends the synchronization signal in the next cycle based on the first moment, so that the second detection chip and the first detection chip are synchronized at the second moment. Since the wireless communication chip is used to achieve synchronization between the touch screen and the active pen, the delay caused by the synchronization method of the blind detection of the active pen coding signal by the touch screen is avoided, and the pen tip position can be detected immediately when the active pen approaches the touch screen, which speeds up the response speed of the first stroke of the active pen, and can keep the touch screen and the active pen synchronized for a long time, improving the user experience.
[0023] In a possible implementation, the second moment when the first detection chip sends the synchronization signal next time based on the time information includes: determining, based on the time information, a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment; and determining the second moment based on the first time difference.
[0024] In a possible implementation, determining the second moment according to the first time difference includes: determining that the second moment is a certain time length after the third moment, and the time length is equal to the difference between the length of the period of the first detection chip sending the synchronization signal and the first time difference.
[0025] In a possible implementation, the first wireless communication chip transmits data with the second wireless communication chip based on its connection interval, and the time information is a second time difference between a fourth moment when the first Bluetooth chip receives the synchronization signal and a fifth moment when the first wireless communication chip last transmitted data with the second wireless communication chip.
[0026] In a possible implementation, the first time difference is equal to the difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times: the length of the connection period; the data transmission time between the first wireless communication chip and the second wireless communication chip; and the delay between the fourth moment and the first moment.
[0027] In a possible implementation manner, the synchronization signal is the last synchronization signal received by the first wireless communication chip within the connection period.
[0028] In a possible implementation manner, the first wireless communication chip and the second wireless communication chip are any one of the following: a BLE chip, a WIFI chip, an RF chip, and an NFC chip.
[0029] In a possible implementation manner, the synchronization method is executed by the second wireless communication chip or the second detection chip.
[0030] In a possible implementation, the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen.
[0031] In a third aspect, a wireless communication chip is disclosed, wherein the wireless communication chip is a first wireless communication chip connected to a first detection chip of a first device, and is used for time synchronization between the first detection chip and a second detection chip of a second device, wherein the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen, and the first detection chip periodically sends a synchronization signal, and the first wireless communication chip includes:
[0032] A receiving module, used for receiving the synchronization signal sent by the first detection chip at a first moment;
[0033] A sending module is used to send time information associated with the synchronization signal to a second wireless communication chip connected to the second detection chip, wherein the time information is used to determine a second moment when the first detection chip sends the synchronization signal next time, so that the second detection chip is synchronized with the first detection chip at the second moment.
[0034] In a possible implementation manner, the time information is used to determine a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment, and the first time difference is used to determine the second moment.
[0035] In a possible implementation, the second moment is a certain time period after the third moment, and the time period is equal to the difference between the length of a period in which the first detection chip sends the synchronization signal and the first time difference.
[0036] In a possible implementation, the first wireless communication chip transmits data with the second wireless communication chip based on its connection interval, and the time information is the second time difference between the fourth moment when the first Bluetooth chip receives the synchronization signal and the fifth moment when the first wireless communication chip last transmitted data with the second wireless communication chip.
[0037] In a possible implementation, the first time difference is equal to the difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times: the length of the connection period; the data transmission time between the first wireless communication chip and the second wireless communication chip; and the delay between the fourth moment and the first moment.
[0038] In a possible implementation manner, the synchronization signal is the last synchronization signal received by the first wireless communication chip within the connection period.
[0039] In a possible implementation manner, the first wireless communication chip and the second wireless communication chip are any one of the following: a BLE chip, a WIFI chip, an RF chip, and an NFC chip.
[0040] In a possible implementation, the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen.
[0041] In a fourth aspect, a synchronization device is provided for time synchronization between a first detection chip of a first device and a second detection chip of a second device, wherein the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen, and the first detection chip periodically sends a synchronization signal, and the synchronization device includes:
[0042] an acquisition module, configured to acquire time information associated with a synchronization signal sent by a first wireless communication chip connected to the first detection chip to a second wireless communication chip connected to the second detection chip, wherein the synchronization signal is sent by the first detection chip at a first moment;
[0043] The processing module is used to determine, according to the time information, a second time when the first detection chip sends the synchronization signal next time, so that the second detection chip is synchronized with the first detection chip at the second time.
[0044] In a possible implementation, the processing module is specifically used to: determine, based on the time information, a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment; and determine the second moment based on the first time difference.
[0045] In a possible implementation, the processing module is specifically used to: determine that the second moment is a certain time period after the third moment, and the time period is equal to the difference between the length of the cycle of the first detection chip sending the synchronization signal and the first time difference.
[0046] In a possible implementation, the first wireless communication chip transmits data with the second wireless communication chip based on its connection interval, and the time information is the second time difference between the fourth moment when the first Bluetooth chip receives the synchronization signal and the fifth moment when the first wireless communication chip last transmitted data with the second wireless communication chip.
[0047] In a possible implementation, the first time difference is equal to the difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times: the length of the connection period; the data transmission time between the first wireless communication chip and the second wireless communication chip; and the delay between the fourth moment and the first moment.
[0048] In a possible implementation manner, the synchronization signal is the last synchronization signal received by the first wireless communication chip within the connection period.
[0049] In a possible implementation manner, the first wireless communication chip and the second wireless communication chip are any one of the following: a BLE chip, a WIFI chip, an RF chip, and an NFC chip.
[0050] In a possible implementation manner, the synchronization device is the second wireless communication chip or the second detection chip.
[0051] In a possible implementation, the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen.
[0052] In a fifth aspect, a synchronization device is provided, comprising a processor and a memory, 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 execute the synchronization method in the first aspect or any possible implementation of the first aspect, or to execute the synchronization method in the second aspect or any possible implementation of the second aspect.
[0053] In a sixth aspect, an electronic device is provided, comprising: the wireless communication chip in the third aspect or any possible implementation of the third aspect, or the synchronization device in the fourth aspect or any possible implementation of the fourth aspect; and a touch screen.
[0054] In the seventh aspect, an active pen is provided, comprising: the wireless communication chip in the third aspect or any possible implementation of the third aspect, or the synchronization device in the fourth aspect or any possible implementation of the fourth aspect; and an electrode for outputting a coding signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a schematic diagram of the principle of using an active pen on a touch screen.
[0056] Figure 2 is a schematic diagram of synchronization between the touch screen and the active pen.
[0057] Figure 3It is a process interaction diagram of the synchronization method of an embodiment of the present application.
[0058] Figure 4 It is a schematic block diagram of a touch screen and an active pen according to an embodiment of the present application.
[0059] Figure 5 It is a schematic block diagram of a touch screen and an active pen according to another embodiment of the present application.
[0060] Figure 6 It is a schematic diagram of the signal timing of the synchronization method according to an embodiment of the present application.
[0061] Figure 7 It is a schematic diagram of the signal timing of the synchronization method according to an embodiment of the present application.
[0062] Figure 8 It is a schematic block diagram of the Bluetooth chip of an embodiment of the present application.
[0063] Fig. 9 It is a schematic block diagram of a synchronization device according to an embodiment of the present application. DETAILED DESCRIPTION
[0064] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0065] When the active pen is actually used, the touch screen needs to obtain the pen tip coordinates of the active pen, so as to display the handwriting of the active pen according to the pen tip coordinates. Figure 1 As shown, a certain number of horizontal and vertical detection electrodes are distributed on the touch screen 200. When the coding signal output by the tip electrode of the active pen 100 acts on a certain position of the touch screen 200, the horizontal and vertical detection electrodes corresponding to the position will generate corresponding detection signals, such as capacitance signals. Based on the detection signal, the position coordinates of the tip of the active pen 100 on the touch screen 200 can be calculated.
[0066] The coding signal may also be called a driving signal, an excitation signal, a pen signal, etc. It is an electrical signal emitted by the pen tip electrode of the active pen for determining the pen tip coordinates.
[0067] The active pen and the touch screen are two independent systems. The touch screen cannot predict when the user will use the active pen to write on the touch screen, that is, the touch screen cannot determine when to start detecting the coding signal emitted by the active pen. Therefore, the active pen and the touch screen must be synchronized in timing, and they need to be synchronized for a long time during the writing process, so that the touch screen can stably and accurately detect the coding signal emitted by the active pen.
[0068] Generally, there are two methods to achieve synchronization between the touch screen and the active pen. For an active pen that uses the Microsoft Pen Protocol (MPP), the touch screen gradually aligns its detection cycle with the coding cycle of the active pen by frequently detecting the coding signal of the active pen and adjusting its own detection cycle; for an active pen that uses the Universal Stylus Initiative (USI) protocol, the touch screen periodically sends a beacon signal, such as a direct sequence spread spectrum (DSSS) coded signal, which is detected by the active pen. When the active pen detects the correct beacon signal, it transmits the coding signal according to the agreed time delay, thereby achieving synchronization between the touch screen and the active pen.
[0069] For example Figure 2 As shown in the figure, when the period of the touch screen detecting the coding signal is aligned with the period of the active pen transmitting the coding signal in timing, and the signal detection window of the touch screen is consistent with the coding window of the active pen in timing, it means that the touch screen and the active pen have achieved synchronization. After synchronization, the touch screen can correctly detect the coding signal of the active pen, and thus calculate the touch information of the active pen, such as position, pressure, tilt angle and other information. In addition, Figure 2 As shown, the active stylus can also detect the touch of the finger during the time when the active stylus is not detected.
[0070] However, the synchronization process between the touch screen and the active pen in the above synchronization method takes a long time, generally requiring one or two cycles, each cycle is usually 16 milliseconds, so a certain delay is introduced. In addition, since the height requirement for the touch screen to detect the coding signal of the active pen is generally only 5mm to 10mm, that is, the tip of the active pen must be very close to the surface of the touch screen before synchronization can begin, so the synchronization process has a certain delay, resulting in a slow response to the first stroke of the active pen, affecting the user's writing experience.
[0071] In addition, the above synchronization method has poor anti-interference ability. The noise of the display screen, the interference of the charger, the interference of the lamp flickering and other factors may affect the synchronization process, resulting in the inability to synchronize the screen and the pen correctly, the pen disconnecting when writing, and even the active pen cannot be used normally. When the touch screen sends a beacon signal, the display effect of the display screen may be affected by the excessive driving voltage, causing the display screen to flicker and water ripples.
[0072] To this end, this application proposes a synchronization solution, in which the touch screen and the active pen achieve time synchronization based on Bluetooth communication. Since Bluetooth has advantages such as long transmission distance and strong anti-interference ability, it can ensure the stability and reliability of the synchronization process, so that the touch screen and the active pen can maintain long-term timing synchronization, and can immediately detect the pen tip position when the active pen approaches the touch screen, speeding up the first stroke response.
[0073] However, if the Bluetooth device is simply relied on to directly send the synchronization signal, it is required that during the operation of the active pen, the connection cycle of the Bluetooth device, the detection cycle of the touch screen, and the coding cycle of the active pen remain consistent or in an integer multiple relationship. Considering the design of the detection timing of the touch screen and the user's demand for the refresh rate of coordinate detection, the detection frequency of the touch screen detecting the active pen is generally around 60Hz, that is, the detection cycle is about 16.667ms, in which the pen tip coordinates of the active pen are detected four or six times in each cycle, and the reporting rate of the coordinates is 240HZ or 360Hz. In order to take into account the periodic consistency of the three, the period of the three needs to be fixed at 16.25ms, which limits the connection cycle of Bluetooth, because the typical value of the connection cycle of a Bluetooth device is generally 15ms, and according to the Bluetooth protocol, its connection cycle can be dynamically adjusted to be compatible with multiple Bluetooth devices connected to the same device at the same time, and the power consumption of the Bluetooth device can be reduced by extending the connection cycle in the idle state. Therefore, fixing the connection cycle of the Bluetooth device during the operation of the active pen may increase the power consumption of the Bluetooth device and affect the compatibility of multiple Bluetooth devices connected to the same device at the same time.
[0074] In order to better utilize the Bluetooth device to achieve synchronization between the active pen and the touch screen, the embodiment of the present application utilizes the Bluetooth chip to transmit timestamp information associated with the synchronization signal, and achieves synchronization between the touch screen and the active pen based on the timestamp information.
[0075] Figure 3 It is a process interaction diagram of the synchronization method of an embodiment of the present application. Figure 3 The method 300 is used for time synchronization between a first detection chip of a first device and a second detection chip of a second device. Optionally, the first device is one of a touch screen and an active pen of an electronic device, and the second device is the other of the touch screen and the active pen. For example, the first device is a touch screen and the second device is an active pen; or the first device is an active pen and the second device is a touch screen.
[0076] The method 300 may be performed by a first detection chip of a first device, a first wireless communication chip connected to the first detection chip, a second detection chip of a second device, and a second wireless communication chip connected to the second detection chip.
[0077] For example, Figure 4 and Figure 5 As shown, when the first device is a touch screen in an electronic device and the second device is an active pen, the first wireless communication chip is a wireless communication chip in the electronic device, such as a Bluetooth chip, a wireless LAN (Wireless Fidelity, WIFI) chip, a radio frequency (Radio Frequency, RF) chip, a near field communication (NearField Communication, NFC) chip, etc.; the first detection chip is a touch chip of the touch screen, that is, a touch panel integrated circuit (Touch Panel Integrated Circuit, TP IC), which is used for touch detection. The first detection chip and the first wireless communication chip can both interact with the main control of the electronic device, such as the CPU, and the first detection chip can send a signal to the first wireless communication chip through the I / O interface. The second wireless communication chip is a wireless communication chip in the active pen, such as a Bluetooth chip, a WIFI chip, an RF chip, an NFC chip, etc.; the second detection chip is a coding chip of the active pen, which is used to output a coding signal and detect the uplink signal output by the active pen. The second detection chip and the second wireless communication chip can transmit signals through the I / O interface, and the second detection chip is also connected to the pressure sensor to detect the pressure information of the active pen.
[0078] Correspondingly, when the first device is an active pen and the second device is a touch screen, the first wireless communication chip is the wireless communication chip in the active pen, such as a Bluetooth chip, a WIFI chip, an RF chip, an NFC chip, etc.; the first detection chip is the coding chip of the active pen; the second wireless communication chip is the wireless communication chip of the electronic device, such as a Bluetooth chip, a WIFI chip, an RF chip, an NFC chip, etc.; the second detection chip is a TP IC.
[0079] The first wireless communication chip and the second wireless communication chip can perform wireless transmission, for example, based on the connection period agreed in the Bluetooth protocol, also known as the connection interval, to transmit data packets. The above-mentioned Bluetooth chip is, for example, a Bluetooth Low Energy (BLE) chip.
[0080] Signals can be transmitted between the first detection chip and the second detection chip through an IO interface, for example, the active pen can transmit a coding signal to the touch screen, and the touch screen can also send an uplink signal to the active pen.
[0081] The synchronization signal used for synchronization in method 300 can be generated by either the first detection chip or the second detection chip, and the other can adjust its cycle to achieve synchronization between the two. In the following, it is assumed that the first detection chip periodically generates a synchronization signal during the synchronization process and sends the synchronization signal to the first wireless communication chip. Figure 4 and Figure 5 As shown, method 300 includes some or all of the following steps.
[0082] In step 310 , the first detection chip sends a synchronization signal to the first wireless communication chip at a first time T0 .
[0083] In step 320 , the first wireless communication chip receives a synchronization signal sent by the first detection chip at the first time T0 .
[0084] In step 330 , the first wireless communication chip sends time information associated with the synchronization signal to the second wireless communication chip.
[0085] In step 340, the time information is acquired, wherein the time information is used to determine the second time T1 at which the first detection chip sends a synchronization signal next time.
[0086] In step 350, the second time T1 at which the first detection chip sends a synchronization signal next time is determined according to the time information.
[0087] In step 360 , the second detection chip is synchronized with the first detection chip at a second time T1 .
[0088] In the above steps, step 310 is performed by the first detection chip, steps 320 and 330 are performed by the first wireless communication chip, and steps 340 and 350 can be performed by the second wireless communication chip or the second detection chip. When steps 340 and 350 are performed by the second wireless communication chip, the second wireless communication chip can inform the second detection chip of the information of the second moment T1 determined by it, so that the second detection chip adjusts its period for sending the coding signal, for example Figure 4 As shown, before step 360, the second detection chip also performs step 370; when steps 340 and 350 are performed by the second detection chip, the second wireless communication chip can inform the second detection chip of the time information associated with the synchronization signal it receives, and the second detection chip determines the second time T1 and adjusts its period for sending the coding signal, for example Figure 5 As shown, in step 330, after the second wireless communication chip obtains the time information, it sends the time information to the second detection chip; in addition, steps 340 and 350 can also be executed by other modules with data processing capabilities.
[0089] It can be seen that after receiving the synchronization signal sent by the first detection chip at the first moment, the first wireless communication chip connected to the first detection chip sends the time information associated with the synchronization signal to the second wireless communication chip connected to the second detection chip. The second device obtains the time information associated with the synchronization signal through the second wireless communication chip, and uses the first moment T0 as the time anchor point for sending the synchronization signal, that is, the time reference point, to determine the second moment T1 when the first detection chip sends the synchronization signal next time based on the first moment T0, so that the second detection chip and the first detection chip are synchronized at the second moment T1. Since the wireless communication chip is used to achieve synchronization between the touch screen and the active pen, the delay caused by the synchronization method of the blind detection of the active pen coding signal by the touch screen is avoided, and the pen tip position can be detected immediately when the active pen approaches the touch screen, which speeds up the response speed of the first stroke of the active pen, and can keep the touch screen and the active pen synchronized for a long time, improving the user experience.
[0090] After the first detection chip and the second detection chip are synchronized at the second moment T1, they can perform signal transmission based on the second moment T1. For example, the two can transmit a coding signal from the active pen to the touch screen at the second moment T1 or after a specific time period starting from the second moment T1, and the touch screen detects the coding signal at the same time; or at the second moment T1 or after a specific time period starting from the second moment T1, the touch screen sends an uplink signal to the active pen, and the active pen detects the uplink signal at the same time.
[0091] Figure 6 A schematic diagram of a possible signal timing based on method 300 is shown. Figure 6 In the example, the first device is a touch screen, the second device is an active pen, and the first detection chip sends a synchronization signal. The second detection chip adjusts its cycle based on the time information associated with the synchronization signal so as to be synchronized with the first detection chip.
[0092] In one implementation, the time information associated with the synchronization signal can be used to determine a first time difference Δt0 between a third time P1 when the second wireless communication chip receives the time information and the first time T0, and the first time difference Δt0 is used to determine the second time T1.
[0093] That is, in step 350, the second moment T1 when the first detection chip sends the synchronization signal next time is determined according to the time information associated with the synchronization signal, including: determining, according to the time information, the first time difference △t0 between the third moment P1 when the second wireless communication chip receives the time information and the first moment T0; and determining the second moment T1 according to the first time difference △t0.
[0094] The first time difference △t0 is the time difference between the moment when the first detection chip sends the synchronization signal and the moment when the second wireless communication chip receives the synchronization signal, or in other words, the first time difference △t0 is the delay of the synchronization signal between the first device and the second device. When the first time difference △t0 is determined based on the above time information, the transmission delay of the synchronization signal between the first device and the second device can be determined, and because the first detection chip periodically sends the synchronization signal, the time when the first detection chip sends the synchronization signal next time can also be determined.
[0095] That is, further, in step 350, according to the first time difference Δt0, determining the second moment T1 includes: determining that the second moment T1 is a certain time after the third moment P1, and the time is equal to the difference between the length of the cycle of the first detection chip sending the synchronization signal and the first time difference Δt0. The cycle is the time difference T1-T0 between the second moment T1 and the first moment T0.
[0096] In one implementation, the first wireless communication chip performs data transmission with the second wireless communication chip based on its connection interval, such as Figure 6 As shown, the time information associated with the synchronization signal sent by the first wireless communication chip to the second wireless communication chip can be the second time difference △t1 between the fourth moment X0 when the first Bluetooth chip receives the synchronization signal and the fifth moment Y0 when the first wireless communication chip last transmitted data with the second wireless communication chip.
[0097] That is to say, the first wireless communication chip can send the second time difference △t1 to the second wireless communication chip, so as to determine the first time difference △t0 between the third moment P1 and the first moment T0. The first time difference △t0 can be used to determine the second moment T1. Specifically, the second moment T1 is delayed by a certain time length relative to the third moment P1, and the time length is the difference between the length of the cycle of the first detection chip sending the synchronization signal and the first time difference △t0.
[0098] In one implementation, the first time difference Δt0 may be equal to the difference between the second time difference Δt1 and a preset value. The preset value may be equal to the sum of the following times: the length of the connection period between the first wireless communication chip and the second wireless communication chip; the data transmission time between the first wireless communication chip and the second wireless communication chip; and the delay between the fourth moment X0 and the first moment T0.
[0099] When the first wireless communication chip and the second wireless communication chip are Bluetooth chips, based on the Bluetooth protocol, the first wireless communication chip and the second wireless communication chip perform data transmission according to a certain connection cycle, for example Figure 6As shown, the first wireless communication chip and the second wireless communication chip periodically transmit data packets at time Y0, time Y1, and time Y2 according to the connection cycle. Even if there is no data to be transmitted, the first wireless communication chip and the second wireless communication chip need to transmit empty data packets to maintain synchronization between the two. The connection cycle is known and is recorded as C0.
[0100] The data transmission time between the first wireless communication chip and the second wireless communication chip refers to the time required for transmitting a data packet between the first wireless communication chip and the second wireless communication chip, that is, the time for the data packet to be transmitted over the air, such as the time difference between the third moment P1 and the moment Y1. The data transmission time is known and can be regarded as a constant, denoted as C1.
[0101] The time delay between the fourth moment X0 and the first moment T0 refers to the time taken by the first wireless communication chip to respond to the synchronization signal sent by the first detection chip. Since the synchronization signal is triggered by a wired connection through the I / O interface, the first wireless communication chip can capture the synchronization signal at the fastest speed, and each response time can have a very small jitter, for example, within 10us. Therefore, it can be regarded as a stable delay constant, denoted as C2, which can be obtained by measurement.
[0102] In summary, the preset value C may be C=C0+C1+C2. The first time difference Δt0 may be equal to the difference between the second time difference Δt1 and the preset value C, that is, Δt0=Δt1-C.
[0103] The following, combined Figure 6 How to determine the second time T1 is described in detail.
[0104] As an example, Figure 6 As shown, the first device is a touch screen, the second device is an active pen, the first detection chip periodically sends a synchronization signal, and the second detection chip adjusts its period based on the time information associated with the synchronization signal so as to synchronize with the first detection chip at the second moment T1.
[0105] The first detection chip is a TP IC, and the second detection chip is a coding chip. The first wireless communication chip and the second wireless communication chip are Bluetooth chips, and data packets are transmitted between the two based on a certain connection cycle C0, for example, data packets are transmitted at time Y0, time Y1, time Y2, etc. Time Y0, time Y1, and time Y2 are automatically recorded by the system clock of the Bluetooth chip and are known time anchor points.
[0106] The first detection chip of the touch screen sends a synchronization signal to the first wireless communication chip through the I / O interface using a wired connection at time T0. The first wireless communication chip receives the synchronization signal at time X0. There is a time delay between the two, that is, C2 = X0-T0. After receiving the synchronization signal, the first wireless communication chip immediately obtains the current time X0 and calculates the time delay △t1 = X0-Y0 between time X0 and Y0.
[0107] At time Y1, the first wireless communication chip sends a data packet carrying time information △t1 to the second wireless communication chip via wireless transmission. The second wireless communication chip receives the data packet carrying time information △t1 at time P1. There is a time delay between the two, that is, C1=P1-Y1.
[0108] Based on this, the active pen can calculate the time delay △t0 of moment P1 relative to moment T0, that is, △t0=(P1-Y1)+(Y1-X0)+(X0-T0). Combined with △t1=X0-Y0, it can be obtained that △t0=(P1-Y1)+(Y1-Y0-△t1)+(X0-T0)=C1+(C0-△t1)+C2=(C1+C0+C2)-△t1. Since C1, C0 and C2 are predictable constants, △t1 is an unknown quantity, △t0 is associated with △t1. When △t1 is known, △t0 can be determined based on △t1.
[0109] The active pen takes the time T0 as the time anchor point and the time T1 as the synchronization target, and calculates the timing time of the starting point S1 of the next cycle of the second detection chip relative to the time P1, that is, S1-P1=T1-P1=(T1-T0)-△t0=(T1-T0)-(C1+C0+C2)+△t1, where T1-T0 is the cycle of the first detection chip sending the synchronization signal, which is a known constant. It can be seen that as long as △t1 is obtained, the active pen can calculate the position at the second time T1, so that the second detection chip is synchronized with the first detection chip at time T1, that is, the cycle starting point of the second detection chip (S1 moment) is aligned with the cycle starting point of the first detection chip (T1 moment), thereby completing the synchronization of the active pen and the touch screen.
[0110] In the above synchronization method, the various time lengths and their calculations in the process of calculating the second time T1 with the first time T0 as the time anchor point may also have other equivalent transformations, which are not limited in this application. Any process that can calculate the time difference Δt0 between time P0 and time T0 can be used to determine time T2.
[0111] When the first wireless communication chip receives multiple synchronization signals in its connection cycle, it can optionally perform synchronization based on the last synchronization signal received by the first wireless communication chip in the connection cycle. Figure 7As shown, when the first wireless communication chip receives two synchronization signals at time X1 and time X2 respectively, the synchronization signal at time X1 should be discarded and the synchronization signal at time X2 should be used to recalculate the position of the synchronization time T3.
[0112] The synchronization scheme in the embodiment of the present application can be used not only in the synchronization scenario between the touch screen and the active pen, but also in the synchronization scenario between any other two devices with wireless communication functions to achieve clock synchronization between the two.
[0113] Figure 8 The wireless communication chip provided in the embodiment of the present application is shown. The wireless communication chip is a first wireless communication chip connected to a first detection chip of a first device, and is used for time synchronization between the first detection chip and a second detection chip of a second device. The first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen. The first detection chip periodically sends a synchronization signal. Figure 8 As shown, the first wireless communication chip 400 includes:
[0114] A receiving module 410, configured to receive the synchronization signal sent by the first detection chip at a first moment;
[0115] The sending module 420 is used to send time information associated with the synchronization signal to a second wireless communication chip connected to the second detection chip, wherein the time information is used to determine a second moment when the first detection chip sends the synchronization signal next time, so that the second detection chip is synchronized with the first detection chip at the second moment.
[0116] After receiving the synchronization signal sent by the first detection chip at the first moment, the first wireless communication chip in this embodiment will send the time information associated with the synchronization signal to the second wireless communication chip. The second device obtains the time information associated with the synchronization signal through the second wireless communication chip, and uses the first moment as the time anchor point for sending the synchronization signal, so as to determine the second moment when the first detection chip sends the synchronization signal next time based on the first moment, so that the second detection chip is synchronized with the first detection chip at the second moment. Since the wireless communication chip is used to achieve synchronization between the touch screen and the active pen, the delay caused by the synchronization method of the blind detection of the active pen coding signal by the touch screen is avoided, and the pen tip position can be detected immediately when the active pen approaches the touch screen, which speeds up the response speed of the first stroke of the active pen, and can keep the touch screen and the active pen synchronized for a long time, thereby improving the user experience.
[0117] In one implementation, the time information is used to determine a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment, and the first time difference is used to determine the second moment.
[0118] In one implementation, the second moment is a certain time period after the third moment, and the time period is equal to the difference between the length of a period in which the first detection chip sends the synchronization signal and the first time difference.
[0119] In one implementation, the first wireless communication chip transmits data with the second wireless communication chip based on its connection interval, and the time information is a second time difference between a fourth moment when the first Bluetooth chip receives the synchronization signal and a fifth moment when the first wireless communication chip last transmitted data with the second wireless communication chip.
[0120] In one implementation, the first time difference is equal to the difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times: the length of the connection period; the data transmission time between the first wireless communication chip and the second wireless communication chip; and the delay between the fourth moment and the first moment.
[0121] In one implementation, the synchronization signal is the last synchronization signal received by the first wireless communication chip within the connection period.
[0122] In one implementation, the first wireless communication chip and the second wireless communication chip are any one of the following: a BLE chip, a WIFI chip, an RF chip, and an NFC chip.
[0123] It should be understood that the specific process of the first wireless communication chip performing the synchronization operation and the beneficial effects produced can be found in the relevant description in the method embodiment, and for the sake of brevity, they are not repeated here.
[0124] Fig. 9 The synchronization device provided in the embodiment of the present application is shown. The synchronization device may be, for example, the second wireless communication chip or the second detection chip mentioned above. The synchronization device is used for time synchronization between the first detection chip of the first device and the second detection chip of the second device, and the first detection chip periodically sends a synchronization signal. Fig. 9 As shown, the synchronization device 500 includes:
[0125] An acquisition module 510 is used to acquire time information associated with a synchronization signal sent by a first wireless communication chip connected to the first detection chip to a second wireless communication chip connected to the second detection chip, wherein the synchronization signal is sent by the first detection chip at a first moment;
[0126] The processing module 520 is used to determine, according to the time information, a second time when the first detection chip sends the synchronization signal next time, so that the second detection chip is synchronized with the first detection chip at the second time.
[0127] The second wireless communication chip in this embodiment can receive time information associated with the synchronization signal sent by the first wireless communication chip connected to the first detection chip, and the synchronization signal is sent by the first detection chip at the first moment. The second device obtains the time information associated with the synchronization signal through the second wireless communication chip, and uses the first moment as the time anchor point for sending the synchronization signal, so as to determine the second moment when the first detection chip sends the synchronization signal in the next cycle based on the first moment, so that the second detection chip and the first detection chip are synchronized at the second moment. Since the wireless communication chip is used to achieve synchronization between the touch screen and the active pen, the delay caused by the synchronization method of the blind detection of the active pen coding signal by the touch screen is avoided, and the pen tip position can be detected immediately when the active pen approaches the touch screen, which speeds up the response speed of the first stroke of the active pen, and can keep the touch screen and the active pen synchronized for a long time, thereby improving the user experience.
[0128] In one implementation, the processing module 520 is specifically used to: determine, according to the time information, a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment; and determine the second moment according to the first time difference.
[0129] In one implementation, the processing module 520 is specifically used to: determine that the second moment is a certain time period after the third moment, and the time period is equal to the difference between the length of the cycle of the first detection chip sending the synchronization signal and the first time difference.
[0130] In one implementation, the first wireless communication chip transmits data with the second wireless communication chip based on its connection interval, and the time information is a second time difference between a fourth moment when the first Bluetooth chip receives the synchronization signal and a fifth moment when the first wireless communication chip last transmitted data with the second wireless communication chip.
[0131] In one implementation, the first time difference is equal to the difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times: the length of the connection period; the data transmission time between the first wireless communication chip and the second wireless communication chip; and the delay between the fourth moment and the first moment.
[0132] In one implementation, the synchronization signal is the last synchronization signal received by the first wireless communication chip within the connection period.
[0133] In one implementation, the first wireless communication chip and the second wireless communication chip are any one of the following: a BLE chip, a WIFI chip, an RF chip, and an NFC chip.
[0134] In one implementation, the first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen.
[0135] It should be understood that the specific process of the synchronization device performing the synchronization operation and the beneficial effects produced can be found in the relevant description in the method embodiment, and for the sake of brevity, they will not be repeated here.
[0136] The present application also provides a synchronization device, including a processor and a memory, 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 execute the method executed by the first wireless communication chip in any of the above embodiments.
[0137] The present application also provides a synchronization device, including a processor and a memory, 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 execute the method executed by a wireless device such as a second wireless communication chip or a second detection chip in any of the above embodiments.
[0138] The present application also provides an electronic device, comprising the first wireless communication chip and the first detection chip mentioned above; or, comprising the second wireless communication chip and the second detection chip mentioned above.
[0139] The present application also provides an active pen, comprising the above-mentioned first wireless communication chip and first detection chip; or, comprising the above-mentioned second wireless communication chip and second detection chip.
[0140] It should be noted that, under the premise of no conflict, the various embodiments described in this application and / or the technical features in each embodiment can be arbitrarily combined with each other, and the technical solution obtained after the combination should also fall within the protection scope of this application.
[0141] The systems, devices and methods disclosed in the embodiments of the present application may be implemented in other ways. For example, some features of the method embodiments described above may be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is merely a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the coupling may include electrical, mechanical or other forms of connection.
[0142] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0143] It should be understood that the specific examples in the embodiments of the present application are only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. Those skilled in the art can make various improvements and modifications based on the above embodiments, and these improvements or modifications all fall within the scope of protection of the present application.
[0144] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A synchronization method, characterized in that: For time synchronization between a first detection chip of a first device and a second detection chip of a second device, the first detection chip periodically sending a synchronization signal, the method comprising: A first wireless communication chip connected to the first detection chip receives the synchronization signal sent by the first detection chip at a first moment; The first wireless communication chip sends time information associated with the synchronization signal to the second wireless communication chip connected to the second detection chip, wherein the time information is a second time difference, and the second time difference is the time difference between a fourth moment when the first wireless communication chip receives the synchronization signal and a fifth moment when the first wireless communication chip most recently transmits data to the second wireless communication chip, and the second time difference is used to determine a second moment when the first detection chip sends the synchronization signal next time, so that the second detection chip is synchronized with the first detection chip at the second moment.
2. The synchronization method according to claim 1, characterized in that: The second time difference is used to determine a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment, and the first time difference is used to determine the second moment.
3. The synchronization method according to claim 2, characterized in that: The first time difference is equal to the difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times: The length of the connection period agreed upon by the first wireless communication chip and the second wireless communication chip; Data transmission time between the first wireless communication chip and the second wireless communication chip; The time delay between the fourth moment and the first moment.
4. The synchronization method according to claim 2 or 3, characterized in that: The second moment is located at a certain time length after the third moment, and the time length is equal to the difference between the length of a period in which the first detection chip sends the synchronization signal and the first time difference.
5. The synchronization method according to any one of claims 1 to 3, characterized in that: The synchronization signal is the last synchronization signal received by the first wireless communication chip within a connection period agreed upon by the first wireless communication chip and the second wireless communication chip.
6. The synchronization method according to any one of claims 1 to 3, characterized in that: The first wireless communication chip and the second wireless communication chip are any one of the following: Low-power Bluetooth BLE chip, wireless LAN WIFI chip, wireless radio frequency RF chip, near-field communication NFC chip.
7. The synchronization method according to any one of claims 1 to 3, characterized in that: The first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen.
8. A wireless communication chip, characterized in that: The wireless communication chip is a first wireless communication chip connected to a first detection chip of a first device, and is used for time synchronization between the first detection chip and a second detection chip of a second device. The first detection chip periodically sends a synchronization signal. The first wireless communication chip includes: A receiving module, used for receiving the synchronization signal sent by the first detection chip at a first moment; A sending module, used for sending time information associated with the synchronization signal to a second wireless communication chip connected to the second detection chip, wherein the time information is a second time difference, the second time difference is the time difference between a fourth moment when the first wireless communication chip receives the synchronization signal and a fifth moment when the first wireless communication chip most recently transmits data to the second wireless communication chip, and the second time difference is used to determine a second moment when the first detection chip next sends the synchronization signal, so that the second detection chip is synchronized with the first detection chip at the second moment.
9. The wireless communication chip according to claim 8, characterized in that: The second time difference is used to determine a first time difference between a third moment when the second wireless communication chip receives the time information and the first moment, and the first time difference is used to determine the second moment.
10. The wireless communication chip according to claim 9, characterized in that: The first time difference is equal to the difference between the second time difference and a preset value, wherein the preset value is equal to the sum of the following times: The length of the connection period agreed upon by the first wireless communication chip and the second wireless communication chip; Data transmission time between the first wireless communication chip and the second wireless communication chip; The time delay between the fourth moment and the first moment.
11. The wireless communication chip according to claim 9 or 10, characterized in that: The second moment is located at a certain time length after the third moment, and the time length is equal to the difference between the length of a period in which the first detection chip sends the synchronization signal and the first time difference.
12. The wireless communication chip according to any one of claims 8 to 10, characterized in that: The synchronization signal is the last synchronization signal received by the first wireless communication chip within a connection period agreed upon by the first wireless communication chip and the second wireless communication chip.
13. The wireless communication chip according to any one of claims 8 to 10, characterized in that: The first wireless communication chip and the second wireless communication chip are any one of the following: Low-power Bluetooth BLE chip, wireless LAN WIFI chip, wireless radio frequency RF chip, near-field communication NFC chip.
14. The wireless communication chip according to any one of claims 8 to 10, characterized in that: The first device is one of a touch screen and an active pen of the electronic device, and the second device is the other of the touch screen and the active pen.
15. An active pen, characterized in that: include: The wireless communication chip according to any one of claims 8 to 14; as well as, Electrode, used to output coding signal.
Citation Information
Patent Citations
Data synchronization method for mobile communication terminal
CN101707785A
Temperature detection method based on wireless sensor network
CN103926004A
Timing Synchronization of Active Stylus and Touch Sensor
CN105094384A
Active stylus synchronization with multiple communication protocols
US20180164904A1
Timing controller for controlling emission of emission element for recognizing touch coordinates and electronic device including the same
US20210248965A1