A sliding positioning method, device and storage medium

CN115933864BActive Publication Date: 2026-08-28BEIJING TAIFANG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110942575.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2026-08-28
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

[0003]本领域技术人员研究发现,按照现有的滑动定位方式,当滑动改变方向时,在方向变化的位置处,定位精度容易下降

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115933864B_ABST
    Figure CN115933864B_ABST
Patent Text Reader

Abstract

A sliding positioning method, device and storage medium, wherein the method comprises: collecting elastic wave signals from a plurality of elastic wave sensors respectively; obtaining a sliding position and a sliding force degree according to the collected elastic wave signals; judging whether a sliding direction is changed according to the sliding position and the sliding force degree; and outputting the sliding position according to whether the sliding direction is changed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to positioning technology, and more particularly to a sliding positioning method, device and storage medium. Background Technology

[0002] When performing a sliding operation on a touchscreen equipped with an elastic wave sensor, the sliding position is usually calculated based on the elastic wave signal generated by the touch, and the sliding position is used for positioning.

[0003] Those skilled in the art have found that, according to the existing sliding positioning method, when the sliding direction changes, the positioning accuracy tends to decrease at the location where the direction changes. Summary of the Invention

[0004] This application provides a sliding positioning method, apparatus, and storage medium that can improve the accuracy of sliding positioning.

[0005] The sliding positioning method provided in this application includes:

[0006] Elastic wave signals from multiple elastic wave sensors were collected respectively;

[0007] The sliding position and sliding force are obtained based on the collected elastic wave signals;

[0008] Determine whether the sliding direction has changed based on the sliding position and sliding force;

[0009] The output sliding position is changed depending on the sliding direction.

[0010] Optionally, the method further includes:

[0011] After acquiring elastic wave signals from multiple elastic wave sensors, before determining the sliding position and sliding force based on the acquired elastic wave signals, the interaction is determined based on the acquired elastic signals, including:

[0012] Based on the elastic wave signal acquired at the current moment and the elastic wave signal acquired at the previous moment, determine at least one of the absolute change and relative change of the elastic wave signal.

[0013] Determine whether at least one of the absolute change and relative change of the elastic wave signal is greater than a set interaction threshold. If it is greater, then determine that the interaction has started.

[0014] Optionally, the method for determining the absolute change of the elastic wave signal includes: summing the signal values ​​of the elastic wave signals acquired from multiple elastic wave sensors at the current moment, and / or finding the maximum value of the signal values ​​of the elastic wave signals acquired from multiple elastic wave sensors at the current moment.

[0015] Determining whether the absolute change in the elastic wave signal is greater than a predefined interaction threshold includes any of the following:

[0016] When the sum of the signal values ​​is greater than the set first interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the set interaction threshold.

[0017] When the result of finding the maximum value of the signal is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the set interaction threshold.

[0018] When the sum of the signal values ​​is greater than the set first interaction threshold, and the result of finding the maximum value of the signal values ​​is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the interaction threshold set for it.

[0019] The methods for determining the relative change in the elastic wave signal include:

[0020] For each elastic wave sensor, calculate the difference between the current elastic wave signal value and the previous elastic wave signal value.

[0021] After calculating multiple differential values ​​based on the elastic wave signals collected from multiple elastic wave sensors, the maximum value of the multiple differential values ​​is determined.

[0022] Determining whether the relative change in the elastic wave signal is greater than a predefined interaction threshold includes:

[0023] When the maximum value of the plurality of differential values ​​is greater than the set interaction threshold, it is determined that the relative change of the elastic wave signal is greater than the set interaction threshold.

[0024] Optionally, the method further includes:

[0025] The initial sliding position is obtained based on the collected elastic wave signal, and the sliding speed is obtained based on the initial sliding position.

[0026] After acquiring elastic wave signals from multiple elastic wave sensors, the elastic wave signals output by each elastic wave sensor are filtered according to the sliding rate using a selected filtering method.

[0027] The process of obtaining the sliding position and sliding force based on the collected elastic wave signal includes: obtaining the precisely located sliding position and sliding force based on the filtered elastic wave signal.

[0028] Optionally, obtaining the sliding speed based on the initially located sliding position includes:

[0029] Based on the initial sliding position p at the current time t and the precise sliding position p1 at the previous time t1, determine the average sliding speed v.

[0030] Let the initial time be t1 = 0;

[0031] Based on the average sliding speed v and the sliding speed V1 obtained at the previous time t1, the sliding rate V at the current time t is obtained.

[0032] V = V1*β + v*(1-β), and assume that V1 = 0 at the initial time.

