A method and system for realizing software and hardware decoupling of a touch display module

By implementing a layered architecture to decouple the hardware and software of the touch display module, the problems of strong coupling and multi-vendor compatibility of the touch display module in financial self-service equipment are solved, the system's flexibility and maintainability are improved, the technical threshold for vendor introduction is reduced, and the standardized processing of touch data is ensured.

CN120803413BActive Publication Date: 2025-12-05HUNAN GREATWALL INFORMATION FINANCIAL EQUIP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511282764.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-09
Publication Date
2025-12-05
Estimated Expiration
2045-09-09

AI Technical Summary

Technical Problem

Touch display modules in financial self-service equipment suffer from a tightly coupled architecture that leads to long customization cycles, poor compatibility with multiple vendors, difficult maintenance, and high technical barriers. In particular, when changing vendors, the device service layer code needs to be reconstructed, resulting in high maintenance costs and inconsistent touch data.

Method used

It adopts a layered architecture, including a drawing layer, a return data processing layer, and an HID communication layer, to achieve hardware and software decoupling of the touch display module. It processes touch data in a standardized manner and provides a unified interface drawing interface, supporting multi-vendor compatibility.

Benefits of technology

This achieves hardware and software decoupling of the touch display module, shortens the customization cycle, reduces software adaptation and maintenance costs, improves system flexibility and maintainability, lowers the technical threshold for suppliers, and ensures standardized processing of touch data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803413B_ABST
    Figure CN120803413B_ABST
Patent Text Reader

Abstract

The application discloses a method and system for realizing software and hardware decoupling of a touch display module, and relates to the technical field of touch display. The method realizes software and hardware decoupling through a layered architecture of a drawing layer, a return point data processing layer and an HID communication layer. The drawing layer provides a standard interface library for interface drawing. The return point data processing layer processes return point data of different suppliers in a standardized manner and outputs unified screen coordinate point data. The HID communication layer obtains the return point data based on HID communication and delivers the return point data to the return point data processing layer. The scheme realizes software and hardware decoupling of the touch display module and improves the compatibility of multi-supplier devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of touch display technology, specifically to a method and system for achieving hardware and software decoupling of a touch display module. Background Technology

[0002] With the development of touch display technology, touch display modules are widely used in various applications. However, in practical applications of financial self-service equipment with signature functionality, the device service software of the touch display module is adapted based on the WOSA / PISA protocol. Due to the different suppliers of the touch display module, there is a strong coupling relationship between the module and the device service software version, leading to problems such as the more suppliers involved, the less compatible the software versions become, and the higher the software adaptation and maintenance costs. Specifically, the current touch display modules of financial self-service equipment have the following shortcomings:

[0003] (1) The tightly coupled architecture leads to a long customization cycle;

[0004] like Figure 1 As shown, under the traditional calling method, the touch display modules provided by suppliers A / B / C all require customized development of host computer libraries (including drawing and protocol drivers). This results in the device service layer code directly relying on the hardware implementation of different suppliers. Different customers have many customized requirements for the signature interface, which need to be implemented one by one by the host computer software of each supplier before they can be integrated into the device service, resulting in a long cycle and low efficiency.

[0005] (2) Poor compatibility with multiple vendors leads to maintenance difficulties;

[0006] Replacing equipment requires refactoring the equipment service layer code, which is costly to maintain (example: a bank switched suppliers, resulting in 30% of the module code being rewritten).

[0007] (3) Inconsistent touch data leads to complex differential processing;

[0008] The touch coordinate data formats and standards of different manufacturers are not uniform, and there is a lack of a standardized data processing layer.

[0009] High technical barriers make it difficult to attract touch display module suppliers;

[0010] Suppliers must possess the capability to develop host computer software; hardware introduction is restricted. Even if a supplier meets the hardware specifications, it is difficult to introduce the software if they lack the technical capability to implement it. Summary of the Invention

[0011] The purpose of this invention is to provide a method and system for decoupling the hardware and software of a touch display module, which can achieve hardware and software decoupling of the touch display module and achieve multi-vendor compatibility.

