Signal decoding method and apparatus, electronic device, and storage medium
By determining the second frequency point when the touch device initiates frequency hopping and simultaneously analyzing the coding signals of the first and second frequency points, the system detects whether the active pen has completed frequency hopping, thus solving the problem of line breakage caused by the asynchronous frequency between the active pen and the touch device, and achieving frequency consistency and stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHIPONE TECHNOLOGY (BEIJING) CO LTD
- Filing Date
- 2023-02-09
- Publication Date
- 2026-05-05
AI Technical Summary
During the interaction between the stylus and the touch device, the line drawing process is interrupted due to frequency asynchrony when the touch device initiates frequency hopping.
The system periodically analyzes the coding signal sent by the active pen at the first frequency point, and determines the second frequency point when the touch device initiates frequency hopping. It periodically analyzes the coding signals of the first and second frequency points, detects whether the active pen has completed frequency hopping, and starts analyzing the coding signal of the second frequency point from the next cycle after the frequency hopping is completed.
This solves the problem of line breakage caused by frequency asynchrony during frequency hopping, ensuring frequency consistency between the active pen and the touch device, and avoiding line breakage.
Smart Images

Figure CN116048286B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a signal decoding method, apparatus, electronic device, and storage medium. Background Technology
[0002] During the interaction between the stylus and the touch device, the stylus sends a coding signal at a certain frequency according to a pre-defined format. The touch device, after synchronizing with the screen, samples the coding signal according to the pre-defined protocol. The touch device then parses the coding signal to obtain encoded information. It is crucial that the stylus coding frequency and the touch device's parsing frequency match during this parsing process. However, if the touch device initiates frequency hopping, due to communication delays and the stylus's response time, the touch device may fail to detect the coding signal for a period of time, resulting in broken lines. Summary of the Invention
[0003] In view of this, this disclosure proposes a signal decoding method, apparatus, electronic device and storage medium, which aims to avoid the situation where the line drawing is interrupted due to the asynchronous frequency with the active pen when the touch device initiates frequency hopping.
[0004] According to a first aspect of this disclosure, a signal decoding method is provided, the method comprising:
[0005] The coding signal at the first frequency point is periodically analyzed by the active pen.
[0006] In response to the touch device initiating frequency hopping, a second frequency point is determined and sent to the active pen;
[0007] The coding signals located at the first frequency point and the second frequency point are periodically analyzed, and it is detected whether the active pen has completed frequency hopping;
[0008] In response to the detection that the active pen has completed frequency hopping, the coding signal sent by the active pen at the second frequency point is periodically parsed starting from the next cycle.
[0009] In one possible implementation, the periodic parsing of the coded signals located at the first frequency point and the second frequency point includes:
[0010] Within each cycle, the first signal at the first frequency point and the second signal at the second frequency point are received multiple times.
[0011] The coding signal sent by the active pen is determined from each received first and second signal;
[0012] The coding signal is analyzed based on the frequency point corresponding to the coding signal.
[0013] In one possible implementation, determining the coding signal sent by the active pen from each received first and second signal includes:
[0014] In each received first signal and second signal, the signal with the larger amplitude is identified as the coding signal sent by the active pen.
[0015] In one possible implementation, detecting whether the active pen has completed frequency hopping further includes:
[0016] In response to the coding signal being a second signal, it is determined that the active pen has completed frequency hopping.
[0017] In one possible implementation, the periodic parsing of the coded signals located at the first frequency point and the second frequency point includes:
[0018] Within each cycle, signals are received multiple times and the signals located at the first frequency point and the signals located at the second frequency point are analyzed at intervals;
[0019] For signals for which no analysis result is obtained, the analysis result of the signal is determined to be the analysis result of the previous signal.
[0020] In one possible implementation, detecting whether the active pen has completed frequency hopping further includes:
[0021] The signal type of the signal for which no parsing result was obtained is detected, and the signal type includes signals located at a first frequency point and signals located at a second frequency point;
[0022] In response to the fact that the signal for which no resolution result was obtained is a signal located at the first frequency point, it is determined that the active pen has completed frequency hopping.
[0023] In one possible implementation, the method further includes:
[0024] The system detects noise at multiple frequencies in real time and identifies the frequency with the lowest noise as a candidate frequency.
[0025] In response to the candidate frequency point not being the first frequency point, the candidate frequency point is determined to be a second frequency point and frequency hopping is initiated. According to a second aspect of this disclosure, a signal decoding apparatus is provided, the apparatus comprising:
[0026] The first decoding module is used to periodically analyze the coding signal sent by the active pen at the first frequency point;
[0027] A frequency hopping initiation module is used to determine a second frequency point and send it to the active pen in response to the touch device initiating frequency hopping;
[0028] The second decoding module is used to periodically analyze the coding signals located at the first frequency point and the second frequency point, and to detect whether the active pen has completed frequency hopping;
[0029] The third decoding module is used to periodically parse the coding signal sent by the active pen at the second frequency point in response to the detection that the active pen has completed frequency hopping, starting from the next cycle.
[0030] In one possible implementation, the second decoding module is further configured to:
[0031] Within each cycle, the first signal at the first frequency point and the second signal at the second frequency point are received multiple times.
[0032] The coding signal sent by the active pen is determined from each received first and second signal;
[0033] The coding signal is analyzed based on the frequency point corresponding to the coding signal.
[0034] In one possible implementation, the second decoding module is further configured to:
[0035] In each received first signal and second signal, the signal with the larger amplitude is identified as the coding signal sent by the active pen.
[0036] In one possible implementation, the second decoding module is further configured to:
[0037] In response to the coding signal being a second signal, it is determined that the active pen has completed frequency hopping.
[0038] In one possible implementation, the second decoding module is further configured to:
[0039] Within each cycle, signals are received multiple times and the signals located at the first frequency point and the signals located at the second frequency point are analyzed at intervals;
[0040] For signals for which no analysis result is obtained, the analysis result of the signal is determined to be the analysis result of the previous signal.
[0041] In one possible implementation, the second decoding module is further configured to:
[0042] The signal type of the signal for which no parsing result was obtained is detected, and the signal type includes signals located at a first frequency point and signals located at a second frequency point;
[0043] In response to the fact that the signal for which no resolution result was obtained is a signal located at the first frequency point, it is determined that the active pen has completed frequency hopping.
[0044] In one possible implementation, the device further includes:
[0045] The candidate frequency point determination module is used to detect noise at multiple frequency points in real time and determine the frequency point with the least noise as the candidate frequency point.
[0046] The frequency hopping module is configured to determine the candidate frequency as the second frequency and initiate frequency hopping in response to the candidate frequency not being the first frequency.
[0047] According to a third aspect of this disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above-described method when executing instructions stored in the memory.
[0048] According to a fourth aspect of this disclosure, a non-volatile computer-readable storage medium is provided that stores computer program instructions thereon, wherein the computer program instructions, when executed by a processor, implement the above-described method.
[0049] According to a fifth aspect of this disclosure, a computer program product is provided, including computer-readable code or a non-volatile computer-readable storage medium carrying the computer-readable code, wherein when the computer-readable code is run in a processor of an electronic device, the processor in the electronic device performs the above-described method.
[0050] In this embodiment, the touch device periodically analyzes the coding signal at a first frequency point sent by the active pen, and determines a second frequency point and sends it to the active pen when frequency hopping is initiated. The coding signals at the first and second frequency points are periodically analyzed, and it is detected whether the active pen has completed frequency hopping. If the touch device detects that the active pen has completed frequency hopping, it periodically analyzes the coding signal at the second frequency point sent by the active pen starting from the next cycle. This disclosure solves the problem of line breakage due to frequency asynchrony during frequency hopping by simultaneously analyzing the coding signals at the first and second frequency points during the period from when the touch device initiates frequency hopping to when the active pen completes frequency hopping.
[0051] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0052] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this disclosure together with the specification and serve to explain the principles of this disclosure.
[0053] Figure 1 A flowchart of a signal decoding method according to an embodiment of the present disclosure is shown;
[0054] Figure 2 A schematic diagram of a signal decoding process according to an embodiment of the present disclosure is shown;
[0055] Figure 3 A schematic diagram illustrating another signal decoding process according to an embodiment of the present disclosure is shown;
[0056] Figure 4 A schematic diagram of a signal decoding apparatus according to an embodiment of the present disclosure is shown;
[0057] Figure 5 A schematic diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0058] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0059] In the description of this disclosure, it should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this disclosure and simplifying the description, and are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure.
[0060] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise expressly specified.
[0061] In this disclosure, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this disclosure according to the specific circumstances.
[0062] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. Furthermore, the term "at least one" in this document means any combination of at least two of any one or more elements. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.
[0063] The touch device executing the signal decoding method of this disclosure can be an electronic device with a touchscreen capable of interacting with an active pen, such as a terminal device or a server. The terminal device can be any fixed or mobile terminal, such as a user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, or wearable device. The server can be a single server or a server cluster consisting of multiple servers. Any electronic device can implement the signal decoding method of this disclosure by having its processor call computer-readable instructions stored in its memory.
[0064] Figure 1 A flowchart illustrating a signal decoding method according to an embodiment of the present disclosure is shown. Figure 1 As shown, the signal decoding method of this disclosure embodiment may include steps S10-S40.
[0065] Step S10: Periodically analyze the coding signal sent by the active pen at the first frequency point.
[0066] In one possible implementation, the touch device is an electronic device with a touchscreen, capable of interacting with an active stylus via the touchscreen. The initial resolution frequency of the touch device is a first frequency, and the frequency of the coding signal sent by the active stylus is also at the first frequency. Therefore, during interaction with the active stylus, the touch device can periodically resolve the coding signal sent by the active stylus at the first frequency to obtain encoded information. The coding signal sent by the active stylus can be a square wave signal with a frequency at the first frequency. The encoded information obtained by the touch device decoding the square wave signal includes the coordinate information of the active stylus on the touchscreen during interaction with the touch device, as well as the encoded information transmitted by the active stylus to the touch device.
[0067] Optionally, the touchscreen of the touch device in this embodiment of the present disclosure may experience display noise, power supply noise, and other noises during operation. Since noise affects the signal-to-noise ratio of the touch device in parsing the coding signal sent by the active pen, the touch device needs to detect the noise level of the touchscreen in real time and select the frequency with the lowest noise from multiple preset frequency points as the operating frequency point for both the touch device and the active pen. Before the touch device operates, the operating frequency point for both the touch device and the active pen is determined as the first frequency point. During operation, the touch device detects the noise of the currently received signal at each frequency point in real time, determines whether the frequency point with the lowest noise is the first frequency point, and decodes the coding signal sent by the active pen located at the first frequency point if the frequency point with the lowest noise is indeed the first frequency point.
[0068] Step S20: In response to the touch device initiating frequency hopping, determine the second frequency point and send it to the active pen.
[0069] In one possible implementation, the touch device detects noise at multiple frequencies in real time and identifies the frequency with the lowest noise as a candidate frequency. After identifying the candidate frequency, the touch device can determine whether frequency hopping needs to be initiated by comparing the candidate frequency with a first frequency, which is the current operating frequency. If the candidate frequency is the same as the first frequency, the touch device determines the first frequency as the frequency with the lowest noise, resulting in the lowest signal-to-noise ratio of the coding signal sent by the active pen and the most accurate decoding result. Conversely, if the candidate frequency is different from the first frequency, the touch device determines that the noise at the first frequency is too high, and the decoding result obtained from the coding signal sent by the active pen will be inaccurate due to noise. Therefore, if the candidate frequency is not the first frequency, the touch device can identify the candidate frequency with the lowest noise as the second frequency and use the second frequency to replace the first frequency as the new operating frequency to initiate frequency hopping.
[0070] Optionally, after initiating frequency hopping, the touch device needs to send the newly determined second frequency point to the active pen to ensure that frequency hopping is also completed at the active pen, guaranteeing that the operating frequency points of the active pen and the touch device are consistent. This means the active pen's operating frequency point is switched from the first frequency point to the second frequency point. The touch device can interact with the active pen via a Bluetooth module or an uplink signal displayed on the touchscreen, sending the second frequency point to the active pen.
[0071] Step S30: Periodically analyze the coding signals located at the first frequency point and the second frequency point, and detect whether the active pen has completed frequency hopping.
[0072] In one possible implementation, to avoid the inconsistency between the frequency of the coding signal sent before the active pen successfully hops frequency and the operating frequency of the touch device, which would cause the lines on the touch screen to be broken, the touch device can simultaneously parse the coding signals located at the first frequency and the second frequency during the decoding cycle when the frequency hopping is initiated but before confirming whether the active pen has completed the frequency hopping, and detect whether the active pen has completed the frequency hopping based on the parsing results.
[0073] Optionally, since different touch devices can support different numbers of operating frequencies simultaneously, the coding signals located at the first and second frequencies can be periodically parsed in different ways for different types of touch devices. For example, for touch devices that can simultaneously support two or more operating frequencies, the coding signals at both the first and second frequencies can be parsed simultaneously after initiating frequency hopping but before confirming successful frequency hopping by the active pen. For touch devices that can only support one operating frequency, the operating frequency can be alternately determined as the first and second frequencies after initiating frequency hopping but before confirming successful frequency hopping by the active pen, so that the coding signals at both frequencies are parsed at intervals within each cycle. When the touch device simultaneously parses the coding signals at both frequencies within one cycle, it also detects whether the active pen has completed frequency hopping based on the parsing results.
[0074] When a touch device can simultaneously support two or more operating frequencies, it acquires a first signal at a first frequency and a second signal at a second frequency multiple times in each cycle. The device then determines the coding signal sent by the active pen from each acquired first and second signal, and analyzes the coding signal based on the frequency corresponding to the coding signal. The coding signal sent by the active pen can be determined based on its amplitude; that is, the signal with the larger amplitude among the received first and second signals is identified as the coding signal sent by the active pen. During the decoding process of the signals at the first and second frequencies using the current decoding method, the touch device can monitor whether the active pen has completed frequency hopping based on the determined encoding information each time. Since the coding signal sent by the active pen before completing frequency hopping is located at the first frequency, and the coding signal sent after completing frequency hopping is located at the second frequency, the touch device can determine that the active pen has completed frequency hopping when the determined coding signal is the second signal.
[0075] When the touch device supports only one operating frequency, it can receive signals multiple times within each cycle and periodically decode signals located at the first frequency and the second frequency. For signals for which no decoding result is obtained, the decoding result of the previous signal is taken as the decoding result of the current signal. That is, for multiple signals received within one cycle, the touch device alternately decodes signals located at the first frequency, the second frequency, the first frequency, the second frequency, and so on. Specifically, when the decoding signal sent by the active pen is located at the first frequency, and the touch device fails to decode the signal at the second frequency each time, the decoding result obtained from the previous decoding of the signal at the first frequency is taken as the current decoding result. Similarly, when the decoding signal sent by the active pen is located at the second frequency, and the touch device fails to decode the signal at the first frequency each time, the decoding result obtained from the previous decoding of the signal at the second frequency is taken as the current decoding result. Because the coding signal sent by the active pen before completing frequency hopping is located at the first frequency point, and the coding signal sent after completing frequency hopping is located at the second frequency point, the touch device can detect the signal type of the signal for which no coding result was obtained in real time during the signal parsing process. The signal type includes signals located at the first frequency point and signals located at the second frequency point. Responding to the fact that the signal for which no coding result was obtained is located at the first frequency point, the device determines that the active pen has completed frequency hopping.
[0076] Step S40: In response to detecting that the active pen has completed frequency hopping, periodically analyze the coding signal sent by the active pen at the second frequency point starting from the next cycle.
[0077] In one possible implementation, when the touch device detects that the active pen has completed frequency hopping within a decoding cycle, it determines that the subsequent coding signal sent by the active pen is located at the second frequency point. Starting from the next decoding cycle, since both the touch device and the active pen operate at the second frequency point, the touch device begins to periodically parse the coding signal located at the second frequency point to enable interaction with the active pen.
[0078] Figure 2 A schematic diagram of a signal decoding process according to an embodiment of the present disclosure is shown. For example... Figure 2As shown, in one possible implementation, both the touch device and the active stylus initially operate at a first frequency point F0. Frequency hopping begins when the touch device changes its operating frequency to a second frequency point F1. Starting from period n after the frequency hopping begins, the touch device repeatedly acquires a first signal located at the first frequency point F0 and a second signal located at the second frequency point F1 within each period. It then determines the coding signal sent by the active stylus from each acquired first and second signal, and analyzes the coding signal based on the frequency point corresponding to the coding signal. Simultaneously, after initiating frequency hopping for m periods, the touch device can determine that the active stylus has completed frequency hopping when the determined coding signal is the second signal. Starting from the next period n+m+1, it changes its operating frequency to the second frequency point F1 and periodically analyzes the coding signal sent by the active stylus at the second frequency point F1.
[0079] Figure 3 A schematic diagram illustrating another signal decoding process according to an embodiment of the present disclosure is shown. Figure 3 As shown, in one possible implementation, both the touch device and the active stylus initially operate at a first frequency point F0. Frequency hopping begins when the touch device changes its operating frequency to a second frequency point F1. Starting from period n after the frequency hopping begins, the touch device can receive signals multiple times within each period and periodically analyze the signals located at the first frequency point F0 and the signals located at the second frequency point F1. For signals for which no analysis result is obtained, the analysis result is determined to be the analysis result of the previous signal. Simultaneously, after initiating frequency hopping for m periods, the touch device can determine that the active stylus has completed frequency hopping if the signal for which no analysis result is obtained is located at the first frequency point F0. Then, starting from the next period n+m+1, the operating frequency point is changed back to the second frequency point F1, and the coded signal sent by the active stylus at the second frequency point F1 is periodically analyzed.
[0080] Based on the above technical features, this embodiment solves the problem of line breakage caused by frequency asynchrony during frequency hopping by simultaneously parsing the coding signals of the first and second frequency points during the frequency hopping process initiated by the touch device and completed by the active stylus. Furthermore, for different types of touch devices, the coding signals of the first and second frequency points can be parsed simultaneously in different ways, increasing the versatility of the solution.
[0081] Figure 4 A schematic diagram of a signal decoding apparatus according to an embodiment of the present disclosure is shown. Figure 4 As shown, the signal decoding apparatus of this disclosure embodiment may include:
[0082] The first decoding module 40 is used to periodically analyze the coding signal sent by the active pen at the first frequency point;
[0083] Frequency hopping initiation module 41 is used to determine a second frequency point and send it to the active pen in response to the frequency hopping initiated by the touch device.
[0084] The second decoding module 42 is used to periodically analyze the coding signals located at the first frequency point and the second frequency point, and to detect whether the active pen has completed frequency hopping;
[0085] The third decoding module 43 is used to periodically parse the coding signal sent by the active pen at the second frequency point starting from the next cycle in response to detecting that the active pen has completed frequency hopping.
[0086] In one possible implementation, the second decoding module 42 is further configured to:
[0087] Within each cycle, the first signal at the first frequency point and the second signal at the second frequency point are received multiple times.
[0088] The coding signal sent by the active pen is determined from each received first and second signal;
[0089] The coding signal is analyzed based on the frequency point corresponding to the coding signal.
[0090] In one possible implementation, the second decoding module 42 is further configured to:
[0091] In each received first signal and second signal, the signal with the larger amplitude is identified as the coding signal sent by the active pen.
[0092] In one possible implementation, the second decoding module 42 is further configured to:
[0093] In response to the coding signal being a second signal, it is determined that the active pen has completed frequency hopping.
[0094] In one possible implementation, the second decoding module 42 is further configured to:
[0095] Within each cycle, signals are received multiple times and the signals located at the first frequency point and the signals located at the second frequency point are analyzed at intervals;
[0096] For signals for which no analysis result is obtained, the analysis result of the signal is determined to be the analysis result of the previous signal.
[0097] In one possible implementation, the second decoding module 42 is further configured to:
[0098] The signal type of the signal for which no parsing result was obtained is detected, and the signal type includes signals located at a first frequency point and signals located at a second frequency point;
[0099] In response to the fact that the signal for which no resolution result was obtained is a signal located at the first frequency point, it is determined that the active pen has completed frequency hopping.
[0100] In one possible implementation, the device further includes:
[0101] The candidate frequency point determination module is used to detect noise at multiple frequency points in real time and determine the frequency point with the least noise as the candidate frequency point.
[0102] The frequency hopping module is configured to determine the candidate frequency as the second frequency and initiate frequency hopping in response to the candidate frequency not being the first frequency.
[0103] For example, the electronic devices in this embodiment include, but are not limited to, desktop computers, televisions, mobile devices with large screens such as mobile phones and tablets, and other common electronic devices that require multiple chips to be cascaded together to achieve driving.
[0104] For example, electronic devices can also be user equipment (UE), mobile devices, user terminals, terminals, handheld devices, computing devices, or in-vehicle devices, etc. Examples of terminals include: displays, smartphones or portable devices, mobile phones, tablets, laptops, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and wireless terminals in vehicle-to-everything (V2X) networks, etc. For example, a server can be a local server or a cloud server.
[0105] Figure 5 A schematic diagram of an electronic device 1900 according to an embodiment of the present disclosure is shown. For example, the electronic device 1900 may be provided as a server or a terminal device. (Refer to...) Figure 5The electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by the processing component 1922. The application programs stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 1922 is configured to execute instructions to perform the methods described above.
[0106] Electronic device 1900 may also include a power supply component 1926 configured to perform power management of electronic device 1900, a wired or wireless network interface 1950 configured to connect electronic device 1900 to a network, and an input / output (I / O) interface 1958. Electronic device 1900 can operate on an operating system stored in memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.
[0107] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions that can be executed by a processing component 1922 of an electronic device 1900 to perform the above-described method.
[0108] The above description is merely an exemplary embodiment of the present invention and is not intended to limit the scope of protection of the present invention, which is determined by the appended claims.
[0109] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0110] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction containing one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0112] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A signal decoding method, characterized in that, Applied to a touch device, the method includes: The coding signal at the first frequency point is periodically analyzed by the active pen. In response to the touch device initiating frequency hopping, a second frequency point is determined and sent to the active pen; The coding signals located at the first frequency point and the second frequency point are periodically analyzed, and it is detected whether the active pen has completed frequency hopping; In response to detecting that the active pen has completed frequency hopping, the coding signal sent by the active pen at the second frequency point is periodically parsed starting from the next cycle; The periodic analysis of the coded signals located at the first frequency point and the second frequency point includes: Within each cycle, the first signal at the first frequency point and the second signal at the second frequency point are received multiple times. The coding signal sent by the active pen is determined from each received first and second signal; The coding signal is analyzed based on the frequency point corresponding to the coding signal; The step of determining the coding signal sent by the active pen from each received first and second signal includes: In each received first signal and second signal, the signal with the larger amplitude is identified as the coding signal sent by the active pen.
2. The method according to claim 1, characterized in that, The step of detecting whether the active pen has completed frequency hopping also includes: In response to the coding signal being a second signal, it is determined that the active pen has completed frequency hopping.
3. The method according to claim 1, characterized in that, The periodic analysis of the coded signals located at the first frequency point and the second frequency point includes: Within each cycle, signals are received multiple times and the signals located at the first frequency point and the signals located at the second frequency point are analyzed at intervals; For signals for which no analysis result is obtained, the analysis result of the signal is determined to be the analysis result of the previous signal.
4. The method according to claim 3, characterized in that, The detection of whether the active pen has completed frequency hopping also includes: The signal type of the signal for which no parsing result was obtained is detected, and the signal type includes signals located at a first frequency point and signals located at a second frequency point; In response to the fact that the signal for which no resolution result was obtained is a signal located at the first frequency point, it is determined that the active pen has completed frequency hopping.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: The system detects noise at multiple frequencies in real time and identifies the frequency with the lowest noise as a candidate frequency. In response to the fact that the candidate frequency point is not the first frequency point, the candidate frequency point is determined to be the second frequency point and frequency hopping is initiated.
6. A signal decoding device, characterized in that, Applied to a touch device, the device includes: The first decoding module is used to periodically analyze the coding signal sent by the active pen at the first frequency point; A frequency hopping initiation module is used to determine a second frequency point and send it to the active pen in response to the touch device initiating frequency hopping; The second decoding module is used to periodically analyze the coding signals located at the first frequency point and the second frequency point, and to detect whether the active pen has completed frequency hopping; The third decoding module is used to periodically parse the coding signal sent by the active pen at the second frequency point starting from the next cycle in response to detecting that the active pen has completed frequency hopping; The second decoding module is further used for: Within each cycle, the first signal at the first frequency point and the second signal at the second frequency point are received multiple times. The coding signal sent by the active pen is determined from each received first and second signal; The coding signal is analyzed based on the frequency point corresponding to the coding signal; The second decoding module is further configured to: determine the signal with the larger amplitude among the first signal and the second signal received each time as the coding signal sent by the active pen.
7. A display device, characterized in that, It includes multiple display units and at least one signal decoding device according to claim 6.
8. The display device according to claim 7, characterized in that, The display unit includes a display panel, which includes at least one of the following: liquid crystal display panel, micro light-emitting diode display panel, light-emitting diode display panel, mini light-emitting diode display panel, quantum dot light-emitting diode display panel, organic light-emitting diode display panel, cathode ray tube display panel, digital light processing display panel, field emission display panel, plasma display panel, electrophoretic display panel, electrowetting display panel, and small-pitch display panel.
9. An electronic device comprising the display device according to claim 7 or 8.
10. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the method of any one of claims 1 to 5 when executing instructions stored in the memory.
11. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 5.
Citation Information
Patent Citations
Touch-control chip, capacitive touch screen, capacitive active pen and bidirectional communication method for capacitive touch screen and capacitive active pen
CN109074200A
Coding control and coding method, system, chip, electronic device, and storage medium
CN111868669A
Electronic device and control method therefor
CN113661475A