[0033] Where β is the sliding rate calibration coefficient.

[0034] Optionally, the elastic wave signal output by each elastic wave sensor is filtered according to the sliding rate using a selected filtering method, including:

[0035] When the acquisition frequency is less than the preset frequency threshold, filters with different filter window lengths are selected according to the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor.

[0036] When the acquisition frequency is equal to or greater than the preset frequency threshold, different frequency filters are selected according to the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor.

[0037] Optionally, filters with different filter window lengths are selected based on the current sliding rate to filter the elastic wave signal output by each elastic wave sensor, including:

[0038] The filter window length is selected based on the preset speed range in which the current sliding speed is located, and the correspondence between the preset sliding speed range and the filter window length. The larger the sliding speed, the shorter the corresponding filter window length.

[0039] Optionally, methods for obtaining the correspondence between the preset sliding rate range and the filter window length include:

[0040] Randomly select a speed V within each preset sliding speed range. x In the case of sliding, the M elastic wave signals output by any elastic wave sensor are filtered using different preset filter window lengths, and the smoothing index K is calculated based on the M elastic wave signals after filtering.

[0041]

[0042] Where f(n) is the value of the nth elastic wave signal after filtering, and f(n-1) is the value of the (n-1)th elastic wave signal after filtering;

[0043] Select the smoothing index K with the smallest value that is less than the preset smoothness threshold from multiple smoothing indices K obtained based on filter window lengths of different preset lengths. Use the filter window length corresponding to the selected smoothing index K as V. x The length of the filter window corresponding to the sliding rate range.

[0044] Optionally, determining whether the sliding direction has changed based on the sliding position and sliding force includes:

[0045] The historical sliding direction is determined based on the historical sliding position, and the direction of position change is determined based on the current sliding position and the previous sliding position. If the direction of position change is consistent with the historical sliding direction, it is determined that the sliding direction has not changed; if the direction of position change is inconsistent with the historical sliding direction, it is determined that the sliding direction has changed.

[0046] Optionally, the method further includes:

[0047] Before determining the historical sliding direction based on the historical sliding position, it is determined whether the sliding operation is continuous based on the sliding force. If it is continuous, it is determined whether the number of historical sliding positions formed by the sliding operation or the distance traveled exceeds the corresponding reversal threshold. If it exceeds, the step of determining the historical sliding direction based on the historical sliding position is executed. If it does not exceed, it is determined that the sliding direction has not changed. If it is not continuous, the step of determining the historical sliding direction based on the historical sliding position is executed.

[0048] Optionally, the output sliding position may be changed depending on the sliding direction, including:

[0049] After determining that the sliding direction has not changed, output the current sliding position;

[0050] After determining that the sliding direction has changed, clear the historical sliding position record in the original sliding direction, output the sliding position at the current moment, and use the current sliding position as the first historical sliding position record in the new sliding direction.

[0051] Optionally, determining whether a sliding operation is continuous based on the sliding force includes:

[0052] Determine whether the sliding force at the current moment is less than the stored local peak force. If so, determine whether the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is less than or equal to the force change threshold; and determine whether the relationship between the sliding force and the sliding time conforms to the preset force release function.

[0053] When the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is greater than the force change threshold, or when the relationship between the sliding force and the sliding time does not conform to the preset force release function, it is determined to be a continuous sliding operation.

[0054] When the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is less than or equal to the force change threshold, and the relationship between the sliding force and the sliding time conforms to the preset force release function, it is determined to be a non-continuous sliding operation.

[0055] Optionally, the method further includes:

[0056] If the sliding force at the current moment is determined to be greater than or equal to the stored local peak force, it is determined to be a continuous sliding operation, and the stored local peak force is updated using the sliding force at the current moment.

[0057] Optionally, the force change threshold is a predetermined proportion of the local peak force;

[0058] The force release function uses y = A * e -Kt ;

[0059] Where A and K are fixed constants determined according to the hardware parameters of the elastic wave sensor, t is time, and y is the sliding force.

[0060] This application also provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the methods described in any of the preceding methods.

[0061] This application also provides a sliding positioning device, including a memory and a processor, wherein the memory stores a program, and the program, when read and executed by the processor, implements the method described in any of the preceding methods.

[0062] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the solutions described in the description and the accompanying drawings. Attached Figure Description

[0063] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.

[0064] Figure 1 A flowchart of the sliding positioning method provided in the embodiments of this application;

[0065] Figure 2 A schematic diagram of a touch screen with multiple elastic wave sensors arranged according to an embodiment of this application;

