Low-latency data transmission method and system for wireless input devices
Patent Information
- Application Number
- CN202611467809.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-10-27
AI Technical Summary
[0003]然而,在较高采样频率下,用户手部无意识产生的微小抖动以及主动精细操作产生的小幅位移均会被连续采集,二者在单个周期内的位移幅度可能较为接近,现有基于固定过滤阈值进行判断的方式,难以准确区分手部抖动与主动精细操作,容易出现无效抖动未被滤除或有效精细操作被误过滤的情况
针对较高采样频率下难以准确区分手部抖动与主动精细操作,并难以在保留有效精细操作位移信息的同时降低无线链路数据传输压力的技术问题,本发明根据运动速度和局部轨迹拟合偏差确定对应周期的意图语义标签,能够同时从运动幅度以及连续运动轨迹的规律性对当前运动状态进行表征,为不同运动状态下的后续数据处理提供针对性的状态依据;根据运动分析时序窗口内周期位移量、方向角的变化情况以及运动速度的波动情况调整预设过滤基线,逐周期过滤周期位移量,得到有效位移序列,能够结合连续多个周期的局部运动变化规律区分手部无意识抖动与主动精细操作,并根据当前运动状态自适应调整过滤强度,从而减少无效抖动残留以及有效精细操作被误过滤的情况;再通过意图语义标签和运动速度确定残差编码位宽,根据意图语义标签和加速度确定打包采样点数量,根据RSSI值以及信道占用率确定纠错调制方式,进而对有效位移序列进行编码、打包以及传输处理后发送至接收器,能够根据运动状态调整位移数据的编码数据量和聚合程度,并根据无线链路状态兼顾传输效率与抗干扰能力,从而减少无线链路的数据包发送压力以及数据传输错误风险。至此,在保留用户主动精细操作位移信息的同时,降低高频位移数据对无线链路造成的传输压力,提高无线输入设备数据传输的实时性和可靠性。
Smart Images

