Anti-theft method of battery equipment, controller, battery equipment and storage medium

By monitoring the battery device's recharging operation, automatically outputting stolen information and disabling functions, the problem of malicious occupation of battery devices in battery sharing mode is solved, achieving efficient theft prevention and timely recovery.

CN121505746APending Publication Date: 2026-02-10XIAMEN AMPACK TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511685490.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-17
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

In the battery-sharing model, battery devices are easily occupied maliciously and are difficult to monitor, resulting in unauthorized occupants failing to return them for extended periods. Existing technologies lack effective anti-theft measures.

Method used

By monitoring the number and method of battery charging operations, the system automatically outputs theft information and disables device functions. Combined with smart charging indicators and clearing commands, it can identify and prevent theft in scenarios such as blind charging, malicious feedback charging, and forced charging.

Benefits of technology

It improves the intelligence of anti-theft monitoring of battery devices, forcing unauthorized users to return them in a timely manner, reducing losses, and lowering the probability of theft through reminders and management follow-up measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121505746A_ABST
    Figure CN121505746A_ABST
Patent Text Reader

Abstract

The anti-theft method for the battery equipment comprises the steps that the number of times that the battery equipment executes a first electricity supplementing operation is larger than or equal to a first value, the stolen information of the battery equipment is output, and the first electricity supplementing operation represents that the battery equipment is connected into charging equipment, the charging equipment charges the battery equipment, and the charging equipment and the battery equipment do not shake with charging within a first duration; and / or, in response to the fact that the number of times that the battery equipment executes second charging operation is larger than or equal to a second value, stolen information of the battery equipment is output, and the second charging operation represents that the battery equipment receives the discharging instruction, the battery equipment executes charging operation, and the charging capacity is larger than or equal to the first capacity; and / or, in response to the fact that the number of times that the battery equipment executes a third charging operation is larger than or equal to a third value, the stolen information of the battery equipment is output, the third charging operation represents that the battery equipment executes the charging operation in the standing state, and the voltage increasing value of a battery cell in the battery equipment is larger than or equal to the first voltage threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery anti-theft technology, and in particular to an anti-theft method, controller, battery device, and storage medium for battery devices. Background Technology

[0002] To facilitate battery replacement for electric vehicles, shared battery cabinets are set up, each equipped with numerous battery devices. These cabinets allow users to borrow batteries when their electric vehicles run out of power. However, this battery-sharing model is susceptible to instances where borrowed battery devices are maliciously not returned. Unauthorized users can charge their devices using other charging tools without returning them to the cabinet, thus perpetuating their illegal use of the batteries. Summary of the Invention

[0003] One objective of this application is to provide an anti-theft method, controller, battery device, and storage medium for battery devices, in order to improve the lack of anti-theft monitoring for battery devices in related technologies.

[0004] In a first aspect, embodiments of this application provide an anti-theft method for a battery device, comprising: outputting stolen information about the battery device in response to the battery device performing a first charging operation a number of times greater than or equal to a first value, wherein: the first charging operation indicates that the battery device is connected to a charging device, the charging device charges the battery device, and the charging device and the battery device do not perform a charging handshake within a first time period; and / or, outputting stolen information about the battery device in response to the battery device performing a second charging operation a number of times greater than or equal to a second value, wherein: the second charging operation indicates that the battery device receives a discharge command, the battery device performs a charging operation, and the charging capacity is greater than or equal to a first capacity; and / or, outputting stolen information about the battery device in response to the battery device performing a third charging operation a number of times greater than or equal to a third value, wherein: the third charging operation indicates that the battery device performs a charging operation in a static state, and the voltage increase of the battery cell in the battery device is greater than or equal to a first voltage threshold.

[0005] The battery device provided in this application embodiment is compatible with and supports the detection of blind charging scenarios, malicious feedback charging scenarios, and forced charging scenarios. When the number of charging operations is too high, the stolen information of the battery device is automatically output without manual intervention, which helps to improve the intelligence of anti-theft monitoring of battery devices. Furthermore, the stolen information forces illegal occupants to return the battery device in a timely manner, and also allows managers to promptly recover the battery device or take corresponding property recovery measures to reduce losses.

[0006] Optionally, the discharge command includes responding to the unlocking device accessing the power-consuming device, the power-consuming device sending a signal to the battery device instructing the battery device to prepare for discharge; and / or, the discharge command includes a communication signal sent by the power-consuming device to the battery device, the communication signal being used to instruct the battery device to prepare for discharge.

[0007] The discharge command provided in this application embodiment involves at least the following two scenarios: when the electrical equipment is unlocked and enters the start-up state or when the electrical equipment is in use. The two scenarios cover the working cycle of the electrical equipment from the start of use to the use process, which is conducive to improving the coverage of monitoring malicious feedback power replenishment in the second power replenishment operation.

[0008] Optionally, in response to the battery device performing a second charging operation a number of times greater than or equal to a second value, the battery device is output as stolen information, including: obtaining the charging duration of the battery device performing a charging operation in a discharging state; in response to the charging duration being greater than or equal to a first duration threshold, determining that the battery device is performing a second charging operation; and / or, in response to the battery device performing a charging operation in a discharging state and the rate of change of the charging current being less than a first threshold, determining that the battery device is performing a second charging operation; and / or, in response to the battery device performing a charging operation in a discharging state and the charging capacity being greater than a first capacity, determining that the battery device is performing a second charging operation.

[0009] The embodiments of this application can not only effectively distinguish between normal feedback charging and malicious feedback charging from the two dimensions of charging capacity and charging time, but also effectively distinguish between normal feedback charging and malicious feedback charging from the dimension of the rate of change of charging current, which is conducive to improving the accuracy of battery devices in identifying malicious feedback charging operations of various means.

[0010] Optionally, the method further includes: after outputting the information that the battery device has been stolen, disconnecting the main switch of the battery device and disabling the battery device so that the battery device cannot perform charging and discharging operations; wherein the main switch includes a charging switch and a discharging switch, so that the battery device can neither receive power from the charging device for charging nor supply power to the load, and the battery device loses the original functions of a normal battery, which is an invalid product for the illegal occupant, thus forcing the illegal occupant to return the battery device in a timely manner.

[0011] Optionally, the method further includes: in response to the battery device performing a first charging operation a number of times greater than or equal to a fourth value, outputting a prompt message to remind the user to check the status of the battery device, wherein the fourth value is greater than 0 and less than the first value; and / or, in response to the battery device performing a second charging operation a number of times greater than or equal to a fifth value, outputting a prompt message to remind the user to check the status of the battery device, wherein the fifth value is greater than 0 and less than the second value; and / or, in response to the battery device performing a third charging operation a number of times greater than or equal to a sixth value, outputting a prompt message to remind the user to check the status of the battery device, wherein the sixth value is greater than 0 and less than the third value.