[0066] Figure 3 This is a comparison chart of the calibrated sliding rate calculated according to the method described in the embodiments of this application and the real-time sliding rate calculated according to the prior art.

[0067] Figures 4a-4b A schematic diagram illustrating the effect of different sliding rates on the elastic wave signal output by the elastic wave sensor, provided in an embodiment of this application.

[0068] Figure 5 This is a schematic diagram illustrating the selection of the filter window length based on the correspondence between a preset sliding speed range and the filter window length, provided in an embodiment of this application.

[0069] Figure 6 A schematic diagram illustrating the change of sliding force relative to time during a single bidirectional sliding operation, provided in an embodiment of this application;

[0070] Figure 7 Example diagram of a method for determining continuous sliding operations provided in an embodiment of this application;

[0071] Figure 8 A flowchart of the sliding positioning method provided as an application example of this application;

[0072] Figures 9a-9b These are schematic diagrams of sliding trajectories obtained by existing methods when a user performs the same sliding operation on a touch panel, and schematic diagrams of sliding trajectories obtained by the method shown in the application example of this application.

[0073] Figure 10 This is a structural diagram of the sliding positioning device provided in an embodiment of this application. Detailed Implementation

[0074] This application describes several embodiments, but these descriptions are exemplary and not restrictive, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.

[0075] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive scheme as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive schemes to form another unique inventive scheme as defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in this application may be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.

[0076] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that it does not depend on such a specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims concerning the method and / or process should not be limited to the steps performed in the written order, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.

[0077] This application provides a sliding positioning method, such as... Figure 1 As shown, the method includes:

[0078] S101 collects elastic wave signals from multiple elastic wave sensors respectively;

[0079] The number of sensors can be selected according to the positioning range. Generally speaking, the larger the positioning range, the more elastic wave sensors are needed to improve the positioning accuracy.

[0080] Figure 2 A schematic diagram of a touch screen with multiple elastic wave sensors is given, in which four elastic wave sensors are staggered on the back of the touch screen; this staggered arrangement of sensors can increase the signal quantity at the middle position, which is beneficial for accurate writing positioning.

[0081] S102 obtains the sliding position and sliding force based on the collected elastic wave signal;

[0082] S103 determines whether the sliding direction has changed based on the sliding position and sliding force;

[0083] S104 changes the output sliding position based on the sliding direction.

[0084] In this embodiment, the sliding force factor is considered during sliding positioning. The sliding direction is determined based on the sliding position and the sliding force, and the sliding position is output based on the change in sliding direction. This allows the output sliding position to reflect the change in sliding direction in a timely manner, thereby improving the accuracy of sliding positioning.

[0085] In one exemplary embodiment, after acquiring elastic wave signals from multiple elastic wave sensors, and before obtaining the sliding position and sliding force based on the acquired elastic wave signals, determining whether interaction has started based on the acquired elastic signals includes:

[0086] Based on the elastic wave signal acquired at the current moment and the elastic wave signal acquired at the previous moment, determine at least one of the absolute change and relative change of the elastic wave signal.

[0087] Determine whether at least one of the absolute change and relative change of the elastic wave signal is greater than a set interaction threshold. If it is greater, then determine that the interaction has started.

[0088] This application embodiment can exclude non-sliding operations by performing interactive judgment.

[0089] In an exemplary embodiment, the absolute change in the elastic wave signal includes summing the signal values ​​of the elastic wave signals acquired from multiple elastic wave sensors at the current moment, and / or finding the maximum value of the signal values ​​of the elastic wave signals acquired from multiple elastic wave sensors at the current moment.

[0090] Determining whether the absolute change in the elastic wave signal is greater than a predefined interaction threshold includes any of the following:

[0091] When the sum of the signal values ​​is greater than the set first interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the set interaction threshold.

[0092] When the result of finding the maximum value of the signal is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the set interaction threshold.

[0093] When the sum of the signal values ​​is greater than the set first interaction threshold, and the result of finding the maximum value of the signal values ​​is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the interaction threshold set for it.

[0094] by Figure 2 Taking the four elastic wave sensors shown as examples, the methods for determining the absolute change in signal can include any one or two of the following:

[0095] The sum of the elastic wave signals collected from multiple elastic wave sensors at the current time t is sum1, where sum1 = ch1(t) + ch2(t) + ch3(t) + ch4(t), and ch1(t) ~ ch4(t) are the elastic wave signals collected from four elastic wave sensors at the current time t.

[0096] Find the maximum value max1 of the elastic wave signals collected from multiple elastic wave sensors at the current moment, where max1 = max(ch1(t), ch2(t), ch3(t), ch4(t)).

