CN113741808A - Small-scale mileage storage method and device, readable storage medium and vehicle - Google Patents

Small-scale mileage storage method and device, readable storage medium and vehicle Download PDF

Info

Publication number
CN113741808A
CN113741808A CN202110872261.2A CN202110872261A CN113741808A CN 113741808 A CN113741808 A CN 113741808A CN 202110872261 A CN202110872261 A CN 202110872261A CN 113741808 A CN113741808 A CN 113741808A
Authority
CN
China
Prior art keywords
mileage
storage
value
vehicle
storing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110872261.2A
Other languages
Chinese (zh)
Inventor
李维全
余军
郭辉
陈晖�
黄少堂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangling Motors Corp Ltd
Original Assignee
Jiangling Motors Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangling Motors Corp Ltd filed Critical Jiangling Motors Corp Ltd
Priority to CN202110872261.2A priority Critical patent/CN113741808A/en
Publication of CN113741808A publication Critical patent/CN113741808A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors

Abstract

The invention discloses a method and a device for storing subtotal mileage, a readable storage medium and a vehicle, wherein the method is applied to a meter micro control unit of the vehicle, a plurality of storage bits are arranged in the meter micro control unit, and the method comprises the following steps: acquiring the mileage updating amount of the vehicle; judging whether the mileage updating amount meets a preset mileage updating amount threshold value or not; when the mileage updating amount is judged to meet the preset mileage updating amount threshold value, acquiring mileage information of the vehicle, wherein the mileage information at least comprises a mileage numerical value; storing the mileage value to one of the plurality of storage bits. The invention solves the problem that the user experience is poor due to the fact that the vehicle is easy to lose the stored hours of the hourly mileage in the prior art.

Description

