Payment terminal control method and apparatus, and payment terminal

By adjusting the working mode of the battery management system in the payment terminal and switching to the appropriate charging mode according to the usage data, the problem of shortening the battery life is solved, and the effect of extending the battery life and meeting user needs is achieved.

WO2025138619A1PCT designated stage expired Publication Date: 2025-07-03SHENZHEN PAX SMART NEW TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/098883
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-26
Filing Date
2024-06-13
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

In the prior art, the battery management system of the payment terminal cannot be intelligently managed according to diversified application scenarios, resulting in repeated charging and discharging of rechargeable batteries at high power levels, shortening battery life and affecting user experience.

Method used

After the payment terminal is started, adjust the operating mode of the battery management system according to the usage data, and switch to different charging modes, such as mobile mode, desktop mode or idle mode, to avoid charging and discharging at high power levels and extend battery life.

Benefits of technology

It effectively extends the battery life of the payment terminal, ensures that the battery power meets user needs in different usage scenarios, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024098883_03072025_PF_FP_ABST
    Figure CN2024098883_03072025_PF_FP_ABST
Patent Text Reader

Abstract

The present application is applicable to the technical field of smart payment. Provided are a payment terminal control method and apparatus, and a payment terminal. The payment terminal control method comprises: when a payment terminal is started, controlling the operating mode of a battery management system to be a first operating mode; acquiring first usage data of the payment terminal; and when the first usage data meets a switching condition, switching the operating mode of the battery management system from the first operating mode to a second operating mode, wherein the first operating mode is a mobile mode and the second operating mode is a desktop mode, or the first operating mode is the desktop mode and the second operating mode is the mobile mode, and a first full charge capacity corresponding to the desktop mode is less than a second full charge capacity corresponding to the mobile mode. By means of the present solution, the operating mode of a battery management system can be adjusted on the basis of the usage scenario of a payment terminal, thereby prolonging the service life of a battery.
Need to check novelty before this filing date? Find Prior Art

Description

Payment terminal control method, device and payment terminal

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 26, 2023, with application number 202311832831.0 and invention name “Control method, device and payment terminal of payment terminal”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application belongs to the field of smart payment technology, and in particular relates to a control method and device for a payment terminal and a payment terminal. Background Art

[0003] Payment terminals, especially smart payment terminals, are increasingly widely used to meet the diverse technical and scenario requirements of offline mobile payments. During the use of payment terminals, battery life is a key indicator that affects the user experience.

[0004] In related technologies, a battery management system (BMS) is typically used to intelligently manage and maintain the rechargeable batteries in payment terminals. For example, when a payment terminal is connected to an external power source for a long period of time, the rechargeable battery is repeatedly charged and discharged at high power levels, significantly shortening its service life and affecting the user experience.

[0005] However, the battery management system does not provide extensive intervention in battery charging, which cannot meet the diverse application scenarios of payment terminals. For example, when a payment terminal is connected to an external power source for a long time, repeatedly charging the rechargeable battery at high power levels will significantly shorten the battery's service life and affect the user experience. Technical issues

[0006] Embodiments of the present application provide a control method and device for a payment terminal, a payment terminal, and a computer-readable storage medium, which are used to adjust the operating mode of a battery management system according to the usage scenario of the payment terminal to extend the battery life. Technical Solutions

[0007] In a first aspect, an embodiment of the present application provides a control method for a payment terminal, which is applied to a payment terminal, and the payment terminal includes a battery management system. The method includes: when the payment terminal is started, controlling the working mode of the battery management system to a first working mode; obtaining first usage data of the payment terminal; when the first usage data meets the switching condition, switching the working mode of the battery management system from the first working mode to a second working mode; wherein the first working mode is a mobile mode and the second working mode is a desktop mode; or, the first working mode is a desktop mode and the second working mode is a mobile mode; wherein the first full charge corresponding to the desktop mode is less than the second full charge corresponding to the mobile mode.

[0008] In one possible implementation, the above-mentioned first usage data includes the first battery usage time of the payment terminal during the collection period and the sub-data generated daily. When the first working mode is mobile mode and the second working mode is desktop mode, the switching condition is the first switching condition; wherein, the first switching condition includes that the first battery usage time is less than the first preset threshold, and the number of times the first sub-data appears during the collection period is greater than or equal to the second preset threshold, and the first sub-data is the sub-data in the first usage data whose data volume is greater than or equal to the third preset threshold.

[0009] In one possible implementation, the first usage data includes the first battery usage time of the payment terminal during the collection period; when the first working mode is desktop mode and the second working mode is mobile mode, the switching condition is the second switching condition; wherein the second switching condition includes: the first battery usage time is greater than or equal to the first preset threshold.

[0010] In a possible implementation, after obtaining the first usage data of the payment terminal, the method further includes: controlling the operating mode of the battery management system to remain in the first operating mode when the first usage data does not meet the switching condition.

[0011] In one possible implementation, the first usage data includes sub-data generated daily by the payment terminal during a collection period, the second operating mode is a mobile mode, and after the operating mode of the battery management system is switched from the first operating mode to the second operating mode, the method further includes: acquiring second usage data, wherein the second usage data is data generated by the payment terminal during a first time period, the first time period being a time period from a first moment to a current moment, and the first moment being the moment when the battery management system is switched to the mobile mode;

[0012] When the second usage data indicates that the payment terminal is in an idle state during the second time period, the operating mode of the battery management system is switched from the second operating mode to the idle mode when the operating time of the payment terminal is during the second time period.

[0013] In one possible implementation, when the operating time of the payment terminal is in the second time period, switching the operating mode of the battery management system from the second operating mode to the idle mode includes: when the operating time of the payment terminal reaches a second moment, switching the operating mode of the battery management system from the second operating mode to the idle mode to charge the battery of the payment terminal according to the third full charge, wherein the second moment is a start time of the second time period;

[0014] When the interval between the operating time of the payment terminal and the third moment reaches a preset time, the battery of the payment terminal is charged according to the fourth full charge amount, and when the operating time of the payment terminal reaches the third moment, the working mode of the battery management system is switched from idle mode to mobile mode; wherein the third moment is the end moment of the second time period.

[0015] In one possible implementation, the method further includes: when the payment terminal is started, determining a target operating mode in response to a mode setting operation input by a user; controlling the operating mode of the battery management system to the target operating mode, wherein the target operating mode is a desktop mode, a mobile mode, or an adaptive mode.

[0016] In a possible implementation, after the operating mode of the battery management system is switched from the first operating mode to the second operating mode, the method further includes: outputting first prompt information, where the first prompt information is used to prompt the battery management system to switch its operating mode to the second operating mode.

[0017] In a second aspect, an embodiment of the present application provides a control device for a payment terminal, comprising:

[0018] A mode switching module, configured to control the operating mode of the battery management system of the payment terminal to be the first operating mode when the payment terminal is started;

[0019] A first acquisition module, configured to acquire first usage data of the payment terminal;

[0020] The mode switching module is further configured to switch the operating mode of the battery management system from the first operating mode to the second operating mode when the first usage data satisfies a switching condition;

[0021] Among them, the first working mode is mobile mode, and the second working mode is desktop mode; or, the first working mode is desktop mode, and the second working mode is mobile mode; among them, the first full charge capacity corresponding to the desktop mode is less than the second full charge capacity corresponding to the mobile mode.

[0022] In a third aspect, an embodiment of the present application provides a payment terminal comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the payment terminal control method as described in any one of the first aspects above are implemented.

[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the control method of the payment terminal as described in any one of the first aspects above.

[0024] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a payment terminal, the payment terminal executes the payment terminal control method described in any one of the first aspects above.

[0025] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0026] In an embodiment of the present application, the battery management system of the payment terminal can have multiple functional modes, so that the working mode of the battery management system can be adjusted according to the usage scenario of the payment terminal, and the battery of the payment terminal can be charged and discharged with different full charge levels, which can avoid always charging and discharging the battery of the payment terminal at a high power level, and can extend the battery life.