[0012] This application embodiment can also configure a reminder function for battery devices in blind charging scenarios, malicious feedback charging scenarios, and forced charging scenarios, so as to remind managers to pay attention to the usage status of battery devices in a timely manner.

[0013] Optionally, the method further includes: in response to the battery device detecting a smart charging flag or receiving a clear command, performing a zeroing operation on the number of first charging operations; and / or, in response to the battery device detecting a smart charging flag or receiving a clear command, performing a zeroing operation on the number of second charging operations; and / or, in response to the battery device receiving a clear command, performing a zeroing operation on the number of third charging operations.

[0014] This application embodiment uses a smart charging flag or a clear command to reset the number of charging operations, helping the battery device enter a new normal working state and avoiding the retention of charging operations, which could adversely affect the subsequent working state of the battery device.

[0015] In a second aspect, embodiments of this application provide a controller, characterized in that it includes a memory and a processor, the memory being connected to the processor, the processor being used to execute one or more computer programs stored in the memory, and the processor, when executing one or more computer programs, causing the controller to implement the above-mentioned battery device anti-theft method.

[0016] In a third aspect, embodiments of this application provide a battery device including the controller described above.

[0017] Optionally, the battery device is configured as a shared battery device.

[0018] In a fourth aspect, embodiments of this application provide a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a processor, cause the processor to perform the aforementioned battery device anti-theft method. Attached Figure Description

[0019] One or more embodiments are illustrated by way of example with reference to the accompanying drawings, which are not intended to limit the embodiments, and elements having the same reference numerals in the drawings are designated as similar elements.

[0020] Figure 1 This is a schematic diagram of the circuit structure of a battery device provided in an embodiment of this application; Figure 2 This is a schematic diagram of the communication architecture between the battery device and the cloud server provided in an embodiment of this application; Figure 3 A schematic diagram illustrating a charging handshake between a charging device and a battery device provided for related technologies; Figure 4 A schematic diagram of the communication architecture between the battery device, cloud server, and target terminal provided in an embodiment of this application; Figure 5 This application provides a schematic diagram of a malicious feedback power replenishment scenario. Figure 6 A schematic diagram illustrating a scenario where a two-wheeled electric vehicle is maliciously recharged after being unlocked by a physical key according to an embodiment of this application. Figure 7 This is a schematic diagram illustrating a battery sharing scenario provided in an embodiment of this application. Figure 8 A flowchart illustrating an anti-theft method for a battery device provided in this application embodiment; Figure 9 This is a schematic diagram of the structure of an anti-theft device for a battery device provided in an embodiment of this application; Figure 10 This is a schematic diagram of the circuit structure of a controller provided in an embodiment of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0022] It should be noted that when an element is described as "connected" to another element, it can be directly connected to the other element, or there may be one or more intervening elements. Furthermore, the technical features involved in the various embodiments of this application described below can be combined with each other as long as they do not constitute a conflict.

[0023] The following embodiments of this application provide a battery device. Please refer to... Figure 1The battery device 100 includes a cell module 11, a battery monitoring unit 12, a main switch 13, a current sampling circuit 14, a communication module 15, a charging interface 16, and a controller 17.

[0024] The battery cell module 11 includes N battery cells connected in series, where N is a positive integer and N≥2. The designer can customize the number of battery cells N according to business requirements, for example, N=16. The positive terminal of the Nth battery cell is used as the total positive terminal B+ of the battery cell module 11, and the negative terminal of the first battery cell is used as the total negative terminal B- of the battery cell module 11.

[0025] The battery monitoring unit 12 is used to collect data from the cell module 11 to monitor the operating status of the cell module 11. The battery monitoring unit 12 collects electrical signals from each cell in the cell module 11, and the electrical signals are used to characterize the temperature and / or voltage of the cell. For example, the battery monitoring unit 12 collects the single-cell voltage of each cell, which is the voltage across the two terminals of the cell.

[0026] It is understood that the battery monitoring unit can be a circuit composed of multiple different functional circuits, or the battery monitoring unit 12 can be an integrated chip. As an example, the battery monitoring unit 12 is an AFE chip (Analog Front End).

[0027] The main switch 13 is electrically connected between the positive terminal B+ of the cell module 11 and the positive discharge terminal P+ of the battery device 100, and is also electrically connected to the battery monitoring unit 12. When the battery monitoring unit 12 receives a charging command, it responds to the charging command and controls the main switch 13 to operate in charging mode; when the battery monitoring unit 12 receives a discharging command, it responds to the discharging command and controls the main switch 13 to operate in discharging mode.

[0028] The main switch 13 includes a charging switch and a discharging switch, and the battery monitoring unit 12 is electrically connected to both the charging switch and the discharging switch. In response to a charging command, the battery monitoring unit 12 controls the charging switch to turn on, allowing power from the external adapter to be supplied to the cell module 11 for charging. In response to a discharging command, the battery monitoring unit 12 controls the discharging switch to turn on, allowing power from the cell module 11 to be supplied to the load through the discharging switch.

[0029] The charging switch and discharging switch can be field-effect transistors (FETs) or relays. When the charging switch and discharging switch are FETs, they can be N-type MOSFETs or P-type MOSFETs. In some embodiments, the main circuit of the battery device 100 is provided with multiple charging switches and multiple discharging switches, with the multiple charging switches and multiple discharging switches connected in parallel.

[0030] The current sampling circuit 14 is electrically connected to the battery monitoring unit 12 and is used to collect the charging current flowing through the cell module 11 to obtain sampling data. Based on the sampling data, the battery monitoring unit 12 calculates the current value flowing through the cell module 11 and transmits the current value to the controller 17. The controller 17 integrates the current value flowing through the cell module 11 with respect to time according to the Coulomb integral formula to obtain the charging capacity of the cell module 11. For example, the Coulomb integral formula is: Q represents the charging capacity. This represents the current value flowing through the battery cell module 11. The current sampling circuit 14 can be a sampling resistor or a current sensor, etc.

[0031] The communication module 15 is electrically connected to the controller 17 and is used for communication and interaction with external devices. External devices include computer terminals or cloud servers.

[0032] Please see Figure 2 The external device is a cloud server 200. The battery device 100 sends various interactive information to the cloud server 200 through the communication module 15. For example, the interactive information includes information about the theft of the battery device. Alternatively, the cloud server 200 sends control commands to the communication module 15, and the battery device 100 performs corresponding control operations based on the control commands.

[0033] The communication module 15 includes an optical fiber communication module, a WIFI module, a Bluetooth module, a 6G communication module, a 5G communication module, a 4G communication module, or a 3G communication module, etc.

[0034] The charging interface 16 is electrically connected to the controller 17 and is used to plug in the charging device 18. When the charging device is plugged into the charging interface 16, the controller 17 performs a charging handshake operation with the charging device 18 through the charging interface 16.

