Battery state detection method of security chip and related device

By collecting and uploading the voltage data of the battery powered by the security chip at the POS terminal, the problem of the inability of existing technology to monitor the status of the battery powered by the security chip of the POS terminal in real time is solved, enabling timely monitoring and processing of the battery status, and reducing the risk of failure.

CN118859000APending Publication Date: 2024-10-29SHENZHEN XINGUODU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410747750.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing technology cannot monitor the working status of the POS terminal security chip power supply battery in real-time in an actual use environment, leading to an increase in potential faults.

Method used

The battery voltage data of the security chip-powered battery is collected at the POS terminal, stored in the system log file, and uploaded to the backend management system every preset period. The backend management system determines the working status of the security chip-powered battery based on the battery voltage data. .

Benefits of technology

It realizes real-time battery status monitoring and analysis during the use of POS terminals, understands and processes the working status of the security chip-powered battery in a timely manner, and reduces hidden faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118859000A_ABST
    Figure CN118859000A_ABST
Patent Text Reader

Abstract

The invention discloses a battery state detection method of a security chip and a related device, which are used for reducing the fault hidden danger of a power supply battery of the security chip. The method comprises the steps that in a power-on state, battery voltage data of a power supply battery of the safety chip are collected, and the battery voltage data comprise battery voltage data collected at multiple different moments; storing the battery voltage data in a system log file; and uploading the system log file to a background management system every preset period, so that the background management system determines the working state of a power supply battery of the security chip according to the battery voltage data in the system log file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of POS terminals, and in particular to a battery status detection method and related device for a POS terminal security chip. Background Art

[0002] Point of Sale (POS) is a multifunctional terminal with high security requirements. At present, in order to ensure the security requirements of POS terminals, a dual central processing unit (CPU) control architecture consisting of a main control chip and a security chip is usually adopted. Among them, the main control chip is mainly responsible for the screen display of the POS terminal, device touch and button control, encryption protocol algorithm calculation in financial delivery, and device wireless network and other related services. The security chip is mainly responsible for the security protection and detection of the POS terminal. It uses low-power integrated circuits to provide accurate real-time clock time for the POS terminal, which is used to detect whether the POS terminal will be damaged by external forces.

[0003] When the battery power of the POS terminal is too low to maintain normal operation, the battery power of the security chip starts to work as a backup power source, providing an independent and stable power supply environment for the security chip, so that it can maintain continuous operation and continuously ensure the safety of the POS terminal. During the production process of the battery power of the security chip, there may be a slight short circuit in the designed circuit or the battery quality may be unqualified. If such a situation occurs in the POS terminal that is about to enter the market, it will cause battery quality problems after the product enters the market, causing great losses to users.

[0004] At present, before the power supply battery of the security chip leaves the factory, it is usually necessary to detect the voltage of the power supply battery, and judge whether the power supply battery meets the factory standard by the detected battery voltage. However, this detection method can only be analyzed based on the voltage data collected in the production environment, and cannot collect and analyze the voltage data according to the application environment of the POS terminal during actual use, so that the working status of the power supply battery of the security chip cannot be understood in time, thereby increasing the hidden danger of failure of the power supply battery of the security chip. Summary of the invention

[0005] The present application provides a battery status detection method and related device for a security chip, which can reduce the hidden dangers of failure of the power supply battery of the security chip.

[0006] In a first aspect, the present application provides a battery status detection method for a security chip, which is applied to a POS terminal. The battery status detection method includes:

[0007] In the power-on state, collecting battery voltage data of the power supply battery of the security chip, wherein the battery voltage data includes battery voltage data collected at multiple different times;

[0008] storing the battery voltage data in a system log file;

[0009] The system log file is uploaded to a background management system at every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

[0010] Optionally, before collecting the battery voltage data of the power supply battery of the security chip, the battery status detection method further includes:

[0011] Establish the battery voltage collection task of the power supply battery of the safety chip;