[0027] Furthermore, after the payment terminal is started, the operating mode of the battery management system is controlled to be the first operating mode. Thereafter, first usage data of the payment terminal is obtained. When the first usage data satisfies a switching condition, the operating mode of the battery management system is switched from the first operating mode to the second operating mode. In this way, on the one hand, when the payment terminal is switched from a handheld mode to a mode of long-term access to an external power source, the operating mode of the battery management system can be switched from a mobile mode to a desktop mode to reduce the full charge level of the battery of the payment terminal. In this way, when the payment terminal is long-term connected to an external power source, the battery of the payment terminal can be prevented from being repeatedly charged and discharged at a high power level, thereby extending the battery life. On the other hand, when the payment terminal is switched from a long-term access to an external power source to a handheld mode, the operating mode of the battery management system can be switched from a desktop mode to a mobile mode. In this way, the battery of the payment terminal can be charged at a higher power level, thereby ensuring that the battery power of the payment terminal can meet the user's usage needs every time the user uses the payment terminal (i.e., the handheld payment terminal).

[0028] In addition, when the working mode of the battery management system is mobile mode, the working mode of the battery management system can be switched from mobile mode to idle mode. In this way, while ensuring the user's power demand for the payment terminal, the battery life can be maximized. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. 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 any creative work.

[0030] FIG1 is a flow chart of a control method for a payment terminal according to an embodiment of the present application;

[0031] FIG2 is a second flow chart of a control method for a payment terminal according to an embodiment of the present application;

[0032] FIG3 is a third flow chart of a control method for a payment terminal according to an embodiment of the present application;

[0033] FIG4 is a fourth flow chart of a control method for a payment terminal according to an embodiment of the present application;

[0034] FIG5 is a fifth flow chart of a control method for a payment terminal according to an embodiment of the present application;

[0035] FIG6 is a sixth flow chart of a control method for a payment terminal according to an embodiment of the present application;

[0036] FIG7 is a seventh flow chart of a control method for a payment terminal according to an embodiment of the present application;

[0037] FIG8 is a schematic structural diagram of a control device of a payment terminal provided in an embodiment of the present application;

[0038] FIG9 is a schematic diagram of the structure of a payment terminal provided in an embodiment of the present application. Modes for Carrying Out the Invention

[0039] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.

[0040] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0041] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0042] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0043] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0044] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0045] Payment terminals, especially smart payment terminals, are increasingly widely used, meeting the diverse technical and scenario requirements of offline mobile payments. As a key component of payment terminals, battery management systems (BMSs) are used to intelligently manage and maintain the rechargeable batteries in payment terminals.

[0046] However, the battery management system does not provide extensive intervention in battery charging, which cannot meet the diverse application scenarios of payment terminals. For example, when a payment terminal is connected to an external power source for a long time, the rechargeable battery is repeatedly charged and discharged at high power levels, which greatly shortens the battery life and affects the user experience.

[0047] To prevent the rechargeable battery from repeatedly charging and discharging at high power levels, a battery protection mode can be set. This controls the rechargeable battery to discharge and recharge in a cycle of 100%-91%-100%, and controls the displayed power level at full power (i.e., 100%) during the discharge and recharge cycle. However, this method does not provide intelligent protection for the rechargeable battery of the payment terminal and still cannot meet the diverse application scenarios of the payment terminal.

[0048] To address the above technical issues, an embodiment of the present application provides a method for controlling a payment terminal. The method may include: after the payment terminal is started, controlling a battery management system to operate in a first operating mode; thereafter, obtaining first usage data of the payment terminal; and, if the first usage data satisfies a switching condition, switching the operating mode of the battery management system from the first operating mode to a second operating mode. Thus, on the one hand, when the payment terminal is switched from a handheld mode to a mode with long-term access to an external power source, the operating mode of the battery management system may be switched from a mobile mode to a desktop mode to reduce the full charge level of the battery of the payment terminal. This avoids repeated charging and discharging of the battery of the payment terminal at a high charge level when the payment terminal is long-term connected to an external power source, thereby extending the battery life. On the other hand, when the payment terminal is switched from a long-term access to an external power source to a handheld mode, the operating mode of the battery management system may be switched from a desktop mode to a mobile mode. This allows the battery of the payment terminal to be charged at a higher charge level, thereby ensuring that the battery level of the payment terminal can meet the user's usage requirements each time the user uses the payment terminal (i.e., the handheld payment terminal).

[0049] In order to illustrate the technical solution described in this application, specific embodiments are provided below.

[0050] Please refer to Figure 1, which shows a flow chart of a control method for a payment terminal provided in an embodiment of the present application. The control method of the payment terminal can be applied to the payment terminal. The payment terminal includes a battery management system, which is used to intelligently manage and maintain the battery of the payment terminal. The battery management system has multiple operating modes (such as desktop mode, mobile mode or idle mode). During the operation of the battery management system, the operating mode of the battery management system can be adjusted according to the usage scenario of the payment terminal.

[0051] Exemplarily, the payment terminal may include a desktop payment terminal, a handheld payment terminal, and a payment terminal equipped with a charging base. Specifically, the payment terminal may be a POS (Point of Sales) machine.

[0052] As shown in FIG1 , the control method of the payment terminal includes the following steps 110 to 130 .

[0053] Step 110: When the payment terminal is started, the operating mode of the battery management system is controlled to be the first operating mode.

[0054] In this embodiment, the payment terminal has multiple usage scenarios. For example, scenario one involves a user turning on the payment terminal at work and off at home; scenario two involves a user permanently connecting the payment terminal to an external power source (i.e., a power adapter) without shutting down the terminal or using it for transactions; scenario three involves a user turning on the payment terminal at work, causing it to enter a dormant state, and then waking it up for a transaction. Scenario four involves a user using the payment terminal for payment, then connecting it to an external power source for charging when the terminal runs out of power, and then disconnecting the external power source to use the payment terminal for payment when a transaction is required.

[0055] In view of the various usage scenarios of the payment terminal, the battery management system can include multiple operating modes. Different operating modes correspond to different charging parameters of the payment terminal. More specifically, in different operating modes, the full charge capacity (also called the off-charge capacity) and recharge capacity corresponding to the battery of the payment terminal are different. Among them, when the battery power of the payment terminal reaches the full charge capacity, the battery will not be charged even if an external power supply is connected. When the battery power of the payment terminal drops below the recharge capacity, charging can be automatically resumed without plugging in or out the power adapter.

[0056] Exemplarily, the working modes of the battery management system may include desktop mode, mobile mode and idle mode. Desktop mode may indicate that the payment terminal is mainly powered by an external power supply. When the working mode of the battery management system is desktop mode, the full charge capacity corresponding to the battery of the payment terminal is the first full charge capacity, and the recharge capacity corresponding to the battery of the payment terminal is the first recharge capacity. That is to say, when the working mode of the battery management system is desktop mode, the battery power of the payment terminal can be limited between the first recharge capacity and the first full charge capacity. Optionally, the first full charge capacity is less than the first preset capacity, wherein the first preset capacity can be the full charge capacity of the battery, that is, the first preset capacity is 100%. In this way, for scenarios where the payment terminal is connected to an external power supply for a long time (such as the above scenario 2), it is possible to avoid the battery of the payment terminal from being repeatedly charged and discharged at a high power level, thereby extending the battery life.

[0057] For example, the first full charge capacity is 80%, and the first recharge capacity is 60%. When the operating mode of the battery management system is desktop mode, the battery capacity of the payment terminal can be limited to 60% to 80%. That is, in desktop mode, if the battery capacity of the payment terminal reaches 80%, charging is stopped; if the battery capacity of the payment terminal drops below 60%, charging is restarted. It should be noted that the specific capacity of the first full charge capacity and the first recharge capacity can be set by those skilled in the art according to actual conditions, and the embodiments of this application do not specifically limit this.

[0058] Mobile mode can mean that the payment terminal is primarily battery-powered, that is, the payment terminal is not connected to an external power source most of the time, and the user frequently picks up the payment terminal to make payments (i.e., a handheld payment terminal). When the battery management system is in mobile mode, the full charge capacity of the payment terminal's battery is the second full charge capacity, and the recharge capacity of the payment terminal's battery is the second recharge capacity. That is, when the battery management system is in mobile mode, the battery capacity of the payment terminal can be limited between the second recharge capacity and the second full charge capacity.