[0035] According to the national standard GB27930-2023, the charging handshake is a crucial step in the charging process where the battery device and the vehicle exchange specific messages to confirm each other's status and identity information, preparing for subsequent charging parameter configuration and the charging process. The charging handshake operation has a time limit; if the handshake time exceeds 5 seconds, or if either party fails to receive the other's handshake message, charging ends.

[0036] The controller 17 exchanges messages with the charging device 18 through the charging interface 16 to complete the charging handshake operation. According to the national standard GB27930-2023, the charging handshake operation process is as follows: 1) The battery device sends a handshake message CHM to the vehicle; 2) The vehicle sends a handshake message BHM to the battery device; 3) The battery device sends a CRM message to the vehicle; 4) The vehicle sends a BRM message to the battery device; 5) The handshake phase ends, and the vehicle and battery device stop sending messages in this phase and enter the subsequent charging parameter configuration phase.

[0037] This application embodiment, based on the battery devices provided in the above embodiments, implements an anti-theft method for battery devices, improving the situation where battery devices are borrowed and not returned. Specifically, the battery device supports or is compatible with anti-theft measures for at least the following three malicious charging scenarios.

[0038] ① Blind charging scenario.

[0039] Blind charging scenarios refer to situations where the battery device and the charging device have not completed a charging handshake, yet the charging device is charging the battery device. As mentioned earlier, during the charging operation, the battery device will follow the charging handshake process described above to perform a charging handshake with the charging device to confirm whether the charging device is a legitimate device.

[0040] Please see Figure 3 The charging device 18 is inserted into the charging interface 16 of the battery device 100. The battery device 100 exchanges handshake messages 31 with the charging device 18 according to the charging handshake protocol, and checks whether the charging device 18 is a legitimate device based on the handshake message 31. If the charging device 18 is a legitimate device, the battery device 100 receives the power supply from the charging device 18. If the charging device 18 is an illegitimate device, the battery device 100 stops communicating with the charging device 18, disconnects the main switch, and refuses to receive the power output from the charging device 18.

[0041] When a user borrows battery device 100 and maliciously fails to return it, in order to continue illegally using battery device 100, such a user typically inserts an uncertified charging device or a charging device incompatible with battery device 100 into the charging port 16 of battery device 100 to perform the first charging operation. However, during the charging handshake operation, battery device 100 cannot recognize such a charging device, resulting in a charging handshake failure.

[0042] The battery device 100 monitors whether the first charging operation of the above embodiment occurs. The first charging operation refers to the charging of the battery device 100 by a charging device that is not certified or is incompatible with the battery device 100. The first charging operation indicates that the battery device 100 is connected to the charging device 18, the charging device 18 charges the battery device 100, and the charging device 18 and the battery device 100 do not perform a charging handshake within a first time period.

[0043] The first duration is the duration required by the charging handshake protocol or a duration customized by the designer based on engineering experience. For example, the first duration is equal to the sum of the duration required by the charging handshake protocol and the preset duration. For instance, if the duration required by the charging handshake protocol is 5 seconds and the preset duration is 5 seconds, the first duration is 10 seconds.

[0044] When the battery device 100 detects a first power replenishment operation, it adds the first historical power replenishment count to the natural number 1 to obtain the number of times the battery device 100 has performed the first power replenishment operation. When the battery device 100 does not detect a first power replenishment operation, it maintains the first historical power replenishment count unchanged. The first historical power replenishment count is the number of times the battery device 100 has recorded the number of times it has performed the first power replenishment operation in the past.

[0045] When the number of times the battery device 100 performs the first power replenishment operation is greater than or equal to the first value, the battery device 100 outputs a theft information. When the number of times the battery device 100 performs the first power replenishment operation is less than the first value, the battery device 100 continues to monitor whether the battery device 100 performs the first power replenishment operation.

[0046] Understandably, the first value is customized by the designer based on engineering experience. In some embodiments, the first value is the natural number 1, and the battery device 100 outputs a theft information when the user performs a blind charge once. In other embodiments, considering user error, the first value is a value greater than 1; for example, the first value is 10. When the user performs multiple blind charges on the battery device 100, and the number of blind charges is greater than or equal to 10, the battery device 100 outputs a theft information.

[0047] The theft information pertains to the theft of battery device 100. In some embodiments, please refer to... Figure 4 The battery device 100 sends a theft information to the cloud server 200, which then pushes the theft information to the target terminal 300, such as a manager's computer or mobile phone. In other embodiments, the battery device 100 itself outputs the theft information to attract attention, for example, by emitting a beeping sound. In still other embodiments, the battery device 100 not only outputs the theft information locally but also sends it to the cloud server 200.

[0048] It is understandable that the stolen information may take the form of images, text, voice, or light. For example, if the stolen information is in image form, the target terminal 300 will display the image containing the "stolen information" on its desktop using a pop-up window. Alternatively, if the stolen information is in text form, the cloud server 200 will push the "stolen information" to the target terminal 300 via SMS. Alternatively, the battery device 100 and / or the cloud server 200 may both broadcast the corresponding voice message for the "stolen information" locally. Alternatively, the battery device 100 and / or the cloud server 200 may both generate a flash corresponding to the "stolen information" locally.

[0049] If the number of times the battery device 100 performs the first power replenishment operation is greater than or equal to a first value, the device will output a theft information to remind the administrator that the battery device 100 has been stolen. This will help the administrator take reasonable recovery measures in a timely manner and prevent property loss.

[0050] In a blind charging scenario, after the information indicating that the battery device 100 has been stolen is output, the main switch of the battery device 100 is disconnected, disabling the battery device 100 and preventing it from performing charging and discharging operations. The main switch includes a charging switch and a discharging switch. As a result, the battery device 100 cannot receive power from the charging device for charging, nor can it supply power to the load. The battery device 100 loses the original functions of a normal battery and is an invalid product to the unauthorized user, thus forcing the unauthorized user to return the battery device 100 in a timely manner.

[0051] This application embodiment can also configure a reminder function for the battery device 100 in a blind charging scenario to remind the administrator to pay attention to the usage status of the battery device 100 in a timely manner. Specifically, when the number of times the battery device 100 performs the first charging operation is greater than or equal to a fourth value, a prompt message is output; when the number of times the battery device 100 performs the first charging operation is less than the fourth value, the number of times the battery device 100 performs the first charging operation continues to be monitored, wherein the fourth value is greater than 0 and less than the first value.

[0052] The fourth value is customized by the designer based on engineering experience. For example, the first value is 10 and the fourth value is 5. If the battery device 100 performs the first charging operation 5 times or more, the battery device 100 is being used improperly. The battery device 100 can output a prompt message to the cloud server 200 or locally to remind users to check the status of the battery device 100.

[0053] In this embodiment of the application, when the number of the first recharging operation is greater than or equal to the fourth value, a prompt message is output by the battery device 100. This is to promptly remind the administrator to pay attention to the battery device 100 before it is further overused by an unauthorized user, which helps to reduce the probability of the battery device 100 being stolen.