Small-scale mileage storage method and device, readable storage medium and vehicle
Technical Field
The invention relates to the technical field of data processing, in particular to a subtotal mileage storage method, a device, a readable storage medium and a vehicle.
Background
With the continuous development of society, automobiles enter thousands of households, the automobile instrument is used as an important component of the automobiles, and is mainly used for displaying state parameters of the automobiles, such as the speed, the rotating speed of an engine, the mileage of the automobiles and the like, and the mileage of the automobiles is used as an important state parameter of the automobiles, so that users and maintenance personnel can conveniently know the states of the automobiles.
The subtotal mileage, which is one of automobile mileage, can be mainly used for actively measuring the specific driving mileage of a vehicle in a certain time period or a certain road section, and the subtotal mileage is more and more popular among vehicles due to the unique advantage.
In the prior art, the mileage of an automobile is mainly stored by a data block, however, the data is easily lost in a collective storage mode due to unpredictable signal interference or self breakdown of electronic components in the automobile, and the user experience is affected.
Disclosure of Invention
In view of the above, the present invention provides an hourly mileage storage method, an apparatus, a readable storage medium and a vehicle, and aims to solve the problem in the prior art that when a vehicle stores hourly mileage, the hours are easy to be collectively lost, which results in poor user experience.
The embodiment of the invention is realized as follows: a method for storing subtotal mileage, which is applied to a meter micro control unit of a vehicle, wherein a plurality of storage bits are arranged in the meter micro control unit, and the method comprises the following steps:
acquiring the mileage updating amount of the vehicle;
judging whether the mileage updating amount meets a preset mileage updating amount threshold value or not;
when the mileage updating amount is judged to meet the preset mileage updating amount threshold value, acquiring mileage information of the vehicle, wherein the mileage information at least comprises a mileage numerical value;
storing the mileage value to one of the plurality of storage bits.
Further, in the subtotal mileage storage method, the step of storing the mileage value in one of the plurality of storage bits specifically includes;
judging whether the plurality of storage bits contain idle storage bits or not;
if yes, storing the mileage numerical value into the idle storage bit;
if not, determining a target storage position with the minimum storage numerical value in the plurality of storage positions, and erasing the storage numerical value in the target storage position; and then storing the mileage value into the target storage position.
Further, the subtotal mileage storage method includes:
when an mileage value clearing request is received, clearing all the stored mileage values in the plurality of storage positions.
Further, the subtotal mileage storage method may further include, after the step of storing the mileage value in one of the plurality of storage bits:
when the vehicle is detected to enter a power-off state, acquiring a current mileage numerical value of the vehicle;
storing the current odometry value to one of the plurality of storage bits.
Further, the subtotal mileage storage method may further include, after the step of storing the current mileage value in one of the plurality of storage bits:
and when the vehicle is detected to be in a power-on state from the power-off state, reading a target mileage numerical value with the maximum stored numerical value from the plurality of storage bits, and displaying the target mileage numerical value through a meter.
Further, in the method for storing the subtotal mileage, a spare storage bit is further provided in the meter micro control unit, and after the step of storing the current mileage value in one of the plurality of storage bits, the method further includes:
storing the current mileage value in the standby storage bit;
and when the vehicle is detected to be in a power-on state from the power-off state, reading the current mileage in the standby storage bit, and displaying the current mileage through the instrument.
Another object of an embodiment of the present invention is to provide a device for storing a subtotal mileage, which is applied to a meter micro control unit of a vehicle, wherein a plurality of storage bits are arranged in the meter micro control unit, and the device includes:
the mileage updating amount obtaining module is used for obtaining the mileage increment updating amount of the vehicle;
the judging module is used for judging whether the mileage updating amount meets a preset mileage updating amount threshold value or not;
the mileage information acquisition module is used for acquiring mileage information of the vehicle when judging that the mileage updating amount meets the preset mileage updating amount threshold, wherein the mileage information at least comprises a mileage numerical value;
a storage module to store the mileage value to one of the plurality of storage bits.
Further, in the above-mentioned subtotal mileage storage apparatus, the storage module is specifically configured to:
judging whether the plurality of storage bits contain idle storage bits or not;
if yes, storing the mileage numerical value into the idle storage bit;
if not, determining a target storage position with the minimum storage numerical value in the plurality of storage positions, and erasing the storage numerical value in the target storage position; and then storing the mileage value into the target storage position.
It is a further object of embodiments of the invention to provide a readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of the method as described above.
It is a further object of embodiments of the invention to provide a vehicle comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the program.
According to the embodiment of the invention, the storage bits are arranged, and the storage of the mileage is carried out by utilizing the storage bits when the mileage is required to be stored, so that the condition that the mileage is collectively lost due to the loss of data on one of the storage bits is avoided, the user experience is improved, the storage bits can avoid too many times of writing when a single storage bit is stored, and the storage life is further prolonged.
Drawings
FIG. 1 is a flowchart of a subtotal mileage storing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a subtotal mileage storing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a subtotal mileage storing method according to a third embodiment of the present invention;
FIG. 4 is a block diagram showing the structure of a subtotal mileage storing apparatus according to a fourth embodiment of the present invention;
the following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed types.
With the continuous development of society, automobiles enter thousands of households, the automobile instrument is used as an important component of the automobiles, and is mainly used for displaying state parameters of the automobiles, such as the speed, the rotating speed of an engine, the mileage of the automobiles and the like, and the mileage of the automobiles is used as an important state parameter of the automobiles, so that users and maintenance personnel can conveniently know the states of the automobiles.
The subtotal mileage, which is one of automobile mileage, can be mainly used for actively measuring the specific driving mileage of a vehicle in a certain time period or a certain road section, and the subtotal mileage is more and more popular among vehicles due to the unique advantage.
In the prior art, the mileage of an automobile is mainly stored by a data block, however, the data is easily lost in a collective storage mode due to unpredictable signal interference or self breakdown of electronic components in the automobile, and the user experience is affected.
Therefore, the invention aims to provide an hourly mileage storage method, an apparatus, a readable storage medium and a vehicle, and aims to solve the problem that in the prior art, when the vehicle stores the hourly mileage, the hours are easy to be lost collectively, so that the user experience is poor.
The following will describe in detail how to implement the problem of avoiding the collective loss of data when the vehicle stores the mileage in hours, so as to improve the user experience, with reference to the specific embodiments and the accompanying drawings.
Example one
Referring to fig. 1, a method for storing a small mileage in a first embodiment of the present invention is applied to a meter micro-control unit of a vehicle, wherein the meter micro-control unit is provided with a plurality of storage locations, and the method includes steps S10 to S13.
And step S10, acquiring the mileage update amount of the vehicle.
The mileage update amount can be understood as an increase amount of the current vehicle mileage with respect to a certain reference mileage, and assuming that the mileage displayed after the vehicle is powered on is taken as the reference mileage, the displayed numerical value is 16km at that time, and the current mileage after the vehicle runs for a period of time is 17km, the mileage update amount is 1km, that is, the mileage update amount of the vehicle is a difference value between the current vehicle mileage and the set reference mileage.
Step S11, judging whether the mileage updating amount meets a preset mileage updating amount threshold value; if yes, go to step S12.
The reference mileage is dynamically changed during the running process of the vehicle, when the mileage update amount does not meet the preset mileage update amount threshold, the reference mileage is maintained before the reference mileage is unchanged, but when the mileage update amount meets the preset mileage update amount threshold, the reference mileage for calculating the mileage update amount next time is changed correspondingly, for example, the mileage displayed after the vehicle is powered on is taken as an initial reference mileage, the displayed numerical value is 16km at that time, if the mileage update amount does not meet the preset mileage update amount threshold, the reference mileage is still 16km, if the mileage update amount is 1km, the preset mileage update amount threshold is also 1km, namely, the mileage update amount meets the preset mileage update amount threshold, and the reference mileage is 17km thereafter.
It should be noted that, in this embodiment, the preset mileage update amount threshold is set to 1km, which is not a limitation to the preset mileage update amount threshold, and is only for clarity of description, in some alternative embodiments of the present invention, the preset mileage update amount threshold may also be set to 0.2km, 0.5km, 0.8km, and the like.
And step S12, acquiring mileage information of the vehicle, wherein the mileage information at least comprises a mileage value.
In order to make the user know the mileage of the automobile, a specific mileage value of the automobile needs to be acquired.
Step S13, storing the mileage value in one of the plurality of storage bits.
The mileage is stored in one of the storage bits, and in specific implementation, the mileage can be stored in the storage bits in a circulating storage manner, for example, in the embodiment, 5 storage bits are set, that is, 5 different sets of mileage values can be stored, and when a 6 th set of mileage values needs to be stored, the 6 th set of mileage values needs to be stored in the storage bits after one of the 5 sets of mileage values needs to be erased, so that the storage bits can be recycled.
It should be noted that, in this embodiment, the arrangement of 5 storage bits is not specifically limited to the number of storage bits, but for the sake of clarity, in some alternative embodiments of the present invention, the arrangement of storage bits may also be 6, 7, 8, and the like.
In summary, in the method for storing the subtotal mileage in the embodiment of the invention, by setting the plurality of storage bits and using the plurality of storage bits to store the mileage when the mileage is required to be stored, the situation that the mileage is collectively lost due to the loss of data in one of the storage bits is avoided, the user experience is improved, and the storage life is further prolonged because the plurality of storage bits can avoid the excessive number of times of flushing when a single storage bit is stored.
Example two
Referring to fig. 2, a method for storing a subtotal mileage according to a second embodiment of the present invention is applied to a meter micro-control unit of a vehicle, wherein the meter micro-control unit is provided with a plurality of storage bits, and the method includes steps S20 to S26.
And step S20, acquiring the mileage update amount of the vehicle.
Step S21, judging whether the mileage updating amount meets a preset mileage updating amount threshold value; if yes, go to step S22.
And step S22, acquiring mileage information of the vehicle, wherein the mileage information at least comprises a mileage value.
Step S23, judging whether the storage bits contain idle storage bits; if so, go to step S24, otherwise, go to step S25.
Wherein, can contain idle storage bit and the occupation storage bit that has stored mileage numerical value in a plurality of storage bits for storing mileage numerical value, can directly store mileage numerical value to idle storage bit in the middle of when a plurality of storage bits contain idle storage bit, and when storage bit in a plurality of storage bits all was occupied by mileage numerical value's data, need earlier erase the storage bit that stores numerical value, later with mileage storage to in the storage bit after erasing.
And step S24, storing the mileage value into the idle storage bit.
Step S25, determining a target storage position with the minimum storage value in the storage positions, and erasing the storage value in the target storage position; and then storing the mileage value into the target storage position.
When a plurality of storage positions are occupied, and the mileage value needs to be stored, the storage position in which the mileage value is stored needs to be erased firstly, then the mileage value is stored to the storage position after erasing, and particularly, the storage position in which the storage value is the minimum in the storage positions is preferentially erased so as to ensure that the storage value in the storage position is not greatly different from the actual mileage value of the vehicle all the time.
Step S26, when an mileage value clearing request is received, clearing the mileage values stored in the plurality of storage locations.
Specifically, when a user needs to measure the mileage of the current automobile or the mileage of the instrument reaches a maximum display threshold (generally, the maximum display threshold of the mileage is 999.9km), the mileage value needs to be cleared, because the mileage value is stored in a plurality of storage bits, and when the automobile is powered on to display the mileage value, the mileage value with the maximum value is always stored in the plurality of storage bits to be displayed, for example, three mileage values 990, 991 and 992 are currently stored, at this time, the instrument displays 992 when the automobile is powered on, and the user needs to measure the mileage of the current automobile, so the mileage value needs to be cleared, if the mileage value 992 is simply cleared, the maximum value 991 of the remaining mileage values is displayed when the automobile is powered on, so that a display error is caused, and in order to avoid that the mileage value of the part of the mileage value is cleared and a display error is caused, therefore, when the mileage value needs to be cleared, all of the stored mileage values in the plurality of storage locations are cleared.
In summary, in the method for storing the subtotal mileage in the above embodiment of the present invention, by setting the plurality of storage locations and using the plurality of storage locations to store the mileage when the mileage is required to be stored, the situation that the mileage is collectively lost due to data loss in one of the storage locations is avoided, user experience is improved, the storage locations can avoid that the number of times of flushing is too many when a single storage location is stored, the storage life is further prolonged, and when a request for resetting the mileage value is received, all the stored mileage values in the plurality of storage locations are cleared, and a display error after the mileage value is cleared is avoided.
EXAMPLE III
Referring to fig. 3, a method for storing a subtotal mileage according to a third embodiment of the present invention is applied to a meter micro-control unit of a vehicle, wherein the meter micro-control unit is provided with a plurality of storage bits, and the method includes steps S30 to S36.
And step S30, acquiring the mileage update amount of the vehicle.
Step S31, judging whether the mileage updating amount meets a preset mileage updating amount threshold value; if yes, go to step S32.
And step S32, acquiring mileage information of the vehicle, wherein the mileage information at least comprises a mileage value.
Step S33, storing the mileage value in one of the plurality of storage bits.
And step S34, when the vehicle is detected to enter the power-off state, acquiring the current mileage value of the vehicle.
When the vehicle is powered off, the current mileage updating amount does not meet the preset mileage increment threshold, and the mileage value is not stored in time, so that the value stored in the storage bit is not consistent with the actual mileage of the vehicle when the vehicle is powered off actually.
Step S35, storing the current mileage value in one of the plurality of storage bits.
Specifically, the acquired current mileage value is stored in the storage location, so that the current mileage value is read and displayed on the meter when the vehicle is powered on next time.
And step S36, when the vehicle is detected to be in the power-on state from the power-off state, reading a target mileage value with the maximum stored value from the plurality of storage bits, and displaying the target mileage value through a meter.
It can be understood that the current mileage value stored when the vehicle is powered off is the largest stored value among the stored values, and in order to display the current mileage value stored when the vehicle is powered off last time, the target mileage value with the largest stored value can be directly read from the stored values and displayed through the meter.
Furthermore, in practice, the storage bits are prone to have the situation that the stored numerical values are prone to be lost, particularly, data erasing and storage need to be performed on each storage bit for multiple times in the driving process of the vehicle, the stored numerical values are prone to be lost when the vehicle is powered off, and therefore the current mileage numerical values of the vehicle can be obtained.
In view of this, among some alternative embodiments of the invention:
the instrument micro-control unit is also internally provided with a standby storage bit, and when the vehicle is detected to enter a power-off state, the current mileage value of the vehicle is acquired;
storing the current mileage value in the standby storage bit;
and when the vehicle is detected to be in a power-on state from the power-off state, reading the current mileage value in the standby storage bit, and displaying the current mileage value through the instrument.
It can be understood that the standby storage position does not participate in the storage of the mileage value in the running process of the vehicle, the mileage value is stored only when the vehicle is powered off, and the loss of the mileage value is rarely caused.
Further, in some alternative embodiments of the present invention, the step of reading the current mileage value in the backup memory location and displaying the current mileage value through the meter is further followed by the step of restoring the current mileage value to the plurality of memory locations when it is detected that the vehicle enters a power-up state from the power-down state. The displayed current mileage numerical value is stored in the plurality of storage positions again, so that the storage positions are guaranteed to be correctly stored in the vehicle power-on driving process.
In summary, in the method for storing the subtotal mileage in the above embodiment of the present invention, by setting the plurality of storage bits and using the plurality of storage bits to store the mileage when the mileage is required to be stored, the situation that the mileage is collectively lost due to data loss on one of the storage bits is avoided, the user experience is improved, the plurality of storage bits can avoid that the number of times of writing is too large when a single storage bit is stored, the storage life is further prolonged, and the accuracy of display when the vehicle is powered on next time and the accuracy of storage of the subsequent mileage value are ensured in the standby storage bit which is not easily lost when the vehicle is powered off.
Example four
Referring to fig. 4, a device for storing a small mileage according to a fourth embodiment of the present invention is applied to a meter micro control unit of a vehicle, the meter micro control unit having a plurality of storage bits therein, the device including:
a mileage update amount acquisition module 100 configured to acquire a mileage increment update amount of the vehicle;
the judging module 200 is configured to judge whether the mileage update amount meets a preset mileage update amount threshold;
a mileage information obtaining module 300, configured to obtain mileage information of the vehicle when it is determined that the mileage update amount meets the preset mileage update amount threshold, where the mileage information at least includes a mileage numerical value;
a storage module 400 configured to store the mileage value in one of the plurality of storage bits.
Further, in some optional embodiments of the present invention, the storage module is specifically configured to:
judging whether the plurality of storage bits contain idle storage bits or not;
if yes, storing the mileage numerical value into the idle storage bit;
if not, determining a target storage position with the minimum storage numerical value in the plurality of storage positions, and erasing the storage numerical value in the target storage position; and then storing the mileage value into the target storage position.
Further, in some alternative embodiments of the present invention, the apparatus further comprises:
and the clearing module is used for clearing all the stored mileage values in the plurality of storage positions when an mileage value clearing request is received.
Further, in some alternative embodiments of the present invention, the apparatus further comprises:
the current mileage value acquisition module is used for acquiring the current mileage value of the vehicle when the vehicle is detected to enter a power-off state;
a current mileage value storage module for storing the current mileage value to one of the plurality of storage bits.
Further, in some alternative embodiments of the present invention, the apparatus further comprises:
and the first display module is used for reading a target mileage numerical value with the maximum stored numerical value from the plurality of storage bits and displaying the target mileage numerical value through a meter when the vehicle is detected to enter a power-on state from the power-off state.
Further, in some alternative embodiments of the present invention, a spare memory location is further provided in the meter micro-control unit, and the apparatus further includes:
the standby storage module is used for storing the current mileage value into the standby storage bit;
and the second display module is used for reading the current mileage in the standby storage bits and displaying the current mileage through the instrument when the vehicle is detected to be in the power-on state from the power-off state.
The functions or operation steps of the above modules when executed are substantially the same as those of the above method embodiments, and are not described herein again.
EXAMPLE five
Another aspect of the present invention also provides a readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the steps of the method according to any one of embodiments 1 to 3 above.
EXAMPLE six
In another aspect, the present invention further provides a vehicle comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method according to any one of embodiments 1 to 3.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for storing subtotal mileage, which is applied to a meter micro control unit of a vehicle, wherein a plurality of storage bits are arranged in the meter micro control unit, the method comprises the following steps:
acquiring the mileage updating amount of the vehicle;
judging whether the mileage updating amount meets a preset mileage updating amount threshold value or not;
when the mileage updating amount is judged to meet the preset mileage updating amount threshold value, acquiring mileage information of the vehicle, wherein the mileage information at least comprises a mileage numerical value;
storing the mileage value to one of the plurality of storage bits.
2. The subtotal mileage storage method according to claim 1, wherein the step of storing the mileage value to one of the plurality of storage bits specifically includes;
judging whether the plurality of storage bits contain idle storage bits or not;
if yes, storing the mileage numerical value into the idle storage bit;
if not, determining a target storage position with the minimum storage numerical value in the plurality of storage positions, and erasing the storage numerical value in the target storage position; and then storing the mileage value into the target storage position.
3. The subtotal mileage storage method according to claim 1, characterized in that the method further comprises:
when an mileage value clearing request is received, clearing all the stored mileage values in the plurality of storage positions.
4. The subtotal mileage storage method according to claim 1, wherein the step of storing the mileage value to one of the plurality of storage bits further comprises, after the step of storing the mileage value to one of the plurality of storage bits:
when the vehicle is detected to enter a power-off state, acquiring a current mileage numerical value of the vehicle;
storing the current odometry value to one of the plurality of storage bits.
5. The subtotal mileage storage method according to claim 4, wherein the step of storing the current mileage value to one of the plurality of storage bits further includes, after the step of storing the current mileage value to one of the plurality of storage bits:
and when the vehicle is detected to be in a power-on state from the power-off state, reading a target mileage numerical value with the maximum stored numerical value from the plurality of storage bits, and displaying the target mileage numerical value through a meter.
6. The subtotal mileage storage method according to claim 3, wherein a spare storage bit is further provided in the meter micro control unit, and the step of storing the current mileage value in one of the plurality of storage bits further comprises:
storing the current mileage value in the standby storage bit;
and when the vehicle is detected to be in a power-on state from the power-off state, reading the current mileage in the standby storage bit, and displaying the current mileage through the instrument.
7. A subtotal mileage storage device, characterized in that, in the middle of being applied to the instrument micro control unit of vehicle, be equipped with a plurality of storage bits in the instrument micro control unit, the device includes:
the mileage updating amount obtaining module is used for obtaining the mileage increment updating amount of the vehicle;
the judging module is used for judging whether the mileage updating amount meets a preset mileage updating amount threshold value or not;
the mileage information acquisition module is used for acquiring mileage information of the vehicle when judging that the mileage updating amount meets the preset mileage updating amount threshold, wherein the mileage information at least comprises a mileage numerical value;
a storage module to store the mileage value to one of the plurality of storage bits.
8. The subtotal mileage storage device of claim 7, wherein the storage module is specifically configured to:
judging whether the plurality of storage bits contain idle storage bits or not;
if yes, storing the mileage numerical value into the idle storage bit;
if not, determining a target storage position with the minimum storage numerical value in the plurality of storage positions, and erasing the storage numerical value in the target storage position; and then storing the mileage value into the target storage position.
9. A readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 6.
10. A vehicle comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps of the method according to any one of claims 1 to 6.
CN202110872261.2A 2021-07-30 2021-07-30 Small-scale mileage storage method and device, readable storage medium and vehicle Pending CN113741808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110872261.2A CN113741808A (en) 2021-07-30 2021-07-30 Small-scale mileage storage method and device, readable storage medium and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110872261.2A CN113741808A (en) 2021-07-30 2021-07-30 Small-scale mileage storage method and device, readable storage medium and vehicle

