Double-channel input control method and system based on touch state machine and medium
By using a touch state machine and dual-channel input control method, the power consumption and compatibility issues of the mouse wheel on high refresh rate screens have been solved, achieving a high-precision scrolling experience and cross-platform compatibility, and providing an ultimate user experience without the need for drivers.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 周环宇
- Filing Date
- 2026-02-01
- Publication Date
- 2026-05-12
AI Technical Summary
Existing mouse wheels cannot meet the demand for smooth scrolling on high refresh rate screens, and it is difficult to balance compatibility and functionality enhancement in different operating system environments. Existing technologies also lack energy efficiency management and cross-platform compatibility solutions.
A dual-channel input control method based on a touch state machine is adopted. The touch state of the scroll wheel is detected through a physical ohmic electrical contact path, the touch state machine is used to manage power consumption, and standard and high-precision data transmission is achieved through dual logic channels to adapt to different platform environments.
It achieves power management and high-precision scrolling experience on high refresh rate screens, while ensuring cross-platform compatibility and enhanced functionality, providing driverless compatibility and an ultimate user experience.
Smart Images

Figure CN122018712A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer peripheral input control, and more particularly to a dual-channel input control method, system, and medium based on a touch state machine. Background Technology
[0002] Current mouse wheels typically operate at a fixed polling rate (e.g., a low fixed polling rate), which cannot meet the smooth scrolling requirements of high refresh rate screens; if a high polling rate is always enabled, it will significantly increase the power consumption of wireless devices. Furthermore, due to differences in capabilities on different host sides (such as different operating system environments), a single data reporting path often makes it difficult to achieve both compatibility and enhanced functionality: standard mode lacks accuracy, and enhanced mode may be unusable in driverless environments. Current technology lacks a control solution that can simultaneously achieve energy efficiency management, high-precision experience, and cross-platform compatibility. Summary of the Invention
[0003] The purpose of this invention is to solve the above-mentioned problems and provide a dual-channel input control method based on a touch state machine. The technical solution is as follows: Step S1: Electrically connect the roller conductive layer to the touch detection circuit through a physical ohmic contact path to collect the touch state signal on the roller surface in real time; Step S2: Maintain a touch state machine based on the touch state signal; when the touch state transitions to "contact", control the magnetic angle sensor to enter the first frequency mode (high frequency); when the touch state transitions to "release", start the inertial processing window and maintain the first frequency mode, and enter the second frequency mode (low frequency) after the window ends; Step S3: Send data to the host through a communication interface, the data being transmitted at least through the first logic channel; and, when the second logic channel is enabled, the data is transmitted in parallel through the first and second logic channels; the first logic channel outputs a standard relative displacement to ensure compatibility, and the second logic channel outputs raw data including absolute angle and touch state to support high-precision processing. This invention also discloses a corresponding system and storage medium. The beneficial effects of this invention are: it utilizes touch intent to precisely manage power consumption, while achieving a balance between driverless compatibility and ultimate user experience through a dual-channel architecture. Attached Figure Description
[0004] Figure 1 is a flowchart of the touch state machine of the present invention.
[0005] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Example 1: Touch State Machine Control. As shown in Figure 1, this example employs a "touch-first" energy efficiency management logic. When the touch state signal transitions to "contact" via a physical ohmic contact path, the system immediately enters the first frequency mode (high-frequency mode) to ensure rapid response to minute scrolling. When the touch state transitions to "release," the system does not immediately go to sleep but enters a preset inertial processing window. Within this window, the system maintains sampling in the first frequency mode so that the host or device-side algorithm can capture the angular velocity at the moment of release and generate a smooth inertial scrolling effect. Only after the window times out does the system reduce the sampling rate and enter the second frequency mode (low-power mode), thereby maximizing battery life while ensuring a good user experience. The first or second frequency mode can refer to the sensor sampling frequency or the MCU data processing or reporting frequency. Example 2: Dual-Channel Communication and Handshake To balance compatibility and enhanced functionality, this example employs a dual-logic-channel design. The first logical channel is mapped to a standard Human Interface Device (HID) mouse interface, sending standard relative displacement data to ensure basic usability in environments without dedicated drivers or BIOS. The second logical channel is mapped to a custom data interface, sending raw data containing absolute angles and touch states for high-precision processing by the host computer software. Furthermore, the device monitors communication behavior on the bus during the insertion or enumeration phase. In one specific embodiment, if the host requests a specific feature sequence (e.g., a specific vendor-defined request, an extended descriptor request, or a preset enumeration phase request sequence; for example, the host reads a preset feature report or sends a vendor-defined control transmission request in a preset format during the enumeration phase), the device recognizes that the host possesses enhanced processing capabilities, thereby automatically activating data reporting on the second logical channel; otherwise, it defaults to reporting only data from the first logical channel, achieving intelligent switching. In one specific embodiment, the host can periodically send heartbeat data or maintain connection requests through the second logical channel; the device can determine whether the second logical channel is valid based on the heartbeat arrival status or communication timeout status, and fall back to outputting data only through the first logical channel when there is an abnormality.
Claims
1. An input device control method, characterized in that, The process includes the following steps: Step S1: Electrically connect the roller conductive layer to the touch detection circuit through a physical ohmic contact path to collect the touch state signal on the roller surface in real time; Step S2: Maintain a touch state machine based on the touch state signal; when the touch state transitions to "contact", control the magnetic angle sensor to enter the first frequency mode; when the touch state transitions to "release", start the inertial processing window, maintain the first frequency mode during the inertial processing window, and control the magnetic angle sensor to enter the second frequency mode after the window ends; wherein the sampling frequency of the first frequency mode is higher than that of the second frequency mode; Step S3: Send data to the host through the communication interface, the data being transmitted at least through the first logic channel; and, when the second logic channel is enabled, the data is transmitted in parallel through the first logic channel and the second logic channel; the first logic channel outputs standard relative displacement data, and the second logic channel outputs raw data including absolute angle and touch state.
2. The method according to claim 1, characterized in that, The physical ohmic electrical contact path is a sliding electrical contact path, and when the roller rotates, the fixed conductive contacts (such as the free end of the elastic conductive arm) and the conductive layer (also known as the conductive contact surface) that rotates with the roller generate relative sliding contact to reduce contact resistance fluctuations.
3. The method according to claim 1, characterized in that, The method also includes a safety fallback mechanism: monitoring the host heartbeat or communication status of the second logical channel, and when it is determined that the communication has timed out or the connection has not been established, forcing the device to output data only through the first logical channel.
4. The method according to claim 1, characterized in that, The method further includes a host policy handshake step: during the device enumeration phase, a feature request sequence or control transmission behavior initiated by the host is detected. If a preset feature request sequence or behavior is detected, the data reporting of the second logical channel is activated; otherwise, only the data of the first logical channel is reported.
5. The method according to claim 1, characterized in that, In step S2, during the inertial processing window, the device calculates and outputs the inertial increment based on the angular velocity at the moment of release, or the device continuously outputs the original angle data for the host to calculate the inertia.
6. An input device system, employing the method as described in any one of claims 1 to 5, characterized in that, include: A magnetic angle detection unit is used to collect the rotation angle of the roller; The touch detection unit is used to collect touch status through physical ohmic electrical contact; A microcontroller is connected to the magnetic angle detection unit and the touch detection unit and is configured to execute the touch state machine and dual-channel data transmission.
7. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the input device control method as described in any one of claims 1 to 5.