[0054] Understandably, a user may have a legitimate charging device, but due to operational error, improperly inserts an illegal charging device into the battery device 100 multiple times. This causes the battery device 100 to repeatedly fail to handshake with the illegal charging device, increasing the number of times the battery device 100 performs the first charging operation. In this scenario, to avoid simply disabling the battery device 100, when the battery device 100 detects the smart charging indicator, it resets the number of first charging operations to zero.

[0055] The smart charging icon is generated after the battery device 100 successfully hands off to an certified charging device. This icon indicates that the currently connected charging device is a legitimate device. In the scenario described above, when the battery device 100 detects the smart charging icon, it suggests that the previous first charging operation may have been erroneous. Even if the first charging operation was not erroneous, the smart charging icon implicitly indicates that the battery device 100 is in the possession of a legitimate user or has been returned to the shared battery cabinet. The battery device 100 is currently in a safe state, and therefore does not need to retain the count of the previous first charging operation. Instead, it needs to reset the count to zero to reliably and accurately monitor the next first charging operation.

[0056] It is also understandable that the user can request the administrator to control the battery device 100 to reset the number of the first charging operation. When the battery device 100 receives the reset command, it resets the number of the first charging operation. The reset command is a command to clear the number of charging operations.

[0057] In some embodiments, the clearing command is sent by the cloud server 200. Specifically, the administrator controls the target terminal 300, which sends a first clearing request to the cloud server 200, the first clearing request carrying the device number of the battery device 100. The cloud server 200 responds to the first clearing request and sends a clearing command to the battery device 100 based on the device number of the battery device 100, so that the battery device 100 performs a zeroing operation on the number of the first charging operation based on the clearing command.

[0058] In some embodiments, the clear command is sent by the target terminal 300. Specifically, the administrator controls the target terminal 300, which establishes a Bluetooth or Wi-Fi connection with the battery device 100. The target terminal 300 sends a clear command to the battery device 100 via the Bluetooth or Wi-Fi connection, causing the battery device 100 to reset the number of the first charging operation based on the clear command.

[0059] In some embodiments, the clearing command is generated by the administrator operating the battery device 100. Specifically, the battery device 100 is equipped with a physical button. When a user takes the battery device 100 to the administrator's work area, the administrator operates the physical button, causing the battery device 100 to generate a clearing command.

[0060] This application embodiment uses a smart charging flag or a clear command to reset the number of the first charging operation, helping the battery device 100 enter a new normal working state and avoiding the retention of the number of the first charging operation, which could cause adverse effects on the subsequent working state of the battery device 100.

[0061] ② Malicious feedback charging scenario.

[0062] In normal regenerative braking scenarios, when an electric vehicle is braking, releasing the accelerator, or going downhill, the electrical energy generated by the vehicle's motor is fed back to the battery to charge it, thus completing energy recovery. Malicious regenerative braking scenarios refer to situations where the battery is in a discharging state, and an external power source charges the battery while it is discharging, thereby attempting to recharge it.

[0063] Please see Figure 5 When a user borrows battery device 100 and maliciously fails to return it, placing it in electric vehicle 50, the user inserts charging device 18 into the charging port 16 of battery device 100 and notifies battery device 100 to enter discharge state through vehicle controller 51 of electric vehicle 50. At this time, main switch 13 of battery device 100 enters closed state, and charging device transmits electrical energy to battery device 100 when main switch is closed. Battery device 100 completes the second charging operation, thereby achieving the purpose of maintaining the illegal use of battery device by the unauthorized user.

[0064] To prevent the theft of the battery device 100, the battery device 100 monitors whether the second charging operation described in the above embodiment occurs. The second charging operation refers to the charging current of the charging device being fed back to the battery device 100 when the battery device 100 enters a discharging state, thus charging the battery device 100. The second charging operation indicates that the battery device 100 receives a discharge command, performs a charging operation, and the charging capacity is greater than or equal to the first capacity.

[0065] In some embodiments, the discharge command includes responding to the access of an unlocking device to the electrical device, whereby the electrical device sends a signal to the battery device instructing the battery device to prepare for discharge. The unlocking device includes a physical key or electronic key button, and the electrical device includes an electric vehicle, such as a two-wheeled electric vehicle, a three-wheeled electric vehicle, or an electric vehicle.

[0066] Please see Figure 6 The unlocking device is a physical key 61, and the electrical device is an electric vehicle 50. When the physical key 61 is connected to the electric vehicle 50 and the electric vehicle 50 is started, the vehicle controller 51 of the electric vehicle 50 sends a discharge command to the battery device 100 to instruct the battery device 100 to prepare for discharge.

[0067] The unauthorized user can use the physical key 61 to repeatedly access the electric vehicle 50. The vehicle controller 51 of the electric vehicle 50 continuously sends discharge commands to the battery device 100. When the main switch is closed (both the charging switch and the discharging switch are closed), the charging device transmits electrical energy to the battery device 100. The battery device 100 continuously completes multiple second charging operations, thereby enabling the battery device 100 to store sufficient electrical energy and achieve the purpose of maintaining the unauthorized user's continuous illegal use of the battery device.

[0068] When the battery device 100 detects a second power replenishment operation, it adds the second historical power replenishment count to the natural number 1 to obtain the total number of times the battery device 100 has performed the second power replenishment operation. When the battery device 100 does not detect a second power replenishment operation, it maintains the second historical power replenishment count unchanged. The second historical power replenishment count represents the number of times the battery device 100 has performed the second power replenishment operation over the past period.

[0069] When the number of times the battery device performs the second power replenishment operation is greater than or equal to the second value, the battery device 100 outputs a theft information. When the number of times the battery device 100 performs the second power replenishment operation is less than the second value, the battery device 100 continues to monitor whether the battery device 100 performs the second power replenishment operation.

[0070] In some embodiments, the discharge command includes a communication signal sent by the electrical device to the battery device 100, the communication signal indicating that the battery device 100 is ready to discharge. For example, when the physical key 61 is inserted into the ignition of the electric vehicle 50, the vehicle controller 51 sends a communication signal to the battery device 100 as a discharge command, indicating that the battery device 100 is ready to discharge.

[0071] The discharge command provided in this application embodiment involves at least the following two scenarios: when the electrical equipment is unlocked and enters the start-up state or when the electrical equipment is in use. The two scenarios cover the working cycle of the electrical equipment from the start of use to the use process, which is conducive to improving the coverage of monitoring malicious feedback power replenishment in the second power replenishment operation.

[0072] The unauthorized occupant can simulate an energy recovery scenario, controlling the vehicle controller 51 of the electric vehicle 50 to send a discharge command to the battery device 100. The charging device transmits electrical energy to the battery device 100 when the main switch is closed. The battery device 100 continuously completes multiple second charging operations, thereby prompting the battery device 100 to store sufficient electrical energy.

[0073] In this embodiment of the application, when the number of times the battery device performs the second power replenishment operation is greater than or equal to the second value, the battery device 100 outputs theft information; when the number of times the battery device 100 performs the second power replenishment operation is less than the second value, the battery device 100 continues to monitor whether the battery device 100 performs the second power replenishment operation.

[0074] Understandably, the second value is customized by the designer based on engineering experience. In some embodiments, the second value is the natural number 1, and the battery device 100 outputs a theft information when the user performs a second charging operation on the battery device 100. In other embodiments, considering user error, the second value is a value greater than 1; for example, the second value is 10. The battery device 100 outputs a theft information when the user performs multiple second charging operations on the battery device 100.

[0075] It is also understandable that, under normal regenerative charging conditions, the motor of the electric vehicle can normally provide regenerative charging to the battery device 100. However, the charging capacity of each regenerative charging under normal regenerative charging conditions is less than the first capacity. The first capacity is customized by the designer based on engineering experience. For example, the first capacity is the product of the nominal capacity of a single cell and a preset coefficient, such as 0.3.

[0076] To accurately and effectively distinguish between normal regenerative charging and malicious regenerative charging, this application embodiment sets at least the following conditions for the second charging operation (i.e., malicious regenerative charging operation): a) the battery device receives a discharge command; b) the battery device performs a charging operation; c) the charging capacity is greater than or equal to the first capacity. When the battery device 100 meets the above three conditions, the current regenerative charging operation of the battery device 100 is determined to be the second charging operation.

[0077] In some embodiments, this application embodiment further determines whether the current feedback charging operation is a second charging operation based on the charging time of the battery device 100 in the discharge state and a first duration threshold, as follows: When the battery device 100 performs a normal feedback charging operation, the charging time of the battery device 100 is short, for example, less than 1 minute. When the battery device 100 performs a second charging operation (i.e., a malicious feedback charging operation), the unauthorized user will generally charge the battery device 100 for a longer time in order to increase the battery power, for example, more than 10 minutes or 20 minutes.

[0078] The battery device 100 acquires the charging duration of the charging operation performed in the discharging state. In response to a charging duration greater than or equal to a first duration threshold, it determines that the battery device 100 performs a second recharging operation. In response to a charging duration less than the first duration threshold, it determines that the battery device 100 performs a normal feedback recharging operation. The first duration threshold is customized by the designer based on engineering experience; for example, the first duration threshold is 1 minute.

[0079] The embodiments of this application can not only effectively distinguish between normal feedback charging and malicious feedback charging from the perspective of charging capacity, but also effectively distinguish between normal feedback charging and malicious feedback charging from the perspective of charging time, which is conducive to improving the accuracy of battery devices in identifying malicious feedback charging operations of various means.

[0080] In some embodiments, this application further determines whether the current feedback charging operation is a second charging operation based on the rate of change of the charging current of the battery device 100 in the discharge state and a first threshold, as follows: As mentioned earlier, when the electric vehicle is braking, releasing the accelerator, or going downhill, the battery device 100 performs normal regenerative charging. In this situation, the charging current returned from the electric vehicle's motor to the battery device 100 is affected by the vehicle's speed and wheel rotation, causing fluctuations in the charging current. However, when the battery device 100 performs a second charging operation (i.e., malicious regenerative charging), the charging current supplied to the battery device 100 is generally more stable with less fluctuation.

[0081] When the battery device 100 performs a charging operation while in a discharging state, the battery device 100 monitors the charging current flowing through the cell module via the current sampling circuit 14 through the AFE chip. The controller 17 determines that the rate of change of the charging current is less than a first threshold and therefore determines that the battery device 100 performs a second recharge operation. Conversely, if the rate of change of the charging current is greater than or equal to the first threshold, the controller determines that the battery device 100 performs a normal feedback recharge operation. The first threshold is defined by the designer based on engineering experience; for example, the first threshold is 0.1 amps / second.

[0082] The embodiments of this application can not only effectively distinguish between normal feedback charging and malicious feedback charging from the two dimensions of charging capacity and charging time, but also effectively distinguish between normal feedback charging and malicious feedback charging from the dimension of the rate of change of charging current, which is conducive to improving the accuracy of battery devices in identifying malicious feedback charging operations of various means.

[0083] In the feedback power replenishment scenario, after outputting the information that the battery device 100 has been stolen, the main switch of the battery device 100 is disconnected, disabling the battery device 100. This prevents the battery device 100 from performing charging and discharging operations. As a result, the battery device 100 cannot receive power from the charging device for charging, nor can it supply power to the load. The battery device 100 loses the original functions of a normal battery and is an invalid product to the unauthorized user, thus forcing the unauthorized user to return the battery device 100 in a timely manner.

[0084] This application embodiment can also provide a reminder function for the battery device 100 in the recharge scenario, so as to remind the manager to pay attention to the usage status of the battery device 100 in a timely manner. Specifically, when the number of times the battery device 100 performs the second recharge operation is greater than or equal to the fifth value, a prompt message is output; when the number of times the battery device 100 performs the second recharge operation is less than the fifth value, the number of times the battery device 100 performs the second recharge operation continues to be monitored, wherein the fifth value is greater than 0 and less than the second value.

[0085] The fifth value is customized by the designer based on engineering experience. For example, the second value is 10, and the fifth value is 5. If the battery device 100 performs the second charging operation 5 times or more, the battery device 100 is being used improperly. The battery device 100 can output a prompt message to the cloud server 200 or locally, reminding the user to check the status of the battery device 100.

[0086] In this embodiment of the application, when the number of second power replenishment operations is greater than or equal to the fifth value, the battery device 100 outputs a prompt message so as to promptly remind the administrator to pay attention to the battery device 100 before it is further overused by an illegal user, which helps to reduce the probability of the battery device 100 being stolen.

[0087] Understandably, the administrator of the shared battery cabinet can control the battery device 100 to reset the number of second charging operations. When the battery device 100 is illegally occupied and then returned to the battery cabinet after a period of time, the administrator can reset the number of second charging operations. The reset command is sent by the cloud server 200, the target terminal 300, or generated by the administrator operating the battery device 100.

[0088] This application embodiment uses a smart charging flag or a clear command to reset the number of second charging operations, helping the battery device 100 enter a new normal working state and avoiding the retention of the number of second charging operations, which could cause adverse effects on the subsequent working state of the battery device 100.

[0089] ③ Forced power replenishment scenario.

[0090] Forced charging scenario refers to charging the battery device by directly connecting the charging device to the battery device's positive terminal B+ and negative terminal B-, without connecting the charging device to the battery device's positive discharge terminal P+ and negative discharge terminal P-.

[0091] In order to circumvent the monitoring of the battery management system, some illegal users forcibly disassemble the battery equipment and directly connect the total positive terminal B+ and the total negative terminal B- of the battery cell module to the charging equipment, thereby charging the battery equipment. This can prevent the battery management system from detecting the charging current.