[0059] If a user frequently uses a payment terminal to make payments, to ensure that the battery level of the payment terminal (i.e., a handheld payment terminal) can meet the user's usage requirements each time the user uses the payment terminal (i.e., a handheld payment terminal), the second full charge level corresponding to the mobile mode is set to a higher level. Optionally, the second full charge level is greater than the first full charge level. For example, the second full charge level is 100% and the second recharge level is 91%. When the battery management system is in mobile mode, when the payment terminal is connected to an external power source, the battery of the payment terminal can be controlled to discharge and recharge between 91% and 100%. That is, in mobile mode, if the battery level of the payment terminal reaches 100%, charging stops; if the battery level of the payment terminal drops below 91%, charging resumes. In this way, the battery can be controlled to charge at a higher level, thereby ensuring that the battery level of the payment terminal can meet the user's usage requirements each time the user uses the payment terminal (i.e., a handheld payment terminal). It should be noted that the specific levels of the second full charge level and the second recharge level can be set by those skilled in the art based on actual conditions and are not specifically limited in this embodiment of the present application.

[0060] To further extend the battery life, when the battery management system is in mobile mode, the operating mode of the battery management system can be switched from mobile mode to idle mode. When the payment terminal is idle, the battery of the payment terminal can be charged and discharged at a lower power level. Then, before the user uses the payment terminal, the charging power limit is lifted to allow the battery of the payment terminal to be fully charged (i.e., 100%). This maximizes the battery life while ensuring the user's power requirements for the payment terminal.

[0061] For example, when the operating mode of the battery management system is idle mode, the full charge capacity corresponding to the battery of the payment terminal is the third full charge capacity, and the recharge capacity corresponding to the battery of the payment terminal is the third recharge capacity. Optionally, the third full charge capacity is less than the second full charge capacity. For example, the third full charge capacity is 81%, and the third recharge capacity is 79%. That is, when the operating mode of the battery management system is idle mode, the battery of the payment terminal can be controlled to perform a discharge and recharge cycle between 79% and 81% of the power. That is, in idle mode, if the battery power of the payment terminal reaches 81%, charging is stopped; if the battery power of the payment terminal drops below 79%, charging is restarted. Afterwards, before the user uses the payment terminal, the charging power limit is lifted and the battery power of the payment terminal is charged to a full charge state (i.e., 100% power). It should be noted that the specific power of the third full charge capacity and the third recharge capacity can be set by those skilled in the art according to actual conditions, and the embodiments of the present application do not specifically limit this.

[0062] Optionally, the operating mode of the battery management system may further include an adaptive mode (also referred to as an automatic mode). When the operating mode of the battery management system is the adaptive mode, the operating mode of the battery management system may be adjusted according to the usage scenario of the payment terminal.

[0063] In this embodiment, the first operating mode may be the default operating mode of the battery management system. For example, the first operating mode may be the default operating mode of the battery management system set when the payment terminal leaves the factory. For example, the first operating mode may also be the default operating mode of the battery management system set by the user. Optionally, the first operating mode may be a desktop mode or a mobile mode. Specifically, the user may set the default operating mode of the battery management system (i.e., the first operating mode) according to actual usage habits.

[0064] In a specific implementation, when the payment terminal is started, the battery management system is started. After the battery management system is started, the battery management system reads the flag information of the working mode and determines the first working mode (default working mode) based on the flag information of the working mode to control the working mode of the battery management system to the first working mode. For example, different working modes correspond to different flag information. For example, the flag information corresponding to the adaptive mode is "0", the flag information corresponding to the mobile mode is "1", and the flag information corresponding to the desktop mode is "2".

[0065] In some examples, after controlling the operating mode of the battery management system to the first operating mode, the control method of the payment terminal may further include: outputting a second prompt message, wherein the second prompt message is used to prompt that the current operating mode of the battery management system is the first operating mode.

[0066] Step 120: Acquire first usage data of the payment terminal.

[0067] In this embodiment, the first usage data may be used to indicate the usage duration of the payment terminal and the battery usage habits of the payment terminal. The battery usage habits may reflect whether the payment terminal is primarily battery-powered. For example, the first usage data may be data generated when the payment terminal is powered on. For example, the first usage data may also be data generated when the payment terminal is used to conduct transactions.

[0068] In some examples, the data generated by the payment terminal during a collection cycle is used as first usage data to determine the usage duration of the payment terminal and the battery usage habits of the payment terminal, thereby determining the operating mode of the battery management system. For example, the collection cycle can be 1 month, 15 days, or 7 days. In specific implementations, the first usage data is obtained by acquiring data generated by the payment terminal during a collection cycle at a preset frequency. For example, the preset frequency can be once every 10 minutes, once every 15 minutes, or once every 20 minutes.

[0069] For example, taking a 7-day collection period and a preset frequency of 1 time / 15 minutes, at the beginning of a collection period, data generated by the payment terminal is collected at a frequency of 1 time / 15 minutes per day until the end of the collection period, thereby obtaining usage data for the collection period (7 days) (i.e., first usage data). In some examples, the first usage data may include a first battery usage duration. The first battery usage duration may reflect the length of time the payment terminal was powered solely by the battery during the collection period.

[0070] In some embodiments, after obtaining the first usage data of the payment terminal, the first usage data is stored to facilitate subsequent steps to adjust the operating mode of the battery management system based on the first usage data. In addition, if the stored data exceeds the collection period (the stored data also includes data older than 7 days), the data that exceeds the collection period is deleted. This allows for timely processing of unnecessary data and saves storage space.

[0071] Step 130 : When the first usage data satisfies a switching condition, the operating mode of the battery management system is switched from the first operating mode to the second operating mode.

[0072] Optionally, when the first operating mode is the mobile mode, the second operating mode is the desktop mode. That is, after the payment terminal is turned on, the battery management system is activated and controls the operating mode of the battery management system to the mobile mode. Thereafter, first usage data of the payment terminal is obtained, and when the first usage data satisfies a switching condition, the operating mode of the battery management system is switched from the mobile mode to the desktop mode.

[0073] Optionally, when the first operating mode is desktop mode, the second operating mode is mobile mode. That is, after the payment terminal is turned on, the battery management system is activated and controls the operating mode of the battery management system to desktop mode. Thereafter, first usage data of the payment terminal is obtained, and when the first usage data meets a switching condition, the operating mode of the battery management system is switched from desktop mode to mobile mode.

[0074] In some examples, when the first usage data does not meet the switching condition, the operating mode of the battery management system is controlled to remain in the first operating mode.

[0075] The following takes the case where the first working mode is the mobile mode and the second working mode is the desktop mode as an example to schematically illustrate the process of switching the working mode of the battery management system from the first working mode to the second working mode.

[0076] In this example, when the payment terminal is powered on, the battery management system is controlled to operate in mobile mode; first usage data of the payment terminal is obtained; and if the first usage data satisfies a first switching condition, the battery management system switches from mobile mode to desktop mode. The first switching condition may be that the first battery usage time is less than a first preset threshold, and the number of occurrences of the first sub-data within a collection period is greater than or equal to a second preset threshold.

[0077] The first sub-data is the sub-data in the first usage data whose data volume is greater than or equal to the third preset threshold. For example, taking a collection period of 7 days as an example, the first usage data may include sub-data for each of the 7 days (or every day). The volume of the sub-data can be represented by the duration of the data generated by the payment terminal each day (or every day). For example, if a user uses the payment terminal for 8 hours on any day during the collection period, the payment terminal generates data for eight hours on any day during the collection period, i.e., the duration of the sub-data for that day is eight hours.

[0078] Accordingly, by comparing the amount of sub-data with the third preset threshold, it is possible to measure whether the amount of sub-data per day (or per day) in the first usage data is excessive, and thus it is possible to determine whether the usage time of the payment terminal per day (or per day) is long. For example, taking the length of time occupied by the data generated by the payment terminal every day as an example to represent the amount of sub-data, the third preset threshold may be 6 hours. It should be noted that the specific value of the third preset threshold can be set by those skilled in the art according to actual conditions, and the embodiments of the present application do not specifically limit this.

[0079] By comparing the number of times the first sub-data appears within the collection period with the second preset threshold, it is possible to determine whether the usage duration of the payment terminal within the collection period is long. The number of times the first sub-data appears within the collection period may be the number of days during which the data generated each day (or every day) within the collection period is greater than or equal to the third preset threshold. For example, taking a collection period of 7 days as an example, the second preset threshold may be 5 days. It should be noted that the specific value of the second preset threshold may be set by those skilled in the art based on actual circumstances and is not particularly limited in this embodiment of the present application.

[0080] The above-mentioned first battery usage duration may reflect the duration that the payment terminal uses battery power alone during the collection period. Exemplarily, the first battery usage duration may include the duration that the payment terminal uses battery power alone every day (or every day) during the collection period (i.e., the duration that the payment terminal is used without an external power supply). For example, taking a collection period of 7 days as an example, the first battery usage duration may include the duration of using battery power alone collected every day during the collection period (i.e., 7 days). Exemplarily, the first battery usage duration may also be the total duration (cumulative duration) that the payment terminal uses battery power alone during the collection period. For example, continuing to take a collection period of 7 days as an example, the first battery usage duration may be the cumulative duration that the payment terminal uses battery power alone during the collection period (i.e., 7 days).

[0081] In this embodiment, by comparing the first battery usage time and the first preset threshold, it can be determined whether the payment terminal is powered by the battery alone for a long time, and then combined with the amount of data in the sub-data (daily or daily data) of the first usage data, it can be determined whether the first usage data meets the first switching condition, and then determine whether to switch the working mode of the battery management system from mobile mode to desktop mode. Exemplarily, the first preset threshold can be 1 hour. It should be noted that the specific value of the first preset threshold can be set by those skilled in the art according to actual conditions, and the embodiment of the present application does not specifically limit this.

[0082] In some examples, when the first usage data does not satisfy the first switching condition, the operating mode of the battery management system is controlled to remain in the mobile mode.

[0083] For example, taking the collection period as 7 days, the first preset threshold as 1 hour, the second preset threshold as 5 days, and the third preset threshold as 6 hours as an example, the process of determining whether the first usage data meets the first switching condition is schematically explained.

[0084] In this example, when the payment terminal is started, the operating mode of the battery management system is controlled to be mobile mode. Then, the data of the payment terminal for the previous 7 days (i.e., the first usage data) is obtained. In the 7-day data (i.e., the first usage data), the number of days in which the data generated each day exceeds 6 hours is greater than or equal to 5 days, and the number of days in which the battery is used alone for power supply (i.e., the first battery usage time) is less than 1 hour is greater than or equal to 5 days during these 7 days. This indicates that the payment terminal has been used for a long time, is used frequently, and is mainly powered by an external power supply. At this time, the operating mode of the battery management system is switched from mobile mode to desktop mode.

[0085] In this example, in the 7-day data (i.e., the first usage data), the number of days in which the data generated each day exceeds 6 hours is less than 5 days, indicating that the payment terminal is used for a short time, that is, the user uses the payment terminal less frequently, and the battery is charged and discharged at a high power level for a short time, which has little impact on the battery life. At this time, the working mode of the battery management system is controlled to remain in mobile mode.

[0086] In this example, among the 7 days of data (i.e., the first usage data), the number of days in which the duration of the data generated each day exceeds 6 hours is greater than or equal to 5 days, and the number of days in which the duration of each day using battery power alone (i.e., the first battery usage duration) is less than 1 hour is less than 5 days, which means that the payment terminal is mainly used handheld (the payment terminal is mainly battery-powered). At this time, the working mode of the battery management system is controlled to remain in mobile mode.

[0087] In this example, if the duration of battery-powered operation per day (i.e., the first battery usage duration) is less than 1 hour for less than 5 days during these 7 days, it means that the payment terminal is mainly used as a handheld device (the payment terminal is mainly powered by a battery). At this time, the working mode of the battery management system is controlled to remain in mobile mode.

[0088] In another example, when the payment terminal is started, the operating mode of the battery management system is controlled to be mobile mode. Then, the data of the payment terminal for the previous 7 days (i.e., the first usage data) is obtained. If the number of days in which the data generated each day exceeds 6 hours in the 7-day data (i.e., the first usage data) is greater than or equal to 5 days, and the data of these 7 days (i.e., the first usage data) indicates that the cumulative duration of battery power supply alone (i.e., the first battery usage duration) is less than 1 hour, it means that the payment terminal has been used for a long time, the payment terminal is used more frequently, and the payment terminal is mainly powered by an external power supply. At this time, the operating mode of the battery management system is switched from mobile mode to desktop mode.

[0089] In this example, in the 7-day data (i.e., the first usage data), the number of days in which the data generated each day exceeds 6 hours is less than 5 days, indicating that the payment terminal is used for a short time, that is, the user uses the payment terminal less frequently, and the battery is charged and discharged at a high power level for a short time, which has little impact on the battery life. At this time, the working mode of the battery management system is controlled to remain in mobile mode.

[0090] In this example, the number of days in which the data generated each day exceeds 6 hours in the 7-day data (i.e., the first usage data) is greater than or equal to 5 days, and the data of these 7 days (i.e., the first usage data) indicates that the cumulative duration of battery power supply alone (i.e., the first battery usage duration) is greater than or equal to 1 hour, which means that the payment terminal is mainly used handheld (the payment terminal is mainly battery-powered). At this time, the working mode of the battery management system is controlled to remain in mobile mode.

[0091] In this example, if the data for these 7 days (i.e., the first usage data) indicates that the cumulative duration of battery-powered use alone (i.e., the first battery usage duration) is greater than or equal to 1 hour, it means that the payment terminal is mainly used handheld (the payment terminal is mainly battery-powered). At this time, the working mode of the battery management system is controlled to remain in mobile mode.

[0092] It should be noted that after the operating mode of the battery management system is switched to the desktop mode, the first usage data can be re-acquired, and it can be determined whether to switch the operating mode of the battery management system from the desktop mode to the mobile mode based on the re-acquired first usage data.

[0093] In this embodiment, when the current working mode of the battery management system is the mobile mode, the first usage data of the payment terminal is obtained. When the first usage data meets the first switching condition, the working mode of the battery management system is switched from the mobile mode to the desktop mode. In this way, the usage data generated at the payment terminal indicates that the usage of the payment terminal is no longer mainly handheld. The working mode of the battery management system can be switched from the mobile mode to the desktop mode to reduce the full charge capacity of the battery of the payment terminal. In this way, in a scenario where the payment terminal is connected to an external power supply for a long time, the battery of the payment terminal can be avoided from being repeatedly charged and discharged at a high power level, thereby extending the battery life.

[0094] The following takes the first working mode as the desktop mode and the second working mode as the mobile mode as an example to schematically illustrate the process of switching the working mode of the battery management system from the first working mode to the second working mode.

[0095] In this example, when the payment terminal is started, the working mode of the battery management system is controlled to desktop mode; the first usage data of the payment terminal is obtained; when the first usage data meets the second switching condition, the working mode of the battery management system is switched from desktop mode to mobile mode.

[0096] For example, the second switching condition may be that the usage time of the first battery is greater than or equal to a first preset threshold.

[0097] Among them, illustratively, the first battery usage duration may include the duration of the payment terminal using battery power alone every day (or every day) during the collection period (that is, the duration of the payment terminal using no external power supply). For example, taking the collection period of 7 days as an example, the first battery usage duration may include the duration of the payment terminal using battery power alone collected every day during the collection period (that is, 7 days). Exemplarily, the first battery usage duration may also be the total duration (cumulative duration) of the payment terminal using battery power alone during the collection period. For example, continuing to take the collection period of 7 days as an example, the first battery usage duration may be the cumulative duration of the payment terminal using battery power alone during the collection period (that is, 7 days).

[0098] In this embodiment, by comparing the first battery usage time and the first preset threshold, it can be determined whether the payment terminal is powered by the battery alone for a long time, and then it can be determined whether the first usage data meets the second switching condition, and then it can be determined whether to switch the working mode of the battery management system from desktop mode to mobile mode. Exemplarily, the first preset threshold can be 1 hour. It should be noted that the specific value of the first preset threshold can be set by those skilled in the art according to actual conditions, and the embodiments of the present application do not specifically limit this.

[0099] For example, continuing with the example of a 7-day collection period and a 1-hour first preset threshold, when the payment terminal is started, the operating mode of the battery management system is controlled to be desktop mode. Then, the data of the payment terminal for the previous 7 days (i.e., the first usage data) is obtained. If the 7-day data (i.e., the first usage data) indicates that the cumulative duration of battery-powered use alone (i.e., the first battery usage duration) is greater than or equal to 1 hour, then the payment terminal is mainly used as a handheld device (the payment terminal is mainly powered by a battery), and at this time, the operating mode of the battery management system is switched from desktop mode to mobile mode.

[0100] Also, if the 7-day data (i.e., the first usage data) indicates that the cumulative duration of battery power supply alone (i.e., the first battery usage duration) is less than 1 hour, the payment terminal is mainly powered by an external power supply. At this time, the working mode of the battery management system is controlled to remain in desktop mode.

[0101] Exemplarily, the second switching condition may be that the second battery usage time reaches a fourth preset threshold. The second battery usage time is the time during which the battery management system is continuously powered by the battery when the working mode is in desktop mode. Specifically, when the working mode of the battery management system is switched to desktop mode, the time during which the payment terminal is continuously powered by the battery can be counted to obtain the second battery usage time. The fourth preset threshold may also be 1 hour. It should be noted that the specific value of the fourth preset threshold can be set by those skilled in the art according to actual conditions, and the embodiments of the present application do not specifically limit this.

[0102] For example, taking the fourth preset threshold as 1 hour, when the payment terminal is started, the operating mode of the battery management system is controlled to be desktop mode. When the operating mode of the battery management system is switched to desktop mode, the duration of the payment terminal being continuously powered by the battery (i.e., the duration of the second battery usage) can be counted. If the duration of battery power supply (i.e., the duration of the second battery usage) reaches 1 hour, the payment terminal becomes primarily handheld (the payment terminal is primarily battery-powered), and at this time, the operating mode of the battery management system is switched from desktop mode to mobile mode.

[0103] Also, when the battery-powered time (i.e., the second battery usage time) does not reach 1 hour, it indicates that the payment terminal is still mainly powered by an external power supply. At this time, the working mode of the control battery management system remains in desktop mode.

[0104] In this embodiment, when the current working mode of the battery management system is desktop mode, the first usage data of the payment terminal is obtained. When the first usage data meets the second switching condition, the working mode of the battery management system is switched from desktop mode to mobile mode. In this way, when the usage data generated by the payment terminal indicates that the payment terminal is mainly used in handheld mode, the working mode of the battery management system can be switched from desktop mode to mobile mode. In this way, the battery of the payment terminal can be charged at a higher power level, thereby ensuring that each time the user uses the payment terminal (i.e., a handheld payment terminal), the battery power of the payment terminal can meet the user's usage needs.

[0105] In some examples, after the operating mode of the battery management system switches from the first operating mode to the second operating mode, the control method of the payment terminal may further include: outputting a first prompt message, wherein the first prompt message is used to prompt that the operating mode of the battery management system has switched to the second operating mode.

[0106] Exemplarily, the first prompt information may be a message notification displayed on the display interface of the payment terminal, or may be identification information displayed on the display interface of the payment terminal, or may be voice prompt information output by the payment terminal.

[0107] For example, after the battery management system switches from mobile mode to desktop mode, the payment terminal outputs a prompt message that "the operating mode of the battery management system has switched to desktop mode." For another example, after the battery management system switches from desktop mode to mobile mode, the payment terminal outputs a prompt message that "the operating mode of the battery management system has switched to mobile mode."

[0108] In this embodiment, when the operating mode of the battery management system changes, a corresponding prompt message can be output to inform the user of the current operating mode of the battery management system, so that the user can understand the power supply method of the payment terminal. Furthermore, if the adjusted operating mode does not conform to the user's usage habits, the user can change the operating mode of the battery management system according to actual needs, providing more flexible usage.

[0109] In this embodiment, after the operating mode of the battery management system is switched to the mobile mode, it can be determined whether to switch the operating mode of the battery management system from the mobile mode to the idle mode. The process of switching the operating mode of the battery management system from the mobile mode to the idle mode is schematically illustrated below with reference to FIG2 .

[0110] In some examples, as shown in FIG2 , after the operating mode of the battery management system is switched to the mobile mode, the control method of the payment terminal may further include: steps 210 to 220 .

[0111] Step 210: Acquire second usage data.

[0112] The second usage data may be data generated by the payment terminal within a first time period. The first time period is the period from a first moment to the current moment, where the first moment is the moment when the battery management system switches to mobile mode, and the current moment is the current operating moment (also referred to as current operating time) of the payment terminal after the battery management system's operating mode switches to mobile mode. In other words, the second usage data may be data generated by the payment terminal after the battery management system's operating mode switches to mobile mode.

[0113] Step 220 , when the second usage data indicates that the payment terminal is in an idle state in the second time period, and when the operating time of the payment terminal is in the second time period, switching the operating mode of the battery management system from the second operating mode to the idle mode.

[0114] The second time period is a time period when the battery management system is in the mobile mode and the payment terminal is in the idle state. Exemplarily, the second time period is included in the first time period.

[0115] The payment terminal's operating time may be the time the payment terminal is currently in use, i.e., the time currently displayed by the payment terminal. It should be understood that the payment terminal's operating time is used to determine whether the payment terminal is in the second time period of the day. For example, the displayed time (i.e., operating time) of the payment terminal may be an automatically updated network time.

[0116] Through the second usage data, it can be determined whether the payment terminal is in an idle state (i.e., the user has not operated the payment terminal) when the battery management system is in mobile mode. For example, if the payment terminal does not generate data (i.e., no transaction data) within the second time period in the second usage data, or if there is no data for the second time period in the second usage data, it is considered that the user has not operated the payment terminal within the time period. Afterwards, the data corresponding to the second time period in each sub-data in the first usage data (i.e., the third usage data) is obtained, and it is determined whether the number of times that the user has not operated the payment terminal in the multiple third usage data is greater than or equal to the fifth preset threshold. If the number of times that the user has not operated the payment terminal in the multiple third usage data is greater than or equal to the fifth preset threshold, it is considered that the payment terminal is in an idle state in the second time period. Afterwards, when the operating time of the payment terminal is again in the second time period, the working mode of the battery management system is switched from mobile mode to idle mode.

[0117] For example, taking the collection period as 7 days, the fifth preset threshold value may be 4 days. It should be noted that the specific value of the fifth preset threshold value may be set by those skilled in the art according to actual conditions, and the present embodiment does not specifically limit this.

[0118] For example, taking the first moment (i.e., the moment when the battery management system switches to mobile mode) as 10:00, the current moment as 18:00, the collection period as 7 days, and the fifth preset threshold as 4 days as an example, data generated by the payment terminal in the first time period (i.e., 10:00-18:00) is obtained, that is, second usage data is obtained; if the second usage data indicates that the user did not operate the payment terminal in the second time period (e.g., 11:30-14:30), data for the previous 7 days is obtained, and partial data corresponding to the second time period (e.g., 11:30-14:30) for each of the 7 days is obtained; it is determined whether there are at least 4 days of partial data corresponding to the second time period (e.g., 11:30-14:30) in the 7 days of data, indicating that the user did not operate the payment terminal. If there are at least 4 days of partial data corresponding to the second time period (e.g., 11:30-14:30) in the 7 days of data, indicating that the user did not operate the payment terminal, it is considered that the payment terminal was in an idle state in the second time period (e.g., 11:30-14:30). Afterwards, when the operating time of the payment terminal reaches 11:30 a.m. again, the working mode of the battery management system is switched from mobile mode to idle mode, and when the operating time of the payment terminal reaches 2:30 p.m., the idle mode is exited, that is, the working mode of the battery management system is switched from idle mode to mobile mode.