[0012] Determine whether the system log file exists;

[0013] If not, create a system log file;

[0014] The collecting of battery voltage data of the power supply battery of the safety chip comprises:

[0015] If yes, then the battery voltage data of the power supply battery of the security chip is collected.

[0016] Optionally, collecting battery voltage data of a power supply battery of the security chip includes:

[0017] Acquiring battery voltage data collected by an external ADC collection circuit through a security chip, wherein the battery voltage data is battery voltage data of a power supply battery of the security chip;

[0018] The battery voltage data sent by the safety chip is received through the main control chip.

[0019] Optionally, after uploading the system log file to the background management system at every preset period so that the background management system determines the working status of the power supply battery of the security chip according to the battery voltage data in the system log file, the battery status detection method further includes:

[0020] Obtaining the working status fed back by the background management system;

[0021] When the working status is abnormal, the working status is displayed on the display interface.

[0022] A second aspect of the present application provides a battery status detection method for a security chip, which is applied to a background management system. The battery status detection method includes:

[0023] Get the system log file uploaded by the POS terminal, the system log file is the

[0024] The collected battery voltage data of the power supply battery of the security chip is stored in the system log file and uploaded at preset intervals in the power-on state, wherein the battery voltage data includes battery voltage data collected at multiple different times;

[0025] The working state of the power supply battery of the security chip is determined according to the battery voltage data in the system log file.

[0026] Optionally, determining the working state of the power supply battery of the security chip according to the battery voltage data in the system log file includes:

[0027] The working status of the power supply battery of the security chip is determined according to the battery power consumption data, and the battery power consumption data is the power consumption data of the power supply battery of the security chip calculated according to the average value of the battery voltage data in the system log file within a preset time period obtained by the background management system.

[0028] A third aspect of the present application provides a battery status detection device for a security chip, which is applied to a POS terminal. The battery status detection device includes:

[0029] A collection unit, used to collect battery voltage data of a power supply battery of a safety chip;

[0030] A storage unit, used for storing the battery voltage data in a system log file;

[0031] The uploading unit is used to upload the system log file to the background management system every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

[0032] Optionally, the battery status detection device further includes:

[0033] An establishment unit is used to establish a battery voltage acquisition task of a power supply battery of a safety chip;

[0034] A judgment unit, used for judging whether a system log file exists;

[0035] The creation unit is used to create a system log file when the system log file does not exist.

[0036] Optionally, the acquisition unit is specifically used for:

[0037] Acquiring battery voltage data collected by an external ADC collection circuit through a security chip, wherein the battery voltage data is battery voltage data of a power supply battery of the security chip;

[0038] The battery voltage data sent by the safety chip is received through the main control chip.

[0039] Optionally, the battery status detection device further includes:

[0040] An acquisition unit, used for acquiring the working status fed back by the background management system;

[0041] The display unit is used to display the working status on a display interface when the working status is abnormal.

[0042] A fourth aspect of the present application provides a battery status detection device for a security chip, which is applied to a background management system. The battery status detection device includes:

[0043] an acquisition unit, configured to acquire a system log file uploaded by the POS terminal, wherein the system log file is uploaded at preset intervals after the POS terminal stores the collected battery voltage data of the power supply battery of the security chip in the system log file when the POS terminal is powered on, and the battery voltage data includes battery voltage data collected at multiple different times;

[0044] A determination unit is used to determine the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

[0045] Optionally, the determination unit is specifically used to determine the working status of the power supply battery of the security chip based on battery power loss data, and the battery power loss data is the average value of the battery voltage data in the system log file within a preset time period obtained by the background management system, and the power loss data of the power supply battery of the security chip is calculated based on the average value.

[0046] A fifth aspect of the present application provides a battery status detection system for a security chip, comprising:

[0047] CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply;

[0048] The memory is a short-term storage memory or a persistent storage memory;

