Touch sensitivity adaptive adjustment method and system based on visual feedback
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUZHOU CHANGFENG AVIATION ELECTRONICS
- Filing Date
- 2026-03-26
- Publication Date
- 2026-08-04
AI Technical Summary
[0006]本发明的目的在于提供一种适用于轨道交通的基于视觉反馈的触摸灵敏度自适应调节方法及系统,解决现有轨道车辆触摸设备在不同覆盖介质厚度下灵敏度不可调、调试依赖专用设备、过程无反馈以及抗干扰能力不足的问题
[0019]本发明过将基于物理模型的非线性灵敏度补偿机制与以配置生效为前提的状态确认型视觉反馈相结合,有效解决了现有电容式触摸系统在面对不同厚度覆盖介质(如玻璃、亚克力板)时,因手指与感应电极间距离增大导致耦合电容非线性衰减(满足 C∝1/d关系)而引发的灵敏度失配、响应失效或误触发等问题。
Smart Images

Figure CN122512912A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of human-machine interface (HMI) and embedded control technology for rail transit vehicles. Specifically, it relates to a method and system for adaptive adjustment of touch sensitivity based on visual feedback, which is applicable to driver's console, passenger information terminal and carriage control panel of high-speed rail, subway and light rail vehicles. Background Technology
[0002] Touch buttons have been widely used in home appliances, industrial control, and rail transportation due to their significant advantages such as simple and beautiful appearance, no mechanical wear, good sealing, and ease of cleaning and disinfection. Especially in modern rail transportation systems, capacitive touch technology is widely used in driver's consoles, passenger information displays (PIDS), in-car control panels, and automatic ticket vending machines to enhance the modernization of the driver's cab and meet the interactive needs of passenger information systems.
[0003] In practical engineering applications, to meet the stringent environmental protection requirements of rail transit, the surface of touch buttons is typically covered with an insulating medium (such as high-strength tempered glass or acrylic sheet). However, even slight differences in the thickness and material of the covering medium can significantly alter the coupling capacitance signal between the finger and the sensing electrode, thus changing the touch sensitivity. For touch ICs with a fixed sensitivity threshold, variations in the covering layer thickness due to different vehicle models, batches, or installation locations can easily lead to two types of problems: first, excessive signal attenuation can cause touch malfunction or delayed response, affecting the driver's operation in emergency situations or the passenger's user experience; second, excessive sensitivity can lead to false triggering, generating incorrect commands under train vibration or electromagnetic interference, posing safety hazards.
[0004] In existing technologies, adjusting touch sensitivity typically requires either using specialized debugging tools (such as J-Link or ST-LINK) to connect to computer software for parameter programming, or adjusting a limited number of levels via hardware DIP switches. Both methods are complex for ordinary users or on-site maintenance personnel, rely on specialized equipment, and cannot be quickly completed at the train operation site or maintenance depot. Furthermore, existing technologies lack intuitive status feedback during the adjustment process; debugging personnel cannot directly determine whether the current sensitivity setting is successfully adapted, often requiring repeated trial and error, resulting in low efficiency and difficulty in ensuring the high reliability requirements of rail transit equipment.
[0005] Therefore, there is an urgent need for a solution that can easily perform adaptive sensitivity adjustment on-site without special tools and can provide intuitive status feedback to adapt to the complex and ever-changing application environment of rail transit. Summary of the Invention
[0006] The purpose of this invention is to provide a visual feedback-based adaptive adjustment method and system for touch sensitivity in rail transit, which solves the problems of existing rail vehicle touch devices having unadjustable sensitivity under different covering medium thicknesses, dependence on special equipment for debugging, lack of process feedback, and insufficient anti-interference capability.
[0007] To achieve the above objectives, the present invention proposes the following technical solution:
[0008] In a first aspect, the present invention discloses a method for adaptive adjustment of touch sensitivity based on visual feedback, the method comprising the following steps: S1. Detect the user's touch operation in a designated area on the rail transit control panel and generate the corresponding capacitance change signal; S2. The capacitance change signal is transmitted to the control terminal, which analyzes the capacitance change signal to determine whether the current touch operation meets the preset adjustment trigger condition. S3. When it is determined that the adjustment trigger condition is met, enter the sensitivity adjustment mode and respond to the user's subsequent operation to determine the target sensitivity level to be set. S4. Based on the target sensitivity level, call the pre-stored nonlinear compensation model that is adapted to different thicknesses of the covering medium, calculate the corresponding sensitivity threshold parameter, and write the sensitivity threshold parameter into the touch detection circuit to complete the configuration. S5. After the sensitivity threshold parameter is successfully written and takes effect, the target sensitivity level is confirmed as the current effective sensitivity level, and according to the preset level-color mapping relationship, the corresponding multi-channel PWM signal is output to drive the RGB indicator to display the color and / or brightness that strictly corresponds to the target sensitivity level.
[0009] Further, in step S2, determining whether the current touch operation meets the preset adjustment trigger conditions includes: S21. Obtain the duration of the capacitance change signal; S22. When the duration exceeds a preset time threshold, it is determined that a long press trigger event has occurred, and it is confirmed that the adjustment trigger condition is met. S23. When the duration does not exceed the time threshold, determine that a normal touch event has occurred, confirm that the adjustment trigger condition is not met, and execute the normal function logic.
[0010] Further, in step S3, in response to subsequent user actions, the target sensitivity level to be set is determined, including: S31. After entering the sensitivity adjustment mode, start the adjustment mode timer and perform timing detection; S32. If the user's subsequent operation is to increase the capacitance in the sensitivity area, if a short press is performed, the target sensitivity level is increased one level towards higher sensitivity in the preset level sequence; if a continuous long press is performed, the target sensitivity level is continuously increased towards higher sensitivity in the preset level sequence within the sensitivity threshold range. S33. If the user's subsequent operation is to reduce the capacitance in the sensitivity reduction area, if a short press is performed, the target sensitivity level is decreased by one level in the preset level sequence towards lower sensitivity; if a continuous long press is performed, the target sensitivity level is continuously decreased in the preset level sequence towards lower sensitivity within the sensitivity threshold range.
[0011] Further, in step S5, the preset level-color mapping relationship is as follows: The sensitivity level is divided into at least 3 discrete levels. Each discrete level corresponds to the coverage medium thickness requirements of different rail transit models or different installation locations. Each discrete level maps to a unique RGB color combination or brightness state.
[0012] Furthermore, the discrete sensitivity levels include low sensitivity, medium sensitivity, and high sensitivity, with the sensitivity levels mapped sequentially from low to high as a gradient color scheme of red → orange → yellow → green → blue.
[0013] Furthermore, in step S5, the multi-channel PWM signal includes three independent PWM signals and one power enable control signal; The three independent PWM signals control the brightness of the red, green, and blue LEDs in the RGB indicator light, respectively, and the power enable control signal is used to control the overall on / off state of the drive circuit.
[0014] Furthermore, in step S4, the nonlinear compensation model is an exponential gain function pre-calibrated according to the physical relationship, used to convert the target sensitivity level into a sensitivity threshold parameter that can effectively penetrate the corresponding thickness of the covering medium.
[0015] Secondly, the present invention provides a touch sensitivity adaptive adjustment system based on visual feedback, including a touch detection module, a signal processing module, a control module and a visual feedback module.
[0016] Specifically, the touch detection module is located inside the control panel and is used to detect the user's touch operation in a designated area on the rail transit control panel and generate corresponding capacitance change signals. The signal processing module is connected to the touch detection module and is used to collect the capacitance change signal and transmit it to the control module. The control module, acting as the control terminal, is used to analyze the capacitance change signal to determine whether the current touch operation meets the preset adjustment trigger conditions; when the adjustment trigger conditions are met, it enters the sensitivity adjustment mode and responds to subsequent user operations to determine the target sensitivity level to be set; based on the target sensitivity level, it calls a pre-stored nonlinear compensation model adapted to different thicknesses of the covering medium to calculate the corresponding sensitivity threshold parameter, and writes the sensitivity threshold parameter into the touch detection circuit to complete the configuration; after the sensitivity threshold parameter is successfully written and takes effect, it confirms the target sensitivity level as the currently effective sensitivity level and outputs the corresponding multi-channel PWM signal according to the preset level-color mapping relationship. The visual feedback module consists of red, green, and blue LEDs, controlled by a multi-channel PWM signal output by the control module. It displays the corresponding color and / or brightness according to the current target sensitivity level and a preset level-color mapping relationship.
[0017] Furthermore, the PCB wiring structure of the touch detection module includes a main capacitor plate, a shielding ring, and a ground plane trace. The main capacitor plate is a circular sensing electrode located at the center of the PCB board, including a sensitivity-increasing region capacitor and a sensitivity-decreasing region capacitor; the shielding ring is a concentric annular driving shielding ring surrounding the circular sensing electrode, connected to the ground plane or active driving signal, used to suppress edge electric field leakage and external electromagnetic interference; the ground plane trace surrounds the main capacitor plate and the shielding ring, forming a closed shielding structure.
[0018] Furthermore, the above system also includes a power isolation control circuit, which includes a MOSFET switch and a transistor driver stage; the control module controls the switching on and off of the MOSFET switch by controlling the switching on and off of the transistor driver stage, so as to supply power to the signal processing module and the touch detection module only in the adjustment mode or during the touch detection period.
[0019] This invention combines a nonlinear sensitivity compensation mechanism based on a physical model with a state confirmation visual feedback based on configuration effectiveness. This effectively solves the problems of sensitivity mismatch, response failure, or false triggering caused by the nonlinear decay of coupling capacitance (satisfying the C∝1 / d relationship) caused by the increased distance between the finger and the sensing electrode when facing media with different thicknesses (such as glass and acrylic sheets) in existing capacitive touch systems.
[0020] Compared with the prior art, the beneficial effects that at least one technical solution adopted in the embodiments of this specification can achieve include at least: 1. By using a pre-calibrated nonlinear compensation model, discrete user selection levels are accurately mapped to analog domain sensitivity thresholds that are adapted to specific medium thicknesses. This overcomes the shortcomings of traditional linear adjustment in compensating for insufficient thickness in thick media and significantly expands the effective working thickness range (e.g., 0.5mm to 8mm glass). 2. The color and brightness of the RGB indicator light are only driven to be displayed after the sensitivity threshold parameter is successfully written into the touch detection circuit and confirmed to be effective. This realizes the closed-loop logic of "configuration success → status confirmation → visual feedback", avoiding the problem of inconsistency between the display and the actual working status caused by only responding to the user's operation intention, and improving the credibility of human-computer interaction. 3. Users do not need special tools or host computer software. They can complete sensitivity matching simply by performing a short press (increase the gear) or a long press (decrease the gear) on the designated area on the panel, which greatly reduces the engineering costs of installation, after-sales service and cross-vehicle adaptation. 4. The method of the present invention does not depend on a specific hardware platform and can be deployed on general-purpose microcontrollers (such as the STM32 series) with basic PWM output and communication capabilities. It is easy to embed into the existing product architectures in fields such as rail transit, industrial control, and automotive electronics, so as to achieve low-cost and high-efficiency functional upgrades. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of the touch sensitivity adaptive adjustment method based on visual feedback disclosed in this invention; Figure 2 This is a circuit diagram showing how three PWM signals output from the CPU STM32 series are used to control the switching of RGB lights via transistor switches. Figure 3 This is an architecture diagram of the touch sensitivity adaptive adjustment system based on visual feedback disclosed in this invention; Among them, 301 is the touch detection module; 302 is the signal processing module; 303 is the control module; 304 is the visual feedback module; and 305 is the power isolation control circuit. Detailed Implementation
[0023] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0024] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. This application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, in the absence of conflict, the following embodiments and features of the embodiments can be combined with each other. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] This invention discloses a method for adaptive adjustment of touch sensitivity based on visual feedback. (See also...) Figure 1 As shown, the method includes the following steps: S1. Detect the user's touch operation in a designated area on the rail transit control panel and generate the corresponding capacitance change signal; S2. The capacitance change signal is transmitted to the control terminal, which analyzes the capacitance change signal to determine whether the current touch operation meets the preset adjustment trigger condition. S3. When it is determined that the adjustment trigger condition is met, enter the sensitivity adjustment mode and respond to the user's subsequent operation to determine the target sensitivity level to be set. S4. Based on the target sensitivity level, call the pre-stored nonlinear compensation model that is adapted to different thicknesses of the covering medium, calculate the corresponding sensitivity threshold parameter, and write the sensitivity threshold parameter into the touch detection circuit to complete the configuration. S5. After the sensitivity threshold parameter is successfully written and takes effect, the target sensitivity level is confirmed as the current effective sensitivity level, and according to the preset level-color mapping relationship, the corresponding multi-channel PWM signal is output to drive the RGB indicator to display the color and / or brightness that strictly corresponds to the target sensitivity level, providing intuitive visual confirmation of the adjustment result.
[0026] In some embodiments of step S2 above, the capacitance change signal can be transmitted via I... 2 The C-bus transmits the signal to the control terminal, which analyzes the capacitance change signal to determine whether the current touch operation meets the preset adjustment trigger conditions, including: S21. Obtain the duration of the capacitance change signal; S22. When the duration exceeds a preset time threshold, it is determined that a long press trigger event has occurred, and it is confirmed that the adjustment trigger condition is met. S23. When the duration does not exceed the time threshold, determine that a normal touch event has occurred, confirm that the adjustment trigger condition is not met, and execute the normal function logic.
[0027] In some embodiments of step S3 above, determining the target sensitivity level to be set in response to subsequent user actions includes: S31. After entering the sensitivity adjustment mode, start the adjustment mode timer and perform timing detection; S32. If the user's subsequent operation is to increase the capacitance in the sensitivity area, if a short press is performed, the target sensitivity level is increased one level towards higher sensitivity in the preset level sequence; if a continuous long press is performed, the target sensitivity level is continuously increased towards higher sensitivity in the preset level sequence within the sensitivity threshold range. S33. If the user's subsequent operation is to reduce the capacitance in the sensitivity reduction area, if a short press is performed, the target sensitivity level is decreased by one level in the preset level sequence towards lower sensitivity; if a continuous long press is performed, the target sensitivity level is continuously decreased in the preset level sequence towards lower sensitivity within the sensitivity threshold range.
[0028] Once in sensitivity adjustment mode, you can tap or long-press the corresponding area to decrease or increase sensitivity when you need to reduce it. At the same time, the RGB indicator lights will change (reducing brightness, color, and number of lights), and the changes in the RGB indicator lights will achieve the desired sensitivity adjustment.
[0029] In some embodiments of step S4 above, the nonlinear compensation model is an exponential gain function pre-calibrated according to the physical relationship, used to convert the target sensitivity level into a sensitivity threshold parameter that can effectively penetrate the corresponding thickness of the covering medium.
[0030] Specifically, the covering medium is glass or acrylic sheet. Changes in the thickness of the covering medium increase the distance *d* between the finger and the sensing electrode, causing a nonlinear decay in the coupling capacitance *C*. More specifically, for different touch devices, a relationship curve between click or long-press operations and sensitivity adjustment is established to construct a nonlinear compensation model. The touch IC operates by measuring this change in coupling capacitance. The thicker the glass, the greater the distance *d* between the finger and the sensor. According to the parallel plate capacitance formula C=εA / d (where ε is the dielectric constant and A is the area), the capacitance *C* is inversely proportional to the distance *d*. This means that when the glass thickness increases from 1mm to 2mm, the capacitance decay does not simply double, but follows an inverse proportional curve. Therefore, theoretically, for every 1mm increase in thickness, the required increase in sensitivity is exponential.
[0031] In some embodiments of step S5 above, the preset level-color mapping relationship is as follows: The sensitivity level is divided into at least 3 discrete levels. Each discrete level corresponds to the coverage medium thickness requirements of different rail transit models or different installation locations. Each discrete level maps to a unique RGB color combination or brightness state.
[0032] Preferably, the discrete sensitivity levels include a low sensitivity level, a medium sensitivity level, and a high sensitivity level, with the sensitivity levels mapped sequentially from low to high as a gradient color scheme of red → orange → yellow → green → blue. More preferably, the low sensitivity level is adapted to thick glass or high-interference environments and is mapped as red or warm colors; the medium sensitivity level is adapted to standard environments and is mapped as green or yellow; and the high sensitivity level is adapted to thin glass or low-interference environments and is mapped as blue or cool colors.
[0033] In practice, the discrete levels can be divided into 5, with sensitivity ranging from low to high. This corresponds to the RGB indicator light gradually changing from red (low) to green (medium) and then to blue (high). The effect of a "volume bar" can also be simulated by controlling the sequential lighting of multiple LEDs. The more lights that are lit, the higher the sensitivity.
[0034] In some embodiments of step S5 above, the multi-channel PWM signal includes three independent PWM signals and one power enable control signal. The three independent PWM signals control the brightness of the red LED, green LED, and blue LED in the RGB indicator light, respectively, and the power enable control signal is used to control the overall on / off state of the drive circuit to achieve low power management.
[0035] In practical implementation, taking the STM32 CPU series as an example, Figure 2 This is a circuit diagram showing how three PWM signals output control the on / off state of RGB LEDs via transistor switches. The PWM frequency can output 256 levels of grayscale adjustment, supporting 16.77 million color mixing, achieving a smooth and delicate color transition effect. The CPU output ground LED is off, and the output high-frequency LED is on, with color controlled by the ratio of red, blue, and green.
[0036] Based on the same inventive concept, this invention also provides a touch sensitivity adaptive adjustment system based on visual feedback, as described in the following embodiments. Since the principle of the touch sensitivity adaptive adjustment system based on visual feedback is similar to that of the touch sensitivity adaptive adjustment method based on visual feedback, the implementation of the touch sensitivity adaptive adjustment system based on visual feedback can refer to the implementation of the touch sensitivity adaptive adjustment method based on visual feedback disclosed in the above embodiments, and will not be repeated. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0037] Figure 3 This is a structural block diagram of a touch sensitivity adaptive adjustment system based on visual feedback disclosed in an embodiment of the present invention, such as... Figure 3 As shown, the system includes a touch detection module 301, a signal processing module 302, a control module 303, and a visual feedback module 304. The structure is described below.
[0038] Specifically, the touch detection module 301 is installed inside the control panel and is used to detect the user's touch operation in a designated area on the rail transit control panel and generate a corresponding capacitance change signal. The signal processing module 302 is connected to the touch detection module and is used to collect the capacitance change signal and transmit it to the control module; The control module 303 serves as the control terminal, used to analyze the capacitance change signal and determine whether the current touch operation meets the preset adjustment trigger conditions; when the adjustment trigger conditions are met, it enters the sensitivity adjustment mode and responds to the user's subsequent operations to determine the target sensitivity level to be set; based on the target sensitivity level, it calls a pre-stored nonlinear compensation model adapted to different thicknesses of the covering medium to calculate the corresponding sensitivity threshold parameter, and writes the sensitivity threshold parameter into the touch detection circuit to complete the configuration; after the sensitivity threshold parameter is successfully written and takes effect, it confirms the target sensitivity level as the currently effective sensitivity level and outputs the corresponding multi-channel PWM signal according to the preset level-color mapping relationship. The visual feedback module 304 consists of red, green and blue light-emitting diodes, and is controlled by the multi-channel PWM signal output by the control module. It displays the corresponding color and / or brightness according to the current target sensitivity level and the preset level-color mapping relationship.
[0039] In an embodiment where no accompanying drawings are shown, the PCB wiring structure of the touch detection module 201 includes a main capacitor plate, a shielding ring, and a ground plane trace. The main capacitor plate is a circular sensing electrode located at the center of the PCB board, including a sensitivity-increasing region capacitor and a sensitivity-decreasing region capacitor; the shielding ring is a concentric annular driving shielding ring surrounding the circular sensing electrode, connected to the ground plane or active driving signal, used to suppress edge electric field leakage and external electromagnetic interference; the ground plane trace surrounds the main capacitor plate and the shielding ring, forming a closed shielding structure to reduce crosstalk.
[0040] Further, see Figure 3 As shown, the above system also includes a power isolation control circuit 305, which includes a MOSFET switch and a transistor driver stage. The control module controls the switching on and off of the MOSFET switch by controlling the switching on and off of the transistor driver stage, so as to provide power to the signal processing module and the touch detection module only in the adjustment mode or during the touch detection period.
[0041] In practical implementation, the 3V3 power supply required by each module can be provided by the LDO power step-down chip LM1117IMPX-3.3.
[0042] This invention combines a nonlinear sensitivity compensation mechanism based on a physical model with a state confirmation visual feedback based on configuration effectiveness. This effectively solves the problems of sensitivity mismatch, response failure, or false triggering caused by the nonlinear decay of coupling capacitance (satisfying the C∝1 / d relationship) caused by the increased distance between the finger and the sensing electrode when facing media with different thicknesses (such as glass and acrylic sheets) in existing capacitive touch systems.
[0043] Compared with the prior art, the beneficial effects that at least one technical solution adopted in the embodiments of this specification can achieve include at least: 1. By using a pre-calibrated nonlinear compensation model, discrete user selection levels are accurately mapped to analog domain sensitivity thresholds that are adapted to specific medium thicknesses. This overcomes the shortcomings of traditional linear adjustment in compensating for insufficient thickness in thick media and significantly expands the effective working thickness range (e.g., 0.5mm to 8mm glass). 2. The color and brightness of the RGB indicator light are only driven to be displayed after the sensitivity threshold parameter is successfully written into the touch detection circuit and confirmed to be effective. This realizes the closed-loop logic of "configuration success → status confirmation → visual feedback", avoiding the problem of inconsistency between the display and the actual working status caused by only responding to the user's operation intention, and improving the credibility of human-computer interaction. 3. Users do not need special tools or host computer software. They can complete sensitivity matching simply by performing a short press (increase the gear) or a long press (decrease the gear) on the designated area on the panel, which greatly reduces the engineering costs of installation, after-sales service and cross-vehicle adaptation. 4. The method of the present invention does not depend on a specific hardware platform and can be deployed on general-purpose microcontrollers (such as the STM32 series) with basic PWM output and communication capabilities. It is easy to embed into the existing product architectures in fields such as rail transit, industrial control, and automotive electronics, so as to achieve low-cost and high-efficiency functional upgrades.
[0044] In this embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-described visual feedback-based adaptive touch sensitivity adjustment methods.
[0045] Specifically, the computer device can be a computer terminal, a server, or a similar computing device.
[0046] In this embodiment, a computer-readable storage medium is provided, which stores a computer program that performs any of the above-described visual feedback-based adaptive touch sensitivity adjustment methods.
[0047] Specifically, computer-readable storage media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer-readable storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media does not include transient media, such as modulated data signals and carrier waves.
[0048] Obviously, those skilled in the art should understand that the modules or steps of the above-described embodiments of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.
[0049] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and variations can be made to the embodiments of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for adaptive adjustment of touch sensitivity based on visual feedback, characterized in that, include: Detect user touch operations in a designated area on the rail transit control panel and generate corresponding capacitance change signals; The capacitance change signal is transmitted to the control terminal, which analyzes the capacitance change signal to determine whether the current touch operation meets the preset adjustment trigger conditions. When the adjustment trigger condition is met, the system enters the sensitivity adjustment mode and responds to the user's subsequent operations to determine the target sensitivity level to be set. Based on the target sensitivity level, a pre-stored nonlinear compensation model adapted to different thicknesses of covering media is invoked to calculate the corresponding sensitivity threshold parameter, and the sensitivity threshold parameter is written into the touch detection circuit to complete the configuration. After the sensitivity threshold parameter is successfully written and takes effect, the target sensitivity level is confirmed as the currently effective sensitivity level, and according to the preset level-color mapping relationship, the corresponding multi-channel PWM signal is output to drive the RGB indicator to display the color and / or brightness that strictly corresponds to the target sensitivity level.
2. The touch sensitivity adaptive adjustment method based on visual feedback according to claim 1, characterized in that, Determine whether the current touch operation meets the preset adjustment trigger conditions, including: Obtain the duration of the capacitance change signal; When the duration exceeds a preset time threshold, it is determined that a long press trigger event has occurred, and the adjustment trigger condition is confirmed to be met. When the duration does not exceed the time threshold, a normal touch event is determined to have occurred, the adjustment trigger condition is confirmed not to be met, and the normal function logic is executed.
3. The touch sensitivity adaptive adjustment method based on visual feedback according to claim 1, characterized in that, The system responds to subsequent user actions to determine the target sensitivity level to be set, including: After entering the sensitivity adjustment mode, start the adjustment mode timer and perform timing detection; If the user's subsequent operation is to increase the capacitance in the sensitivity area, if a short press is performed, the target sensitivity level will be increased one level towards higher sensitivity in the preset level sequence; if a continuous long press is performed, the target sensitivity level will be continuously increased towards higher sensitivity in the preset level sequence within the sensitivity threshold range. If the user's subsequent operation is to reduce the capacitance in the sensitivity reduction area, if a short press is performed, the target sensitivity level will be decreased by one level in the preset sensitivity sequence; if a continuous long press is performed, the target sensitivity level will be continuously decreased in the preset sensitivity sequence within the sensitivity threshold range.
4. The touch sensitivity adaptive adjustment method based on visual feedback according to claim 1, characterized in that, The preset level-color mapping relationship is as follows: The sensitivity level is divided into at least 3 discrete levels. Each discrete level corresponds to the coverage medium thickness requirements of different rail transit models or different installation locations. Each discrete level maps to a unique RGB color combination or brightness state.
5. The touch sensitivity adaptive adjustment method based on visual feedback according to claim 4, characterized in that, The discrete sensitivity levels include low sensitivity, medium sensitivity, and high sensitivity, with the sensitivity levels mapped sequentially from low to high as a gradient color scheme of red → orange → yellow → green → blue.
6. The touch sensitivity adaptive adjustment method based on visual feedback according to claim 1, characterized in that, The multi-channel PWM signal includes three independent PWM signals and one power enable control signal; The three independent PWM signals control the brightness of the red, green, and blue LEDs in the RGB indicator light, respectively, and the power enable control signal is used to control the overall on / off state of the drive circuit.
7. The touch sensitivity adaptive adjustment method based on visual feedback according to claim 1, characterized in that, The nonlinear compensation model is an exponential gain function pre-calibrated based on this physical relationship, used to convert the target sensitivity level into a sensitivity threshold parameter that can effectively penetrate the corresponding thickness of the covering medium.
8. A touch sensitivity adaptive adjustment system based on visual feedback, characterized in that, include: The touch detection module, located inside the control panel, is used to detect the user's touch operation in a designated area on the rail transit control panel and generate corresponding capacitance change signals. The signal processing module, connected to the touch detection module, is used to collect the capacitance change signal and transmit it to the control module; The control module, as the control terminal, is used to analyze the capacitance change signal and determine whether the current touch operation meets the preset adjustment trigger conditions. When the adjustment trigger condition is met, the system enters the sensitivity adjustment mode and responds to subsequent user operations to determine the target sensitivity level to be set. Based on the target sensitivity level, the system calls a pre-stored nonlinear compensation model adapted to different thicknesses of the covering medium to calculate the corresponding sensitivity threshold parameter, and writes the sensitivity threshold parameter into the touch detection circuit to complete the configuration. After the sensitivity threshold parameter is successfully written and takes effect, the target sensitivity level is confirmed as the currently effective sensitivity level, and the corresponding multi-channel PWM signal is output according to the preset level-color mapping relationship. The visual feedback module consists of red, green, and blue LEDs, and is controlled by a multi-channel PWM signal output by the control module. It displays the corresponding color and / or brightness according to the current target sensitivity level and a preset level-color mapping relationship.
9. The touch sensitivity adaptive adjustment system based on visual feedback according to claim 8, characterized in that, The PCB wiring structure of the touch detection module includes: The main capacitor plate is a circular sensing electrode located at the center of the PCB board, including the capacitance of the sensitivity-increasing region and the capacitance of the sensitivity-decreasing region. The shielding ring is a concentric circular driving shielding ring surrounding the circular sensing electrode. It is connected to the ground layer or the active driving signal to suppress edge electric field leakage and external electromagnetic interference. The grounding wires are routed around the main capacitor plate and the shielding ring to form a closed shielding structure.
10. The touch sensitivity adaptive adjustment system based on visual feedback according to claim 8, characterized in that, It also includes a power isolation control circuit, which includes a MOSFET switch and a transistor driver stage; the control module controls the switching on and off of the MOSFET switch by controlling the switching on and off of the transistor driver stage, so as to supply power to the signal processing module and the touch detection module only in the adjustment mode or during the touch detection period.