[0092] To avoid the aforementioned situation, the battery device 100 monitors whether the third charging operation of the above embodiment has occurred. The third charging operation refers to the situation where, after the user forcibly removes the battery device 100, the charging device does not charge the battery device through the charging port on the connector (e.g., an aviation connector) on the battery device, but directly connects the charging device to the total positive terminal B+ and the total negative terminal B- of the cell module, thereby charging the battery device 100. In this case, the battery monitoring unit 12 cannot detect the charging current. The third charging operation characterizes the battery device 100 performing a charging operation in a static state, where the voltage increase of the cells in the battery device 100 is greater than or equal to a first voltage threshold. The first voltage threshold is defined by the designer based on engineering experience; for example, the first voltage threshold is 1V.

[0093] The voltage increase value is the difference between the cell voltage after the battery has been connected to a charging device and has been charging for a period of time, and the cell voltage when the battery is not connected to a charging device and is in a resting state. A resting state means that the cell is not currently undergoing any charging or discharging operation.

[0094] When the battery device is in a static state, it acquires logs at a preset frequency. The logs record the voltage of all cells in the battery module after the last charging operation or after the last discharging operation. The battery device finds the cell voltage value from the log. After the battery device is connected to the charging device and performs a charging operation for a period of time, it subtracts the cell voltage found from the log from the current cell voltage to obtain the voltage increase value.

[0095] Understandably, when the battery device is forcibly disassembled, the charging device directly connects to the total positive terminal B+ and the total negative terminal B- of the cell module. The current sampling circuit on the battery monitoring circuit board cannot detect the charging current flowing through the cell module. However, the AFE chip remains connected to the cells in the cell module and can detect the voltage of each cell. Therefore, in a forced charging scenario, the battery device can still determine whether to perform a third charging operation (i.e., a forced charging operation) by checking whether the increase in cell voltage is greater than or equal to a first voltage threshold.

[0096] When the battery device 100 detects a third power replenishment operation, it adds the third historical power replenishment count to the natural number 1 to obtain the total number of times the battery device 100 has performed the third power replenishment operation. When the battery device 100 does not detect a third power replenishment operation, it maintains the third historical power replenishment count unchanged. The third historical power replenishment count represents the number of times the battery device 100 has performed the third power replenishment operation in the past.

[0097] When the number of times the battery device 100 performs the third power replenishment operation is greater than or equal to the third value, the battery device 100 outputs a theft information. When the number of times the battery device 100 performs the third power replenishment operation is less than the third value, the battery device 100 continues to monitor whether the battery device 100 performs the third power replenishment operation.

[0098] Understandably, the third value is customized by the designer based on engineering experience. In some embodiments, the third value is the natural number 1, and the battery device 100 outputs a theft information when the user performs a third power-up operation on the battery device 100. In other embodiments, considering user error, the third value is a value greater than 1; for example, the third value is 10. The battery device 100 outputs a theft information when the user performs multiple third power-up operations on the battery device 100.

[0099] If the number of times the battery device 100 performs the third power replenishment operation is greater than or equal to the third value, the theft information will be output to remind the administrator that the battery device 100 has been stolen, which will help the administrator take reasonable recovery measures in a timely manner and prevent property loss.

[0100] In the forced power replenishment scenario, after outputting the information that the battery device 100 has been stolen, the main switch of the battery device 100 is disconnected, disabling the battery device 100. This prevents the battery device 100 from performing charging and discharging operations. As a result, the battery device 100 cannot receive power from the charging device for charging, nor can it supply power to the load. The battery device 100 loses the original functions of a normal battery and is an invalid product to the illegal occupant, thus forcing the illegal occupant to return the battery device 100 in a timely manner.

[0101] This application embodiment can also provide a reminder function for the battery device 100 in a forced charging scenario, so as to remind the administrator to pay attention to the usage status of the battery device 100 in a timely manner. Specifically, when the number of times the battery device 100 performs the third charging operation is greater than or equal to the sixth value, a prompt message is output; when the number of times the battery device 100 performs the third charging operation is less than the sixth value, the number of times the battery device 100 performs the third charging operation continues to be monitored, wherein the sixth value is greater than 0 and less than the third value.

[0102] The sixth value is customized by the designer based on engineering experience. For example, the sixth value is 10, and the third value is 5. If the battery device 100 performs the third recharging operation 5 times or more, the battery device 100 is being used improperly. The battery device 100 can output a prompt message to the cloud server 200 or locally to remind users to check the status of the battery device 100.

[0103] In this embodiment of the application, when the number of third recharging operations of the battery device 100 is greater than or equal to the sixth value, a prompt message is output so as to promptly remind the administrator to pay attention to the battery device 100 before it is further overused by an illegal user, which helps to reduce the probability of the battery device 100 being stolen.

[0104] Because the battery device 100 is forcibly disassembled in a forced charging scenario, some components of the battery device 100 are easily damaged during the disassembly process, potentially creating safety hazards and causing accidents during subsequent use. To prevent safety accidents involving the battery device 100, even if the battery device 100 has been placed in a shared battery cabinet and connected to a legitimate charging device, and the battery device 100 communicates with the charging device in the shared battery cabinet, the battery device 100 will not simply rely on the smart charging indicator to clear the number of third charging operations; that is, it will not reopen the battery device 100 to provide power to the load. When the battery device 100 receives a clearing command, it resets the number of third recharge operations to zero. The clearing command is sent by the cloud server 200, the target terminal 300, or generated by the administrator operating the battery device 100.

[0105] When a user needs to clear the number of times the battery device 100 has performed a third power-up operation, the user needs to return the battery device 100 to the factory for repair. Once the administrator is aware that the battery device 100 has been returned for repair, they can operate the target terminal 300 or the cloud server 200, or operate the battery device 100 into privileged mode, to send a clear command to the battery device 100. This will cause the battery device 100 to reset the number of third power-up operations to zero based on the clear command. This method reliably and safely eliminates potential safety hazards to the battery device 100, preventing safety accidents during subsequent use.

[0106] This application embodiment uses a clear command to reset the number of third power replenishment operations, helping the battery device 100 enter a new normal working state and avoiding the retention of the number of third power replenishment operations, which could cause adverse effects on the subsequent working state of the battery device 100.

[0107] Battery device 100 can be used in battery sharing scenarios, serving as a shared battery device. Please refer to [link / reference]. Figure 7 The battery device 100 is placed inside the battery sharing cabinet 700, which charges the battery device 100. When a user needs to borrow the battery device 100 from the battery sharing cabinet 700, the user can interact with the battery sharing cabinet 700 using their mobile phone. When the battery sharing cabinet 700 detects that the user is a legitimate user, it opens the battery device 100, and the user can take out the battery device 100 for use.