[0049] The central processing unit is configured to communicate with the memory and execute instruction operations in the memory to perform any one of the first aspect and the optional manner of the first aspect and the second aspect and the optional manner of the second aspect.

[0050] The fifth aspect of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute any one of the first aspect and the optional method of the first aspect and the second aspect and the optional method of the second aspect.

[0051] It can be seen from the above technical solutions that this application has the following effects:

[0052] First, the battery voltage data of the power supply battery of the security chip is collected in the power-on state, and the battery voltage data includes battery voltage data collected at multiple different times; then the battery voltage data is stored in the system log file; finally, the system log file is uploaded to the background management system at every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file. In this way, the battery voltage data of the power supply battery of the security chip can be collected in real time during the use of the POS terminal, and stored in the system log file, so that the background management system can analyze and process according to the battery voltage data in the system log file when collecting the system log file, so as to obtain the working state of the power supply battery of the security chip in real time, reduce the situation that the working state of the power supply battery of the security chip cannot be understood in time, so that feedback processing can be carried out in time according to the working state of the power supply battery of the security chip, thereby reducing the hidden dangers of failure of the power supply battery of the security chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of the system framework of a battery status method of a security chip in this application;

[0054] Figure 2 A schematic diagram of an embodiment of a battery status method of a security chip in the present application;

[0055] Figure 3 A schematic diagram of another embodiment of a battery status method of a security chip in the present application;

[0056] Figure 4 A schematic diagram of another embodiment of a battery status method of a security chip in the present application;

[0057] Figure 5 A schematic diagram of another embodiment of a battery status method of a security chip in the present application; Figure 6 A schematic diagram of another embodiment of a battery status method of a security chip in the present application;

[0058] Figure 7 A schematic diagram of an embodiment of a battery status device of a security chip in the present application;

[0059] Figure 8A schematic diagram of an embodiment of a battery status device of a security chip in the present application;

[0060] Fig. 9 A schematic diagram of an embodiment of a battery status system of a security chip in the present application. DETAILED DESCRIPTION

[0061] The present application provides a battery status detection method and related device for a security chip, which are used to reduce the hidden dangers of failure of the power supply battery of the security chip.

[0062] The battery status detection method of the security chip in this application is implemented by the interaction between the POS terminal and the background management system. For details, please refer to Figure 1 As shown. Among them, the main control chip and the security chip in the POS terminal communicate through the serial peripheral interface (SPI) protocol, and the main control chip obtains the battery voltage data of the security chip by sending a battery voltage data request to the security chip. The security chip in the POS terminal communicates with the external ADC acquisition circuit through the general purpose input / output (GPIO) pin. The external ADC acquisition circuit converts the sampled value into battery voltage data through digital-to-analog conversion and sends the battery voltage data to the security chip. The POS terminal communicates with the background management system through a network connection. The POS terminal regularly accesses the background management system and sends system log files to the background management system during the access process.

[0063] When the battery status detection method of the security chip described in this application is applied to a POS terminal for implementation, please refer to Figure 2 As shown, an embodiment of the battery status detection method of the security chip in the present application includes:

[0064] 201. In a power-on state, collecting battery voltage data of a power supply battery of a security chip, the battery voltage data including battery voltage data collected at multiple different times;

[0065] 202. Store the battery voltage data in a system log file;

[0066] 203. Upload the system log file to the background management system at every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

[0067] The battery status detection method of the security chip described in the present application needs to first collect the battery voltage data of the power supply battery of the security chip in the power-on state, and the battery voltage data includes battery voltage data collected at multiple different times; then store the battery voltage data in the system log file; finally upload the system log file to the background management system every preset period, so that the background management system determines the working status of the power supply battery of the security chip according to the battery voltage data in the system log file. In this way, the battery voltage data of the power supply battery of the security chip can be collected in real time during the use of the POS terminal, and stored in the system log file, so that the background management system can analyze and process according to the battery voltage data in the system log file when collecting the system log file, so as to obtain the working status of the power supply battery of the security chip in real time, reduce the situation that the working status of the power supply battery of the security chip cannot be understood in time, so that feedback processing can be carried out in time according to the working status of the power supply battery of the security chip, thereby reducing the hidden dangers of failure of the power supply battery of the security chip.

