Search

CN-122018712-A - Dual-channel input control method, system and medium based on touch state machine

CN122018712ACN 122018712 ACN122018712 ACN 122018712ACN-122018712-A

Abstract

The invention discloses a double-channel input control method, a double-channel input control system and a double-channel input control medium based on a touch state machine. The method comprises the steps of electrically connecting a roller conducting layer with a touch detection circuit through a physical ohmic electric contact passage to acquire a touch state signal, controlling a magnetic angle sensor to enter a first frequency mode when touch contact is detected, and starting an inertia processing window and maintaining the first frequency mode until the window is ended to enter a second frequency mode when touch release is detected. The system maintains at least a first logic channel (outputting standard relative displacement), maintains a second logic channel (outputting absolute angle and touch state) when the second logic channel is started, and automatically adjusts the output strategy according to the characteristic request sequence of the host end. The invention solves the contradiction between high power consumption and high precision caused by fixed return rate of the traditional mouse, and realizes smooth scrolling experience across operating systems.

Inventors

  • Request for anonymity

Assignees

  • 周环宇

Dates

Publication Date
20260512
Application Date
20260201

Claims (7)

  1. 1. A control method of input equipment is characterized by comprising the following steps of S1, electrically connecting a roller conducting layer with a touch detection circuit through a physical ohmic electric contact path to acquire touch state signals of the roller surface in real time, S2, maintaining a touch state machine according to the touch state signals, controlling a magnetic angle sensor to enter a first frequency mode when the touch state transitions to touch, starting an inertia processing window when the touch state transitions to release, maintaining the first frequency mode during the inertia processing window, and controlling the magnetic angle sensor to enter a second frequency mode after the window is finished, wherein the sampling frequency of the first frequency mode is higher than that of the second frequency mode, S3, sending data to a host end through a communication interface, wherein the data are transmitted at least through a first logic channel, and when the second logic channel is started, the data are 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 original data comprising absolute angles and the touch state.
  2. 2. A method according to claim 1, wherein the physical ohmic contact is a sliding electrical contact, and wherein the conductive contact (e.g. the free end of the resilient conductive arm) fixedly arranged during rotation of the roller makes a relative sliding contact with the conductive layer (also referred to as the conductive contact surface) rotating with the roller to reduce contact resistance fluctuations.
  3. 3. The method of claim 1, further comprising a secure rollback mechanism that monitors a host side heartbeat or communication status of the second logical channel and forces the device to output data only through the first logical channel when a communication timeout or connection is determined to not be established.
  4. 4. The method of claim 1, further comprising a host policy handshake step of detecting a feature request sequence or control transmission behavior initiated by a host during a device enumeration phase, activating data reporting of the second logical channel if a preset feature request sequence or behavior is detected, and otherwise reporting only the first logical channel data.
  5. 5. The method according to claim 1, wherein in step S2, during the inertia processing window, the device side calculates an inertia increment according to the angular velocity at the moment of release and outputs the calculated inertia increment, or the device side continuously outputs the raw angle data for the host side to calculate inertia.
  6. 6. An input device system, applying the method according to any one of claims 1 to 5, comprising a magnetic angle detection unit for acquiring a rotation angle of a roller, a touch detection unit for acquiring a touch state through physical ohmic electrical contact, and a microcontroller connected to the magnetic angle detection unit and the touch detection unit and configured to execute the touch state machine and dual-channel data transmission.
  7. 7. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the input device control method of any one of claims 1 to 5.

Description

Dual-channel input control method, system and medium based on touch state machine Technical Field The invention relates to the field of computer peripheral input control, in particular to a dual-channel input control method, a dual-channel input control system and a dual-channel input control medium based on a touch state machine. Background The conventional mouse wheel usually works under a fixed return rate (such as a lower fixed return rate), and cannot meet the sliding and rolling requirements under a high refresh rate screen, and if the high return rate is always started, the power consumption of the wireless device can be obviously increased. In addition, under the capability difference of different host sides (such as different operating system environments), a single data reporting path often causes compatibility and function enhancement to be difficult to be compatible, the standard mode lacks precision, and the enhancement mode may not be available in a non-driving environment. The prior art lacks a control scheme capable of simultaneously achieving energy efficiency management, high-precision experience and cross-platform compatibility. Disclosure of Invention The invention aims to solve the problems and provide a dual-channel input control method based on a touch state machine. The technical scheme includes that a roller conducting layer is electrically connected with a touch detection circuit through a physical ohmic electric contact passage to collect touch state signals of the surface of the roller in real time, a step S2 is conducted to maintain a touch state machine according to the touch state signals, when the touch state is changed into contact, a magnetic angle sensor is controlled to enter a first frequency mode (high frequency), when the touch state is changed into release, an inertia processing window is started, the first frequency mode is maintained, the second frequency mode (low frequency) is entered after the window is ended, a step S3 is conducted to a host end through a communication interface to send data, the data are transmitted through at least the first logic channel, and when the second logic channel is started, the data are transmitted in parallel through the first logic channel and the second logic channel, the first logic channel outputs standard relative displacement to ensure compatibility, and the second logic channel outputs original data including absolute angles and the touch state to support high-precision processing. The invention also discloses a corresponding system and a storage medium. The invention has the beneficial effects that the power consumption is accurately managed by utilizing the touch intention, and meanwhile, the unification of drive-free compatibility and extreme experience is realized through a double-channel architecture. Drawings Fig. 1 is a flowchart of a touch state machine according to the present invention. The invention will be described in further detail with reference to the accompanying drawings and specific examples. In the first embodiment, the touch state machine control is shown in fig. 1, and the present embodiment adopts the "touch-preferred" energy efficiency management logic. When a touch state signal transition to "touch" is detected through the physical ohmic electrical contact path, the system immediately enters a first frequency mode (high frequency mode) to ensure a fast response to micro-scrolling. When the touch state transitions to release, the system does not immediately sleep, but enters an inertia processing window with preset duration. Within this window, the system maintains a first frequency pattern sampling so that the host-side or device-side algorithm captures the angular velocity at the moment of departure from the hand and generates a smooth inertial roll effect. Only after the window times out, the system reduces the sampling rate to enter a second frequency mode (low power mode) to maximize battery life while guaranteeing the experience. The first frequency mode or the second frequency mode can refer to a sensor sampling frequency, and also can refer to MCU data processing or reporting frequency. In order to achieve compatibility and function enhancement, the two-channel communication and handshake adopts a double-logic-channel design. The first logical channel maps to a standard Human Interface Device (HID) mouse interface, sending standard relative displacement data, ensuring basic usability in a no dedicated drive or BIOS environment. The second logic channel is mapped to a custom data interface, and original data containing absolute angles and touch states is sent to be processed with high precision by upper computer software. In addition, the device may monitor communication behavior on the bus during the insertion or enumeration phase. In a specific embodiment, if it is detected that the host requests a specific Feature sequence (for example, a specific vendor custom request, an extended descripto