[0119] In some examples, as shown in FIG3 , when the operation time of the payment terminal is in the second time period, the step of switching the operation mode of the battery management system from the second operation mode to the idle mode may include: step 310 - step 320 .

[0120] Step 310 : When the operating time of the payment terminal reaches the second moment, the operating mode of the battery management system is switched from the second operating mode to the idle mode to charge the battery of the payment terminal according to the third full charge amount.

[0121] The second moment is the start time of the second time period. Specifically, after the battery management system enters the mobile mode, when the operating time of the payment terminal reaches the start time of the second time period again, it indicates that the payment terminal has entered the idle state. At this time, the operating mode of the battery management system is switched from the mobile mode to the idle mode, and the battery of the payment terminal is charged with the third full charge and the third recharge capacity. This avoids repeated charging at high power levels and extends battery life.

[0122] Step 320: When the interval between the operating time of the payment terminal and the third moment reaches a preset time, the battery of the payment terminal is charged according to the fourth full charge amount, and when the operating time of the payment terminal reaches the third moment, the working mode of the battery management system is switched from the idle mode to the mobile mode.

[0123] The third moment is the end moment of the second time period. The fourth full charge capacity may be a full charge (i.e., 100%). For example, the preset duration may be the time required to charge the battery of the payment terminal from the third recharge capacity (e.g., 79%) to a full charge (i.e., 100%). The preset duration may be set based on actual experience. For example, the preset duration may be 2 hours.

[0124] In this embodiment, if the interval between the payment terminal's operating time and the third moment is longer than a preset duration, it indicates that the time when the user will use the payment terminal is far away. In this case, the battery of the payment terminal can be charged at the third full charge level in the idle state, thereby extending the battery life. If the interval between the payment terminal's operating time and the third moment reaches the preset duration, it indicates that the time when the user will use the payment terminal is approaching. To ensure that the power level of the payment terminal is sufficient for user use, the restrictions on the third full charge level and the third recharge level are removed, and the payment terminal is charged at the larger full charge level so that the battery of the payment terminal can be fully charged.

[0125] Specifically, when the interval between the operating time of the payment terminal and the third moment reaches a preset time, the restrictions on the third full charge amount and the third recharge amount are released, and the battery of the payment terminal is charged according to the fourth full charge amount (i.e., 100% power). When the operating time of the payment terminal reaches the third moment, the idle mode is exited, that is, the working mode of the battery management system is switched from idle mode to mobile mode. In this way, when the operating time of the payment terminal approaches the third moment, it means that the user is about to use the payment terminal. At this time, the battery of the payment terminal is charged with full power, so that when the operating time of the payment terminal reaches the third moment, the battery of the payment terminal is fully charged or close to fully charged. Afterwards, when the user uses the payment terminal (i.e., a handheld payment terminal), the battery power of the payment terminal can meet the power demand.

[0126] For example, taking the second time period of 11:30-14:30, with a preset duration of 2 hours, as an example, when the payment terminal's operating time reaches 11:30 again on the same day, the operating mode of the battery management system is switched from mobile mode to idle mode. In idle mode, the battery of the payment terminal is charged to 81%, then charging stops. When the battery level of the payment terminal drops below 79%, charging of the battery of the payment terminal continues. When the operating time of the payment terminal reaches 12:30 on the same day (i.e., the interval between the operating time of the payment terminal and the end time of the second time period reaches 2 hours), the third full charge level (81%) and the third recharge level (79%) are released, and the battery of the payment terminal is charged according to the fourth full charge level (i.e., 100%). When the operating time of the payment terminal reaches 14:30 on the same day, the idle mode is exited, i.e., the operating mode of the battery management system is switched from idle mode to mobile mode.

[0127] In this embodiment, when the battery management system is currently operating in mobile mode, second usage data is obtained. If the second usage data indicates that the payment terminal is idle during the second time period, the battery of the payment terminal can be charged and discharged at a lower power level. Then, before the user uses the payment terminal, the charging power limit is lifted and the battery of the payment terminal is charged to a full or nearly full state. This maximizes the battery life while ensuring the user's power requirements for the payment terminal.

[0128] In some examples, after the mobile mode of the battery management system is switched from the second working mode to the idle mode, the control method of the payment terminal may further include: outputting third prompt information, wherein the third prompt information is used to prompt the battery management system to switch to the idle mode.

[0129] 4, the control method of the payment terminal provided in the embodiment of the present application is schematically described, taking the first working mode as the mobile mode and the collection period as 7 days as an example. As shown in FIG4, the control method of the payment terminal includes the following: Steps 401 to 416.

[0130] Step 401: The battery management system of the payment terminal is started.

[0131] Step 402: Control the battery management system to operate in a mobile mode.

[0132] Step 403 : Acquire the payment terminal's data for 7 days and the cumulative duration of battery usage within the 7 days (ie, first usage data).

[0133] The data for 7 days and the cumulative duration of using the battery alone within 7 days may be the first usage data in the above embodiment.

[0134] Step 404 , determining whether the number of days in the 7-day data with data of 6 hours or more is greater than or equal to 5 days, if so, executing step 405 , otherwise executing step 407 .

[0135] Step 405 , determining whether the cumulative duration of battery use alone within 7 days is less than 1 hour, if so, executing step 406 , otherwise, executing step 407 .

[0136] Specifically, the specific implementation of step 404 and step 405 can refer to the specific implementation of determining whether the first usage data meets the first switching condition in the above step 130.

[0137] Step 406 , switching the operating mode of the battery management system to desktop mode, and then executing step 408 .

[0138] Step 407 , controlling the operating mode of the battery management system to remain in the mobile mode, and then executing step 412 .

[0139] Step 408: Obtain the continuous battery usage time of the payment terminal.

[0140] The continuous battery usage time in step 408 may be the second battery usage time in the above embodiment.

[0141] Step 409 , determining whether the continuous battery usage time reaches 1 hour, if so, executing step 410 , otherwise, executing step 411 .

[0142] Step 410: Switch the operating mode of the battery management system to the mobile mode.

[0143] Step 411: Control the operating mode of the battery management system to remain in desktop mode.

[0144] Step 412: Acquire second usage data.

[0145] Step 413 , determining whether the second usage data indicates that the payment terminal is in an idle state during the second time period; if so, executing step 414 ; otherwise, executing step 407 .

[0146] Step 414: When the operating time of the payment terminal reaches the second moment, the battery of the payment terminal is charged according to the third full charge amount and the third recharge amount.

[0147] Step 415: When the interval between the operating time of the payment terminal and the third moment reaches a preset time, the restrictions on the third full charge amount and the third recharge amount are lifted, and the battery of the payment terminal is charged. When the operating time of the payment terminal reaches the third moment, the operating mode of the battery management system is switched from the idle mode to the mobile mode.

[0148] After the operating mode of the battery management system is switched to the mobile mode (step 407 or step 410), the method further includes: step 416, reacquiring the first usage data, and determining whether to switch the operating mode of the battery management system from the mobile mode to the desktop mode based on the reacquired first usage data. It should be noted that the determination process for switching the operating mode of the battery management system from the mobile mode to the desktop mode can be referred to the aforementioned steps 403 to 407 and will not be repeated here.

[0149] For example, the first usage data retrieved may be usage data of the payment terminal in the next collection cycle. For example, the first usage data of the current collection cycle may be usage data from Monday to Sunday of this week, and the first usage data of the next collection cycle may be usage data from Monday to Sunday of next week.

[0150] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0151] 5 , the control method of the payment terminal provided in the embodiment of the present application is schematically described, taking the first working mode as the desktop mode and the collection period as 7 days as an example. As shown in FIG5 , the control method of the payment terminal includes the following: Steps 501 to 511 .

