Public accumulation fund service adaptation method and system based on self-service terminal
By adapting the Tongxin operating system to the self-service equipment of financial institutions, the compatibility issue with the Windows system of the provident fund center was resolved, the full-function operation of the provident fund business was realized, the convenience and security of self-service was improved, and the market competitiveness was enhanced.
Patent Information
- Application Number
- CN202510836138.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-10-03
AI Technical Summary
Because the self-service equipment of financial institutions uses the domestic "Tongxin" operating system and the Windows system of the provident fund center, there are significant differences in API interfaces, system call specifications, hardware driver support, etc., resulting in the inability to achieve compatibility with provident fund business services, the inability to implement printing functions, and the inability to implement ID card reading modules. The printer cannot implement the ID card reading module, resulting in incompatibility of smart cabinet equipment, affecting business implementation.
By identifying the API differences between Windows programs and the Tongxin operating system, building a Tongxin development and testing environment, modifying the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system, adapting to ID card reading and printer hardware drivers, controlling the real-time interaction of dedicated line data between the Tongxin system and the provident fund center's Windows system, testing interface connectivity, and verifying the front-end interaction process.
It has realized the full-function operation of provident fund business in the Tongxin system environment, including personal account information query, deposit details printing, loan business processing and other functions, solved the cross-system compatibility problem, improved the integrity and convenience of financial institutions' self-service, enhanced market competitiveness, and promoted the extension of provident fund services.
Smart Images

