Methods, devices and electronic equipment for visualizing battery energy sources
By using a 3D visualization method to represent the energy sources of batteries, the problem of intuitiveness and readability of battery energy composition under multiple energy sources is solved. This achieves a clear display and spatial correlation of battery energy composition, improving the efficiency of information acquisition for users.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI SIGE DIGITAL TECHNOLOGY CO LTD
- Filing Date
- 2025-12-26
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, the visualization of battery energy sources is difficult to achieve intuitiveness, readability, and relevance to the physical form of the battery in various energy source scenarios. In particular, it is difficult to identify energy sources that account for a small proportion, and the display ratio of two-dimensional charts is unbalanced in complex situations.
By acquiring the current battery power data, the original percentage is corrected according to preset display constraints to generate the target display percentage. A battery stacking model is then constructed in three-dimensional space, and different energy sources are mapped to three-dimensional display layers stacked sequentially along the height direction of the battery stacking model according to the target display percentage. Visual differentiation processing is then combined to improve recognizability.
It enables an intuitive, clear, and spatially relevant visualization of battery energy composition in multi-energy source scenarios, improving the readability and understanding efficiency of battery energy information.
Smart Images

Figure CN122089936A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of battery management technology, and in particular relates to a method, device and electronic device for visually displaying the energy source of a battery. Background Technology
[0002] With the rapid development of new energy technologies, energy storage systems have become an important part of energy management. As the core carrier of energy storage and release, batteries can derive their energy from various energy sources in practical applications, such as renewable energy, grid power, or other external energy systems.
[0003] In related technologies, the proportion of battery energy sources is typically displayed using two-dimensional charts such as pie charts to reflect the proportional relationship between different energy sources in the total battery energy. This type of display is relatively intuitive when the number of energy sources is small and their proportions are relatively balanced.
[0004] However, when there are many energy sources, the number of sectors in the pie chart increases, making the overall structure more complex and difficult for users to quickly identify the proportion of each energy source. At the same time, energy sources with smaller proportions are only represented as small sectors in the pie chart, making them easy to overlook and difficult to clearly identify. Furthermore, as a two-dimensional graphic, the pie chart fails to represent the physical concept of battery capacity and lacks an intuitive visual connection to the battery device itself. Summary of the Invention
[0005] 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 displaying battery energy sources, so as to improve the intuitiveness and readability of battery energy sources.
[0006] Firstly, this application provides a method for visually displaying the energy source of a battery, the method comprising: Obtain the current battery power data, which includes at least the original percentages from multiple energy sources; Under the condition of satisfying the preset display constraints, the original proportion is corrected to obtain the target display proportion corresponding to each energy source; A battery stack model corresponding to the battery is constructed in three-dimensional space, and different energy sources are mapped to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stack model according to their respective target display proportions, so as to present a three-dimensional hierarchical structure that matches the battery entity.
[0007] Secondly, this application provides a battery energy source visualization device, which includes: An acquisition module is used to acquire the current battery power data, wherein the power data includes at least the original percentages from multiple energy sources; The correction module is used to correct the original proportion under the condition of satisfying the preset display constraints, so as to obtain the target display proportion corresponding to each energy source. The display module is used to construct a battery stack model corresponding to the battery in three-dimensional space, and to map different energy sources into multiple three-dimensional display layers stacked sequentially along the height direction of the battery stack model according to their respective target display proportions, so as to present a three-dimensional hierarchical structure that matches the battery entity.
[0008] 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 energy source visualization method described in the first aspect above.
[0009] Fourthly, this application provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the battery energy source visualization method described in the first aspect above.
[0010] 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 energy source visualization method as described in the first aspect.
[0011] In a sixth aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the battery energy source visualization method described in the first aspect above.
[0012] The battery energy source visualization method, device, electronic equipment, non-transitory computer-readable storage medium, chip, and computer program product provided in this application acquire power data containing the original proportions of multiple energy sources and correct the original proportions under preset display constraints to obtain the target display proportions for display. This avoids the problems of small proportion energy sources being difficult to identify or the overall display ratio being unbalanced. At the same time, different energy sources are mapped to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stacking model according to their respective target display proportions. This allows the energy source proportion relationships to be presented in a three-dimensional hierarchical manner that matches the battery's physical structure. Thus, in multi-energy source scenarios, this achieves an intuitive, clear, and spatially related visualization of the battery's energy composition, significantly improving the readability and understanding efficiency of battery energy information.
[0013] 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
[0014] 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 schematic diagram illustrating an application scenario of the battery energy source visualization method provided in this application embodiment; Figure 2 This is a flowchart illustrating the method for visualizing the source of battery energy provided in an embodiment of this application; Figure 3 This is a schematic diagram of the interface of the battery stacking model provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of the battery energy source visualization display device provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0015] 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.
[0016] 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.
[0017] In battery management and related applications, users typically need to intuitively understand the proportion of each energy source in the current battery charge to assist in energy management, operational analysis, and optimization decisions.
[0018] Besides pie charts, some solutions use stacked bar charts to represent the overlapping relationships of various energy sources. This method, also a two-dimensional display, lacks a sense of depth and hierarchy. Small percentages of energy sources often appear as extremely thin bars in the bar chart, making them difficult to identify or interact with. Furthermore, the geometric shape of the bar chart differs significantly from the actual physical shape of the battery device, making it difficult for users to visually establish a correspondence between the two. In scenarios with limited screen sizes, such as mobile devices, the display effect is further restricted.
[0019] In addition, some solutions display the names of energy sources and their corresponding percentages in a list format. This method presents information in a rather abstract way, lacking an intuitive visual hierarchy. Users need to read each item one by one to understand the overall energy composition, making it difficult to quickly grasp the relative relationships between different energy sources. Overall, the information density and expressiveness are low.
[0020] In some attempts to introduce 3D displays, simple 3D cylinders or cubes are often used to simulate battery structures, with different colored areas filled within them to represent different energy sources. However, these 3D models are often simplified structures, differing significantly from the actual form of battery devices, lacking realism and depth. Furthermore, these solutions often fail to adequately consider the minimum display requirements of small-scale energy sources, lacking dynamic adjustment mechanisms for changes in proportion, which can easily lead to display anomalies or scaling distortions when the proportion changes.
[0021] Alternatively, some solutions set a fixed minimum display threshold for small-percentage energy sources to prevent them from being completely compressed or ignored during display. However, this method can easily lead to the total display percentage exceeding a reasonable range when multiple energy sources are simultaneously below the threshold, requiring additional normalization processing. At the same time, fixed thresholds lack flexibility and may cause unreasonable compression of large-percentage energy sources, affecting the overall display effect.
[0022] In summary, the visualization methods for energy sources in related technologies still have shortcomings in terms of intuitiveness, recognizability of small proportions of energy sources, correlation with the physical form of batteries, and adaptability to changes in proportion. They are difficult to simultaneously meet the needs of information integrity, visual hierarchy, and dynamic display.
[0023] In view of this, embodiments of this application provide a method for visually displaying the energy sources of a battery, aiming to achieve an intuitive and clear display of the energy composition of a battery when multiple energy sources exist. By correcting the proportion of different energy sources under the premise of meeting display constraints, and mapping the corrected display proportions to a three-dimensional stacked display layer corresponding to the battery structure, the readability, understandability, and visual relevance of the battery energy source information to the battery physical concept are improved.
[0024] The following description, in conjunction with the accompanying drawings, details the battery energy source visualization method, battery energy source visualization device, electronic device, and readable storage medium provided in this application through specific embodiments and application scenarios.
[0025] Figure 1 This is a schematic diagram illustrating application scenarios of the battery energy source visualization method provided in some embodiments of this application. The battery energy source visualization method provided in the embodiments of this application can be applied to, for example... Figure 1 The application environment shown.
[0026] In this application environment, the battery system (using one battery as an example in the diagram) can be charged or replenished by multiple energy sources, including but not limited to photovoltaic energy, grid energy, and other external power supply systems. Each energy source provides electrical energy to the battery system, creating a power structure comprised of multiple energy sources.
[0027] The battery management system is connected to the battery system to acquire the current battery power data, which includes at least the original percentage information from each energy source. After acquiring the power data, the battery management system executes the battery energy source visualization method provided in this application embodiment. That is, under the condition of satisfying preset display constraints, the original percentage of each energy source is corrected to obtain the target display percentage corresponding to each energy source. Based on the target display percentage, a battery stacking model corresponding to the battery is constructed in three-dimensional space, and different energy sources are mapped to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stacking model according to their respective target display percentages.
[0028] The display terminal communicates with the battery management system to display the battery stack model, allowing users to intuitively understand the composition and proportion of each energy source in the current battery charge. Exemplarily, the display terminal includes, but is not limited to, vehicle-mounted terminals, mobile terminals, host computers, or maintenance monitoring terminals; this application does not limit this to any particular type.
[0029] This application's embodiments can be applied to various energy management and display scenarios, including but not limited to energy storage systems, energy management systems, smart grids, new energy monitoring platforms, and various visualization display terminals. This application's embodiments are suitable for application scenarios that require displaying the proportion of battery energy composition from multiple energy sources, such as energy source monitoring of battery energy storage systems, intelligent energy management, park or site-level energy allocation display, energy source display in electric transportation-related systems, and visualization of the energy proportion of renewable energy systems.
[0030] The battery energy source visualization 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.
[0031] The following uses an electronic device as an example to illustrate the method for visually displaying the battery energy source provided in the embodiments of this application.
[0032] Figure 2 This is a flowchart illustrating a method for visualizing battery energy sources provided in some embodiments of this application. For example... Figure 2 As shown, the method for visualizing the energy source of a battery includes steps 210 to 230.
[0033] Step 210: Obtain the current battery power data, which includes at least the original percentages from multiple energy sources.
[0034] Among them, power data refers to data information used to characterize the current energy state of the battery, including at least the raw proportion data reflecting the energy composition corresponding to different energy sources in the battery. Power data can be obtained from the data collection results of the battery management system and is used for subsequent energy source proportion analysis and visualization.
[0035] Energy source refers to the different sources of power that supply electricity to the battery, used to distinguish the composition of the battery's power source. Energy sources include, but are not limited to, photovoltaic energy, grid energy, generator energy, vehicle reverse power supply, or other external power supply, etc. This application does not limit the specific type of energy source.
[0036] The raw percentage refers to the proportion of energy from each energy source within the battery's current charge, without considering display constraints. It characterizes the actual proportional relationship between different energy sources in the battery's charge composition. The raw percentage can be directly calculated based on the charge data and serves as the foundation for generating the target display percentage.
[0037] In this step, the electronic device acquires the current battery power data. For example, it can collect power data that characterizes the current energy state of the battery through a data interface established with the battery system.
[0038] In some embodiments, the battery management system can statistically analyze the energy contributed by different energy sources in the battery at the current moment based on the battery's charge and discharge records, energy metering results, or historical energy allocation information, and calculate the original proportion of each energy source in the battery's current charge. The original proportion reflects the actual energy composition of different energy sources without considering explicit constraints.
[0039] Step 220: Under the condition of satisfying the preset display constraints, the original proportion is corrected to obtain the target display proportion corresponding to each energy source.
[0040] Preset display constraints refer to the display rules followed when modifying the original proportion of energy sources. They are used to constrain the range and allocation of display proportion values to ensure the rationality and readability of the visualization results.
[0041] When visualizing battery energy sources, the proportion of different energy sources in the battery's charge composition can vary significantly. If the original proportions are displayed directly, some energy sources with smaller proportions may be compressed or even difficult to identify in the visualization results. At the same time, in the process of adjusting the display proportions to enhance recognizability, multiple display proportions may overlap and exceed the reasonable display range, thus affecting the stability and consistency of the overall display structure.
[0042] Therefore, this application introduces explicit display constraints to limit the minimum display requirements of a single energy source and the overall display ratio range, so as to ensure that the visualization results achieve a balance between information integrity and display rationality.
[0043] In some embodiments, the preset display constraints include at least a minimum display constraint and a maximum percentage constraint.
[0044] The minimum display constraint is used to adjust the target display ratio of any energy source to no less than the minimum display ratio when the original proportion of any energy source is lower than the preset minimum display ratio, so as to avoid the small proportion of energy sources being weakened or difficult to identify during the display process.
[0045] The percentage limit constraint is used to limit the sum of the target display percentages corresponding to each energy source to no more than the preset total target display percentage limit, so as to ensure the stability of the overall display structure.
[0046] Therefore, it can improve the readability of a small percentage of energy sources in multi-energy source scenarios, while maintaining the stability and consistency of the overall display structure, which is conducive to achieving a clear and reliable visualization of battery energy sources.
[0047] Display percentage refers to the initial percentage data obtained based on battery power data and used for visualization processing. It is used to characterize the initial proportional relationship of each energy source at the display level.
[0048] In actual display, there may be a large number of energy sources, some with a small proportion, or the sum of multiple display proportions may exceed the preset display range (e.g., greater than 100%). Directly using the display proportions for display may result in some energy sources being difficult to identify or an unreasonable overall display structure. Therefore, the display proportions are corrected while meeting preset display constraints; the corrected display proportions are the target display proportions. These target display proportions serve as the final proportion data used for visualization, driving the construction and display of subsequent 3D display layers.
[0049] It should be noted that the target display ratio does not need to be strictly equal to the corresponding original ratio, but is adjusted to meet the display effect and presentation requirements.
[0050] In this step, the electronic device can construct a percentage data set for display processing based on the original percentage, and apply preset display constraints to the percentage data set to avoid situations such as difficulty in identifying energy sources, imbalanced display ratios, or abnormal overall display structures during the visualization process. Under the premise of meeting the display constraints, the original percentage is adjusted so that the adjusted target display percentage can reflect the relative relationship of different energy sources in the current battery charge, while also meeting the readability and stability requirements of the display layer.
[0051] In some embodiments, when the original proportion of a certain energy source is lower than the preset minimum display proportion, the battery management system increases the display proportion corresponding to that energy source; when the adjustment of the display proportions of multiple energy sources causes the overall display proportion to exceed the preset display range, the display proportions corresponding to some energy sources are compressed accordingly, thereby generating the target display proportions corresponding to each energy source.
[0052] Step 230: Construct a battery stack model corresponding to the battery in three-dimensional space, and map different energy sources into multiple three-dimensional display layers stacked sequentially along the height direction of the battery stack model according to their respective target display proportions, so as to present a three-dimensional hierarchical structure that matches the battery entity.
[0053] The electronic device constructs a battery stack model corresponding to the battery in three-dimensional space, and performs three-dimensional mapping and stacking display of different energy sources based on the target display ratio of each energy source obtained in step 220.
[0054] Specifically, the electronic device first generates a battery stack model in three-dimensional space based on the battery's geometric parameters to characterize the overall shape of the battery. The battery stack model has a display space in the height direction to support the three-dimensional display layer.
[0055] The geometric parameters may include the overall height, cross-sectional shape, outer contour dimensions, or scale parameters of the battery, which are used to make the constructed battery stack model correspond to the actual battery in shape.
[0056] Subsequently, the electronic device determines the height dimension of each energy source in the vertical direction based on the target display ratio corresponding to each energy source, and generates multiple three-dimensional display layers corresponding to different energy sources. These three-dimensional display layers are arranged sequentially along the height direction of the battery stacking model and superimposed according to a preset stacking order rule, forming a continuous three-dimensional hierarchical structure in space. This allows the relative relationship between different energy sources in the battery's energy composition to be intuitively represented through height hierarchy.
[0057] In some embodiments, the preset stacking order rules are related to the energy type of the energy source. For example, the 3D display layer corresponding to renewable energy is placed in the upper region of the battery stacking model, and the 3D display layer corresponding to conventional energy is placed in the lower region, so as to reflect the classification relationship of different energy types in the energy composition.
[0058] In some embodiments, the preset stacking order rule is related to the priority of the energy source. For example, the 3D display layers corresponding to different energy sources are sorted according to the discharge priority or usage priority, so that the 3D display layer corresponding to the energy source with higher priority is located in a priority position in the height direction (such as the bottom), thereby intuitively reflecting the priority relationship between energy sources in the 3D display.
[0059] In some embodiments, the preset stacking order rule is related to the numerical value of the target display percentage of the energy source. For example, the 3D display layer corresponding to the energy source with a larger target display percentage is placed in a more prominent position, or the layers are stacked in order of decreasing or increasing target display percentage, so that the 3D stacking structure reflects the size pattern of the energy source percentage in space.
[0060] In the above embodiments, the stacking order rule may be related to only one of the above factors, or to multiple factors at the same time, and this application does not limit it.
[0061] This provides a clear logical basis for the spatial arrangement of the battery stacking model, avoiding ambiguity caused by arbitrary stacking order.
[0062] At the same time, this method allows users to quickly obtain the relative importance, usage order, or proportion of different energy sources by observing the arrangement of the three-dimensional display layers in space without increasing the display complexity, thereby improving the intuitiveness and information expression efficiency of the visualization of battery energy sources.
[0063] Furthermore, during the display of the battery stack model, electronic devices can apply three-dimensional spatial transformation processing to the battery stack model and the three-dimensional display layer it carries, so that the three-dimensional display layer presents a sense of three-dimensionality and layering in space, thereby simulating the physical form of the battery and enhancing the overall spatial effect of the display.
[0064] Among them, three-dimensional spatial transformations include, but are not limited to, one or more of rotation, tilting, or perspective transformations.
[0065] By transforming the three-dimensional space, the stacked three-dimensional display layers are made to present a stronger sense of three-dimensionality and layering, thereby simulating the physical form of a battery, enhancing the spatial differentiation between energy source layers, and improving the realism and immersion of the overall visualization.
[0066] According to the battery energy source visualization method provided in this application embodiment, by acquiring power data containing the original proportions of multiple energy sources and correcting the original proportions under preset display constraints, a target display proportion for display is obtained, avoiding the problem of small proportion energy sources being difficult to identify or the overall display proportion being unbalanced; at the same time, different energy sources are mapped to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stacking model according to their respective target display proportions, so that the energy source proportion relationship is presented in a three-dimensional hierarchical manner that matches the battery physical structure, thereby realizing an intuitive, clear and spatially related visualization of the battery energy composition in multi-energy source scenarios, significantly improving the readability and understanding efficiency of battery energy information.
[0067] In the process of visualizing battery energy sources based on a 3D stacked model, as the number of energy sources increases, relying solely on the stacking relationship of the 3D display layers in the height direction may still make it difficult for users to accurately distinguish the display layers corresponding to different energy sources in a short period of time. Especially when the display layers of each energy source are at similar heights or the viewing angle changes, the recognition efficiency between different energy sources is prone to decrease.
[0068] Therefore, it is necessary to introduce additional visualization differentiation methods on the basis of the spatial stacking structure of the three-dimensional display layer to enhance the visual distinguishability of different energy sources, so that users can quickly and accurately identify the display layer corresponding to each energy source in complex energy composition scenarios.
[0069] Therefore, in some embodiments, the electronic device also configures different visual display attributes for the three-dimensional display layers corresponding to different energy sources. The visual display attributes include at least one of color, transparency, texture style, or border style.
[0070] For example, a higher transparency or boundary emphasis effect can be set for the 3D display layer corresponding to a smaller energy source to avoid it being occluded in the stacked structure; or different texture styles with different directions or densities can be used for different energy sources to enhance the visual difference between display layers.
[0071] In some embodiments, the configuration of visual attributes can be adjusted according to the display theme. For example, under a light theme or a dark theme, the color brightness, transparency, or texture contrast can be matched accordingly to adapt to different display environments or usage scenarios.
[0072] By setting differentiated visual display attributes for different types of energy sources, users can quickly identify and distinguish the 3D display layers corresponding to different energy sources without changing the 3D stacked structure, without needing to read the values precisely. This significantly improves the recognizability of different energy sources in visualization, thereby improving the recognition efficiency and information acquisition efficiency in multi-energy source scenarios.
[0073] At the same time, this method can enhance the sense of hierarchy and visual clarity of the three-dimensional stacked structure, avoid the problem of display layer confusion when there are many energy sources or their proportions are similar, and help improve the overall effect of battery energy source visualization and user experience.
[0074] Figure 3 This is a schematic diagram illustrating the visualization of battery energy sources provided in some embodiments of this application. The electronic device can first obtain the current battery power data from an energy management system or backend interface. The power data includes at least the original percentages and corresponding power values for multiple energy sources, such as solar energy, third-party inverters, EVDC V2X, generators, and the power grid. The original percentages represent the actual proportional relationship of each energy source in the current battery power composition. For example, as... Figure 3 As shown, the overall battery status is indicated by the parameters at the top. For example, BatteryLevel indicates the current battery level, which is 90%; Usable Capacity indicates the current available battery capacity, which is 43.52 kWh.
[0075] Figure 3The diagram illustrates a three-dimensional coordinate system, where the z-axis represents the height of the battery stack model, and the x and y axes represent the horizontal direction. The three-dimensional display layers corresponding to each energy source are stacked along the height direction, and the display percentage of each layer represents its proportion in the battery's capacity composition. The height direction reflects the proportional relationship between different energy sources. For example, stacked from bottom to top are three-dimensional display layers representing the grid source (corresponding to "From Grid" in the diagram), the generator source (corresponding to "From Generator" in the diagram), the vehicle regenerative braking source (corresponding to "From EVDC V2X" in the diagram), the third-party inverter source (corresponding to "From 3rdInverter" in the diagram), and the solar energy source (corresponding to "From Solar" in the diagram).
[0076] The 3D display layer from the grid has a capacity of 8.22 kWh, accounting for 17% of the total capacity, and is located at the bottom of the stacked structure. The 3D display layer from the generator has a capacity of 2.41 kWh, accounting for 5% of the total capacity, and is located above the grid-sourced 3D display layer. The 3D display layer from the vehicle's regenerative braking has a capacity of 2.41 kWh, accounting for 5% of the total capacity, and is located above the generator-sourced 3D display layer. The 3D display layer from the third-party inverter has a capacity of 13.54 kWh, accounting for 28% of the total capacity, and is located above the vehicle's regenerative braking 3D display layer. The 3D display layer from the solar energy source has a capacity of 16.92 kWh, accounting for 35% of the total capacity, and is located at the top of the stacked structure.
[0077] exist Figure 3 The bottom area is marked with a discharge priority indicator. This arrow indicates the priority order of different energy sources during the discharge process, and its direction indicates the order of priority. For example, the energy source at the bottom of the priority list is used first during discharge. It should be noted that this arrow is only used to visually indicate the logical order and does not represent the direction of energy flow or the amount of electricity.
[0078] Through the above methods Figure 3 The battery's current charge level, available capacity, and charge values and percentages from different energy sources are displayed in a unified three-dimensional stacked format, allowing the battery's energy composition to be presented in an intuitive spatial hierarchical structure.
[0079] Furthermore, the 3D display layers corresponding to different energy sources are distinguished by differentiated visual attributes. Specifically, each 3D display layer uses a different color, with different colors corresponding to different energy source types, allowing users to quickly distinguish the composition of the battery's power from various energy sources.
[0080] In some embodiments, the three-dimensional display layer can also be set with different transparency or semi-transparency effects to make the display layer located on the upper or lower layer visually recognizable, thereby enhancing the sense of hierarchy of the overall stacked structure.
[0081] Some 3D display layers can also use gradient effects or 3D texture styles to enhance the three-dimensionality and texture of the display layer, making the stacked structure more closely resemble the physical appearance of the battery in 3D space, thereby improving the intuitiveness of the visualization.
[0082] Combination Figure 3 In some embodiments, as illustrated, the method further includes: when the sum of the target display percentages corresponding to each energy source is less than a preset upper limit for the total target display percentage, constructing a spare display layer in the top region of the battery stack model to represent the unused capacity of the battery. The spare display layer is located above the three-dimensional display layers corresponding to each energy source, and its height in the vertical direction reflects the proportion of remaining capacity in the battery that is not yet occupied by any energy source. By introducing the spare display layer, the relationship between the battery's current available capacity and its maximum capacity can be visually represented.
[0083] In some embodiments, the unused display layer may be presented with different visual display attributes than the three-dimensional display layer corresponding to each energy source, such as using higher transparency, weakened colors, or simplified texture styles, so as to intuitively indicate the unused capacity portion of the battery without interfering with the identification of each energy source, thereby presenting the overall energy state of the battery more completely and clearly.
[0084] In the visualization of battery energy sources, in addition to spatially presenting different energy sources through a 3D display layer, it is usually necessary to provide users with supplementary information related to the energy source in text form, such as the energy source name, percentage, or energy value. This text information is generally displayed in the form of text labels.
[0085] For example, in one specific embodiment, after the electronic device completes the rendering of the 3D display layers of each energy source in the battery stack model, it displays text labels corresponding to each energy source in the side area of the battery model to represent the energy source name, power value, and corresponding display percentage. To this end, the electronic device first determines the reference height space for text label positioning based on the overall height of the battery stack model, the height distribution of each energy source display layer, and the interlayer spacing.
[0086] Specifically, the electronic device calculates the remaining height area above the energy source display layers based on the cumulative height occupied by all energy source display layers in the height direction within the battery stacking model, combined with the spacing between layers and the top reserved offset. This remaining height area is used to uniformly align and position the vertical reference positions of each text label.
[0087] Subsequently, for a specific energy source, the electronic device calculates the total height of the stacked display layers below it based on the stacking order of the energy source's display layer in the battery stacking model, thereby determining the reference position of the energy source in the height direction. Based on this, the electronic device further adjusts the final display position of the text label in the height direction by incorporating the vertical offset of the corresponding text label, ensuring that the text label is visually aligned with the corresponding 3D display layer.
[0088] The vertical offset of the text label is adaptively determined by the electronic device based on the display proportion corresponding to the power source. For example, when the display proportion of the power source is small and the corresponding 3D display layer is low, the electronic device assigns a larger vertical offset to the text label to avoid occlusion between the text label and adjacent display layers; when the display proportion of the power source is large, a smaller or medium vertical offset is assigned to the text label, allowing the text information to be more compactly aligned with the corresponding display layer area. Through this method, the electronic device can ensure clear display of the text label under different proportion conditions.
[0089] After determining the location of the text label, the electronic device can also apply a spatial transformation to the text label in accordance with the battery stacking model.
[0090] Specifically, the electronic device itals or tilts the text labels used to display the energy source name, power value, and display percentage based on the rotation angle or perspective direction of the battery stack model in three-dimensional space. This ensures that the text labels maintain a consistent spatial orientation with the corresponding three-dimensional display layer. By applying tilt transformations to the text labels, the text information can achieve a unified visual effect with the battery stack model from a three-dimensional perspective, avoiding the disjointed feeling caused by flat text overlay. This enhances the three-dimensionality, harmony, and realism of the overall visualization while ensuring text readability.
[0091] In some embodiments, in addition to spatially associating and tilting the text labels, the electronic device also adaptively adjusts the display style of the text labels based on the display proportion of the corresponding energy source. Specifically, when generating text labels, the electronic device dynamically adjusts one or more of the following based on the target display proportion corresponding to the energy source: font, font size, line spacing, or display layout, so that the text information can be clearly distinguished under different display proportion conditions.
[0092] By adaptively controlling the text label style and combining spatial association and tilt transformation processing, the text information can maintain a consistent spatial relationship and visual style with the corresponding energy source layer during the 3D visualization process, thereby improving the integrity of the energy source information display and the reading experience without affecting the overall display effect.
[0093] Furthermore, when using a 3D stacked model for display, the 3D display layers corresponding to different energy sources are located at different heights of the battery stack model. If the text labels are displayed in a fixed position, it is easy to make the correspondence between the text labels and the corresponding 3D display layers unclear. Especially when the height of the stack structure changes or the display perspective is adjusted, it is difficult for users to quickly determine the energy source corresponding to the text information.
[0094] Therefore, it is necessary to establish a spatial relationship between text labels and 3D display layers during the 3D display process, so that the text labels can be adjusted synchronously with the position changes of the corresponding 3D display layers, thereby enhancing the intuitiveness and consistency of information expression.
[0095] In some embodiments, the method further includes: during the display of the battery stack model, spatially associating text labels representing energy source information with corresponding three-dimensional display layers, so that the display position of the text labels changes synchronously with the height of the corresponding three-dimensional display layers.
[0096] During the display of the battery stack model, the electronic device spatially associates text labels used to characterize energy source information with the corresponding three-dimensional display layer.
[0097] Specifically, while generating 3D display layers corresponding to each energy source, the electronic device also configures corresponding text labels for each 3D display layer. These text labels display energy source-related information such as the energy source name, percentage information, or energy value. The electronic device determines the corresponding display position of the text labels on the display interface based on the position of the 3D display layer along the height direction of the battery stack model.
[0098] During the display process, when the position of the 3D display layer changes in the height direction, for example due to the update of the target display ratio or the adjustment of the stacking structure, the electronic device synchronously adjusts the display position of the text label so that the text label always maintains a spatial correspondence with the corresponding 3D display layer.
[0099] Therefore, by spatially associating text labels with corresponding 3D display layers, the display position of the text labels can change synchronously with the height of the 3D display layers. This avoids misalignment or ambiguity between text information and display layers, enhances the correspondence between energy source information and 3D structures, and enables users to intuitively obtain relevant information about each energy source when observing 3D stacked models, reducing the cost of understanding and improving the clarity and readability of battery energy source visualization in multi-energy source scenarios.
[0100] The above embodiments mainly describe the display effect of the battery stacking model in this application from the aspects of the overall appearance structure of the battery energy source visualization display, the spatial layout of the three-dimensional display layer and related display styles.
[0101] In some embodiments, the electronic device is also configured to respond to user interactions during the visualization of battery energy sources, thereby enhancing the operability of the visualization and the ease of information retrieval.
[0102] Specifically, when a user clicks on any 3D display layer or its associated text label within the battery stack model, the electronic device responds to the click event and triggers corresponding interactive feedback based on the energy source associated with the clicked object. For example, the electronic device can highlight the corresponding 3D display layer or text label to indicate the currently selected energy source to the user.
[0103] In some embodiments, the electronic device may also perform a navigation jump operation after detecting a click event, guiding the user to a settings page or information display page related to the energy source, so that the user can further view or adjust the parameter information of the corresponding energy source.
[0104] Furthermore, when electronic devices update the display status of the battery stack model or switch between different display states, the animation effects during the display process can be controlled to smoothly transition changes in the position, height, or stacking relationship of the 3D display layers, thereby reducing the visual impact caused by sudden interface changes and improving the coherence of the visualization process and the user experience.
[0105] The following will further explain the display ratio correction rules and related processing procedures used to generate display results in this application, with reference to specific embodiments.
[0106] When correcting the display of the original percentage of battery power sources, different energy sources typically have different orders of magnitude, and some energy sources may have a percentage lower than the preset minimum display ratio. If no processing is performed and the visualization is generated directly based on the original percentage, it can easily lead to these energy sources being difficult to identify during the display process.
[0107] In some application scenarios, there is still room for allocation in the overall display space of the current battery level. This means that, without affecting the display of other energy sources, adjustments can be made to compensate for energy sources that account for a smaller proportion. Therefore, it is necessary to identify energy sources that need to be expanded during the display correction process and, when display resources are sufficient, reasonably expand their display share.
[0108] Therefore, in some embodiments, the original proportion is corrected to obtain the target display proportion corresponding to each energy source, including the following steps 410 to 460: Step 410: Convert the original proportion of each energy source into the initial display proportion under the preset scale, and calculate the remaining allocable proportion based on the sum of the initial display proportions of each energy source; Step 420: Perform minimum threshold detection on the initial display ratio of each energy source to identify energy sources that have an initial display ratio lower than the preset minimum display ratio and determine the total amount of ratio expansion corresponding to the energy source to be expanded. Step 430: If the remaining allocable percentage is greater than or equal to the total percentage expansion, the initial display percentage of the energy source to be expanded is expanded, and the initial display percentage of the unexpanded energy source is used as the target display percentage to obtain the target display percentage for each energy source. Step 440: When the remaining allocable percentage is less than the total percentage expansion, identify the energy sources to be reduced that have an initial display percentage higher than the preset minimum display percentage; Step 450: Determine the total reduction in percentage based on the difference between the total percentage expansion and the remaining allocable percentage; Step 460: Reduce the initial display percentage of at least one energy source to be reduced, and expand the initial display percentage of the energy source to be expanded, to obtain the target display percentage of each energy source.
[0109] The electronic device first performs a scale conversion process on the original proportions corresponding to each energy source. Specifically, the electronic device maps the original proportions to a preset display scale to generate an initial display proportion for display processing. The initial display proportions corresponding to each energy source constitute an initial display proportion set.
[0110] For example, electronic devices convert the original percentage from a decimal form to a display ratio value under a uniform display precision, so that subsequent threshold judgment and ratio calculation can be performed.
[0111] After completing the scale conversion, the electronic device summarizes and calculates the initial display ratio set to obtain the sum of the initial display ratios of each energy source, and calculates the current remaining allocable ratio based on the preset total target display ratio upper limit. The preset total target display ratio upper limit is used to define the overall display ratio range that can be used for display, while the remaining allocable ratio represents the ratio space that can still be used for display adjustments without affecting the overall display structure.
[0112] For example, the electronic device compares the sum of the initial display percentages with the upper limit of the total target display percentage, and the difference is used as the current remaining allocable percentage.
[0113] Subsequently, the electronic device performs minimum threshold detection on the initial display percentage of each energy source in the initial display percentage set to determine whether there are any energy sources whose initial display percentage is lower than the preset minimum display percentage.
[0114] For energy sources whose initial display ratio is lower than the preset minimum display ratio, the electronic device marks them as energy sources to be expanded and records the amount of expansion required for the energy source to reach the preset minimum display ratio.
[0115] Based on this, the electronic device sums up the expansion amounts corresponding to all power sources to be expanded, obtaining the total percentage expansion. The electronic device compares the total percentage expansion with the remaining allocable percentage to determine whether the current display space can meet the needs of compensating and adjusting all power sources to be expanded.
[0116] When the remaining allocable percentage is greater than or equal to the total percentage expansion, the electronic device expands the initial display percentage corresponding to each energy source to be expanded, adjusting it to a level not lower than the preset minimum display percentage. Furthermore, for other energy sources not identified as energy sources to be expanded, the electronic device maintains their initial display percentage unchanged and directly uses them as the corresponding target display percentage.
[0117] Through the above processing, the electronic device can compensate and adjust the small proportion of energy sources without changing the overall relationship of the original display ratio structure, thereby generating a target display ratio set that meets the minimum display constraint conditions, which can be used for the construction and display of subsequent three-dimensional stacked models.
[0118] When adjusting the initial display percentage of energy sources, in addition to situations where display resources are sufficient and small percentages of energy sources can be directly expanded, there may also be situations where the remaining allocable percentage is insufficient to cover the expansion needs of the entire percentage.
[0119] Therefore, when the remaining allocable percentage is less than the total percentage expansion, the electronic device first identifies the energy source whose initial display percentage is higher than the preset minimum display percentage and determines it as the energy source to be reduced. The energy source to be reduced is used to provide reduction space for balancing the display structure in subsequent processing.
[0120] Subsequently, the electronic device determines the total percentage reduction based on the difference between the total percentage increase and the remaining allocable percentage. The total percentage reduction indicates the total display percentage that needs to be released from the energy source to be reduced while meeting minimum display constraints. The total percentage reduction is, for example, the difference between the total percentage increase and the remaining allocable percentage.
[0121] Based on this, the electronic device reduces the initial display percentage of at least one energy source to be reduced. For example, the electronic device can gradually reduce the initial display percentage of the energy source to be reduced, while not falling below a preset minimum display percentage, until the requirement for the total percentage reduction is met.
[0122] Simultaneously, the electronic device expands the initial display ratio corresponding to the power source to be expanded, ensuring it meets the target display requirement of not less than the preset minimum display ratio. Through coordinated adjustments to the power sources to be reduced and expanded, the target display ratio corresponding to each power source is ultimately obtained, satisfying the overall display constraints.
[0123] In some embodiments, when reducing the initial display percentage of the energy source to be reduced, the electronic device performs the percentage reduction operation using a polling reduction method.
[0124] Specifically, multiple energy sources to be reduced can be constructed into a set of energy sources to be reduced. The electronic device first processes each energy source in the set of energy sources to be reduced in a preset traversal order. The preset traversal order can be, for example, according to the order of the initial display proportion from largest to smallest.
[0125] During each round of polling, the electronic device determines whether the initial display percentage corresponding to the current energy source is higher than the preset minimum display percentage. If so, the initial display percentage corresponding to that energy source is reduced by a preset step size, and the total reduction amount is reduced accordingly. If not, the energy source is skipped, and the process continues with the next energy source. The polling process ends when the total reduction amount decreases to zero, or when there are no more energy sources to be reduced in the set of energy sources to be reduced.
[0126] Therefore, by alternately performing reduction operations among multiple energy sources, the total reduction in percentage is distributed across multiple energy sources to be reduced, thus avoiding over-compression of a single energy source. After completing the polling-based reduction, the electronic device uses the reduced initial display percentage as the target display percentage for the corresponding energy source, and combines this with the expansion processing of the energy sources to be expanded to generate a final set of target display percentages for visualization. This set of target display percentages includes the target display percentages corresponding to each energy source.
[0127] For example, in a specific implementation scenario, the preset total target display ratio upper limit is 100%, and the preset minimum display ratio is 8%. After converting the original ratios of each energy source into initial display ratios, the electronic device obtains initial display ratios of 50%, 30%, 5%, and 5% for the four energy sources, respectively. At this point, the sum of the initial display ratios of all energy sources is 90%, and the electronic device calculates that the remaining allocable ratio is 10%. After further minimum threshold detection, the two energy sources with an initial display ratio of 5% are identified as energy sources to be expanded, with a corresponding total ratio expansion of 6%. Since the remaining allocable ratio is not less than the total ratio expansion, the electronic device directly expands and adjusts the initial display ratio of the energy sources to be expanded, ensuring it is not lower than the preset minimum display ratio, while keeping the initial display ratios of the remaining energy sources unchanged, thus obtaining the target display ratio that meets the display constraints.
[0128] In another implementation scenario, the electronic device acquires initial display percentages of 60%, 30%, 5%, and 5%, respectively, with the sum of the initial display percentages for each energy source being 100%, leaving a remaining allocable percentage of 0%. In this case, two energy sources still have initial display percentages lower than the preset minimum display percentage, corresponding to a total percentage expansion of 6%, which is insufficient to cover the percentage expansion requirement. Therefore, the electronic device further identifies energy sources with initial display percentages higher than the preset minimum display percentage as energy sources to be reduced, and based on the difference between the total percentage expansion and the remaining allocable percentage, determines that the total percentage reduction to be released is 6%.
[0129] During the reduction process, the electronic device employs a polling-based reduction method to process the energy sources to be reduced. Specifically, the electronic device alternately performs reduction operations among multiple energy sources to be reduced. In each round, the initial display percentage corresponding to the current energy source is gradually reduced according to a preset step size until the cumulative released display percentage reaches the total reduction amount. After completing the polling-based reduction, the electronic device uses the released display percentage to compensate for and expand the initial display percentage of the energy sources to be expanded, ensuring that it meets the display requirement of not being lower than the preset minimum display ratio. Thus, without exceeding the upper limit of the total target display percentage, a target display percentage set for 3D visualization is generated.
[0130] Through the above embodiments, when there is sufficient remaining display space, by expanding energy sources whose initial display share is lower than the minimum display share, the basic recognizability of each energy source in the visualization can be effectively guaranteed, preventing small-share energy sources from being weakened or ignored during the display process. Simultaneously, since unexpanded energy sources maintain their initial display share, this method does not cause unnecessary disturbance to the overall display structure. This helps to maintain the relative stability of the energy source proportion relationship while improving display clarity, thus providing reasonable and reliable target display share data for subsequent 3D visualization. However, when there is insufficient remaining display space, by reducing energy sources with a high display share and using the released display share to compensate for small-share energy sources, the basic recognizability of all energy sources can be guaranteed while preventing the overall display share from exceeding the preset range. This method enables the display share correction process to have adaptive adjustment capabilities, flexibly balancing the display needs of each energy source under different energy composition conditions, which is beneficial for achieving stable and reasonable battery energy source visualization in multi-energy source scenarios.
[0131] After determining the target display percentage for each energy source, it is necessary to transform the target display percentage into an intuitive spatial structure so that users can understand the overall relationship between the proportions of different energy sources in the battery.
[0132] Therefore, in some embodiments, different energy sources are mapped to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stacking model according to their respective target display proportions. This includes: determining the total height for stacking the three-dimensional display layers based on the geometric parameters of the battery stacking model; determining the height dimension of the three-dimensional display layer corresponding to each energy source in the height direction of the battery stacking model based on the target display proportions corresponding to each energy source; and stacking the three-dimensional display layers corresponding to each energy source sequentially in the height direction according to a preset stacking order rule based on the height dimension of each energy source to form a three-dimensional hierarchical structure.
[0133] The electronic device determines the total height used to stack the 3D display layers based on the geometric parameters of the battery stacking model. For example, this geometric parameter could be the overall height that could include the battery model.
[0134] Subsequently, the electronic device allocates the total height proportionally to different energy sources based on the target display percentage corresponding to each energy source, thus determining the height dimension of the 3D display layer corresponding to each energy source in the height direction. For example, energy sources with a larger target display percentage correspond to a larger height dimension, while energy sources with a smaller target display percentage correspond to a smaller height dimension.
[0135] Based on this, the electronic device stacks the three-dimensional display layers corresponding to each energy source sequentially along the height direction of the battery stack model according to the preset stacking order rules, so that multiple three-dimensional display layers are arranged continuously in space, thereby forming a three-dimensional hierarchical structure in the battery stack model that corresponds to the proportion of different energy sources, for subsequent visualization display.
[0136] For example, after the electronic device completes the calculation of the height of the three-dimensional display layer corresponding to each energy source, it executes the drawing process of the battery stack model in the order of inside to outside and bottom to top.
[0137] First, the electronic device draws a background layer in the battery stack model to represent the unused capacity of the battery. The background layer corresponds to the height area in the battery stack model that is not yet occupied by the 3D display layers of each energy source. Its height dimension is determined based on the difference between the total height available for stacking and the sum of the target display proportions of each energy source. The background layer is drawn using a background image with preset transparency to visually distinguish it from the 3D display layers corresponding to the energy sources, thereby intuitively reflecting the remaining usable capacity of the battery.
[0138] Subsequently, the electronic device, following a preset stacking order, sequentially draws the 3D display layers corresponding to each energy source, starting from the bottom of the battery stack model. For each energy source, the electronic device determines the height of its 3D display layer based on the target display proportion corresponding to that energy source, and combines this with the visual style parameters corresponding to that energy source to draw the 3D display layer. These visual style parameters may include gradient color information, top texture, bottom texture, and side texture, used to enhance the visual distinction and sense of hierarchy between different energy sources. In this way, the 3D display layers corresponding to each energy source are sequentially stacked along the height direction, forming a continuous stacked structure.
[0139] After completing the rendering of the background layer and the 3D display layers for each energy source, the electronic device applies 3D spatial transformation processing to the entire battery stack model. Specifically, the electronic device applies spatial transformation parameters such as rotation, tilt, and perspective to the battery stack model as a whole, so that the model presents a three-dimensional visual effect in the display interface, thereby simulating the spatial shape of a real battery and enhancing the realism and immersion of the visualization.
[0140] Finally, the electronic device draws the outer contour image of the battery on the outside of the stacked display layers. The outer contour image is used to represent the overall shape of the battery and covers the background layer and the three-dimensional display layers of each energy source, so that the battery stack model forms a complete and unified battery appearance, thus completing the drawing process of visually displaying the battery's energy source.
[0141] In the above embodiments, by mapping the target display proportion of each energy source to a three-dimensional display layer distributed along the height direction of the battery stack model, the energy source proportion relationship is presented in a way that is intuitive and consistent with the physical structure of the battery. This helps users quickly understand the relative position and proportion of different energy sources in the battery's energy composition. At the same time, this method transforms abstract proportional data into an intuitive spatial hierarchy, enhancing the intuitiveness and overall feel of the energy source visualization.
[0142] 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.
[0143] The battery energy source visualization method provided in this application can be executed by a battery energy source visualization device. This application uses a battery energy source visualization device executing the method as an example to illustrate the battery energy source visualization device provided in this application.
[0144] like Figure 4 As shown, the battery energy source visualization display device includes: an acquisition module 401, a correction module 402, and a display module 403.
[0145] The acquisition module 401 is used to acquire the current battery power data, which includes at least the original percentages from multiple energy sources.
[0146] The correction module 402 is used to correct the original proportions under the condition of satisfying the preset display constraints, so as to obtain the target display proportions corresponding to each energy source.
[0147] The display module 403 is used to construct a battery stack model corresponding to the battery in three-dimensional space, and to map different energy sources into multiple three-dimensional display layers stacked sequentially along the height direction of the battery stack model according to their respective target display proportions, so as to present a three-dimensional hierarchical structure that matches the battery entity.
[0148] According to the battery energy source visualization display device provided in the embodiments of this application, by acquiring power data containing the original proportions of multiple energy sources, and correcting the original proportions under the condition of meeting preset display constraints, a target display proportion for display is obtained, avoiding the problem of small proportion energy sources being difficult to identify or the overall display proportion being unbalanced; at the same time, different energy sources are mapped to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stacking model according to their respective target display proportions, so that the energy source proportion relationship is presented in a three-dimensional hierarchical manner that matches the battery physical structure, thereby realizing an intuitive, clear and spatially related visualization display of the battery energy composition in multi-energy source scenarios, significantly improving the readability and understanding efficiency of battery energy information.
[0149] In some embodiments, the preset display constraints include at least a minimum display constraint and a percentage limit constraint; wherein: the minimum display constraint is used to adjust the target display percentage corresponding to any energy source to no less than the minimum display percentage when the original percentage of any energy source is lower than the preset minimum display percentage; the percentage limit constraint is used to restrict the sum of the target display percentages corresponding to each energy source from not exceeding the preset total target display percentage limit.
[0150] In some embodiments, the correction module is further configured to convert the original proportion of each energy source into an initial display proportion under a preset scale, and calculate the remaining allocable proportion based on the sum of the initial display proportions of each energy source; perform minimum threshold detection on the initial display proportion of each energy source to identify energy sources to be expanded whose initial display proportion is lower than a preset minimum display proportion, and determine the total proportion expansion amount corresponding to the expansion; if the remaining allocable proportion is greater than or equal to the total proportion expansion amount, perform expansion processing on the initial display proportion of the energy source to be expanded, and take the initial display proportion of the unexpanded energy source as the target display proportion to obtain the target display proportion corresponding to each energy source.
[0151] In some embodiments, the correction module is further configured to identify energy sources whose initial display percentage is higher than a preset minimum display percentage when the remaining allocable percentage is less than the total percentage expansion; determine the total percentage reduction based on the difference between the total percentage expansion and the remaining allocable percentage; reduce the initial display percentage of at least one energy source to be reduced, and expand the initial display percentage of the energy source to be expanded, to obtain the target display percentage corresponding to each energy source.
[0152] In some embodiments, the display module is further configured to determine the total height for stacking the three-dimensional display layers based on the geometric parameters of the battery stacking model; determine the height dimension of the three-dimensional display layer corresponding to each energy source in the height direction of the battery stacking model based on the target display ratio corresponding to each energy source; and stack the three-dimensional display layers corresponding to each energy source sequentially in the height direction according to a preset stacking order rule based on the height dimension corresponding to each energy source to form a three-dimensional hierarchical structure.
[0153] In some embodiments, the preset stacking order rule is related to at least one of the energy type, priority, or numerical value of the target display percentage of the energy source.
[0154] In some embodiments, the display module is further configured to construct a spare display layer on top of the battery stack model to represent the unused capacity of the battery when the sum of the target display percentages of each energy source is less than a preset upper limit of the total target display percentage.
[0155] In some embodiments, the display module is further configured to spatially associate text labels representing energy source information with corresponding three-dimensional display layers during the display of the battery stack model, so that the display position of the text labels changes synchronously with the height of the corresponding three-dimensional display layer.
[0156] In some embodiments, the three-dimensional display layers corresponding to different energy sources have different visual display properties; the visual display properties include at least one of color, texture style, transparency or border style.
[0157] The battery energy source visualization display device provided in this application embodiment can realize all the processes implemented in the above-described battery energy source visualization display method embodiment. To avoid repetition, it will not be described again here.
[0158] The battery energy source visualization device in this application embodiment can be an electronic device or a component of 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.
[0159] In some embodiments, such as Figure 5As shown, this application embodiment also provides an electronic device 500, including a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the program is executed by the processor 501, it implements the various processes of the above-described battery energy source visualization method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0160] 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 energy source visualization method embodiment and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0161] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-storable media, such as computer read-only memory (ROM), random-access memory (RAM), magnetic disks, or optical disks.
[0162] The computer-readable storage medium may include: read-only memory (ROM), random-access memory (RAM), magnetic disk or optical disk, etc.
[0163] This application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method for visualizing the source of battery energy.
[0164] This application provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described battery energy source visualization method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0165] 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.
[0166] 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.
[0167] 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.
[0168] 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.
[0169] 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.
[0170] 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 displaying the energy source of a battery, characterized in that, include: Obtain the current battery power data, which includes at least the original percentages from multiple energy sources; Under the condition of satisfying the preset display constraints, the original proportion is corrected to obtain the target display proportion corresponding to each energy source; A battery stack model corresponding to the battery is constructed in three-dimensional space, and different energy sources are mapped to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stack model according to their respective target display proportions, so as to present a three-dimensional hierarchical structure that matches the battery entity.
2. The method for visualizing battery energy sources according to claim 1, characterized in that, The preset display constraints include at least a minimum display constraint and a maximum percentage constraint; wherein: The minimum display constraint is used to adjust the target display ratio of any energy source to be no less than the minimum display ratio when the original proportion of any energy source is lower than the preset minimum display ratio. The upper limit constraint is used to limit the sum of the target display percentages corresponding to each energy source from not exceeding the preset total target display percentage upper limit.
3. The method for visually displaying the battery energy source according to claim 1 or 2, characterized in that, The step of correcting the original proportion to obtain the target display proportion corresponding to each energy source includes: The original proportions of each energy source are converted into initial display proportions under a preset scale, and the remaining allocable proportions are calculated based on the sum of the initial display proportions of each energy source. The initial display percentage of each energy source is detected by a minimum threshold to identify energy sources whose initial display percentage is lower than a preset minimum display percentage and to determine the total amount of percentage expansion corresponding to the energy source to be expanded. If the remaining allocatable percentage is greater than or equal to the total percentage expansion, the initial display percentage of the energy source to be expanded is expanded, and the initial display percentage of the unexpanded energy source is used as the target display percentage to obtain the target display percentage for each energy source.
4. The method for visualizing battery energy sources according to claim 3, characterized in that, The method further includes: When the remaining allocable percentage is less than the total percentage expansion, identify energy sources to be reduced that have an initial display percentage higher than a preset minimum display percentage. The total reduction in percentage is determined based on the difference between the total percentage expansion and the remaining allocable percentage; The initial display percentage of the energy source to be reduced is reduced, and the initial display percentage of the energy source to be expanded is expanded to obtain the target display percentage of each energy source.
5. The method for visualizing battery energy sources according to claim 1, characterized in that, The mapping of different energy sources according to their respective target display proportions to multiple three-dimensional display layers stacked sequentially along the height direction of the battery stacking model includes: Based on the geometric parameters of the battery stacking model, determine the total height used for stacking the 3D display layers; Based on the target display ratio corresponding to each energy source, the height dimension of the three-dimensional display layer corresponding to each energy source in the height direction of the battery stack model is determined. Based on the height dimensions corresponding to each energy source, the three-dimensional display layers corresponding to each energy source are stacked sequentially in the height direction according to a preset stacking order rule to form a three-dimensional hierarchical structure.
6. The method for visualizing battery energy sources according to claim 5, characterized in that, The preset stacking order rule is related to at least one of the energy type, priority, or target display percentage of the energy source.
7. The method for visually displaying the battery energy source according to claim 1, characterized in that, The method further includes: when the sum of the target display percentages of each energy source is less than the preset upper limit of the total target display percentage, constructing a spare display layer on top of the battery stack model to represent the unused capacity of the battery.
8. The method for visually displaying the battery energy source according to claim 1, characterized in that, The method further includes: during the display of the battery stack model, spatially associating text labels representing energy source information with corresponding three-dimensional display layers, so that the display position of the text labels changes synchronously with the height of the corresponding three-dimensional display layers.
9. The method for visually displaying the battery energy source according to claim 1, characterized in that, The three-dimensional display layers corresponding to different energy sources have different visual display attributes; the visual display attributes include at least one of color, texture style, transparency or border style.
10. A device for visually displaying the energy source of a battery, characterized in that, The device includes: An acquisition module is used to acquire the current battery power data, wherein the power data includes at least the original percentages from multiple energy sources; The correction module is used to correct the original proportion under the condition of satisfying the preset display constraints, so as to obtain the target display proportion corresponding to each energy source. The display module is used to construct a battery stack model corresponding to the battery in three-dimensional space, and to map different energy sources into multiple three-dimensional display layers stacked sequentially along the height direction of the battery stack model according to their respective target display proportions, so as to present a three-dimensional hierarchical structure that matches the battery entity.
11. 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 energy source visualization method as described in any one of claims 1-9.