POS machine data storage method and application thereof in POS machine production
By integrating user-customized partitions to download preset data into the POS machine and automatically installing it using system applications, the cumbersome POS machine production and testing process is solved, achieving efficient and reliable production and testing.
Patent Information
- Application Number
- CN202411896526.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2044-12-23
AI Technical Summary
The existing POS machine production and testing process is cumbersome and inefficient, requiring multiple data interactions and increasing labor costs.
The system uses a user-customized partitioning approach to download the POS machine's preset card detection data, burn-in software, customer certificates, and customer applications to the POS machine. The installation is then automatically performed through the system application NlFactoryApp, integrating multiple production steps into a single process.
It improved the efficiency of production testing, reduced labor costs and time consumption, and simplified the production process.
Smart Images

Figure CN119828967B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the POS machine factory detection technical field, and particularly relates to a POS machine data storage method and application thereof in POS machine production. BACKGROUND
[0002] As an important auxiliary device in the payment link of a merchant, the reliability of a POS machine is particularly important, and therefore, in a production detection environment, a production party needs to comprehensively detect the POS machine to determine the use performance of the POS machine, and in combination with the production detection environment, the POS machine is required to be detected in a production detection environment. Figure 1 As shown in the prior art, in the original production process, the production procedure of the POS machine is particularly cumbersome. The entire production process includes multiple steps such as firmware download, machine download, card before / after application download, and each step needs to use different USERDATA packages to complete the download and installation of the production file. This production method is not only low in efficiency, but also requires the device to be repeatedly restored to factory settings after each download, which greatly increases the production time and labor cost.
[0003] Specifically, in the original production process, there are about four device download steps, and each step needs to wait for the completion of the previous step before starting. On the production line, each step needs to occupy one person for operation, which undoubtedly increases the labor input.
[0004] Therefore, how to improve the flexibility, detection efficiency and reliability of the production detection environment is a very positive and practical research topic. SUMMARY
[0005] In view of this, the purpose of the present application is to provide a POS machine data storage method with high efficiency, good detection reliability and labor saving and application thereof in POS machine production.
[0006] In order to achieve the above technical purpose, the technical solution adopted by the present application is:
[0007] A POS machine data storage method, comprising:
[0008] S01, when downloading the general firmware data of the POS machine, storing the preset card detection data, the baking machine software, the customer certificate and the customer application of the POS machine in the user customization partition, and then downloading them to the POS machine together;
[0009] S02, in response to the information that the POS machine completes the general firmware data and the user customization partition download and restarts the device, the system application NlFactoryApp of the POS machine processes the preset card detection data stored in the user customization partition and installs the preset baking machine software, and completes the installation of the customer certificate and the customer application, to be respectively used for the card detection process and the baking machine process in the production detection of the POS machine.
[0010] As a possible implementation, further, the user customized partition in the present solution includes the PRIVDATA1 partition and the USERDATA partition.
[0011] As a preferred implementation, 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 performs device restart, for automatically performing S02.
[0012] As a preferred implementation, in the present solution S02, the preset card detection data, the customer certificate and the customer application are stored in the USERDATA partition of the user customized partition, and the partition has a file directory for storing the preset card detection data.
[0013] The preset POS machine software is stored in the PRIVDATA1 partition of the user customized partition, and the partition has a file directory for storing the preset POS machine software.
[0014] As a preferred implementation, the present solution S02 further includes:
[0015] After the preset POS machine software completes storage and verifies the file integrity, the system performs an installation procedure of the preset POS machine software.
[0016] Based on the above, the present solution further proposes a POS machine production detection method, which applies the POS machine data storage method described above, and the POS machine is based on an Android system, which includes:
[0017] Starting the POS machine, performing card detection and POS machine detection on the POS machine, and generating a detection result;
[0018] Obtaining the detection result, and when the detection result meets the requirements, completing the production detection of the POS machine and packaging the POS machine.
[0019] As a preferred implementation, before the card detection and the POS machine detection, the POS machine further downloads mobile phone information and software decoding certificates.
[0020] As a preferred implementation, before the card detection and the POS machine detection, the POS machine further downloads software configurations, and the software configurations include SN, SNK and a key.
[0021] As a preferred implementation, before the card detection and the POS machine detection, the POS machine further undergoes startup testing, aging testing and whole machine testing.
[0022] As a preferred implementation, the POS machine detection includes:
[0023] The POS machine is subjected to baking software detection, when having the baking software, a watermark is added in the detection interface, and the factory mode is entered, when not having the baking software, the detection is ended;
[0024] SN detection is carried out in the factory mode, when having the SN, the POS machine is subjected to safety trigger condition detection,
[0025] When the safety trigger exists, the safety trigger is cleared, and then the pre-installed customer certificate and application are carried out after the baking machine sends a broadcast, or the pre-installation is carried out after the baking machine is unloaded, and then the process is ended;
[0026] When the safety trigger does not exist, the pre-installed customer certificate and customer application are directly carried out;
[0027] After the pre-installed customer certificate and customer application are completed, all customer applications in the POS machine system configured in install.xml are set as DISABLE, so as to shield the customer Launcher function; then, the baking machine is detected, and a detection result is output, when the detection result meets the preset requirement, the baking software is unloaded, and the baking detection is completed;
[0028] The baking machine unloading broadcast is listened to, when the baking machine unloading is successful, all customer applications of the POS machine are set as ENABLE, and the device is restarted.
[0029] Compared with the prior art, the technical scheme has the beneficial effects that: based on the limitations of the complicated, time-consuming and multiple data interaction of the existing POS machine factory detection process, an innovative data storage method and production detection method are proposed; the core of the method is to integrate multiple steps in the production process into one step by using user customization partition. The user customization partition is downloaded together with the firmware during firmware download. The user customization partition includes PRIVDATA1 and USERDATA two partitions, and the two partition images do not need to verify the firmware download signature during download, only need to verify the customer certificate signature, and the production is simple. In the production process, since the customer certificate has not been installed, the user partition image can be directly downloaded, and we can complete one-key download of all necessary files before the customer certificate is installed, so that four download steps are simplified into one step. The scheme not only improves the production efficiency, reduces the labor cost, but also reduces the time consumption and production cost. This method will play an important role in future POS machine production. BRIEF DESCRIPTION OF DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0031] Figure 1 is a brief flowchart of the POS machine in the prior art when factory detection is performed;
[0032] Figure 2 is a brief flowchart of the POS machine in the present application when factory detection is performed;
[0033] Figure 3 is a brief implementation flowchart of the POS machine in the present application when the card detection file is copied;
[0034] Figure 4 is a brief implementation flowchart of the POS machine in the present application when the POS machine is baked. DETAILED DESCRIPTION
[0035] The present application will be further described in detail below in combination with the drawings and embodiments. It is particularly pointed out that the following embodiments are only used to illustrate the present application, but do not limit the scope of the present application. Similarly, the following embodiments are only some embodiments of the present application, but not all embodiments, and all other embodiments obtained by those skilled in the art without creative labor are within the scope of the present application.
[0036] In combination with Figure 2 the drawings, the present embodiment is a POS machine data storage method, which comprises:
[0037] S01, when the POS machine downloads the general firmware data, the preset card detection data, the baking software, the customer certificate and the customer application of the POS machine are stored in the user customization partition, and then are downloaded to the POS machine together;
[0038] S02, in response to the information that the POS machine completes the general firmware data and the user customization partition download and restarts the device, the system application NlFactoryApp of the POS machine processes the preset card detection data stored in the user customization partition and installs the preset baking software, and completes the installation of the customer certificate and the customer application, so as to be respectively used for the card detection process and the baking process of the POS machine when factory detection is performed.
[0039] In the present application, the user customization partition comprises a PRIVDATA1 partition and a USERDATA partition.
[0040] In addition, in the scheme 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 general firmware data and the user customized partition are downloaded and the device is restarted, for automatically performing S02.
[0041] As a preferred implementation option, preferably, in the scheme S02, the preset card detection data, the customer certificate and the customer application are stored in the USERDATA partition of the user customized partition, and the partition has a file directory for storing the preset card detection data.
[0042] The preset baking machine software is stored in the PRIVDATA1 partition of the user customized partition, and the partition has a file directory for storing the preset baking machine software.
[0043] In addition, the scheme S02 further includes:
[0044] After the preset baking machine software is stored and the file integrity is verified, the system executes the installation program of the preset baking machine software.
[0045] Based on the above, the scheme further provides a POS machine production detection method, which applies the POS machine data storage method described above, and the POS machine is based on an Android system, and includes:
[0046] Starting the POS machine, performing card detection and baking machine detection on the POS machine, and generating a detection result;
[0047] Obtaining the detection result, and when the detection result meets the requirements, completing the production detection of the POS machine and packaging the POS machine.
[0048] As a preferred implementation option, preferably, the POS machine described in the scheme further downloads mobile phone information and soft decoding certificates before the card detection and the baking machine detection.
[0049] As a preferred implementation option, preferably, the POS machine described in the scheme further downloads a software configuration before the card detection and the baking machine detection, and the software configuration includes SN, SNK and a key.
[0050] As a preferred implementation option, preferably, the POS machine described in the scheme further undergoes startup testing, aging testing and whole machine testing before the card detection and the baking machine detection.
[0051] As a preferred implementation option, preferably, the baking machine detection described in the scheme includes:
[0052] Performing baking machine software detection on the POS machine, when the POS machine has the baking machine software, adding a watermark in a detection interface and entering a factory mode, and when the POS machine does not have the baking machine software, ending the detection.
[0053] In the factory mode, SN detection is performed, and when the SN exists, the POS machine is triggered for security detection,
[0054] When the security trigger exists, the security trigger is cleared, and then the POS machine is triggered for security detection, or the POS machine is unloaded, and then pre-installation is performed, and then the process is ended.
[0055] When the security trigger does not exist, the pre-installation of the customer certificate and the customer application is directly performed.
[0056] After the pre-installation of the customer certificate and the customer application is completed, all customer applications in the install.xml in the POS machine system are set to DISABLE to shield the customer Launcher function. Then, the POS machine is detected, and the detection result is output. When the detection result meets the preset requirement, the POS machine software is unloaded, and the POS machine detection is completed.
[0057] The POS machine is unloaded, and when the POS machine is successfully unloaded, all customer applications of the POS machine are set to ENABLE, and the device is restarted.
[0058] As a possible implementation, the existing technology cannot complete the integration of the steps because the production process is not adapted to the process. The present application aims to download the complete firmware and the user partition once, and then the Android system discriminates the current process according to the files and the mark bit in the user partition to automatically download and install the production files. The production steps are completed in the shortest time and with the least manpower.
[0059] As an example, the present application includes the following:
[0060] As shown in Figure 1 , it can be learned that the traditional production process has many steps, and the firmware download, the machine download, and the card before / after application download occupy multiple steps. If the machine download and the card after application download are in the ARD form, the device will be restored to the factory settings twice, which causes a lot of time consumption. Therefore, the firmware download, the machine download, and the card before / after application download are integrated into one step of firmware download, and the device only needs to be restored to the factory settings once. The machine and the card before / after application are packaged into the user customization partition.
[0061] As shown in Figure 2 , the present application ingeniously combines the two processes into one step of preparation before testing. The SN, the SNK, and the customer key download are optional processes, which can be combined into one step of soft solution configuration download to save manpower.
[0062] The process of this scheme starts from downloading the PRIVDATA1 and USERDATA containing necessary production files, and starts after the device is started. This function is integrated in the system application NlFactoryApp in a modular form, and the process is started after the device receives the startup broadcast, as shown in the following table Figure 3 、 Figure 4 :
[0063] 1. Copy process
[0064] After the userdata.img is flashed into the device, the boot animation and card check xml exist in the / data / preinstall / directory, and the system checks the integrity of the source file, and then copies the boot animation file to the applog / animation directory, and copies the card check xml to the check_app_key directory
[0065] After the privdata1.img is flashed into the device, the booting apk exists in the applog / animation, and the system will automatically install after verifying the file integrity
[0066] 2. Factory mode
[0067] If the baking application exists, add the watermark in the lower right corner: factory mode
[0068] In factory mode, it has the following conditions:
[0069] No SN: pre-install is delayed until the baking sends a broadcast.
[0070] With SN: 1) directly pre-install customer certificates and applications when not triggered safely 2) clear security when triggered safely, and wait for the baking to send a broadcast to pre-install, if the baking does not send a broadcast, uninstall the baking and pre-install
[0071] Considering that there are Launcher and other self-starting applications in the customer application, after the pre-installation is completed, if the baking application exists, all APKs configured in the install.xml are set to DISABLE, and the customer Launcher function is shielded.
[0072] When canceling pre-installation, set the system time to the certificate time, and when the pre-installation in factory mode is completed, decide whether to restart the device according to the baking instruction.
[0073] Listen to the baking uninstall broadcast, and when the baking is successfully uninstalled, set all customer applications to ENABLE, and restart the device.
[0074] By implementing the technical application scheme, the POS machine is verified in batch production on the production line, and the working hours of a single device are reduced by about 45%, and the overall process is reduced by 46%.
[0075] The above merely illustrates some embodiments of the present application, and is not intended to limit the protection scope of the present application. Any equivalent device or equivalent process conversion, or direct or indirect application in other related technical fields, which is made according to the content of the present application, shall be included in the patent protection scope of the present application.
Claims
1. A POS machine data storage method, characterized in that, It includes: S01. When downloading general firmware data to the POS machine, store the POS machine's preset card detection data, burn-in software, customer certificate, and customer application in a user-customized partition, and then download them to the POS machine together. S02. After the POS machine completes the download of general firmware data and user-customized partition and restarts the device, the POS machine's system application NlFactoryApp processes the preset card inspection data stored in the user-customized partition and installs the preset burn-in software, and completes the installation of customer certificates and customer applications, which are used for the card inspection process and burn-in process during the POS machine's production testing, respectively. The user-customized partitions include the PRIVDATA1 partition and the USERDATA partition; In S02, the preset card check data, customer application and customer certificate are stored in the USERDATA partition of the user-customized partition, and the USERDATA partition has a file directory for storing the preset card check data. The preset stress test software is stored in the PRIVDATA1 partition of the user-defined partition, and the PRIVDATA1 partition has a file directory for storing the preset stress test software.
2. The POS machine data storage method as described in claim 1, characterized in that, In S01, the general firmware data includes a trigger module that is modular and integrated into the system application NlFactoryApp. After the POS machine completes the download of the general firmware data and the user-customized partition and restarts the device, it sends out information to automatically execute S02.
3. The POS machine data storage method as described in claim 1, characterized in that, S02 also includes: After the preset stress test software is saved and the file integrity is verified, the system executes the preset stress test software installation program.
4. A POS machine production testing method, which applies the POS machine data storage method according to any one of claims 1 to 3, wherein the POS machine is based on the Android system, characterized in that: It includes: Start the POS machine, perform card detection and machine burn-in tests, and generate test results; Obtain the test results, and when they meet the requirements, complete the production test of the POS machine and package it.
5. The POS machine production testing method as described in claim 4, characterized in that: Before card detection and machine testing, the POS machine also downloads the serial number information and software decoding certificate.
6. The POS machine production testing method as described in claim 4, characterized in that: Before the card check and the test, the POS machine also downloads software configuration, which includes SN, SNK and key.
7. The POS machine production testing method as described in claim 4, characterized in that: Before card detection and burn-in testing, the POS machine also undergoes startup testing, aging testing, and whole machine testing.
8. The POS machine production testing method as described in any one of claims 4 to 7, characterized in that: The oven testing includes: Perform a stress test on the POS machine. If the stress test software is present, add a watermark to the test interface and enter factory mode. If the stress test software is absent, end the test. In factory mode, SN detection is performed. When a SN is present, a security trigger detection is performed on the POS machine. If a security trigger is present, clear the security trigger and wait for the stress test to send a broadcast before pre-installing the customer certificate and application. Alternatively, if the stress test does not send a broadcast, uninstall the stress test, perform the pre-installation, and then end the process. If no security is triggered, pre-installation of customer certificates and customer applications will proceed directly. After the pre-installation of customer certificates and customer applications is completed, set all customer applications configured in the install.xml file of the POS machine system to DISABLE to disable the startup of the customer Launcher function; then perform a stress test, output the test results, and when the test results meet the preset requirements, uninstall the stress test software to complete the stress test; Listen for the unload broadcast of the POS machine. When the unload is successful, set all customer applications on 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