[0068] exist Figure 2 In step 201 of the illustrated embodiment, the POS terminal collects battery voltage data of the power supply battery of the security chip in the power-on state, and the battery voltage data includes battery voltage data collected at multiple different times. Among them, the security chip is a device that can independently generate keys and encrypt and decrypt. It has an independent processor and storage unit inside, which can store keys and feature data, and can provide encryption and security authentication services. When encrypting with a security chip, the key will be stored in the hardware, and the stolen data cannot be decrypted, thereby protecting business privacy and data security. The security chip of the POS terminal can be used to protect the data security of the POS terminal and prevent malicious attacks in actual applications. Common security chips include cryptographic chips and encryption chips, etc., and their functions include data encryption, identity authentication and secure storage.

[0069] The power supply battery of the security chip is a battery that independently powers the security chip, and a small button battery can be used. Since the main control chip of the POS terminal is mainly responsible for the creation of the task of collecting the battery voltage data of the security chip and the storage of the battery voltage data, when the POS terminal is in the off state, only the security chip of the POS terminal can maintain the working state, and the main control chip cannot maintain the working state. Therefore, in order to maintain the data interaction process between the main control chip and the security chip and realize the collection, transmission and analysis of the battery voltage data of the power supply battery of the security chip, the POS terminal needs to be kept in the on state.

[0070] For details, please refer to Figure 3 As shown, step 101 of collecting battery voltage data of the power supply battery of the security chip by the POS terminal may specifically include:

[0071] 301. Obtaining battery voltage data collected by an external ADC collection circuit through a security chip, where the battery voltage data is battery voltage data of a power supply battery of the security chip;

[0072] 302. Receive battery voltage data sent by the security chip through the main control chip.

[0073] exist Figure 3 In steps 301 to 302 of the illustrated embodiment, the POS terminal first obtains the battery voltage data collected by the external ADC acquisition circuit through the security chip, and then receives the battery voltage data sent by the security chip through the main control chip. It can be understood that the external ADC acquisition circuit is used to collect battery voltage data of the power supply battery of the security chip through a differential amplifier circuit, and reduce data errors through an RC filter circuit composed of a resistor and a capacitor. The security chip is electrically connected to the external ADC acquisition circuit through a GPIO pin, and the battery data collected by the external ADC acquisition circuit is transmitted to the security chip through the GPIO pin. The main control chip communicates with the security chip through the SPI protocol. When the security chip receives the battery voltage data acquisition request sent by the main control chip, the security chip sends the battery voltage data obtained from the external ADC acquisition circuit to the main control chip.

[0074] Before collecting battery voltage data for the battery powering the safety chip, please refer to Figure 4 As shown, before step 201, the following may also be included:

[0075] 401. Establish a battery voltage collection task for a power supply battery of a security chip;

[0076] 402. Determine whether the system log file exists.

[0077] 403. If not, create a system log file;

[0078] If yes, execute step 201.

[0079] exist Figure 4In steps 401 to 402 of the illustrated embodiment, the POS terminal first establishes a battery voltage collection task for the power supply battery of the security chip, and then determines whether the system log file exists. If so, the battery voltage data of the power supply battery of the security chip is collected; if not, a system log file is created. Specifically, when the POS terminal is turned on, the operating system will boot up layer by layer until the Linux operating system and the POS terminal peripherals are fully initialized, and the operating system begins to work formally. At this time, the background service program is loaded, and a battery voltage collection task for the power supply battery of the security chip is established. Then, it is detected whether the system log file for storing battery voltage data exists. If so, the battery voltage collection task can be executed to complete the collection of battery voltage data; if not, a system log file is re-created, and then the battery voltage collection task is executed.