[0097] Determining whether the absolute change in the elastic wave signal is greater than a predefined interaction threshold includes any of the following:

[0098] When sum1 is used to describe the absolute change of the signal, if sum1 is greater than the set first interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the set interaction threshold.

[0099] When max1 is used to describe the absolute change of the signal, if max1 is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the interaction threshold set for it.

[0100] When sum1 and max1 are used to describe the absolute change of the signal, if sum1 is greater than the set first interaction threshold and max1 is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the interaction threshold set for it.

[0101] In one exemplary embodiment, determining the relative change in the elastic wave signal includes:

[0102] For each elastic wave sensor, calculate the difference between the current elastic wave signal value and the previous elastic wave signal value.

[0103] After calculating multiple differential values ​​based on the elastic wave signals collected from multiple elastic wave sensors, the maximum value of the multiple differential values ​​is determined.

[0104] Determining whether the relative change in the elastic wave signal is greater than a predefined interaction threshold includes:

[0105] When the maximum value of the plurality of differential values ​​is greater than the set interaction threshold, it is determined that the relative change of the elastic wave signal is greater than the set interaction threshold.

[0106] by Figure 2Taking the four elastic wave sensors shown as examples, the methods for determining the absolute change in signal can include:

[0107] For the elastic wave signals collected from each elastic wave sensor, calculate the difference value diffCh between the elastic wave signal value collected at the current time t and the elastic wave signal value collected at the previous time t1, and obtain diffCh1 = ch1(t) - ch1(t1), diffCh2 = ch2(t) - ch2(t1), diffCh3 = ch3(t) - ch3(t1), diffCh4 = ch4(t) - ch4(t1); ch1(t) ~ ch4(t) are the elastic wave signal values ​​collected at the current time t from the four elastic wave sensors, ch1(t1) ~ ch4(t1) are the elastic wave signal values ​​collected at the previous time t1 from the four elastic wave sensors, and diffCh1 ~ diffCh4 are the difference values ​​calculated based on the elastic wave signals from the four elastic wave sensors.

[0108] Determine the maximum value of diffCh1 to diffCh4, i.e., max(diffCh1, diffCh3, diffCh3, diffCh4);

[0109] Determining whether the relative change in the elastic wave signal is greater than a predefined interaction threshold includes:

[0110] When max(diffCh1, diffCh3, diffCh3, diffCh4) is greater than the set interaction threshold, it is determined that the relative change of the elastic wave signal is greater than the set interaction threshold.

[0111] As an exemplary embodiment, the method further includes:

[0112] The initial sliding position is obtained based on the collected elastic wave signal, and the sliding speed is obtained based on the initial sliding position.

[0113] After acquiring elastic wave signals from multiple elastic wave sensors, the elastic wave signals output by each elastic wave sensor are filtered according to the sliding rate using a selected filtering method.

[0114] The process of obtaining the sliding position and sliding force based on the collected elastic wave signal includes: obtaining the precisely located sliding position and sliding force based on the filtered elastic wave signal.

[0115] The elastic wave signal output from the elastic wave sensor may have large data fluctuations. In this embodiment, the elastic wave signal output from each elastic wave sensor is filtered to smooth the elastic wave signal, which can further achieve high-precision positioning.

[0116] In an exemplary embodiment, obtaining the sliding speed based on the initially located sliding position includes:

[0117] Based on the initial sliding position p at the current time t and the precise sliding position p1 at the previous time t1, determine the average sliding speed v.

[0118] Let the initial time be t1 = 0;

[0119] Based on the average sliding speed v and the sliding speed V1 obtained at the previous time t1, the sliding rate V at the current time t is obtained.

[0120] V = V1*β + v*(1-β), and assume that V1 = 0 at the initial time.

[0121] Where β is the sliding speed calibration coefficient, and the weight β represents the degree of influence of the sliding speed V1 at the previous time t1 on the sliding speed V at the current time t. In reality, the speed change is slow relative to the acquisition frequency, so β ​​can be set to a large value, such as β≥0.7. The sliding speed can be calibrated using the formula V=V1*β+v*(1-β) to prevent fluctuations in the sliding speed and make the calculated sliding speed closer to the actual sliding speed.

[0122] Figure 3 A comparison chart is provided between the calibrated sliding rate calculated according to the method described in the embodiments of this application and the real-time sliding rate calculated according to the prior art. From... Figure 3 As can be seen, the fluctuation of the real-time sliding rate calculated according to the existing technical solution is significantly greater than that of the calibrated sliding rate.