Publications (1)

Publication Number Publication Date
CN113741808A true CN113741808A (en) 2021-12-03

Family

ID=78729557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110872261.2A Pending CN113741808A (en) 2021-07-30 2021-07-30 Small-scale mileage storage method and device, readable storage medium and vehicle

Country Status (1)

Country Link
CN (1) CN113741808A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114407651A (en) * 2022-01-18 2022-04-29 上汽通用五菱汽车股份有限公司 Vehicle mileage storage method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN86101161A (en) * 1985-03-01 1986-10-01 维德工业公司 Electronic hub odometer
CN110733443A (en) * 2019-10-14 2020-01-31 广州维思车用部件有限公司 Vehicle-based instrument data processing method and device
CN110912964A (en) * 2019-10-23 2020-03-24 中国第一汽车股份有限公司 Vehicle mileage backup system, method, device, electronic equipment and medium
CN112100184A (en) * 2020-10-26 2020-12-18 上海擎感智能科技有限公司 Vehicle total mileage data storage method and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN86101161A (en) * 1985-03-01 1986-10-01 维德工业公司 Electronic hub odometer
CN110733443A (en) * 2019-10-14 2020-01-31 广州维思车用部件有限公司 Vehicle-based instrument data processing method and device
CN110912964A (en) * 2019-10-23 2020-03-24 中国第一汽车股份有限公司 Vehicle mileage backup system, method, device, electronic equipment and medium
CN112100184A (en) * 2020-10-26 2020-12-18 上海擎感智能科技有限公司 Vehicle total mileage data storage method and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114407651A (en) * 2022-01-18 2022-04-29 上汽通用五菱汽车股份有限公司 Vehicle mileage storage method and device, electronic equipment and storage medium
CN114407651B (en) * 2022-01-18 2023-12-29 上汽通用五菱汽车股份有限公司 Vehicle mileage storage method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20080258895A1 (en) Power management device and computer readable medium
EP2284801A1 (en) Vehicle operation diagnostic device, method, computer program and computer readable medium
US9586579B1 (en) System and method for monitoring battery degradation
CN109406167B (en) Method, apparatus, device and computer-readable storage medium for evaluating a vehicle
EP3610277B1 (en) System and method for determining a status of a vehicle battery
CN101837765B (en) Fuel saving driving assistance apparatus
CN110481558B (en) Vehicle and analysis method of driving behavior thereof
CN113741808A (en) Small-scale mileage storage method and device, readable storage medium and vehicle
KR20200040056A (en) Method and apparatus for diagnosing vehicle battery
JPH0217058B2 (en)
CN105469273A (en) Determining second hand car price
CN108254199B (en) Vehicle health prediction method, device and equipment
CN111123730B (en) Unmanned driving fault simulation method, device, equipment and computer readable medium
CN110907838B (en) Battery working condition simulation test method, electronic equipment and computer readable storage medium
KR20210077542A (en) Apparatus and method for diagnosing can network sleep for vehicle
CN113454554A (en) Method and device for predictive maintenance of a component of a road vehicle
CN113401002B (en) Power-on and power-off control method and device, vehicle and equipment
CN106564446B (en) A kind of speedometer for automobile value recording method and device
CN113760326A (en) Upgrading method and device, readable storage medium and vehicle
CN106033220A (en) Method of detecting ECU Flash erasing and writing state and system thereof
CN109858052B (en) Steering engine replacement prompting method and device
CN114610003B (en) Vehicle diagnosis method, device, equipment and medium
CN116017650A (en) Vehicle-mounted unit display method and device and vehicle-mounted unit
CN115302992B (en) Indirect monitoring method and device for temperature of vehicle tyre, vehicle and storage medium
CN116386169A (en) Vehicle data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination