Method and system for applying interference signal to keyboard through analog waveform
A technology of interfering signals and analog waveforms, applied in cash registers, instruments, internal/peripheral computer component protection, etc., can solve problems such as user property loss, high cost, increased production cost and difficulty in structural design
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0115] Such as Figure 4 As shown, the following steps are also included between the step A1 and the step A2:
[0116] A11. Initialization: Get a value in the range of 120-250ms as the continuous interference time times; get a value in the range of 1000-2000ms as the idle time times_1; get a value randomly in the range of 0-2500ms as the initial continuous interference time t2 ; Randomly obtain a value within the range of 0-2500ms as the initial idle time t1;
[0117] The random acquisition of ranks and columns in A2 specifically includes the following steps:
[0118]A21. Judging activation: judging whether the interfering thread is active, if so, go to step A23, otherwise go to step A22;
[0119] A22. Super-idle time judgment: obtain the current time t0, calculate the difference between the current time t0 and the initial idle time t1, and judge whether the difference is greater than the idle time times_1, and if so, go to step A221;
[0120] A221. Mark the active state: m...
Embodiment 2
[0127] Such as image 3 As shown, the step S1 also includes: setting the number of times of debounce to 0;
[0128] Between said step S4 and step S5, the following steps are also included:
[0129] S41. Debounce operation: perform one debounce operation, the debounce time is T, and the number of debounce times is increased by 1;
[0130] S42. Judging the number of debounces: determine whether the number of debounces is 2, if so, then go to step S43, if not, then go to step S422;
[0131] S422. Assignment: assign key_data data to key_bak data, and then go to step S6;
[0132] S43. Reset the debounce times: set the debounce times to 0;
[0133] S44. Judging the same: judging whether the key_data data and the key_bak data are the same, if yes, go to step S5, if not, go to step S6.
[0134] The conventional thread avoids the influence of interference signals through the debounce operation, samples the keyboard twice, and then compares the sampling results of the two times. If ...
Embodiment 3
[0136] Such as Figure 4 As shown, the step A22 further includes: judging whether the difference is greater than the idle time times_1, if not, go to step A21.
[0137] If the difference is not greater than the idle time times_1, it means that the interfering thread is still in the idle state, thus going to sleep.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


