Method, system and device for automated management of battery replacement system and storage medium
By linking battery identification information with cabinet monitoring data and conducting multi-dimensional evaluation, the problem of low-quality batteries and inconsistent status in the battery replacement system has been solved, enabling refined management of battery status and resource optimization, thereby improving battery swapping success rate and system efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN SOUTHKING TECH CO LTD
- Filing Date
- 2026-01-26
- Publication Date
- 2026-06-05
AI Technical Summary
The existing battery replacement system is poorly managed, resulting in users receiving low-quality batteries, uneven system load, accelerated battery wear, and discrepancies between online virtual inventory and offline physical condition, leading to battery replacement failures or asset loss.
By associating battery identification information with cabinet monitoring data, a battery status set is generated. A candidate battery list is filtered based on user requests and location information, and multi-dimensional evaluation and priority ranking are performed. A battery swapping instruction is constructed, and the battery status information is updated through a verification closed loop.
It enables refined management of the battery's entire lifecycle status, improves the quality and matching accuracy of battery recommendations, ensures consistency between online and offline status, reduces the risk of battery swapping failures and asset inconsistencies, optimizes the allocation and use of battery resources, and improves system operational efficiency.
Smart Images

Figure CN122155161A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of battery technology, and in particular to an automated management method, system, device, and storage medium for a battery replacement system. Background Technology
[0002] With the rapid popularization of electric vehicles and the increasing development of shared mobility models, battery swapping systems, as critical infrastructure, are becoming increasingly important. Currently, most battery swapping systems are managed in a relatively crude manner, often matching batteries based only on rough location or simple charge information, lacking refined perception and integrated analysis of the battery's entire lifecycle status. This approach easily leads to problems such as users receiving low-quality batteries, uneven system load, and accelerated battery degradation. Furthermore, at the command execution and status synchronization level, inconsistencies often arise between online virtual inventory and offline physical status due to the lack of a reliable verification loop, resulting in battery swapping failures or asset loss. Summary of the Invention
[0003] The main objective of this invention is to provide an automated management method, system, device, and storage medium for battery replacement systems, which can significantly improve the quality and matching accuracy of battery recommendations to users and solve the problem of users obtaining low-quality batteries due to inadequate information.
[0004] To achieve the above objectives, the present invention provides an automated management method for a battery replacement system, comprising: Obtain battery identification information and cabinet monitoring data from the battery replacement system, and perform correlation processing on the battery identification information and the cabinet monitoring data to generate a battery status set. Based on the received user battery swapping request and user location information, the corresponding candidate battery list is filtered and extracted from the battery status set, the candidate battery list is evaluated, and a battery recommendation sequence is generated. Based on the battery information selected by the user in the battery recommendation sequence and the user's location information, a corresponding battery swapping instruction is constructed, and the battery swapping instruction is sent to the corresponding target battery swapping cabinet through the battery swapping system. Obtain the battery swapping feedback information uploaded by the target battery swapping cabinet, and update the battery identification information based on the battery swapping feedback information.
[0005] Furthermore, the step of acquiring battery identification information and cabinet monitoring data from the battery replacement system, and performing correlation processing on the battery identification information and the cabinet monitoring data to generate a battery status set, includes: Extract the battery identification code from the battery identification information, and extract the battery data entries in the cabinet from the cabinet monitoring data; The battery identification code is associated with the battery data entries in the cabinet to obtain the battery association relationship; Based on the battery association relationship, battery power data, battery temperature data and battery location data are extracted from the monitoring data of the power cabinet and integrated to obtain a single battery status record. The battery status set is generated by aggregating all the single battery status records based on the battery identification code.
[0006] Further, the step of filtering and extracting a corresponding candidate battery list from the battery status set based on the received user battery swapping request and user location information includes: Extract the user equipment model from the user's battery swap request, and filter the battery records in the battery status set according to the user equipment model to obtain an initial battery set; Calculate the path distance between the user's location information and each battery record in the initial battery set, and remove the battery records whose path distance exceeds a preset distance threshold to obtain a neighboring battery set; The status identifier of each battery record in the neighboring battery set is traversed, and the battery records whose status identifiers do not meet the preset status conditions are removed to obtain the candidate battery list.
[0007] Further, calculating the path distance between the user's location information and each of the battery records in the initial battery set includes: Obtain the coordinate data contained in the user location information, and extract the battery storage location coordinates corresponding to each battery record; The user's location coordinates are paired with each of the battery storage location coordinates to form multiple coordinate pairs; Calculate the difference between the abscissa components and the difference between the ordinate components for each of the coordinate pairs; The difference between the horizontal coordinate components and the difference between the vertical coordinate components are squared respectively to obtain the difference between the squared horizontal coordinate components and the difference between the squared vertical coordinate components. The sum of the squared differences of the horizontal coordinates and the squared differences of the vertical coordinates is obtained to obtain the sum of squared coordinate distances; The path distance is obtained by taking the square root of the sum of the squares of the coordinate distances.
[0008] Further, battery evaluation is performed on the candidate battery list to generate a battery recommendation sequence, including: Extract the battery health parameter and current power parameter for each battery record in the candidate battery list; If the battery health parameter is lower than the preset health threshold, the battery record will be marked as a low health record. If the current battery level parameter is higher than the preset full charge threshold, then the battery record is marked as a full charge record; According to the preset priority rules, the battery records marked as fully charged records and not marked as low health records are given the highest priority, the battery records marked only as fully charged records are given the second highest priority, and the remaining battery records are given a basic priority from high to low according to the current power parameters. The battery records in the candidate battery list are sorted according to the highest priority, the second highest priority, and the basic priority to generate the battery recommendation sequence.
[0009] Further, the step of constructing a corresponding battery swapping instruction based on the battery information selected by the user in the battery recommendation sequence and the user's location information, and sending the battery swapping instruction to the corresponding target battery swapping cabinet through the battery swapping system, includes: Based on the battery information, the target battery swapping cabinet identifier and slot number of the target battery are extracted from the battery status set; The target battery swapping cabinet is identified based on the target battery swapping cabinet identifier, and the physical distance between the user's location information and the target battery swapping cabinet is calculated. Determine whether the physical distance is within the preset serviceable distance range; If it is within the serviceable distance range, the corresponding battery swapping instruction is generated according to the slot number; If the battery is not within the serviceable distance range, a new target battery is identified from the serviceable distance range based on the battery information and the location information, and an instruction is constructed based on the new target battery to obtain the battery swapping instruction. The battery swapping command is sent to the corresponding target battery swapping cabinet through the communication interface of the battery swapping system.
[0010] Further, the step of obtaining the battery swapping feedback information uploaded by the target battery swapping cabinet and updating the battery identification information based on the battery swapping feedback information includes: Extract the battery swapping operation results and battery identity data from the battery swapping feedback information; Based on the battery identity data, the corresponding battery identification information is located from the battery state set; The battery identification information is updated based on the battery swapping operation result. When the battery swapping operation result is a successful battery swap, the status field and location field in the battery identification information are replaced with the new battery status and new battery location in the battery swapping operation result. When the battery swapping operation fails, an operation failure flag is marked in the battery identification information, and the status field and the location field are retained. The battery identification information after the update operation is performed is synchronized to the battery status set, thus completing the update of the battery identification information.
[0011] The present invention also provides an automated management system for a battery replacement system, applicable to the automated management method for the battery replacement system described in any one of the above claims, comprising: The acquisition module is used to acquire battery identification information and cabinet monitoring data of the battery replacement system, and to perform correlation processing on the battery identification information and the cabinet monitoring data to generate a battery status set. The analysis module is used to filter and extract a corresponding candidate battery list from the battery status set based on the received user battery swapping request and user location information, evaluate the candidate battery list, and generate a battery recommendation sequence. The association module is used to construct a corresponding battery swapping instruction based on the battery information selected by the user in the battery recommendation sequence and the user location information, and send the battery swapping instruction to the corresponding target battery swapping cabinet through the battery replacement system. The processing module is used to obtain the battery swapping feedback information uploaded by the target battery swapping cabinet and update the battery identification information based on the battery swapping feedback information.
[0012] The present invention also provides an automated management device for a battery replacement system, comprising: Memory, used to store programs; A processor for executing the program to implement the steps of an automated management method for a battery replacement system as described in any of the preceding claims.
[0013] The present invention also provides a storage medium storing computer instructions for causing a computer to perform the method according to any one of the preceding claims.
[0014] The automated management method, system, device, and storage medium for battery replacement provided by this invention have the following beneficial effects: By constructing a battery status set and correlating battery identification information with multi-dimensional cabinet monitoring data, refined perception and unified management of the entire lifecycle status of batteries, including health and real-time operating conditions, are achieved, providing a reliable data foundation for precise scheduling. Battery recommendation sequences are generated based on multi-dimensional battery evaluation, effectively integrating multiple factors and significantly improving the quality and matching accuracy of recommended batteries to users, solving the problem of users receiving low-quality batteries due to incomplete information. A verification closed loop consisting of command execution and battery swapping feedback information ensures the consistency and reliability of online commands and offline physical operation status, greatly reducing the risk of battery swapping failures and asset inconsistencies. Continuous analysis of battery status and rule-based intelligent scheduling optimize the allocation and recycling of battery resources, helping to balance system load and slow down the overall battery wear rate, improving the long-term operational efficiency and asset utilization of the system. Attached Figure Description
[0015] Figure 1 This is a flowchart of an automated management method for a battery replacement system provided by the present invention; Figure 2 This is a structural diagram of an automated management device for a battery replacement system provided by the present invention; Figure 3 This is a structural diagram of an automated management system for a battery replacement system provided by the present invention.
[0016] The objectives, features, and advantages of this invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0018] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments.
[0019] Reference Figure 1 As shown, 1. An automated management method for a battery replacement system, comprising: Step S1: Obtain battery identification information and cabinet monitoring data from the battery replacement system, and perform correlation processing on the battery identification information and the cabinet monitoring data to generate a battery status set; Specifically, battery identification information includes hardware codes (such as RFID chip serial numbers) and visual codes (such as QR codes on the casing) carried by the battery itself. The battery cabinet monitoring data comes from the sensor network and controllers of each battery compartment in the battery swapping cabinet. It includes real-time voltage and current reported by the charging module, cell temperature collected by the temperature sensor, and status signals from the compartment door or photoelectric sensor used to determine the physical presence of the battery. It also includes hardware codes successfully read from inside the battery compartment.
[0020] The system iterates through all battery cabinet monitoring data. For each data entry containing a battery hardware code, a matching search is performed in the battery identification information database. Once a record with a completely matching hardware code is found, a mapping is established between the battery identification information and that real-time monitoring data entry. Subsequently, battery power data, battery temperature data, and battery location data are parsed from this monitoring data entry and encapsulated together with the virtual battery ID to form a single battery status record with a unified index. By continuously aggregating the status records corresponding to all successfully matched batteries, a global battery status set is generated.
[0021] Step S2: Based on the received user battery swapping request and user location information, filter and extract the corresponding candidate battery list from the battery status set, evaluate the candidate battery list, and generate a battery recommendation sequence; Specifically, based on the model information of the user's device in the user's battery swap request, the battery status set is initially filtered to exclude battery records with incompatible specifications, forming an initial battery set. Based on the user's location information and the battery swapping cabinet locations associated with each battery in the initial battery set, the path distance between them is calculated. The difference between the user's coordinates and the battery swapping cabinet coordinates in the latitude and longitude directions is obtained, and after squaring, summing, and square rooting, a straight-line distance estimate is obtained. Battery records with distances exceeding a preset threshold are removed, generating a neighboring battery set. Next, availability filtering is performed, iterating through the status identifier of each battery in the neighboring battery set, for example, checking whether its status is "charging complete" and "not reserved," removing batteries that do not meet the preset availability conditions, resulting in a candidate battery list. After obtaining the candidate list, a multi-dimensional evaluation is initiated to generate a recommendation sequence. The health parameters and current charge parameters of each battery in the list are extracted, and batteries are marked as low health records or fully charged records according to preset thresholds. Batteries are sorted according to a preset priority rule: batteries that are fully charged and have a healthy status indicator have the highest priority; batteries that are fully charged but have a health status below excellent have the second highest priority; and the remaining batteries are sorted from highest to lowest based on their current battery level. After this sorting process, the candidate battery list is transformed into an ordered battery recommendation sequence.
[0022] Step S3: Based on the battery information selected by the user in the battery recommendation sequence and the user location information, construct a corresponding battery swapping instruction, and send the battery swapping instruction to the corresponding target battery swapping cabinet through the battery replacement system; Specifically, after receiving the battery information selected by the user in the recommended sequence, the unique identifier of the target battery is parsed from the battery information. Based on this identifier, the battery status set is queried to extract the identifier of the target battery swapping cabinet and its specific slot number. The physical distance between the user's current location and the target battery swapping cabinet location is calculated, and it is determined whether this distance is within the preset serviceable distance range. If the determination result is yes, it is determined that the user can go to the cabinet for battery swapping, and a battery swapping instruction is generated accordingly. This instruction includes the target battery swapping cabinet identifier, the target slot number, and commands to perform actions such as unlocking or ejecting. If the determination result is no, meaning that although the target battery is in the recommended list, its actual location is unreachable for the current user, backup logic is activated. This logic, based on the user's current location, re-identifies a new, usable target battery from battery swapping cabinets within the serviceable distance range according to a similar screening and evaluation rule as S2, and generates a corresponding battery swapping instruction. After the instruction is constructed, it is accurately sent to the controller of the corresponding target battery swapping cabinet through its communication interface according to a predefined protocol format, triggering subsequent hardware actions.
[0023] Step S4: Obtain the battery swapping feedback information uploaded by the target battery swapping cabinet, and update the battery identification information based on the battery swapping feedback information.
[0024] Specifically, after executing a battery swapping command at the target battery swapping cabinet, regardless of success or failure, the controller generates and uploads battery swapping feedback information. This feedback information includes an operation result code (success / failure and reason), the final sensor status of the operated battery compartment, and battery identification data read from the battery compartment or the battery itself. Upon receiving the feedback information, the battery identification data is extracted and matched against the battery status set to locate the battery identification information and its complete record involved in the operation. An update strategy is executed based on the operation result in the feedback information. If the operation result clearly indicates a successful battery swap, the new battery status (e.g., "removed") and new location (e.g., becoming "empty" or associated with a new cabinet) contained in the feedback information are used to replace the original status and location fields in the battery record. If the operation result indicates a failed battery swap, the physical location information of the battery is not changed, but an operation failure flag is marked in the battery record, and the reason for the failure may be recorded for subsequent alarm or maintenance procedures. After updating the specific battery identification information, the change is synchronously written back to the global battery status set.
[0025] The automated management method for battery replacement systems provided by this invention constructs a battery status set and correlates battery identification information with multi-dimensional cabinet monitoring data. This enables refined perception and unified management of the entire lifecycle status of batteries, including health and real-time operating conditions, providing a reliable data foundation for precise scheduling. Based on multi-dimensional battery evaluation, a battery recommendation sequence is generated, effectively integrating multiple factors and significantly improving the quality and matching accuracy of recommended batteries to users, solving the problem of users receiving low-quality batteries due to incomplete information. A verification closed loop consisting of command execution and battery replacement feedback information ensures the consistency and reliability of online commands and offline physical operation status, greatly reducing the risk of battery replacement failures and asset inconsistencies. Continuous analysis of battery status and rule-based intelligent scheduling optimize the allocation and recycling of battery resources, helping to balance system load and slow down the overall battery wear rate, improving the long-term operational efficiency and asset utilization of the system.
[0026] In one embodiment, the step of acquiring battery identification information and cabinet monitoring data from the battery replacement system, and performing association processing on the battery identification information and the cabinet monitoring data to generate a battery status set includes: Extract the battery identification code from the battery identification information, and extract the battery data entries in the cabinet from the cabinet monitoring data; The battery identification code is associated with the battery data entries in the cabinet to obtain the battery association relationship; Specifically, all non-empty battery data entries extracted from the monitoring data are traversed. For each entry's battery identification code fragment, a precise query is performed against a pre-extracted full list of battery identification codes. This query operation requires complete code consistency to ensure deterministic matching. When an identical code is found in the global list, a valid association is established. This association is instantiated as a data object containing two-way references: one pointing to the globally unique identifier of the battery asset represented by the battery identification code, and the other pointing to the specific battery swapping cabinet number and battery compartment number that generated the monitoring data. If a battery identification code is not found in any real-time data entry, it means that the battery is not currently deployed in any online battery swapping cabinet.
[0027] Based on the battery association relationship, battery power data, battery temperature data and battery location data are extracted from the monitoring data of the power cabinet and integrated to obtain a single battery status record. Specifically, the system uses correlation relationships as a guide. Each correlation precisely points to a specific battery data entry within the cabinet and its corresponding physical location. Following this guidance, the data segment related to that location is located within the cabinet's monitoring data stream. From this segment, fields representing battery capacity are extracted, such as obtaining battery capacity data by parsing protocol frames or directly reading the SOC value from the BMS communication message. Simultaneously, the digital signal from the temperature sensor is converted into specific battery temperature data. The on / off signal from the physical presence sensor is interpreted as battery presence data (either present or absent). These three types of data are timestamped to ensure they reflect a snapshot of the state at the same sampling moment. The battery presence data, battery temperature data, and battery location data, along with the battery identification code as the core index and the battery swapping cabinet and location codes that generated the data, are jointly encapsulated and serialized to form a single battery status record.
[0028] The battery status set is generated by aggregating all the single battery status records based on the battery identification code.
[0029] The method provided in this embodiment establishes a precise and dynamic mapping relationship between the battery's digital identity and its physical location and real-time status by deterministically associating the battery identification code with the battery data entries in the cabinet. This effectively solves the problem of the disconnect between asset identification and real-time status in traditional management, ensuring the accuracy and reliability of status tracking. Based on this association, battery power, temperature, and location data are extracted and integrated to generate a single-battery status record, achieving structured and normalized processing of multi-source heterogeneous monitoring data and overcoming the shortcomings of data dispersion and difficulty in comprehensive utilization. All single-battery status records are then aggregated based on the battery identification code to generate a global battery status set.
[0030] In one embodiment, the step of filtering and extracting a corresponding candidate battery list from the battery state set based on the received user battery swapping request and user location information includes: Extract the user equipment model from the user's battery swap request, and filter the battery records in the battery status set according to the user equipment model to obtain an initial battery set; Specifically, the user device model is extracted from a specified field in the user's battery swap request. Each battery record in the battery state set is traversed. For each record, the stored field describing the battery specifications is accessed. The user device model is compared with the battery specification field, and a predefined compatibility mapping table is used for determination. For example, this compatibility mapping table defines that a certain model of electric bicycle can only be matched with batteries of a specific voltage range and interface type. If the comparison result shows that the two are compatible, the battery record is marked as valid and temporarily stored; if any specification mismatch exists, such as voltage incompatibility or different physical socket types, the record is excluded. After traversing the entire battery state set, all battery records marked as valid are collected and organized into an initial battery set.
[0031] Calculate the path distance between the user's location information and each battery record in the initial battery set, and remove the battery records whose path distance exceeds a preset distance threshold to obtain a neighboring battery set; The status identifier of each battery record in the neighboring battery set is traversed, and the battery records whose status identifiers do not meet the preset status conditions are removed to obtain the candidate battery list.
[0032] Specifically, starting with the first record in the neighboring battery set, each battery record is accessed sequentially. For the currently accessed record, its internally stored status identifier field is read. Preset status conditions are usually in the form of logical expressions, such as (status identifier == "charging complete") && (reservation flag == false). The read status identifier value is substituted into this logical expression for calculation to obtain a judgment result. If the calculation result is true, it indicates that the battery is currently in an available state, meeting the conditions for being selected by the user, and the record is retained and added to a temporary result container. If the calculation result is false, it indicates that the battery is unavailable due to reasons such as not being fully charged, being reserved by someone else, or being under maintenance, and the record is directly discarded and does not proceed to the next step. This traversal and judgment process continues until all records in the neighboring battery set have been processed. Finally, all records accumulated in the temporary result container are officially output as a candidate battery list.
[0033] The method provided in this embodiment filters battery records based on user device models, ensuring that recommended batteries are fully compatible with user devices in terms of physical specifications and electrical interfaces. This avoids replacement failures due to battery-device incompatibility from the outset, forming a fundamental guarantee for service availability and significantly improving the first-time success rate of battery swapping operations. By calculating the path distance between the user's location and the battery storage location and eliminating those based on a preset threshold, candidate battery resources are converged from a global scope to a geographically accessible area for the user. This ensures that batteries in the subsequent recommendation list all have actual service accessibility, effectively shortening the user's average travel distance and waiting time, and optimizing the spatial efficiency of the service experience.
[0034] In one embodiment, calculating the path distance between the user location information and each of the battery records in the initial battery set includes: Obtain the coordinate data contained in the user location information, and extract the battery storage location coordinates corresponding to each battery record; The user's location coordinates are paired with each of the battery storage location coordinates to form multiple coordinate pairs; Calculate the difference between the abscissa components and the difference between the ordinate components for each of the coordinate pairs; Specifically, The difference between the horizontal coordinate components and the difference between the vertical coordinate components are squared respectively to obtain the difference between the squared horizontal coordinate components and the difference between the squared vertical coordinate components. The sum of the squared differences of the horizontal coordinates and the squared differences of the vertical coordinates is obtained to obtain the sum of squared coordinate distances; The path distance is obtained by taking the square root of the sum of the squares of the coordinate distances.
[0035] The method provided in this embodiment acquires and pairs user location coordinates with battery storage location coordinates, transforming abstract spatial relationships into computable, standardized data pairs. This provides precise and regular input for performing unified geometric operations, laying a data foundation for accurate distance quantification. By performing coordinate component difference calculations, squaring, and summation step-by-step, a planar geometric distance calculation process is constructed. This process avoids the overhead of calling complex geographic information systems and achieves stable and efficient path distance calculation with a predictable and finite number of calculation steps. By performing a square root operation on the sum of squared coordinate distances, the intermediate calculation results are finally transformed into intuitive straight-line distance values. These values serve as the direct basis for subsequent proximity judgments, ensuring the consistency and comparability of screening standard metrics, and making distance-based service accessibility judgments have a clear mathematical basis and reproducibility.
[0036] In one embodiment, battery evaluation is performed on the candidate battery list to generate a battery recommendation sequence, including: Extract the battery health parameter and current power parameter for each battery record in the candidate battery list; If the battery health parameter is lower than the preset health threshold, the battery record will be marked as a low health record. Specifically, each parameter pair (health, battery level) associated with a battery record is iterated through. For the currently processed parameter pair, the health value is compared with a preset health threshold. This comparison is a strict less-than condition: if the health value is less than the threshold (e.g., health 75% < threshold 80%), the comparison condition is met; if the health value is greater than or equal to the threshold, the condition is not met. When the comparison condition is met, a marking operation is triggered. The marking operation sets a low health flag to true in the corresponding battery record data structure. This flag is tightly bound to the battery record as a new attribute. If the comparison condition is not met, the low health flag for the battery record remains false or in a default state, or the tag is not added to the tag set.
[0037] If the current battery level parameter is higher than the preset full charge threshold, then the battery record is marked as a full charge record; Specifically, the traversal process revisits each parameter pair (health, battery level). For the currently processed parameter pair, the current battery level value is compared with a preset full-charge threshold. If the current battery level value is greater than or equal to the threshold (e.g., 98% battery level >= 95% threshold), the comparison condition is met; otherwise, it is not met. When the condition is met, a flag representing full charge is set to true, or a full-charge tag is added to the status tag set. This tag is independent of the low health level tag, and the two together constitute a binary description of the battery state. If the condition is not met, the full-charge flag remains false or in the default state. After traversing all parameter pairs, each record in the candidate battery list is assigned a full-charge flag.
[0038] According to the preset priority rules, the battery records marked as fully charged records and not marked as low health records are given the highest priority, the battery records marked only as fully charged records are given the second highest priority, and the remaining battery records are given a basic priority from high to low according to the current power parameters. The battery records in the candidate battery list are sorted according to the highest priority, the second highest priority, and the basic priority to generate the battery recommendation sequence.
[0039] Specifically, the entire list is divided into three distinct groups: all records marked as highest priority form the first group, all records marked as second-highest priority form the second group, and all records marked as basic priority form the third group. Between groups, the sorting rules are mandatory: all records in the first group (highest priority) have a final order before any record in the second group (second-highest priority); similarly, all records in the second group have a final order before any record in the third group (basic priority). Within each group, for the highest and second-highest priority groups, since all records have the same priority level, their internal order can maintain the original relative order or be simply and stably sorted according to other minor rules (such as record ID). For the basic priority group, a more refined sorting is required, i.e., sorted in descending order based on the current battery parameter value of each record, with the record with the highest battery level at the beginning of the group. The records in the first, second, and third groups are then concatenated end-to-end to form a battery recommendation sequence.
[0040] The method provided in this embodiment overcomes the limitations of traditional recommendations that rely solely on a single power level indicator by extracting both battery health and current power parameters for dual evaluation and marking battery status based on preset thresholds. Based on preset priority rules, batteries that simultaneously meet both full charge and health standards are assigned the highest recommendation priority, ensuring users receive the best-performing battery resources first. Furthermore, by establishing a second-highest priority and a basic priority based on power level, a multi-layered recommendation logic is constructed, achieving reasonable scheduling and protection of battery assets while ensuring user experience. Finally, all candidate batteries are sorted according to a clear priority order to generate a recommendation sequence. This sequence transforms the complex evaluation results into an intuitive recommendation list, not only improving user selection efficiency and satisfaction but also optimizing the overall operational efficiency and asset health of the battery network through algorithmic guidance.
[0041] In one embodiment, the step of constructing a corresponding battery swapping instruction based on the battery information selected by the user in the battery recommendation sequence and the user's location information, and sending the battery swapping instruction to the corresponding target battery swapping cabinet through the battery swapping system, includes: Based on the battery information, the target battery swapping cabinet identifier and slot number of the target battery are extracted from the battery status set; The target battery swapping cabinet is identified based on the target battery swapping cabinet identifier, and the physical distance between the user's location information and the target battery swapping cabinet is calculated. Determine whether the physical distance is within the preset serviceable distance range; If it is within the serviceable distance range, the corresponding battery swapping instruction is generated according to the slot number; Specifically, the core operation type of the instruction is determined, with the user battery removal scenario being unlocking or ejection. A complete data structure is constructed according to a predefined instruction data framework. This structure must contain at least the following key fields: instruction type code (indicating a battery removal instruction), target battery swapping cabinet identifier (for network routing), target slot number (for cabinet location), and operation instruction parameters (such as action code), and may include a timestamp, session identifier, or security verification code. The slot number is directly filled into the corresponding field within the instruction data structure during this process. The instruction construction ensures its semantic clarity, enabling it to be correctly parsed by the target battery swapping cabinet's communication protocol stack and translated into a battery swapping instruction for the specified slot's electromagnetic lock and ejection mechanism.
[0042] If the battery is not within the serviceable distance range, a new target battery is identified from the serviceable distance range based on the battery information and the location information, and an instruction is constructed based on the new target battery to obtain the battery swapping instruction. Specifically, if the user is not within the serviceable distance range, a backup recommendation logic is activated. Using the current user location information as the core, a new geographical area is defined, centered on that location and with a serviceable distance threshold as the radius. Within this area, the filtering process is re-invoked, but the input parameters are adjusted to: user device model (obtained from the original battery information or request), user's current location, and the serviceable distance range itself as distance filtering conditions. This process filters all batteries within this service area that are compatible with the device model and have available status from the battery status set, forming a new local candidate set. Evaluation logic is applied to this candidate set to generate an optimized battery recommendation sequence. The battery with the highest ranking in this sequence is identified as the new target battery. The battery swapping cabinet identifier and slot number of this new battery are obtained. Using these two new parameters as input, the instruction construction process is executed to generate a battery swapping instruction corresponding to the new target battery.
[0043] The battery swapping command is sent to the corresponding target battery swapping cabinet through the communication interface of the battery swapping system.
[0044] The method provided in this embodiment accurately extracts the target battery swapping cabinet identifier and slot number based on the user's selected battery information, precisely mapping the user's subjective choice to specific physical equipment and slot. This ensures the uniqueness and certainty of the target battery swapping command, laying a precise data foundation for subsequent reliable equipment control. By calculating the physical distance between the user's location and the target battery swapping cabinet and determining whether it is within the service range, the actual reachability of the recommended results is finally verified. This effectively avoids generating invalid commands due to excessive geographical distance, thereby improving the actual success rate of the battery swapping service and user satisfaction. When it is determined to be unreachable, a new target battery is dynamically identified within the service range based on the current user location and equipment information, and a command is constructed. This achieves elastic adaptation and intelligent degradation of service resources, ensuring the availability of the user's core battery swapping needs while maintaining the validity of system commands and the continuity of user experience.
[0045] In one embodiment, obtaining the battery swapping feedback information uploaded by the target battery swapping cabinet and updating the battery identification information based on the battery swapping feedback information includes: Extract the battery swapping operation results and battery identity data from the battery swapping feedback information; Based on the battery identity data, the corresponding battery identification information is located from the battery state set; The battery identification information is updated based on the battery swapping operation result. When the battery swapping operation result is a successful battery swap, the status field and location field in the battery identification information are replaced with the new battery status and new battery location in the battery swapping operation result. When the battery swapping operation fails, an operation failure flag is marked in the battery identification information, and the status field and the location field are retained. The battery identification information after the update operation is performed is synchronized to the battery status set, thus completing the update of the battery identification information.
[0046] The method provided in this embodiment extracts operation results and battery identity data from battery swapping feedback information, providing a complete and structured input for status updates. This ensures that subsequent processing can be based on clear business results and accurate target identifiers, laying the foundation for reliable data synchronization. Based on battery identity data, the corresponding battery record is accurately located in the global state set, establishing a one-to-one mapping between hardware feedback information and digital assets in the system. This ensures the accuracy of the status update object and avoids data corruption. Depending on the battery swapping operation result, successful status location replacement or failed operation marking is executed. This conditional update logic accurately reflects different operation results in the physical world, tracking asset flow in a timely manner upon success and retaining the original state and recording anomalies in case of failure, achieving a reasonable correspondence between business logic and data changes.
[0047] Reference Figure 2 As shown, the present invention also provides an automated management system for a battery replacement system, applicable to the automated management method for the battery replacement system described in any one of the above claims, comprising: The acquisition module is used to acquire battery identification information and cabinet monitoring data of the battery replacement system, and to perform correlation processing on the battery identification information and the cabinet monitoring data to generate a battery status set. The analysis module is used to filter and extract a corresponding candidate battery list from the battery status set based on the received user battery swapping request and user location information, evaluate the candidate battery list, and generate a battery recommendation sequence. The association module is used to construct a corresponding battery swapping instruction based on the battery information selected by the user in the battery recommendation sequence and the user location information, and send the battery swapping instruction to the corresponding target battery swapping cabinet through the battery replacement system. The processing module is used to obtain the battery swapping feedback information uploaded by the target battery swapping cabinet and update the battery identification information based on the battery swapping feedback information.
[0048] The automated management system for the battery replacement system provided by this invention has the following beneficial effects: By constructing a battery status set and correlating battery identification information with multi-dimensional cabinet monitoring data, refined perception and unified management of the entire lifecycle status of batteries, including health and real-time operating conditions, are achieved, providing a reliable data foundation for precise scheduling. Battery recommendation sequences are generated based on multi-dimensional battery evaluation, effectively integrating multiple factors and significantly improving the quality and matching accuracy of recommended batteries to users, solving the problem of users receiving low-quality batteries due to incomplete information. A verification closed loop consisting of command execution and battery swapping feedback information ensures the consistency and reliability of online commands and offline physical operation status, greatly reducing the risk of battery swapping failures and asset inconsistencies. Continuous analysis of battery status and rule-based intelligent scheduling optimize the allocation and recycling of battery resources, helping to balance system load and slow down the overall battery wear rate, improving the long-term operational efficiency and asset utilization of the system.
[0049] Reference Figure 3 As shown, the present invention also provides an automated management device for a battery replacement system, comprising: Memory, used to store programs; A processor is used to execute the program to implement the various steps of the automated management method for a battery replacement system as described in any of the above-mentioned embodiments.
[0050] In this embodiment, the processor and memory can be connected via a bus or other means. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive. The processor may be a general-purpose processor, such as a central processing unit, digital signal processor, application-specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention.
[0051] The present invention also provides a storage medium storing computer instructions for causing a computer to perform any of the methods described above.
[0052] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the system and each module described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0053] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. An automated management method for a battery replacement system, characterized in that, include: Obtain battery identification information and cabinet monitoring data from the battery replacement system, and perform correlation processing on the battery identification information and the cabinet monitoring data to generate a battery status set. Based on the received user battery swapping request and user location information, the corresponding candidate battery list is filtered and extracted from the battery status set, the candidate battery list is evaluated, and a battery recommendation sequence is generated. Based on the battery information selected by the user in the battery recommendation sequence and the user's location information, a corresponding battery swapping instruction is constructed, and the battery swapping instruction is sent to the corresponding target battery swapping cabinet through the battery swapping system. Obtain the battery swapping feedback information uploaded by the target battery swapping cabinet, and update the battery identification information based on the battery swapping feedback information.
2. The automated management method for the battery replacement system according to claim 1, characterized in that, The process involves acquiring battery identification information and cabinet monitoring data from the battery replacement system, as well as associating the battery identification information and the cabinet monitoring data to generate a battery status set, including: Extract the battery identification code from the battery identification information, and extract the battery data entries in the cabinet from the cabinet monitoring data; The battery identification code is associated with the battery data entries in the cabinet to obtain the battery association relationship; Based on the battery association relationship, battery power data, battery temperature data and battery location data are extracted from the monitoring data of the power cabinet and integrated to obtain a single battery status record. The battery status set is generated by aggregating all the single battery status records based on the battery identification code.
3. The automated management method for the battery replacement system according to claim 1, characterized in that, The step of filtering and extracting a corresponding candidate battery list from the battery status set based on the received user battery swapping request and user location information includes: Extract the user equipment model from the user's battery swap request, and filter the battery records in the battery status set according to the user equipment model to obtain an initial battery set; Calculate the path distance between the user's location information and each battery record in the initial battery set, and remove the battery records whose path distance exceeds a preset distance threshold to obtain a neighboring battery set; The status identifier of each battery record in the neighboring battery set is traversed, and the battery records whose status identifiers do not meet the preset status conditions are removed to obtain the candidate battery list.
4. The automated management method for the battery replacement system according to claim 3, characterized in that, Calculating the path distance between the user's location information and each of the battery records in the initial battery set includes: Obtain the coordinate data contained in the user location information, and extract the battery storage location coordinates corresponding to each battery record; The user's location coordinates are paired with each of the battery storage location coordinates to form multiple coordinate pairs; Calculate the difference between the abscissa components and the difference between the ordinate components for each of the coordinate pairs; The difference between the horizontal coordinate components and the difference between the vertical coordinate components are squared respectively to obtain the difference between the squared horizontal coordinate components and the difference between the squared vertical coordinate components. The sum of the squared differences of the horizontal coordinates and the squared differences of the vertical coordinates is obtained to obtain the sum of squared coordinate distances; The path distance is obtained by taking the square root of the sum of the squares of the coordinate distances.
5. The automated management method for the battery replacement system according to claim 1, characterized in that, The candidate battery list is evaluated to generate a battery recommendation sequence, including: Extract the battery health parameter and current power parameter for each battery record in the candidate battery list; If the battery health parameter is lower than the preset health threshold, the battery record will be marked as a low health record. If the current battery level parameter is higher than the preset full charge threshold, then the battery record is marked as a full charge record; According to the preset priority rules, the battery records marked as fully charged records and not marked as low health records are given the highest priority, the battery records marked only as fully charged records are given the second highest priority, and the remaining battery records are given a basic priority from high to low according to the current power parameters. The battery records in the candidate battery list are sorted according to the highest priority, the second highest priority, and the basic priority to generate the battery recommendation sequence.
6. The automated management method for the battery replacement system according to claim 1, characterized in that, The step of constructing a corresponding battery swapping instruction based on the battery information selected by the user in the battery recommendation sequence and the user's location information, and sending the battery swapping instruction to the corresponding target battery swapping cabinet through the battery swapping system, includes: Based on the battery information, the target battery swapping cabinet identifier and slot number of the target battery are extracted from the battery status set; The target battery swapping cabinet is identified based on the target battery swapping cabinet identifier, and the physical distance between the user's location information and the target battery swapping cabinet is calculated. Determine whether the physical distance is within the preset serviceable distance range; If it is within the serviceable distance range, the corresponding battery swapping instruction is generated according to the slot number; If the battery is not within the serviceable distance range, a new target battery is identified from the serviceable distance range based on the battery information and the location information, and an instruction is constructed based on the new target battery to obtain the battery swapping instruction. The battery swapping command is sent to the corresponding target battery swapping cabinet through the communication interface of the battery swapping system.
7. The automated management method for the battery replacement system according to claim 1, characterized in that, The step of obtaining the battery swapping feedback information uploaded by the target battery swapping cabinet and updating the battery identification information based on the battery swapping feedback information includes: Extract the battery swapping operation results and battery identity data from the battery swapping feedback information; Based on the battery identity data, the corresponding battery identification information is located from the battery state set; The battery identification information is updated based on the battery swapping operation result. When the battery swapping operation result is a successful battery swap, the status field and location field in the battery identification information are replaced with the new battery status and new battery location in the battery swapping operation result. When the battery swapping operation fails, an operation failure flag is marked in the battery identification information, and the status field and the location field are retained. The battery identification information after the update operation is performed is synchronized to the battery status set, thus completing the update of the battery identification information.
8. An automated management system for a battery replacement system, characterized in that, An automated management method for the battery replacement system according to any one of claims 1-7 includes: The acquisition module is used to acquire battery identification information and cabinet monitoring data of the battery replacement system, and to perform correlation processing on the battery identification information and the cabinet monitoring data to generate a battery status set. The analysis module is used to filter and extract a corresponding candidate battery list from the battery status set based on the received user battery swapping request and user location information, evaluate the candidate battery list, and generate a battery recommendation sequence. The association module is used to construct a corresponding battery swapping instruction based on the battery information selected by the user in the battery recommendation sequence and the user location information, and send the battery swapping instruction to the corresponding target battery swapping cabinet through the battery replacement system. The processing module is used to obtain the battery swapping feedback information uploaded by the target battery swapping cabinet and update the battery identification information based on the battery swapping feedback information.
9. An automated management device for a battery replacement system, characterized in that, include: Memory, used to store programs; A processor is configured to execute the program to implement the steps of the automated management method for a battery replacement system as described in any one of claims 1-7.
10. A storage medium, characterized in that, The computer contains computer instructions for causing the computer to perform the method according to any one of claims 1 to 7.