POS terminal battery safety monitoring method and device and storage medium
By using a pressure sensor to detect the pressure difference of the battery on the POS terminal, the safety hazards caused by lithium battery separation in the handheld POS terminal are solved, and the function of detecting battery safety is realized without opening the battery cover, which improves the safety of the battery .
Patent Information
- Application Number
- CN202411160727.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-10
AI Technical Summary
The polymer battery of handheld POS terminal may cause safety hazards during lithium extraction. The existing battery cover design cannot monitor and track the battery status in real time, making it difficult to detect safety risks in a timely manner.
Three pressure sensors are used to obtain the pressure values of the upper, middle and lower part of the battery, calculate the difference and compare it with the preset threshold value. When the difference exceeds the threshold, it is determined that the battery has structural abnormalities, so that it does not need to open the battery cover. Function to detect battery safety.
Through pressure sensor detection, the safety hazards of the battery can be discovered in a timely manner, the safety of the POS terminal battery is improved, and the battery expansion and health index abnormalities caused by lithium-ion are avoided.
Smart Images

Figure CN119104895A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a method, device and storage medium for monitoring battery safety of a POS terminal. Background Art
[0002] In the modern commercial and financial fields, handheld POS terminals have been widely used for their portability and efficiency. Handheld POS terminals are usually equipped with polymer batteries as power sources to meet the needs of long-term mobile use. When the potential of the negative electrode of the polymer battery is close to or less than the precipitation potential of metallic lithium, lithium ions may precipitate on the surface of the negative electrode in the form of lithium metal. This phenomenon is called "lithium precipitation". The precipitated lithium metal will not only continue to grow and cause the formation of lithium dendrites, but also slowly react with the electrolyte in the battery, gradually causing other battery problems. At this time, the battery needs to be replaced in time.
[0003] However, the battery cover of a handheld POS terminal is generally designed to be locked or screwed, which is a professional device to ensure that the battery cover will not be accidentally opened during normal use of the device. Although the above battery cover design improves the overall safety and durability of the handheld POS terminal, it cannot monitor and track the status of the battery in real time. Once the polymer battery presents a safety risk due to "lithium deposition", it is difficult to detect in time, posing a safety hazard. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a POS terminal battery safety monitoring method, device and storage medium for detecting and tracking the battery health status and risk level, and promptly issuing safety reminders to the terminal to avoid the occurrence of safety problems.
[0005] The technical solution provided in this application is described below:
[0006] The first aspect of the present application provides a method for monitoring battery safety of a POS terminal, comprising:
[0007] When the battery is fully charged, a first pressure value, a second pressure value and a third pressure value are respectively obtained through three pressure sensors, wherein the first pressure value is a pressure value at an upper position of the battery, the second pressure value is a pressure value at a middle position of the battery, and the third pressure value is a pressure value at a lower position of the battery;
[0008] Calculating a first difference value according to the first pressure value and the second pressure value, wherein the first difference value represents a shape comparison between a middle position and an upper position of the battery in a fully charged state;
[0009] Calculating a second difference value according to the second pressure value and the third pressure value, wherein the second difference value represents a shape comparison between a middle position and a lower position of the battery in a fully charged state;
[0010] Comparing the first difference and the second difference with a first preset threshold value respectively;
[0011] When the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value, it is determined that a structural abnormality occurs in the battery.
[0012] Optionally, before respectively acquiring the first pressure value, the second pressure value, and the third pressure value through three pressure sensors when the battery is fully charged, the method further includes:
[0013] Determining whether an adapter is in place, the adapter being used to charge the battery;
[0014] If yes, detecting the battery power;
[0015] If not, and the battery is not fully charged, then the time interval between this battery safety monitoring and the last battery safety monitoring is obtained.
[0016] Optionally, after obtaining the time interval between the current battery safety monitoring and the last battery safety monitoring, the method further includes:
[0017] comparing the time interval with a preset duration;
[0018] If the time interval is less than the preset time length, the detection is suspended and the process continues to wait for the adapter to be in place.
[0019] Optionally, after comparing the time interval with the preset duration, the method further includes:
[0020] If the time interval is greater than the preset time length, a first timed sampling pressure value, a second timed sampling pressure value and a third timed sampling pressure value are respectively obtained through three pressure sensors, wherein the first timed sampling pressure value is a pressure value of the upper position of the battery extracted at a regular time, the second timed sampling pressure value is a pressure value of the middle position of the battery extracted at a regular time, and the third timed sampling pressure value is a pressure value of the lower position of the battery extracted at a regular time;
[0021] Calculating a third difference value according to the first timed sampling pressure value and the second timed sampling pressure value, wherein the third difference value represents a shape comparison between a middle position and an upper position of the battery during timed sampling;
[0022] Calculating a fourth difference value according to the second timing sampling pressure value and the third timing sampling pressure value, wherein the fourth difference value represents a shape comparison between a middle position and a lower position of the battery during timing sampling;
[0023] Comparing the third difference and the fourth difference with a second preset threshold value respectively;
[0024] When the third difference is greater than the second preset threshold value or the fourth difference is greater than the second preset threshold value, it is determined that a structural abnormality occurs in the battery.
[0025] Optionally, calculating a first difference according to the first pressure value and the second pressure value includes:
[0026] A first formula is obtained, wherein the first formula is:
[0027] ΔF1=|F2-F1|
[0028] Wherein, ΔF1 is the first difference, F2 is the second pressure value, and F1 is the first pressure value;
[0029] A first difference is calculated according to the first formula.
[0030] Optionally, calculating the second difference according to the second pressure value and the third pressure value includes:
[0031] A second formula is obtained, where the second formula is:
[0032] ΔF2=|F2-F3|;
[0033] Wherein, ΔF2 is the second difference, F2 is the second pressure value, and F3 is the third pressure value;
[0034] A second difference is calculated according to the second formula.
[0035] A second aspect of the present application provides a POS terminal battery safety monitoring device, which is applied to a POS terminal, comprising:
[0036] A battery cover, a battery compartment, a first pressure sensor, a second pressure sensor, a third pressure sensor and a battery;
[0037] The first pressure sensor, the second pressure sensor and the third pressure sensor are all arranged on the bottom surface of the battery compartment, the battery is detachably placed in the battery compartment, and the battery cover is detachably installed on the battery compartment; the position of the first pressure sensor corresponds to the upper position of the battery, the position of the second pressure sensor corresponds to the middle position of the battery, and the position of the third pressure sensor corresponds to the lower position of the battery; the signal cables of the first pressure sensor, the second pressure sensor and the third pressure sensor are arranged along the surface of the graphite sheet attached to the battery compartment and are connected to the mainboard of the POS terminal.
[0038] The third aspect of the present application provides a POS terminal battery safety monitoring device, comprising:
[0039] an acquisition unit, configured to respectively acquire a first pressure value, a second pressure value, and a third pressure value through three pressure sensors when the battery is fully charged, wherein the first pressure value is a pressure value at an upper position of the battery, the second pressure value is a pressure value at a middle position of the battery, and the third pressure value is a pressure value at a lower position of the battery;
[0040] a first calculation unit, configured to calculate a first difference value according to the first pressure value and the second pressure value, wherein the first difference value represents a shape comparison between a middle position and an upper position of the battery in a fully charged state;
[0041] a second calculation unit, configured to calculate a second difference value according to the second pressure value and the third pressure value, wherein the second difference value represents a shape comparison between a middle position and a lower position of the battery in a fully charged state;
[0042] A difference comparison unit, used to compare the first difference and the second difference with a first preset threshold value respectively;
[0043] An execution unit is used to determine that a structural abnormality occurs in the battery when the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value.
[0044] A fourth aspect of the present application provides a POS terminal battery safety monitoring device, the device comprising:
[0045] Processor, memory, input-output unit, and bus;
[0046] The processor is connected to the memory, the input and output unit, and the bus;
[0047] The memory stores a program, and the processor calls the program to execute the first aspect and the optional method for monitoring battery safety of a POS terminal according to any one of the first aspects.
[0048] A fifth aspect of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed on a computer, the program executes the POS terminal battery safety monitoring method of the first aspect and any optional item in the first aspect.
[0049] It can be seen from the above technical solutions that this application has the following advantages:
[0050] The present application provides a method for monitoring the safety of POS terminal batteries. When the battery is fully charged, three pressure sensors are used to obtain a first pressure value, a second pressure value, and a third pressure value. The first pressure value is the pressure value at the upper position of the battery, the second pressure value is the pressure value at the middle position of the battery, and the third pressure value is the pressure value at the lower position of the battery. A first difference is calculated based on the first pressure value and the second pressure value. A second difference is calculated based on the second pressure value and the third pressure value. The first difference and the second difference are compared with a first preset threshold value respectively. When the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value, it is determined that the battery has a structural abnormality. In the present application, three-point pressure values are obtained for difference calculation and comparison detection. When the pressure difference between the second pressure value and the first pressure value or the third pressure value exceeds the preset threshold value, it indicates that the middle of the battery has expanded, that is, the battery has a structural abnormality or the battery health index is abnormal. This realizes the function of detecting battery safety without opening the battery cover, timely discovers battery safety hazards, and improves the safety of POS terminal batteries. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0052] Figure 1 A flowchart of an embodiment of a method for monitoring battery safety of a POS terminal provided in the present application;
[0053] Figure 2 A flowchart of another embodiment of the method for monitoring battery safety of a POS terminal provided in the present application;
[0054] Figure 3 A flowchart of another embodiment of the method for monitoring battery safety of a POS terminal provided in the present application;
[0055] Figure 4 A schematic diagram of the structure of an embodiment of a POS terminal battery safety monitoring device provided in the present application;
[0056] Figure 5 A schematic diagram of another embodiment of the POS terminal battery safety monitoring device provided by the present application;
[0057] Figure 6 This is a schematic structural diagram of another embodiment of the POS terminal battery safety monitoring device provided in the present application. DETAILED DESCRIPTION
[0058] The present application provides a POS terminal battery safety monitoring method, device and storage medium for detecting and tracking the battery health status and risk level, and promptly issuing safety reminders to the terminal to avoid the occurrence of safety problems.
[0059] It should be noted that the POS terminal battery safety monitoring method provided in the present application can be applied to the terminal, the system, or the server. For example, the terminal can be a smart phone or computer, tablet computer, smart TV, smart watch, portable computer terminal, or a fixed terminal such as a desktop computer.
[0060] It should also be noted that the terms "first", "second", etc. in the specification and drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order, sequence or importance.
[0061] See also Figure 1 , Figure 1 An embodiment of a POS terminal battery safety monitoring method provided in the present application includes:
[0062] Step S101: when the battery is fully charged, a first pressure value, a second pressure value and a third pressure value are respectively obtained through three pressure sensors, wherein the first pressure value is the pressure value at the upper position of the battery, the second pressure value is the pressure value at the middle position of the battery, and the third pressure value is the pressure value at the lower position of the battery;
[0063] Step S102, calculating a first difference value according to the first pressure value and the second pressure value, wherein the first difference value represents a shape comparison between a middle position and an upper position of the battery in a fully charged state;
[0064] Step S103, calculating a second difference value according to the second pressure value and the third pressure value, wherein the second difference value represents a shape comparison between a middle position and a lower position of the battery in a fully charged state;
[0065] Step S104, comparing the first difference and the second difference with a first preset threshold value respectively;
[0066] Step S105: When the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value, it is determined that a structural abnormality occurs in the battery.
[0067] The POS terminal battery safety monitoring method of the present invention first obtains the first pressure value, the second pressure value and the third pressure value through three pressure sensors respectively when the battery is fully charged; then calculates the first difference according to the first pressure value and the second pressure value; then calculates the second difference according to the second pressure value and the third pressure value; further compares the first difference and the second difference with the first preset threshold value respectively; finally, when the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value, it is determined that the battery has a structural abnormality and reminds the user to replace the battery. In this application, three pressure values are obtained and then the difference calculation and comparison detection are performed. When the pressure difference between the second pressure value and the first pressure value or the pressure difference between the second pressure value and the third pressure value exceeds the first preset threshold value, it indicates that the middle part of the battery has expanded, that is, the battery has a structural abnormality or the battery health index is abnormal, which realizes the function of detecting battery safety without opening the battery cover, timely discovers the safety hazards of the battery, and improves the safety of the POS terminal battery.
[0068] In step S101 of some embodiments, when the battery is fully charged, the first pressure value, the second pressure value and the third pressure value are respectively obtained through three pressure sensors, the first pressure value is the pressure value at the upper position of the battery, the second pressure value is the pressure value at the middle position of the battery, and the third pressure value is the pressure value at the lower position of the battery. It should be noted that the pressure sensors mentioned in this application can use capacitive flexible pressure sensors or resistive flexible pressure sensors.
[0069] Currently, polymer batteries, especially lithium batteries, are commonly used in handheld POS terminals. However, lithium batteries may cause lithium deposition in the battery due to time problems and usage habits during use. Other reactions caused by lithium deposition cause the battery volume to expand, and extend outward from the middle of the battery. Therefore, using the above principle, pressure sensors are placed at the upper, middle and lower parts of the battery respectively, and pressure values at the three positions are collected. When the battery volume expands, pressure is generated on the pressure sensor, so that the difference in pressure values can be used to determine whether the battery has a volume expansion that poses a safety hazard. The pressure values collected in step S101 are all pressure values when the battery is fully charged.
[0070] Reference Figure 2 According to some embodiments of the present invention, in order to detect the safety of the battery in the most extreme case, it is also necessary to determine whether the adapter is in place before detecting that the battery is fully charged, which may include, but is not limited to, the following:
[0071] Step S201, determine whether the adapter is in place, the adapter is used to charge the battery; if so, execute step S202, if not, and the battery is not fully charged, execute step S203;
[0072] Step S202, detecting the battery power;
[0073] Step S203: Obtain the time interval between the current battery safety monitoring and the last battery safety monitoring.
[0074] In some embodiments, in step S201 to step S202, it is determined whether the adapter is in place, and the adapter is used to charge the battery. If the adapter is in place, the battery power is detected. When the adapter is in place and the battery is fully charged, the battery has reached the fullest state, and the battery volume and safety of the battery in the most extreme case can be monitored.
[0075] In step S203 of some embodiments, if the adapter is not in place and the battery is not fully charged, the time interval between this battery safety monitoring and the last battery safety monitoring is obtained. In the scenario where the user actually uses the product, the battery does not necessarily have to be used until it is shut down or fully charged before use. Therefore, in order to take into account the above-mentioned usage scenarios, timed sampling monitoring is performed when the adapter is not in place and / or the battery is not full, to avoid safety issues such as failure to monitor the battery health in a timely manner. It should be noted that the priority of safety monitoring when the adapter is in place and the battery is fully charged is higher than the priority of timed sampling monitoring.
[0076] Reference Figure 3 According to some embodiments of the present invention, after it is determined in step S203 that the adapter is not in place, a pressure value is sampled regularly to monitor the safety of the battery. After obtaining the time interval between the current battery safety monitoring and the last battery safety monitoring, the following may be specifically included, but not limited to:
[0077] Step S301, comparing the time interval with the preset time length;
[0078] Step S302: If the time interval is less than the preset time length, the detection is suspended and the process continues to wait for the adapter to be in place.
[0079] Step S303, if the time interval is greater than the preset time length, a first timed sampling pressure value, a second timed sampling pressure value and a third timed sampling pressure value are respectively obtained through three pressure sensors, the first timed sampling pressure value is the pressure value of the upper position of the battery extracted at a timed interval, the second timed sampling pressure value is the pressure value of the middle position of the battery extracted at a timed interval, and the third timed sampling pressure value is the pressure value of the lower position of the battery extracted at a timed interval;
[0080] Step S304, calculating a third difference value according to the first timed sampling pressure value and the second timed sampling pressure value, the third difference value representing a shape comparison between a middle position and an upper position of the battery during the timed sampling;
[0081] Step S305, calculating a fourth difference value according to the second timing sampling pressure value and the third timing sampling pressure value, wherein the fourth difference value represents a shape comparison between a middle position and a lower position of the battery during the timing sampling;
[0082] Step S306, comparing the third difference and the fourth difference with the second preset threshold respectively;
[0083] Step S307: When the third difference is greater than the second preset threshold value or the fourth difference is greater than the second preset threshold value, it is determined that a structural abnormality occurs in the battery.
[0084] In some embodiments, in step S301 to step S302, the time interval is first compared with the preset duration. If the time interval is less than the preset duration, the detection is suspended and the adapter is continued to be in place. It should be noted that the preset duration is the time interval for scheduled sampling monitoring. The preset duration in this application can be set to 1 day, that is, if the time interval between the current battery safety monitoring and the last battery safety monitoring is less than 1 day, it means that the battery safety monitoring control is within the preset range and the battery safety can still be guaranteed.
[0085] In steps S303 to S307 of some embodiments, if the time interval is greater than the preset time length, the first timed sampling pressure value, the second timed sampling pressure value and the third timed sampling pressure value are obtained respectively through three pressure sensors; then the third difference is calculated according to the first timed sampling pressure value and the second timed sampling pressure value; then the fourth difference is calculated according to the second timed sampling pressure value and the third timed sampling pressure value; the third difference and the fourth difference are further compared with the second preset threshold value respectively; finally, when the third difference is greater than the second preset threshold value or the fourth difference is greater than the second preset threshold value, it is determined that the battery has a structural abnormality. If the time interval between this battery safety monitoring and the last battery safety monitoring is greater than 1 day, it means that there is a time loophole in the battery safety monitoring, and safety monitoring needs to be carried out immediately. Therefore, the pressure values obtained by the three pressure sensors at this time are the data of the current state of the battery extracted at regular intervals, and the three pressure sensors collect the pressure values of the upper, middle and lower positions of the battery respectively. It should be noted that, considering that if battery expansion occurs, the battery volume expansion is generally more obvious when the battery is fully charged, the first preset threshold value mentioned in steps S101 to S105 is greater than the second preset threshold value mentioned in steps S301 to S307.
[0086] Then, a third difference is calculated based on the first timed sampling pressure value and the second timed sampling pressure value, which is used to compare the volume difference between the upper position and the middle position of the battery. It should be noted that the third difference is calculated based on the third formula, which is: ΔF3=|F 2定 -F 1定 |, where ΔF3 is the third difference, F 1定is the first timed sampling pressure value, F 2定 It is the second timing sampling pressure value.
[0087] Similarly, a fourth difference is calculated based on the second timed sampling pressure value and the third timed sampling pressure value, which is used to compare the volume difference between the middle and lower positions of the battery. It should be noted that the fourth difference is calculated based on the fourth formula, which is: ΔF4 = |F 2定 -F 3定 |, where ΔF4 is the fourth difference, F 2定 is the second timed sampling pressure value, F 3定 It is the third timed sampling pressure value.
[0088] The third difference and the fourth difference are then compared with the preset threshold values. It should be noted that the preset threshold value is the threshold pressure value of the battery health status that is collected and recorded during the charge and discharge cycle test of multiple batteries during the development and testing phase of the POS terminal project, and then summarized, that is, the second threshold value. Exceeding the second preset threshold value means that the battery is in an unhealthy state. When the third difference is greater than the second preset threshold value, it means that in the current state, the volume difference between the middle position of the battery and the upper position is too large, and it is confirmed that the battery has undergone structural deformation with potential safety hazards; similarly, when the fourth difference is greater than the second preset threshold value, it means that in the current state, the volume difference between the middle position of the battery and the lower position is too large, and it can still be confirmed that the battery has undergone structural deformation. Through the above numerical comparison, once the volume expansion of the middle position exceeds the second preset threshold value compared to the upper position or the lower position, the battery health index exceeds the standard information, and a reminder is issued to the user to recommend replacing the battery.
[0089] In step S102 of some embodiments, a first difference is calculated based on the first pressure value and the second pressure value, and the first difference represents the shape comparison between the middle position and the upper position of the battery in a fully charged state. In step S101, the pressure values of three positions of the battery in a fully charged state are obtained, and the first difference is calculated based on the first pressure value and the second pressure value to compare the volume difference between the upper position and the middle position of the battery. It should be noted that the calculation of the first difference is based on the first formula, and the first formula is: ΔF1=|F2-F1|; wherein ΔF1 is the first difference, F2 is the second pressure value, and F1 is the first pressure value.
[0090] In step S103 of some embodiments, a second difference is calculated based on the second pressure value and the third pressure value, and the second difference represents the shape comparison between the middle and lower positions of the battery in the fully charged state. Similarly, the second difference is calculated based on the second pressure value and the third pressure value to compare the difference in volume between the middle and lower positions of the battery. It should be noted that the second difference is calculated based on the second formula, which is: ΔF2 = |F2-F3|; wherein ΔF2 is the second difference, F2 is the second pressure value, and F3 is the third pressure value.
[0091] In step S104 of some embodiments, the first difference and the second difference are compared with the first preset threshold respectively. It should be noted that the first preset threshold is greater than the second threshold, and step S104 is similar to step S306, which will not be described again.
[0092] In step S105 of some embodiments, when the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value, it is determined that the battery has a structural abnormality. When the first difference is greater than the first preset threshold value, it means that when the battery is fully charged, the volume difference between the middle position of the battery and the upper position of the battery is too large, and it is confirmed that the battery has a structural deformation that poses a safety hazard; similarly, when the second difference is greater than the first preset threshold value, it means that when the battery is fully charged, the volume difference between the middle position of the battery and the lower position of the battery is too large, and it can still be confirmed that the battery has a structural deformation. Through the above-mentioned numerical comparison, once the volume expansion of the middle position exceeds the first preset threshold value compared to the upper position or the lower position, the battery health index exceeds the standard information, and a reminder is issued to the user to recommend replacing the battery.
[0093] The above embodiment describes the POS terminal battery safety monitoring method provided by the present application. The following describes the POS terminal battery safety monitoring device and storage medium provided by the present application:
[0094] See also Figure 4 , Figure 4 An embodiment of a POS terminal battery safety monitoring device provided in the present application includes:
[0095] A battery cover, a battery compartment 401, a first pressure sensor 402, a second pressure sensor 403, a third pressure sensor 404 and a battery; the first pressure sensor 402, the second pressure sensor 403 and the third pressure sensor 404 are all arranged on the bottom surface of the battery compartment 401, the battery is detachably placed in the battery compartment 401, and the battery cover is detachably installed on the battery compartment 401; the position of the first pressure sensor 402 corresponds to the upper position of the battery, the position of the second pressure sensor 403 corresponds to the middle position of the battery, and the position of the third pressure sensor 404 corresponds to the lower position of the battery; the signal cables of the first pressure sensor 402, the second pressure sensor 403 and the third pressure sensor 404 are arranged along the surface of the graphite sheet 405 attached to the battery compartment and are connected to the mainboard 406 of the POS terminal.
[0096] In this embodiment, a graphite sheet 405 material adapted to the shape of the battery compartment 401 is also provided in the battery compartment 401 of the POS terminal. The first pressure sensor 402, the second pressure sensor 403 and the third pressure sensor 404 are provided on the bottom surface of the battery compartment 401 through the graphite sheet 405 material. When the battery is detachably placed in the battery compartment 401, the three pressure sensors are located below the battery. The first pressure sensor 402 corresponds to the upper position of the battery and is used to monitor the deformation of the upper position of the battery; the second pressure sensor 403 corresponds to the middle position of the battery and is used to monitor the deformation of the middle position of the battery; the third pressure sensor 404 corresponds to the lower position of the battery and is used to monitor the deformation of the lower position of the battery. The signal cables of the three pressure sensors are arranged along the surface of the graphite sheet 405 material attached to the battery compartment 401 and connected to the main board 406 to transmit the collected pressure value data to the main board 406.
[0097] See also Figure 5 , Figure 5 Another embodiment of the POS terminal battery safety monitoring device provided in the present application includes:
[0098] An acquisition unit 501 is used to acquire a first pressure value, a second pressure value and a third pressure value respectively through three pressure sensors when the battery is fully charged, wherein the first pressure value is a pressure value at an upper position of the battery, the second pressure value is a pressure value at a middle position of the battery, and the third pressure value is a pressure value at a lower position of the battery;
[0099] A first calculation unit 502, configured to calculate a first difference value according to the first pressure value and the second pressure value, wherein the first difference value represents a shape comparison between a middle position and an upper position of the battery in a fully charged state;
[0100] A second calculation unit 503 is used to calculate a second difference value according to the second pressure value and the third pressure value, wherein the second difference value represents a shape comparison between a middle position and a lower position of the battery in a fully charged state;
[0101] A difference comparison unit 504, configured to compare the first difference and the second difference with a first preset threshold value respectively;
[0102] The execution unit 505 is configured to determine that a structural abnormality occurs in the battery when the first difference is greater than a first preset threshold value or the second difference is greater than the first preset threshold value.
[0103] Optionally, before obtaining unit 501, the method further includes:
[0104] A determination unit 506, used to determine whether an adapter is in place, the adapter being used to charge the battery;
[0105] A power detection unit 507 is used to detect the battery power when the adapter is in place;
[0106] The detection time unit 508 is used to obtain the time interval between the current battery safety monitoring and the last battery safety monitoring when the adapter is not in place and the battery is not fully charged.
[0107] Optionally, after the detection time unit 508, the following is further included:
[0108] A time comparison unit 509, used to compare the time interval with a preset time length;
[0109] The re-determination unit 510 is used to suspend the detection if the time interval is less than a preset time length, and continue to wait for the adapter to be in place.
[0110] Optionally, after the time comparison unit 509, the following further includes:
[0111] The timing sampling unit 511 is used to obtain a first timing sampling pressure value, a second timing sampling pressure value and a third timing sampling pressure value through three pressure sensors respectively if the time interval is greater than a preset time length, wherein the first timing sampling pressure value is a pressure value of an upper position of a battery extracted at a timing, the second timing sampling pressure value is a pressure value of a middle position of a battery extracted at a timing, and the third timing sampling pressure value is a pressure value of a lower position of a battery extracted at a timing;
[0112] A third calculation unit 512, configured to calculate a third difference value according to the first timing sampling pressure value and the second timing sampling pressure value, wherein the third difference value represents a shape comparison between a middle position and an upper position of the battery during the timing sampling;
[0113] A fourth calculation unit 513, configured to calculate a fourth difference value according to the second timing sampling pressure value and the third timing sampling pressure value, wherein the fourth difference value represents a shape comparison between a middle position and a lower position of the battery during the timing sampling;
[0114] A sampling difference comparison unit 514, used to compare the third difference and the fourth difference with the second preset threshold value respectively;
[0115] The determination unit 515 is configured to determine that a structural abnormality occurs in the battery when the third difference is greater than the second preset threshold value or the fourth difference is greater than the second preset threshold value.
[0116] Optionally, the first calculating unit 502 is specifically configured to:
[0117] Get the first formula, the first formula is:
[0118] ΔF1=|F2-F1|;
[0119] Wherein, ΔF1 is the first difference, F2 is the second pressure value, and F1 is the first pressure value;
[0120] A first difference is calculated according to the first formula.
[0121] Optionally, the second calculating unit 503 is specifically configured to:
[0122] Get the second formula, the second formula is:
[0123] ΔF2=|F2-F3|;
[0124] Wherein, ΔF2 is the second difference, F2 is the second pressure value, and F3 is the third pressure value;
[0125] A second difference is calculated according to the second formula.
[0126] This application also provides a POS terminal battery safety monitoring device, see Figure 6 , Figure 6 Another embodiment of the POS terminal battery safety monitoring device provided in the present application includes:
[0127] Processor 601, memory 602, input and output unit 603, bus 604;
[0128] The processor 601 is connected to the memory 602, the input and output unit 603 and the bus 604;
[0129] The memory 602 stores a program, and the processor 601 calls the program to execute the following steps: Figure 1 , Figure 2 or Figure 3 The POS terminal battery safety monitoring method shown in the embodiment.
[0130] The present application also relates to a computer-readable storage medium, on which a program is stored, wherein when the program is run on a computer, the computer executes Figure 1 , Figure 2 or Figure 3 The POS terminal battery safety monitoring method shown in the embodiment.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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.
[0135] 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 monitoring battery safety of a POS terminal, characterized in that: The monitoring method comprises: When the battery is fully charged, a first pressure value, a second pressure value and a third pressure value are respectively obtained through three pressure sensors, wherein the first pressure value is a pressure value at an upper position of the battery, the second pressure value is a pressure value at a middle position of the battery, and the third pressure value is a pressure value at a lower position of the battery; Calculating a first difference value according to the first pressure value and the second pressure value, wherein the first difference value represents a shape comparison between a middle position and an upper position of the battery in a fully charged state; Calculating a second difference value according to the second pressure value and the third pressure value, wherein the second difference value represents a shape comparison between a middle position and a lower position of the battery in a fully charged state; Comparing the first difference and the second difference with a first preset threshold value respectively; When the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value, it is determined that a structural abnormality occurs in the battery.
2. The monitoring method according to claim 1, characterized in that: Before respectively acquiring the first pressure value, the second pressure value and the third pressure value through three pressure sensors when the battery is fully charged, the method further includes: Determining whether an adapter is in place, the adapter being used to charge the battery; If yes, detecting the battery power; If not, and the battery is not fully charged, then the time interval between this battery safety monitoring and the last battery safety monitoring is obtained.
3. The monitoring method according to claim 2, characterized in that: After obtaining the time interval between the current battery safety monitoring and the last battery safety monitoring, the method further includes: comparing the time interval with a preset duration; If the time interval is less than the preset time length, the detection is suspended and the process continues to wait for the adapter to be in place.
4. The monitoring method according to claim 3, characterized in that: After comparing the time interval with the preset duration, the method further includes: If the time interval is greater than the preset time length, a first timed sampling pressure value, a second timed sampling pressure value and a third timed sampling pressure value are respectively obtained through three pressure sensors, wherein the first timed sampling pressure value is a pressure value of the upper position of the battery extracted at a regular time, the second timed sampling pressure value is a pressure value of the middle position of the battery extracted at a regular time, and the third timed sampling pressure value is a pressure value of the lower position of the battery extracted at a regular time; Calculating a third difference value according to the first timing sampling pressure value and the second timing sampling pressure value, wherein the third difference value represents a shape comparison between a middle position and an upper position of the battery during timing sampling; Calculating a fourth difference value according to the second timing sampling pressure value and the third timing sampling pressure value, wherein the fourth difference value represents a shape comparison between a middle position and a lower position of the battery during timing sampling; Comparing the third difference and the fourth difference with a second preset threshold value respectively; When the third difference is greater than the second preset threshold value or the fourth difference is greater than the second preset threshold value, it is determined that a structural abnormality occurs in the battery.
5. The monitoring method according to claim 1, characterized in that: The calculating the first difference according to the first pressure value and the second pressure value comprises: A first formula is obtained, where the first formula is: ΔF1=|F2-F1|; Wherein, ΔF1 is the first difference, F2 is the second pressure value, and F1 is the first pressure value; A first difference is calculated according to the first formula.
6. The monitoring method according to claim 1, characterized in that: The calculating the second difference according to the second pressure value and the third pressure value comprises: A second formula is obtained, where the second formula is: ΔF2=|F2-F3|; Wherein, ΔF2 is the second difference, F2 is the second pressure value, and F3 is the third pressure value; A second difference is calculated according to the second formula.
7. A POS terminal battery safety monitoring device, characterized in that: Applied to POS terminals, the monitoring device comprises: a battery cover, a battery compartment, a first pressure sensor, a second pressure sensor, a third pressure sensor and a battery; The first pressure sensor, the second pressure sensor and the third pressure sensor are all arranged on the bottom surface of the battery compartment, the battery is detachably placed in the battery compartment, and the battery cover is detachably installed on the battery compartment; the position of the first pressure sensor corresponds to the upper position of the battery, the position of the second pressure sensor corresponds to the middle position of the battery, and the position of the third pressure sensor corresponds to the lower position of the battery; the signal cables of the first pressure sensor, the second pressure sensor and the third pressure sensor are arranged along the surface of the graphite sheet attached to the battery compartment and are connected to the mainboard of the POS terminal.
8. A POS terminal battery safety monitoring device, characterized in that: The monitoring device comprises: an acquisition unit, configured to respectively acquire a first pressure value, a second pressure value, and a third pressure value through three pressure sensors when the battery is fully charged, wherein the first pressure value is a pressure value at an upper position of the battery, the second pressure value is a pressure value at a middle position of the battery, and the third pressure value is a pressure value at a lower position of the battery; a first calculation unit, configured to calculate a first difference value according to the first pressure value and the second pressure value, wherein the first difference value represents a shape comparison between a middle position and an upper position of the battery in a fully charged state; a second calculation unit, configured to calculate a second difference value according to the second pressure value and the third pressure value, wherein the second difference value represents a shape comparison between a middle position and a lower position of the battery in a fully charged state; A difference comparison unit, used to compare the first difference and the second difference with a first preset threshold value respectively; An execution unit is used to determine that a structural abnormality occurs in the battery when the first difference is greater than the first preset threshold value or the second difference is greater than the first preset threshold value.
9. A POS terminal battery safety monitoring device, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 6.