[0080] exist Figure 2 In step 202 of the illustrated embodiment, the POS terminal stores the battery voltage data in a system log file. The system log file can record information about hardware, software, and system problems in the system, and can also monitor events that occur in the system. Users can use it to check the cause of an error or find traces left by an attacker when attacked. In this embodiment, the POS terminal can store the collected battery voltage data in a system log file to facilitate the call of a background management system. The battery voltage data stored in the system log file can be stored in a format that includes data information such as power-on time, power-off time, battery voltage, total power-on time, and battery current, which is not specifically limited here.

[0081] exist Figure 2 In step 203 of the illustrated embodiment, the POS terminal uploads the system log file to the background management system at every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file. Among them, the background management system can obtain the duration of the security chip being powered only by the security chip battery and the magnitude of the change in the battery voltage value during this period by intermittently acquiring the battery voltage data of the power supply battery of the security chip, and then can calculate the staged discharge amount of the power supply battery according to the power supply duration and the voltage value change. Then, the power consumption of the power supply battery is determined according to the staged discharge amount, and the specific working state of the power supply battery is determined according to the power consumption, and the working state is fed back to the after-sales service end, so that the after-sales service personnel can promptly perform after-sales processing on the abnormal power supply battery.

[0082] See also Figure 5 As shown, after step 203, the following steps may also be included:

[0083] 501. Obtain the working status feedback from the background management system;

[0084] 502. When the working status is abnormal, the working status is displayed on the display interface.

[0085] exist Figure 5 In steps 501 to 502 of the illustrated embodiment, the POS terminal first obtains the working status fed back by the background management system, and when the working status is abnormal, the working status is displayed on the display interface. Specifically, when the background management system determines the working status of the power supply battery of the security chip, the background management system can feed back the working status to the POS terminal. After receiving the working status, the POS terminal first determines whether the working status is abnormal. If so, the abnormal status is displayed on the display interface of the POS terminal to prompt the user to handle the power supply battery of the security chip in time. For example, a message "There is an abnormality in the power supply battery of your security chip, please contact the after-sales service personnel for timely processing" can be sent in the form of a pop-up window on the display interface of the POS terminal.

[0086] When the battery status detection method of the security chip described in this application is applied to the background management system for implementation, please refer to Figure 6 As shown, another embodiment of the battery status detection method of the security chip in the present application includes:

[0087] 601. Obtain a system log file uploaded by the POS terminal. The system log file is uploaded every preset period after the POS terminal stores the collected battery voltage data of the power supply battery of the security chip in the system log file when the POS terminal is powered on. The battery voltage data includes battery voltage data collected at multiple different times.

[0088] 602. Determine the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

[0089] The battery status detection method of the security chip described in the present application needs to first obtain the system log file uploaded by the POS terminal. The system log file is uploaded every preset period after the POS terminal stores the collected battery voltage data of the power supply battery of the security chip in the system log file when the POS terminal is turned on. The battery voltage data includes multiple battery voltage data collected at different times; and then the working status of the power supply battery of the security chip is determined according to the battery voltage data in the system log file. In this way, the background management system can analyze and process the battery voltage data transmitted by the POS terminal, and determine the real-time working status of the power supply battery of the security chip according to the analysis and processing results, reducing the situation where the working status of the power supply battery of the security chip cannot be understood in time, so that feedback processing can be carried out in time according to the working status of the power supply battery of the security chip, thereby reducing the hidden dangers of failure of the power supply battery of the security chip.

[0090] exist Figure 6 In step 601 of the illustrated embodiment, the backend management system obtains the system log file uploaded by the POS terminal. The system log file is uploaded every preset period after the POS terminal stores the collected battery voltage data of the power supply battery of the security chip in the system log file when the POS terminal is powered on. The battery voltage data includes multiple battery voltage data collected at different times. The POS terminal in the powered on state will access the backend management system every preset period. The backend management system obtains the system log file uploaded by the POS terminal during each access. The system log file stores multiple battery voltage data of the security chip collected at different times.

