Visual setting method and device for battery electric quantity threshold value and electronic equipment
By displaying battery charge scale ranges and dynamic adjustment range feedback in the user interface, the complexity of battery charge parameter configuration is solved, enabling efficient and reliable parameter configuration and reducing the risk of the battery management system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI SIGE DIGITAL TECHNOLOGY CO LTD
- Filing Date
- 2025-12-25
- Publication Date
- 2026-05-12
AI Technical Summary
In existing technologies, the configuration methods for battery power-related parameters are complex, and ordinary users find it difficult to understand the constraints between parameters, resulting in a complex and risky configuration process, insufficient interactive feedback, and low configuration efficiency.
By displaying the battery charge scale range in the user interface, the relative positions between threshold parameters are used to represent the constraint relationship, the effective adjustment range of the target threshold parameter is dynamically determined, and the changes in the adjustment range are fed back in real time to ensure that the parameters always meet the constraint relationship during drag operations.
It simplifies the user's understanding of multi-parameter configuration, avoids unreasonable combinations and configuration errors, improves configuration efficiency and reliability, and reduces the operational risks of the battery management system.
Smart Images

Figure CN122018763A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of graphical user interface technology, and in particular relates to a method, device and electronic device for visually setting battery power threshold. Background Technology
[0002] In battery management systems and related energy management systems, it is typically necessary to configure multiple parameters related to battery capacity to control the charging and discharging process, operating strategies, and safety status. These parameters often have different functional attributes in practical applications and exhibit certain dependencies in their numerical values. For example, some parameters limit the upper limit of battery operation, while others constrain the lower limit. Specific logical relationships must be satisfied between these different parameters to ensure the rationality and safety of system operation.
[0003] In related technologies, the setting of battery power-related parameters is mostly based on numerical input or parameter list configuration. This type of configuration method usually treats each parameter as an independent configuration item, setting only a fixed value range for each individual parameter. When the relationship between parameters changes, ordinary users find it difficult to promptly determine whether the current configuration status is reasonable, thus increasing the complexity of the configuration process and raising the risk of system problems caused by parameter configuration errors. Summary of the Invention
[0004] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a method, apparatus, and electronic device for visually setting battery power thresholds, in order to improve the reliability and efficiency of parameter configuration.
[0005] Firstly, this application provides a method for visually setting a battery power threshold, the method comprising: The user interface displays a battery power scale range, which includes one or more configurable threshold parameters; wherein the relative positions of the threshold parameters represent the constraint relationship between the threshold parameters. When a drag operation is detected targeting any target threshold parameter, the effective adjustment range of the target threshold parameter is dynamically determined based on the current settings of the remaining threshold parameters and the constraint relationships between the threshold parameters, and the effective adjustment range of at least one of the remaining threshold parameters is updated synchronously. During the drag-and-drop operation, the setting value of the target threshold parameter is limited to the effective adjustment range, and the changes in the effective adjustment range of the target threshold parameter and at least one other threshold parameter are fed back in real time in the user interface, so that the target threshold parameter always satisfies the constraint relationship during the adjustment process.
[0006] Secondly, this application provides a battery power threshold visualization setting device, the device comprising: The display module is used to display a battery power scale range in the user interface. The battery power scale range includes one or more configurable threshold parameters. The relative positions of the threshold parameters represent the constraint relationship between the threshold parameters. The adjustment module is used to dynamically determine the effective adjustment range of the target threshold parameter based on the current setting values of the remaining threshold parameters and the constraint relationship between the threshold parameters when a drag operation is detected for any target threshold parameter, and to synchronously update the effective adjustment range of at least one of the remaining threshold parameters. The feedback module is used to limit the setting value of the target threshold parameter to the effective adjustment range during the drag operation, and to provide real-time feedback on the changes in the effective adjustment range of the target threshold parameter and at least one other threshold parameter in the user interface, so that the target threshold parameter always satisfies the constraint relationship during the adjustment process.
[0007] Thirdly, this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the battery power threshold visualization setting method as described in the first aspect above.
[0008] Fourthly, this application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the battery power threshold visualization setting method as described in the first aspect above.
[0009] Fifthly, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the battery power threshold visualization setting method as described in the first aspect.
[0010] In a sixth aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the battery power threshold visualization setting method as described in the first aspect above.
[0011] The battery power threshold visualization setting method, device, electronic device, non-transitory computer-readable storage medium, chip, and computer program product provided in this application uniformly display multiple threshold parameters in the user interface and intuitively reflect their constraint relationships using the relative states between the threshold parameters. When the user adjusts any target threshold parameter, the effective adjustment range of the target threshold parameter is dynamically limited by combining the current setting states of the other threshold parameters, and the configuration state changes of the relevant threshold parameters are simultaneously fed back. Thus, during the parameter adjustment process, each threshold parameter is continuously constrained to meet the preset constraint relationship. This reduces the burden on users to understand complex constraint relationships in multi-parameter configuration scenarios, avoids repeated configuration and configuration errors caused by unreasonable parameter combinations, improves the efficiency and reliability of the parameter configuration process, and reduces the possibility of operational risks to the battery management system caused by improper threshold settings.
[0012] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0013] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a flowchart illustrating the battery power threshold visualization setting method provided in the embodiments of this application; Figure 2 This is one of the schematic diagrams of the interface for visually setting the battery power threshold provided in the embodiments of this application; Figure 3 This is one of the schematic diagrams of the interface for visually setting the battery power threshold provided in the embodiments of this application; Figure 4 This is the third schematic diagram of the interface for visually setting the battery power threshold provided in the embodiments of this application; Figure 5 This is a schematic diagram of the battery power threshold visualization setting device provided in the embodiments of this application; Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0014] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0015] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0016] In practical applications, battery management systems typically require setting multiple threshold parameters related to battery capacity to control charging, discharging, and standby states under different operating strategies. Common threshold parameters include State of Charge (SOC), State of Discharge (SOC), State of Backup (SOC), and State of Peak Shaving (SOC). These threshold parameters each have a functional focus and usually exhibit strict logical constraints on their values. For example, State of Charge (SOC) must be greater than or equal to State of Peak Shaving (SOC), State of Peak Shaving (SOC) must be greater than or equal to State of Backup (SOC), and State of Backup (SOC) must be greater than or equal to State of Discharge (SOC) to ensure system safety and the rationality of strategy execution. Therefore, when configuring these threshold parameters, users not only need to set each threshold individually but also ensure that the settings conform to the established constraints.
[0017] In actual use, the configuration of the above-mentioned battery power thresholds is often done by ordinary users or non-professional maintenance personnel. Such users usually do not have professional knowledge of battery management or control strategies, and lack a systematic understanding of the functional meaning of different threshold parameters and their inherent constraints.
[0018] In related technologies, battery power parameters are typically set through numerical input or parameter list configuration. Threshold parameters are usually treated as independent configuration items, with fixed value ranges set for individual parameters. When multiple parameters have dependencies or logical constraints, ordinary users may find it difficult to determine the appropriateness of the current parameter combination, leading to confusion or misjudgment during configuration and increasing the complexity of parameter configuration.
[0019] In multi-threshold configuration scenarios, when the values of multiple threshold parameters are close to each other, related technologies often experience configuration conflicts or operational difficulties, making it difficult for users to make fine-tuning adjustments.
[0020] In scenarios where threshold settings are performed using a graphical interactive method, the mapping and conversion between the threshold display position and the threshold value are also involved. In related technologies, this mapping and conversion mechanism is prone to deviation when there are different value ranges, thresholds are close, or the interactive state changes, causing the displayed state to be inconsistent with the actual set value, thereby affecting the user's judgment of the setting result.
[0021] Meanwhile, the management of the constraint relationship between threshold parameters in related technologies is usually relatively fixed, and the constraint rules lack an extensible organizational method. When it is necessary to add a new threshold type or adjust the constraint relationship, a lot of modifications are often required, resulting in high maintenance costs.
[0022] Furthermore, during the interaction process, the relevant technologies often perform constraint verification and status updates only after the user completes the operation, lacking real-time feedback on the operation process. Users find it difficult to know in a timely manner whether the current operation is effective, and often need to rely on repeated attempts and post-event verification to complete the configuration, resulting in low configuration efficiency.
[0023] In summary, when applied to ordinary users, the relevant technologies still have problems such as difficulty in understanding constraints, reliance on user experience for parameter configuration, complex configuration processes, and insufficient interactive feedback, making it difficult to meet users' actual needs for intuitive, reliable, and efficient configuration of battery power thresholds.
[0024] In view of this, this application provides a method for visually setting battery power thresholds, aiming to reduce the difficulty of understanding and operation for ordinary users in configuring multiple power thresholds, improve the rationality and reliability of threshold configuration, and achieve dynamic constraint coordination and interactive guidance in the threshold adjustment process by linking and visually restricting threshold parameters based on the constraint relationship between thresholds in a unified scale range. This avoids the generation of unreasonable threshold combinations, reduces repeated configuration operations, and improves the intuitiveness, accuracy and user experience of battery management parameter settings.
[0025] The following description, in conjunction with the accompanying drawings, details the battery power threshold visualization setting method, battery power threshold visualization setting device, electronic device, and readable storage medium provided in this application through specific embodiments and application scenarios.
[0026] The battery power threshold visualization setting method provided in this application can be executed by an electronic device or a functional module or entity within an electronic device that implements the method. The electronic devices mentioned in this application include, but are not limited to, terminals or servers.
[0027] The following uses an electronic device as an example to illustrate the battery power threshold visualization setting method provided in the embodiments of this application.
[0028] Figure 1This is a flowchart illustrating a method for visually setting battery power thresholds as provided in some embodiments of this application. For example... Figure 1 As shown, the battery power threshold visualization setting method includes steps 110 to 130.
[0029] Step 110: Display the battery power scale range in the user interface. The battery power scale range includes one or more configurable threshold parameters. The relative positions of the threshold parameters represent the constraint relationship between them.
[0030] Electronic devices display battery level scale ranges in the user interface to provide users with a unified visual configuration view of battery level-related threshold parameters.
[0031] The battery power scale range refers to a continuous display area in the user interface used to represent the range of battery power changes. The battery power scale range is used to visually map the range of battery power values and provides a unified reference benchmark for the display, positioning, and interaction of threshold parameters.
[0032] In some embodiments, the battery charge scale range may correspond to the overall range of battery charge from a preset lower limit to a preset upper limit, such as from 0% to 100%; in other embodiments, it may correspond to a portion of that range.
[0033] It should be noted that this application does not limit the specific numerical range or specific representation of the battery power scale interval, which can be a linear scale, a non-linear scale, a horizontal layout, or a vertical layout.
[0034] Within the battery charge scale range, one or more configurable threshold parameters are displayed.
[0035] Among them, the configurable threshold parameter refers to the parameter that is related to the battery operating status or operating strategy and allows users to set or adjust it through the user interface. Its setting value is used to characterize the position of the corresponding threshold in the battery power dimension.
[0036] In some embodiments, different threshold parameters may correspond to different functional attributes, such as limiting the upper limit, lower limit or specific operating range of the battery, which is not limited in this application.
[0037] In this embodiment, each threshold parameter is displayed at a corresponding position within the battery power scale range. The display position refers to the visual location of the threshold parameter within the battery power scale range, representing the relative magnitude of the corresponding setting value of the threshold parameter in the battery power dimension.
[0038] Furthermore, by observing the relative positions of each threshold parameter within the battery charge scale range, the constraint relationships between the threshold parameters can be visualized.
[0039] Among them, constraint relationships refer to the logical relationships that multiple threshold parameters must satisfy in terms of numerical magnitude, used to ensure the rationality of the combination of threshold parameters. For example, constraint relationships can be expressed as size relationship constraints.
[0040] In some embodiments, the order and interval of threshold parameters in the battery charge scale range can intuitively reflect the constraint relationship, allowing users to perceive the configuration boundaries between different threshold parameters without understanding the specific rules.
[0041] In this way, users can simultaneously observe multiple threshold parameters and their interrelationships through the same user interface, providing an intuitive visual basis for subsequent threshold parameter adjustment operations.
[0042] Step 120: When a drag operation is detected for any target threshold parameter, the effective adjustment range of the target threshold parameter is dynamically determined based on the current settings of the other threshold parameters and the constraint relationship between the threshold parameters, and the effective adjustment range of at least one other threshold parameter is updated synchronously.
[0043] Electronic devices detect drag operations initiated by users for any target threshold parameter, and upon detecting a drag operation, trigger a dynamic calculation process for the effective adjustment range of the threshold parameter.
[0044] Drag and drop refers to the interactive behavior in which a user continuously adjusts the position of a threshold parameter in the user interface through an input device. The target threshold parameter is the threshold parameter that the user selects and drags to adjust in the current interaction; the other threshold parameters are other threshold parameters that are also displayed in the battery level scale range, excluding the target threshold parameter.
[0045] In this embodiment, the drag-and-drop operation can be understood as an interactive behavior in which the user applies a continuous positional change to the display position corresponding to the target threshold parameter through an electronic device. Upon detecting the interactive behavior, the electronic device dynamically determines the effective adjustment range of the target threshold parameter in the current interactive state based on the current settings of the other threshold parameters and the pre-existing constraints between them.
[0046] Here, the current setting value refers to the existing setting value of each threshold parameter when the drag operation occurs; the effective adjustment range refers to the numerical range within which the target threshold parameter is allowed to be adjusted under the premise of satisfying the constraint relationship.
[0047] It should be noted that in the embodiments of this application, the effective adjustment range is not fixed in advance, but is dynamically determined as the current setting values of the other threshold parameters change, so that the target threshold parameter is always within the effective range that satisfies the constraint relationship during the adjustment process.
[0048] Furthermore, while determining the effective adjustment range of the target threshold parameter, the electronic device can also synchronously update the effective adjustment range of at least one other threshold parameter based on the current adjustment state of the target threshold parameter. This synchronous update method ensures that multiple threshold parameters maintain consistent constraint boundaries during the same interaction process, preventing inconsistencies in the configuration states and constraint relationships of other threshold parameters due to changes in a single threshold parameter.
[0049] Step 130: During the drag-and-drop operation, the setting value of the target threshold parameter is restricted to the effective adjustment range, and the changes in the effective adjustment range of the target threshold parameter and at least one other threshold parameter are fed back in real time in the user interface, so that the target threshold parameter always satisfies the constraint relationship during the adjustment process.
[0050] While the target threshold parameter is in the drag-and-drop adjustment state, the electronic device performs real-time constraint control on the set value of the target threshold parameter and synchronously outputs feedback information corresponding to the constraint state to the user interface.
[0051] Specifically, during the drag-and-drop operation, the electronic device continuously acquires the interaction status of the target threshold parameter within the battery power scale range, and makes real-time judgments on the setting value of the target threshold parameter based on the effective adjustment range determined in step 120.
[0052] When the set value is detected to be within the valid adjustment range, the electronic device allows the target threshold parameter to change continuously with the drag operation and updates the corresponding set value to the current valid value, thereby enabling the user to continuously adjust the target threshold parameter within the allowable range.
[0053] When the set value is detected to be outside the effective adjustment range, the electronic device restricts the set value of the target threshold parameter to keep it at the boundary of the effective adjustment range, thereby preventing the target threshold parameter from entering an invalid state that violates the constraint relationship.
[0054] This restriction ensures that even if the user continues to perform drag-and-drop operations, the actual setting value of the target threshold parameter remains within the valid range that satisfies the constraint relationship.
[0055] At the same time, during the drag-and-drop operation, the electronic device also provides real-time feedback on the target threshold parameter and the changes in the effective adjustment range of at least one other threshold parameter in the user interface.
[0056] The real-time feedback may include dynamic updates to the boundaries of the effective adjustment range, or visual prompts for the adjustable range of relevant threshold parameters, so that users can intuitively perceive the current effective adjustment range of each threshold parameter during the adjustment process.
[0057] In this way, during the entire process of the user performing drag-and-drop operations, on the one hand, the setting value of the target threshold parameter is restricted in real time to avoid violating the constraint relationship; on the other hand, through continuous interface feedback, the user is guided to complete the parameter adjustment within the effective range, so that the target threshold parameter always meets the constraint relationship between the threshold parameters during the adjustment process.
[0058] According to the battery power threshold visualization setting method provided in the embodiments of this application, multiple threshold parameters are uniformly displayed in the user interface, and their constraint relationships are intuitively reflected by the relative states between the threshold parameters. When the user adjusts any target threshold parameter, the effective adjustment range of the target threshold parameter is dynamically limited by combining the current setting states of the other threshold parameters, and the configuration state changes of the relevant threshold parameters are synchronously fed back. Thus, during the parameter adjustment process, each threshold parameter is continuously constrained to meet the preset constraint relationship. This reduces the burden on users to understand complex constraint relationships in multi-parameter configuration scenarios, avoids repeated configuration and configuration errors caused by unreasonable parameter combinations, improves the efficiency and reliability of the parameter configuration process, and reduces the possibility of operational risks to the battery management system caused by improper threshold settings.
[0059] In related technologies, fixed upper and lower limits are typically preset for a single threshold parameter, such as setting the allowable range of a threshold through a configuration file or system parameter table. In this approach, the configurable range of each threshold parameter is often statically set and does not change as the user adjusts other threshold parameters. When there are logical constraints between multiple threshold parameters, static range limits fail to reflect the true feasible range under the current parameter combination in a timely manner. This can easily lead users into unreasonable or invalid configuration states during the adjustment process, requiring subsequent verification or error messages for correction, resulting in low configuration efficiency and a poor user experience.
[0060] Based on this, in order to improve the rationality and real-time performance of parameter configuration, in some embodiments, the effective adjustment range is limited by the minimum and maximum allowable settings of the target threshold parameter; the minimum and maximum allowable settings are dynamically updated with the drag operation of any threshold parameter.
[0061] When a user drags any target threshold parameter, the electronic device does not limit the value of that threshold parameter solely based on preset global upper and lower limits. Instead, it dynamically calculates the effective adjustment range of the target threshold parameter by considering the current settings of the other threshold parameters. Specifically, based on the constraints between the current threshold parameters, the electronic device determines the minimum and maximum allowable settings of the target threshold parameter in the current state, and uses these minimum and maximum allowable settings to jointly limit the adjustable range of the target threshold parameter.
[0062] During the drag-and-drop operation, if any other threshold parameter is adjusted, the electronic device will recalculate the minimum and maximum allowable settings relative to the target threshold parameter and synchronously update the adjustable range of the target threshold parameter, ensuring that all threshold parameters are always under consistent constraints. This reduces invalid operations and redundant adjustments, avoids the risk of unreasonable configuration caused by static range limitations, and thus improves the efficiency and stability of the parameter configuration process.
[0063] In practical applications, battery capacity-related thresholds often have different business semantics and functional positioning. For example, some thresholds are used to limit the charging process, while others are used to constrain discharging or backup power strategies. However, related technologies typically do not clearly distinguish between different types of thresholds when processing threshold parameters, but rather manage them as a single parameter of the same type.
[0064] Without a threshold type classification, the constraint relationship between thresholds often relies on implicit rules or hard-coded logic, making it difficult to clearly express the sequential relationship of different thresholds at the numerical level. This is not only detrimental to system expansion but also increases the complexity of parameter configuration and maintenance.
[0065] Based on this, in some embodiments, this application configures threshold types for each threshold parameter, with different threshold types corresponding to different functional meanings and control objectives.
[0066] For example, the threshold type may include at least: a charging cutoff type for limiting charging termination conditions, a peak shaving type for controlling peak shaving strategies, a backup power type for ensuring backup power, and a discharge cutoff type for limiting the lower limit of discharge.
[0067] Based on the above threshold type classification, electronic devices can define numerical constraints between different threshold types, creating a clear hierarchical order for each threshold type within the power scale range. For example, the threshold parameter setting for the charging cutoff type must not be less than the threshold parameter for the peak shaving type, the threshold parameter for the peak shaving type must not be less than the threshold parameter for the backup power type, and the threshold parameter for the backup power type must not be less than the threshold parameter for the discharging cutoff type.
[0068] Therefore, during the threshold parameter adjustment process, electronic devices can determine and update the adjustable range of the threshold parameters based on the aforementioned threshold types and their corresponding constraint relationships. This avoids the problem of relying on implicit rules or hard-coded logic to maintain threshold relationships, making the constraint relationships between threshold parameters clearer and more maintainable, and providing a good structural foundation for subsequent expansion of threshold types and adjustment of constraint rules.
[0069] In related technologies, even when the overall constraint relationship between thresholds is clearly defined, a unified or simplified range calculation method is still commonly used to limit the configurable range of thresholds. For example, constraints are based solely on a single adjacent threshold, or fixed upper and lower limits are directly used. This approach ignores the hierarchical differences in the position of different thresholds within the constraint system, which can easily lead to inconsistent constraints on different types of thresholds when adjusted, affecting the rationality of the configuration; or, the theoretically allowed adjustment range of some thresholds is excessively compressed, reducing configuration flexibility; or, when users adjust different types of thresholds, their role in the overall constraint structure cannot be accurately reflected.
[0070] Based on this, in order to ensure that various thresholds conform to the overall constraint relationship while maintaining a reasonable adjustment space during the adjustment process, in some embodiments, the effective adjustment range of the target threshold parameter is dynamically determined based on the current setting value of the other threshold parameters and the constraint relationship between the threshold parameters. This includes: when the target threshold parameter is a charging cutoff type, determining the maximum setting value among the threshold parameters of the other types as the minimum allowable setting value, and determining the preset upper limit value of the power consumption as the maximum allowable setting value; when the target threshold parameter is a peak shaving type, determining the maximum setting value among the threshold parameters of the backup power type and the discharge cutoff type as the minimum allowable setting value, and determining the setting value of the threshold parameter of the charging cutoff type as the maximum allowable setting value; when the target threshold parameter is a backup power type, determining the setting value of the threshold parameter of the discharge cutoff type as the minimum allowable setting value, and determining the minimum setting value among the threshold parameters of the peak shaving type and the charging cutoff type as the maximum allowable setting value; when the target threshold parameter is a discharge cutoff type, determining the preset lower limit value of the power consumption as the minimum allowable setting value, and determining the minimum setting value among the threshold parameters of the backup power type, the peak shaving type, and the charging cutoff type as the maximum allowable setting value.
[0071] When the electronic device detects that a user is dragging and adjusting a target threshold parameter, it first determines the threshold type to which the target threshold parameter belongs. Based on a predefined threshold hierarchy, it then selects other threshold parameters related to that threshold type to participate in the calculation of the adjustable range. By introducing threshold types and hierarchy relationships, the constraints on different thresholds during adjustment are more in line with their functional positioning, avoiding logical deviations caused by a uniform constraint method and enhancing the accuracy of constraint calculation.
[0072] For example, the current system's threshold parameters are set as follows: charging cut-off threshold: 90%; peak shaving threshold: 80%; backup power threshold: 60%; discharge cut-off threshold: 40%.
[0073] When the target threshold parameter is of the charging cutoff type, since this type of threshold is at the top of all threshold levels, the electronic device uses the maximum setting value among the remaining threshold parameters as the minimum allowable setting value of the target threshold parameter, and uses the maximum allowable power limit value as its maximum allowable setting value, thereby ensuring that the charging cutoff threshold is always not lower than other thresholds.
[0074] For example, the electronic device obtains the current settings of other types of threshold parameters, selects the maximum value of 80% as the minimum allowable setting value of the charging cut-off threshold, and uses the preset upper limit of the power (e.g., 100%) as its maximum allowable setting value. Thus, the adjustable range of the charging cut-off threshold is limited to 80% to 100%, so that the threshold is always not less than the other threshold parameters.
[0075] When the target threshold parameter is of the peak shaving type, the electronic device determines the maximum setting value of the backup power type threshold parameter and the discharge cutoff type threshold parameter that have a lower-level constraint relationship with it as the minimum allowable setting value, and determines the setting value of the charging cutoff type threshold parameter that has an upper-level constraint relationship with it as the maximum allowable setting value.
[0076] For example, the electronic device sets the larger of the backup power threshold (60%) and the discharge cutoff threshold (40%) as the minimum allowable setting value, i.e., 60%; and sets the charging cutoff threshold (90%) as the maximum allowable setting value. Therefore, the adjustable range of the peak shaving threshold is determined to be 60% to 90%. Adjusting within this range ensures that the peak shaving threshold always lies between the charging cutoff threshold and the backup power threshold.
[0077] When the target threshold parameter is of the backup power type, the electronic device uses the setting value of the discharge cutoff type threshold parameter as the minimum allowable setting value, and selects the smaller setting value between the peak shaving type and the charging cutoff type threshold parameters as the maximum allowable setting value.
[0078] For example, an electronic device may set the discharge cutoff threshold (40%) as the minimum allowable setting and select the smaller value, 80%, between the peak clipping threshold (80%) and the charging cutoff threshold (90%) as the maximum allowable setting. Thus, the adjustable range of the backup power threshold is 40%–80%, ensuring it remains below the peak clipping threshold and above the discharge cutoff threshold.
[0079] When the target threshold parameter is of the discharge cutoff type, since the threshold is located at the lowest level, the electronic device will use the preset lower limit of power as its minimum allowable setting value, and determine the minimum setting value among the threshold parameters of backup power type, peak shaving type and charging cutoff type as the maximum allowable setting value.
[0080] For example, the electronic device will use a preset lower limit of battery power (e.g., 0%) as the minimum allowable setting value, and select the minimum value among the backup power threshold (60%), peak shaving threshold (80%), and charging cut-off threshold (90%), i.e., 60%, as the maximum allowable setting value. Therefore, the adjustable range of the discharge cut-off threshold is limited to 0% to 60%.
[0081] As can be seen from the above embodiments, the present application determines the minimum and maximum allowable settings for different threshold types, ensuring that the adjustment of each threshold is strictly limited to a constraint range matching its functional attributes. This avoids logical conflicts between thresholds, improves the intuitiveness and stability of the multi-threshold configuration process, reduces the configuration difficulty for ordinary users in complex battery management scenarios, and reduces unreasonable parameter combinations caused by human misunderstanding, thereby lowering the risk of misconfiguration. Simultaneously, while satisfying the overall constraint relationship, reasonable adjustment space is reserved for different threshold types, avoiding unnecessary excessive restrictions and improving the flexibility and rationality of threshold adjustment.
[0082] In the process of configuring multiple threshold parameters visually, users typically adjust the target threshold through interactive methods such as dragging and dropping. Due to the constraints between the thresholds, the target threshold is often not free to change throughout the entire scale range during adjustment, but rather needs to be constrained by the effective adjustment range jointly defined by other thresholds.
[0083] However, in related technologies, the common approach is to perform a one-time validation of the final setting value after the user completes the drag-and-drop operation. If it is found to exceed the allowed range, the system only provides an error message or directly reverts to the original value. This approach has significant shortcomings. For example, users cannot perceive in real time whether the current adjustment is effective during the drag-and-drop process, and threshold exceeding often occurs after the drag-and-drop operation ends, resulting in delayed interactive feedback. Users need to repeatedly try different positions to find a valid setting value that satisfies the constraints, leading to a poor user experience.
[0084] Based on this, in some embodiments, during the drag operation, the setting value of the target threshold parameter is restricted to an effective adjustment range, including: during the drag operation, detecting the display position of the target threshold parameter in the battery power scale range, and determining the target setting value of the target threshold parameter based on the display position; determining whether the target setting value exceeds the effective adjustment range; if the target setting value is within the effective adjustment range, allowing the target threshold parameter to continue adjusting with the drag operation; if the target setting value exceeds the effective adjustment range, restricting the target setting value to the boundary value of the effective adjustment range, and preventing the threshold parameter from continuing to adjust in a direction beyond the effective adjustment range; and outputting a prompt message indicating that the current target setting value does not satisfy the constraint relationship.
[0085] When an electronic device detects that a user has dragged a target threshold parameter, it will continuously obtain the display position of the target threshold parameter in the battery power scale range during the dragging process, and calculate the corresponding target setting value based on the display position.
[0086] For example, assuming the current target threshold parameter is a peak-shaving type threshold, its adjustable range, calculated through the aforementioned constraint relationship, is 60% to 90%. When the user drags this threshold parameter within the scale range, the electronic device calculates the corresponding target setting value in real time based on the drag position.
[0087] When the target setting value corresponding to the drag position is 75%, the electronic device allows the threshold parameter to continue to change with the drag operation because the value is within the adjustable range. When the user continues to drag and the target setting value is 95%, the electronic device detects that the target setting value has exceeded the maximum allowed setting value of 90%, and automatically limits the target setting value to 90%, and prevents the threshold parameter from moving further in the direction of exceeding 90%.
[0088] At the same time, the electronic device can also output a prompt message to the user, indicating that the current target setting value has exceeded the allowed range, thereby reminding the user that the current adjustment operation does not meet the constraint relationship between the thresholds.
[0089] In the above method, the target threshold parameter is always limited to its adjustable range throughout the dragging process, and is not forcibly corrected only after the dragging is completed.
[0090] In the above embodiments, by judging and limiting the setting value of the target threshold parameter in real time during the drag operation, the threshold parameter can be constrained to an adjustable range that satisfies the constraint relationship during the adjustment stage. This avoids the repeated adjustments and abrupt corrections caused by only verifying after dragging. At the same time, combined with preventing out-of-bounds adjustment directions and outputting prompt information, users can intuitively know whether the current setting is effective during the drag process. This reduces the operational difficulty for ordinary users in multi-threshold configuration scenarios, reduces the risk of misoperation, and improves the interactive continuity, stability, and overall user experience of the battery power threshold configuration process.
[0091] In drag-and-drop interactions, it's typically necessary to determine the target setting value in real-time based on the display position of the target threshold parameter within the scale range. Since battery level scale ranges are not usually presented with equal spacing across the entire interface, especially near the lower or upper limits, additional white space or different scale spacing is often required to improve readability and operability. Therefore, if a single linear conversion across the entire range is still used, inconsistencies between the display position and the target setting value can easily occur. This is particularly true in the upper or lower limits, where conversion errors or jumps are more likely to occur, affecting the user's intuitive understanding and precise control over drag-and-drop adjustments.
[0092] Therefore, in some embodiments, determining the target setting value of the target threshold parameter based on the display position includes: dividing the battery power scale interval into a first power interval, a second power interval, and a third power interval; when the display position of the target threshold parameter is detected to be in the first power interval, establishing a linear correspondence between the display position and the power percentage according to a first conversion rule to determine the target setting value; when the display position of the target threshold parameter is detected to be in the second power interval, converting the display position into the target setting value according to a second conversion rule, wherein the second conversion rule includes: segmenting the display position based on a preset scale step, and determining the target setting value according to the proportion occupied by the display position within the corresponding scale step; when the display position of the target threshold parameter is detected to be in the third power interval, converting the display position into the target setting value according to a third conversion rule; wherein the scale interval corresponding to the third conversion rule is different from the scale interval corresponding to the second power interval.
[0093] When an electronic device determines its target setting value based on the display position of the target threshold parameter in the battery power scale range, it divides the battery power scale range into a first power range, a second power range, and a third power range along the direction of increasing power, and adopts different conversion rules between the display position and the target setting value for different power ranges.
[0094] For example, the total display length of the battery level scale interval in the user interface is 300 pixels, corresponding to the battery level range from 0% to 100%. Specifically, the area from the beginning of the scale interval to 30 pixels from the beginning is designated as the first battery level interval, representing the battery level range of 0% to 10%; the area from the end of the first battery level interval to 30 pixels from the end of the scale interval is designated as the second battery level interval, representing the battery level range of 10% to 90%; and the area 30 pixels inward from the end of the scale interval is designated as the third battery level interval, representing the battery level range of 90% to 100%.
[0095] When the target threshold parameter is displayed within the first battery level range, the electronic device linearly converts the display position to the target setting value according to the first conversion rule. For example, when the target threshold parameter is displayed 15 pixels above the start of the scale range, the electronic device determines the target setting value corresponding to that display position as 5% according to the first conversion rule; when the display position is 30 pixels above, the corresponding target setting value is 10%. This linear conversion method maintains a one-to-one linear relationship between the display position and the target setting value within the low battery level range.
[0096] When the display position of the target threshold parameter is within the second power range, the electronic device converts the display position into the target setting value according to the second conversion rule, which is based on a preset standard scale interval to perform segmented conversion of the display position. For example, in this embodiment, the standard scale interval corresponding to adjacent power scales is 30 pixels, and each standard scale interval corresponds to a 10% power change. When the display position of the target threshold parameter is 45 pixels from the end of the first power range, the electronic device determines that the display position spans a complete standard scale interval (corresponding to 10%) and occupies half of the current scale interval, thus converting the display position into a target setting value of 25%; when the display position is 120 pixels from the end of the first power range, the corresponding target setting value is 50%. This segmented conversion method ensures that the change in the target setting value within the intermediate power range remains stable and uniform.
[0097] When the target threshold parameter is displayed within the third battery level range, the electronic device converts the display position into the target setting value according to a third conversion rule. The scale spacing corresponding to the third conversion rule differs from the standard scale spacing corresponding to the second battery level range. For example, in this embodiment, the high-end scale spacing corresponding to the third battery level range is 15 pixels, used to represent a 5% battery level change. When the target threshold parameter is displayed 7.5 pixels inward from the end of the scale interval, the electronic device converts it to 95% of the target setting value; when the display position is 15 pixels inward from the end of the scale interval, the corresponding target setting value is 90%. By reducing the scale spacing within the high battery level range, users can achieve more precise battery level adjustments with smaller drag movements when approaching the battery limit.
[0098] In addition, during the process of converting the display position and the target setting value within the above-mentioned power ranges, the electronic device will also limit the determined target setting value to an effective adjustment range defined by the minimum and maximum allowable setting values of the target threshold parameters, so as to ensure that the final determined target setting value always meets the constraint relationship between the threshold parameters.
[0099] By using the segmented position-setting value conversion mechanism described above, the battery power scale range has differentiated adjustment accuracy in different power ranges. While ensuring numerical continuity, it improves the stability of the low power range, the balance of the middle power range, and the fine adjustability of the high power range, thereby significantly improving the operability and configuration accuracy of the battery power threshold visualization setting process.
[0100] In a multi-threshold visualization setting interface based on a scale interval, multiple threshold parameters are usually displayed simultaneously within the same scale interval. When there are many threshold parameters, or when the settings of multiple threshold parameters are close, the display positions of different threshold parameters on the interface may be close to or even overlap with each other, thus affecting the user's recognition and operation of the threshold positions.
[0101] Especially near the upper or lower limits of the scale range, the presence of interface boundaries and the limitation of available display space make it easier for display congestion or occlusion to occur when threshold parameters are close together. If processing is only carried out after threshold parameters have obvious overlap, it often makes it difficult for users to identify the relative positions of each threshold parameter in a timely manner, reducing the usability of the interaction.
[0102] Based on this, in some embodiments, the method further includes: when the target threshold parameter is located in the scale interval, detecting the distance between the display position corresponding to the target threshold parameter and the display position corresponding to the adjacent threshold parameter; when the distance is less than a preset distance threshold, triggering at least one of the target threshold parameter and the adjacent threshold parameter to perform display avoidance processing; when the target threshold parameter is located in the upper limit region or the lower limit region of the scale interval, triggering display avoidance processing in advance before the distance reaches the preset distance threshold.
[0103] When the target threshold parameter is displayed within the battery power scale range, the electronic device obtains the display position corresponding to the target threshold parameter in real time and calculates the distance between the display positions of the threshold parameters adjacent to its display position in the scale range.
[0104] When the display spacing between the target threshold parameter and the adjacent threshold parameter is less than the preset spacing threshold, the electronic device triggers display avoidance processing to adjust the display position of the target threshold parameter and / or the adjacent threshold parameter to avoid them being obscured or difficult to distinguish on the interface.
[0105] In a specific example, suppose that the display positions of the peak shaving type threshold parameter and the backup power type threshold parameter in the scale range are only a small distance apart. When this distance is less than the preset minimum display spacing, the electronic device triggers the display avoidance process, causing the display position of at least one threshold parameter to shift, thereby forming a sufficient visible interval on the interface.
[0106] Furthermore, when the target threshold parameter is located in the upper or lower limit region of the scale interval, the electronic device does not wait until the display spacing is actually less than the preset spacing threshold before triggering the display avoidance process. Instead, it triggers the display avoidance process in advance before the display spacing reaches the preset spacing threshold to deal with the situation where the display space is limited at the boundary of the scale interval, thereby avoiding display congestion when the threshold parameter is close to the boundary.
[0107] Therefore, by detecting the display spacing between the target threshold parameter and adjacent threshold parameters within the scale interval, and triggering display avoidance processing when the spacing is too small, the problem of occlusion or confusion caused by multiple threshold parameters being close in position on the interface can be effectively avoided. At the same time, by triggering display avoidance processing in advance for the upper and lower limits of the scale interval, the threshold parameters can still maintain good readability and operability in areas with limited display space, thereby improving the overall interactive experience and stability of the multi-threshold visualization setting interface.
[0108] In some embodiments, the display avoidance process includes: while keeping the setting values corresponding to each threshold parameter unchanged, applying a position offset to at least one of the target threshold parameter and adjacent threshold parameters so that the distance between the target threshold parameter and the adjacent threshold parameter is not less than a preset distance threshold.
[0109] The preset spacing threshold is, for example, the minimum display distance between adjacent scales in the battery power scale range.
[0110] In some embodiments, the preset spacing threshold can be set according to the display scale of the user interface. For example, it can correspond to the display distance corresponding to a 5% difference in battery power within the battery power scale range, or to the display spacing of 10 to 20 pixels in the user interface, so as to ensure that adjacent threshold parameters are sufficiently distinguishable in the interface.
[0111] When an electronic device detects that the display spacing between a target threshold parameter and an adjacent threshold parameter is less than a preset spacing threshold, it applies a position offset to at least one of the target threshold parameter and the adjacent threshold parameter, causing the display positions of the two parameters in the scale range to change, thereby increasing the display spacing between them.
[0112] For example, suppose the peak shaving type threshold parameter and the backup power type threshold parameter are set to 80% and 78% respectively, and their display positions in the battery power scale range are very close. When the electronic device detects that the display gap between them is less than a preset gap threshold, it does not modify the setting value of the peak shaving threshold or the backup power threshold, but instead applies a position offset to the display position corresponding to at least one of the threshold parameters, so that the peak shaving threshold parameter and the backup power threshold parameter form a display interval on the interface that is not less than the preset gap threshold.
[0113] During this process, the settings corresponding to each threshold parameter remain unchanged. What the user sees in the interface is only a slight separation in the display position of the threshold parameters, rather than a change in the threshold value itself.
[0114] Therefore, without affecting the battery power threshold configuration results, it can effectively solve the problems of occlusion and identification difficulties caused by the display positions of threshold parameters being too close together. This improves the display clarity of the multi-threshold visualization setting interface and the user interaction experience while ensuring the stability of parameter logic relationships and system operation strategies.
[0115] However, when there are many thresholds or multiple threshold parameters are densely distributed within the scale range, shifting the position of a single adjacent threshold parameter pair may cause new insufficient spacing issues between other adjacent threshold parameters. For example, after a threshold parameter has completed display avoidance with its adjacent threshold parameter, there may still be insufficient display spacing between that adjacent threshold parameter and the threshold parameter on the other side.
[0116] To address this issue, in some embodiments, the method further includes: when triggering display avoidance processing, determining whether there are still at least one pair of adjacent threshold parameters whose display positions have a spacing less than a preset spacing threshold within the scale interval; if there are at least one pair of adjacent threshold parameters whose display positions have a spacing less than the preset spacing threshold, continuing to apply a position offset to at least one of the at least one pair of adjacent threshold parameters, and repeating the spacing determination and position offset application until the spacing between any pair of adjacent threshold parameters in the scale interval is not less than the preset spacing threshold.
[0117] The battery power scale range simultaneously displays multiple threshold parameter nodes, such as charging cutoff type threshold parameters, peak shaving type threshold parameters, and backup power type threshold parameters. When a user drags and adjusts one of the target threshold parameters, the electronic device first detects the display spacing between the target threshold parameter and its adjacent threshold parameters based on the aforementioned embodiment. If the spacing is less than a preset spacing threshold, display avoidance processing is triggered, shifting the display position of at least one of the threshold parameters.
[0118] After completing the above-mentioned display avoidance process, the electronic device does not immediately end the processing flow. Instead, it further detects the display positions of all adjacent threshold parameters in the scale interval again to determine whether there are still cases where the distance is less than the preset spacing threshold after processing.
[0119] If the detection results indicate that the distance between the display positions of at least one pair of adjacent threshold parameters in the scale interval is less than the preset distance threshold, the electronic device continues to apply position offset processing to the corresponding at least one threshold parameter and performs the distance judgment again. This process can be repeated until the distance between the display positions of any pair of adjacent threshold parameters in the scale interval is no less than the preset distance threshold.
[0120] Throughout the process, the settings for each threshold parameter remain unchanged, and the position offset only affects the presentation position on the display layer. This ensures stable display of multiple threshold nodes within the scale range without affecting the actual power threshold configuration results.
[0121] Therefore, after triggering the display avoidance process, not only can the display spacing conflict between the target threshold parameter and its directly adjacent threshold parameters be resolved, but the overall display spacing between all adjacent threshold parameters within the scale interval can also be guaranteed to meet the preset requirements, thereby avoiding new display overlaps or congestion caused by local avoidance. This method makes the display state more stable and consistent when multiple thresholds exist simultaneously, significantly improving the readability and interactive reliability of the threshold setting interface. It is especially suitable for application scenarios with a large number of thresholds or a relatively concentrated distribution of thresholds, effectively improving the user's operating experience without changing the actual threshold setting value.
[0122] In drag-and-drop-based threshold visualization settings, threshold parameters often need to switch between different interactive states, such as transitioning from a non-drag state to a drag state, or returning from a drag state to a non-drag state after the user releases the drag operation. In actual interface implementations, to enhance interactive feedback, threshold parameters often employ different display styles in drag and non-drag states, such as differences in node size, node height, shadow effects, or highlight states.
[0123] However, if the display position of the threshold parameter within the battery level scale is not adjusted when switching between the different interactive states, the same threshold parameter may experience subtle changes in visual position, leading to discontinuous variations in the battery percentage value calculated from the display position. This discontinuity can easily cause users to misunderstand the actual threshold setting and may also affect the stability and accuracy of drag-and-drop operations.
[0124] Based on this, in some embodiments, the method further includes: when the target threshold parameter is detected to be in a drag state or the drag operation is detected to be finished, performing position compensation correction on the display position of the target threshold parameter in the battery power scale range; and determining the target setting value corresponding to the target threshold parameter based on the display position after position compensation correction, so that the target setting value corresponding to the target threshold parameter remains continuous when the target threshold parameter switches between the drag state and the non-drag state.
[0125] In one specific embodiment, multiple threshold parameters are displayed as nodes within the battery power scale range. When a user drags a target threshold parameter, the target threshold parameter enters a drag state and is highlighted on the interface, for example, by slightly increasing the node height or adding a shadow effect, to indicate that it is currently in an operable state.
[0126] In this drag-and-drop state, the display position of the target threshold parameter within the scale range may shift relative to the non-drag state due to the change in node display style. In this case, when the electronic device detects that the target threshold parameter is in a drag-and-drop state, it performs position compensation correction on the current display position of the target threshold parameter. For example, it corrects the display position based on the difference between the node height in the drag-and-drop state and the node height in the non-drag-and-drop state.
[0127] When the user ends the drag operation and releases the target threshold parameter, the electronic device detects the drag operation end event again. During the process of the target threshold parameter returning from the dragged state to the non-dragged state, the device performs corresponding position compensation correction on its display position within the battery level scale range. Subsequently, based on the compensated display position, the electronic device redetermines the target setting value corresponding to the target threshold parameter.
[0128] In some embodiments, position compensation correction can be performed based on the difference in display attributes of a target threshold parameter between the drag state and the non-drag state. Specifically, when entering or exiting the drag state, the electronic device obtains the display size information of the target threshold parameter in the current interaction state and compares it with a reference display size in another interaction state to determine the amount of display size change.
[0129] For example, when the target threshold parameter enters the drag state, the height of its displayed node increases relative to the non-drag state. Based on this height increase, the electronic device performs a reverse compensation offset along the scale direction to adjust the display position of the target threshold parameter within the battery power scale range. Conversely, when the drag operation ends and the target threshold parameter returns to the non-drag state, the electronic device performs a position compensation correction in the corresponding direction based on the height recovery. Through this method, the logical position of the display center point of the target threshold parameter within the battery power scale range remains consistent across different interaction states.
[0130] In other embodiments, the position compensation correction can also be calculated based on the relative distance between the display position and the scale interval reference line. For example, the display position can be uniformly aligned and corrected by using the center position of the node or a preset alignment benchmark as a reference, thereby avoiding scale mapping deviation caused by changes in the appearance of the node.
[0131] By introducing a position compensation correction mechanism and determining the target setting value based on the compensated display position when switching between drag and non-drag states, the problem of display position jumps and discontinuous setting values caused by changes in node display style can be effectively avoided, ensuring that the threshold parameter setting results remain stable and consistent throughout the entire drag interaction process. This approach improves the accuracy and predictability of the threshold adjustment process without increasing user operational complexity, enhancing the interactive consistency and user trust of the visual setting interface, and is particularly suitable for battery power configuration scenarios where high threshold accuracy is required.
[0132] In related technologies, after a user completes a threshold drag operation, the backend often simply stops the interaction without performing a unified state convergence process for this crucial point of drag completion. For example, some backends fail to update the final threshold value promptly after the drag ends, some do not distinguish between dragged and non-dragged display logic, or require the user to click an additional confirmation button to save the settings.
[0133] The above approach is prone to the following problems: On the one hand, the temporary display position formed during the drag-and-drop process is inconsistent with the actual effective threshold in the background, making it difficult for users to confirm the final effective result in a timely manner; on the other hand, the lack of a unified convergence processing mechanism causes operations such as threshold state switching and data saving to be scattered in different logics, increasing system complexity and making it difficult to ensure the stability and consistency of threshold setting results.
[0134] Based on this, in some embodiments, the method further includes: when the end of the drag operation is detected, performing at least one of the following interactive convergence processes: updating the final setting value of the target threshold parameter based on the display position of the target threshold parameter at the end of the drag operation; restoring the display state corresponding to the target threshold parameter from the drag state to the non-drag display state; and triggering a data saving operation.
[0135] When the electronic device detects that the user has released the target threshold parameter during a drag operation, it determines that the drag operation has ended and then enters the interactive convergence processing stage.
[0136] Specifically, the electronic device first recalculates and determines the final setting value corresponding to the target threshold parameter based on its display position within the battery level scale range at the end of the drag operation. For example, if the user drags the backup power type threshold parameter to a position corresponding to approximately 35% battery level in the scale range, the electronic device determines the battery percentage at that position as the final setting value for the backup power threshold parameter.
[0137] Subsequently, the electronic device restores the display state of the target threshold parameter from the drag state to the non-drag display state, such as canceling the highlight display, shadow effect, or magnification display, so that the threshold node is restored to a static display form consistent with other threshold parameters.
[0138] In some embodiments, the electronic device may also trigger a data saving operation after the drag-and-drop operation is completed, such as writing the final settings to a local configuration file, a cache area, or sending them to the background battery management system for subsequent policy calculations or device control logic calls. One or more of the above-described interaction convergence processes can be performed as needed.
[0139] Therefore, by performing interaction convergence processing when the drag operation ends, the temporary interactive states formed during the drag process can be uniformly converged into a stable and effective threshold configuration result, avoiding the problem of inconsistency between the displayed state and the actual set value. At the same time, by completing the threshold update, state restoration and data saving operations in the same stage, the threshold configuration process is made more coherent, which helps to improve the determinism and maintainability of the system's interaction logic, reduce the risk of users misjudging the effective state of the threshold, and thus improve the reliability of the battery power threshold configuration process and the user experience.
[0140] The following example illustrates the battery power threshold visualization setting method provided in this application.
[0141] For example, this method is applied to the parameter configuration interface of an energy storage system. Ordinary users can configure multiple threshold parameters related to battery power through the user interface to control the battery's charging and discharging strategy and operating status.
[0142] In this application scenario, the user interface displays a battery level scale range to represent the range of battery level change from low to high. Multiple configurable threshold parameters are set within the scale range, and each threshold parameter is displayed as an interactive threshold node. Its relative position within the scale range visually represents the constraint relationships between the threshold parameters.
[0143] During the initialization phase, the system obtains the current setting value of each threshold parameter and maps it to a display position within a scale range. When the user drags and adjusts any threshold parameter, the system dynamically determines the adjustable range of the target threshold parameter based on the current setting values of the remaining threshold parameters and predefined constraints, and simultaneously updates the adjustable range of at least one other threshold parameter.
[0144] During the drag-and-drop operation, the system determines the corresponding target setting value based on the display position of the target threshold parameter in the scale range and restricts the target setting value to an adjustable range. At the same time, the system provides real-time feedback on the changes in the target threshold parameter and the adjustable range of related threshold parameters through the user interface to indicate the effectiveness of the current adjustment operation.
[0145] In determining the target setting value based on the display position, the system employs a segmented position-to-setting value conversion rule to achieve different adjustment accuracies within different power ranges, thereby improving control precision in boundary areas and ensuring the continuity of the overall adjustment process. When switching between drag-and-drop and non-drag-and-drop states, the system performs compensation correction on the display position of the target threshold parameter to avoid discontinuities in the setting value due to changes in display size.
[0146] When multiple threshold parameters are close within the scale range, the system triggers display avoidance processing based on the display position spacing between adjacent threshold parameters. This adjusts their display positions without changing the settings of each threshold parameter, ensuring their distinguishability on the interface. When the drag operation ends, the system performs interaction convergence processing, including updating the final setting of the target threshold parameter, restoring the display state, and triggering data saving operations if necessary.
[0147] Through the above methods, this application embodiment can provide users with an intuitive, accurate, and real-time feedback battery power threshold configuration process while ensuring that the multi-threshold constraint relationship always holds, so that ordinary users can complete the reasonable setting of multi-threshold parameters without having professional battery management knowledge.
[0148] Figure 2 This illustration shows an initial display state of the battery power threshold visualization setting method in the energy storage system parameter configuration interface in one embodiment of this application.
[0149] like Figure 2 As shown, the user interface displays a battery charge scale range, representing the range of battery charge change from low to high, such as from 0% to 100%. Within the battery charge scale range, several configurable threshold parameters are displayed as threshold nodes, including charging cutoff SOC, backup power SOC, and discharging cutoff SOC.
[0150] Each threshold parameter is mapped to a corresponding display position within the battery capacity scale range based on its current setting. The relative positions of different threshold parameters within the scale range visually represent the constraint relationships between them. For example, the charging cutoff SOC is located at a higher position in the scale range, the backup power SOC is located in the middle position, and the discharging cutoff SOC is located at a lower position.
[0151] In this state, the target threshold parameter has not been dragged, its setting value is the default value of 75%, its threshold node is in a non-drag display state, and the corresponding display size and style remain in the default state, which is used to show the user the currently effective threshold configuration result.
[0152] Figure 3 It shows in Figure 2 The interface shown illustrates the user's drag-and-drop operation on the target threshold parameter.
[0153] like Figure 3 As shown, when the system detects a user's drag operation on a target threshold parameter (such as the charging cutoff SOC), the threshold node corresponding to the target threshold parameter enters the drag state, and its display style changes, such as being displayed as a highlighted state or having an overlaid shadow effect, to prompt the user that the threshold parameter is currently being adjusted.
[0154] During the dragging process, the system continuously monitors the display position of the target threshold parameter within the battery level scale range, and dynamically determines the target setting value of the target threshold parameter based on this display position, according to the segmented conversion rules in the aforementioned embodiment. Simultaneously, based on the current settings of the other threshold parameters and the constraints between them, the system dynamically calculates the adjustable range of the target threshold parameter and restricts its actual movable range to this adjustable range.
[0155] When the drag operation approaches the boundary of the adjustable range, the interface synchronously provides feedback on the effective range, such as through scale highlighting, range prompts, or prompt messages, so that the user can intuitively perceive whether the current adjustment is within the effective range.
[0156] In addition, during the dragging process, if the target threshold parameter is close to the display position of the adjacent threshold parameter, the system will trigger display avoidance processing as needed to avoid threshold nodes overlapping or being too close, thereby ensuring that multiple thresholds are visible and operable at the same time.
[0157] For example, in Figure 3In the indicated state, the target threshold parameter is adjusted to the same setting value as another threshold parameter during dragging, for example, both being 55%. This state indicates that multiple threshold parameters have the same power setting value during the current operation phase. As long as the setting value still satisfies the predefined constraints between the threshold parameters, the system allows multiple threshold parameters to have the same setting value. At this time, the system still distinguishes and displays different threshold parameters by their type identifiers, and adjusts their display positions as needed through a display avoidance mechanism to ensure the readability and operability of the interface.
[0158] Figure 4 This shows the interface state after the user finishes dragging the target threshold parameter. For example... Figure 4 As shown, when the system detects that the drag operation has ended, the target threshold parameter reverts from the drag state to the non-drag display state, and the display style of its threshold node returns to the default style. Simultaneously, the system updates the final setting value corresponding to the threshold parameter based on its final display position at the end of the drag operation.
[0159] During this process, the system will also perform position compensation correction on the display position of the target threshold parameter to eliminate the position offset caused by the difference in the display size of the threshold node between the drag state and the non-drag state, thereby ensuring that the setting value of the target threshold parameter remains continuous before and after the state switch.
[0160] In addition, the system may trigger interactive convergence processing as needed, such as saving the updated threshold parameter configuration results to the backend system or local configuration. This completes the adjustment of the battery power threshold parameters, allowing users to intuitively confirm the relative positions of each threshold parameter within the scale range and the final effective configuration result. pass Figures 2 to 4 The interface change process shown can intuitively demonstrate the workflow of the battery power threshold visualization setting method provided in this application embodiment in practical applications, so that ordinary users do not need to have professional battery management knowledge, and can complete the fine configuration of battery power related parameters while ensuring that the multi-threshold constraint relationship is established.
[0161] In addition, in some embodiments, the threshold parameter can be set not only by dragging within the battery power scale range, but also by a numerical input control located above or around the scale range.
[0162] That is, in the user interface, a corresponding numerical input area is provided for the currently selected target threshold parameter, such as an input box or plus / minus buttons, for directly inputting or adjusting the setting value of the target threshold parameter.
[0163] When a user inputs a target setting value through the numeric input control, the system also verifies the validity of the target setting value based on the current settings of the other threshold parameters and the constraints between them, limiting the target setting value to the corresponding adjustable range. Simultaneously, the system maps the verified target setting value to its display position within the battery level scale range to maintain consistency between the numeric input method and the visual drag-and-drop method.
[0164] By simultaneously supporting both numerical input and drag-and-drop interaction, users can flexibly choose the method of setting threshold parameters according to their actual operating habits, thereby further improving the convenience and accuracy of the battery power threshold configuration process.
[0165] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0166] The battery power threshold visualization setting method provided in this application can be executed by a battery power threshold visualization setting device. This application uses the execution of the battery power threshold visualization setting method by a battery power threshold visualization setting device as an example to illustrate the battery power threshold visualization setting device provided in this application.
[0167] like Figure 5 As shown, the battery power threshold visualization setting device includes a display module 501 and an adjustment module 502.
[0168] The display module 501 is used to display a battery power scale range in the user interface. The battery power scale range includes one or more configurable threshold parameters. The relative positions of the threshold parameters represent the constraint relationship between the threshold parameters.
[0169] The adjustment module 502 is used to dynamically determine the effective adjustment range of the target threshold parameter based on the current setting values of the remaining threshold parameters and the constraint relationship between the threshold parameters when a drag operation for any target threshold parameter is detected, and to synchronously update the effective adjustment range of at least one of the remaining threshold parameters.
[0170] The adjustment module 502 is also used to limit the setting value of the target threshold parameter to the effective adjustment range during the drag operation, and to provide real-time feedback on the changes in the effective adjustment range of the target threshold parameter and at least one other threshold parameter in the user interface, so that the target threshold parameter always satisfies the constraint relationship during the adjustment process.
[0171] According to the battery power threshold visualization setting device provided in the embodiments of this application, multiple threshold parameters are uniformly displayed in the user interface, and their constraint relationships are intuitively reflected by the relative states between the threshold parameters. When the user adjusts any target threshold parameter, the effective adjustment range of the target threshold parameter is dynamically limited by combining the current setting states of the other threshold parameters, and the configuration state changes of the relevant threshold parameters are synchronously fed back. Thus, during the parameter adjustment process, each threshold parameter is continuously constrained to meet the preset constraint relationship. This reduces the burden on users to understand complex constraint relationships in multi-parameter configuration scenarios, avoids repeated configuration and configuration errors caused by unreasonable parameter combinations, improves the efficiency and reliability of the parameter configuration process, and reduces the possibility of operational risks to the battery management system caused by improper threshold settings.
[0172] In some embodiments, the effective adjustment range is defined by the minimum and maximum allowable settings of the target threshold parameter; the minimum and maximum allowable settings are dynamically updated with each drag operation of any threshold parameter.
[0173] In some embodiments, the threshold parameter includes multiple threshold types, including at least a charging cutoff type, a peak shaving type, a backup power type, and a discharging cutoff type; the constraint relationship includes at least the following: the threshold parameter of the charging cutoff type is not less than the threshold parameter of the peak shaving type; the threshold parameter of the peak shaving type is not less than the threshold parameter of the backup power type; and the threshold parameter of the backup power type is not less than the threshold parameter of the discharging cutoff type.
[0174] In some embodiments, the adjustment module is further configured to: when the target threshold parameter is a charging cutoff type, determine the maximum setting value among the threshold parameters of other types as the minimum allowable setting value, and determine the preset upper limit value of the power supply as the maximum allowable setting value; when the target threshold parameter is a peak shaving type, determine the maximum setting value among the threshold parameters of the backup power type and the discharge cutoff type as the minimum allowable setting value, and determine the setting value of the threshold parameter of the charging cutoff type as the maximum allowable setting value; when the target threshold parameter is a backup power type, determine the setting value of the threshold parameter of the discharge cutoff type as the minimum allowable setting value, and determine the minimum setting value among the threshold parameters of the peak shaving type and the charging cutoff type as the maximum allowable setting value; when the target threshold parameter is a discharge cutoff type, determine the preset lower limit value of the power supply as the minimum allowable setting value, and determine the minimum setting value among the threshold parameters of the backup power type, the peak shaving type, and the charging cutoff type as the maximum allowable setting value.
[0175] In some embodiments, the adjustment module is further configured to, during the drag operation, detect the display position of the target threshold parameter in the battery power scale range, and determine the target setting value of the target threshold parameter based on the display position; determine whether the target setting value exceeds the effective adjustment range; if the target setting value is within the effective adjustment range, allow the target threshold parameter to continue to adjust with the drag operation; if the target setting value exceeds the effective adjustment range, limit the target setting value to the boundary value of the effective adjustment range and prevent the threshold parameter from continuing to adjust in a direction beyond the effective adjustment range; and output a prompt message indicating that the current target setting value does not satisfy the constraint relationship.
[0176] In some embodiments, the adjustment module is further configured to divide the battery power scale interval into a first power interval, a second power interval, and a third power interval; when the display position of the target threshold parameter is detected to be in the first power interval, a linear correspondence is established between the display position and the power percentage according to a first conversion rule to determine the target setting value; when the display position of the target threshold parameter is detected to be in the second power interval, the display position is converted into the target setting value according to a second conversion rule, wherein the second conversion rule includes: segmenting the display position based on a preset scale step, and determining the target setting value according to the proportion occupied by the display position within the corresponding scale step; when the display position of the target threshold parameter is detected to be in the third power interval, the display position is converted into the target setting value according to a third conversion rule; wherein the scale interval corresponding to the third conversion rule is different from the scale interval corresponding to the second power interval.
[0177] In some embodiments, the above-described apparatus further includes an avoidance processing module, configured to detect the distance between the display position corresponding to the target threshold parameter and the display position corresponding to the adjacent threshold parameter when the target threshold parameter is located in the scale interval; if the distance is less than a preset distance threshold, trigger at least one of the target threshold parameter and the adjacent threshold parameter to perform display avoidance processing; and if the target threshold parameter is located in the upper limit region or the lower limit region of the scale interval, trigger display avoidance processing in advance before the distance reaches the preset distance threshold.
[0178] In some embodiments, the display avoidance process includes: while keeping the setting values corresponding to each threshold parameter unchanged, applying a position offset to at least one of the target threshold parameter and adjacent threshold parameters so that the distance between the target threshold parameter and the adjacent threshold parameter is not less than a preset distance threshold.
[0179] In some embodiments, the avoidance processing module is further configured to, when triggering display avoidance processing, determine whether there is still a distance between the display positions of at least one pair of adjacent threshold parameters in the scale interval that is less than a preset distance threshold; if there is a distance between the display positions of at least one pair of adjacent threshold parameters that is less than the preset distance threshold, continue to apply a position offset to at least one of the at least one pair of adjacent threshold parameters, and repeat the distance determination and position offset application until the distance between the display positions of any pair of adjacent threshold parameters in the scale interval is not less than the preset distance threshold.
[0180] In some embodiments, the above-described apparatus further includes a compensation correction module, configured to perform position compensation correction on the display position of the target threshold parameter in the battery power scale range when the target threshold parameter is detected to be in a drag state or the drag operation is detected to be finished; and to determine the target setting value corresponding to the target threshold parameter based on the display position after position compensation correction, so that the target setting value corresponding to the target threshold parameter remains continuous when the target threshold parameter switches between the drag state and the non-drag state.
[0181] In some embodiments, the above-described apparatus further includes an interactive convergence module, configured to perform at least one of the following interactive convergence processes when the end of the drag operation is detected: updating the final setting value of the target threshold parameter based on the display position of the target threshold parameter at the end of the drag operation; restoring the display state corresponding to the target threshold parameter from the drag state to the non-drag display state; and triggering a data saving operation.
[0182] The battery power threshold visualization setting device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal, such as a server.
[0183] The battery power threshold visualization setting device provided in this application embodiment can realize the various processes implemented in the above-described battery power threshold visualization setting method embodiment. To avoid repetition, it will not be described again here.
[0184] In some embodiments, such as Figure 6 As shown, this application embodiment also provides an electronic device 600, including a processor 601, a memory 602, and a computer program stored in the memory 602 and executable on the processor 601. When the program is executed by the processor 601, it implements the various processes of the above-described battery power threshold visualization setting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0185] This application provides a non-transitory computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described battery power threshold visualization setting method embodiment and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0186] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable media, such as computer read-only memory (ROM), random-access memory (RAM), magnetic disks, or optical disks.
[0187] The computer-readable storage medium may include: read-only memory (ROM), random-access memory (RAM), magnetic disk or optical disk, etc.
[0188] This application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method for visually setting battery power thresholds.
[0189] This application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described battery power threshold visualization setting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0190] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0191] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0192] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0193] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0194] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0195] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. A method for visually setting a battery power threshold, characterized in that, include: The user interface displays a battery power scale range, which includes one or more configurable threshold parameters; wherein the relative positions of the threshold parameters represent the constraint relationship between the threshold parameters. When a drag operation is detected targeting any target threshold parameter, the effective adjustment range of the target threshold parameter is dynamically determined based on the current settings of the remaining threshold parameters and the constraint relationships between the threshold parameters, and the effective adjustment range of at least one of the remaining threshold parameters is updated synchronously. During the drag-and-drop operation, the setting value of the target threshold parameter is limited to the effective adjustment range, and the changes in the effective adjustment range of the target threshold parameter and at least one other threshold parameter are fed back in real time in the user interface, so that the target threshold parameter always satisfies the constraint relationship during the adjustment process.
2. The battery power threshold visualization setting method according to claim 1, characterized in that, The effective adjustment range is defined by the minimum and maximum allowable settings of the target threshold parameter; the minimum and maximum allowable settings are dynamically updated with each drag operation of any threshold parameter.
3. The battery power threshold visualization setting method according to claim 2, characterized in that, The threshold parameters include multiple threshold types, and the threshold types include at least charging cutoff type, peak shaving type, backup power type, and discharge cutoff type; The constraints include at least the following: The threshold parameter for the charging cutoff type is not less than the threshold parameter for the peak clipping type. The threshold parameter for peak shaving type is not less than the threshold parameter for backup power type; and The threshold parameter for the backup power type is not less than the threshold parameter for the discharge cutoff type.
4. The battery power threshold visualization setting method according to claim 3, characterized in that, The dynamic determination of the effective adjustment range of the target threshold parameter based on the current settings of the remaining threshold parameters and the constraint relationships between the threshold parameters includes: When the target threshold parameter is of the charging cutoff type, the maximum setting value among the other types of threshold parameters is determined as the minimum allowable setting value, and the preset power limit value is determined as the maximum allowable setting value; When the target threshold parameter is of the peak shaving type, the maximum setting value of the threshold parameter of the backup power type and the discharge cutoff type is determined as the minimum allowable setting value, and the setting value of the threshold parameter of the charging cutoff type is determined as the maximum allowable setting value. When the target threshold parameter is of the backup power type, the setting value of the threshold parameter of the discharge cutoff type is determined as the minimum allowable setting value, and the minimum setting value of the threshold parameters of the peak shaving type and the charging cutoff type is determined as the maximum allowable setting value. When the target threshold parameter is of the discharge cutoff type, the preset lower limit value of the power supply is determined as the minimum allowable setting value, and the minimum setting value among the threshold parameters of the backup power type, peak shaving type, and charging cutoff type is determined as the maximum allowable setting value.
5. The battery power threshold visualization setting method according to claim 1, characterized in that, The step of limiting the setting value of the target threshold parameter within the effective adjustment range during the drag operation includes: During the drag operation, the display position of the target threshold parameter in the battery power scale range is detected, and the target setting value of the target threshold parameter is determined based on the display position; Determine whether the target setting value exceeds the effective adjustment range; If the target setting value is within the effective adjustment range, the target threshold parameter is allowed to continue to adjust with drag operations; If the target setting value exceeds the effective adjustment range, the target setting value is restricted to the boundary value of the effective adjustment range, and the threshold parameter is prevented from being adjusted further beyond the effective adjustment range; and Output a prompt message indicating that the current target setting does not satisfy the constraint relationship.
6. The battery power threshold visualization setting method according to claim 5, characterized in that, Determining the target setting value of the target threshold parameter based on the display position includes: The battery charge scale range is divided into a first charge range, a second charge range, and a third charge range; When the display position of the target threshold parameter is detected to be within the first power range, a linear correspondence is established between the display position and the power percentage according to the first conversion rule to determine the target setting value; When the display position of the target threshold parameter is detected to be within the second power range, the display position is converted into the target setting value according to the second conversion rule. The second conversion rule includes: segmenting the display position based on a preset scale step, and determining the target setting value according to the proportion of the display position within the corresponding scale step. When the display position of the target threshold parameter is detected to be within the third power range, the display position is converted into the target setting value according to the third conversion rule; wherein, the scale interval corresponding to the third conversion rule is different from the scale interval corresponding to the second power range.
7. The method for visually setting battery power threshold according to claim 1, characterized in that, The method further includes: When the target threshold parameter is located within the scale interval, the distance between the display position corresponding to the target threshold parameter and the display position corresponding to the adjacent threshold parameter is detected. If the spacing is less than a preset spacing threshold, at least one of the target threshold parameter and the adjacent threshold parameter is triggered to perform display avoidance processing; When the target threshold parameter is located in the upper or lower limit region of the scale interval, the display avoidance process is triggered in advance before the spacing reaches the preset spacing threshold.
8. The method for visually setting battery power threshold according to claim 7, characterized in that, The display avoidance process includes: while keeping the setting values corresponding to each threshold parameter unchanged, applying a position offset to at least one of the target threshold parameter and the adjacent threshold parameters, so that the distance between the target threshold parameter and the adjacent threshold parameter is not less than the preset distance threshold.
9. The battery power threshold visualization setting method according to claim 7 or 8, characterized in that, The method further includes: When the display avoidance process is triggered, it is determined whether there are still at least one pair of adjacent threshold parameters in the scale interval whose display positions are less than the preset spacing threshold. If the distance between the display positions of at least one pair of adjacent threshold parameters is less than the preset distance threshold, the position offset is applied to at least one of the at least one pair of adjacent threshold parameters, and the distance judgment and position offset are repeated until the distance between the display positions of any pair of adjacent threshold parameters in the scale interval is not less than the preset distance threshold.
10. The method for visually setting battery power threshold according to claim 1, characterized in that, The method further includes: If the target threshold parameter is detected to be in a drag state or the drag operation is detected to be completed, position compensation correction is performed on the display position of the target threshold parameter in the battery power scale range. Based on the display position after position compensation correction, the target setting value corresponding to the target threshold parameter is determined so that the target setting value remains continuous when the target threshold parameter switches between drag state and non-drag state.
11. The battery power threshold visualization setting method according to claim 1 or 10, characterized in that, The method further includes: When the drag operation is detected to be finished, perform at least one of the following interactive convergence processes: Based on the display position of the target threshold parameter when the drag operation ends, update the final setting value of the target threshold parameter; Restore the display state corresponding to the target threshold parameter from the drag state to the non-drag display state; Triggered a data save operation.
12. A device for visually setting a battery power threshold, characterized in that, The device includes: The display module is used to display a battery power scale range in the user interface. The battery power scale range includes one or more configurable threshold parameters. The relative positions of the threshold parameters represent the constraint relationship between the threshold parameters. The adjustment module is used to dynamically determine the effective adjustment range of the target threshold parameter based on the current setting values of the remaining threshold parameters and the constraint relationship between the threshold parameters when a drag operation is detected for any target threshold parameter, and to synchronously update the effective adjustment range of at least one of the remaining threshold parameters. The adjustment module is used to limit the setting value of the target threshold parameter to the effective adjustment range during the drag operation, and to provide real-time feedback on the changes in the effective adjustment range of the target threshold parameter and at least one other threshold parameter in the user interface, so that the target threshold parameter always satisfies the constraint relationship during the adjustment process.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the battery power threshold visualization setting method as described in any one of claims 1-11.