[0012] In a first aspect, the application provides a method for realizing software and hardware decoupling of a touch display module, which realizes software and hardware decoupling of the touch display module through a layered architecture; the layered architecture comprises a drawing layer, a return point data processing layer and an HID communication layer;

[0013] The drawing layer is configured to provide a standard interface library for interface drawing, so as to be called by a service layer through a driver layer.

[0014] The return point data processing layer is configured to perform standardized processing on return point data of the touch display module, to obtain screen coordinate point data, and output the screen coordinate point data to the drawing layer.

[0015] The HID communication layer is configured to obtain the return point data of the touch display module based on HID communication, and deliver the return point data to the return point data processing layer.

[0016] In a possible implementation, the standardized processing on the return point data of the touch display module comprises: for a first touch display module, converting electromagnetic coordinate point data of the first touch display module into screen coordinate point data based on the HID communication layer; wherein the first touch display module is a touch display module of a supplier who does not provide a host computer library.

[0017] In a possible implementation, the standardized processing on the return point data of the touch display module further comprises: for a second touch display module, calling a host computer library provided by a corresponding supplier for analysis, to obtain screen coordinate point data of the second touch display module; wherein the second touch display module is a touch display module of a supplier who provides a host computer library.

[0018] In a possible implementation, the receiving of the electromagnetic coordinate point data of the first touch display module based on the HID communication layer comprises: receiving, by the HID communication layer, original coordinate point data of the first touch display module, and converting the original coordinate point data into electromagnetic coordinate point data based on a rule of a corresponding supplier's original coordinate point data group.

[0019] In a possible implementation, the converting of the electromagnetic coordinate point data into the screen coordinate point data comprises:

[0020] Firstly, a conversion factor for converting the electromagnetic coordinate point data into the screen coordinate point data is calculated based on electromagnetic resolution parameters and screen resolution parameters.

[0021] Then, the screen coordinate point data is calculated based on the conversion factor and the electromagnetic coordinate point data.

[0022] In a possible implementation, the screen coordinate point data comprises four parameters, namely an x coordinate, a y coordinate, a pressure value and a time interval between a current return point and a first return point.

[0023] In a possible implementation, the interface drawing standard interface library provided by the drawing layer comprises a signature window drawing module and a track drawing module; the signature window drawing module draws a signature window based on window x coordinate, window y coordinate, window width, and window height parameters; and the track drawing module draws a touch track based on x coordinate, y coordinate, and pressure value parameters.

[0024] In a second aspect, the present application provides a system for realizing software and hardware decoupling of a touch display module, comprising a memory and a processor.

[0025] The memory is configured to store a computer program.

[0026] The processor is configured to invoke the computer program to execute the method described above.

[0027] In a third aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program, when running on an electronic device, causes the electronic device to implement the method described above.

[0028] In a fourth aspect, the present application provides a computer program product comprising a computer program, and the computer program, when running on an electronic device, causes the electronic device to implement the method described above.

[0029] The specific implementation of the second to fourth aspects of the present application described above can refer to the implementation of the first aspect described above, and will not be described here.

[0030] Advantages:

[0031] 1) Layered decoupling architecture: by introducing a drawing layer, a return point data processing layer, and an HID communication layer, complete decoupling of software and hardware is realized, and interface customization does not depend on vendor software implementation.

[0032] 2) Multi-vendor compatibility: the system can support devices of different vendors at the same time, and can be hot switched, improving the flexibility and maintainability of the system.

[0033] 3) Return point data processing standardization: the return point data processing layer is introduced to convert the return point data coordinates of touch display modules of different vendors into a standard data format.

[0034] 4) Reduction of technical threshold for vendor software implementation: as long as the return point implementation of the firmware electromagnetic coordinate point data is met, the system can be introduced even if the host computer software implementation capability is not met. BRIEF DESCRIPTION OF DRAWINGS

[0035] Figure 1 is a traditional strong coupling calling mode;