[0091] exist Figure 6 In step 602 of the illustrated embodiment, the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file. It is understandable that after obtaining the battery voltage data of the security chip, the background management system needs to analyze and process the battery voltage data to determine the specific working state of the power supply battery, and feed back the working state to the after-sales service end, so that the after-sales service personnel can promptly perform after-sales processing on the abnormal power supply battery.

[0092] Specifically, the background management system can determine the working state of the power supply battery of the security chip according to the battery power consumption data, and the battery power consumption data is the power consumption data of the power supply battery of the security chip obtained by the background management system obtaining the average value of the battery voltage data in the system log file within the preset time period, and calculating the average value thereof. For example, assuming that the preset period is 5 minutes and the preset time period is 1 hour, the POS terminal accesses the background management system every 5 minutes, and the background management system can obtain the battery voltage data every 5 minutes. Within 1 hour, the background management system can obtain 12 battery voltage data, and finally calculate the average value of the 12 battery voltage data. Then, the power consumption data of the power supply battery of the security chip is calculated according to the average value, and the power consumption data can include daily loss data, monthly loss data and annual loss data. Finally, the power consumption data is compared with the preset standard. If the preset standard is not met, it is determined that the power supply battery of the security chip is abnormal; if the preset standard can be met, it is determined that the power supply battery of the security chip is in normal working state. By taking the average value by multiple sampling, the error of the battery voltage data can be reduced and the space occupied by the total data volume can be reduced.

[0093] When the battery status detection device of the security chip described in this application is applied to a POS terminal, please refer to Figure 7As shown, an embodiment of the battery status detection device of the safety chip in the present application includes:

[0094] The collecting unit 701 is used to collect the battery voltage data of the power supply battery of the security chip in the power-on state, and the battery voltage data includes the battery voltage data collected at multiple different times;

[0095] Storage unit 702, used to store battery voltage data into a system log file;

[0096] The uploading unit 703 is used to upload the system log file to the background management system every preset period, so that the background management system determines the working status of the power supply battery of the security chip according to the battery voltage data in the system log file.

[0097] In this embodiment, the acquisition unit 701 acquires the battery voltage data of the power supply battery of the security chip in the power-on state, and the battery voltage data includes the battery voltage data acquired at multiple different times; the storage unit 702 stores the battery voltage data in the system log file; the upload unit 703 uploads the system log file to the background management system at every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file. In this way, the battery voltage data of the power supply battery of the security chip can be acquired in real time during the use of the POS terminal, and stored in the system log file, so that the background management system can analyze and process according to the battery voltage data in the system log file when acquiring the system log file, so as to obtain the working state of the power supply battery of the security chip in real time, thereby reducing the situation where the working state of the power supply battery of the security chip cannot be understood in time, so that feedback processing can be performed in time according to the working state of the power supply battery of the security chip, thereby reducing the hidden dangers of failure of the power supply battery of the security chip.

[0098] When the battery status detection device of the security chip described in this application is applied to the background management system, please refer to Figure 8 As shown, another embodiment of the battery status detection device of the safety chip in the present application includes:

[0099] The acquisition unit 801 is used to acquire a system log file uploaded by the POS terminal. The system log file is uploaded every preset period after the POS terminal stores the collected battery voltage data of the power supply battery of the security chip in the system log file when the POS terminal is powered on. The battery voltage data includes battery voltage data collected at multiple different times.

[0100] The determination unit 802 is used to determine the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

[0101] See also Fig. 9 As shown, an embodiment of the battery status detection system of the safety chip in the present application includes:

[0102] CPU 902, memory 901, input / output interface 903, wired or wireless network interface 904 and power supply 905;

[0103] The memory 901 is a temporary storage memory or a permanent storage memory;