[0123] In one exemplary embodiment, filtering the elastic wave signal output by each elastic wave sensor according to the sliding rate includes:

[0124] When the acquisition frequency is less than the preset frequency threshold, filters with different filter window lengths are selected according to the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor.

[0125] When the acquisition frequency is equal to or greater than the preset frequency threshold, different frequency filters are selected according to the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor.

[0126] In an exemplary embodiment, when the acquisition frequency is less than a preset frequency threshold, filters with different filter window lengths are selected based on the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor, including:

[0127] The filter window length is selected based on the preset speed range in which the current sliding speed is located, and the correspondence between the preset sliding speed range and the filter window length. The larger the sliding speed, the shorter the corresponding filter window length.

[0128] Figures 4a-4b The effect of different sliding rates on the elastic wave signal output by the elastic wave sensor is presented. Figure 4a The elastic wave signal output by the elastic wave sensor under slow sliding conditions. Figure 4b This is the elastic wave signal output by the elastic wave sensor during rapid sliding. The elastic wave signal output by the sensor exhibits large waveform fluctuations during slow sliding, while the waveform fluctuations are smaller during rapid sliding. For signals with large fluctuations, a longer filtering window is required for smoothing; otherwise, the smoothing effect will be poor, affecting positioning accuracy.

[0129] In an exemplary embodiment, a method for obtaining the correspondence between a preset sliding rate range and a filter window length includes:

[0130] Randomly select a speed V within each preset sliding speed range. x In the case of sliding, the M elastic wave signals output by any elastic wave sensor are filtered using different preset filter window lengths, and the smoothing index K is calculated based on the M elastic wave signals after filtering.

[0131]

[0132] Where f(n) is the value of the nth elastic wave signal after filtering, and f(n-1) is the value of the (n-1)th elastic wave signal after filtering;

[0133] Select the smoothing index K with the smallest value that is less than the preset smoothness threshold from multiple smoothing indices K obtained based on filter window lengths of different preset lengths. Use the filter window length corresponding to the selected smoothing index K as V. x The length of the filter window corresponding to the sliding rate range.

[0134] Assuming there are three preset sliding speed ranges: less than or equal to a low-speed threshold, greater than a low-speed threshold but less than a high-speed threshold, and greater than or equal to a high-speed threshold; the filter window lengths suitable for these three sliding speed ranges are selected using a smoothing index: 4, 8, and 16, respectively.

[0135] The filter window length corresponding to the sliding rate range that is less than or low speed threshold is 16. The purpose is to make the elastic wave signal smoother and reduce the impact of the elastic wave signal fluctuation characteristics on the positioning results.

[0136] The filter window length corresponding to the sliding rate range that is greater than the low speed threshold and less than the high speed threshold is 8;

[0137] The filter window length corresponding to the sliding rate range that is greater than or equal to the high-speed threshold is 4. The purpose is to preserve the characteristics of the original data as much as possible and to filter out signal abrupt changes.

[0138] After obtaining the current sliding speed, determine the preset speed range within which the current sliding speed falls. Then, select the filter window length based on the correspondence between the preset sliding speed range and the filter window length. Figure 5 As shown.

[0139] In an exemplary embodiment, when the acquisition frequency is equal to or greater than a preset frequency threshold, different frequency filters are selected based on the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor, including:

[0140] When the sliding speed at the current moment is greater than the preset speed threshold, a high-pass filter is selected to filter the elastic wave signal output by each elastic wave sensor; because when the sliding speed is high, the high-frequency characteristics of the elastic wave signal are obvious.

[0141] When the sliding speed at the current moment is less than or equal to the preset speed threshold, a low-pass filter is selected to filter the elastic wave signal output by each elastic wave sensor; because when the sliding speed is slow, the low-frequency signal of the elastic wave signal is large and has obvious characteristics.

[0142] In an exemplary embodiment, determining whether the sliding direction has changed based on the sliding position and the sliding force includes:

[0143] The historical sliding direction is determined based on the historical sliding position, and the direction of position change is determined based on the current sliding position and the previous sliding position. If the direction of position change is consistent with the historical sliding direction, it is determined that the sliding direction has not changed; if the direction of position change is inconsistent with the historical sliding direction, it is determined that the sliding direction has changed.

[0144] The above method for determining the historical sliding direction based on the historical sliding position can be found in relevant materials. For example, the average sliding direction can be generated based on the path fitting function formed by the historical sliding position, and the average sliding direction is the historical sliding direction.