[0036] Figure 2 For an embodiment of the present application, a layered decoupling architecture. DETAILED DESCRIPTION

[0037] To make the personnel in the technical field better understand the present application, the technical solutions of the present application will be further described in detail below in combination with the embodiments of the present application and the drawings.

[0038] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.

[0039] In the embodiments of the present disclosure, the character " / " represents an "or" relationship between the preceding and following objects. For example, A / B represents: A or B.

[0040] As shown in Figure 1 In the conventional calling mode, the supplier (such as supplier A / B) of the touch display module needs to customize and develop and provide the host machine library (such as the host machine library of supplier A / B). The touch display module device service of the service layer calls the host machine library provided by the supplier through the driver layer, so as to realize the use of the touch display module of the corresponding supplier.

[0041] Among them, the service layer: the service interface (such as signature verification, transaction confirmation) of the application system conforming to the WOSA / PISA protocol interface requirement, called by the application system.

[0042] The driver layer: the touch display module standard interface based on the WOSA / PISA protocol is met, and the driver interface library including information instructions, execution instructions, events, parameter configurations and the like is implemented.

[0043] The supplier host machine library refers to the dynamic link library with drawing function developed by the supplier according to the private interface, and the function and interface are defined by each supplier.

[0044] The driver layer is called by the service layer and downwardly connected to the hardware.

[0045] Due to the strong coupling of the touch display module software and hardware, the multi-supplier compatibility is poor and the technical threshold is high: the supplier needs to have the host machine software development capability, which limits the introduction of hardware.

[0046] To this end, the application provides a method and system for realizing software and hardware decoupling of a touch display module, which can be applied to financial self-service equipment (such as an STM, a VTM, an intelligent counter, etc.), and solves the problems of strong coupling of software and hardware and compatibility of multi-vendor equipment.

[0047] Embodiment one:

[0048] The embodiment of the application provides a method for realizing software and hardware decoupling of a touch display module, which realizes software and hardware decoupling of the touch display module through a layered architecture; the layered architecture comprises a drawing layer, a return point data processing layer and an HID communication layer.

[0049] The drawing layer is configured to provide a standard interface library for interface drawing, for calling by a service layer via a driver layer.

[0050] The return point data processing layer is configured to perform standardized processing on return point data of the touch display module to obtain screen coordinate point data, and output the screen coordinate point data to the drawing layer.

[0051] The HID communication layer is configured to acquire the return point data of the touch display module based on HID communication, and deliver the return point data to the return point data processing layer.

[0052] The embodiment of the application realizes software and hardware decoupling of the touch display module as a whole by defining the layered architecture comprising the drawing layer, the return point data processing layer and the HID communication layer, breaks the strong coupling mode of the traditional "device service layer directly depending on vendor hardware implementation", and makes interface customization not dependent on vendor software, thereby shortening the customization period and reducing software adaptation and maintenance costs.

[0053] The technical means in the embodiment of the application will be described in detail below.

[0054] The drawing layer comprises core functions such as drawing of a signature window and trajectory drawing, and can particularly process customized window characteristics proposed by a customer, including transparency, a border, a background color, a trajectory, text, a background picture, a button, a countdown, etc.

[0055] In some embodiments, the drawing layer provides a standard interface library for interface drawing, which comprises a signature window drawing module and a trajectory drawing module; the signature window drawing module draws a signature window based on window x coordinates, window y coordinates, window width and window height parameters; and the trajectory drawing module draws a touch trajectory based on x coordinates, y coordinates and pressure value parameters.

[0056] The drawing of the signature window defines four standard parameters: window x coordinate, window y coordinate, window width w, and window height h. For example, the drawing function of the signature window is CreateWindow (x, y, w, h). The drawing of the track defines three standard parameters: x coordinate, y coordinate, and pressure value. For example, the drawing function of the track is DrawSignature (x, y, pressure).

[0057] The interface drawing function is standardized through the drawing layer, so that the service layer and the drive layer can call the drawing function through a unified interface, avoid dependence on the drawing implementation of a supplier, and improve the efficiency and consistency of interface customization.

