Mileage display method of hybrid vehicle and vehicle
By calculating the target mileage in pure electric mode in hybrid vehicles, the problem of reducing the mileage in pure electric mode when the total mileage reaches the maximum is solved, and the effect of maintaining the consistent mileage after the maximum mileage is achieved, improving the user experience.
Patent Information
- Application Number
- CN202510358008.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-25
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-03-25
AI Technical Summary
When the total mileage of a hybrid vehicle reaches the maximum mileage limit displayed on the instrument panel, the mileage in pure electric mode will decrease due to the total mileage remaining unchanged, resulting in user dissatisfaction.
When the vehicle's total mileage is less than the maximum displayed mileage, the target mileage in pure electric mode is calculated by differentiating the total mileage from the mileage in hybrid mode. When the total mileage reaches the maximum, the detection process can undertake additional calculation tasks. If so, the target mileage is determined through independent calculation.
It avoids the problem of reducing the mileage in pure electric mode when the total mileage reaches its maximum, and improves the user's car experience.
Smart Images

Figure CN119974965A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and more specifically, to a mileage display method for a hybrid vehicle and a vehicle in the field of vehicle technology. Background Art
[0002] With the development of science and technology, more and more users choose to travel by car. For users, the total mileage of the car is very important information. Generally, the total mileage of the vehicle can be displayed on the dashboard of the vehicle. If the vehicle is a hybrid vehicle, the mileage in hybrid mode and the mileage in pure electric mode will be displayed separately.
[0003] At present, in order to ensure that the sum of the mileage in hybrid mode and the mileage in pure electric mode is equal to the total mileage of the vehicle while reducing the calculation burden of the vehicle, usually only the total mileage of the vehicle and the mileage in hybrid mode are calculated, and then the total mileage of the vehicle is subtracted from the mileage in hybrid mode to obtain the mileage in pure electric mode. However, due to the limitation of the number of digits displayed on the vehicle's dashboard (for example, the dashboard can only display 6-digit mileage) and the limitation of the processor's computing power (for example, the processor cannot process values exceeding 999999km), when the total mileage of the vehicle reaches the mileage limit (i.e. 999999km), the total mileage of the vehicle will not be able to increase, that is, when the vehicle continues to travel, the total mileage of the vehicle will remain unchanged, then when the mileage in hybrid mode increases, the mileage in pure electric mode displayed on the dashboard will become smaller, causing user dissatisfaction.
[0004] Therefore, how to prevent the mileage in pure electric mode displayed on the dashboard from decreasing after the vehicle's total mileage reaches the mileage limit is a technical problem that urgently needs to be solved. Summary of the invention
[0005] The present application provides a mileage display method for a hybrid vehicle and a vehicle, which can prevent the mileage in pure electric mode displayed on the instrument panel from becoming smaller after the total mileage of the vehicle reaches an upper mileage limit.
[0006] In a first aspect, a method for displaying mileage of a hybrid vehicle is provided, the method comprising: when the total mileage of the vehicle is less than a mileage threshold, determining a target mileage of the vehicle in a pure electric mode based on a first calculation method, the first calculation method being a method of subtracting the total mileage of the vehicle from the mileage of the vehicle in a hybrid power mode to obtain the target mileage, the mileage threshold being a maximum mileage that the vehicle can display; when the total mileage of the vehicle is equal to the mileage threshold, detecting whether the vehicle can additionally undertake the task of calculating the mileage; when the vehicle can additionally undertake the task of calculating the mileage, determining the target mileage based on a second calculation method, the second calculation method being a method of independently calculating the target mileage, the mileage of the vehicle in the hybrid power mode, and the total mileage of the vehicle; and displaying the target mileage on the dashboard of the vehicle.
[0007] In the above technical solution, when the total mileage of the vehicle is less than the maximum mileage that the vehicle can display, that is, the mileage threshold, the target mileage in the pure electric mode is obtained by subtracting the mileage in the hybrid mode from the total mileage (that is, the first calculation method). Since in this case, there is no need to calculate the target mileage in the pure electric mode separately, the calculation burden of the vehicle processor can be reduced; when the total mileage of the vehicle is equal to the mileage threshold and the vehicle can additionally undertake the task of calculating the mileage, an independent calculation method (that is, the second calculation method) is adopted to calculate the target mileage in the pure electric mode separately, so that the target mileage in the pure electric mode is no longer constrained by the first calculation method, that is, the target mileage in the pure electric mode is no longer constrained by the total mileage and the mileage in the hybrid mode, so as to avoid the problem that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in the hybrid mode increases, causing the mileage in the pure electric mode displayed on the dashboard to become smaller, thereby improving the user's car experience.
[0008] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, detecting whether the vehicle can additionally undertake the task of calculating mileage includes: obtaining the computing resource usage rate of the vehicle processor; when the computing resource usage rate of the vehicle processor is less than the usage rate threshold, determining that the vehicle can additionally undertake the task of calculating mileage, otherwise determining that the vehicle cannot additionally undertake the task of calculating mileage.
[0009] In the above technical solution, the computing resource usage rate of the vehicle processor is detected, and whether the vehicle can additionally undertake the task of calculating the mileage is determined based on the usage rate threshold, thereby effectively avoiding system overload or jamming due to insufficient computing resources.
[0010] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the target mileage is determined based on the second calculation method, including: obtaining the mileage increment of the vehicle in pure electric mode within a preset time period to obtain multiple mileage increments; accumulating the multiple mileage increments to obtain the target mileage increment; based on the target mileage increment, updating the current vehicle mileage in pure electric mode to obtain the target mileage.
[0011] In the above technical solution, by obtaining multiple mileage increments in pure electric mode within a preset time period, and accumulating these mileage increments to obtain the target mileage increment, this method can more accurately reflect the mileage increment of the vehicle in pure electric mode compared to the traditional method based on vehicle speed and time estimation, especially in complex road conditions or low-speed driving, the advantage is more obvious; further, when the current vehicle's mileage in pure electric mode is updated based on the target mileage increment, the accuracy of the target mileage of the vehicle in pure electric mode is also guaranteed.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: when the vehicle is unable to undertake the additional task of calculating the mileage, detecting whether the vehicle has a screenshot function; when the vehicle has the screenshot function, taking a screenshot of the current mileage of the vehicle in pure electric mode to obtain a first image, and fixing the first image at a first position on the dashboard of the vehicle, the first position being the display position of the vehicle's mileage in pure electric mode.
[0013] In the above technical solution, when the vehicle is unable to additionally undertake the task of calculating mileage, but the vehicle has a screenshot function, a screenshot can be taken of the current vehicle's mileage in pure electric mode to obtain a first image, and the first image is fixedly displayed at a first position on the vehicle's dashboard (i.e., the display position of the vehicle's mileage in pure electric mode), so that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in pure electric mode displayed on the dashboard also remains unchanged, thereby avoiding the problem that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in pure electric mode displayed on the dashboard becomes smaller when the mileage in hybrid mode increases, thereby improving the user's car experience.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: when the vehicle has a screenshot function, taking a screenshot of the current vehicle's mileage in hybrid mode to obtain a second image, and fixedly displaying the second image at a second position on the vehicle's dashboard, the second position being the display position of the vehicle's mileage in hybrid mode.
[0015] In the above technical solution, when a screenshot is taken of the mileage of the current vehicle in pure electric mode to obtain a first image, and the first image is fixedly displayed at a first position on the dashboard of the vehicle, a screenshot can also be taken of the mileage of the current vehicle in hybrid power mode to obtain a second image, and the second image is fixedly displayed at a second position on the dashboard of the vehicle (i.e., the display position of the mileage of the vehicle in hybrid power mode), so that when the total mileage and the mileage in pure electric mode displayed on the dashboard remain unchanged, the mileage in hybrid power mode displayed on the dashboard also remains unchanged, so that the display status of each mileage can be kept consistent.
[0016] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, detecting whether the vehicle has a screenshot function includes: reading configuration information of the vehicle's HMI system; determining whether there is an API interface that can provide a screenshot function in the configuration information of the vehicle's HMI system; if there is an API interface that can provide a screenshot function in the configuration information of the vehicle's HMI system, determining that the vehicle has the screenshot function, otherwise determining that the vehicle does not have the screenshot function.
[0017] In the above technical solution, by directly reading the configuration information of the vehicle's human-machine interface (HMI) system and checking whether there is an API interface that can provide a screenshot function in the configuration information, it is possible to quickly and accurately determine whether the vehicle has a screenshot function. Compared with other methods that may require running tests or simulations, this method is more efficient and reduces unnecessary operating steps and time consumption; in addition, judging whether the vehicle has a screenshot function based on the existence of an API interface for the screenshot function in the configuration information avoids misjudgment caused by external factors (such as network status, hardware failure, etc.) and ensures the accuracy of the results.
[0018] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: when the vehicle is unable to additionally undertake the task of calculating mileage and the vehicle does not have a screenshot function, determining whether the storage rate of the vehicle storage medium is less than the storage rate threshold; when the storage rate of the vehicle storage medium is less than the storage rate threshold, storing the current vehicle's mileage in pure electric mode at a third position of the vehicle storage medium, and storing the subsequently updated vehicle's mileage in pure electric mode at a fourth position of the vehicle storage medium, the third position and the fourth position having different physical addresses in the vehicle storage medium; and displaying the vehicle's mileage in pure electric mode stored in the third position on the vehicle's dashboard.
[0019] In the above technical solution, when the vehicle cannot additionally undertake the task of calculating mileage, the vehicle does not have a screenshot function, but when the storage rate of the vehicle storage medium is less than the storage rate threshold, that is, when the vehicle storage medium has a large remaining storage space, the current vehicle's mileage in pure electric mode can be stored in the third position of the vehicle storage medium, and the subsequently updated vehicle's mileage in pure electric mode can be stored in the fourth position of the vehicle storage medium, and the vehicle's mileage in pure electric mode stored in the third position, that is, the unupdated mileage in pure electric mode will always be displayed on the vehicle's dashboard, so that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in pure electric mode displayed on the dashboard also remains unchanged, thereby avoiding the problem that when the total mileage reaches the mileage threshold and remains unchanged, when the mileage in hybrid mode increases, the mileage in pure electric mode displayed on the dashboard becomes smaller, thereby improving the user's car experience.
[0020] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: when the storage rate of the vehicle storage medium is less than the storage rate threshold, storing the current vehicle mileage in hybrid mode in a third location, and storing the subsequently updated vehicle mileage in hybrid mode in a fourth location; and displaying the vehicle mileage in hybrid mode stored in the third location on the dashboard of the vehicle.
[0021] In the above technical solution, when the current mileage in pure electric mode is stored in the third position of the vehicle storage medium and the subsequently updated mileage in pure electric mode is stored in the fourth position of the vehicle storage medium, the current mileage in hybrid power mode can also be stored in the third position, and the subsequently updated mileage in hybrid power mode can also be stored in the fourth position, and the mileage in hybrid power mode stored in the third position can be displayed on the dashboard of the vehicle, so that when the total mileage and the mileage in pure electric mode displayed on the dashboard remain unchanged, the mileage in hybrid power mode displayed on the dashboard also remains unchanged, so that the display status of each mileage can be kept consistent.
[0022] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the method also includes: prohibiting the updating of the vehicle's mileage in hybrid mode when the vehicle cannot additionally undertake the task of calculating mileage, the vehicle does not have a screenshot function, and the storage rate of the vehicle's storage medium is greater than or equal to a storage rate threshold.
[0023] In the above technical solution, when the vehicle cannot additionally undertake the task of calculating the mileage, the vehicle does not have the screenshot function, and the storage rate of the vehicle storage medium is greater than or equal to the storage rate threshold, the mileage of the vehicle in the hybrid mode can be prohibited from being updated so that the mileage in the hybrid mode remains unchanged. Therefore, when the total mileage reaches the mileage threshold and remains unchanged, the difference between the total mileage and the mileage in the hybrid mode (i.e. the mileage in the pure electric mode) also remains unchanged, thereby ensuring that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in the pure electric mode displayed on the instrument panel will not decrease.
[0024] In a second aspect, a mileage display device for a hybrid vehicle is provided, the device comprising:
[0025] The determination module 401 is used to determine the target mileage of the vehicle in the pure electric mode based on a first calculation method when the total mileage of the vehicle is less than the mileage threshold, wherein the first calculation method is to obtain the target mileage by subtracting the total mileage of the vehicle from the mileage of the vehicle in the hybrid power mode, and the mileage threshold is the maximum mileage that the vehicle can display;
[0026] A detection module 402, configured to detect whether the vehicle can additionally undertake the task of calculating the mileage when the total mileage of the vehicle is equal to the mileage threshold;
[0027] The determination module 401 is further configured to determine the target mileage based on a second calculation method when the vehicle can additionally undertake the task of calculating the mileage, wherein the second calculation method is a method of independently calculating the target mileage, the mileage of the vehicle in the hybrid power mode, and the total mileage of the vehicle;
[0028] The display module 403 is used to display the target mileage on the dashboard of the vehicle.
[0029] In a third aspect, a vehicle is provided, comprising a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, so that the vehicle executes the mileage display method of a hybrid vehicle in the first aspect or any possible implementation of the first aspect.
[0030] In a fourth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the mileage display method for a hybrid vehicle in the first aspect or any possible implementation of the first aspect.
[0031] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the mileage display method for a hybrid vehicle in the above-mentioned first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of an implementation environment of a hybrid vehicle mileage display method provided in an embodiment of the present application;
[0033] Figure 2 is a schematic flow chart of a method for displaying mileage of a hybrid vehicle provided in an embodiment of the present application;
[0034] Figure 3 is a schematic flow chart of another method for displaying mileage of a hybrid vehicle provided in an embodiment of the present application;
[0035] Figure 4 is a schematic structural diagram of a mileage display device for a hybrid vehicle provided in an embodiment of the present application;
[0036] Figure 5 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The technical solution in the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: the additional existence of A, the simultaneous existence of A and B, and the additional existence of B. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0038] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0039] At present, in order to ensure that the sum of the mileage in hybrid mode and the mileage in pure electric mode is equal to the total mileage of the vehicle, while also reducing the computational burden of the vehicle processor, usually only the total mileage of the vehicle and the mileage in hybrid mode are calculated, and then the total mileage of the vehicle is subtracted from the mileage in hybrid mode to obtain the mileage in pure electric mode. However, due to the limitation of the number of digits displayed on the vehicle's dashboard (for example, the dashboard can only display 6-digit mileage) and the limitation of the processor's computing power (for example, the processor cannot process values exceeding 999999km), when the total mileage of the vehicle reaches the mileage limit (i.e., 999999km), the total mileage of the vehicle cannot be increased, that is, when the vehicle continues to travel, the total mileage of the vehicle remains unchanged, then when the mileage in hybrid mode increases, the mileage in pure electric mode displayed on the dashboard will become smaller, causing user dissatisfaction.
[0040] It should be noted that when calculating the mileage in hybrid mode and the mileage in pure electric mode separately, and then summing the mileage in hybrid mode and the mileage in pure electric mode to obtain the total mileage, it is necessary to perform multiple accumulation operations on the mileage in pure electric mode and hybrid mode respectively. However, multiple accumulation operations in both modes will lead to error accumulation, and as the vehicle runs for a long time, this error accumulation will become larger and larger, resulting in a large deviation between the total mileage obtained by summing the mileage in hybrid mode and the mileage in pure electric mode and the actual total mileage of the vehicle. However, when the total mileage of the vehicle is subtracted from the mileage in hybrid mode to obtain the mileage in pure electric mode, it is only necessary to perform multiple accumulation operations on the mileage in hybrid mode, and the total mileage of the vehicle is usually calculated based on the vehicle wheel speed sensor. Therefore, in this way, the error accumulation brought about is smaller than the error accumulation brought about when the mileage in pure electric mode and hybrid mode are calculated separately. In addition, in this way, only the mileage in hybrid mode needs to be accumulated, which can also reduce the amount of data to be maintained, thereby reducing the complexity of the system. Therefore, it is usually necessary to calculate the total mileage of the vehicle and the mileage in hybrid mode separately, and then subtract the total mileage of the vehicle from the mileage in hybrid mode to obtain the mileage in pure electric mode. However, when the total mileage of the vehicle reaches the mileage limit, when the mileage in hybrid mode increases, the mileage in pure electric mode displayed on the dashboard will easily become smaller.
[0041] To this end, the present application provides a mileage display method for a hybrid vehicle, which can prevent the mileage in pure electric mode displayed on the dashboard from becoming smaller after the total mileage of the vehicle reaches an upper mileage limit.
[0042] Before introducing the mileage display method of the hybrid vehicle provided by the embodiment of the present application, the implementation environment of the mileage display method of the hybrid vehicle provided by the embodiment of the present application is first introduced. Figure 1 , Figure 1 A schematic diagram of an implementation environment of a method for displaying mileage of a hybrid vehicle provided in an embodiment of the present application.
[0043] For example, Figure 1 As shown, the implementation environment includes: a vehicle control unit (VCU) 101, an instrument controller 102, and an instrument panel 103. The vehicle control unit 101 may also be referred to as a vehicle control unit.
[0044] The vehicle controller 101 is an important control unit of the vehicle, which can obtain relevant data of the vehicle and control the vehicle to perform corresponding operations based on the relevant data. For example, the vehicle controller 101 can obtain the total mileage of the vehicle, so that when the total mileage of the vehicle is less than the maximum mileage that the vehicle can display (i.e., the mileage threshold), the target mileage of the vehicle in pure electric mode is determined based on a first calculation method, and the target mileage is displayed on the dashboard 103 of the vehicle. The first calculation method is a method of subtracting the total mileage of the vehicle from the mileage of the vehicle in hybrid power mode to obtain the target mileage; when the total mileage of the vehicle is equal to the mileage threshold, and the vehicle can additionally undertake the task of calculating the mileage, the target mileage is determined based on a second calculation method, and the target mileage is displayed on the dashboard 103 of the vehicle. The second calculation method is a method of independently calculating the target mileage, the mileage of the vehicle in hybrid power mode, and the total mileage of the vehicle.
[0045] In some embodiments, after receiving the target mileage sent by the vehicle controller 101 , the instrument controller 102 displays the target mileage on the instrument panel 103 .
[0046] It should be noted that Figure 1 It is only a schematic diagram of an implementation environment. In practice, the controllers that interact with the instrument controller 102 may include other controllers in addition to the vehicle controller 101, and the embodiments of the present application do not make specific limitations.
[0047] After introducing the schematic diagram of the implementation environment of the method for displaying the mileage of a hybrid vehicle provided in the embodiment of the present application, the method for displaying the mileage of a hybrid vehicle provided in the embodiment of the present application is introduced below.
[0048] Below through Figure 2 The method of the embodiment of the present application is described in detail.
[0049] Figure 2 It is a schematic flow chart of a method for displaying mileage of a hybrid vehicle provided in an embodiment of the present application.
[0050] For example, Figure 2 As shown, the execution subject is Figure 1 Taking the vehicle controller 101 in FIG. 2 as an example, the method 200 includes the following steps 201 to 203.
[0051] Step 201, when the total mileage of the vehicle is less than the mileage threshold, determine the target mileage of the vehicle in pure electric mode based on a first calculation method, the first calculation method is to subtract the total mileage of the vehicle from the mileage of the vehicle in hybrid power mode to obtain the target mileage, and the mileage threshold is the maximum mileage that the vehicle can display.
[0052] It should be noted that due to the limitation of the number of digits displayed on the vehicle's dashboard (for example, the dashboard can only display six-digit mileage) and the limitation of the computing power of the vehicle's processor (for example, the processor cannot process values exceeding 999999km), when the vehicle's total mileage reaches the mileage threshold (i.e. 999999km), the vehicle's total mileage will not be able to increase. That is, when the vehicle's total mileage reaches the six-digit 999999km, the vehicle's total mileage cannot be increased by the seven-digit 1000000km. In other words, the mileage threshold is the maximum mileage that the vehicle's dashboard can display and the vehicle's processor can process.
[0053] In a possible implementation, the vehicle controller obtains the total mileage of the vehicle through a wheel speed sensor.
[0054] It should be noted that when the total mileage of the vehicle is less than the mileage threshold, it indicates that the total mileage of the vehicle can continue to increase during subsequent driving of the vehicle. In this case, when the mileage in hybrid mode increases, the first calculation method (i.e., subtracting the total mileage of the vehicle from the mileage of the vehicle in hybrid mode to obtain the target mileage) will not cause the target mileage in pure electric mode to become smaller. Therefore, in this case, only the total mileage of the vehicle and the mileage of the vehicle in hybrid mode can be calculated, and the total mileage of the vehicle can be subtracted from the mileage of the vehicle in hybrid mode to obtain the target mileage of the vehicle in pure electric mode, without separately calculating the target mileage of the vehicle in pure electric mode, thereby reducing the computational burden of the vehicle processor.
[0055] Step 202, when the total mileage of the vehicle is equal to the mileage threshold, detect whether the vehicle can additionally undertake the task of calculating the mileage; when the vehicle can additionally undertake the task of calculating the mileage, determine the target mileage based on a second calculation method, the second calculation method is a method of independently calculating the target mileage, the mileage of the vehicle in hybrid power mode, and the total mileage of the vehicle.
[0056] It should be noted that when the total mileage of the vehicle is equal to the mileage threshold, it indicates that the total mileage of the vehicle will not continue to increase when the vehicle is subsequently driven. In this case, when the mileage in the hybrid mode increases, the target mileage in the pure electric mode will become smaller based on the above-mentioned first calculation method. Therefore, in this case, an independent calculation method (i.e., the second calculation method) can be used to calculate the target mileage in the pure electric mode separately, so that the target mileage in the pure electric mode is no longer constrained by the first calculation method, that is, the target mileage in the pure electric mode is no longer constrained by the total mileage and the mileage in the hybrid mode. However, when the total mileage of the vehicle reaches the mileage threshold, it indicates that the vehicle has been used for a long time, and as the vehicle runs for a long time, the available computing resources of the vehicle are also continuously reduced. Therefore, before using the second calculation method to determine the target mileage, it is necessary to first detect whether the vehicle can additionally undertake the task of calculating the mileage, so that if the vehicle can additionally undertake the task of calculating the mileage, the target mileage in the pure electric mode can be determined based on the second calculation method.
[0057] The following first introduces in detail the specific implementation method of detecting whether the vehicle can additionally undertake the task of calculating the mileage in two steps.
[0058] Step (1), obtaining the computing resource usage of the vehicle processor.
[0059] Among them, the computing resource utilization rate of the vehicle processor can also be called the central processing unit (CPU) utilization rate, which refers to the proportion of the time the processor uses to execute tasks in a specific time period to the total time, usually expressed as a percentage.
[0060] In a possible implementation, the vehicle controller obtains the computing resource usage of the vehicle processor through a built-in performance monitoring unit (PMU). It should be noted that the performance monitoring module can track the usage of hardware resources such as the vehicle processor and vehicle memory in real time, and generate detailed usage data for the vehicle controller to read and analyze.
[0061] In another possible implementation, the vehicle controller obtains the computing resource usage of the vehicle processor by calling a specific function through an application programming interface (API) provided by an onboard operating system (such as Linux, QNX, or AUTOSAR, etc.).
[0062] Step (2), when the computing resource usage rate of the vehicle processor is less than the usage rate threshold, it is determined that the vehicle can additionally undertake the task of calculating the mileage; otherwise, it is determined that the vehicle cannot additionally undertake the task of calculating the mileage.
[0063] The usage rate threshold is pre-set by the developer based on experimental data and stored in the internal memory of the vehicle. For example, the usage rate threshold is 70%, 75%, 85%, etc., which is not limited in the embodiment of the present application.
[0064] Specifically, after obtaining the computing resource utilization rate of the vehicle processor, the computing resource utilization rate of the vehicle processor can be compared with the utilization rate threshold so that when the computing resource utilization rate of the vehicle processor is less than the utilization rate threshold, it is determined that the vehicle can take on the additional task of calculating the mileage; otherwise, it is determined that the vehicle cannot take on the additional task of calculating the mileage.
[0065] For example, when the usage threshold is 70% and the computing resource usage of the vehicle processor is 65%, the computing resource usage of the vehicle processor (65%) and the usage threshold (70%) can be compared. Since the computing resource usage of the vehicle processor (65%) is less than the usage threshold (70%) at this time, it can be determined in this case that the vehicle can additionally take on the task of calculating mileage.
[0066] It should be noted that when the computing resource utilization rate of the vehicle processor is less than the utilization rate threshold, it indicates that the processor has more idle cores or cycles available and can complete the assigned new task (i.e., the task of separately calculating the target mileage in pure electric mode). Therefore, in this case, it can be determined that the vehicle can additionally undertake the task of calculating the mileage. On the contrary, when the computing resource utilization rate of the vehicle processor is greater than or equal to the utilization rate threshold, it indicates that the processor is close to full load operation. At this time, assigning new tasks to the processor may cause the system response to become slower or delayed, thereby affecting the normal operation of the vehicle's key functions (for example, control of the power system, control of the braking system, and control lights of the steering system). Therefore, in this case, it can be determined that the vehicle cannot additionally undertake the task of calculating the mileage.
[0067] After introducing the specific implementation method of detecting whether the vehicle can additionally undertake the task of calculating the mileage, the following is a detailed introduction of the specific implementation method of determining the target mileage in three steps.
[0068] Step (1), obtaining the mileage increment of the vehicle in pure electric mode within a preset time period to obtain multiple mileage increments.
[0069] Among them, the preset duration is pre-set by the developer and saved in the internal memory of the vehicle. For example, the preset duration is 1 minute, 3 minutes or 5 minutes, etc., which is not limited in the embodiments of the present application. The preset duration can be understood as a time window for collecting the mileage increment (also known as the mileage step value) of the vehicle in pure electric mode, that is, the mileage increment of the vehicle in pure electric mode is collected once every preset duration, thereby obtaining multiple mileage increments of the vehicle in pure electric mode. Among them, the mileage increment can be understood as the distance increment traveled by the vehicle within the preset duration.
[0070] In a possible implementation, the vehicle controller obtains the mileage increment of the vehicle in pure electric mode through the vehicle's anti-lock braking system (ABS). The ABS calculates the mileage increment of the vehicle within a preset time based on the data of the wheel speed sensor for the vehicle controller to read and analyze.
[0071] Step (2), accumulating multiple mileage increments to obtain a target mileage increment.
[0072] Among them, the target mileage increment is the total mileage increment of the vehicle in pure electric mode.
[0073] Specifically, after obtaining multiple mileage increments, all mileage increments can be accumulated to obtain the total mileage increment of the vehicle in pure electric mode, that is, the target mileage increment, so that the current vehicle's mileage in pure electric mode can be updated based on the target mileage increment.
[0074] Step (3), based on the target mileage increment, the current vehicle mileage in pure electric mode is updated to obtain the target mileage.
[0075] Among them, the current vehicle's mileage in pure electric mode can be understood as the mileage in pure electric mode displayed on the vehicle's dashboard when the vehicle's total mileage is equal to the mileage threshold.
[0076] Specifically, after obtaining the target mileage increment, the target mileage increment and the current mileage of the vehicle in the pure electric mode may be summed to obtain the target mileage of the vehicle in the pure electric mode.
[0077] For example, when the target mileage increment is 120km and the current vehicle mileage in pure electric mode is 2000km, the target mileage increment (120km) and the current vehicle mileage in pure electric mode (2000km) can be summed to obtain the target mileage of the vehicle in pure electric mode, that is, the target mileage of the vehicle in pure electric mode = 120km + 2000km = 2120km.
[0078] Step 203: Display the target mileage on the dashboard of the vehicle.
[0079] Specifically, after obtaining the target mileage of the vehicle in pure electric mode, the vehicle controller will send the updated current mileage of the vehicle in pure electric mode, that is, the target mileage, to the instrument controller, so that after receiving the target mileage, the instrument controller will display the target mileage in the display position of the mileage in pure electric mode on the instrument panel.
[0080] It should be noted that in the above embodiment, when the total mileage of the vehicle reaches the mileage threshold and remains unchanged, and the vehicle is able to additionally undertake the task of calculating the mileage, as the vehicle continues to travel, the mileage of the vehicle in pure electric mode and the mileage of the vehicle in hybrid power mode can both increase normally on the vehicle's dashboard.
[0081] In summary, the embodiment of the present application provides a mileage display method for a hybrid vehicle, which can obtain the target mileage in pure electric mode by subtracting the mileage in hybrid mode from the total mileage when the total mileage of the vehicle is less than the maximum mileage that the vehicle can display, that is, the mileage threshold (i.e., the first calculation method). Since in this case, there is no need to calculate the target mileage in pure electric mode separately, the calculation burden of the vehicle processor can be reduced; when the total mileage of the vehicle is equal to the mileage threshold and the vehicle can additionally undertake the task of calculating the mileage, an independent calculation method (i.e., the second calculation method) is adopted to calculate the target mileage in pure electric mode separately, so that the target mileage in pure electric mode is no longer constrained by the first calculation method, that is, the target mileage in pure electric mode is no longer constrained by the total mileage and the mileage in hybrid mode, so as to avoid the problem that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in hybrid mode increases, causing the mileage in pure electric mode displayed on the instrument panel to become smaller, thereby improving the user's car experience.
[0082] Figure 3 It is a schematic flowchart of another method for displaying mileage of a hybrid vehicle provided in an embodiment of the present application.
[0083] For example, Figure 3 As shown, the execution subject is Figure 1 Taking the vehicle controller 101 in FIG. 3 as an example, the method 300 includes the following steps 301 to 308.
[0084] Step 301, when the total mileage of the vehicle is equal to the mileage threshold, detect whether the vehicle can additionally undertake the task of calculating the mileage. If the vehicle can additionally undertake the task of calculating the mileage, execute step 302, otherwise execute step 303.
[0085] Step 302 , determining the target mileage based on a second calculation method, where the second calculation method is a method of independently calculating the target mileage, the mileage of the vehicle in the hybrid power mode, and the total mileage of the vehicle.
[0086] The implementation of step 301 and step 302 can be found in the above embodiments and will not be described in detail here.
[0087] Step 303, detect whether the vehicle has a screenshot function, if the vehicle has the screenshot function, execute step 304, otherwise execute step 305.
[0088] The following three steps will introduce in detail the specific implementation methods for detecting whether the vehicle has the screenshot function.
[0089] Step (1), reading the configuration information of the vehicle's HMI system.
[0090] It should be noted that the Human-Machine Interface (HMI) system is the main interface for interaction between the driver and the vehicle, and it is responsible for managing and controlling various functional modules of the vehicle. That is, whether it is the display content, operation settings or function expansion of the vehicle, the HMI system plays a key role. Therefore, if the vehicle has a screenshot function, the configuration information of this function will usually be integrated into the configuration information of the HMI system, and access rights will be provided to the outside through an API interface or other means. Therefore, when detecting whether a vehicle has a screenshot function, it is necessary to read the configuration information of the vehicle's HMI system so that it can be determined whether the vehicle has a screenshot function based on the configuration information of the HMI system.
[0091] In one possible implementation, the vehicle controller sends a request message for reading configuration information to the vehicle's HMI system via a controller area network (CAN) bus. After receiving the request, the HMI system extracts the configuration information from its internal memory and returns the configuration information to the vehicle controller via the CAN bus, so that the vehicle controller obtains the configuration information in the vehicle's HMI system.
[0092] Step (2), determining whether there is an API interface that can provide a screenshot function in the configuration information of the vehicle's HMI system.
[0093] Specifically, after obtaining the configuration information of the HMI system of the vehicle, the vehicle controller may parse the configuration information and search whether there is an API interface that can provide a screenshot function in the configuration information.
[0094] For example, the configuration information of the vehicle's HMI system is a JSON file: json{"features":{"screenshot_api":true,"voice_control":true,"gesture_recognition":false}}. The vehicle controller can determine whether there is an API interface that can provide the screenshot function in the configuration information by parsing the "screenshot_api" parameter in the "features" field. Specifically, if the parsed "screenshot_api" parameter is true, it means that there is an API interface that can provide the screenshot function; if the parsed "screenshot_api" parameter is false or the field does not exist, it means that there is no API interface that can provide the screenshot function.
[0095] Step (3), when there is an API interface that can provide a screenshot function in the configuration information of the HMI system of the vehicle, it is determined that the vehicle has the screenshot function; otherwise, it is determined that the vehicle does not have the screenshot function.
[0096] Specifically, when it is determined that there is an API interface that can provide a screenshot function in the configuration information of the vehicle's HMI system, it indicates that the vehicle's HMI system has integrated relevant modules and interfaces for the screenshot function, and in this case it can be determined that the vehicle has the screenshot function; when there is no API interface that can provide a screenshot function in the configuration information of the vehicle's HMI system, it indicates that the vehicle's HMI system has not integrated or does not support relevant modules and interfaces for the screenshot function, and in this case it can be determined that the vehicle does not have the screenshot function.
[0097] Step 304, taking a screenshot of the current vehicle's mileage in pure electric mode to obtain a first image, and fixedly displaying the first image at a first position on the vehicle's dashboard, the first position being the display position of the vehicle's mileage in pure electric mode.
[0098] Specifically, when it is determined that the vehicle has a screenshot function, the vehicle controller can call the API interface that can provide the screenshot function in the HMI system, and determine the location area on the instrument panel that displays the mileage in pure electric mode as the target area for the screenshot, and then send the target area as a parameter to the API interface that can provide the screenshot function, so that the HMI system can perform a screenshot operation on the target area to obtain a first image. Furthermore, after the HMI system obtains the first image, it will send the first image to the vehicle controller, so that after receiving the first image, the vehicle controller will send the first image and its corresponding location area (i.e., the location area on the instrument panel that displays the mileage in pure electric mode) to the instrument controller, so that when the instrument controller receives the first image and the location area where the first image is located, the first image is fixedly displayed on the first position on the vehicle's instrument panel (i.e., the display position of the mileage in pure electric mode) based on the location area where the first image is located.
[0099] It should be noted that when the vehicle is unable to additionally undertake the task of calculating mileage, but the vehicle has a screenshot function, a screenshot can be taken of the current vehicle's mileage in pure electric mode to obtain a first image, and the first image is fixedly displayed at a first position on the vehicle's dashboard, so that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in pure electric mode displayed on the dashboard also remains unchanged. This avoids the problem that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in pure electric mode displayed on the dashboard becomes smaller when the mileage in hybrid mode increases, thereby improving the user's car experience.
[0100] In one possible implementation, while taking a screenshot of the current vehicle's mileage in pure electric mode to obtain a first image, and displaying the first image fixedly at a first position on the vehicle's dashboard, a screenshot of the current vehicle's mileage in hybrid power mode can also be taken at the same time to obtain a second image, and display the second image fixedly at a second position on the vehicle's dashboard (i.e., the display position of the vehicle's mileage in hybrid power mode), so that when the total mileage and the mileage in pure electric mode displayed on the dashboard remain unchanged, the mileage in hybrid power mode displayed on the dashboard also remains unchanged, thereby allowing the display status of each mileage to remain consistent.
[0101] Among them, the implementation method of taking a screenshot of the current vehicle's mileage in hybrid mode to obtain a second image and fixedly displaying the second image at a second position on the vehicle's dashboard can be referred to the above embodiment and will not be repeated here.
[0102] It should be noted that when the second image and the second image are fixedly displayed at the first position and the second position on the dashboard of the vehicle respectively, only the mileage in hybrid mode and the mileage in pure electric mode displayed on the dashboard remain unchanged, and at this time the vehicle's processor does not stop the task of updating the current vehicle's mileage in pure electric mode and the current vehicle's mileage in hybrid mode, that is, the mileage in hybrid mode and the mileage in pure electric mode are updated normally in the background of the vehicle, so in this case it will not affect the update of the fuel consumption module associated with the mileage in hybrid mode.
[0103] Step 305 , determining whether the storage rate of the vehicle storage medium is less than the storage rate threshold. If the storage rate of the vehicle storage medium is less than the storage rate threshold, execute steps 306 and 307 , otherwise execute step 308 .
[0104] Among them, the vehicle storage medium is a non-volatile storage medium, that is, the vehicle storage medium can still keep the stored data unchanged after the vehicle is powered off. In other words, the vehicle storage medium will not lose the stored data due to the power outage of the vehicle.
[0105] The storage rate of a vehicle storage medium refers to the ratio of the used storage space to the total storage space of the vehicle storage medium, usually expressed as a percentage.
[0106] The storage rate threshold is pre-set by the developer based on experimental data and stored in the internal memory of the vehicle. For example, the storage rate threshold is 60%, 55%, 75%, etc., which is not limited in the embodiment of the present application.
[0107] In one possible implementation, when the vehicle is unable to additionally undertake the task of calculating mileage and the vehicle does not have a screenshot function, the vehicle controller may call the API interface of the file system to request the file system to obtain storage information of the vehicle storage medium. After receiving the request sent by the vehicle controller, the file system will send the used storage space and the total storage space of the vehicle storage medium to the vehicle controller, so that when the vehicle controller receives the used storage space and the total storage space of the vehicle storage medium sent by the file system, it will divide the used storage space by the total storage space to obtain the storage rate of the vehicle storage medium, and compare the obtained storage rate of the vehicle storage medium with the storage rate threshold, so that when the storage rate of the vehicle storage medium is less than the storage rate threshold, steps 306 and 307 are executed; when the storage rate of the vehicle storage medium is greater than or equal to the storage rate threshold, step 308 is executed.
[0108] Step 306 , storing the current mileage of the vehicle in the hybrid power mode in the third location, and storing the subsequently updated mileage of the vehicle in the hybrid power mode in the fourth location.
[0109] The third position and the fourth position refer to different and unoccupied physical addresses in the vehicle storage medium.
[0110] It should be noted that when the storage rate of the vehicle storage medium is less than the storage rate threshold, it indicates that the vehicle storage medium has sufficient remaining storage space to save data. Therefore, in this case, the mileage of the current vehicle in hybrid mode and the mileage of the subsequently updated vehicle in hybrid mode can be stored separately, that is, the mileage of the current vehicle in hybrid mode is stored (which can also be understood as written) in the third position, and the mileage of the subsequently updated vehicle in hybrid mode is stored in the fourth position.
[0111] Step 307 , displaying the mileage of the vehicle in the pure electric mode stored in the third location on the dashboard of the vehicle.
[0112] Specifically, after storing the current vehicle's mileage in hybrid mode in the third position, the vehicle controller will always send the vehicle's mileage in pure electric mode stored in the third position to the instrument controller, so that after receiving the mileage, the instrument controller will display the mileage in the display position of the mileage in pure electric mode on the instrument panel, that is, the mileage in pure electric mode displayed on the instrument panel remains unchanged.
[0113] It should be noted that when the vehicle is unable to assume the additional task of calculating mileage and the vehicle does not have a screenshot function, but the storage rate of the vehicle storage medium is less than the storage rate threshold, the current vehicle's mileage in pure electric mode is stored in the third position of the vehicle storage medium, and the subsequently updated vehicle's mileage in pure electric mode is stored in the fourth position of the vehicle storage medium, and the vehicle's mileage in pure electric mode stored in the third position, that is, the unupdated mileage in pure electric mode is always displayed on the vehicle's dashboard, so that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in pure electric mode displayed on the dashboard also remains unchanged, thereby avoiding the problem that when the total mileage reaches the mileage threshold and remains unchanged, when the mileage in hybrid mode increases, the mileage in pure electric mode displayed on the dashboard becomes smaller, thereby improving the user's car experience.
[0114] In one possible implementation, when the current mileage in pure electric mode is stored in the third position of the vehicle storage medium and the subsequently updated mileage in pure electric mode is stored in the fourth position of the vehicle storage medium, the vehicle controller may also store the current mileage in hybrid power mode in the third position and the subsequently updated mileage in hybrid power mode in the fourth position, and display the mileage in hybrid power mode stored in the third position on the vehicle's dashboard, so that when the total mileage and the mileage in pure electric mode displayed on the dashboard remain unchanged, the mileage in hybrid power mode displayed on the dashboard also remains unchanged, so that the display status of each mileage can be kept consistent.
[0115] Among them, the implementation method of displaying the mileage in the hybrid mode stored in the third position on the dashboard of the vehicle can be referred to the implementation method of displaying the mileage in the pure electric mode stored in the third position on the dashboard of the vehicle in the above embodiment, which will not be repeated here.
[0116] It can be understood that in the above embodiment, the vehicle's processor does not stop the task of updating the current vehicle's mileage in pure electric mode and the current vehicle's mileage in hybrid mode, but only stores the updated mileage separately in the fourth position of the storage medium. Therefore, in this case, it will not affect the update of the fuel consumption module associated with the mileage in hybrid mode.
[0117] Step 308 , prohibiting updating of the vehicle's mileage in the hybrid mode.
[0118] It should be noted that when the operation of prohibiting the updating of the vehicle's mileage in hybrid mode is executed, the vehicle's processor will stop the task of updating the current vehicle's mileage in pure electric mode and the current vehicle's mileage in hybrid mode, which will affect the update of the fuel consumption module associated with the mileage in hybrid mode. Therefore, in the embodiment of the present application, the operation of prohibiting the updating of the vehicle's mileage in hybrid mode will only be executed when the vehicle cannot additionally undertake the task of calculating the mileage, the vehicle does not have a screenshot function, and the storage rate of the vehicle's storage medium is greater than or equal to the storage rate threshold, so as to minimize the impact on the update of the fuel consumption module associated with the mileage in hybrid mode.
[0119] It is understandable that when the vehicle cannot additionally undertake the task of calculating the mileage, the vehicle does not have the screenshot function, and the storage rate of the vehicle storage medium is greater than or equal to the storage rate threshold, it indicates that the space of the vehicle storage medium is close to or has reached the full load state. Therefore, in this case, the vehicle storage medium does not have enough remaining storage space at this time to separately store the subsequently updated mileage of the vehicle in hybrid mode and the subsequently updated mileage of the vehicle in pure electric mode. Therefore, in this case, in order to keep the total mileage unchanged when the mileage reaches the mileage threshold, when the mileage in hybrid mode increases, the mileage in pure electric mode displayed on the instrument panel will not decrease. In a possible implementation, the vehicle controller can prohibit updating the mileage of the vehicle in hybrid mode so that the mileage in hybrid mode remains unchanged, so that when the total mileage reaches the mileage threshold and remains unchanged, the difference between the total mileage and the mileage in hybrid mode (i.e., the mileage in pure electric mode) also remains unchanged, thereby ensuring that when the total mileage reaches the mileage threshold and remains unchanged, the mileage in pure electric mode displayed on the instrument panel will not decrease.
[0120] Figure 4 It is a structural schematic diagram of a mileage display device for a hybrid vehicle provided in an embodiment of the present application.
[0121] For example, Figure 4 As shown, the device 400 includes:
[0122] The determination module 401 is used to determine the target mileage of the vehicle in the pure electric mode based on a first calculation method when the total mileage of the vehicle is less than the mileage threshold, wherein the first calculation method is to obtain the target mileage by subtracting the total mileage of the vehicle from the mileage of the vehicle in the hybrid power mode, and the mileage threshold is the maximum mileage that the vehicle can display;
[0123] A detection module 402, configured to detect whether the vehicle can additionally undertake the task of calculating the mileage when the total mileage of the vehicle is equal to the mileage threshold;
[0124] The determination module 401 is further configured to determine the target mileage based on a second calculation method when the vehicle can additionally undertake the task of calculating the mileage, wherein the second calculation method is a method of independently calculating the target mileage, the mileage of the vehicle in the hybrid power mode, and the total mileage of the vehicle;
[0125] The display module 403 is used to display the target mileage on the dashboard of the vehicle.
[0126] In one possible implementation, the device also includes an acquisition module for acquiring the computing resource usage rate of the vehicle processor; a determination module 401 is specifically used to determine that the vehicle can additionally undertake the task of calculating the mileage when the computing resource usage rate of the vehicle processor is less than a usage rate threshold, otherwise it is determined that the vehicle cannot additionally undertake the task of calculating the mileage.
[0127] In one possible implementation, the determination module 401 is further specifically used to obtain the mileage increment of the vehicle in pure electric mode within a preset time period to obtain multiple mileage increments; accumulate the multiple mileage increments to obtain a target mileage increment; based on the target mileage increment, update the current vehicle's mileage in pure electric mode to obtain a target mileage.
[0128] In one possible implementation, the device also includes a detection module 402, which is used to detect whether the vehicle has a screenshot function when the vehicle is unable to additionally undertake the task of calculating the mileage; a display module 403, which is specifically used to take a screenshot of the current mileage of the vehicle in pure electric mode when the vehicle has the screenshot function, to obtain a first image, and to display the first image fixedly at a first position on the dashboard of the vehicle, where the first position is the display position of the mileage of the vehicle in pure electric mode.
[0129] In one possible implementation, the display module 403 is specifically used to take a screenshot of the current vehicle's mileage in hybrid mode when the vehicle has a screenshot function, to obtain a second image, and to display the second image fixedly at a second position on the vehicle's dashboard, where the second position is the display position of the vehicle's mileage in hybrid mode.
[0130] In a possible implementation, the acquisition module is further used to read the configuration information of the vehicle's HMI system; the determination module 401 is further used to determine whether there is an API interface that can provide a screenshot function in the configuration information of the vehicle's HMI system; if there is an API interface that can provide a screenshot function in the configuration information of the vehicle's HMI system, it is determined that the vehicle has the screenshot function; otherwise, it is determined that the vehicle does not have the screenshot function.
[0131] In one possible implementation, the detection module 402 is also used to determine whether the storage rate of the vehicle storage medium is less than the storage rate threshold when the vehicle cannot additionally undertake the task of calculating the mileage and the vehicle does not have a screenshot function; the device also includes a storage module, which is used to store the current vehicle's mileage in pure electric mode in a third position of the vehicle storage medium when the storage rate of the vehicle storage medium is less than the storage rate threshold, and store the subsequently updated vehicle's mileage in pure electric mode in a fourth position of the vehicle storage medium, the third position and the fourth position having different physical addresses in the vehicle storage medium; the display module 403 is also used to display the vehicle's mileage in pure electric mode stored in the third position on the vehicle's dashboard.
[0132] In one possible implementation, the storage module is further used to store the current vehicle mileage in hybrid power mode at a third location and store the subsequently updated vehicle mileage in hybrid power mode at a fourth location when the storage rate of the vehicle storage medium is less than a storage rate threshold; the display module 403 is further used to display the vehicle mileage in hybrid power mode stored in the third location on the dashboard of the vehicle.
[0133] In one possible implementation, the device also includes a prohibition module for prohibiting the updating of the vehicle's mileage in hybrid mode when the vehicle cannot additionally undertake the task of calculating mileage, the vehicle does not have a screenshot function, and the storage rate of the vehicle's storage medium is greater than or equal to a storage rate threshold.
[0134] Figure 5 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0135] For example, Figure 5 As shown, the vehicle 500 includes: a memory 501 and a processor 502, wherein the memory 501 stores an executable program code 503, and the processor 502 is used to call and execute the executable program code 503 to perform a mileage display method for a hybrid vehicle.
[0136] In addition, an embodiment of the present application also protects a device, which may include a memory and a processor, wherein the memory stores an executable program code, and the processor is used to call and execute the executable program code to execute a mileage display method for a hybrid vehicle provided in an embodiment of the present application.
[0137] In this embodiment, the functional modules of the device can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0138] In the case of dividing each functional module according to each function, the device may also include an acquisition module, a detection module, a storage module, a prohibition module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0139] It should be understood that the device provided in this embodiment is used to execute the above-mentioned method for displaying mileage of a hybrid vehicle, and thus can achieve the same effect as the above-mentioned implementation method.
[0140] In the case of an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing related program codes, etc.
[0141] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits shown in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0142] In addition, the device provided in the embodiments of the present application may specifically be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute a mileage display method for a hybrid vehicle provided in the above embodiments.
[0143] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a mileage display method for a hybrid vehicle provided in the above embodiment.
[0144] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement a method for displaying mileage of a hybrid vehicle provided in the above embodiment.
[0145] Among them, the device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0146] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0147] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0148] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for displaying mileage of a hybrid vehicle, characterized in that: The method comprises: When the total mileage of the vehicle is less than the mileage threshold, determining the target mileage of the vehicle in the pure electric mode based on a first calculation method, wherein the first calculation method is a method of obtaining the target mileage by subtracting the total mileage of the vehicle from the mileage of the vehicle in the hybrid power mode, and the mileage threshold is the maximum mileage that the vehicle can display; When the total mileage of the vehicle is equal to the mileage threshold, detecting whether the vehicle can additionally undertake the task of calculating the mileage; when the vehicle can additionally undertake the task of calculating the mileage, determining the target mileage based on a second calculation method, wherein the second calculation method is a method of independently calculating the target mileage, the mileage of the vehicle in the hybrid power mode, and the total mileage of the vehicle; The target mileage is displayed on a dashboard of the vehicle.
2. The method according to claim 1, characterized in that The detecting whether the vehicle can additionally undertake the task of calculating the mileage includes: Obtaining a computing resource usage rate of the vehicle processor; When the computing resource usage rate of the vehicle processor is less than the usage rate threshold, it is determined that the vehicle can additionally undertake the task of calculating the mileage; otherwise, it is determined that the vehicle cannot additionally undertake the task of calculating the mileage.
3. The method according to claim 1, characterized in that The determining the target mileage based on the second calculation method includes: Obtaining a mileage increment of the vehicle in a pure electric mode within a preset time period to obtain a plurality of mileage increments; Accumulating the multiple mileage increments to obtain the target mileage increment; Based on the target mileage increment, the current mileage of the vehicle in the pure electric mode is updated to obtain the target mileage.
4. The method according to claim 1, characterized in that: The method further comprises: In the case where the vehicle cannot additionally undertake the task of calculating the mileage, detecting whether the vehicle has a screenshot function; In the case that the vehicle has a screenshot function, a screenshot is taken of the current mileage of the vehicle in pure electric mode to obtain a first image, and the first image is fixedly displayed at a first position on the dashboard of the vehicle, where the first position is the display position of the mileage of the vehicle in pure electric mode.
5. The method according to claim 4, characterized in that The method further comprises: In the case where the vehicle has a screenshot function, a screenshot is taken of the current mileage of the vehicle in hybrid mode to obtain a second image, and the second image is fixedly displayed at a second position on the dashboard of the vehicle, where the second position is the display position of the mileage of the vehicle in hybrid mode.
6. The method according to claim 4, characterized in that The detecting whether the vehicle has a screenshot function includes: Reading configuration information of the HMI system of the vehicle; Determine whether there is an API interface that can provide a screenshot function in the configuration information of the HMI system of the vehicle; When there is an API interface that can provide a screenshot function in the configuration information of the HMI system of the vehicle, it is determined that the vehicle has the screenshot function; otherwise, it is determined that the vehicle does not have the screenshot function.
7. The method according to claim 4, characterized in that The method further comprises: In the case where the vehicle cannot additionally undertake the task of calculating the mileage and the vehicle does not have a screenshot function, determining whether the storage rate of the vehicle storage medium is less than a storage rate threshold; When the storage rate of the vehicle storage medium is less than the storage rate threshold, the current mileage of the vehicle in the pure electric mode is stored in a third position of the vehicle storage medium, and the subsequently updated mileage of the vehicle in the pure electric mode is stored in a fourth position of the vehicle storage medium, and the third position and the fourth position have different physical addresses in the vehicle storage medium; The mileage of the vehicle in the pure electric mode stored in the third location is displayed on the dashboard of the vehicle.
8. The method according to claim 7, characterized in that The method further comprises: When the storage rate of the vehicle storage medium is less than the storage rate threshold, storing the current mileage of the vehicle in the hybrid mode in the third position, and storing the subsequently updated mileage of the vehicle in the hybrid mode in the fourth position; The mileage of the vehicle in the hybrid mode stored in the third location is displayed on a dashboard of the vehicle.
9. The method according to claim 7, characterized in that: The method further comprises: When the vehicle cannot additionally undertake the task of calculating the mileage, the vehicle does not have a screenshot function, and the storage rate of the vehicle storage medium is greater than or equal to the storage rate threshold, updating the mileage of the vehicle in hybrid power mode is prohibited.
10. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory so that the vehicle executes the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Automobile and driving mileage backup method
CN107202593A
Method and device for acquiring driving information of hybrid vehicle and electronic equipment
CN116901968A
Mileage display method and device and vehicle
CN118107558A
Method for Displaying the Remaining Range of a Motor Vehicle
US20100219945A1
Method and device for determining and displaying a remaining range of a motor vehicle, and motor vehicle having a device for determining and displaying a remaining range
US20150061855A1