[0152] Step 501: The battery management system of the payment terminal is started.

[0153] Step 502: Control the operating mode of the battery management system to desktop mode.

[0154] Step 503: Obtain the cumulative duration of battery use within 7 days.

[0155] Step 504 , determining whether the cumulative duration of battery use alone within 7 days is greater than or equal to 1 hour, if so, executing step 505 , otherwise, executing step 506 .

[0156] Step 505 , switching the operating mode of the battery management system to the mobile mode, and then executing step 507 .

[0157] Step 506: Control the operating mode of the battery management system to remain in desktop mode.

[0158] Step 507: Acquire second usage data.

[0159] Step 508 , determining whether the second usage data indicates that the payment terminal is in an idle state during the second time period; if so, executing step 509 ; otherwise, executing step 511 .

[0160] Step 509: When the operating time of the payment terminal reaches the second time, the battery of the payment terminal is charged according to the third full charge amount and the third recharge amount.

[0161] Step 510: When the interval between the operating time of the payment terminal and the third moment reaches a preset time, the restrictions on the third full charge amount and the third recharge amount are released, and the battery of the payment terminal is charged. When the operating time of the payment terminal reaches the third moment, the operating mode of the battery management system is switched from the idle mode to the mobile mode.

[0162] Step 511: Control the operating mode of the battery management system to remain in the mobile mode.

[0163] Of course, after the working mode of the battery management system is switched to desktop mode (step 506), the method also includes: re-acquiring the first usage data, and judging whether to switch the working mode of the battery management system from desktop mode to mobile mode based on the re-acquired first usage data.

[0164] Furthermore, after the working mode of the battery management system is switched to the mobile mode (step 505 or step 511), the method further includes: reacquiring the first usage data, and determining whether to switch the working mode of the battery management system from the mobile mode to the desktop mode based on the reacquired first usage data.

[0165] It should be noted that the judgment process of switching from mobile mode to desktop mode and switching from desktop mode to mobile mode can be referred to the above embodiments and will not be repeated here.

[0166] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0167] In an embodiment of the present application, the battery management system of the payment terminal can have multiple functional modes, so that the working mode of the battery management system can be adjusted according to the usage scenario of the payment terminal, and the battery of the payment terminal can be charged and discharged with different full charge levels, which can avoid always charging and discharging the battery of the payment terminal at a high power level, and can extend the battery life.

[0168] Furthermore, after the payment terminal is started, the operating mode of the battery management system is controlled to be the first operating mode. Thereafter, first usage data of the payment terminal is obtained. When the first usage data satisfies a switching condition, the operating mode of the battery management system is switched from the first operating mode to the second operating mode. In this way, on the one hand, when the payment terminal is switched from a handheld mode to a mode of long-term access to an external power source, the operating mode of the battery management system can be switched from a mobile mode to a desktop mode to reduce the full charge level of the battery of the payment terminal. In this way, when the payment terminal is long-term connected to an external power source, the battery of the payment terminal can be prevented from being repeatedly charged and discharged at a high power level, thereby extending the battery life. On the other hand, when the payment terminal is switched from a long-term access to an external power source to a handheld mode, the operating mode of the battery management system can be switched from a desktop mode to a mobile mode. In this way, the battery of the payment terminal can be charged at a higher power level, thereby ensuring that the battery power of the payment terminal can meet the user's usage needs every time the user uses the payment terminal (i.e., the handheld payment terminal).

[0169] In addition, when the working mode of the battery management system is mobile mode, the working mode of the battery management system can be switched from mobile mode to idle mode. In this way, while ensuring the user's power demand for the payment terminal, the battery life can be maximized.

[0170] In this embodiment, the user can also set the working mode of the battery management system according to the needs. The following is a schematic illustration of how the user sets the working mode of the battery management system with reference to FIG6 .

[0171] Please refer to Figure 6, which shows a flow chart of another payment terminal control method provided by an embodiment of the present application. As shown in Figure 6, the payment terminal control method includes the following steps 610-620.

[0172] Step 610: When the payment terminal is started, a target operating mode is determined in response to a mode setting operation input by a user.

[0173] For example, the payment terminal may display an operating mode configuration interface of the battery management system, which may include mode options. The mode setting operation may be a user selecting any mode option in the operating mode configuration interface.

[0174] Step 620 : Control the operating mode of the battery management system to a target operating mode, wherein the target operating mode is a desktop mode, a mobile mode, or an adaptive mode.

[0175] For example, the operating mode configuration interface includes desktop mode, mobile mode, and adaptive mode options. In response to a user selecting (e.g., clicking) the desktop mode option in the operating mode configuration interface, the target operating mode is determined to be desktop mode, i.e., the operating mode flag is updated to "2" corresponding to the desktop mode. The payment terminal can then obtain the operating mode flag and, based on the operating mode flag, adjust the battery management system's operating mode to desktop mode.

[0176] In the embodiment of the present application, when the payment terminal is activated, the target operating mode is determined in response to the mode setting operation input by the user, and the operating mode of the battery management system is controlled to be the target operating mode. In this way, the user can set the operating mode of the battery management system according to their own usage habits, the operation is simple, and the user experience is better.

[0177] In some embodiments, after controlling the operating mode of the battery management system to the target operating mode, the control method of the payment terminal may further include: outputting fourth prompt information, where the fourth prompt information is used to prompt that the operating mode of the battery management system is the target operating mode.

[0178] Exemplarily, the fourth prompt information may be a message notification displayed on the display interface of the payment terminal, or may be identification information displayed on the display interface of the payment terminal, or may be voice prompt information output by the payment terminal.

[0179] In this embodiment, after the user sets the operating mode of the battery management system, the fourth prompt information is output to prompt the user that the operating mode of the battery management system has been changed, which provides a better user experience.

[0180] 7, the control method of the payment terminal provided by the embodiment of the present application is schematically described by taking the user setting the target operating mode of the battery management system as an example. As shown in FIG7, the control method of the payment terminal includes the following: Step 701-Step 704.

[0181] Step 701: Obtain the flag information of the working mode.

[0182] Step 702: When the flag information of the working mode is "2", the working mode of the battery management system is controlled to be the desktop mode.

[0183] Step 703: When the flag information of the working mode is "1", the working mode of the battery management system is controlled to be the mobile mode.

[0184] Step 704: When the flag information of the working mode is "0", the working mode of the battery management system is controlled to be the adaptive mode.

[0185] Among them, in adaptive mode, the operating mode of the battery management system can be adjusted to the default operating mode (such as mobile mode or desktop mode). When the default operating mode of the battery management system is mobile mode, the specific implementation method of adjusting the operating mode of the battery management system according to the usage scenario of the payment terminal is referred to the above steps 402-step 416. To avoid repetition, it is not repeated here. When the default operating mode of the battery management system is desktop mode, the specific implementation method of adjusting the operating mode of the battery management system according to the usage scenario of the payment terminal is referred to the above steps 502-step 511. To avoid repetition, it is not repeated here.

[0186] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0187] Corresponding to the control method of the payment terminal described in the above embodiment, Figure 8 shows a structural block diagram of the control device of the payment terminal provided in the embodiment of the present application. For the sake of convenience, only the part related to the embodiment of the present application is shown.

[0188] Please refer to Figure 8. The control device 800 of the payment terminal may include a mode switching module 801 and a first acquisition module 802. The mode switching module 801 is used to control the working mode of the battery management system of the payment terminal to the first working mode when the payment terminal is started. The first acquisition module 802 is used to obtain first usage data of the payment terminal; the mode switching module 801 is also used to switch the working mode of the battery management system from the first working mode to the second working mode when the first usage data meets the switching condition; wherein the first working mode is the mobile mode and the second working mode is the desktop mode; or the first working mode is the desktop mode and the second working mode is the mobile mode; wherein the first full charge corresponding to the desktop mode is less than the second full charge corresponding to the mobile mode.