[0108] In summary, the battery device 100 provided in this application embodiment is compatible with and supports the detection of blind charging scenarios, malicious feedback charging scenarios, and forced charging scenarios. When the number of charging operations is too high, it automatically outputs theft information of the battery device 100 without manual intervention, which helps to improve the intelligence of anti-theft monitoring of battery devices. Furthermore, the theft information forces illegal occupants to return the battery device 100 in a timely manner, and also allows managers to promptly recover the battery device 100 or take corresponding property recovery measures to reduce losses.

[0109] As another aspect of this application, this application provides an anti-theft method for battery devices. Please refer to... Figure 8 The anti-theft methods for battery devices include the following steps: S81, in response to the battery device performing the first charging operation a number of times greater than or equal to a first value, outputs information that the battery device has been stolen.

[0110] In step S81, the first charging operation represents the battery device connecting to the charging device, the charging device charging the battery device, and the charging device and the battery device not performing a charging handshake within a first time period.

[0111] S82, in response to the battery device performing a second power replenishment operation a number of times greater than or equal to a second value, outputs information about the stolen battery device.

[0112] In step S82, the second charging operation indicates that the battery device receives a discharge command, the battery device performs a charging operation, and the charging capacity is greater than or equal to the first capacity.

[0113] S83, in response to the battery device performing a third power replenishment operation a number greater than or equal to a third value, outputs information indicating that the battery device has been stolen.

[0114] In step S83, the third charging operation represents the battery device performing a charging operation in a static state, where the voltage increase of the battery cell in the battery device is greater than or equal to the first voltage threshold.

[0115] It is understandable that steps S81, S82, and S83 can be executed in parallel, or in sequence, or in the order of steps S81, S83, and S82, or steps S82, S83, and S81, or steps S82, S81, and S83, or steps S83, S81, and S82, or steps S83, S82, and S81.

[0116] In some embodiments, the discharge command includes a signal sent by the power device to the battery device in response to the unlocking device accessing the power device, indicating that the battery device is ready to discharge; and / or, the discharge command includes a communication signal sent by the power device to the battery device, the communication signal indicating that the battery device is ready to discharge.

[0117] In some embodiments, step S82 includes: obtaining the charging duration of the battery device performing a charging operation in a discharging state; determining that the battery device performs a second charging operation in response to the charging duration being greater than or equal to a first duration threshold; and / or determining that the battery device performs a second charging operation in response to the battery device performing a charging operation in a discharging state and the rate of change of the charging current being less than a first threshold; and / or subsequently determining that the battery device performs a second charging operation in response to the battery device performing a charging operation in a discharging state and the charging capacity being greater than a first capacity.

[0118] In some embodiments, the method further includes the following steps: after outputting information that the battery device has been stolen, disconnecting the main switch of the battery device, disabling the battery device, and preventing the battery device from performing charging and discharging operations; wherein the main switch includes a charging switch and a discharging switch.

[0119] In some embodiments, the method further includes the following steps: in response to the battery device performing a first charging operation a number of times greater than or equal to a fourth value, outputting a prompt message, the prompt message being used to remind the user to check the status of the battery device, wherein the fourth value is greater than 0 and less than a first value; and / or, in response to the battery device performing a second charging operation a number of times greater than or equal to a fifth value, outputting a prompt message, the prompt message being used to remind the user to check the status of the battery device, wherein the fifth value is greater than 0 and less than a second value; and / or, in response to the battery device performing a third charging operation a number of times greater than or equal to a sixth value, outputting a prompt message, the prompt message being used to remind the user to check the status of the battery device, wherein the sixth value is greater than 0 and less than a third value.

[0120] In some embodiments, the method further includes the following steps: in response to the battery device detecting a smart charging flag or receiving a clear command, performing a zeroing operation on the number of first charging operations; and / or, in response to the battery device detecting a smart charging flag or receiving a clear command, performing a zeroing operation on the number of second charging operations; and / or, in response to the battery device receiving a clear command, performing a zeroing operation on the number of third charging operations.

[0121] It should be noted that in the above embodiments, there is no necessarily a certain order between the steps. Those skilled in the art can understand from the description of the embodiments of this application that the above steps may have different execution orders in different embodiments, that is, they may be executed in parallel or in turn, etc.

[0122] As another aspect of this application, this application provides an anti-theft device for a battery device. The anti-theft device can be a software module, which includes several instructions stored in a memory. A processor can access the memory, invoke the instructions, and execute them to complete the anti-theft methods for the battery device described in the various embodiments above.

[0123] In some embodiments, the anti-theft device for the battery device can also be constructed from hardware components. For example, the anti-theft device for the battery device can be constructed from one or more chips, which can work together to complete the anti-theft methods for the battery device described in the various embodiments above. As another example, the anti-theft device for the battery device can also be constructed from various logic devices, such as general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), microcontrollers, ARM (Acorn RISC Machine) or other programmable logic devices, discrete gate or transistor logic, discrete hardware components, or any combination of these components.

[0124] Please see Figure 9The anti-theft device 900 for battery equipment includes a first power replenishment monitoring module 91, a second power replenishment monitoring module 92, and a third power replenishment monitoring module 93.

[0125] The first power replenishment monitoring module 91 is used to output information about the theft of the battery device in response to the number of times the battery device performs the first power replenishment operation being greater than or equal to a first value. The first power replenishment operation indicates that the battery device is connected to the charging device, the charging device is charging the battery device, and the charging device and the battery device do not perform a charging handshake within a first time period.

[0126] The second power replenishment monitoring module 92 is used to output information about the theft of the battery device in response to the number of times the battery device performs the second power replenishment operation being greater than or equal to a second value, wherein: the second power replenishment operation indicates that the battery device receives a discharge command, the battery device performs a charging operation, and the charging capacity is greater than or equal to a first capacity.

[0127] The third power replenishment monitoring module 93 is used to output information about the theft of the battery device in response to the number of times the battery device performs the third power replenishment operation being greater than or equal to the third value. The third power replenishment operation indicates that the battery device performs a charging operation in a static state, and the voltage increase of the battery cell in the battery device is greater than or equal to the first voltage threshold.

[0128] The discharge command includes a response to an unlocking device connecting to the power-consuming device, the power-consuming device sending a signal to the battery device instructing the battery device to prepare for discharge; and / or, the discharge command includes a communication signal sent by the power-consuming device to the battery device, the communication signal being used to instruct the battery device to prepare for discharge.

[0129] The second power replenishment monitoring module 92 is specifically used for: acquiring the charging duration of the battery device performing a charging operation in a discharging state; determining that the battery device performs a second power replenishment operation in response to the charging duration being greater than or equal to a first duration threshold; and / or determining that the battery device performs a second power replenishment operation in response to the battery device performing a charging operation in a discharging state and the rate of change of the charging current being less than the first threshold; and / or subsequently determining that the battery device performs a second power replenishment operation in response to the battery device performing a charging operation in a discharging state and the charging capacity being greater than a first capacity.