Figure CN120746481A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial institution business data processing, and in particular to a provident fund business adaptation method and system based on a self-service terminal. Background Art
[0002] The digital transformation of government services has become a core trend. As a key provider of government services, financial institutions urgently need to expand provident fund service scenarios and enhance their ability to provide convenient services through intelligent devices.
[0003] At the same time, the rapid development of financial technology is driving the intelligent transformation of financial institutions. Smart teller machines (ATMs) and self-service terminals have become key vehicles for extending services. In areas of livelihood, such as provident funds, cross-platform compatibility issues have become a major bottleneck for business implementation.
[0004] Currently, financial institutions' self-service devices are gradually adopting domestically produced "Tongxin" operating systems (such as Tongxin UOS) to respond to the requirements of the "Innovation in Information Technology Applications" industry; while the core business systems of provident fund centers are generally developed based on the Windows architecture. There are significant differences between the two in terms of API interfaces, system call specifications, hardware driver support, etc. For example: because the current self-service devices use the domestically produced "Tongxin" operating system, they are incompatible with the Windows system environment of the provident fund center. As a result, the intelligent teller machine (return slip version) cannot call the ID card reading module, and the non-return slip version cannot realize the printing function. After searching the existing technology, there is no relevant solution to this problem. For example, the closest related provident fund business service technology is the patent literature: CN116308145A discloses a method and device for centralized management of provident fund business. A specific implementation of the method includes: receiving a provident fund business processing request initiated by a user; wherein the provident fund business processing request includes a user number, provident fund business type, and provident fund business request data; querying the business processing flow table according to the provident fund business type, determining the business processing system and business processing sequence corresponding to the provident fund business type, forwarding the provident fund business processing request to the corresponding business processing system in sequence according to the business processing system and business processing sequence, and receiving the returned business processing result; sending the business processing result to the user. This technology receives user requests through the provident fund business centralized management system, queries the flow table according to the business type, and forwards the returned results to the corresponding business system in sequence, so as to centrally handle business; CN107369087A discloses a system for extending the services of a housing provident fund center through a bank. The system includes the following steps: First, a customer applies for a digital certificate at a bank; Second, the customer inserts the digital certificate into a relevant website. The website verifies the validity of the certificate and proceeds to the next step if it is valid; otherwise, an error message is displayed and the system exits if it is invalid or the digital certificate is not inserted; Third, to ensure the security of the website, the system fully utilizes the bank's security system to ensure the integrity of the website and related data and prevent the leakage of related data; Fourth, to ensure the authenticity and validity of the customer, the digital certificate is verified throughout the login and use process; Fifth, relevant business data is entered through the relevant business processing interface established by the bank; Sixth, data exchange is achieved through encrypted connection between the bank's external business processing platform and the housing provident fund center's CSP business processing platform; Seventh, the housing provident fund management center transfers the data received by its CSP business processing platform to the core business processing system. If the business is correct, the data is written to the core business database. This technology is a system for extending the services of a housing provident fund center through a bank. Customers apply for digital certificates to log in, use the bank's security system to ensure security, and encrypt the interactive data between the bank's external liaison platform and the provident fund CSP platform.
[0005] Therefore, the closest related technology cannot solve the problem of this application, and it is urgent to adapt and transform the program developed for the original Windows system to meet the customer's needs for complete handling of provident fund business. Summary of the Invention
[0006] In order to solve the problems mentioned in the above background technology, the present invention provides a provident fund business adaptation method based on a self-service terminal, and also provides a provident fund business adaptation system based on a self-service terminal.
[0007] The first aspect discloses a provident fund business adaptation method based on a self-service terminal, comprising the steps of: Identify API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and build a Tongxin development and testing environment; Modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system; Adapt and develop hardware drivers to implement driver support for ID card reader modules and printer hardware under the Tongxin system; Control the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center Windows system to ensure the transmission of business requests and responses; Test interface connectivity, verify front-end interaction processes, and cover all provident fund business scenarios.
[0008] Furthermore, identify the API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and build a Tongxin development and testing environment, including: scanning the dynamic link library of the original Windows program, identifying unique system library dependencies, generating a detailed compatibility report, marking missing API functions and incompatible system calls; building a development environment based on the Tongxin UOS server version, configuring the compiler and build tools, installing the Qt framework, database driver package and hardware interface development toolkit in the Tongxin application development SDK, creating a dedicated virtual machine cluster, simulating the actual deployment environment of the intelligent ATM, configuring dual network cards to connect to the internal test network and the provident fund center dedicated network respectively, deploying lightweight LDAP services and NTP services in the test environment, analyzing the resource files of the original Windows program, recompiling dialog resources to adapt to interface specifications, establishing a cross-platform configuration management mechanism, and distinguishing different configuration parameters of Windows and Tongxin systems through environment variables.
[0009] Furthermore, the original Windows program code was modified to adapt to the API interface and system call specifications of the Tongxin operating system, including: reconstructing the front-end interface code using the Qt framework, replacing the original Windows-specific MFC dialog class with Qt's QWidget derived class, reconfiguring the interface using Qt's layout manager, and comprehensively transforming the system's underlying calls, replacing Windows' Create File and Read File APIs with POSIX standard file operation functions, replacing Windows thread APIs with pthread thread libraries, and making the same code base compatible with dual system environments through conditional compilation; migrating the database connection module, replacing the ODBC interface under Windows with Postgre SQL's libpq or MySQL's Connector / C++ driver, and re-implementing database connection pool management. For the COM component calls in the original program, an intermediate adaptation layer was developed to convert the COM interface into a Qt-based plug-in system, and realize inter-component communication through Qt's meta-object system, eliminating dependence on the Windows COM runtime; reconfiguring the log system, replacing the Windows event log with syslog, and implementing a log recording method that complies with Linux specifications while retaining the original log level and format.
[0010] Furthermore, the original Windows program code was modified to adapt to the API interface and system call specifications of the Tongxin operating system, including: transforming Windows-specific registry operations, storing configuration data in the Tongxin system directory, developing cross-platform configuration management classes, and uniformly handling the configuration reading and saving logic of different operating systems; replacing the multi-threaded synchronization mechanism, using Linux's mutex locks and semaphores to replace Windows' Critical Section and Event objects to ensure thread safety; adjusting the graphics and image processing code, converting GDI+ drawing operations into Qt's QPainter API, handling the differences between the Tongxin system and Windows in font rendering and color space, and ensuring the correct generation of business forms and certification documents; optimizing the message loop, replacing the Windows WinMain message pump with Qt's event system, and re-implementing the dialog box modal display and asynchronous operation callback functions.
[0011] Furthermore, hardware driver adaptation and development are carried out to realize driver support for the ID card reading module and printer hardware under the Tongxin system, including: for the ID card reading module, first reverse-analyze the communication protocol between the original Windows driver and the ID card reader, develop an adaptation layer based on the USB subsystem of the Linux kernel, and realize device enumeration, connection and data exchange through the libusb library; focus on studying the calling method of the Windows version of the Ministry of Public Security's ID card authentication API, encapsulate it into a dynamic link library that complies with the POSIX standard, use the FHS specification to deploy the driver file to a specific directory, and realize automatic recognition of device hot plugging through udev rules; develop multi-threaded management to ensure the responsiveness of the UI interface during the ID card reading process, and realize device status monitoring and error handling at the same time. If the card reading timeout or device abnormality occurs, it will automatically reset and prompt the user.
[0012] Furthermore, hardware driver adaptation development is carried out to realize driver support for ID card reading module and printer hardware under the Tongxin system, including: for printer driver development, a dedicated back-end program is developed based on the CUPS architecture to realize the parsing, conversion and transmission of printing tasks; for PDF format certification documents commonly used in provident fund business, the Poppler library is integrated for document rendering, and custom filters are developed to handle special format requirements; print queue management is optimized, and multi-task concurrent processing is realized through the CUPS scheduling mechanism. At the same time, a print status feedback module is developed to display the printing progress and results in real time; a printer parameter configuration interface is implemented to support the adjustment of paper size and print density parameters to ensure that the output effect is consistent with the Windows environment; a hardware abstraction layer is established to uniformly manage ID card reading and printing functions, and a standardized interface is provided for upper-level business system calls to shield the differences between different hardware models and driver implementations.
[0013] Furthermore, the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center's Windows system is controlled, including: building a dedicated line network connection, deploying a dedicated line communication service program on the Tongxin system side, and strictly limiting data interaction with the Provident Fund Center's Windows system's designated IP address and port through firewall rules; using the Protobuf protocol to serialize business request and response data, standardizing the data structure, and compressing the data volume to improve transmission efficiency; implementing HTTP / HTTPS requests to the Provident Fund Center's Web Service interface through the libcurl library, and configuring SSL digital certificates and two-way authentication.
[0014] Furthermore, the real-time interaction of dedicated line data between the Tongxin system and the Windows system of the Provident Fund Center is controlled, including: deploying Redis cache servers, local caching of frequently accessed provident fund business data, developing data interaction management modules, real-time monitoring of dedicated line connection status, and automatically starting the reconnection mechanism when a network interruption is detected, and temporarily storing unsuccessfully sent business requests in the local queue, which will be reissued in sequence after the network is restored.
[0015] Furthermore, the interface connectivity is tested, the front-end interaction process is verified, and all provident fund business scenarios are covered, including: sending various business requests to the Web Service interface of the provident fund center, verifying whether the status code of the request response under the HTTP / HTTPS protocol is 200, and confirming the interface connectivity; simulating user operations, following the provident fund business processing process, starting from real-person verification login, and executing front-end interaction operations of different business scenarios in sequence, checking whether the page jump, data display, and button response functions are normal; for the ID card reading module call, a simulated ID card device is inserted in the test environment to verify whether the system can correctly obtain identity information and automatically fill it into the corresponding form fields; for the printing function, PDF format certificate documents are generated in different business scenarios, and printing instructions are sent through the CUPS printing system to check whether the printer outputs normally and the content format is consistent with the Windows environment.
[0016] Furthermore, the interface connectivity is tested, the front-end interaction process is verified, and all provident fund business scenarios are covered, including: creating a multi-threaded group, simulating concurrent users to perform provident fund business queries and printing operations at the same time, running continuously for a certain period of time, monitoring whether the system's response time meets the threshold, and monitoring the system's CPU usage and memory usage stability; for different versions of Tongxin, the adapted system is deployed separately to conduct full business scenario testing, check dynamic link library loading, hardware driver compatibility and system call stability, update the link cache, and solve library file reference problems caused by system version differences.
[0017] On the other hand, a provident fund business adaptation system based on a self-service terminal is disclosed, comprising: The test environment module is used to identify API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and to build a Tongxin development and testing environment. Software adaptation module, used to modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system; Hardware adaptation module, used for hardware driver adaptation and development to implement driver support for ID card reading module and printer hardware under the Tongxin system; The interactive control module is used to control the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center Windows system, ensuring the transmission of business requests and responses; The test execution module is used to test interface connectivity, verify the front-end interaction process, and cover all provident fund business scenarios.
[0018] Another aspect discloses an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute one or more modules of the above-mentioned provident fund business adaptation system based on the self-service terminal.
[0019] The beneficial effects of the present invention are as follows: This application realizes the full-function operation of provident fund business in the "Tongxin" system environment through the adaptation and transformation of the self-service device operating system, including personal account information query, deposit details printing, loan business processing and other functions. Direct connection to the provident fund end through a dedicated line interface ensures real-time data interaction and solves the cross-system compatibility problem. This solution improves the integrity and convenience of financial institutions' self-service, enhances their market competitiveness in the provident fund field, promotes the extension of provident fund services to the grassroots level, and realizes business collaboration and customer satisfaction improvement between financial institutions and provident fund centers. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a flow chart of the provident fund business adaptation method based on the self-service terminal of this application. DETAILED DESCRIPTION
[0021] The following will clearly and completely describe the technical solutions of the present invention in conjunction with the embodiments of the present invention. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0022] First, the technical terms involved in this application are explained: 1.API (Application Programming Interface): An application programming interface (API) defines the rules for interaction between software components, allowing different programs to communicate through predefined interfaces. This article refers to the differences in the interfaces used to call system functions in Windows and Tongxin operating systems.
[0023] 2.DLL (Dynamic Link Library): Dynamic link library, a code and data module that can be shared by multiple programs in the Windows system. In this article, it refers to scanning the system library files (such as user32.dll and gdi32.dll) that the original Windows program depends on.
[0024] 3.Qt framework: A cross-platform application development framework that provides development tools for graphical user interfaces (GUIs) and non-GUI functions (such as networks and databases). It supports languages such as C++ and Python. In this article, it is used to reconstruct the front-end interface to adapt to the Tongxin system.
[0025] 4.POSIX (Portable Operating System Interface): Portable Operating System Interface, a set of standards that define the interface of UNIX / Linux systems. In this article, it refers to replacing the Windows-specific file operation API with POSIX standard functions (such as open and read).
[0026] 5.MFC (Microsoft Foundation Classes): Microsoft Foundation Class Library, a C++ class library for Windows, is used to develop graphical user interface applications. It is replaced by Qt's QWidget class in this article to achieve cross-platform adaptation.
[0027] 6.COM (Component Object Model): The Component Object Model is a standard for software component interaction in Windows systems. This paper converts the COM interface into a Qt plug-in system through an intermediate adaptation layer, eliminating the dependence on Windows COM.
[0028] 7.ODBC (Open Database Connectivity): Open Database Connectivity, a standard database access interface for Windows, is replaced in this article with libpq for PostgreSQL or Connector / C++ driver for MySQL to adapt to the Tongxin system.
[0029] 8.libpq: A C client library for the PostgreSQL database, used to connect to and operate PostgreSQL databases in applications. This article uses it as an alternative to Windows ODBC.
[0030] 9.Connector / C++: A C++ driver for the MySQL database that provides a C++ interface for accessing the MySQL database. This article uses it to replace the ODBC interface under Windows.
[0031] 10.syslog: The system log protocol is a standard logging mechanism in UNIX / Linux systems. In this paper, it replaces the Windows event log to implement logging that complies with the Linux specification.
[0032] 11.libusb: A cross-platform USB device access library that allows applications to communicate directly with USB devices. This article uses it to develop an ID card reader driver for the Tongxin system.
[0033] 12.CUPS (Common UNIX Printing System): The Universal UNIX Printing System is a standard framework for managing printing tasks in Linux systems. This article uses it to develop printer driver backend programs under the Tongxin system.
[0034] 13.Poppler: An open source PDF rendering library is used to parse and render PDF documents. This article integrates this library to process the printing of PDF format certification documents in provident fund business.
[0035] 14.Protobuf (Protocol Buffers): The data serialization protocol developed by Google is used for efficient storage and transmission of structured data. In this article, it is used to compress and standardize the data exchange format between Tongxin and the Provident Fund Center.
[0036] 15.libcurl: A cross-platform network request library that supports multiple network protocols such as HTTP / HTTPS. It is used in this article to implement secure requests from the Tongxin system to the Provident Fund Center Web Service interface.
[0037] 16. Redis: An open-source in-memory database is used for high-speed data caching. In this article, Redis is deployed to cache frequently accessed provident fund business data, improving the efficiency of dedicated line interactions.
[0038] 17.LDAP (Light weight Directory Access Protocol): Lightweight Directory Access Protocol is used to access and maintain distributed directory information services. In this article, LDAP services are deployed in a test environment to simulate identity authentication.
[0039] 18.NTP (Network Time Protocol): The Network Time Protocol (NTP) is used to synchronize the time of various devices on the network. In this article, the NTP service is deployed in the test environment to ensure time synchronization.
[0040] 19.FHS (File system Hierarchy Standard): The File System Hierarchy Standard defines how files and directories are organized in UNIX / Linux systems. This document is used to standardize the deployment path of driver files in the Tongxin system.
[0041] 20.udev: The Linux kernel device manager is used to manage device hot-plug events. In this paper, automatic identification of ID card readers is achieved through udev rules.
[0042] 21.pthread: The POSIX thread library provides a cross-platform multi-threaded programming interface. In this article, it replaces the Windows thread API to implement multi-threaded support under the Tongxin system.
[0043] 22.GDI+ (Graphics Device Interface Plus): Windows Graphics Device Interface extension, used for 2D graphics rendering, is replaced by Qt's QPainter in this article to handle the graphics differences between the Tongxin system and Windows.
[0044] 23.SSL (Secure Sockets Layer): The Secure Sockets Layer protocol is used to encrypt network communications. In this article, SSL digital certificates are configured to implement two-way authentication and data encryption between Tongxin and the Housing Provident Fund Center.
[0045] 24.HTTP / HTTPS: Hypertext Transfer Protocol / Secure Hypertext Transfer Protocol is used for Web data interaction. HTTPS implements encrypted transmission through SSL / TLS and is used in this article to access the Web Service interface of the Provident Fund Center.
[0046] 25.POSIX standard: The Portable Operating System Interface standard, developed by the IEEE, defines the programming interface for UNIX systems and ensures the portability of applications between different UNIX / Linux systems.
[0047] 26. Conditional Compilation A compilation technique that uses preprocessor directives (such as #ifdef) to include or exclude code based on different compilation conditions. This article uses it to accommodate code differences between Windows and Tongxin systems.
[0048] 27. Hardware Abstraction Layer (HAL) The software layer shields the underlying hardware differences and provides a unified interface for upper-layer applications. In this article, it is used to uniformly manage ID card reading and printing functions and improve cross-hardware compatibility.
[0049] 28. Database connection pool: Database resource management technology creates and maintains a database connection set in advance to avoid the overhead of frequent connection creation. The connection pool is re-implemented in this article to adapt to the database driver of the Tongxin system.
[0050] This application discloses a provident fund business adaptation method based on a self-service terminal, such as Figure 1 , including the following steps: S001: Identify the API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and build a Tongxin development and testing environment; S002: Modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system; S003: Adapt and develop hardware drivers to achieve driver support for ID card reading modules and printer hardware under the Tongxin system; S004: Control the real-time interaction of dedicated line data between the Tongxin system and the Windows system of the provident fund center to ensure the transmission of business requests and responses; S005: Test interface connectivity, verify the front-end interaction process, and cover all provident fund business scenarios.
[0051] The self-service terminal-based provident fund business adaptation method of the present application can be implemented via a computer program. The computer program for implementing the method of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a standalone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0052] For S001: Identify the API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and build a Tongxin development and testing environment.
[0053] Specifically, during implementation, the Tongxin UOS migration tool is used to scan the dynamic link library (DLL) of the original Windows program, identify Windows-specific system library dependencies such as user32.dll and gdi32.dll, generate a detailed compatibility report, and mark missing API functions and incompatible system calls.
[0054] For the Windows registry operations and COM component calling functions used in the original program, determine their alternative implementation methods in the Tongxin system.
[0055] When building a development environment based on the Tongxin UOS server version, configure the GCC9.3.0 compiler and CMake3.18.4 build tool, install the Qt5.15.2 framework, database driver package, and hardware interface development toolkit in the Tongxin application development SDK, and ensure that the system kernel version (such as Linux5.10) and basic component version of the development environment are consistent with those of the production environment.
[0056] Create a dedicated virtual machine cluster to simulate the actual deployment environment of intelligent teller machines, configure dual network cards to connect to the internal test network and the provident fund center's dedicated network respectively, and deploy lightweight LDAP services and NTP services in the test environment to ensure the normal operation of identity authentication and time synchronization functions.
[0057] Analyze the resource files of the original Windows program, convert the .ico icon into the .png format supported by the Tongxin system, recompile the dialog resources to adapt to the GTK+ interface specifications, establish a cross-platform configuration management mechanism, and distinguish the different configuration parameters of Windows and Tongxin systems through environment variables.
[0058] For S002: Modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system; specifically, use the Qt5.15.2 framework to reconstruct the front-end interface code, replace the original Windows-specific MFC dialog class with Qt's QWidget derived class, and use Qt's layout manager to reconfigure the interface to ensure consistent visual effects and interactive experience under the Tongxin system.
[0059] The system's underlying calls are completely restructured, using POSIX standard file operation functions (such as open, read, and write) to replace the Windows Create File and Read File APIs. The pthread thread library is used to replace the Windows thread API, and conditional compilation (#ifdefUOS) is used to achieve compatibility with dual-system environments in the same code base.
[0060] When migrating the database connection module, replace the ODBC interface under Windows with libpq for PostgreSQL or Connector / C++ driver for MySQL, and re-implement the database connection pool management mechanism to ensure stable connection to the provident fund business database under the Tongxin system.
[0061] For the COM component calls in the original program, an intermediate adaptation layer is developed to convert the COM interface into a Qt-based plug-in system, and inter-component communication is achieved through Qt's meta-object system, eliminating the dependence on the Windows COM runtime.
[0062] Reconfigure the log system and use syslog instead of Windows event logs to implement a logging method that complies with Linux specifications while retaining the original log level and format for easier operation and maintenance monitoring.
[0063] Modify Windows-specific registry operations, store configuration data in INI files or JSON files under the / etc directory of the Tongxin system, develop cross-platform configuration management classes, and unify the configuration reading and saving logic of different operating systems.
[0064] Replace the multi-thread synchronization mechanism and use Linux's mutex lock (pthread_mutex) and semaphore (sem_t) instead of Windows's Critical Section and Event objects to ensure thread safety.
[0065] Adjust the graphics and image processing code, convert GDI+ drawing operations into Qt's QPainter API, handle the differences in font rendering and color space between the Tongxin system and Windows, and ensure the correct generation of business forms and certification documents.
[0066] Optimize the message loop mechanism, replace the Windows WinMain message pump with Qt's event system, re-implement the dialog box modal display and asynchronous operation callback functions to ensure the smooth operation of the user interaction process.
[0067] For S003: Develop hardware driver adaptation to implement driver support for the ID card reading module and printer hardware under the Tongxin system; specifically in implementation, for the ID card reading module, first reverse analyze the communication protocol between the original Windows driver and the ID card reader, identify the data transmission format, instruction set and handshake process, develop an adaptation layer based on the USB subsystem of the Linux kernel, and implement device enumeration, connection and data exchange through the libusb library.
[0068] We studied the Windows version of the Ministry of Public Security's ID card authentication API and encapsulated it as a POSIX-compliant dynamic link library. We deployed the driver files to the / lib / modules directory using the FHS specification and implemented automatic device hot-plugging recognition through udev rules. We also developed a multi-threaded management mechanism to ensure UI responsiveness during ID card reading. We also implemented device status monitoring and error handling, automatically resetting and notifying the user when a card reading timeout or device anomaly occurs.
[0069] For printer driver development, we conduct in-depth analysis of the ESC / P and PCL instruction sets of the original Windows print driver, and develop a dedicated back-end program based on the CUPS architecture to implement the parsing, conversion, and transmission of print tasks.
[0070] For PDF-formatted certificates commonly used in provident fund business, we integrated the Poppler library for document rendering and developed custom filters to handle special formatting requirements, such as duplicate printing and multi-page splicing. We optimized print queue management, enabling multi-tasking concurrent processing through the CUPS scheduling mechanism, and developed a print status feedback module to display printing progress and results in real time.
[0071] Implement the printer parameter configuration interface, support the adjustment of paper size and print density parameters, and ensure that the output effect is consistent with the Windows environment.
[0072] Establish a hardware abstraction layer to uniformly manage ID card reading and printing functions, provide a standardized interface for upper-level business systems to call, and shield the differences between different hardware models and driver implementations.
[0073] Develop hardware compatibility testing tools that cover mainstream ID card reader and printer models on the market, and provide customized driver solutions for incompatible devices.
[0074] Create hardware management services in the Tongxin system to implement automatic driver updates and fault diagnosis functions, improve hardware stability through logging and analysis, and ultimately ensure the reliability and performance of ID card reading and printing functions in the Tongxin environment.
[0075] For S004: Control the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center Windows system to ensure the transmission of business requests and responses; in implementation, specifically, use the TCP / IP protocol based on the Linux socket API to build a dedicated line network connection, deploy a dedicated line communication service program on the Tongxin system side, and strictly limit data interaction to the specified IP address and port of the Provident Fund Center Windows system through firewall rules.
[0076] Use the Protobuf protocol to serialize business request and response data, standardize the data structures such as personal account information query and provident fund withdrawal application, and compress the data volume to improve transmission efficiency.
[0077] Use the libcurl library to implement HTTP / HTTPS requests to the Provident Fund Center Web Service interface (SOAP protocol), configure SSL digital certificates and a two-way authentication mechanism to ensure the integrity and security of data during transmission.
[0078] Deploy a Redis cache server to locally cache frequently accessed provident fund business data (such as provident fund contribution base and loan benchmark interest rate), set a reasonable cache expiration time and update strategy, and reduce repeated dedicated line requests.
[0079] Develop a data interaction management module to monitor the dedicated line connection status in real time. When a network interruption is detected, the reconnection mechanism is automatically activated and unsuccessful business requests are temporarily stored in the local queue and reissued in sequence after the network is restored.
[0080] Log business request and response data, record request time, parameters, and response result information in detail to facilitate subsequent troubleshooting and business audits, and ensure stable, efficient, and secure data interaction between the Tongxin system and the Provident Fund Center Windows system.
[0081] For S005: Test interface connectivity and verify front-end interaction processes, covering all provident fund business scenarios. Specifically, use the Postman tool to send various business requests, such as personal account information queries and provident fund withdrawal applications, to the provident fund center's Web service interface. Verify that the response status code is 200 under the HTTP / HTTPS protocol to confirm interface connectivity.
[0082] Use the Selenium automated testing tool to simulate user operations. Following the provident fund business process, starting with real-person verification login, execute front-end interactive operations of business scenarios such as personal account information query, deposit details printing, and loan business processing in sequence to check whether page jumps, data display, and button response functions are normal.
[0083] For the ID card reading module call, a simulated ID card device is inserted in the test environment to verify whether the system can correctly obtain identity information and automatically fill it into the corresponding form fields; for the printing function, PDF format certification documents are generated in different business scenarios, and printing instructions are sent through the CUPS printing system to check whether the printer outputs normally and the content format is consistent with the Windows environment.
[0084] Using the JMeter tool, we created a multi-threaded group to simulate 100 concurrent users performing provident fund business queries and printing operations simultaneously. The test lasted for 30 minutes, monitoring the system's response time to ensure it remained within 3 seconds, as well as CPU utilization and memory usage stability. We deployed adapted systems for Tongxin UOS versions 10.3 and 10.4, respectively, to conduct full-business scenario testing. We checked dynamic link library loading, hardware driver compatibility, and system call stability. We also updated the link cache using the ldconfig command to resolve library file reference issues caused by system version differences.
[0085] Record all error logs and abnormal situations that occur during the test, form a detailed test report, and carry out targeted repairs and optimizations on the problems found to ensure that the system meets the full-function operation requirements of provident fund business in the Tongxin environment.
[0086] In addition, the present application discloses a provident fund business adaptation system based on a self-service terminal, including: The test environment module 100 is used to identify API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and to build a Tongxin development and testing environment; The software adaptation module 200 is used to modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system; The hardware adaptation module 300 is used to adapt and develop the hardware driver to realize the driver support of the ID card reading module and printer hardware under the Tongxin system; Interaction control module 400, used to control the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center Windows system to ensure the transmission of business requests and responses; The test execution module 500 is used to test interface connectivity, verify the front-end interaction process, and cover all provident fund business scenarios.
[0087] It can be understood that the present application discloses an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute one or more modules of the above-mentioned provident fund business adaptation system based on the self-service terminal.
[0088] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0089] The above are all preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A provident fund business adaptation method based on a self-service terminal is characterized in that: Including steps: Identify API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and build a Tongxin development and testing environment; Modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system; Adapt and develop hardware drivers to implement driver support for ID card reader modules and printer hardware under the Tongxin system; Control the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center Windows system to ensure the transmission of business requests and responses; Test interface connectivity, verify front-end interaction processes, and cover all provident fund business scenarios.
2. The provident fund business adaptation method based on the self-service terminal according to claim 1, characterized in that: Identify the API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and build a Tongxin development and testing environment, including: scanning the dynamic link library of the original Windows program, identifying unique system library dependencies, generating a detailed compatibility report, and marking missing API functions and incompatible system calls; build a development environment based on the Tongxin UOS server version, configure the compiler and build tools, install the Qt framework, database driver package and hardware interface development toolkit in the Tongxin application development SDK, create a dedicated virtual machine cluster, simulate the actual deployment environment of the intelligent ATM, configure dual network cards to connect to the internal test network and the provident fund center dedicated network respectively, deploy lightweight LDAP services and NTP services in the test environment, analyze the resource files of the original Windows program, recompile dialog resources to adapt to interface specifications, establish a cross-platform configuration management mechanism, and distinguish different configuration parameters of Windows and Tongxin systems through environment variables.
3. The provident fund business adaptation method based on the self-service terminal according to claim 1, characterized in that: Modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system, including: reconstructing the front-end interface code using the Qt framework, replacing the original Windows-specific MFC dialog class with Qt's QWidget-derived class, reconfiguring the interface using Qt's layout manager, and comprehensively transforming the system's underlying calls, replacing Windows' Create File and Read File APIs with POSIX standard file operation functions, replacing Windows thread APIs with pthread thread libraries, and making the same code base compatible with dual system environments through conditional compilation; migrate the database connection module, replace the ODBC interface under Windows with Postgre SQL's libpq or MySQL's Connector / C++ driver, re-implement database connection pool management, and develop an intermediate adaptation layer for COM component calls in the original program to convert the COM interface into a Qt-based plug-in system, realize inter-component communication through Qt's meta-object system, and eliminate dependence on the Windows COM runtime; reconfigure the log system, replace the Windows event log with syslog, and implement a logging method that complies with Linux specifications while retaining the original log level and format.
4. The provident fund business adaptation method based on a self-service terminal according to claim 1, characterized in that: Modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system, including: transforming Windows-specific registry operations, storing configuration data in the Tongxin system directory, developing cross-platform configuration management classes, and unifying the configuration reading and saving logic of different operating systems; replacing the multi-threaded synchronization mechanism, using Linux mutex locks and semaphores to replace Windows Critical Section and Event objects to ensure thread safety; adjusting the graphics and image processing code, converting GDI+ drawing operations to Qt's QPainter API, handling the differences in font rendering and color space between the Tongxin system and Windows, and ensuring the correct generation of business forms and certification documents; optimizing the message loop, replacing the Windows WinMain message pump with Qt's event system, and re-implementing the dialog box modal display and asynchronous operation callback functions.
5. The provident fund business adaptation method based on the self-service terminal according to claim 1, characterized in that: Hardware driver adaptation and development are carried out to implement driver support for the ID card reading module and printer hardware under the Tongxin system, including: for the ID card reading module, first reverse-analyze the communication protocol between the original Windows driver and the ID card reader, develop an adaptation layer based on the USB subsystem of the Linux kernel, and implement device enumeration, connection and data exchange through the libusb library; study the calling method of the Windows version of the Ministry of Public Security's ID card authentication API, encapsulate it into a dynamic link library that complies with the POSIX standard, use the FHS specification to deploy the driver file to a specific directory, and implement automatic identification of device hot plugging through udev rules; develop multi-threaded management to ensure the responsiveness of the UI interface during the ID card reading process, and implement device status monitoring and error handling at the same time. If a card reading timeout or device abnormality occurs, it will automatically reset and prompt the user.
6. The provident fund business adaptation method based on a self-service terminal according to claim 1, characterized in that: Hardware driver adaptation and development are carried out to realize driver support for ID card reading module and printer hardware under the Tongxin system, including: for printer driver development, a dedicated back-end program is developed based on the CUPS architecture to realize the parsing, conversion and transmission of printing tasks; for PDF format certification documents commonly used in provident fund business, the Poppler library is integrated for document rendering, and custom filters are developed to handle special format requirements; print queue management is optimized, and multi-task concurrent processing is realized through the CUPS scheduling mechanism. At the same time, a print status feedback module is developed to display the printing progress and results in real time; a printer parameter configuration interface is implemented to support the adjustment of paper size and print density parameters to ensure that the output effect is consistent with the Windows environment; a hardware abstraction layer is established to uniformly manage ID card reading and printing functions, and a standardized interface is provided for upper-level business systems to call to shield the differences between different hardware models and driver implementations.
7. The provident fund business adaptation method based on a self-service terminal according to claim 1, characterized in that: Control the real-time dedicated line data interaction between the Tongxin system and the Provident Fund Center's Windows system, including: establishing a dedicated line network connection, deploying a dedicated line communication service program on the Tongxin system side, and strictly limiting data interaction with the Provident Fund Center's Windows system's designated IP address and port through firewall rules; using the Protobuf protocol to serialize business request and response data, standardizing the data structure, and compressing the data volume to improve transmission efficiency; implementing HTTP / HTTPS requests to the Provident Fund Center's Web Service interface through the libcurl library, and configuring SSL digital certificates and two-way authentication.
8. The provident fund business adaptation method based on a self-service terminal according to claim 1, characterized in that: Control the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center's Windows system, including: deploying Redis cache servers to locally cache frequently accessed provident fund business data, developing a data interaction management module, and monitoring the dedicated line connection status in real time. When a network interruption is detected, the reconnection mechanism is automatically started, and unsuccessful business requests are temporarily stored in the local queue, and reissued in sequence after the network is restored.
9. The provident fund business adaptation method based on a self-service terminal according to claim 1, characterized in that: Test interface connectivity, verify the front-end interaction process, and cover all provident fund business scenarios, including: sending various business requests to the provident fund center's Web Service interface, verifying whether the status code of the request response under the HTTP / HTTPS protocol is 200, and confirming interface connectivity; simulating user operations, following the provident fund business processing procedures, starting from real-person verification login, and executing front-end interaction operations in different business scenarios in sequence, checking whether page jumps, data display, and button response functions are normal; for ID card reading module calls, insert a simulated ID card device in the test environment to verify whether the system can correctly obtain identity information and automatically fill it into the corresponding form fields; for printing functions, generate PDF format certification documents in different business scenarios, send printing instructions through the CUPS printing system, and check whether the printer outputs normally and the content format is consistent with the Windows environment.
10. A provident fund business adaptation system based on a self-service terminal, characterized in that: include: The test environment module is used to identify API differences and dependency library incompatibilities between Windows programs and the Tongxin operating system, and to build a Tongxin development and testing environment. Software adaptation module, used to modify the original Windows program code to adapt to the API interface and system call specifications of the Tongxin operating system; Hardware adaptation module, used for hardware driver adaptation and development to implement driver support for ID card reading module and printer hardware under the Tongxin system; The interactive control module is used to control the real-time interaction of dedicated line data between the Tongxin system and the Provident Fund Center Windows system, ensuring the transmission of business requests and responses; The test execution module is used to test interface connectivity, verify the front-end interaction process, and cover all provident fund business scenarios.
Citation Information
Patent Citations
System for realizing business extension of provident fund center through bank
CN107369087A
Centralized management method and device for public accumulation fund services
CN116308145A