Figure CN122994836A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, and more specifically to a low-latency data transmission method and system for wireless input devices. Background Technology
[0002] As the demands for operational precision and response speed in wireless input device applications continue to increase, the sampling frequency and polling rate of wireless mice are constantly being improved. Currently, some wireless input devices typically use a sampling frequency of around 1000Hz, corresponding to a sampling period of approximately 1ms. In applications requiring high operational precision, this has limited ability to capture minute changes in motion over short periods. Increasing the sampling frequency allows for the acquisition of more detailed periodic displacement data, which is beneficial for reflecting the user's fine-tuning operations.
[0003] However, at higher sampling frequencies, both unconscious hand tremors and small displacements resulting from deliberate fine motor operations are continuously collected. The displacement amplitudes of these two types of movements within a single cycle may be quite similar. Existing methods based on fixed filtering thresholds struggle to accurately distinguish between hand tremors and deliberate fine motor operations, easily leading to the failure to filter out invalid tremors or the mis-filtering of valid fine motor operations. Furthermore, in high-return-rate mode, transmitting the periodic displacement data obtained from high-frequency acquisitions cycle-by-cycle or in smaller data packets increases the number of data packets per unit time. In situations of communication contention or interference on the 2.4GHz wireless link, this increases the risk of data packet collisions or loss, thereby affecting the real-time performance and reliability of data transmission from wireless input devices. Summary of the Invention
[0004] To address the technical challenges of accurately distinguishing between hand tremors and active fine manipulation at higher sampling frequencies, and of reducing wireless link data transmission pressure while preserving effective fine manipulation displacement information, this invention aims to provide a low-latency data transmission method and system for wireless input devices. The specific technical solution adopted is as follows: This invention provides a low-latency data transmission method for a wireless input device, the method comprising: The X-axis and Y-axis periodic displacements of the wireless input device in each cycle are obtained, and the RSSI value and channel occupancy rate fed back by the receiver are obtained. Based on the periodic displacements, the motion speed, acceleration, orientation angle and local trajectory fitting deviation of the corresponding cycle are determined, and the intention semantic label of the corresponding cycle is determined based on the motion speed and the local trajectory fitting deviation. The motion analysis time window for the corresponding period is determined based on the semantic tag of intent and the motion speed; the preset filtering baseline is adjusted according to the changes in periodic displacement, direction angle and motion speed within the motion analysis time window, and the periodic displacement is filtered periodically to obtain an effective displacement sequence; The residual coding bit width is determined based on the intention semantic label and the motion speed. The number of packet sampling points is determined based on the intention semantic label and the acceleration. The error correction modulation method is determined based on the RSSI value and the channel occupancy rate. The effective displacement sequence is encoded and packetized according to the residual coding bit width and the number of packet sampling points. The resulting data packet is transmitted and processed according to the error correction modulation method and then sent to the receiver. The receiver decodes the data packet to obtain displacement data and uploads it to the operating system.
[0005] Furthermore, the method for obtaining the intent semantic tag includes: If the motion speed is less than the first speed threshold and the local trajectory fitting deviation is less than the first deviation threshold, then the intention semantic label of the corresponding period is recorded as "stationary". If the motion speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, and the local trajectory fitting deviation is less than the second deviation threshold, then the intention semantic label of the corresponding period is recorded as "uniform motion". If the motion speed and the local trajectory fitting deviation do not meet the determination conditions of "stationary" and "uniform motion", then the intention semantic label of the corresponding period is recorded as "acceleration / fine adjustment"; wherein, the first speed threshold is less than the second speed threshold, and the first deviation threshold is less than the second deviation threshold.
[0006] Furthermore, the method for obtaining the motion analysis timing window includes: If the intent semantic label is "stationary", or the intent semantic label is "acceleration / fine adjustment" and the movement speed is less than a preset threshold, the preset first increment coefficient is used as the window increment coefficient. If the intent semantic label is "uniform motion", or the intent semantic label is "acceleration / fine adjustment" and the motion speed is greater than or equal to a preset threshold, the preset second increment coefficient is used as the window increment coefficient; wherein, the first increment coefficient is less than the second increment coefficient, and both the first increment coefficient and the second increment coefficient are greater than 0; The length of the motion analysis time sequence window is determined based on the motion speed and the window increment coefficient, such that the length of the motion analysis time sequence window increases with the increase of the motion speed. The larger the window increment coefficient, the greater the increase in the length of the motion analysis time sequence window with the increase of the motion speed. Based on the length of the motion analysis timing window, a corresponding number of consecutive periods are determined from the corresponding period backward to form the motion analysis timing window for the corresponding period.
[0007] Furthermore, the method for obtaining the effective displacement sequence includes: The jitter zero-crossing rate of the corresponding period in the motion analysis time window is determined based on the number of times the sign of the periodic displacement of the X-axis and Y-axis changes in consecutive periods within the motion analysis time window. Based on the difference in direction angle between adjacent cycles within the motion analysis time window, the number of adjacent cycle pairs with the same direction is determined, and the probability of the same direction is determined based on the proportion of the number of adjacent cycle pairs with the same direction in the total number of adjacent cycle pairs. Based on the fluctuation of motion velocity corresponding to all cycles within the motion analysis time window, determine the degree of velocity fluctuation in the corresponding cycle of the motion analysis time window; Based on the jitter zero-crossing rate, the direction consistency probability, and the speed fluctuation degree, the motion intention feature value of the corresponding period of the motion analysis time window is determined, such that the motion intention feature value increases with the increase of the direction consistency probability and decreases with the increase of the jitter zero-crossing rate and the speed fluctuation degree. The preset filtering baseline is adjusted according to the motion intention feature value and the speed fluctuation degree, and the periodic displacement is filtered periodically to obtain an effective displacement sequence.
[0008] Furthermore, the specific method for adjusting the preset filtering baseline based on the motion intention feature value and the speed fluctuation degree, and filtering the periodic displacement amount periodically to obtain an effective displacement sequence includes: The baseline adjustment degree is determined based on the motion intention feature value, and the preset filter baseline is adjusted in combination with the speed fluctuation degree of the corresponding period to obtain the dynamic filter baseline of the corresponding period; wherein, the larger the motion intention feature value, the smaller the speed fluctuation degree, and the lower the dynamic filter baseline; The resultant displacement of the corresponding period is determined based on the periodic displacement of the X-axis and Y-axis of the corresponding period. If the total displacement is greater than or equal to the dynamic filtering baseline of the corresponding period, or the motion intention feature value is greater than or equal to the preset intention threshold, then the periodic displacement of the corresponding period is retained; otherwise, the X-axis and Y-axis periodic displacements of the corresponding period are both set to 0. The processed displacement values of each period are arranged in chronological order to obtain the effective displacement sequence.
[0009] Furthermore, the method for obtaining the residual coding bit width includes: If the intended semantic label is "stationary" or "uniform motion", the preset first increment coefficient will be used as the residual increment coefficient; If the intended semantic label is "acceleration / fine adjustment", the preset second increment coefficient is used as the residual increment coefficient; wherein, the first increment coefficient is less than the second increment coefficient; The local residual coding bit width for the corresponding period is determined based on the motion speed and the residual increment coefficient, such that the residual coding bit width increases with the increase of the motion speed. The larger the residual increment coefficient, the greater the increase in the residual coding bit width with the increase of the motion speed. When constructing the data packet, the maximum value of the local residual coding bit width of all data corresponding to the period in the data packet is used as the residual coding bit width uniformly adopted for the data packet.
[0010] Furthermore, the method for obtaining the number of packaged sampling points includes: If the intended semantic tag is "stationary" or "uniform motion", the preset first reduction coefficient will be used as the packaging reduction coefficient; If the intent semantic tag is "acceleration / fine-tuning", the preset second reduction coefficient will be used as the packaging reduction coefficient; wherein, the first reduction coefficient is less than the second reduction coefficient; The number of local packaging sampling points for the corresponding period is determined based on the absolute value of acceleration and the packaging reduction coefficient, such that the number of local packaging sampling points decreases as the absolute value of acceleration increases. The larger the packaging reduction coefficient is, the greater the degree to which the number of local packaging sampling points decreases as the absolute value of acceleration increases. When constructing the data packet, the earliest period in the time sequence of the unpacked valid displacement sequence is recorded as the starting period, and the number of local packing sampling points corresponding to the starting period is used as the number of packing sampling points of the data packet.
[0011] Furthermore, the method for obtaining the error correction modulation scheme includes: When the RSSI value is greater than the first RSSI threshold and the channel occupancy rate is less than the first occupancy rate threshold, the channel is judged to be good, 16QAM high-order modulation is used, and additional error correction coding is not enabled. When the channel is not good, and the RSSI value is greater than or equal to the second RSSI threshold and the channel occupancy rate is less than or equal to the second occupancy rate threshold, the channel is judged to be normal, QPSK modulation is adopted, and convolutional code error correction is enabled; wherein, the second RSSI threshold is less than the first RSSI threshold, and the first occupancy rate threshold is less than the second occupancy rate threshold. When the conditions of good channel and normal channel are not met, the channel is judged to be congested, BPSK modulation is adopted, and Polar code error correction is enabled.
[0012] Furthermore, the method for obtaining the local trajectory fitting deviation includes: For any given period, obtain the periodic displacement of a preset number of consecutive forward periods, including that period, and determine the local trajectory based on the periodic displacement. The local trajectory is input into the motion trajectory fitting model to obtain the fitted local trajectory; Based on the difference between the local trajectory and the fitted local trajectory, the local trajectory fitting deviation for this period is determined.
[0013] The present invention also proposes a low-latency data transmission system for a wireless input device, the system comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of the above method.
[0014] The present invention has the following beneficial effects: To address the technical challenges of accurately distinguishing between hand tremors and active fine manipulation at high sampling frequencies, and of reducing wireless link data transmission pressure while preserving effective fine manipulation displacement information, this invention determines the corresponding periodic intent semantic label based on motion speed and local trajectory fitting deviation. This allows for simultaneous characterization of the current motion state from both motion amplitude and the regularity of continuous motion trajectories, providing targeted state basis for subsequent data processing under different motion states. Furthermore, by adjusting the preset filtering baseline based on changes in periodic displacement, orientation angle, and motion speed fluctuations within the motion analysis time window, and filtering periodic displacements cycle by cycle, an effective displacement sequence is obtained. This sequence can combine local motion changes across multiple consecutive cycles. The system distinguishes between unconscious hand tremors and active fine-grained operations, and adaptively adjusts the filtering intensity based on the current motion state to reduce residual invalid tremors and the mis-filtering of effective fine-grained operations. It then determines the residual coding bit width using intent semantic tags and motion speed, the number of packet sampling points based on intent semantic tags and acceleration, and the error correction modulation method based on RSSI values and channel occupancy. Finally, it encodes, packages, and transmits the effective displacement sequence to the receiver. The system can adjust the encoded data volume and aggregation level of displacement data according to the motion state, and balances transmission efficiency and anti-interference capability based on the wireless link status, thereby reducing the data packet transmission pressure on the wireless link and the risk of data transmission errors. Thus, while retaining the user's active fine-grained operation displacement information, it reduces the transmission pressure of high-frequency displacement data on the wireless link, improving the real-time performance and reliability of data transmission from wireless input devices. Attached Figure Description
[0015] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1This is a flowchart illustrating the steps of a low-latency data transmission method for a wireless input device according to an embodiment of the present invention. Detailed Implementation
[0017] To further illustrate the technical means and effects adopted by the present invention to achieve its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effects of the low-latency data transmission method and system for a wireless input device proposed according to the present invention. In the following description, different "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics in one or more embodiments can be combined in any suitable form.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0019] The specific solution of the low-latency data transmission method and system of the wireless input device provided by the present invention will be described in detail below with reference to the accompanying drawings.
[0020] Example of a low-latency data transmission method for wireless input devices: Please see Figure 1 This illustrates a flowchart of a low-latency data transmission method for a wireless input device according to an embodiment of the present invention. Figure 1 As shown, the method specifically includes the following steps: Step S1: Obtain the X-axis and Y-axis periodic displacement of the wireless input device in each cycle, obtain the RSSI value and channel occupancy rate fed back by the receiver; determine the motion speed, acceleration, orientation angle and local trajectory fitting deviation of the corresponding cycle based on the periodic displacement, and determine the intent semantic label of the corresponding cycle based on the motion speed and the local trajectory fitting deviation.
[0021] It should be noted that, when the wireless input device uses a high sampling frequency for displacement acquisition, the purpose of this invention is to analyze the continuous periodic motion state to distinguish between invalid displacement caused by hand tremors and valid displacement caused by active user operation. Based on the motion state and wireless link status, adjustments are made to the subsequent data encoding, packaging, and transmission processes to reduce wireless transmission pressure while preserving fine-grained displacement information, thereby improving the real-time performance and reliability of data transmission from the wireless input device. First, relevant data from the wireless input device during its motion process is collected.
[0022] Specifically, a motion sensor for detecting two-dimensional motion is set in the wireless input device. This embodiment takes the optical sensor in a wireless mouse as an example. The motion sensor continuously acquires the displacement data of the wireless input device according to a preset sampling frequency. The time interval between two adjacent samples is recorded as a period. A two-dimensional coordinate system is established based on the initial posture of the wireless input device. For any period, the displacement generated along the X-axis is recorded as the X-axis periodic displacement, and the displacement generated along the Y-axis is recorded as the Y-axis periodic displacement. The preset sampling frequency is described as 8000Hz, and the corresponding period duration is 0.125ms. For any given cycle, the combined displacement of the cycle is obtained based on the X-axis and Y-axis periodic displacements, and the ratio of the combined displacement to the cycle duration is taken as the motion speed of that cycle. Obtain the difference between the velocity of the current cycle and the velocity of the previous cycle, and record the ratio of this difference to the duration of the cycle as the acceleration of the current cycle. The direction angle of the cycle is obtained based on the X-axis and Y-axis periodic displacements of that cycle.
[0023] Furthermore, the receiver monitors the wireless link between the wireless input device and the receiver, obtains the RSSI value and channel occupancy rate, and feeds back the RSSI value and channel occupancy rate to the wireless input device according to a preset channel feedback period. The RSSI value is measured in dBm; a higher RSSI value indicates a stronger wireless signal received by the receiver. The channel occupancy rate is the ratio of the duration the wireless channel is occupied to the total duration of the preset statistical period, ranging from 0 to 100%. A higher channel occupancy rate indicates a higher level of communication contention in the current wireless channel. The preset channel feedback period is described using 100ms as an example, and the preset statistical period is described using 1s as an example.
[0024] It should be noted that the RSSI value is used to characterize the strength of the wireless signal received by the receiver, and the channel occupancy rate is used to characterize the degree to which the wireless channel is occupied per unit time. Both are used to reflect the wireless link status between the wireless input device and the receiver.
[0025] It should be noted that during operation, wireless input devices continuously generate multiple cycles of periodic displacement. Active operation typically results in a local motion trajectory with a certain continuous variation pattern, while inactive movements such as hand tremors are more likely to cause irregular changes in the local motion trajectory. Therefore, by constructing a local trajectory using continuous periodic displacement and employing a motion trajectory fitting model to evaluate the regularity of the local trajectory, the fitting deviation of the local trajectory can be obtained.
[0026] Specifically, for any given period, the periodic displacement of a predetermined number of consecutive preceding periods, including that period, is obtained, and the local trajectory is determined based on the periodic displacement. The local trajectory is input into the motion trajectory fitting model to obtain the fitted local trajectory; Based on the difference between the local trajectory and the fitted local trajectory, the local trajectory fitting deviation for this period is determined.
[0027] As an example, methods for obtaining local trajectory fitting bias include: Any period is designated as the target period. The earliest period among the consecutive preset number of periods, including the target period, is taken as the starting period of the local trajectory, and the starting position of the local trajectory is set as the origin of the coordinate system. The X-axis periodic displacement and Y-axis periodic displacement of each period are accumulated in chronological order to obtain the cumulative X-axis displacement and cumulative Y-axis displacement of each period. The coordinate points formed by the cumulative X-axis displacement and cumulative Y-axis displacement of each period are connected in chronological order to obtain the local trajectory. The preset number is described using 16 as an example. The local trajectory is input into the motion trajectory fitting model. The trajectory is fitted according to the trajectory coordinates corresponding to each cycle in the local trajectory to obtain the fitted trajectory coordinates corresponding to each cycle. The fitted local trajectory is then constructed by all the fitted trajectory coordinates in chronological order. In this embodiment, the motion trajectory fitting model is described using the Sigma-Lognormal model as an example. The coordinate points formed by the cumulative X-axis displacement and cumulative Y-axis displacement corresponding to each cycle are recorded as the cumulative coordinate points of each cycle. The Euclidean distance between the cumulative coordinate points of each cycle and the corresponding fitted trajectory coordinates is obtained. The mean of the Euclidean distances between the cumulative coordinate points of all cycles and the corresponding fitted trajectory coordinates is recorded as the local trajectory fitting deviation of the target cycle.
[0028] It should be noted that the local trajectory fitting deviation is used to characterize the degree of deviation between the actual local trajectory and the regular trajectory represented by the motion trajectory fitting model. The smaller the local trajectory fitting deviation, the easier it is for the local trajectory formed by the periodic displacement of continuous cycles to be represented by a regular motion trajectory, and the more continuous and stable the motion state is near the corresponding period. The larger the local trajectory fitting deviation, the more obvious irregular changes exist in the local trajectory, and it is difficult to accurately distinguish its specific motion state based solely on the motion speed.
[0029] It should be noted that the movement speed and local trajectory regularity of wireless input devices differ depending on their operating state. In a stationary state, only minor hand tremors or slight sensor fluctuations are possible, resulting in a typically low movement speed and small local trajectory fitting deviation. In a constant-speed movement state, the movement speed is within a relatively stable intermediate range, while the local trajectory exhibits good continuity, and the local trajectory fitting deviation is not excessive. When the wireless input device accelerates rapidly or the user performs fine adjustments, the movement speed or local trajectory changes significantly deviate from the stationary and constant-speed states. Therefore, the semantic label of intent is determined by combining movement speed and local trajectory fitting deviation to distinguish between stationary, constant-speed movement, and acceleration / fine-tuning states.
[0030] Specifically, if the motion speed is less than a first speed threshold and the local trajectory fitting deviation is less than a first deviation threshold, then the semantic label of the corresponding period is recorded as "stationary"; wherein, the first speed threshold is described as 0.1 mm / ms and the first deviation threshold is described as 0.05 mm. If the motion speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, and the local trajectory fitting deviation is less than the second deviation threshold, then the semantic label of the corresponding period is recorded as "uniform motion"; wherein, the second speed threshold is described as 1 mm / ms and the second deviation threshold is described as 0.1 mm. If the motion speed and the local trajectory fitting deviation do not meet the determination conditions of "stationary" and "uniform motion", then the intention semantic label of the corresponding period is recorded as "acceleration / fine adjustment"; wherein, the first speed threshold is less than the second speed threshold, and the first deviation threshold is less than the second deviation threshold.
[0031] It should be noted that the intent semantic tag is used to make a preliminary distinction about the overall motion state.
[0032] Step S2: Determine the motion analysis time window for the corresponding period based on the intent semantic tag and the motion speed; adjust the preset filtering baseline based on the changes in periodic displacement, direction angle and motion speed within the motion analysis time window, and filter the periodic displacement periodically to obtain an effective displacement sequence.
[0033] It should be noted that under high-frequency acquisition conditions, the periodic displacement of a single cycle is insufficient to accurately distinguish between unconscious hand tremors and active fine motor operations. Therefore, the motion analysis time window is first determined by combining the semantic label of intent and motion speed for the corresponding cycle. Then, the motion change features of multiple consecutive cycles within the motion analysis time window are used to evaluate whether the current motion is closer to an active operation or hand tremors, and the filtering intensity is adjusted accordingly.
[0034] It should be further noted that the time range required for analyzing local motion features varies depending on the motion state. In static or low-speed fine-tuning states, a relatively short motion analysis time window should be used to avoid over-smoothing out subtle, effective operations within a short timeframe using a longer window. In uniform or high-speed motion states, there is a more obvious temporal correlation between consecutive cycles, allowing for a more comprehensive assessment of changes in orientation angle and motion speed. Therefore, the window length should first be determined based on the intent semantic tags, and then adjusted according to the motion speed at the corresponding growth rate.
[0035] Specifically, if the intent semantic label is "stationary", or the intent semantic label is "acceleration / fine adjustment" and the movement speed is less than a preset threshold, the preset first increment coefficient is used as the window increment coefficient; wherein, the preset threshold is 0.5mm / ms for example, and the preset first increment coefficient is 2 for example. If the intent semantic label is "uniform motion", or the intent semantic label is "acceleration / fine adjustment" and the motion speed is greater than or equal to a preset threshold, the preset second increment coefficient is used as the window increment coefficient; wherein, the first increment coefficient is less than the second increment coefficient, and both the first increment coefficient and the second increment coefficient are greater than 0, and the preset second increment coefficient is described for example as 4; The length of the motion analysis time sequence window is determined based on the motion speed and the window increment coefficient, such that the length of the motion analysis time sequence window increases with the increase of the motion speed. The larger the window increment coefficient, the greater the increase in the length of the motion analysis time sequence window with the increase of the motion speed. Based on the length of the motion analysis timing window, a corresponding number of consecutive periods are determined from the corresponding period backward to form the motion analysis timing window for the corresponding period.
[0036] As an example, methods for obtaining the length of the motion analysis timing window include:
[0037] In the formula, This represents the length of the motion analysis timing window; To set a preset base window length, this embodiment uses 4 as an example for description; This is the window increment coefficient; The adjustment coefficient is 2, which is used as an example in this embodiment. For speed of motion; It is an exponential function with the natural constant as its base; This is the floor function.
[0038] It should be noted that the preset base window length is used to ensure that each cycle has the basic amount of data required for local motion feature analysis, while the window increment coefficient is used to control the extent to which the motion analysis time series window can be increased beyond the preset base window length. The greater the motion speed, the more consecutive cycles the motion analysis time series window includes; at the same motion speed, the larger the window increment coefficient, the longer the corresponding motion analysis time series window.
[0039] It should be noted that hand tremors are typically characterized by frequent changes in the positive and negative directions of the periodic displacements along the X and Y axes, low consistency in the directional angles between adjacent periods, and significant fluctuations in motion speed. Active fine manipulation, while potentially involving smaller displacement amplitudes, usually exhibits relatively continuous directional angles and more stable motion speeds. Therefore, the local motion state within the motion analysis time window is characterized by three aspects: the tremor zero-crossing rate, the probability of directional consistency, and the degree of speed fluctuation.
[0040] Specifically, the jitter zero-crossing rate of the corresponding period of the motion analysis time window is determined based on the number of times the sign of the periodic displacement of the X-axis and Y-axis changes in consecutive periods within the motion analysis time window. Based on the difference in direction angle between adjacent cycles within the motion analysis time window, the number of adjacent cycle pairs with the same direction is determined, and the probability of the same direction is determined based on the proportion of the number of adjacent cycle pairs with the same direction in the total number of adjacent cycle pairs. Based on the fluctuation of motion velocity corresponding to all cycles within the motion analysis time window, determine the degree of velocity fluctuation in the corresponding cycle of the motion analysis time window; Based on the jitter zero-crossing rate, the direction consistency probability, and the speed fluctuation degree, the motion intention feature value of the corresponding period of the motion analysis time window is determined, such that the motion intention feature value increases with the increase of the direction consistency probability and decreases with the increase of the jitter zero-crossing rate and the speed fluctuation degree.
[0041] As an example, methods for obtaining motion intent feature values include: For any given period, the number of periods contained within the motion analysis time window corresponding to that period is denoted as . Count the number of times the product of the X-axis periodic displacements and the number of times the product of the Y-axis periodic displacements is less than 0 within the motion analysis time window. Then, compare the number of times the product of the X-axis periodic displacements is less than 0 with... The ratio is denoted as the X-axis zero-crossing rate, and the number of times the product of the Y-axis periodic displacements is less than 0 is denoted as the X-axis zero-crossing rate. The ratio of the X-axis zero-crossing rate to the Y-axis zero-crossing rate is recorded as the jitter zero-crossing rate of the cycle. Obtain the direction angles of any two adjacent cycles within the motion analysis time window, and calculate the minimum included angle between the direction angles of the two adjacent cycles; if the minimum included angle is less than or equal to a preset direction consistency threshold, then record the corresponding two adjacent cycles as a pair of adjacent cycles with consistent direction; count the number of adjacent cycle pairs with consistent direction within the motion analysis time window, and compare the number of adjacent cycle pairs with... The ratio of these values is denoted as the probability of directional consistency for that period; the preset directional consistency threshold is described using 15° as an example. The standard deviation of the motion velocity corresponding to all cycles within the motion analysis time window is denoted as the velocity fluctuation degree of that cycle.
[0042] In the formula, This represents the characteristic value of the motion intention during this cycle; This represents the zero-crossing rate of the jitter during that period. This represents the probability of directional consistency within the period. This refers to the degree of speed fluctuation within that cycle; For linear normalization function, the object of linear normalization is the standard deviation of motion velocity corresponding to all cycles within the time window of all historical motion analysis; To prevent hyperparameters with a denominator of 0, this embodiment uses 1 as an example for description.
[0043] It should be noted that the jitter zero-crossing rate is used to characterize the frequency of the reciprocating changes in the X-axis and Y-axis periodic displacement directions within the motion analysis time window; the larger the jitter zero-crossing rate, the more frequently the direction angle within the corresponding window is reversed; the direction consistency probability is used to characterize the degree to which the direction angles of adjacent periods remain consistent; the larger the direction consistency probability, the stronger the continuity of the direction angles within the corresponding window; the speed fluctuation degree is used to characterize the dispersion of motion speed within the motion analysis time window; the larger the speed fluctuation degree, the more unstable the motion speed changes; therefore, the larger the motion intention feature value, the more the motion state near the corresponding period conforms to the characteristics of active operation with continuous direction and relatively stable speed; the smaller the motion intention feature value, the more the near the corresponding period conforms to the characteristics of hand tremor with frequent changes in direction and obvious speed fluctuations.
[0044] It should be noted that when filtering the periodic displacement corresponding to hand tremor characteristics, if a fixed filtering baseline is used for all cycles, a high filtering baseline may easily misjudge small periodic displacements generated by active fine manipulation as hand tremors; conversely, a low filtering baseline may retain minute tremors generated in a static state. Therefore, the filtering intensity needs to be adjusted according to the motion state. The motion intent feature value reflects the degree to which the current motion is close to active manipulation, and the speed fluctuation reflects the instability of the motion speed near the corresponding cycle. Therefore, the preset filtering baseline is adjusted by combining these two factors, so that different dynamic filtering baselines correspond to different motion states.
[0045] Specifically, the baseline adjustment degree is determined based on the motion intention feature value, and the preset filter baseline is adjusted in combination with the speed fluctuation degree of the corresponding period to obtain the dynamic filter baseline of the corresponding period; wherein, the larger the motion intention feature value, the smaller the speed fluctuation degree, and the lower the dynamic filter baseline; wherein, the preset filter baseline is described as 0.02mm as an example. The resultant displacement of the corresponding period is determined based on the periodic displacement of the X-axis and Y-axis of the corresponding period. If the total displacement is greater than or equal to the dynamic filtering baseline of the corresponding period, or the motion intention feature value is greater than or equal to the preset intention threshold, then the periodic displacement of the corresponding period is retained; otherwise, the X-axis and Y-axis periodic displacements of the corresponding period are both set to 0. The preset intention threshold is described using 0.3 as an example. The processed displacement values of each period are arranged in chronological order to obtain the effective displacement sequence.
[0046] As an example, methods for obtaining dynamically filtered baselines include:
[0047] In the formula, The degree of baseline adjustment for the corresponding period; To establish a preset adjustment base, this embodiment uses 2 as an example for description; The characteristic value representing the motion intent of the corresponding cycle; It is the hyperbolic tangent function;
[0048] In the formula, This serves as the dynamic filtering baseline for the corresponding period; Set the preset filtering baseline; The degree of baseline adjustment for the corresponding period; This refers to the degree of speed fluctuation corresponding to the cycle; The duration of the period.
[0049] It should be noted that the baseline adjustment level is used to change the adjustment range of the preset filtering baseline based on the motion intention feature value. When the motion intention feature value is large, it indicates that the corresponding cycle is more likely to be an active operation, and the baseline adjustment level is reduced accordingly to decrease the filtering intensity for smaller cycle displacements. When the motion intention feature value is small, it indicates that the corresponding cycle is more likely to be affected by hand tremors, and the baseline adjustment level is increased accordingly. At the same time, the greater the speed fluctuation, the more unstable the motion state near the corresponding cycle, and increasing the dynamic filtering baseline can enhance the filtering effect on small and irregular displacements. By using the dynamic filtering baseline and the preset intention threshold together, when the cycle displacement is small, the motion intention feature value can be further used to determine whether it belongs to an active fine operation, thereby reducing the false filtering of effective displacements.
[0050] Step S3: Determine the residual coding bit width based on the intention semantic label and the motion speed; determine the number of packet sampling points based on the intention semantic label and the acceleration; determine the error correction modulation method based on the RSSI value and the channel occupancy rate; encode and packetize the effective displacement sequence according to the residual coding bit width and the number of packet sampling points; and send the resulting data packet to the receiver after transmission processing according to the error correction modulation method.
[0051] It should be noted that the effective displacement sequence obtained after filtering needs to be transmitted to the receiver via a wireless link. At high sampling frequencies, if a fixed wide coding bit width is used for the periodic displacement of each cycle and each data packet is formed separately, it will increase the data size of a single data packet and the number of data packets per unit time, thus increasing the transmission pressure on the wireless link. Therefore, the residual coding bit width and the number of packet sampling points are adjusted according to the motion state of the wireless input device to reduce redundant data and transmission frequency. At the same time, the error correction coding method and modulation method are determined by combining the RSSI value of the wireless link and the channel occupancy rate to balance transmission efficiency and reliability.
[0052] It should be further explained that the periodic displacements of adjacent cycles are usually highly correlated during continuous motion. By using residual encoding for the displacement difference between adjacent cycles, the repeated transmission of complete displacement data with small changes can be avoided. However, the range of variation of residual data varies under different motion states: when stationary or in uniform motion, the change in periodic displacement between adjacent cycles is usually small, and a smaller residual encoding bit width can be used; under acceleration / fine-tuning states, the range of periodic displacement changes may increase, requiring an increase in the residual encoding bit width to prevent the residual data from exceeding the encoding range. Therefore, the growth capability of the residual encoding bit width is determined based on the intent semantic label, and the actual required local residual encoding bit width is determined in combination with the motion speed.
[0053] Specifically, if the intended semantic label is "stationary" or "uniform motion", a preset first increment coefficient is used as the residual increment coefficient; wherein, the preset first increment coefficient is described for example as 4; If the intent semantic label is “acceleration / fine-tuning”, the preset second increment coefficient is used as the residual increment coefficient; wherein, the first increment coefficient is less than the second increment coefficient, and the preset second increment coefficient is described for example as 8; The local residual coding bit width for the corresponding period is determined based on the motion speed and the residual increment coefficient, such that the residual coding bit width increases with the increase of the motion speed. The larger the residual increment coefficient, the greater the increase in the residual coding bit width with the increase of the motion speed. When constructing the data packet, the maximum value of the local residual coding bit width of all data corresponding to the period in the data packet is used as the residual coding bit width uniformly adopted for the data packet.
[0054] As an example, the bit width of the local residual code is calculated as follows:
[0055] In the formula, The local residual encoding bit width for the corresponding period; To predetermine the residual bit width base, this embodiment uses 8 as an example for description; This is the residual increment factor for the corresponding period; The first preset adjustment coefficient is 1, and this embodiment will be described using 1 as an example; The velocity corresponding to the cycle; It is an exponential function with the natural constant as its base; This is the floor function.
[0056] It should be noted that the preset residual bit width base is used to ensure that the residual data has a basic encoding range; the residual increment factor is used to control the maximum extent to which the residual encoding bit width can be increased; as the motion speed increases, the period displacement difference between adjacent periods may increase, so the local residual encoding bit width increases accordingly; at the same motion speed, the larger the residual increment factor, the larger the encoding range can be provided for residual data with large variation amplitude; when constructing data packets, the maximum value of the local residual encoding bit width corresponding to each period in the data packet is used as the unified residual encoding bit width, which is beneficial for all residual data in the data packet to be completely represented according to the same encoding bit width, and at the same time, it is convenient for the receiver to decode according to a unified data structure.
[0057] It should be noted that data aggregation can reduce the number of data packets sent per unit time by packaging data from multiple consecutive periods into the same data packet. However, excessive aggregation can increase the waiting time for data from earlier periods to be aggregated into data from subsequent periods. Therefore, the number of sampling points in the packet needs to be adjusted based on the current speed of motion change. In a stationary or uniform motion state, the motion changes between adjacent periods are relatively stable, allowing for the aggregation of more periods' data into a single data packet to reduce the transmission frequency. In an accelerated / fine-tuning state, the motion state of the corresponding period changes more rapidly, requiring a reduction in the number of sampling points in the packet to shorten the data aggregation waiting time and reflect user operations promptly.
[0058] Specifically, if the intended semantic tag is "stationary" or "uniform motion", a preset first reduction coefficient will be used as the packaging reduction coefficient; wherein, the preset first reduction coefficient is described for example as 2; If the intent semantic tag is "acceleration / fine-tuning", the preset second reduction coefficient will be used as the packaging reduction coefficient; wherein, the first reduction coefficient is less than the second reduction coefficient, and the preset second reduction coefficient is described for example as 6; The number of local packaging sampling points for the corresponding period is determined based on the absolute value of acceleration and the packaging reduction coefficient, such that the number of local packaging sampling points decreases as the absolute value of acceleration increases. The larger the packaging reduction coefficient is, the greater the degree to which the number of local packaging sampling points decreases as the absolute value of acceleration increases. When constructing the data packet, the earliest period in the time sequence of the unpacked valid displacement sequence is recorded as the starting period, and the number of local packing sampling points corresponding to the starting period is used as the number of packing sampling points of the data packet.
[0059] As an example, the number of local packaged sampling points is calculated as follows:
[0060] In the formula, This represents the number of local packaged sampling points for the corresponding period; To predetermine the packaging quantity, this embodiment uses 8 as an example for description; This is the packing reduction factor for the corresponding period; The second preset adjustment coefficient is 0.5, which is used as an example in this embodiment. This represents the acceleration corresponding to the period; It is an exponential function with the natural constant as its base; It is a rounding function; It is an absolute value function.
[0061] It should be noted that the absolute value of acceleration reflects the rate of change of motion speed; the larger the absolute value of acceleration, the faster the current motion state of the wireless input device changes. In this case, reducing the number of local packet sampling points can reduce the waiting time added by data aggregation. The packet reduction factor is used to control the degree to which the number of local packet sampling points decreases as the absolute value of acceleration increases. For acceleration / fine adjustment states, a larger packet reduction factor can be used to reduce the number of local packet sampling points more quickly, thereby prioritizing the real-time data transmission of rapidly changing and fine operation states. For stationary or uniform motion states, a smaller packet reduction factor can maintain a larger degree of data aggregation, thereby reducing the data packet transmission pressure on the wireless link.
[0062] It's important to note that data transmission in wireless input devices typically requires a trade-off between transmission efficiency and interference resistance. The RSSI value reflects the strength of the wireless signal received by the receiver; a higher RSSI value indicates better signal conditions in the current wireless link. Channel occupancy reflects the degree to which the wireless channel is occupied by other communication activities; a higher channel occupancy rate indicates a higher likelihood of wireless transmission contention and interference. Higher-order modulation schemes can improve data transmission efficiency per unit time but require higher wireless link quality; lower-order modulation schemes have relatively lower transmission efficiency but stronger interference resistance. Therefore, the current channel state is determined by combining the RSSI value and channel occupancy rate, and appropriate error correction coding and modulation schemes are selected for different channel states.
[0063] Specifically, when the RSSI value is greater than the first RSSI threshold and the channel occupancy rate is less than the first occupancy rate threshold, the channel is judged to be good, and 16QAM high-order modulation is used without enabling additional error correction coding; wherein, the first RSSI threshold is described as -50dBm and the first occupancy rate threshold is described as 30%; When the channel is not good, and the RSSI value is greater than or equal to the second RSSI threshold and the channel occupancy rate is less than or equal to the second occupancy rate threshold, the channel is judged to be normal, QPSK modulation is adopted, and convolutional code error correction is enabled; wherein, the second RSSI threshold is less than the first RSSI threshold, the first occupancy rate threshold is less than the second occupancy rate threshold, and the second RSSI threshold is described as -70dBm and the second occupancy rate threshold is described as 60%; When the conditions of good channel and normal channel are not met, it is judged as channel congestion, BPSK modulation is adopted, and Polar code error correction is enabled. Among them, 16QAM high-order modulation, QPSK modulation, convolutional code error correction, BPSK modulation and Polar code error correction are all well-known technologies, and the specific methods are not introduced here.
[0064] To illustrate the impact of changes in the wireless link environment on the data transmission performance of wireless input devices, wireless transmission tests were conducted on the Tarantula SC series wireless input devices in both interference-free and full-load Wi-Fi environments. The test results are shown in Table 1.
[0065] Table 1. Test results of wireless transmission performance under different wireless environments
[0066] As shown in Table 1, in an interference-free environment, the Tarantula SC series wireless input devices exhibit low transmission latency, with the Tarantula SC3 and Tarantula SC4 showing packet loss rates close to 0. However, in a fully loaded Wi-Fi environment, the wireless link experiences significant communication contention and interference, leading to increased transmission latency. Simultaneously, the packet loss rates of the Tarantula SC3 and Tarantula SC4 increase to 8.8% and 5.3%, respectively. This demonstrates that changes in the wireless link environment directly impact the data transmission latency and reliability of wireless input devices. Therefore, it is necessary to adjust the error correction coding and modulation methods according to the current wireless link status.
[0067] It should be noted that when the RSSI value is high and the channel occupancy rate is low, it indicates that the current wireless link has good signal conditions and low transmission contention. In this case, using 16QAM high-order modulation can improve data transmission efficiency and reduce the data overhead caused by additional error correction coding. When the wireless link is in a normal state, QPSK modulation combined with convolutional code error correction is used to balance transmission efficiency and reliability. When the signal strength is low or the channel occupancy rate is high, it indicates that the current wireless link is at greater risk of interference or transmission contention. In this case, BPSK modulation is used and Polar code error correction is enabled to improve the anti-interference capability of data transmission and the probability of correct reception.
[0068] Furthermore, the effective displacement sequence is encoded and packaged according to the residual coding bit width and the number of packaged sampling points. Specifically, the periodic displacements in the effective displacement sequence are obtained sequentially in chronological order, and according to the number of packaged sampling points corresponding to the current data packet to be constructed, a corresponding number of periodic displacements are selected from the effective displacement sequence as the data to be encoded for the current data packet to be constructed. For any data packet to be constructed, the earliest period in the time sequence of the data packet is taken as the reference period, and the X-axis and Y-axis periodic displacements of the reference period are encoded using a preset absolute encoding bit width. For any period after the reference period, the difference between the X-axis periodic displacement and the difference between the Y-axis periodic displacement and the previous period are obtained respectively to obtain the X-axis residual data and Y-axis residual data of the corresponding period, and the residual data are encoded according to the residual encoding bit width corresponding to the data packet. Since the data transmitted in the earliest period is a complete periodic displacement, a longer preset absolute encoding bit width is used. The preset absolute encoding bit width is described using 16 bits as an example. A residual coding bit width identifier needs to be set in the data packet. The residual coding bit width identifier is used to characterize the residual coding bit width used in the current data packet.
[0069] It should be noted that using absolute encoding bit width for the periodic displacement of the earliest period in the time sequence of each data packet provides a displacement reference for decoding subsequent residual data within that data packet, eliminating the need for different data packets to continuously rely on the displacement data of the previous data packet. Using residual encoding for the remaining periods leverages the characteristic that the changes in periodic displacement between consecutive periods are typically small, reducing the amount of encoded data. A larger number of packet sampling points allows a single data packet to carry more periodic displacement, thus reducing the number of data packets sent on the wireless side. Conversely, a smaller number of packet sampling points shortens the time it takes for periodic displacement to be aggregated by subsequent data, adapting to the real-time transmission requirements when motion states change rapidly.
[0070] Furthermore, if error correction coding is enabled in the current channel state, the data packet is error-corrected according to the corresponding error correction coding method, and the result of error correction coding is modulated according to the corresponding modulation method; if additional error correction coding is not enabled in the current channel state, the data packet is directly modulated according to the corresponding modulation method; the modulated data is then transmitted to the receiver through the wireless communication module of the wireless input device. In this embodiment, a 2.4GHz wireless link is used for data transmission between the wireless input device and the receiver.
[0071] Step S4: The receiver decodes the data packet to obtain displacement data and uploads it to the operating system.
[0072] It should be noted that because the wireless input device aggregates the periodic displacement values of multiple consecutive cycles into a single data packet at the transmitting end, and uses absolute encoding width for the reference period and residual encoding for the remaining periods, the receiver, after receiving the data packet, needs to reconstruct the X-axis and Y-axis periodic displacement values corresponding to each cycle based on the data packet, and then provide the displacement data to the operating system according to the time sequence of each cycle. Therefore, while reducing the data packet transmission frequency on the wireless side through data aggregation, the receiver can recover the displacement information corresponding to each cycle.
[0073] Specifically, the receiver determines the corresponding demodulation method and error correction / decoding method based on the corresponding RSSI value and channel occupancy rate, following the same channel state determination rules as the wireless input device; it demodulates the received wireless signal according to the demodulation method; if error correction coding is enabled for the corresponding channel state, the demodulated data is corrected and decoded according to the corresponding error correction / decoding method to obtain a data packet; if additional error correction coding is not enabled for the corresponding channel state, the demodulated data is used as a data packet; the integrity of the data packet is checked, and the residual coding bit width identifier in the data packet is read, and the residual coding bit width used by the data packet is determined according to the residual coding bit width identifier; The reference period in the data packet is decoded according to the preset absolute encoding bit width to obtain the X-axis and Y-axis period displacement of the reference period; for any period after the reference period, the corresponding X-axis residual data and Y-axis residual data are decoded sequentially according to the residual encoding bit width, and the X-axis residual data of the current period is added to the X-axis period displacement of the previous period, and the Y-axis residual data of the current period is added to the Y-axis period displacement of the previous period to obtain the X-axis period displacement and Y-axis period displacement of the current period; The periodic displacement values obtained from decoding are arranged in chronological order to obtain displacement data.
[0074] Furthermore, the receiver uploads the displacement data to the operating system sequentially according to the data format and data upload cycle required by the operating system. In this embodiment, taking the wireless mouse working at an 8000Hz polling rate as an example, the receiver provides displacement data to the operating system in the time sequence corresponding to each cycle, so that the operating system updates the corresponding cursor movement state according to the received X-axis and Y-axis periodic displacement.
[0075] As an example, to illustrate the relevant product parameters of wireless input devices, we compare some parameters of wireless input devices such as the Tarantula SC series with those of other brands, as shown in Table 2.
[0076] Table 2 Comparison of Product Parameters for Wireless Input Devices
[0077] As shown in Table 2, wireless input devices such as the Tarantula SC series can support a wireless polling rate of 8000Hz, with a theoretical polling period of 0.125ms, and support 2.4GHz wireless connection, which can meet the hardware requirements for high-frequency displacement data acquisition and wireless transmission in this embodiment.
[0078] This completes the low-latency data transmission for the wireless input device.
[0079] Another embodiment of the present invention provides a low-latency data transmission system for a wireless input device. The system includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it implements the above-described method steps S1 to S4.
[0080] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0081] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
Claims
1. A low-latency data transmission method for a wireless input device, characterized in that, The method includes: The X-axis and Y-axis periodic displacements of the wireless input device in each cycle are obtained, and the RSSI value and channel occupancy rate fed back by the receiver are obtained. Based on the periodic displacements, the motion speed, acceleration, orientation angle and local trajectory fitting deviation of the corresponding cycle are determined, and the intention semantic label of the corresponding cycle is determined based on the motion speed and the local trajectory fitting deviation. The motion analysis time window for the corresponding period is determined based on the semantic tag of intent and the motion speed; the preset filtering baseline is adjusted according to the changes in periodic displacement, direction angle and motion speed within the motion analysis time window, and the periodic displacement is filtered periodically to obtain an effective displacement sequence; The residual coding bit width is determined based on the intention semantic label and the motion speed. The number of packet sampling points is determined based on the intention semantic label and the acceleration. The error correction modulation method is determined based on the RSSI value and the channel occupancy rate. The effective displacement sequence is encoded and packetized according to the residual coding bit width and the number of packet sampling points. The resulting data packet is transmitted and processed according to the error correction modulation method and then sent to the receiver. The receiver decodes the data packet to obtain displacement data and uploads it to the operating system.
2. The low-latency data transmission method for a wireless input device according to claim 1, characterized in that, The method for obtaining the intent semantic tag includes: If the motion speed is less than the first speed threshold and the local trajectory fitting deviation is less than the first deviation threshold, then the intention semantic label of the corresponding period is recorded as "stationary". If the motion speed is greater than or equal to the first speed threshold and less than or equal to the second speed threshold, and the local trajectory fitting deviation is less than the second deviation threshold, then the intention semantic label of the corresponding period is recorded as "uniform motion". If the motion speed and the local trajectory fitting deviation do not meet the determination conditions of "stationary" and "uniform motion", then the intention semantic label of the corresponding period is recorded as "acceleration / fine adjustment"; wherein, the first speed threshold is less than the second speed threshold, and the first deviation threshold is less than the second deviation threshold.
3. The low-latency data transmission method for a wireless input device according to claim 1, characterized in that, The method for obtaining the motion analysis timing window includes: If the intent semantic label is "stationary", or the intent semantic label is "acceleration / fine adjustment" and the movement speed is less than a preset threshold, the preset first increment coefficient is used as the window increment coefficient. If the intent semantic label is "uniform motion", or the intent semantic label is "acceleration / fine adjustment" and the motion speed is greater than or equal to a preset threshold, the preset second increment coefficient is used as the window increment coefficient; wherein, the first increment coefficient is less than the second increment coefficient, and both the first increment coefficient and the second increment coefficient are greater than 0; The length of the motion analysis time sequence window is determined based on the motion speed and the window increment coefficient, such that the length of the motion analysis time sequence window increases with the increase of the motion speed. The larger the window increment coefficient, the greater the increase in the length of the motion analysis time sequence window with the increase of the motion speed. Based on the length of the motion analysis timing window, a corresponding number of consecutive periods are determined from the corresponding period backward to form the motion analysis timing window for the corresponding period.
4. The low-latency data transmission method for a wireless input device according to claim 1, characterized in that, The method for obtaining the effective displacement sequence includes: The jitter zero-crossing rate of the corresponding period in the motion analysis time window is determined based on the number of times the sign of the periodic displacement of the X-axis and Y-axis changes in consecutive periods within the motion analysis time window. Based on the difference in direction angle between adjacent cycles within the motion analysis time window, the number of adjacent cycle pairs with the same direction is determined, and the probability of the same direction is determined based on the proportion of the number of adjacent cycle pairs with the same direction in the total number of adjacent cycle pairs. Based on the fluctuation of motion velocity corresponding to all cycles within the motion analysis time window, determine the degree of velocity fluctuation in the corresponding cycle of the motion analysis time window; Based on the jitter zero-crossing rate, the direction consistency probability, and the speed fluctuation degree, the motion intention feature value of the corresponding period of the motion analysis time window is determined, such that the motion intention feature value increases with the increase of the direction consistency probability and decreases with the increase of the jitter zero-crossing rate and the speed fluctuation degree. The preset filtering baseline is adjusted according to the motion intention feature value and the speed fluctuation degree, and the periodic displacement is filtered periodically to obtain an effective displacement sequence.
5. The low-latency data transmission method for a wireless input device according to claim 4, characterized in that, The specific method for adjusting the preset filtering baseline based on the motion intention feature value and the speed fluctuation degree, and filtering the periodic displacement amount periodically to obtain an effective displacement sequence includes: The baseline adjustment degree is determined based on the motion intention feature value, and the preset filter baseline is adjusted in combination with the speed fluctuation degree of the corresponding period to obtain the dynamic filter baseline of the corresponding period; wherein, the larger the motion intention feature value, the smaller the speed fluctuation degree, and the lower the dynamic filter baseline; The resultant displacement of the corresponding period is determined based on the periodic displacement of the X-axis and Y-axis of the corresponding period. If the total displacement is greater than or equal to the dynamic filtering baseline of the corresponding period, or the motion intention feature value is greater than or equal to the preset intention threshold, then the periodic displacement of the corresponding period is retained; otherwise, the X-axis and Y-axis periodic displacements of the corresponding period are both set to 0. The processed displacement values of each period are arranged in chronological order to obtain the effective displacement sequence.
6. The low-latency data transmission method for a wireless input device according to claim 1, characterized in that, The method for obtaining the residual coding bit width includes: If the intended semantic label is "stationary" or "uniform motion", the preset first increment coefficient will be used as the residual increment coefficient; If the intended semantic label is "acceleration / fine-tuning", the preset second increment coefficient is used as the residual increment coefficient; wherein, the first increment coefficient is less than the second increment coefficient; The local residual coding bit width for the corresponding period is determined based on the motion speed and the residual increment coefficient, such that the residual coding bit width increases with the increase of the motion speed. The larger the residual increment coefficient, the greater the increase in the residual coding bit width with the increase of the motion speed. When constructing the data packet, the maximum value of the local residual coding bit width of all data corresponding to the period in the data packet is used as the residual coding bit width uniformly adopted for the data packet.
7. The low-latency data transmission method for a wireless input device according to claim 1, characterized in that, The method for obtaining the number of packaged sampling points includes: If the intended semantic tag is "stationary" or "uniform motion", the preset first reduction coefficient will be used as the packaging reduction coefficient; If the intent semantic tag is "accelerate / fine-tuning", the preset second reduction coefficient will be used as the packaging reduction coefficient; wherein, the first reduction coefficient is less than the second reduction coefficient; The number of local packaging sampling points for the corresponding period is determined based on the absolute value of acceleration and the packaging reduction coefficient, such that the number of local packaging sampling points decreases as the absolute value of acceleration increases. The larger the packaging reduction coefficient is, the greater the degree to which the number of local packaging sampling points decreases as the absolute value of acceleration increases. When constructing the data packet, the earliest period in the time sequence of the unpacked valid displacement sequence is recorded as the starting period, and the number of local packing sampling points corresponding to the starting period is used as the number of packing sampling points of the data packet.
8. The low-latency data transmission method for a wireless input device according to claim 1, characterized in that, The method for obtaining the error correction modulation scheme includes: When the RSSI value is greater than the first RSSI threshold and the channel occupancy rate is less than the first occupancy rate threshold, the channel is judged to be good, 16QAM high-order modulation is used, and additional error correction coding is not enabled. When the channel is not good, and the RSSI value is greater than or equal to the second RSSI threshold and the channel occupancy rate is less than or equal to the second occupancy rate threshold, the channel is judged to be normal, QPSK modulation is adopted, and convolutional code error correction is enabled; wherein, the second RSSI threshold is less than the first RSSI threshold, and the first occupancy rate threshold is less than the second occupancy rate threshold. When the conditions of good channel and normal channel are not met, the channel is judged to be congested, BPSK modulation is adopted, and Polar code error correction is enabled.
9. The low-latency data transmission method for a wireless input device according to claim 1, characterized in that, The method for obtaining the local trajectory fitting deviation includes: For any given period, obtain the periodic displacement of a preset number of consecutive forward periods, including that period, and determine the local trajectory based on the periodic displacement. The local trajectory is input into the motion trajectory fitting model to obtain the fitted local trajectory; Based on the difference between the local trajectory and the fitted local trajectory, the local trajectory fitting deviation for this period is determined.
10. A low-latency data transmission system for a wireless input device, characterized in that, The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the low-latency data transmission method of the wireless input device as described in any one of claims 1 to 9.