[0145] In an exemplary embodiment, the method for determining whether the direction of position change is consistent with the historical sliding direction includes:

[0146] When elastic wave sensors are arranged in series, the calculated sliding position is a one-dimensional position. In this case, the direction of position change and the historical sliding direction are the same value. The consistency between the direction of position change and the historical sliding direction can be determined by checking whether the condition of * the historical sliding direction > 0. If the condition is met, the direction of position change and the historical sliding direction are consistent; if not, the direction of position change and the historical sliding direction are inconsistent.

[0147] When elastic wave sensors are arranged in a manner other than series connection, the calculated sliding position is a multi-dimensional position. The direction of position change and the historical sliding direction are a multi-dimensional vector. It can be determined by whether the angle between these two vectors is less than a preset angle threshold. If it is less than the preset angle threshold, it means that the direction of position change is consistent with the historical sliding direction; if it is greater than or equal to the preset angle threshold, it means that the direction of position change is inconsistent with the historical sliding direction.

[0148] In one exemplary embodiment, the method further includes:

[0149] After determining that the direction of position change is inconsistent with the historical sliding direction, a confidence assessment is performed on the current sliding position. If the confidence assessment value of the current sliding position is greater than the preset value, it is determined that the sliding direction has changed.

[0150] The confidence assessment of the current sliding position refers to the probability of obtaining the current sliding position. The higher the probability, the higher the corresponding confidence assessment value.

[0151] In one exemplary embodiment, the method further includes:

[0152] Before determining the historical sliding direction based on the historical sliding position, it is determined whether the sliding operation is continuous based on the sliding force.

[0153] If it is a continuous sliding operation, it is determined whether the number of historical sliding positions formed by the sliding operation or the distance traveled exceeds the corresponding reversal threshold; if it exceeds, the step of determining the historical sliding direction based on the historical sliding position is executed; if it does not exceed, it is determined that the sliding direction has not changed.

[0154] If the sliding operation is not continuous, then perform the step of determining the historical sliding direction based on the historical sliding position;

[0155] For example, when adjusting the volume by sliding up and down on the touch panel, based on the statistics of user behavior, if the sliding distance of the previous sliding position is less than 3mm when continuously sliding upwards, the user will not slide downwards in actual application. The 3mm is the reversal threshold.

[0156] In an exemplary embodiment, determining whether a sliding operation is continuous based on the sliding force includes:

[0157] The system checks if the relationship between the sliding force and the sliding time conforms to a preset force release function. If it does, the sliding operation is not continuous. When the relationship between the sliding force and the sliding time conforms to the force release function, it indicates that the interaction is in the process of ending, i.e., it is not a continuous sliding operation.

[0158] In another exemplary embodiment, considering that when the sliding force is large, due to the influence of various factors such as hardware or user gestures, it may be determined that the relationship between the sliding force and the sliding time conforms to a preset force release function under continuous sliding operations, the determination of whether it is a continuous sliding operation based on the sliding force includes:

[0159] Determine whether the sliding force at the current moment is less than the stored local peak force. If so, determine whether the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is less than or equal to the force change threshold; and determine whether the relationship between the sliding force and the sliding time conforms to the preset force release function.

[0160] When the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is greater than the force change threshold, or when the relationship between the sliding force and the sliding time does not conform to the preset force release function, it is determined to be a continuous sliding operation.

[0161] When the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is less than or equal to the force change threshold, and the relationship between the sliding force and the sliding time conforms to the preset force release function, it is determined to be a non-continuous sliding operation.

[0162] In one exemplary embodiment, the force release function can be y = A * e -Kt ;

[0163] Where A and K are fixed constants determined according to the hardware parameters of the elastic wave sensor, t is time, and y is the sliding force.

[0164] In an exemplary embodiment, the force change threshold is a predetermined proportion of local peak force; the predetermined proportion is generally recommended to be a value in the range of 0 to 50%, such as 30%; the smaller the value of the predetermined proportion, the more stringent the judgment condition.

[0165] In an exemplary embodiment, if it is determined that the sliding force at the current moment is greater than or equal to the stored local peak force, then it is directly determined to be a continuous sliding operation, and the stored local peak force is updated using the sliding force at the current moment.

[0166] Figure 6The diagram illustrates the change in sliding force relative to time during a bidirectional sliding operation. The force values ​​marked by the dots obtained in chronological order are the locally stored peak forces.

[0167] Figure 7 This is an example diagram of the method for determining continuous sliding operations as described in the above embodiments.

[0168] In one exemplary embodiment, changing the output sliding position based on the sliding direction includes:

[0169] After determining that the sliding direction has not changed, output the current sliding position;

[0170] After determining that the sliding direction has changed, clear the historical sliding position record in the original sliding direction, output the sliding position at the current moment, and use the current sliding position as the first historical sliding position record in the new sliding direction.

[0171] The method described in the above embodiments is illustrated below with a specific application example, such as... Figure 8 As shown. After acquiring elastic wave signals from multiple elastic wave sensors, the system determines whether interaction has started based on the acquired elastic signals. If not, signal acquisition continues. If interaction is determined to have started, a preliminary sliding position is obtained based on the acquired elastic wave signals. The current sliding speed is then obtained based on the preliminary sliding position. The corresponding filter window length is selected based on the current sliding speed to filter the elastic wave signals output by each elastic wave sensor. The precisely positioned sliding position and sliding force are obtained based on the filtered signal. The sliding direction is then determined based on the sliding position and sliding force. If the sliding direction has not changed, the sliding position is de-jittered and output. If the sliding direction has changed, the historical sliding position records in the original sliding direction are cleared, the current sliding position is output, and the current sliding position is used as the first historical sliding position record in the new sliding direction. Figure 9a To obtain the sliding trajectory using existing methods when a user performs a swipe operation on the touch panel. Figure 9b When the user performs the same swipe operation on the touch panel, according to Figure 8 The sliding trajectory obtained by the method shown in the figure is more accurately positioned.

[0172] This invention also provides a computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the methods described in any of the preceding embodiments.

[0173] This invention also provides a sliding positioning device, such as... Figure 10 As shown, the system includes a memory 1001 and a processor 1002. The memory 1001 stores a program, which, when read and executed by the processor 1002, implements the method described in any of the preceding embodiments.

[0174] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

Claims

1. A sliding positioning method, the method comprising: Elastic wave signals from multiple elastic wave sensors were collected respectively; The sliding position and sliding force are obtained based on the collected elastic wave signals; Determine whether the sliding direction has changed based on the sliding position and sliding force; Whether the output sliding position changes depending on the sliding direction; The step of determining whether the sliding direction has changed based on the sliding position and sliding force includes: The sliding force is used to determine whether the sliding operation is continuous. If it is continuous, the number of historical sliding positions or the distance traveled by the sliding operation are checked to see if they exceed the corresponding reversal threshold. If they do, the historical sliding direction is determined based on the historical sliding positions. If they do not exceed the threshold, the sliding direction is determined to have not changed. If the sliding operation is not continuous, the historical sliding direction is determined based on the historical sliding positions.

2. The method according to claim 1, characterized in that, The method further includes: After acquiring elastic wave signals from multiple elastic wave sensors, before determining the sliding position and sliding force based on the acquired elastic wave signals, the interaction is determined based on the acquired elastic wave signals, including: Based on the elastic wave signal acquired at the current moment and the elastic wave signal acquired at the previous moment, determine at least one of the absolute change and relative change of the elastic wave signal. Determine whether at least one of the absolute change and relative change of the elastic wave signal is greater than a set interaction threshold. If it is greater, then determine that the interaction has started.

3. The method according to claim 2, characterized in that, The method for determining the absolute change of the elastic wave signal includes: summing the signal values ​​of the elastic wave signals acquired from multiple elastic wave sensors at the current moment, and / or finding the maximum value of the signal values ​​of the elastic wave signals acquired from multiple elastic wave sensors at the current moment. Determining whether the absolute change in the elastic wave signal is greater than a predefined interaction threshold includes any of the following: When the sum of the signal values ​​is greater than the set first interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the set interaction threshold. When the result of finding the maximum value of the signal is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the set interaction threshold. When the sum of the signal values ​​is greater than the set first interaction threshold, and the result of finding the maximum value of the signal values ​​is greater than the set second interaction threshold, it is determined that the absolute change of the elastic wave signal is greater than the interaction threshold set for it. The methods for determining the relative change in the elastic wave signal include: For each elastic wave sensor, calculate the difference between the current elastic wave signal value and the previous elastic wave signal value. After calculating multiple differential values ​​based on the elastic wave signals collected from multiple elastic wave sensors, the maximum value of the multiple differential values ​​is determined. Determining whether the relative change in the elastic wave signal is greater than a predefined interaction threshold includes: When the maximum value of the plurality of differential values ​​is greater than the set interaction threshold, it is determined that the relative change of the elastic wave signal is greater than the set interaction threshold.