[0130] Please combine Figure 9 The anti-theft device 900 for the battery device also includes a switch disconnect module 94, which is used to: disconnect the main switch of the battery device after outputting information that the battery device has been stolen, disable the battery device, and prevent the battery device from performing charging and discharging operations; wherein, the main switch includes a charging switch and a discharging switch.

[0131] Please combine Figure 9The anti-theft device 900 for the battery device also includes an information reminder module 95, which is used to: output a prompt message in response to the battery device performing a first charging operation a number of times greater than or equal to a fourth value, the prompt message being used to remind the user to check the status of the battery device, wherein the fourth value is greater than 0 and less than the first value; and / or, output a prompt message in response to the battery device performing a second charging operation a number of times greater than or equal to a fifth value, the prompt message being used to remind the user to check the status of the battery device, wherein the fifth value is greater than 0 and less than the second value; and / or, output a prompt message in response to the battery device performing a third charging operation a number of times greater than or equal to a sixth value, the prompt message being used to remind the user to check the status of the battery device, wherein the sixth value is greater than 0 and less than the third value.

[0132] Please combine Figure 9 The anti-theft device 900 for the battery device also includes a count clearing module 96, which is used to: in response to the battery device detecting a smart charging flag or receiving a clearing command, perform a count clearing operation on the first charging operation; and / or, in response to the battery device detecting a smart charging flag or receiving a clearing command, perform a count clearing operation on the second charging operation; and / or, in response to the battery device receiving a clearing command, perform a count clearing operation on the third charging operation.

[0133] It should be noted that the anti-theft device for the battery device described above can execute the anti-theft method for the battery device provided in the embodiments of this application, and has the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in the embodiments of the anti-theft device for the battery device can be found in the anti-theft method for the battery device provided in the embodiments of this application.

[0134] See Figure 10 , Figure 10 This is a schematic diagram of a controller provided in an embodiment of this application. The controller 17 includes one or more processors 171 and a memory 172. The memory 172 is connected to one or more processors 171, for example, via a bus.

[0135] Processor 171 is configured to support controller 17 in performing the corresponding functions in the methods described in the above method embodiments. The processor may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The aforementioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0136] Memory 172 is used to store program code, etc. Memory 172 may include volatile memory (VM), such as random access memory (RAM); memory may also include non-volatile memory (NVM), such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); memory may also include combinations of the above types of memory.

[0137] The memory 172 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the anti-theft method for the battery device in the embodiments of this application. The processor executes the various functional applications and data processing of the anti-theft method and anti-theft device for the battery device by running the non-volatile software programs, instructions, and modules stored in the memory, thereby realizing the functions of the various modules or units of the anti-theft method and anti-theft device for the battery device provided in the above method embodiments.

[0138] The memory 172 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function. The data storage area may store data created based on the use of the anti-theft device of the battery device, etc. In some embodiments, the memory may optionally include memory remotely configured relative to the processor, which can be connected to the anti-theft device of the battery device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0139] The one or more modules are stored in the memory. When executed by the one or more processors, they perform the anti-theft method for the battery device in any of the above method embodiments. For example, they perform the method steps described in the above method embodiments to realize the functions of the modules described in the above device embodiments.

[0140] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a controller, cause the controller to perform the method described in the foregoing embodiments.

[0141] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0142] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A method for preventing theft of battery devices, characterized in that, include: In response to the battery device performing a first charging operation a number of times greater than or equal to a first value, information indicating that the battery device has been stolen is output, wherein: The first charging operation indicates that the battery device is connected to the charging device, the charging device is charging the battery device, and the charging device and the battery device do not perform a charging handshake within a first time period; and / or, In response to the battery device performing a second charging operation a number of times greater than or equal to a second value, information indicating that the battery device has been stolen is output, wherein: The second charging operation indicates that the battery device receives a discharge command, the battery device performs a charging operation, and the charging capacity is greater than or equal to the first capacity; and / or, In response to the battery device performing a third charging operation a number greater than or equal to a third value, information indicating that the battery device has been stolen is output, wherein: The third charging operation represents the battery device performing a charging operation in a static state, wherein the voltage increase of the battery cell in the battery device is greater than or equal to the first voltage threshold.

2. The method according to claim 1, characterized in that, The discharge command includes responding to the unlocking device's access to the power-consuming device, the power-consuming device sending a signal to the battery device instructing the battery device to prepare for discharge; and / or... The discharge command includes a communication signal sent by the electrical device to the battery device, the communication signal being used to instruct the battery device to prepare for discharge.

3. The method according to claim 1 or 2, characterized in that, The response that the number of times the battery device performs the second charging operation is greater than or equal to a second value, outputting information that the battery device has been stolen, includes: Obtain the charging duration of the battery device performing a charging operation in a discharged state; in response to the charging duration being greater than or equal to a first duration threshold, determine that the battery device performs a second charging operation; and / or, In response to the battery device performing a charging operation while in a discharging state, and the rate of change of the charging current being less than a first threshold, it is determined that the battery device will perform a second charging operation; and / or subsequently, In response to the battery device performing a charging operation in a discharging state, and the charging capacity being greater than the first capacity, it is determined that the battery device performs a second charging operation.

4. The method according to any one of claims 1-3, characterized in that, Also includes: After outputting the information that the battery device has been stolen, the main switch of the battery device is turned off, the battery device is disabled, and the battery device is unable to perform charging and discharging operations. The main switch includes a charging switch and a discharging switch.

5. The method according to claims 1-4, characterized in that, Also includes: In response to the battery device performing the first charging operation a number of times greater than or equal to a fourth value, a prompt message is output. This prompt message serves as a reminder to check the status of the battery device, wherein the fourth value is greater than 0 and less than the first value; and / or, In response to the battery device performing the second charging operation a number of times greater than or equal to a fifth value, a prompt message is output. This prompt message serves to remind the user to check the status of the battery device, wherein the fifth value is greater than 0 and less than the second value; and / or, In response to the battery device performing the third charging operation a number of times greater than or equal to a sixth value, a prompt message is output. The prompt message is used to remind the user to check the status of the battery device, wherein the sixth value is greater than 0 and less than the third value.

6. The method according to claim 5, characterized in that, Also includes: In response to the battery device detecting a smart charging flag or receiving a clear command, the number of the first charging operation is reset to zero. And / or, In response to the battery device detecting a smart charging flag or receiving a clear command, the number of the second charging operation is reset to zero; and / or, In response to the battery device receiving a clear command, the number of the third recharge operation is reset to zero.

7. A controller, characterized in that, The device includes a memory and a processor, the memory being connected to the processor, the processor being configured to execute one or more computer programs stored in the memory, and the processor, when executing the one or more computer programs, causing the controller to implement the battery device anti-theft method as described in any one of claims 1-6.

8. A battery device, characterized in that, Includes the controller as described in claim 7.

9. The battery device according to claim 8, characterized in that, The battery device is configured as a shared battery device.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the battery device anti-theft method as described in any one of claims 1-6.