Method, apparatus, device and storage medium for calculating endurance mileage
Patent Information
- Application Number
- CN202311541802.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-11-15
AI Technical Summary
[0022] This application obtains the vehicle's first fuel quantity when the total mileage is greater than or equal to a reference mileage. When the first fuel quantity is reduced by a reference percentage from the initial fuel quantity, the vehicle's average fuel consumption is calculated. If the calculated average fuel consumption is not equal to the reference fuel consumption, a control filter is used to adjust the average fuel consumption, resulting in an adjusted average fuel consumption that is closer to the reference fuel consumption. If the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the vehicle's first driving range is calculated based on the first fuel quantity and the reference fuel consumption. By reducing the difference between the average fuel consumption and the reference fuel consumption through filtering, the driving range calculated based on the reference fuel consumption becomes more accurate, ensuring normal travel for the driver and normal use of the vehicle's functions.
Smart Images

Figure CN117782146B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control technology, and in particular to a method, apparatus, device, and storage medium for calculating driving range. Background Technology
[0002] Accurately calculating driving range is crucial for drivers' normal travel and the proper functioning of vehicles. For example, accurately calculating fuel range determines when the vehicle needs refueling, preventing delays or starting problems due to insufficient fuel. Therefore, accurately calculating fuel range is essential for ensuring drivers' normal travel and the proper functioning of vehicles. Summary of the Invention
[0003] This application provides a method, apparatus, device, and storage medium for calculating driving range, which can be used to solve the problem of how to accurately calculate driving range. The technical solution is as follows:
[0004] On one hand, embodiments of this application provide a method for calculating driving range, the method comprising:
[0005] Obtain the vehicle's initial fuel level;
[0006] Obtain the total mileage of the vehicle since it left the factory;
[0007] Based on the total mileage being greater than or equal to the reference mileage, the first fuel quantity of the vehicle is obtained;
[0008] The average fuel consumption of the vehicle is calculated based on a reference percentage by which the first fuel quantity is reduced from the initial fuel quantity.
[0009] Since the average fuel consumption is not equal to the reference fuel consumption, the control filter adjusts the average fuel consumption to obtain the adjusted average fuel consumption.
[0010] The first driving range of the vehicle is calculated based on the fact that the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold.
[0011] On the other hand, an apparatus for calculating driving range is provided, the apparatus comprising:
[0012] The first acquisition module is used to acquire the initial fuel quantity of the vehicle;
[0013] The second acquisition module is used to acquire the total mileage of the vehicle after it leaves the factory.
[0014] The third acquisition module is used to acquire the first fuel quantity of the vehicle based on the total driving mileage being greater than or equal to the reference mileage;
[0015] The first calculation module is used to calculate the average fuel consumption of the vehicle based on a reference percentage that the first fuel quantity is reduced by the initial fuel quantity compared to the initial fuel quantity.
[0016] The control module is used to adjust the average fuel consumption by controlling the filter based on the fact that the average fuel consumption is not equal to the reference fuel consumption, so as to obtain the adjusted average fuel consumption.
[0017] The second calculation module is used to calculate the first driving range of the vehicle based on the fact that the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold.
[0018] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the computer device to implement any of the above-described methods for calculating driving range.
[0019] On the other hand, a computer-readable storage medium is also provided, wherein at least one computer program is stored therein, the at least one computer program being loaded and executed by a processor to enable a computer to implement any of the methods described above for calculating driving range.
[0020] On the other hand, a computer program product or computer program is also provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform any of the methods described above for calculating driving range.
[0021] The technical solution provided in this application has at least the following beneficial effects:
[0022] This application obtains the vehicle's first fuel quantity when the total mileage is greater than or equal to a reference mileage. When the first fuel quantity is reduced by a reference percentage from the initial fuel quantity, the vehicle's average fuel consumption is calculated. If the calculated average fuel consumption is not equal to the reference fuel consumption, a control filter is used to adjust the average fuel consumption, resulting in an adjusted average fuel consumption that is closer to the reference fuel consumption. If the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the vehicle's first driving range is calculated based on the first fuel quantity and the reference fuel consumption. By reducing the difference between the average fuel consumption and the reference fuel consumption through filtering, the driving range calculated based on the reference fuel consumption becomes more accurate, ensuring normal travel for the driver and normal use of the vehicle's functions. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;
[0025] Figure 2 This is a flowchart of a method for calculating driving range provided in an embodiment of this application;
[0026] Figure 3 This is a schematic diagram illustrating the principle of calculating driving range provided in an embodiment of this application;
[0027] Figure 4 This is a schematic diagram of the structure of a device for calculating driving range provided in an embodiment of this application;
[0028] Figure 5 This is a schematic diagram of the structure of a server provided in an embodiment of this application;
[0029] Figure 6 This is a schematic diagram of the structure of a device for calculating driving range provided in an embodiment of this application. Detailed Implementation
[0030] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0031] This application provides a method for calculating driving range. Please refer to... Figure 1 The diagram illustrates the implementation environment of the method provided in this application embodiment. This implementation environment may include: a vehicle 11 and a vehicle control system 12.
[0032] Optionally, the vehicle control system 12 acquires the initial fuel quantity of the vehicle 11 and the total mileage driven by the vehicle 11 since it left the factory. If the total mileage acquired by the vehicle control system 12 is not less than a reference mileage, the vehicle control system 12 acquires the first fuel quantity of the vehicle 11. Whenever the first fuel quantity acquired by the vehicle control system 12 is less than the initial fuel quantity by a reference percentage, the vehicle control system 12 calculates the average fuel consumption of the vehicle 11. If the average fuel consumption is not equal to the reference fuel consumption, the vehicle control system 12 adjusts the average fuel consumption by filtering it using a filter installed on the vehicle 11 to obtain an adjusted average fuel consumption. If the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the vehicle 11's first driving range is calculated based on the first fuel quantity and the reference fuel consumption.
[0033] The vehicle control system 12 can store the average fuel consumption of the vehicle 11, which is used to determine whether the average fuel consumption needs to be adjusted through filtering. The vehicle 11 can obtain the average fuel consumption from the vehicle control system 12. Of course, the vehicle 11 can also store the average fuel consumption and display it.
[0034] Optionally, the vehicle 11 and the vehicle control system 12 establish a communication connection via a wired or wireless network.
[0035] Based on the above Figure 1 The implementation environment shown in this application provides a method for calculating driving range. For example... Figure 2 As shown, taking the application of this method to a vehicle control system as an example, the method includes steps 201-206.
[0036] In step 201, the initial fuel quantity of the vehicle is obtained.
[0037] In one possible implementation, this application embodiment does not limit the method of obtaining the vehicle's initial fuel quantity. For example, the vehicle control system can obtain the vehicle's initial fuel quantity from the instrument control system via a CAN (Controller Area Network) bus. The initial fuel quantity is the fuel quantity before this trip. Here, the instrument control system is located on the vehicle, and the unit for the initial fuel quantity obtained by the vehicle control system from the instrument control system is liters.
[0038] In step 202, the total mileage of the vehicle since it left the factory is obtained.
[0039] For example, the methods for obtaining the total mileage of a vehicle after it leaves the factory include, but are not limited to: the vehicle control system obtaining the total mileage of the vehicle after it leaves the factory from the instrument control system via the CAN bus, the unit of the obtained total mileage of the vehicle after it leaves the factory being kilometers, and the total mileage of the vehicle after it leaves the factory representing the total mileage traveled after the vehicle is manufactured and leaves the factory.
[0040] In step 203, the vehicle's current first fuel level is obtained based on the total mileage not being less than the reference mileage.
[0041] After the vehicle's total mileage reaches a reference mileage, the initial fuel level is then determined. This prevents the fuel level from having a minimal impact on subsequent range calculations when the mileage is low, thus ensuring the accuracy of the calculated range. After obtaining the vehicle's total mileage since its manufacture, the vehicle control system compares the total mileage with the reference mileage. In one possible implementation, the initial fuel level is determined based on whether the total mileage is greater than or equal to the reference mileage.
[0042] For example, the method of obtaining the vehicle's first fuel quantity includes, but is not limited to: the vehicle control system obtaining the vehicle's first fuel quantity from the instrument control system via a CAN bus. The unit of the first fuel quantity obtained by the vehicle control system from the instrument control system is liters.
[0043] This application does not limit the reference mileage. For example, the unit of reference mileage is kilometers. The reference mileage can be determined based on experience or adjusted according to the actual situation.
[0044] In step 204, the average fuel consumption of the vehicle is calculated based on a reference percentage reduction in the first fuel quantity compared to the initial fuel quantity.
[0045] Since changes in fuel quantity are small, they have little impact on the average fuel consumption value, making the calculation of average fuel consumption relatively wasteful of resources. Therefore, in the method provided in this application embodiment, the vehicle control system compares the first fuel quantity with the initial fuel quantity. For each reference percentage decrease in the first fuel quantity compared to the initial fuel quantity, the vehicle's average fuel consumption is calculated. This ensures that the average fuel consumption is only calculated when there is an actual change, avoiding wasted computational resources. The average fuel consumption obtained in this case also better reflects the vehicle's driving conditions, making the subsequently obtained driving range more meaningful. This application embodiment does not limit the reference percentage. For example, the reference percentage can be determined based on experience or adjusted according to actual conditions.
[0046] For example, calculating the average fuel consumption of a vehicle includes: obtaining the mileage traveled by the vehicle in this trip; calculating a first calculation result by subtracting a first fuel quantity from an initial fuel quantity; and dividing the first calculation result by the mileage traveled by the vehicle in this trip to obtain a second calculation result as the average fuel consumption of the vehicle.
[0047] In one possible implementation, obtaining the vehicle's current mileage includes: the vehicle control system obtaining the total mileage before the current trip and the current total mileage from the instrument control system in the same way as step 203; calculating a fifth calculation result by subtracting the total mileage before the current trip from the current total mileage; and using the fifth calculation result as the vehicle's current mileage.
[0048] In step 205, based on the fact that the average fuel consumption is not equal to the reference fuel consumption, the control filter is used to adjust the average fuel consumption to obtain the adjusted average fuel consumption.
[0049] The reference fuel consumption can be the combined fuel consumption measured according to fuel consumption and emission standards.
[0050] In one possible implementation, the average fuel consumption not equal to the reference fuel consumption includes either an average fuel consumption greater than the reference fuel consumption or an average fuel consumption less than the reference fuel consumption. For example, based on the average fuel consumption not being equal to the reference fuel consumption, the control filter adjusts the average fuel consumption, including: if the average fuel consumption is greater than the reference fuel consumption, the control filter decreases the average fuel consumption; if the average fuel consumption is less than the reference fuel consumption, the control filter increases the average fuel consumption. After the control filter increases or decreases the average fuel consumption, the adjusted average fuel consumption is obtained.
[0051] For example, the filtering device includes, but is not limited to, a filter installed on a vehicle. The amount by which average fuel consumption increases or decreases is determined based on the filter's filtering duration. This application does not limit the filter's filtering duration; for example, the correspondence between different average fuel consumption values and a reference fuel consumption, and the filter's filtering duration, can be determined experimentally.
[0052] In one possible implementation, after obtaining the adjusted average fuel consumption, the difference between the adjusted average fuel consumption and the reference fuel consumption is calculated. If the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the adjustment of the average fuel consumption is stopped. By using filtering to reduce the difference between the average fuel consumption and the reference fuel consumption, the driving range calculated based on the reference fuel consumption becomes more accurate.
[0053] In step 206, if the difference between the adjusted average fuel consumption and the reference fuel consumption is less than the reference threshold, the vehicle's first driving range is calculated based on the first fuel quantity and the reference fuel consumption.
[0054] In one possible implementation, the first driving range of the vehicle is calculated based on the fact that the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold. This includes: calculating the difference between the adjusted average fuel consumption and the reference fuel consumption; and using the result of dividing the first fuel consumption by the reference fuel consumption as the first driving range of the vehicle, based on the fact that the difference between the adjusted average fuel consumption and the reference fuel consumption is less than the reference threshold.
[0055] Since the difference between the adjusted average fuel consumption and the reference fuel consumption is less than the reference threshold, the accuracy of the driving range calculated using the reference fuel consumption is guaranteed.
[0056] For example, the vehicle control system divides the first fuel quantity by a reference fuel consumption to obtain a third calculation result, which is used as the vehicle's first driving range, wherein the unit of the vehicle's first driving range is kilometers. This application embodiment does not limit the reference threshold; for example, the reference threshold can be determined based on experience, or it can be adjusted according to actual conditions.
[0057] In one possible implementation, the vehicle's current second fuel level is obtained based on the total mileage being less than the reference mileage; the result of dividing the second fuel level by the reference fuel consumption is used as the vehicle's second driving range.
[0058] The vehicle control system obtains the vehicle's second fuel quantity from the instrument control system via the CAN bus. After obtaining the second fuel quantity, the vehicle's second driving range is determined based on the second fuel quantity and a reference fuel consumption. This includes: the vehicle control system dividing the second fuel quantity by the reference fuel consumption to obtain a fourth calculation result, which is then used as the vehicle's second driving range, where the unit of the vehicle's second driving range is kilometers.
[0059] Combining the above methods and processes, with Figure 3 The schematic diagram of a method for calculating driving range provided in this application embodiment is used as an example for illustration. First, it is determined whether the total driving mileage is greater than or equal to a reference mileage 301. If the total driving mileage is less than the reference mileage, the result of dividing the second fuel quantity by the reference fuel consumption is used as the vehicle's second driving range 303. If the total driving mileage is greater than or equal to the reference mileage, the first fuel quantity is reduced by a reference percentage 302, and it is determined whether the average fuel consumption is greater than the reference fuel consumption 304. If the average fuel consumption is greater than the reference fuel consumption, the control filter reduces the average fuel consumption 305; if the average fuel consumption is less than the reference fuel consumption, the control filter increases the average fuel consumption 306. The adjusted average fuel consumption 307 is obtained.
[0060] Determine whether the difference between the adjusted average fuel consumption and the reference fuel consumption is less than the reference threshold 308. If the difference between the adjusted average fuel consumption and the reference fuel consumption is less than the reference threshold, the first fuel quantity divided by the reference fuel consumption is used as the vehicle's first driving range 309. If the difference between the adjusted average fuel consumption and the reference fuel consumption is greater than or equal to the reference threshold, determine whether the average fuel consumption is greater than the reference fuel consumption 304.
[0061] In this embodiment, when the total mileage is greater than or equal to a reference mileage, the vehicle's first fuel quantity is obtained. When the first fuel quantity is less than a reference percentage of the initial fuel quantity, the vehicle's average fuel consumption is calculated. If the calculated average fuel consumption is not equal to the reference fuel consumption, a control filter is used to adjust the average fuel consumption, resulting in an adjusted average fuel consumption that is closer to the reference fuel consumption. When the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the vehicle's first driving range is calculated. This makes the driving range calculation more accurate, ensuring normal travel for the driver and normal use of the vehicle's functions.
[0062] See Figure 4 This application provides an apparatus for calculating driving range, the apparatus comprising:
[0063] The first acquisition module 401 is used to acquire the initial fuel quantity of the vehicle;
[0064] The second acquisition module 402 is used to acquire the total mileage of the vehicle after it leaves the factory.
[0065] The third acquisition module 403 is used to acquire the vehicle's current first fuel quantity based on the total driving mileage not being less than the reference mileage.
[0066] The first calculation module 404 is used to calculate the average fuel consumption of the vehicle based on a reference percentage that the first fuel quantity is reduced by the initial fuel quantity compared to the initial fuel quantity.
[0067] Control module 405 is used to adjust the average fuel consumption by controlling the filter based on the fact that the average fuel consumption is not equal to the reference fuel consumption, so as to obtain the adjusted average fuel consumption.
[0068] The second calculation module 406 is used to calculate the first driving range of the vehicle based on the first fuel quantity and the reference fuel consumption when the difference between the adjusted average fuel consumption and the reference fuel consumption is less than the reference threshold.
[0069] In one possible implementation, the second acquisition module 402 is further configured to acquire the vehicle's current second fuel quantity based on the total driving mileage being less than the reference mileage; and to use the calculation result of dividing the second fuel quantity by the reference fuel consumption as the vehicle's second driving range.
[0070] In one possible implementation, the first calculation module 404 is used to obtain the vehicle's current mileage; calculate a first calculation result by subtracting the first fuel quantity from the initial fuel quantity; and divide the first calculation result by the vehicle's current mileage to obtain a second calculation result as the vehicle's average fuel consumption.
[0071] In one possible implementation, the control module 405 is used to control the filter to reduce the average fuel consumption based on the average fuel consumption being greater than the reference fuel consumption, and to control the filter to increase the average fuel consumption based on the average fuel consumption being less than the reference fuel consumption.
[0072] In one possible implementation, the second calculation module 406 is used to calculate the difference between the adjusted average fuel consumption and the reference fuel consumption; based on the fact that the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the calculation result of dividing the first fuel quantity by the reference fuel consumption is used as the first driving range of the vehicle.
[0073] This device acquires the vehicle's initial fuel level when the total mileage is greater than or equal to a reference mileage. When the initial fuel level is reduced by a reference percentage from the initial fuel level, the device calculates the vehicle's average fuel consumption. If the calculated average fuel consumption is not equal to the reference fuel consumption, a control filter adjusts the average fuel consumption to obtain an adjusted average fuel consumption, making the vehicle's average fuel consumption closer to the reference fuel consumption. If the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the device calculates the vehicle's initial driving range. This makes the driving range calculation more accurate, ensuring normal travel for the driver and normal use of the vehicle's functions.
[0074] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above 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. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0075] Figure 5 This is a schematic diagram of a server structure provided in an embodiment of this application. The server can vary significantly due to differences in configuration or performance. It may include one or more processors 901 and one or more memories 902. The one or more memories 902 store at least one computer program, which is loaded and executed by the one or more processors 901 to enable the server to implement the methods for calculating driving range provided in the various method embodiments described above. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be elaborated upon here.
[0076] Figure 6 This is a schematic diagram of a device structure for calculating driving range according to an embodiment of this application. The device can be a terminal, such as an in-vehicle system, smartphone, tablet computer, media player, laptop computer, or desktop computer. The terminal may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.
[0077] Typically, a terminal includes a processor 1501 and a memory 1502.
[0078] Processor 1501 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1501 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1501 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0079] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1502 is used to store at least one instruction, which is executed by the processor 1501 to cause the terminal to implement the method for calculating driving range provided in the method embodiments of this application.
[0080] In some embodiments, the terminal may also optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1503 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, and a power supply 1508.
[0081] Peripheral interface 1503 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1501 and memory 1502. In some embodiments, processor 1501, memory 1502 and peripheral interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1501, memory 1502 and peripheral interface 1503 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0082] The radio frequency (RF) circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1504 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1504 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1504 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0083] Display screen 1505 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1505 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1501 for processing. In this case, display screen 1505 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, display screen 1505 can be a single screen, located on the front panel of the terminal; in other embodiments, display screen 1505 can be at least two screens, respectively located on different surfaces of the terminal or in a folded design; in other embodiments, display screen 1505 can be a flexible display screen, located on a curved or folded surface of the terminal. Furthermore, display screen 1505 can be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0084] The camera assembly 1506 is used to acquire images or videos. Optionally, the camera assembly 1506 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0085] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1501 for processing, or input to the radio frequency circuit 1504 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1507 may also include a headphone jack.
[0086] Power supply 1508 is used to power the various components in the terminal. Power supply 1508 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1508 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0087] In some embodiments, the terminal further includes one or more sensors 1509. The one or more sensors 1509 include, but are not limited to: an acceleration sensor 1510, a gyroscope sensor 1511, a pressure sensor 1512, an optical sensor 1513, and a proximity sensor 1514.
[0088] Accelerometer 1510 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by the terminal. For example, accelerometer 1510 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1501 can control display screen 1505 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1510. Accelerometer 1510 can also be used for games or for acquiring user motion data.
[0089] The gyroscope sensor 1511 can detect the terminal's orientation and rotation angle. The gyroscope sensor 1511 can work in conjunction with the accelerometer sensor 1510 to collect the user's 3D movements on the terminal. Based on the data collected by the gyroscope sensor 1511, the processor 1501 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0090] The pressure sensor 1512 can be disposed on the side bezel of the terminal and / or the lower layer of the display screen 1505. When the pressure sensor 1512 is disposed on the side bezel of the terminal, it can detect the user's grip signal on the terminal, and the processor 1501 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1512. When the pressure sensor 1512 is disposed on the lower layer of the display screen 1505, the processor 1501 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1505. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0091] Optical sensor 1513 is used to collect ambient light intensity. In one embodiment, processor 1501 can control the display brightness of display screen 1505 based on the ambient light intensity collected by optical sensor 1513. Specifically, when the ambient light intensity is high, the display brightness of display screen 1505 is increased; when the ambient light intensity is low, the display brightness of display screen 1505 is decreased. In another embodiment, processor 1501 can also dynamically adjust the shooting parameters of camera assembly 1506 based on the ambient light intensity collected by optical sensor 1513.
[0092] The proximity sensor 1514, also known as a distance sensor, is typically installed on the front panel of the terminal. The proximity sensor 1514 is used to detect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 1514 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 1501 controls the display screen 1505 to switch from a screen-on state to a screen-off state; when the proximity sensor 1514 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 1501 controls the display screen 1505 to switch from a screen-off state to a screen-on state.
[0093] Those skilled in the art will understand that Figure 6 The structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0094] In an exemplary embodiment, a computer device is also provided, comprising a processor and a memory storing at least one computer program. The at least one computer program is loaded and executed by one or more processors to enable the computer device to implement any of the methods described above for calculating driving range.
[0095] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one computer program that is loaded and executed by a processor of a computer device to enable the computer to implement any of the methods described above for calculating driving range.
[0096] In one possible implementation, the aforementioned computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0097] In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform any of the methods described above for calculating driving range.
[0098] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the initial fuel quantity, first fuel quantity, second fuel quantity, total mileage after the vehicle leaves the factory, and current mileage of the vehicle involved in this application were all obtained with full authorization.
[0099] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0100] It should be noted that the terms "first," "second," etc. (if applicable) in the specification and claims of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0101] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for calculating driving range, characterized in that, The method includes: Obtain the vehicle's initial fuel level; Obtain the total mileage of the vehicle since it left the factory; Based on the total mileage being not less than the reference mileage, the current first fuel level of the vehicle is obtained; The average fuel consumption of the vehicle is calculated based on a reference percentage reduction in the first fuel quantity compared to the initial fuel quantity, including: obtaining the mileage traveled by the vehicle in this trip; calculating a first calculation result by subtracting the first fuel quantity from the initial fuel quantity; and dividing the first calculation result by the mileage traveled by the vehicle in this trip to obtain a second calculation result as the average fuel consumption of the vehicle. Based on the fact that the average fuel consumption is greater than the reference fuel consumption, the control filter is used to reduce the average fuel consumption; based on the fact that the average fuel consumption is less than the reference fuel consumption, the control filter is used to increase the average fuel consumption, thus obtaining the adjusted average fuel consumption. If the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the first driving range of the vehicle is calculated based on the first fuel quantity and the reference fuel consumption.
2. The method according to claim 1, characterized in that, After obtaining the total mileage of the vehicle since it left the factory, the method further includes: Based on the fact that the total mileage is less than the reference mileage, the current second fuel level of the vehicle is obtained; The second fuel quantity is divided by the calculated result of the reference fuel consumption to obtain the second driving range of the vehicle.
3. The method according to claim 1, characterized in that, When the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, calculating the vehicle's first driving range based on the first fuel quantity and the reference fuel consumption includes: Calculate the difference between the adjusted average fuel consumption and the reference fuel consumption; Based on the fact that the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold, the first fuel quantity divided by the reference fuel consumption is used as the first driving range of the vehicle.
4. A device for calculating driving range, characterized in that, The device includes: The first acquisition module is used to acquire the initial fuel quantity of the vehicle; The second acquisition module is used to acquire the total mileage of the vehicle after it leaves the factory. The third acquisition module is used to acquire the current first fuel quantity of the vehicle based on the total driving mileage being not less than the reference mileage; The first calculation module is used to calculate the average fuel consumption of the vehicle based on a reference percentage reduction in the first fuel quantity compared to the initial fuel quantity, including: obtaining the mileage traveled by the vehicle in this trip; calculating a first calculation result by subtracting the first fuel quantity from the initial fuel quantity; and using a second calculation result obtained by dividing the first calculation result by the mileage traveled by the vehicle in this trip as the average fuel consumption of the vehicle. The control module is used to control the filter to reduce the average fuel consumption when the average fuel consumption is greater than the reference fuel consumption; and to control the filter to increase the average fuel consumption when the average fuel consumption is less than the reference fuel consumption, so as to obtain the adjusted average fuel consumption. The second calculation module is used to calculate the first driving range of the vehicle based on the first fuel quantity and the reference fuel consumption when the difference between the adjusted average fuel consumption and the reference fuel consumption is less than a reference threshold.
5. The apparatus according to claim 4, characterized in that, The second acquisition module is further configured to acquire the current second fuel quantity of the vehicle based on the total driving mileage being less than the reference mileage; and to use the calculation result of dividing the second fuel quantity by the reference fuel consumption as the second driving range of the vehicle.
6. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the computer device to implement the method for calculating driving range as described in any one of claims 1 to 3.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to enable the computer to implement the method for calculating driving range as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Cruising mileage computation control system and method thereof
CN101464174A
Vehicle average fuel consumption determination method and device, equipment, storage medium and vehicle
CN114689136A