4. The method according to claim 1, characterized in that, The method further includes: The initial sliding position is obtained based on the collected elastic wave signal, and the sliding rate is obtained based on the initial sliding position. After acquiring elastic wave signals from multiple elastic wave sensors, the elastic wave signals output by each elastic wave sensor are filtered according to the sliding rate using a selected filtering method. The process of obtaining the sliding position and sliding force based on the collected elastic wave signal includes: obtaining the precisely located sliding position and sliding force based on the filtered elastic wave signal.

5. The method according to claim 4, characterized in that, Obtaining the sliding speed based on the initially located sliding position includes: Based on the initial sliding position p at the current time t and the precise sliding position p1 at the previous time t1, determine the average sliding rate. ; Let the initial time be t1=0; According to the average sliding rate and the sliding speed obtained at the previous time t1 To obtain the sliding speed at the current time t ; Let V1 = 0 at the initial time. in, This is the calibration coefficient for the sliding rate.

6. The method according to claim 5, characterized in that, The elastic wave signal output by each elastic wave sensor is filtered according to the selected filtering method based on the sliding rate, including: When the acquisition frequency is less than the preset frequency threshold, filters with different filter window lengths are selected according to the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor. When the acquisition frequency is equal to or greater than the preset frequency threshold, different frequency filters are selected according to the sliding speed at the current moment to filter the elastic wave signal output by each elastic wave sensor.

7. The method according to claim 6, characterized in that, Based on the sliding rate at the current moment, filters with different filter window lengths are selected to filter the elastic wave signal output by each elastic wave sensor, including: The filter window length is selected based on the preset speed range in which the current sliding speed falls, and the correspondence between the preset sliding speed range and the filter window length. The larger the sliding speed, the shorter the corresponding filter window length.

8. The method according to claim 7, characterized in that, Methods for obtaining the correspondence between a preset sliding rate range and the filter window length include: Randomly select a rate within each preset sliding rate range. In the case of sliding, the M elastic wave signals output by any elastic wave sensor are filtered using different preset filter window lengths, and the smoothing index K is calculated based on the M elastic wave signals after filtering. in, This represents the filtered value of the nth acquired elastic wave signal. This represents the value of the (n-1)th collected elastic wave signal after filtering. Select the smoothing index K with the smallest value that is less than the preset smoothness threshold from multiple smoothing indices K obtained according to different preset filter window lengths. Use the filter window length corresponding to the selected smoothing index K as... The length of the filter window corresponding to the sliding rate range.

9. The method according to claim 1, characterized in that, Determining the historical sliding direction based on the historical sliding position includes: The direction of position change is determined by the current sliding position and the previous sliding position. If the direction of position change is consistent with the historical sliding direction, it is determined that the sliding direction has not changed; if the direction of position change is inconsistent with the historical sliding direction, it is determined that the sliding direction has changed.

10. The method according to claim 1, characterized in that, Whether the output sliding position changes depending on the sliding direction includes: After determining that the sliding direction has not changed, output the current sliding position; After determining that the sliding direction has changed, clear the historical sliding position record in the original sliding direction, output the sliding position at the current moment, and use the sliding position at the current moment as the first historical sliding position record in the new sliding direction.

11. The method according to claim 10, characterized in that, Determining whether a sliding operation is continuous based on the sliding force includes: It determines whether the current sliding force is less than the stored local peak force. If so, it checks whether the absolute value of the difference between the current sliding force and the previous sliding force is less than or equal to a force change threshold. It also determines whether the relationship between the sliding force and the sliding time conforms to a preset force release function. The force release function uses... ;in , It is a fixed constant determined based on the hardware parameters of the elastic wave sensor, where t is time and y is the sliding force; When the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is greater than the force change threshold, or when the relationship between the sliding force and the sliding time does not conform to the preset force release function, it is determined to be a continuous sliding operation. When the absolute value of the difference between the sliding force at the current moment and the sliding force at the previous moment is less than or equal to the force change threshold, and the relationship between the sliding force and the sliding time conforms to the preset force release function, it is determined to be a non-continuous sliding operation.

12. The method according to claim 11, characterized in that, The method also includes: If the sliding force at the current moment is determined to be greater than or equal to the stored local peak force, it is determined to be a continuous sliding operation, and the stored local peak force is updated using the sliding force at the current moment.

13. The method according to claim 12, characterized in that, The force change threshold is a predetermined proportion of local peak force.

14. A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the method as claimed in any one of claims 1 to 13.

15. A sliding positioning device, comprising a memory and a processor, the memory storing a program that, when read and executed by the processor, implements the method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Detection device, electronic apparatus, and robot

    CN102692286A

  • Electronic equipment and signal processing method

    CN111078056A