[0058] In the embodiment, a return point data normalization method is introduced, and return point data of a touch display module is standardized, including: for a first touch display module, receiving electromagnetic coordinate point data of the first touch display module based on a HID communication layer, and converting the electromagnetic coordinate point data into screen coordinate point data; the first touch display module is a touch display module of a supplier that does not provide a host computer library.

[0059] The scheme receives electromagnetic coordinate point data and converts the electromagnetic coordinate point data into screen coordinate point data for a touch display module (the first touch display module) of a supplier that does not provide a host computer library, realizes compatibility of a supplier device without host computer development capability, reduces the technical threshold introduced by the supplier, and does not require the supplier to have host computer software development capability.

[0060] In some embodiments, the standardization of the return point data of the touch display module further includes: for a second touch display module, calling a host computer library provided by a corresponding supplier for analysis, and obtaining screen coordinate point data of the second touch display module; the second touch display module is a touch display module of a supplier that provides a host computer library.

[0061] The scheme calls a host computer library of a touch display module (the second touch display module) of a supplier that provides a host computer library for data analysis, realizes compatibility of a device of an existing mature supplier, guarantees the adaptation capability of the system to existing supplier resources, and further improves multi-supplier compatibility.

[0062] In some embodiments, the standard screen coordinate point data includes four parameters, namely, x coordinate, y coordinate, pressure value, and time interval between the current return point and the first return point.

[0063] The return point data normalization method has two core contents: one is to convert electromagnetic coordinate point data into original screen coordinate point data, and the other is to convert original screen coordinate point data screen_coordinates(xs ,y s The pressure) is increased to standard screen coordinate point data containing four parameters: screen_coordinates(x) s ,y s ,pressure,time_interval), where ime_interval is the time interval between the current return point and the first return point.

[0064] This solution achieves a standardized definition of touch data, solving the problem of "complex differential processing" caused by inconsistent data formats among manufacturers in traditional solutions, and providing a unified data standard for subsequent interface rendering in the drawing layer.

[0065] like Figure 1 As shown, existing technology processes return data based on the supplier's host computer library. The return data format is the original screen coordinate point data screen_coordinates(x s ,y s (, pressure).

[0066] like Figure 2 As shown, according to the solution provided in this application embodiment, this application embodiment can process return data based on the supplier's host computer library, and can also receive electromagnetic coordinate point data returned by the HID communication layer (electromagnetic_coordinates(x)). e ,y e (,pressure); The electromagnetic coordinate point data is converted into screen coordinate point data by the return point data processing layer.

[0067] In this application, the HID communication layer, as the bottom layer, interacts directly with the hardware (touch display module). It is responsible for receiving raw coordinate point data HIDData(b1,b2,b3.....,b8) via HID communication, converting it into electromagnetic coordinate point data, and then passing it to the return data processing layer. The return data processing protocol layer, as the middle layer, parses the data received from the HID layer and converts it into standard screen coordinate point data. The drawing layer, as the upper layer, implements interface drawing (such as signature windows, trajectory drawing, etc.) based on standard screen coordinate point data.

[0068] For example, if the service layer sends a call instruction to the driver layer: Financial Device Service.GetTouchCoordinates();

[0069] After receiving the call instruction, the driver layer forwards the call instruction to the drawing layer;

[0070] After receiving the call instruction, the drawing layer invokes the return data processing protocol layer, which performs the following judgments and processing:

[0071] If the current supplier is supplier A / B, i.e. supplier_type = SupplierA / B, the output standard screen coordinate point data of the host library of the supplier A / B is called, and if the current supplier is supplier C, the electromagnetic coordinate point data returned by the HID layer is received and converted into standard screen coordinate point data.

[0072] The coordinate conversion method in the embodiment of the present application is described below.