[0104] The CPU 902 is configured to communicate with the memory 901 and execute the instructions in the memory 901 to perform the aforementioned Figures 1 to 5 as well as Figure 6 Steps in the illustrated embodiment.

[0105] The present application provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute the aforementioned Figures 1 to 5 as well as Figure 6 Steps in the illustrated embodiment.

[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0107] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0109] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A method for detecting the battery status of a security chip, characterized in that: Applied to a POS terminal, the battery status detection method includes: In the power-on state, collecting battery voltage data of the power supply battery of the security chip, wherein the battery voltage data includes battery voltage data collected at multiple different times; storing the battery voltage data in a system log file; The system log file is uploaded to a background management system at every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

2. The battery status detection method according to claim 1, characterized in that: Before collecting the battery voltage data of the power supply battery of the security chip, the battery status detection method further includes: Establish the battery voltage collection task of the power supply battery of the safety chip; Determine whether the system log file exists; If not, create a system log file; The collecting of battery voltage data of the power supply battery of the safety chip comprises: If yes, then the battery voltage data of the power supply battery of the security chip is collected.

3. The battery status detection method according to claim 1, characterized in that: The collecting of battery voltage data of the power supply battery of the safety chip comprises: Acquiring battery voltage data collected by an external ADC collection circuit through a security chip, wherein the battery voltage data is battery voltage data of a power supply battery of the security chip; The battery voltage data sent by the safety chip is received through the main control chip.

4. The battery status detection method according to any one of claims 1 to 3, characterized in that: After uploading the system log file to the background management system at every preset period so that the background management system determines the working status of the power supply battery of the security chip according to the battery voltage data in the system log file, the battery status detection method further includes: Obtaining the working status fed back by the background management system; When the working status is abnormal, the working status is displayed on the display interface.

5. A method for detecting the battery status of a safety chip, characterized in that: Applied to the background management system, the battery status detection method includes: Obtaining a system log file uploaded by the POS terminal, wherein the system log file is uploaded at preset intervals after the POS terminal stores the collected battery voltage data of the power supply battery of the security chip in the system log file when the POS terminal is powered on, and the battery voltage data includes battery voltage data collected at multiple different times; The working state of the power supply battery of the security chip is determined according to the battery voltage data in the system log file.

6. The battery status detection method according to claim 5, characterized in that: Determining the working state of the power supply battery of the security chip according to the battery voltage data in the system log file includes: The working status of the power supply battery of the security chip is determined according to the battery power consumption data, and the battery power consumption data is the power consumption data of the power supply battery of the security chip calculated according to the average value of the battery voltage data in the system log file within a preset time period obtained by the background management system.

7. A battery status detection device for a safety chip, characterized in that: Applied to POS terminals, The battery status detection device comprises: A collection unit, used to collect battery voltage data of a power supply battery of the security chip in a powered-on state, wherein the battery voltage data includes battery voltage data collected at multiple different times; A storage unit, used for storing the battery voltage data in a system log file; The uploading unit is used to upload the system log file to the background management system every preset period, so that the background management system determines the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

8. A battery status detection device for a safety chip, characterized in that: Applied to the background management system, the battery status detection device includes: an acquisition unit, configured to acquire a system log file uploaded by the POS terminal, wherein the system log file is uploaded at preset intervals after the POS terminal stores the collected battery voltage data of the power supply battery of the security chip in the system log file when the POS terminal is powered on, and the battery voltage data includes battery voltage data collected at multiple different times; A determination unit is used to determine the working state of the power supply battery of the security chip according to the battery voltage data in the system log file.

9. A battery status detection system for a safety chip, characterized in that: include: CPU, memory, input and output interfaces, wired or wireless network interfaces, and power supply; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instruction operations in the memory to perform the battery status detection method as described in any one of claims 1 to 4 or 5 to 6.

10. A computer-readable storage medium comprising instructions, which, when executed on a computer, enable the computer to execute the battery status detection method according to any one of claims 1 to 4 or 5 to 6.