POS machine data storage method and application thereof in POS machine production
By storing preset card inspection data, oven software, customer certificates and customer applications in the user's customized partition and downloading them together in the POS machine production process, the problems of cumbersome and inefficient production processes of the existing POS machine are solved, and more efficient production inspection and cost savings are achieved.
Patent Information
- Application Number
- CN202411896526.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The production process of existing POS machines is cumbersome and inefficient, requiring multiple data interactions, which increases production time and labor costs.
A POS machine data storage method is proposed. When the POS machine is downloaded for general firmware data, preset card inspection data, oven software, customer certificates and customer applications are stored in the user's customized partition, and downloaded to the POS machine together to simplify the download and installation process of production files.
It improves production efficiency, reduces labor costs, reduces time and production costs, and simplifies the production and testing process of POS machines.
Smart Images

Figure CN119828967A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of POS machine factory inspection, and in particular to a POS machine data storage method and its application in POS machine production. Background Art
[0002] As an important auxiliary equipment in the merchant payment process, the reliability of the POS machine is particularly important. Therefore, in the production and testing environment, the manufacturer needs to conduct a comprehensive test to determine its performance. Figure 1 As shown in the figure, in the original production process, the production process of POS machines is particularly cumbersome. The entire production process includes multiple steps such as firmware download, copy machine download, pre-card / post-card application download, etc. Each step requires the use of different USERDATA packages to complete the download and installation of production files. This production method is not only inefficient, but also the equipment needs to be repeatedly restored to factory settings after each download, which greatly increases production time and labor costs.
[0003] Specifically, in the original production process, there are about four steps to download the equipment, and each step needs to wait for the previous step to be completed before it can start. On the production line, each step requires a person to operate, which undoubtedly increases the manpower investment.
[0004] Therefore, how to improve the flexibility, detection efficiency and reliability of the production inspection environment is a research topic with very positive and practical significance. Summary of the invention
[0005] In view of this, the purpose of the present invention is to propose a POS machine data storage method with high efficiency, good detection reliability and labor saving, and its application in POS machine production.
[0006] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0007] A POS machine data storage method, comprising:
[0008] S01. When the POS machine is downloading general firmware data, the preset card inspection data, baking software, customer certificate and customer application of the POS machine are stored in the user-customized partition, and then downloaded to the POS machine together;
[0009] S02. In response to the information that the POS machine has completed downloading the general firmware data and the user-customized partition and restarting the device, the system application NlFactoryApp of the POS machine processes the preset card inspection data stored in the user-customized partition and installs the preset baking software, and completes the installation of the customer certificate and customer application, which are used for the card inspection process and baking process during the production inspection of the POS machine respectively.
[0010] As a possible implementation mode, further, the user customized partition described in this solution includes a PRIVDATA1 partition and a USERDATA partition.
[0011] As a preferred implementation option, preferably, in this solution S01, the general firmware data includes a trigger module in a modular form and integrated in the system application NlFactoryApp, which sends information after the POS machine completes the download of the general firmware data and the user-customized partition and restarts the device, so as to automatically execute S02.
[0012] As a preferred implementation option, preferably, in the present solution S02, the preset card inspection data, the client certificate and the client application are stored in the USERDATA partition of the user-customized partition, and the partition has a file directory for storing the preset card inspection data;
[0013] The preset baking software is stored in the PRIVDATA1 partition of the user-customized partition, and the partition has a file directory for storing the preset baking software.
[0014] As a preferred implementation option, preferably, this solution S02 also includes:
[0015] After the preset baking software is stored and the integrity of the file is verified, the system executes the installation program of the preset baking software.
[0016] Based on the above, this solution also proposes a POS machine production detection method, which applies the above-mentioned POS machine data storage method, and the POS machine is based on the Android system, which includes:
[0017] Start the POS machine, perform card inspection and machine test on it, and generate the test results;
[0018] Obtain the test results, and when they meet the requirements, complete the production test of the POS machine and package it.
[0019] As a better implementation option, preferably, the POS machine described in this solution also downloads the machine number information and the soft decoding certificate before the card inspection and the burn-in inspection.
[0020] As a better implementation option, preferably, the POS machine described in this solution also downloads software configuration before card inspection and machine burn-in inspection, and the software configuration includes SN, SNK and key.
[0021] As a preferred implementation option, preferably, the POS machine described in this solution is also subjected to a startup test, an aging test and a whole machine test before the card inspection and the burn-in test.
[0022] As a preferred implementation option, preferably, the baking machine detection described in this solution includes:
[0023] Perform a test on the POS machine software. If the POS machine software is available, a watermark is added to the test interface and the machine enters the factory mode. If the POS machine software is not available, the test ends.
[0024] Perform SN detection in factory mode. When there is SN, perform security trigger detection on the POS terminal.
[0025] When there is a security trigger, clear the security trigger and wait for the roaster to send a broadcast, then pre-install the client certificate and application. If the roaster does not send a broadcast, uninstall the roaster and pre-install, and then end;
[0026] When it is not triggered safely, the client certificate and client application are directly pre-installed;
[0027] After pre-installing the client certificate and client application, set all client applications configured in install.xml in the POS system to DISABLE to block the client Launcher function. Then perform a machine test and output the test results. When the test results meet the preset requirements, uninstall the machine software and complete the machine test.
[0028] Listen for the broadcast of machine uninstallation. When the machine is uninstalled successfully, set all customer applications of the POS machine to ENABLE and restart the device.
[0029] By adopting the above technical scheme, the present invention has the following beneficial effects compared with the prior art: based on the limitations of the existing POS machine factory inspection process, which is cumbersome, time-consuming and requires multiple data interactions, this scheme proposes an innovative data storage method and production inspection method; the core of this method is to use user-customized partitions to integrate multiple steps in the production process into one step. Download the firmware together with the user-customized partition. The user-customized partition contains two partitions, PRIVDATA1 and USERDATA. These two partition images do not need to verify the firmware download signature when downloading, but only need to verify the client certificate signature, which is simple to make. In the production process, since the client certificate has not been installed yet, the user partition image can be downloaded directly. We can complete the one-click download of all necessary files before the client certificate is installed, thereby simplifying the four download steps into one step. This scheme not only improves production efficiency and reduces labor costs, but also reduces time consumption and production costs. This method will play an important role in the future production of POS machines. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 This is a brief schematic diagram of the process of factory inspection of a POS terminal in the prior art;
[0032] Figure 2 This is a brief description of the process of factory inspection of the POS machine in this solution;
[0033] Figure 3 This is a brief implementation flow diagram of the POS machine copying card inspection files in this solution;
[0034] Figure 4 This is a brief implementation flow chart of the POS machine during the baking process of this solution. DETAILED DESCRIPTION
[0035] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.
[0036] Combination Figure 2 As shown, this embodiment provides a POS machine data storage method, which includes:
[0037] S01. When the POS machine is downloading general firmware data, the preset card inspection data, baking software, customer certificate and customer application of the POS machine are stored in the user-customized partition, and then downloaded to the POS machine together;
[0038] S02. In response to the information that the POS machine has completed downloading the general firmware data and the user-customized partition and restarting the device, the system application NlFactoryApp of the POS machine processes the preset card inspection data stored in the user-customized partition and installs the preset baking software, and completes the installation of the customer certificate and customer application, which are used for the card inspection process and baking process during the production inspection of the POS machine respectively.
[0039] Among them, in this solution, the user customized partition includes the PRIVDATA1 partition and the USERDATA partition.
[0040] In addition, in the present solution S01, the general firmware data includes a trigger module in a modular form and integrated in the system application NlFactoryApp, which sends information after the POS machine completes the download of the general firmware data and the user-customized partition and restarts the device, so as to automatically execute S02.
[0041] As a preferred implementation option, preferably, in the present solution S02, the preset card inspection data, the client certificate and the client application are stored in the USERDATA partition of the user-customized partition, and the partition has a file directory for storing the preset card inspection data;
[0042] The preset baking software is stored in the PRIVDATA1 partition of the user-customized partition, and the partition has a file directory for storing the preset baking software.
[0043] In addition, this solution S02 also includes:
[0044] After the preset baking software is stored and the integrity of the file is verified, the system executes the installation program of the preset baking software.
[0045] Based on the above, this solution also proposes a POS machine production detection method, which applies the above-mentioned POS machine data storage method, and the POS machine is based on the Android system, which includes:
[0046] Start the POS machine, perform card inspection and machine test on it, and generate the test results;
[0047] Obtain the test results, and when they meet the requirements, complete the production test of the POS machine and package it.
[0048] As a better implementation option, preferably, the POS machine described in this solution also downloads the machine number information and the soft decoding certificate before the card inspection and the burn-in inspection.
[0049] As a better implementation option, preferably, the POS machine described in this solution also downloads software configuration before card inspection and machine burn-in inspection, and the software configuration includes SN, SNK and key.
[0050] As a preferred implementation option, preferably, the POS machine described in this solution is also subjected to a startup test, an aging test and a whole machine test before the card inspection and the burn-in test.
[0051] As a preferred implementation option, preferably, the baking machine detection described in this solution includes:
[0052] Perform a test on the POS machine software. If the POS machine software is available, a watermark is added to the test interface and the machine enters the factory mode. If the POS machine software is not available, the test ends.
[0053] Perform SN detection in factory mode. When there is SN, perform security trigger detection on the POS terminal.
[0054] When there is a security trigger, clear the security trigger and wait for the roaster to send a broadcast, then pre-install the client certificate and application. If the roaster does not send a broadcast, uninstall the roaster and pre-install, and then end;
[0055] When it is not triggered safely, the client certificate and client application are directly pre-installed;
[0056] After pre-installing the client certificate and client application, set all client applications configured in install.xml in the POS system to DISABLE to block the client Launcher function. Then perform a machine test and output the test results. When the test results meet the preset requirements, uninstall the machine software and complete the machine test.
[0057] Listen for the broadcast of machine uninstallation. When the machine is uninstalled successfully, set all customer applications of the POS machine to ENABLE and restart the device.
[0058] As a possible implementation, the existing technology is not suitable for the production process and cannot complete the integration of steps. This solution aims to download the complete firmware and user partition at one time, and then the Android system will identify the current process according to the files and markers in the user partition, and automatically download and install the production files. All production steps can be completed in the shortest time and manpower.
[0059] As a practical example, this solution includes the following:
[0060] Combined with Figure 1 As shown, it can be known that the traditional production process has many steps, and firmware download, copy machine download, and pre-card / post-card application download occupy multiple steps. If the copy machine download and post-card application download are both in ARD form, the device will be restored to factory settings twice, which is very time-consuming. Therefore, the four processes of firmware download, copy machine download, and pre-card / post-card application download are integrated into the firmware download step, and the device only needs to be restored to factory settings once. Copy machine and pre-card / post-card applications are packaged into user-customized partitions.
[0061] Among them, because the machine number download and software decryption certificate download are two continuous processes, traditionally, two manpower units are required to complete them. Figure 2 As shown in the figure, this solution cleverly combines them into one step before the test preparation. SN, SNK, and customer key download are optional processes, which can be combined into one step to complete the software configuration download, saving manpower.
[0062] The process of this solution starts after the PRIVDATA1 and USERDATA containing the necessary production files are downloaded and the device is started. This function is integrated in the system application NlFactoryApp in a modular form. The process is started after the device receives the startup broadcast. For details, see Figure 3 , Figure 4 :
[0063] 1. Copy process
[0064] After userdata.img is flashed into the device, the boot animation and card check XML will exist in the / data / preinstall / directory. After the system verifies the integrity of the source file, it copies the boot animation file to the applog / animation directory and the card check XML to the check_app_key directory.
[0065] After privdata1.img is flashed into the device, the copy apk will exist under applog / animation. After verifying the integrity of the file, the system will automatically install it.
[0066] 2. Factory Pattern
[0067] If the toaster application exists, add a watermark in the lower right corner: Factory Mode
[0068] In factory mode, it has the following conditions:
[0069] No SN: Pre-installation is postponed until the roaster sends a broadcast.
[0070] With SN: 1) When there is no security trigger, directly pre-install the client certificate and application 2) When there is a security trigger, clear the security and wait for the copy machine to send a broadcast before pre-installing. If the copy machine does not send a broadcast, uninstall the copy machine and then pre-install
[0071] Considering that there are self-starting applications such as Launcher in customer applications, after pre-installation is completed, if the baked application exists, all APKs configured in install.xml will be set to DISABLE to block the function of starting the customer Launcher.
[0072] When canceling pre-installation, set the system time to the certificate time. When the pre-installation in factory mode is completed, decide whether to restart the device according to the copy machine instruction.
[0073] Listen for the toast machine uninstall broadcast. When the toast machine is uninstalled successfully, set all client applications to ENABLE and restart the device.
[0074] By implementing this technical application plan, POS machines are verified in batch production on the production line, reducing the working hours of a single device by about 45% and the overall process by 46%.
[0075] The above descriptions are only some embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any equivalent device or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A POS machine data storage method, characterized in that: It includes: S01. When the POS machine is downloading general firmware data, the preset card inspection data, baking software, customer certificate and customer application of the POS machine are stored in the user-customized partition, and then downloaded to the POS machine together; S02. In response to the information that the POS machine has completed downloading the general firmware data and the user-customized partition and restarting the device, the system application NlFactoryApp of the POS machine processes the preset card inspection data stored in the user-customized partition and installs the preset baking software, and completes the installation of the customer certificate and customer application, which are used for the card inspection process and baking process during the production inspection of the POS machine respectively.
2. A POS machine data storage method as claimed in claim 1, characterized in that: The user customized partitions include a PRIVDATA1 partition and a USERDATA partition.
3. A POS machine data storage method as claimed in claim 2, characterized in that: In S01, the general firmware data includes a trigger module in a modular form and integrated in the system application NlFactoryApp, which sends out information after the POS machine completes the download of the general firmware data and the user-customized partition and restarts the device, so as to automatically execute S02.
4. A POS machine data storage method as claimed in claim 2 or 3, characterized in that: In S02, the preset card inspection data, the client application and the client certificate are stored in the USERDATA partition of the user-customized partition, and the partition has a file directory for storing the preset card inspection data; The preset baking software is stored in the PRIVDATA1 partition of the user-customized partition, and the partition has a file directory for storing the preset baking software.
5. A POS machine data storage method as claimed in claim 4, characterized in that: S02 also includes: After the preset baking software is stored and the integrity of the file is verified, the system executes the installation program of the preset baking software.
6. A POS machine production detection method, which uses the POS machine data storage method according to any one of claims 1 to 5, wherein the POS machine is based on an Android system, and is characterized in that: It includes: Start the POS machine, perform card inspection and machine test on it, and generate the test results; Obtain the test results, and when they meet the requirements, complete the production test of the POS machine and package it.
7. The POS machine production detection method according to claim 6, characterized in that: Before the card inspection and the burn-in inspection, the POS machine also downloads the machine number information and the soft decoding certificate.
8. The POS machine production detection method according to claim 6, characterized in that: Before the card inspection and the burn-in inspection, the POS machine also downloads a software configuration, which includes SN, SNK and a key.
9. The POS machine production detection method according to claim 6, characterized in that: The POS machine is also subjected to a startup test, an aging test and a whole machine test before the card inspection and the burn-in test.
10. The POS machine production detection method according to any one of claims 6 to 9, characterized in that: The baking machine detection includes: Perform a test on the POS machine software. If the POS machine software is available, a watermark is added to the test interface and the machine enters the factory mode. If the POS machine software is not available, the test ends. Perform SN detection in factory mode. When there is SN, perform security trigger detection on the POS terminal. When there is a security trigger, clear the security trigger and wait for the roaster to send a broadcast, then pre-install the client certificate and application. If the roaster does not send a broadcast, uninstall the roaster and pre-install. Then it ends; When it is not triggered safely, the client certificate and client application are directly pre-installed; After pre-installing the client certificate and client application, set all client applications configured in install.xml in the POS system to DISABLE to block the client Launcher function. Then perform a machine test and output the test results. When the test results meet the preset requirements, uninstall the machine software and complete the machine test. Listen for the broadcast of machine uninstallation. When the machine is uninstalled successfully, set all customer applications of the POS machine to ENABLE and restart the device.
Citation Information
Patent Citations
POS terminal application package downloading method and apparatus, and communication method
CN106371866A
POS file system configuration method and POS machine
CN107908430A
Variable-size customer pre-installation customized partitioning method based on an Android platform and a POS machine
CN112527334A
Android platform firmware anti-degradation method, application and storage medium thereof
CN112560047A
Method for firmware update of portable terminal
KR1020100010761A