[0189] In some embodiments, the above-mentioned first usage data includes the first battery usage time of the payment terminal during the collection period and the sub-data generated daily; when the first working mode is mobile mode and the second working mode is desktop mode, the switching condition is the first switching condition; wherein, the first switching condition includes that the first battery usage time is less than the first preset threshold, and the number of times the first sub-data appears during the collection period is greater than or equal to the second preset threshold, and the first sub-data is the sub-data in the first usage data whose data volume is greater than or equal to the third preset threshold.

[0190] In some embodiments, the above-mentioned first usage data includes the first battery usage time of the payment terminal during the collection period; when the first working mode is desktop mode and the second working mode is mobile mode, the switching condition is the second switching condition; wherein, the second switching condition includes: the first battery usage time is greater than or equal to the first preset threshold.

[0191] In some embodiments, the mode switching module 801 may also be configured to control the operating mode of the battery management system to remain in the first operating mode when the first usage data does not satisfy a switching condition.

[0192] In some embodiments, the first usage data includes sub-data generated daily by the payment terminal during a collection period. The control device 800 of the payment terminal may further include a second acquisition module. The second acquisition module is configured to acquire second usage data, where the second usage data is data generated by the payment terminal during a first time period, where the first time period is the period from a first moment to the current moment, and the first moment is the moment when the battery management system switches to mobile mode. The mode switching module 801 may also be configured to, if the second usage data indicates that the payment terminal is idle during the second time period, switch the operating mode of the battery management system from the second operating mode to the idle mode when the payment terminal is operating during the second time period.

[0193] In some embodiments, the above-mentioned mode switching module 801 is specifically used to: when the operating time of the payment terminal reaches the second moment, switch the operating mode of the battery management system from the second operating mode to the idle mode, so as to charge the battery of the payment terminal according to the third full charge amount, wherein the second moment is the starting moment of the second time period; when the interval between the operating time of the payment terminal and the third moment reaches a preset time, charge the battery of the payment terminal according to the fourth full charge amount, and when the operating time of the payment terminal reaches the third moment, switch the operating mode of the battery management system from the idle mode to the mobile mode; wherein the third moment is the end moment of the second time period.

[0194] In some embodiments, the control device 800 of the above-mentioned payment terminal may further include: a determination module, which is used to determine the target operating mode in response to the mode setting operation input by the user when the payment terminal is started; the above-mentioned mode switching module 801 is also used to control the operating mode of the battery management system to the target operating mode, wherein the target operating mode is desktop mode, mobile mode or adaptive mode.

[0195] In some embodiments, the output module is further configured to output a first prompt message, where the first prompt message is configured to prompt the battery management system to switch its operating mode to the second operating mode.

[0196] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.

[0197] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0198] Referring to Figure 9 , an embodiment of the present application further provides a payment terminal. As shown in Figure 9 , the payment terminal 900 includes a processor 901, a memory 902, and a computer program stored in the memory 902 and executable on the processor 901. When the processor 901 executes the computer program, the steps of any of the above-described method embodiments are implemented.

[0199] The embodiment of the present application further provides a payment terminal, which may include the control device 800 of the payment terminal provided in the above embodiment.

[0200] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.

[0201] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0202] 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 present application implements all or part of the process in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device capable of carrying the computer program code to the control device / payment terminal of the payment terminal, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0203] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0204] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0205] In the embodiments provided herein, it should be understood that the disclosed payment terminal control device / payment terminal and method can be implemented in other ways. For example, the payment terminal control device / payment terminal controller embodiments described above are merely illustrative. For example, the division of modules or units is merely a logical functional division. In actual implementation, other divisions may be employed, such as combining or integrating multiple units or components into another system, or omitting or disabling certain features. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or units via some interface, which may be electrical, mechanical, or other means.

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

[0207] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A control method for a payment terminal, characterized in that, Applied to a payment terminal, the payment terminal includes a battery management system, and the method includes: When the payment terminal is started, controlling the working mode of the battery management system to be the first working mode; Obtaining first usage data of the payment terminal; When the first usage data meets the switching condition, switching the working mode of the battery management system from the first working mode to the second working mode; Wherein, the first working mode is the mobile mode, and the second working mode is the desktop mode; or, the first working mode is the desktop mode, and the second working mode is the mobile mode; wherein, the first full charge amount corresponding to the desktop mode is less than the second full charge amount corresponding to the mobile mode.

2. The method according to claim 1, wherein The first usage data includes the first battery usage duration of the payment terminal in the collection period and the sub-data generated daily; When the first working mode is the mobile mode and the second working mode is the desktop mode, the switching condition is the first switching condition; wherein, the first switching condition includes that the first battery usage duration is less than a first preset threshold, and the number of occurrences of the first sub-data in the collection period is greater than or equal to a second preset threshold, and the first sub-data is the sub-data in the first usage data with a data volume greater than or equal to a third preset threshold.

3. The method according to claim 1, wherein The first usage data includes the first battery usage duration of the payment terminal in the collection period; When the first working mode is the desktop mode and the second working mode is the mobile mode, the switching condition is the second switching condition; wherein, the second switching condition includes: the first battery usage duration is greater than or equal to a first preset threshold.

4. The method according to claim 1, wherein After obtaining the first usage data of the payment terminal, the method further includes: When the first usage data does not meet the switching condition, controlling the working mode of the battery management system to remain the first working mode.

5. The method according to claim 1, characterized in that The first usage data includes the sub-data generated daily by the payment terminal in the collection period, the second working mode is the mobile mode, and after switching the working mode of the battery management system from the first working mode to the second working mode, the method further includes: Obtaining second usage data, wherein the second usage data is the data generated by the payment terminal in the first time period, and the first time period is the time period from the first moment to the current moment, and the first moment is the moment when the battery management system is switched to the mobile mode; When the second usage data indicates that the payment terminal is in an idle state in the second time period, when the running time of the payment terminal is in the second time period, switching the working mode of the battery management system from the second working mode to the idle mode.

6. The method according to claim 5, characterized in that, The step of switching the working mode of the battery management system from the second working mode to the idle mode when the running time of the payment terminal is in the second time period includes: When the running time of the payment terminal reaches the second moment, switch the working mode of the battery management system from the second working mode to the idle mode, so as to charge the battery of the payment terminal according to the third full charge amount, where the second moment is the start moment of the second time period; perform charging, where the second moment is the start moment of the second time period; When the interval duration between the running time of the payment terminal and the third moment reaches a preset duration, charge the battery of the payment terminal according to the fourth full charge amount, and when the running time of the payment terminal reaches the third moment, switch the working mode of the battery management system from the idle mode to the mobile mode; where the third moment is the end moment of the second time period.

7. The method according to any one of claims 1-6, characterized in that, The method further includes: When the payment terminal is started, in response to a mode setting operation input by the user, determine the target working mode; Control the working mode of the battery management system to be the target working mode, where the target working mode is the desktop mode, the mobile mode or the adaptive mode.

8. The method according to any one of claims 1-6, characterized in that, After switching the working mode of the battery management system from the first working mode to the second working mode, the method further includes: Output a first prompt message, where the first prompt message is used to prompt that the working mode of the battery management system is switched to the second working mode.

9. A control device for a payment terminal, characterized in that a mode switching module, configured to control the working mode of the battery management system of the payment terminal to be the first working mode when the payment terminal is started; a first acquisition module, configured to acquire first usage data of the payment terminal; the mode switching module is further configured to switch the working mode of the battery management system from the first working mode to the second working mode when the first usage data meets the switching condition; where the first working mode is the mobile mode and the second working mode is the desktop mode; or the first working mode is the desktop mode and the second working mode is the mobile mode; where the first full charge amount corresponding to the desktop mode is less than the second full charge amount corresponding to the mobile mode.

10. A payment terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor, when executing the computer program, implements the steps of the control method for the payment terminal according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Battery charging management method, terminal device, and storage medium

    CN110429672A

  • Battery charging protection method, charging protection device, mobile terminal and storage medium

    CN111431226A

  • Power supply method and device for equipment, terminal equipment and storage medium

    CN113703560A

  • Battery charging management method, system and device and storage medium

    CN115912561A

  • Charging control method and device, equipment and storage medium

    CN117081185A