Method and device for automatically switching multiple touch modes
By pre-setting multiple touch modes in the POS system, creating system nodes and providing switching interfaces, the problems of accidental touch and missed touch in complex environments of traditional touch screens are solved, enabling flexible touch mode switching and improving user experience and operational efficiency.
Patent Information
- Application Number
- CN202511241549.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-02
- Publication Date
- 2025-11-28
AI Technical Summary
Traditional touchscreens are prone to accidental touches, missed touches, or slow response in complex and ever-changing environments, making it difficult to adapt to users' diverse touch operation needs.
The POS system is pre-installed with touch firmware for multiple touch modes. The touch driver is loaded through the kernel to create a system node, providing a switching interface to switch touch modes according to user needs, including single-finger, multi-finger, frequency, and wet touch modes, achieving automatic switching.
It provides a stable touch experience, ensures transaction success rate, improves user experience and operational efficiency, and adapts to touch needs in different environments.
Smart Images

Figure CN121029062A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of touch technology, and in particular to a method and apparatus for automatically switching between multiple touch modes. Background Technology
[0002] Tablet POS machines are typically used in complex and varied environments. Users may operate with one or more fingers, or perform touch operations with wet hands or a wet screen, or engage in high-frequency, rapid input. This places high demands on the adaptability of the touchscreen. Traditional touch control solutions usually employ fixed or single touch modes. Touchscreens with single touch modes struggle to adapt to real-world environments, prone to mis-touches, missed touches, or sluggish responses, impacting operational efficiency and user experience. Therefore, there is an urgent need for touch control solutions that can adapt to diverse environments. Summary of the Invention
[0003] In view of the above problems, the present invention is proposed to provide a method and a corresponding apparatus for automatically switching between multiple touch modes to overcome or at least partially solve the above problems.
[0004] This invention discloses a method for automatically switching between various touch modes, the method comprising:
[0005] Multiple touch modes are pre-installed in the POS system partition;
[0006] When the cash register is powered on, the kernel starts up, loads the touch driver, creates a system node to control the switching of multiple touch modes, and determines whether the system node has been successfully created.
[0007] If the system node is successfully created, the touch driver parses the touch firmware of the system partition and determines whether the touch firmware data is normal.
[0008] If the touch firmware data is normal, the system node will enable the default touch mode and provide a system switching interface to switch the touch mode so that the user can switch the touch mode according to the user's needs.
[0009] When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode and determines whether the switching is successful.
[0010] If the switch is successful, the system will respond normally to user touch operations using the target touch mode.
[0011] Optionally, the touch modes include exponential touch mode, frequency touch mode, and wet touch mode; the exponential mode includes single-finger touch mode, two-finger touch mode, and multi-finger touch mode; the frequency touch mode includes high-frequency touch mode and low-frequency touch mode.
[0012] Optionally, the default touch mode is set to a two-finger touch, automatic frequency hopping touch mode; when the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0013] When the system node detects a switching command to switch between two-finger touch mode and single-finger touch mode or multi-finger touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the single-finger touch mode or multi-finger touch mode.
[0014] When the current touch mode is automatic frequency hopping touch mode, the touch chip reads environmental interference factors according to the internal status register and jumps to the optimal operating frequency.
[0015] When a system node detects a switching command to switch between high-frequency touch mode and low-frequency touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the high-frequency touch mode or low-frequency touch mode. The operating frequency of the high-frequency touch mode and the low-frequency touch mode are customized by the user.
[0016] Optionally, single-finger touch mode, two-finger touch mode, and multi-finger touch mode are mutually exclusive. When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0017] When a system node detects a switching command that switches the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to the corresponding mutually exclusive touch mode, it will turn off the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode and query the touch mode flag to determine whether the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is turned off.
[0018] After the system node confirms that the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to switch to the target touch mode.
[0019] Optionally, high-frequency touch mode and low-frequency touch mode are mutually exclusive. When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0020] When a system node detects a switching command to switch the current high-frequency touch mode or low-frequency touch mode to the corresponding mutually exclusive touch mode, it will turn off the current high-frequency touch mode or low-frequency touch mode and query the touch mode flag to determine whether the current high-frequency touch mode or low-frequency touch mode is turned off.
[0021] After the system node confirms that the current high-frequency touch mode or low-frequency touch mode is turned off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current high-frequency touch mode or low-frequency touch mode to switch to the target touch mode.
[0022] Optionally, when the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0023] When a system node detects a switching command to switch the current touch mode to wet touch mode, it disables the current touch mode and executes the switching command. The touch driver loads the touch firmware corresponding to the wet touch mode. The priority modes in wet touch mode are single finger and fixed frequency.
[0024] When the system node detects the command to exit the wet touch mode, it closes the wet touch mode and switches to the default touch mode. The touch driver loads the touch firmware corresponding to the two-finger touch and automatic frequency hopping touch modes.
[0025] The present invention also discloses a device for automatically switching between various touch modes, the device comprising:
[0026] Touch firmware pre-installation module, used to pre-install touch firmware for multiple touch modes in the POS system partition;
[0027] The touch mode switching node creation module is used to load the touch driver and create a system node for controlling the switching of multiple touch modes when the cash register is powered on, as well as to determine whether the system node has been successfully created.
[0028] The touch firmware data parsing module is used to parse the touch firmware of the system partition and determine whether the touch firmware data is normal if the system node is successfully created.
[0029] The touch mode switching interface module is used to enable the default touch mode set by the system node if the touch firmware data is normal, and provides a system switching interface for switching touch modes so that the application can switch the touch mode according to the user's needs.
[0030] The switching command execution module is used by the system node to execute the switching command when it detects a switching command to switch the current touch mode to the target touch mode. The touch driver loads the touch firmware corresponding to the target touch mode and determines whether the switching is successful.
[0031] The touch response module is used to respond normally to the user's touch operation using the target touch mode if the switch is successful.
[0032] Optionally, the touch modes include exponential touch mode, frequency touch mode, and wet touch mode; the exponential mode includes single-finger touch mode, two-finger touch mode, and multi-finger touch mode; the frequency touch mode includes high-frequency touch mode and low-frequency touch mode.
[0033] Optionally, the default touch mode is set to a two-finger touch mode with automatic frequency hopping; the switching command execution module is also used for:
[0034] When the system node detects a switching command to switch between two-finger touch mode and single-finger touch mode or multi-finger touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the single-finger touch mode or multi-finger touch mode.
[0035] When the current touch mode is automatic frequency hopping touch mode, the touch chip reads environmental interference factors according to the internal status register and jumps to the optimal operating frequency.
[0036] When a system node detects a switching command to switch between high-frequency touch mode and low-frequency touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the high-frequency touch mode or low-frequency touch mode. The operating frequency of the high-frequency touch mode and the low-frequency touch mode are customized by the user.
[0037] Optionally, single-finger touch mode, two-finger touch mode, and multi-finger touch mode are mutually exclusive, and the switching command execution module is also used for:
[0038] When a system node detects a switching command that switches the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to the corresponding mutually exclusive touch mode, it will turn off the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode and query the touch mode flag to determine whether the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is turned off.
[0039] After the system node confirms that the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to switch to the target touch mode.
[0040] Optionally, high-frequency touch mode and low-frequency touch mode are mutually exclusive, and the switching command execution module is also used for:
[0041] When a system node detects a switching command to switch the current high-frequency touch mode or low-frequency touch mode to the corresponding mutually exclusive touch mode, it will turn off the current high-frequency touch mode or low-frequency touch mode and query the touch mode flag to determine whether the current high-frequency touch mode or low-frequency touch mode is turned off.
[0042] After the system node confirms that the current high-frequency touch mode or low-frequency touch mode is turned off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current high-frequency touch mode or low-frequency touch mode to switch to the target touch mode.
[0043] Optionally, switching command execution modules is also used for:
[0044] When a system node detects a switching command to switch the current touch mode to wet touch mode, it disables the current touch mode and executes the switching command. The touch driver loads the touch firmware corresponding to the wet touch mode. The priority modes in wet touch mode are single finger and fixed frequency.
[0045] When the system node detects the command to exit the wet touch mode, it closes the wet touch mode and switches to the default touch mode. The touch driver loads the touch firmware corresponding to the two-finger touch and automatic frequency hopping touch modes.
[0046] This invention has the following advantages:
[0047] The present invention provides a method for automatically switching between multiple touch modes. First, multiple touch firmware for different touch modes are pre-installed in the POS system partition. When the POS machine powers on, the kernel loads the touch driver, creates a system node for controlling mode switching, and checks if the node creation is successful. If successful, the touch driver parses the touch firmware in the system partition, checks the data for integrity, and if the data is normal, the system node enables the default touch mode and provides a system switching interface, allowing applications to switch modes according to user needs. When the system node detects a command to switch to the target touch mode, it executes the switching command. The touch driver loads the corresponding firmware and checks if the switch is successful. If successful, it responds normally to user touch operations using the target touch mode. This method, by pre-installing multiple touch modes and providing a touch mode switching interface, allows switching to the corresponding mode according to actual usage, providing a stable touch experience and ensuring a high transaction success rate. Attached Figure Description
[0048] Figure 1 This is a flowchart of a method for automatically switching between multiple touch modes provided in an embodiment of the present invention. Detailed Implementation
[0049] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] Reference Figure 1 The flowchart illustrates a method for automatically switching between multiple touch modes provided in an embodiment of the present invention, which may specifically include the following steps:
[0051] Multiple touch modes are pre-installed in the POS system partition;
[0052] When the cash register is powered on, the kernel starts up, loads the touch driver, creates a system node to control the switching of multiple touch modes, and determines whether the system node has been successfully created.
[0053] If the system node is successfully created, the touch driver parses the touch firmware of the system partition and determines whether the touch firmware data is normal.
[0054] If the touch firmware data is normal, the system node will enable the default touch mode and provide a system switching interface to switch the touch mode so that the user can switch the touch mode according to the user's needs.
[0055] When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode and determines whether the switching is successful.
[0056] If the switch is successful, the system will respond normally to user touch operations using the target touch mode.
[0057] This embodiment first establishes the foundation by pre-installing touch firmware for various touch modes in the POS system partition. These touch modes can include single-finger touch, two-finger touch, multi-finger touch, high-frequency touch, low-frequency touch, and wet touch mode, providing the firmware foundation for subsequent mode switching. When the POS machine is powered on, the system kernel starts and loads the touch driver. During driver loading, system nodes for controlling the switching of the aforementioned touch modes are created simultaneously. The creation results of these system nodes are then evaluated to check whether the system successfully created the nodes for switching different touch modes. Successful creation means that the system can correctly create these nodes, and these nodes can work normally without encountering any errors or anomalies. If creation fails, it indicates that a problem was encountered during the creation of the touch mode switching nodes, possibly due to insufficient system resources, permission issues, or other technical malfunctions. In this case, the system will report a touch anomaly and notify relevant personnel for investigation and handling.
[0058] After the system node is successfully created, the touch driver parses the touch firmware for various preset touch modes in the system partition. It also checks the integrity of the parsed touch firmware data. This parsing and judgment process is crucial for ensuring the proper loading and operation of subsequent touch modes. If the touch firmware data is complete, undamaged, and conforms to the expected format and content, and can be correctly interpreted and used by the system, then the touch firmware data is fine, and the system can continue with subsequent operations. If the touch firmware data is corrupted, has incorrect formatting, or cannot be correctly interpreted and used by the system, then there is a problem with the touch firmware data. In this case, the system will also report a touch anomaly and notify relevant personnel for further diagnosis and repair.
[0059] Once the touch firmware data is confirmed to be normal, the system node will enable the preset default touch mode. The default touch mode can be set to a two-finger touch mode with automatic frequency hopping. At the same time, the system node provides a system switching interface for switching touch modes. This interface can be called by applications according to the user's actual needs to trigger the touch mode switching operation.
[0060] The system node continuously monitors whether it has received a switching command to change the current touch mode to the target touch mode. This switching command is generated by the application based on user actions (such as clicking a switch button). When the switching command is detected, the system node executes it. At this time, the touch driver loads the touch firmware corresponding to the target touch mode and determines whether the mode switch was successful. If the switch fails, a touch adjustment anomaly is reported. The target touch mode can be selected from single-finger touch, multi-finger touch, high-frequency touch, low-frequency touch, and wet touch modes, among others.
[0061] If the touch mode switch is successful, the cash register system can respond normally to the touch operation performed by the user using the target touch mode. That is, the touch command implemented by the user through the target touch mode can be accurately recognized and executed by the system, thereby realizing the user's flexible selection and effective application of touch mode in different usage scenarios, and ensuring the stable operation of the cash register under various touch requirements.
[0062] This embodiment enables the cash register to support free switching between various touch modes, including single-finger touch, two-finger touch, multi-finger touch, high-frequency touch, low-frequency touch, and wet touch, by pre-setting firmware for multiple touch modes in the system partition, creating a dedicated system node to achieve mode switching control, and providing a convenient system switching interface. This meets the touch needs of different users in different usage scenarios. At the same time, the default touch mode setting and the switching operation that can be achieved through the application button simplify the user operation process, improve the convenience and adaptability of the cash register, ensure accurate response to various touch operations, and thus improve the working efficiency and user experience of the cash register.
[0063] In an optional embodiment of the present invention, the default touch mode is set to a two-finger touch, automatic frequency hopping touch mode; when the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0064] When the system node detects a switching command to switch between two-finger touch mode and single-finger touch mode or multi-finger touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the single-finger touch mode or multi-finger touch mode.
[0065] When the current touch mode is automatic frequency hopping touch mode, the touch chip reads environmental interference factors according to the internal status register and jumps to the optimal operating frequency.
[0066] When a system node detects a switching command to switch between high-frequency touch mode and low-frequency touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the high-frequency touch mode or low-frequency touch mode. The operating frequency of the high-frequency touch mode and the low-frequency touch mode are customized by the user.
[0067] In this embodiment, the default touch mode is set to two-finger touch with automatic frequency hopping. Users can lock the single-finger or multi-finger touch mode via command. When a system node detects a command to switch from the current two-finger touch mode to a single-finger or multi-finger touch mode, it executes the command. At this time, the touch driver loads the corresponding touch firmware for the single-finger or multi-finger touch mode to complete the switching between two-finger, single-finger, and multi-finger touch modes.
[0068] For automatic frequency hopping touch mode, when the current touch mode is this, the touch chip reads environmental interference factors from its internal status register and switches to the optimal operating frequency based on the read environmental interference factors to adapt to environmental interference. However, chip detection will inevitably have errors, so end users can lock the preset high-frequency or low-frequency operating frequency through commands according to the actual situation.
[0069] Operating frequency refers to the scanning frequency at which the chip operates. Switching between different scanning frequencies is to avoid interference from environmental sources and ensure the touch chip operates at its optimal frequency. Commonly used touch chips operate between 80-250kHz. The high and low frequency modes used in this embodiment are user-customized frequencies.
[0070] When a system node detects a switching command to switch the current automatic frequency hopping touch mode to a high-frequency touch mode or a low-frequency touch mode, it executes the switching command. The touch driver then loads the touch firmware corresponding to the high-frequency touch mode or the low-frequency touch mode to realize the switching between automatic frequency hopping and high-frequency or low-frequency touch modes.
[0071] In an optional embodiment of the present invention, the single-finger touch mode, two-finger touch mode, and multi-finger touch mode are mutually exclusive. When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0072] When a system node detects a switching command that switches the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to the corresponding mutually exclusive touch mode, it will turn off the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode and query the touch mode flag to determine whether the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is turned off.
[0073] After the system node confirms that the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to switch to the target touch mode.
[0074] In this embodiment, the single-finger touch mode, two-finger touch mode, and multi-finger touch mode are mutually exclusive. The system supports two-finger touch mode by default, and users can lock the single-finger touch mode or multi-finger touch mode via commands. When the system node detects a switching command to switch the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to one of the corresponding mutually exclusive touch modes, it will first turn off the current touch mode and check the touch mode flag to determine whether the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is turned off. After the system node confirms that the current touch mode is turned off, it executes the switching command, and the touch driver loads the touch firmware corresponding to the mutually exclusive touch mode selected by the user to complete the switch to the target touch mode. During this process, the touch effect will only be temporarily affected, and it will not affect the normal use of the user.
[0075] In an optional embodiment of the present invention, the high-frequency touch mode and the low-frequency touch mode are mutually exclusive. When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0076] When a system node detects a switching command to switch the current high-frequency touch mode or low-frequency touch mode to the corresponding mutually exclusive touch mode, it will turn off the current high-frequency touch mode or low-frequency touch mode and query the touch mode flag to determine whether the current high-frequency touch mode or low-frequency touch mode is turned off.
[0077] After the system node confirms that the current high-frequency touch mode or low-frequency touch mode is turned off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current high-frequency touch mode or low-frequency touch mode to switch to the target touch mode.
[0078] In this embodiment, the high-frequency touch mode and the low-frequency touch mode are mutually exclusive. When the system node detects a switching command to switch the current high-frequency or low-frequency touch mode to the corresponding mutually exclusive touch mode, it first disables the current high-frequency or low-frequency touch mode and checks the touch mode flag to determine whether the current high-frequency or low-frequency touch mode is disabled. After the system node confirms that the current touch mode is disabled, it executes the switching command, and the touch driver loads the touch firmware corresponding to the mutually exclusive touch mode corresponding to the current touch mode to complete the switch to the target touch mode.
[0079] In an optional embodiment of the present invention, when the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including:
[0080] When a system node detects a switching command to switch the current touch mode to wet touch mode, it disables the current touch mode and executes the switching command. The touch driver loads the touch firmware corresponding to the wet touch mode. The priority modes in wet touch mode are single finger and fixed frequency.
[0081] When the system node detects the command to exit the wet touch mode, it closes the wet touch mode and switches to the default touch mode. The touch driver loads the touch firmware corresponding to the two-finger touch and automatic frequency hopping touch modes.
[0082] In this embodiment, when the system node detects a switching command to switch the current touch mode to wet touch mode, it first disables the current touch mode before executing the switching command. At this time, the touch driver loads the touch firmware corresponding to the wet touch mode. Wet touch mode only supports single-finger touch and fixed frequency; this is the priority mode. Once wet touch mode is selected, other modes will be disabled. This mode is provided for users with wet hands or when the screen is prone to moisture.
[0083] When a system node detects a command to exit wet touch mode, it will disable wet touch mode and automatically switch back to the default touch mode. At this time, the touch driver loads the touch firmware corresponding to the two-finger touch and automatic frequency hopping touch modes to restore the system to the default touch mode state set initially, ensuring that users can use the default touch function normally in non-wet scenarios.
[0084] The method for automatically switching between multiple touch modes in this invention has the following technical effects:
[0085] It enables multiple touch modes to be preset on the touchscreen, providing a system switching interface. Users can switch between modes according to actual usage, ensuring a stable touch experience and guaranteeing transaction success rates. It achieves seamless compatibility across different touch modes without affecting normal chip operation. It enables automated software recognition, reducing manpower and material resources while improving production efficiency and continuously optimizing the product.
[0086] ① It has strong portability and compatibility, uses standard subsystem interfaces, is applicable to different Android systems, and is compatible with different interfaces.
[0087] ②Automation: It can read the status of the touch chip in real time, determine whether the mode has been switched successfully, and can also recover itself in case of abnormality.
[0088] ③ It has high production efficiency and automatically adapts to firmware with different touch modes, reducing manual intervention.
[0089] ④ Reliability: Uses pre-built touch firmware and implements a multi-fault-tolerant approach.
[0090] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0091] The device for automatically switching between multiple touch modes provided in this embodiment of the invention may specifically include the following modules:
[0092] Touch firmware pre-installation module, used to pre-install touch firmware for multiple touch modes in the POS system partition;
[0093] The touch mode switching node creation module is used to load the touch driver and create a system node for controlling the switching of multiple touch modes when the cash register is powered on, as well as to determine whether the system node has been successfully created.
[0094] The touch firmware data parsing module is used to parse the touch firmware of the system partition and determine whether the touch firmware data is normal if the system node is successfully created.
[0095] The touch mode switching interface module is used to enable the default touch mode set by the system node if the touch firmware data is normal, and provides a system switching interface for switching touch modes so that the application can switch the touch mode according to the user's needs.
[0096] The switching command execution module is used by the system node to execute the switching command when it detects a switching command to switch the current touch mode to the target touch mode. The touch driver loads the touch firmware corresponding to the target touch mode and determines whether the switching is successful.
[0097] The touch response module is used to respond normally to the user's touch operation using the target touch mode if the switch is successful.
[0098] Optionally, the touch modes include exponential touch mode, frequency touch mode, and wet touch mode; the exponential mode includes single-finger touch mode, two-finger touch mode, and multi-finger touch mode; the frequency touch mode includes high-frequency touch mode and low-frequency touch mode.
[0099] Optionally, the default touch mode is set to a two-finger touch mode with automatic frequency hopping; the switching command execution module is also used for:
[0100] When the system node detects a switching command to switch between two-finger touch mode and single-finger touch mode or multi-finger touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the single-finger touch mode or multi-finger touch mode.
[0101] When the current touch mode is automatic frequency hopping touch mode, the touch chip reads environmental interference factors according to the internal status register and jumps to the optimal operating frequency.
[0102] When a system node detects a switching command to switch between high-frequency touch mode and low-frequency touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the high-frequency touch mode or low-frequency touch mode. The operating frequency of the high-frequency touch mode and the low-frequency touch mode are customized by the user.
[0103] Optionally, single-finger touch mode, two-finger touch mode, and multi-finger touch mode are mutually exclusive, and the switching command execution module is also used for:
[0104] When a system node detects a switching command that switches the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to the corresponding mutually exclusive touch mode, it will turn off the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode and query the touch mode flag to determine whether the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is turned off.
[0105] After the system node confirms that the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to switch to the target touch mode.
[0106] Optionally, high-frequency touch mode and low-frequency touch mode are mutually exclusive, and the switching command execution module is also used for:
[0107] When a system node detects a switching command to switch the current high-frequency touch mode or low-frequency touch mode to the corresponding mutually exclusive touch mode, it will turn off the current high-frequency touch mode or low-frequency touch mode and query the touch mode flag to determine whether the current high-frequency touch mode or low-frequency touch mode is turned off.
[0108] After the system node confirms that the current high-frequency touch mode or low-frequency touch mode is turned off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current high-frequency touch mode or low-frequency touch mode to switch to the target touch mode.
[0109] Optionally, switching command execution modules is also used for:
[0110] When a system node detects a switching command to switch the current touch mode to wet touch mode, it disables the current touch mode and executes the switching command. The touch driver loads the touch firmware corresponding to the wet touch mode. The priority modes in wet touch mode are single finger and fixed frequency.
[0111] When the system node detects the command to exit the wet touch mode, it closes the wet touch mode and switches to the default touch mode. The touch driver loads the touch firmware corresponding to the two-finger touch and automatic frequency hopping touch modes.
[0112] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0113] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0114] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0115] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A method for automatically switching between multiple touch modes, characterized in that, The method includes: Multiple touch modes are pre-installed in the POS system partition; When the cash register is powered on, the kernel starts up, loads the touch driver, creates a system node to control the switching of multiple touch modes, and determines whether the system node has been successfully created. If the system node is successfully created, the touch driver parses the touch firmware of the system partition and determines whether the touch firmware data is normal. If the touch firmware data is normal, the system node will enable the default touch mode and provide a system switching interface to switch the touch mode so that the user can switch the touch mode according to the user's needs. When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode and determines whether the switching is successful. If the switch is successful, the system will respond normally to user touch operations using the target touch mode.
2. The method according to claim 1, characterized in that, Touch modes include index touch mode, frequency touch mode, and wet touch mode; index mode includes single-finger touch mode, two-finger touch mode, and multi-finger touch mode; frequency touch mode includes high-frequency touch mode and low-frequency touch mode.
3. The method according to claim 1, characterized in that, The default touch mode is set to two-finger touch with automatic frequency hopping. When the system node detects a command to switch the current touch mode to the target touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the target touch mode, including: When the system node detects a switching command to switch between two-finger touch mode and single-finger touch mode or multi-finger touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the single-finger touch mode or multi-finger touch mode. When the current touch mode is automatic frequency hopping touch mode, the touch chip reads environmental interference factors according to the internal status register and jumps to the optimal operating frequency. When a system node detects a switching command to switch between high-frequency touch mode and low-frequency touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the high-frequency touch mode or low-frequency touch mode. The operating frequency of the high-frequency touch mode and the low-frequency touch mode are customized by the user.
4. The method according to claim 2, characterized in that, Single-finger touch mode, two-finger touch mode, and multi-finger touch mode are mutually exclusive. When the system node detects a switching command to change the current touch mode to the target touch mode, it executes the switching command. The touch driver loads the touch firmware corresponding to the target touch mode, including: When a system node detects a switching command that switches the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to the corresponding mutually exclusive touch mode, it will turn off the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode and query the touch mode flag to determine whether the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is turned off. After the system node confirms that the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to switch to the target touch mode.
5. The method according to claim 2, characterized in that, High-frequency touch mode and low-frequency touch mode are mutually exclusive. When the system node detects a switching command to switch the current touch mode to the target touch mode, it executes the switching command. The touch driver loads the touch firmware corresponding to the target touch mode, including: When a system node detects a switching command to switch the current high-frequency touch mode or low-frequency touch mode to the corresponding mutually exclusive touch mode, it will turn off the current high-frequency touch mode or low-frequency touch mode and query the touch mode flag to determine whether the current high-frequency touch mode or low-frequency touch mode is turned off. After the system node confirms that the current high-frequency touch mode or low-frequency touch mode is turned off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current high-frequency touch mode or low-frequency touch mode to switch to the target touch mode.
6. The method according to claim 2, characterized in that, When a system node detects a command to switch from the current touch mode to the target touch mode, it executes the switching command. The touch driver loads the touch firmware corresponding to the target touch mode, including: When a system node detects a switching command to switch the current touch mode to wet touch mode, it disables the current touch mode and executes the switching command. The touch driver loads the touch firmware corresponding to the wet touch mode. The priority modes in wet touch mode are single finger and fixed frequency. When the system node detects the command to exit the wet touch mode, it closes the wet touch mode and switches to the default touch mode. The touch driver loads the touch firmware corresponding to the two-finger touch and automatic frequency hopping touch modes.
7. A device for automatically switching between multiple touch modes, characterized in that, The device includes: Touch firmware pre-installation module, used to pre-install touch firmware for multiple touch modes in the POS system partition; The touch mode switching node creation module is used to load the touch driver and create a system node for controlling the switching of multiple touch modes when the cash register is powered on, as well as to determine whether the system node has been successfully created. The touch firmware data parsing module is used to parse the touch firmware of the system partition and determine whether the touch firmware data is normal if the system node is successfully created. The touch mode switching interface module is used to enable the default touch mode set by the system node if the touch firmware data is normal, and provides a system switching interface for switching touch modes so that the application can switch the touch mode according to the user's needs. The switching command execution module is used by the system node to execute the switching command when it detects a switching command to switch the current touch mode to the target touch mode. The touch driver loads the touch firmware corresponding to the target touch mode and determines whether the switching is successful. The touch response module is used to respond normally to the user's touch operation using the target touch mode if the switch is successful.
8. The apparatus according to claim 7, characterized in that, Touch modes include index touch mode, frequency touch mode, and wet touch mode; index mode includes single-finger touch mode, two-finger touch mode, and multi-finger touch mode; frequency touch mode includes high-frequency touch mode and low-frequency touch mode.
9. The apparatus according to claim 7, characterized in that, The default touch mode is set to two-finger touch with automatic frequency hopping; the command execution module is also used for: When the system node detects a switching command to switch between two-finger touch mode and single-finger touch mode or multi-finger touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the single-finger touch mode or multi-finger touch mode. When the current touch mode is automatic frequency hopping touch mode, the touch chip reads environmental interference factors according to the internal status register and jumps to the optimal operating frequency. When the system node detects a switching command to switch the automatic frequency hopping touch mode to high frequency touch mode or low frequency touch mode, it executes the switching command, and the touch driver loads the touch firmware corresponding to the high frequency touch mode or low frequency touch mode. The operating frequencies for high-frequency touch mode and low-frequency touch mode are customized by the user.
10. The apparatus according to claim 8, characterized in that, Single-finger touch mode, two-finger touch mode, and multi-finger touch mode are mutually exclusive. The switching command execution module is also used for: When a system node detects a switching command that switches the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to the corresponding mutually exclusive touch mode, it will turn off the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode and query the touch mode flag to determine whether the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is turned off. After the system node confirms that the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode is off, it executes a switching command. The touch driver loads the touch firmware corresponding to the mutually exclusive touch mode of the current single-finger touch mode, two-finger touch mode, or multi-finger touch mode to switch to the target touch mode.