[0073] I. The HID communication layer receives original coordinate point data HIDData(b1, b2, b3, …, b8), and converts the original coordinate point data HIDData(b1, b2, b3, …, b8) into electromagnetic coordinate point data electromagnetic_coordinates(x e ,y e ,pressure) based on the original coordinate point data composition rules of different suppliers.

[0074] The return point data (original touch data) of the touch display module is original coordinate point data HIDData(b1, b2, b3, …, b8). The HID communication layer receives the original coordinate point data HIDData(b1, b2, b3, …, b8) of the touch display module and converts it into electromagnetic coordinate point data electromagnetic_coordinates(x e ,y e ,pressure), which is then transmitted to the return point data processing layer.

[0075] The HID communication original coordinate point data is composed of 8 bytes, i.e. b1, b2, b3, …, b8.

[0076] The original coordinate point data composition rules of different suppliers are shown in Table 1.

[0077] .

[0078] The above conversion rules are uniformly processed as parameter configuration, which can be compatible with the data differences of different suppliers, and the calculation formula of the coordinate value is standardized as:

[0079] ;

[0080] For example, the parameter configuration processing is as follows, in which the content after # is the annotation of the corresponding statement:

[0081] [Enable] ;

[0082] # enable;

[0083] supplier_type = SupplierA;

[0084] # Specify the currently enabled supplier type (SupplierA / B / C), the system automatically loads the corresponding supplier parsing rules according to this field;

[0085] [SupplierA];

[0086] # Original HID data parsing rules for Supplier A (x / y coordinates and pressure value occupy b3-b8, b1 is the table header, and b2 is the state);

[0087] x_low = b3;

[0088] x_high = b4;

[0089] y_low = b5;

[0090] y_high = b6;

[0091] pressure_low = b7;

[0092] pressure_high = b8;

[0093] # x coordinate: composed of b3 and b4, the low 8 bits of x coordinate are b3, the high 8 bits of x coordinate are b4, the calculation formula is: xe = b3 + b4x256;

[0094] # y coordinate: composed of b5 and b6, the low 8 bits of y coordinate are b5, the high 8 bits of y coordinate are b6, the calculation formula is: ye = b5 + b6x256;

[0095] # Pressure value: composed of b7 and b8, the low 8 bits of pressure value are b7, the high 8 bits of pressure value are b8, the calculation formula is: pressure = b7 + b8x256

[0096] [SupplierB];

[0097] # Parsing rules for Supplier B (x / y coordinates and pressure value occupy b1-b6, b7 and b8 are reserved bytes);

[0098] x_low = b1;

[0099] x_high = b2;

[0100] y_low = b3;

[0101] y_high = b4;

[0102] pressure_low = b5;

[0103] pressure_high = b6;

[0104] # x coordinate: composed of b1 and b2, the low 8 bits of the x coordinate are b1, the high 8 bits of the x coordinate are b2, the calculation formula is: xe = b1 + b2 * 256;

[0105] # y coordinate: composed of b3 and b4, the low 8 bits of the y coordinate are b3, the high 8 bits of the y coordinate are b4, the calculation formula is: ye = b3 + b4 * 256;

[0106] # pressure value: composed of b5 and b6, the low 8 bits of the pressure value are b5, the high 8 bits of the pressure value are b6, the calculation formula is: pressure = b5 + b6 * 256;

[0107] [SupplierC];

[0108] # Analysis rule of supplier C (x / y coordinate and pressure value occupy b2-b7, b1 is state, b8 is reserved byte);

[0109] x_low = b2;

[0110] x_high = b3;

[0111] y_low = b4;

[0112] y_high = b5;

[0113] pressure_low = b6;

[0114] pressure_high = b7;

[0115] # x coordinate: composed of b2 and b3, the low 8 bits of the x coordinate are b2, the high 8 bits of the x coordinate are b3, the calculation formula is: xe = b2 + b3 * 256;

[0116] # y coordinate: composed of b4 and b5, the low 8 bits of the y coordinate are b4, the high 8 bits of the y coordinate are b5, the calculation formula is: ye = b4 + b5 * 256;

[0117] # pressure value: composed of b6 and b7, the low 8 bits of the pressure value are b6, the high 8 bits of the pressure value are b7, the calculation formula is: pressure = b6 + b7 * 256;

[0118] Different supplier data formats (such as byte rules of suppliers A / B / C) can be processed through parameter configuration.

[0119] The following is an example of a supplier A, HID communication original coordinate point data HIDData(b1, b2, b3,..., b8) conversion to electromagnetic coordinate point data electromagnetic_coordinates(x e ,y e ,pressure) method:

[0120] First, according to the configuration table to extract the b3-b8 bytes of HID communication original coordinate point data HIDData, and then according to the following formula to calculate the electromagnetic coordinate point data:

[0121] .

[0122] Through the HID communication layer based on the original coordinate point data of the supplier composition rules, the original data is converted into electromagnetic coordinate point data, which ensures the accurate analysis of different supplier original touch data, provides reliable input for the standardization processing of the return point data processing layer, and improves the compatibility and accuracy of data analysis.

[0123] II. Convert electromagnetic coordinate point data electromagnetic_coordinates(x e ,y e ,pressure) into screen coordinate point data screen_coordinates(x s ,y s ,pressure);

[0124] First, based on the electromagnetic resolution parameter and the screen resolution parameter, calculate the conversion factor ;

[0125] The resolution is mainly composed of horizontal pixels and vertical pixels;

[0126] The electromagnetic resolution parameter is represented by electromagnetic_resolution(h e ,v e ,pressure), where h e represents the maximum number of electromagnetic induction points in the horizontal direction of the hardware layer, which determines the accuracy of the original coordinates, v e represents the maximum number of electromagnetic induction points in the vertical direction of the hardware layer (together with h e constitute the physical characteristics of the electromagnetic board), and pressure represents the number of pressure levels (such as 4096 levels of pressure corresponding to 12-bit precision);

[0127] The screen resolution parameter is represented by screen_resolution(h s , v s , pressure), wherein h s represents the horizontal pixel number of the display device, v s represents the vertical pixel number of the display device, and pressure is a reserved parameter, which is aligned with the electromagnetic resolution pressure value.

[0128] The calculation formula of the conversion factor is as follows:

[0129] ;

[0130] In the formula, represents the conversion factor in the horizontal direction, represents the conversion factor in the vertical direction;

[0131] Then, based on the conversion factor and the electromagnetic coordinate point data conversion, the screen coordinate point data is calculated, and the calculation formula is as follows:

[0132] ;

[0133] By calculating the conversion factor, the electromagnetic coordinate point data is converted into screen coordinate point data, realizing the adaptation of the touch module with different electromagnetic resolutions to the screen resolution, unifying the coordinate system, ensuring the accurate presentation of the touch track on the screen, and improving the consistency of interface drawing.

[0134] Three, the original screen coordinate point data screen_coordinates(x s , y s , pressure) containing three parameters is standardized to standard screen coordinate point data screen_coordinates(x s , y s , pressure, time_interval) containing four parameters, wherein ime_interval is the time interval between the current return point and the first return point, which is used to accurately restore the signing speed when saving the track data, the initial value of time_interval is the time of the first point of the first pen of the signature, and the subsequent value of time_interval is the time interval between the return point of the signature and the previous point, with the unit of millisecond.

[0135] The above solution solves the problems of strong coupling of software and hardware, poor compatibility of multiple suppliers, high maintenance cost, etc. in the traditional architecture, realizes the decoupling of software and hardware of the touch display module, improves the compatibility of multiple supplier devices, reduces the introduction threshold of suppliers, and reduces the software adaptation and maintenance cost.

[0136] Embodiment two:

[0137] The embodiment provides a system for realizing software and hardware decoupling of a touch display module, comprising a memory and a processor.

[0138] The memory is used for storing a computer program.

[0139] The processor is used for calling the computer program to execute the method in embodiment one.

[0140] Embodiment three:

[0141] The embodiment provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program, when running on an electronic device, causes the electronic device to implement the method in embodiment one.

[0142] Embodiment four:

[0143] The embodiment provides a computer program product, comprising a computer program, and the computer program, when running on an electronic device, causes the electronic device to implement the method in embodiment one.

[0144] The specific implementation manners of the system, the electronic device, the computer readable storage medium and the computer program product provided in the embodiment of the application can refer to the specific embodiments of the above method, and details are not described herein.

[0145] The technical contents of the above embodiments can be mutually referred to, and for the same or similar technical features, part of the embodiments is appropriately omitted.

[0146] Obviously, those skilled in the art should understand that each unit or each step of the above application can be realized by a general computing device, which can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be realized by program codes executable by a computing device, so that they can be stored in a storage device and executed by a computing device, or they can be respectively manufactured into each integrated circuit module, or multiple modules or steps among them can be manufactured into a single integrated circuit module to realize. Thus, the application is not limited to any specific combination of hardware and software.

[0147] The above only describes the preferred embodiments of the application and is not used to limit the application. For those skilled in the art, the application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall be included in the protection scope of the application.

Claims

1. A method for realizing software and hardware decoupling of a touch display module, characterized in that, The touch display module software and hardware are decoupled through a layered architecture; the layered architecture comprises a drawing layer, a return point data processing layer and an HID communication layer; The drawing layer is configured to provide a standard interface library for interface drawing, so as to be called by a service layer through a driver layer; The return point data processing layer is configured to process return point data of the touch display module to obtain screen coordinate point data, and output the screen coordinate point data to the drawing layer; wherein the processing of the return point data of the touch display module comprises: for a first touch display module, based on the HID communication layer, electromagnetic coordinate point data of the first touch display module is received, and the electromagnetic coordinate point data is converted into screen coordinate point data; wherein the first touch display module is a touch display module of a supplier who does not provide a host computer library; for a second touch display module, a host computer library provided by a corresponding supplier is called to analyze, and screen coordinate point data of the second touch display module is obtained; wherein the second touch display module is a touch display module of a supplier who provides a host computer library; The HID communication layer is configured to acquire return point data of the touch display module based on HID communication, and deliver the return point data to the return point data processing layer.

2. The method of claim 1, wherein, The HID communication layer receives electromagnetic coordinate point data of the first touch display module, including: the HID communication layer receives original coordinate point data of the first touch display module, and converts the original coordinate point data into electromagnetic coordinate point data based on a rule of a corresponding supplier's original coordinate point data set 。 3. The method of claim 1, wherein, The conversion of the electromagnetic coordinate point data into the screen coordinate point data comprises: Firstly, based on electromagnetic resolution parameters and screen resolution parameters, a conversion factor for converting the electromagnetic coordinate point data into the screen coordinate point data is calculated; Then, based on the conversion factor and the electromagnetic coordinate point data, the screen coordinate point data is calculated.

4. The method according to any one of claims 1 to 3, characterized in that, The screen coordinate point data includes four parameters, respectively x coordinate, y coordinate, pressure value and time interval between current return point and first return point.

5. The method of claim 4, wherein, The interface drawing standard interface library provided by the drawing layer comprises a signature window drawing module and a track drawing module; the signature window drawing module draws a signature window based on window x coordinates, window y width, window height parameters; and the track drawing module draws a touch track based on x coordinates, y coordinates, pressure value parameters.

6. A system for implementing software and hardware decoupling of a touch display module, the system comprising: The electronic device comprises: a memory and a processor; the memory is configured to store a computer program; the processor is configured to call the computer program to execute the method in any one of claims 1 to 5.

7. A computer readable storage medium characterized in that, The computer program is stored in the computer readable storage medium, and when the computer program runs on the electronic device, the electronic device implements the method in any one of claims 1 to 5.

8. A computer program product comprising a computer program, characterized in that, The computer program runs on the electronic device, and the electronic device implements the method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for optimizing screen handwriting following performance

    CN105677107A

  • Debugging method for touch screen TP algorithm and related TP algorithm debugging system

    CN116841868A