CN116721483A - Vehicle mileage value updating method, device, equipment, storage medium and vehicle - Google Patents

Vehicle mileage value updating method, device, equipment, storage medium and vehicle Download PDF

Info

Publication number
CN116721483A
CN116721483A CN202310626849.9A CN202310626849A CN116721483A CN 116721483 A CN116721483 A CN 116721483A CN 202310626849 A CN202310626849 A CN 202310626849A CN 116721483 A CN116721483 A CN 116721483A
Authority
CN
China
Prior art keywords
mileage value
vehicle
mileage
value
identification code
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
CN202310626849.9A
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.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co 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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202310626849.9A priority Critical patent/CN116721483A/en
Publication of CN116721483A publication Critical patent/CN116721483A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/004Indicating the operating range of the engine

Abstract

The application relates to a vehicle mileage value updating method, device, equipment, storage medium and vehicle, and relates to the technical field of automobiles. The method comprises the following steps: acquiring a first mileage value from a main area controller of a vehicle, and acquiring at least one second mileage value from at least one redundant area controller of the vehicle; a second mileage value is stored in a redundant area controller; and determining an initial mileage value from the first mileage value and at least one second mileage value, and updating the current mileage value of the vehicle according to the initial mileage value and the running information of the vehicle. Thus, erroneous calculation of the vehicle mileage value or the inability to update can be avoided.

Description

Vehicle mileage value updating method, device, equipment, storage medium and vehicle
Technical Field
The application relates to the technical field of automobiles, in particular to a method, a device, equipment, a storage medium and a vehicle for updating a vehicle mileage value.
Background
The vehicle mileage value is stored in the area controller of the vehicle, and if the area controller of the vehicle fails, the vehicle mileage value is lost. In the case of a loss of the vehicle mileage value, a problem may occur in that the vehicle mileage value is calculated erroneously or cannot be updated.
Disclosure of Invention
The application provides a vehicle mileage value updating method, device, equipment, storage medium and a vehicle, which at least solve the technical problems that the vehicle mileage value is calculated wrongly or cannot be updated in the related technology. The technical scheme of the application is as follows:
according to a first aspect of the present application, there is provided a method for updating a vehicle mileage value, comprising: acquiring a first mileage value from a main area controller of a vehicle, and acquiring at least one second mileage value from at least one redundant area controller of the vehicle; a second mileage value is stored in a redundant area controller; and determining an initial mileage value from the first mileage value and at least one second mileage value, and updating the current mileage value of the vehicle according to the initial mileage value and the running information of the vehicle.
According to the technical means, the method can obtain the first mileage value from the main area controller of the vehicle and obtain the at least one second mileage value from the at least one redundant area controller of the vehicle; and determining an initial mileage value from the first mileage value and the at least one second mileage value. Further, the current mileage value of the vehicle is updated according to the initial mileage value and the running information of the vehicle. Therefore, under the condition that the regional controller of the vehicle has faults, the initial mileage value can be determined from the first mileage value and at least one second mileage value, and the current mileage value of the vehicle is updated according to the determined initial mileage value, so that the problem that the calculation of the mileage value of the vehicle is wrong or cannot be displayed due to the faults of the regional controller can be effectively reduced. In addition, since a plurality of regional controllers are used to store mileage values of the vehicle, the influence due to the life problem of the memory in the regional controllers can be greatly reduced.
In one possible embodiment, the determining the initial mileage value from the first mileage value and the at least one second mileage value includes: determining an initial mileage value from the first mileage value and at least one second mileage value under the condition that the verification information of the vehicle passes the verification; the verification information comprises a first mileage value, at least one second mileage value, a first vehicle identification code, at least one second vehicle identification code, a power supply gear signal of the vehicle and a speed signal of the vehicle; the first vehicle identification code is stored in the main zone controller and a second vehicle identification code is stored in a redundant zone controller.
According to the technical means, the electronic device can determine the initial mileage value from the first mileage value and at least one second mileage value by judging whether the verification information of the vehicle passes the verification or not and under the condition that the verification information of the vehicle passes the verification. Therefore, the vehicle verification information is pre-verified, the vehicle verification information can be filtered in advance, and errors of the mileage value determined by errors in the vehicle verification information are avoided.
In one possible embodiment, the method further comprises: and determining that the verification information of the vehicle passes the verification under the conditions that the first mileage value and the at least one second mileage value are smaller than the preset mileage upper limit, the data dimension of the first vehicle identification code and the data dimension of the at least one second vehicle identification code are both preset data dimension, the power supply gear signal of the vehicle indicates that the vehicle is in a power-on state, and the speed indicated by the speed signal of the vehicle is smaller than the preset speed threshold.
According to the technical means, the verification information of the vehicle can be determined to pass the verification under the conditions that the first mileage value and the at least one second mileage value are smaller than the preset mileage upper limit, the data dimension of the first vehicle identification code and the data dimension of the at least one second vehicle identification code are the preset data dimension, the power gear signal of the vehicle indicates that the vehicle is in the electrified state, and the speed indicated by the speed signal of the vehicle is smaller than the preset speed threshold. In this way, a method of determining whether the verification information of the vehicle can pass the verification is realized.
In one possible embodiment, the determining the initial mileage value from the first mileage value and the at least one second mileage value includes: under the condition that the main area controller is initialized, determining the maximum value of the first mileage value and at least one second mileage value as an initial mileage value; if the first vehicle identification code stored in the main area controller is different from the vehicle identification code of the vehicle under the condition that the main area controller is not initialized, determining the maximum value of the first mileage value and at least one second mileage value as an initial mileage value; and under the condition that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, responding to the modification operation of the user on the first mileage value, and if the first mileage value is smaller than a preset mileage value, determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value.
According to the technical means, the initialization state of the main area controller can be judged in advance, and when the main area controller is initialized, the maximum value of the first mileage value and the at least one second mileage value can be determined as the initial mileage value; by judging in advance whether the first vehicle identification code stored in the main area controller is identical to the vehicle identification code of the vehicle in the case where the activation state of the main area controller is non-initialized, it is possible to determine the maximum value of the first mileage value and the at least one second mileage value as the initial mileage value in the case where the first vehicle identification code stored in the main area controller is not identical to the vehicle identification code; and determining whether the first mileage value is smaller than a preset mileage value or not in response to a user modification operation of the first mileage value when the activation state of the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, and determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value when the first mileage value is smaller than the preset mileage value. In this way, a method of determining an initial mileage value from a first mileage value and at least one second mileage value is implemented by determining whether an initialization state of a main area controller, a first vehicle identification code stored in the main area controller is identical to a vehicle identification code of a vehicle, and determining whether the first mileage value is smaller than a preset mileage value.
In one possible embodiment, the method further comprises: after updating the current mileage value, synchronizing the updated current mileage value to the main area controller and the at least one redundant area controller, or displaying the updated current mileage value on a vehicle body of the vehicle.
According to the technical means, the electronic equipment can synchronize the updated current mileage value to the main area controller and the at least one redundant area controller after updating the current mileage value, or display the updated current mileage value on the vehicle body of the vehicle. Thus, updating the mileage values of the main area controller and the at least one redundant controller can be achieved by storing the updated current mileage values in the main area controller and the at least one redundant controller. And the updated current mileage value is displayed in the vehicle machine of the vehicle, so that a user can observe the change condition of the mileage value of the vehicle in the running process in real time.
According to a second aspect of the present application, there is provided an updating apparatus for a vehicle mileage value, including an acquisition unit, a determination unit, and an updating unit; an acquisition unit for acquiring a first mileage value from a main area controller of the vehicle and at least one second mileage value from at least one redundant area controller of the vehicle; a second mileage value is stored in a redundant area controller; a determining unit for determining an initial mileage value from the first mileage value and at least one second mileage value; and the updating unit is used for updating the current mileage value of the vehicle according to the initial mileage value and the running information of the vehicle.
According to the technical means, the method can obtain the first mileage value from the main area controller of the vehicle and obtain the at least one second mileage value from the at least one redundant area controller of the vehicle; and determining an initial mileage value from the first mileage value and the at least one second mileage value. Further, the current mileage value of the vehicle is updated according to the initial mileage value and the running information of the vehicle. Therefore, under the condition that the regional controller of the vehicle has faults, the initial mileage value can be determined from the first mileage value and at least one second mileage value, and the current mileage value of the vehicle is updated according to the determined initial mileage value, so that the problem that the calculation of the mileage value of the vehicle is wrong or cannot be displayed due to the faults of the regional controller can be effectively reduced. In addition, since a plurality of regional controllers are used to store mileage values of the vehicle, the influence due to the life problem of the memory in the regional controllers can be greatly reduced.
In a possible implementation manner, the determining unit is specifically configured to: determining an initial mileage value from the first mileage value and at least one second mileage value under the condition that the verification information of the vehicle passes the verification; the verification information comprises a first mileage value, at least one second mileage value, a first vehicle identification code, at least one second vehicle identification code, a power supply gear signal of the vehicle and a speed signal of the vehicle; the first vehicle identification code is stored in the main zone controller and a second vehicle identification code is stored in a redundant zone controller.
According to the technical means, the electronic device can determine the initial mileage value from the first mileage value and at least one second mileage value by judging whether the verification information of the vehicle passes the verification or not and under the condition that the verification information of the vehicle passes the verification. Therefore, the vehicle verification information is pre-verified, the vehicle verification information can be filtered in advance, and errors of the mileage value determined by errors in the vehicle verification information are avoided.
In a possible embodiment, the determining unit is further configured to: and determining that the verification information of the vehicle passes the verification under the conditions that the first mileage value and the at least one second mileage value are smaller than the preset mileage upper limit, the data dimension of the first vehicle identification code and the data dimension of the at least one second vehicle identification code are both preset data dimension, the power supply gear signal of the vehicle indicates that the vehicle is in a power-on state, and the speed indicated by the speed signal of the vehicle is smaller than the preset speed threshold.
According to the technical means, the electronic device can determine the initial mileage value from the first mileage value and at least one second mileage value by judging whether the verification information of the vehicle passes the verification or not and under the condition that the verification information of the vehicle passes the verification. Therefore, the vehicle verification information is pre-verified, the vehicle verification information can be filtered in advance, and errors of the mileage value determined by errors in the vehicle verification information are avoided.
In a possible implementation manner, the determining unit is specifically configured to: under the condition that the main area controller is initialized, determining the maximum value of the first mileage value and at least one second mileage value as an initial mileage value; if the first vehicle identification code stored in the main area controller is different from the vehicle identification code of the vehicle under the condition that the main area controller is not initialized, determining the maximum value of the first mileage value and at least one second mileage value as an initial mileage value; and under the condition that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, responding to the modification operation of the user on the first mileage value, and if the first mileage value is smaller than a preset mileage value, determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value.
According to the technical means, the initialization state of the main area controller can be judged in advance, and when the main area controller is initialized, the maximum value of the first mileage value and the at least one second mileage value can be determined as the initial mileage value; by judging in advance whether the first vehicle identification code stored in the main area controller is identical to the vehicle identification code of the vehicle in the case where the activation state of the main area controller is non-initialized, it is possible to determine the maximum value of the first mileage value and the at least one second mileage value as the initial mileage value in the case where the first vehicle identification code stored in the main area controller is not identical to the vehicle identification code; and determining whether the first mileage value is smaller than a preset mileage value or not in response to a user modification operation of the first mileage value when the activation state of the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, and determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value when the first mileage value is smaller than the preset mileage value. In this way, a method of determining an initial mileage value from a first mileage value and at least one second mileage value is implemented by determining whether an initialization state of a main area controller, a first vehicle identification code stored in the main area controller is identical to a vehicle identification code of a vehicle, and determining whether the first mileage value is smaller than a preset mileage value.
In one possible embodiment, the apparatus further includes: a processing unit; and the processing unit is used for synchronizing the updated current mileage value to the main area controller and the at least one redundant area controller after updating the current mileage value, or is also used for displaying the updated current mileage value on the machine of the vehicle.
According to the technical means, the electronic equipment can synchronize the updated current mileage value to the main area controller and the at least one redundant area controller after updating the current mileage value, or display the updated current mileage value on the vehicle body of the vehicle. Thus, updating the mileage values of the main area controller and the at least one redundant controller can be achieved by storing the updated current mileage values in the main area controller and the at least one redundant controller. And the updated current mileage value is displayed in the vehicle machine of the vehicle, so that a user can observe the change condition of the mileage value of the vehicle in the running process in real time.
According to a third aspect of the present application, there is provided an electronic apparatus comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the method of the first aspect and any of its possible embodiments described above.
According to a fourth aspect of the present application there is provided a computer readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the method of the first aspect and any of its possible embodiments.
According to a fifth aspect of the present application there is provided a computer program product comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of the first aspect and any of its possible embodiments.
According to a sixth aspect of the present application, there is provided a vehicle comprising the vehicle mileage updating apparatus of the second aspect and any one of the possible embodiments thereof.
It should be noted that, the technical effects caused by any implementation manner of the second aspect to the sixth aspect may refer to the technical effects caused by the corresponding implementation manner in the first aspect, which is not described herein.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Therefore, the technical characteristics of the application have the following beneficial effects:
(1) Under the condition that the regional controller of the vehicle has faults, the initial mileage value can be determined from the first mileage value and at least one second mileage value, and the current mileage value of the vehicle is updated according to the determined initial mileage value, so that the problem that the calculation of the mileage value of the vehicle is wrong or cannot be displayed due to the faults of the regional controller can be effectively reduced. In addition, since a plurality of regional controllers are used to store mileage values of the vehicle, the influence due to the life problem of the memory in the regional controllers can be greatly reduced.
(2) The vehicle verification information is pre-verified, the vehicle verification information can be filtered in advance, and errors of the mileage value determined by errors in the vehicle verification information are avoided.
(3) A method of determining whether verification information of a vehicle can pass verification is realized.
(4) By judging whether the initialization state of the main area controller, the first vehicle identification code stored in the main area controller is the same as the vehicle identification code of the vehicle, and judging whether the first mileage value is smaller than a preset mileage value, the method for determining the initial mileage value from the first mileage value and at least one second mileage value is realized.
(5) Updating the mileage values of the main area controller and the at least one redundant controller may be achieved by storing the updated current mileage values in the main area controller and the at least one redundant controller. And the updated current mileage value is displayed in the vehicle machine of the vehicle, so that a user can observe the change condition of the mileage value of the vehicle in the running process in real time.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application and do not constitute a undue limitation on the application.
FIG. 1 is a flow chart illustrating a method of updating a vehicle mileage value according to an exemplary embodiment;
FIG. 2 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment;
FIG. 3 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment;
FIG. 5 is a schematic diagram of an implementation architecture shown in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram illustrating a method of obtaining mileage values, vehicle identification codes, power supply gear, vehicle speed signals, and vehicle speed valid signals, according to an exemplary embodiment;
FIG. 7 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment;
FIG. 8 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment;
FIG. 9 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment;
FIG. 10 is a block diagram illustrating an apparatus for updating a vehicle mileage value according to an exemplary embodiment;
fig. 11 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
In order to enable a person skilled in the art to better understand the technical solutions of the present application, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The following describes the inventive concept of the present application, which is based on a service-oriented architecture (service-oriented architecture, SOA), the principle of which is: different functional units in the updating method of the vehicle mileage value are split, the minimum functional logic is packaged into service, and the interaction of different functional logic modules is realized by calling a service interface, so that the data interaction is realized. In the traditional software architecture, hardware and software are highly coupled, signal-based communication is not flexible and expandable, and minor functional changes can cause the adjustment of the whole vehicle software. The service-oriented architecture changes the cross-electronic control unit (Electronic Control Unit, ECU) interaction from signal-based communication to service-based communication, and the application is served, so that the intelligent vehicle is possible for random use of people under permission. The flexible deployment of the service can be realized, different vehicle type configurations can be used for different service deployment in the whole vehicle life cycle, the coupling degree between software and hardware is greatly reduced, and the software updating and upgrading are faster.
The service-oriented architecture divides the software hierarchy into: a scene service layer, a system service layer, an enhancement service layer, an atomic service layer, an Input/Output (I/O) abstraction layer, and a base service layer.
Scene service layer: the user can flexibly arrange various scenes on the premise of opening the permission according to the needs. The layer mainly calls services for the outside and then sends different request parameters to the enhanced services layer.
System service layer: and judging preconditions according to various trigger sources, and calling enhanced services to realize basic functions of vehicle control. It may receive the logic state of each actuator from the enhanced services notification down, and may notify the logic or running state of its services up, facilitating subsequent scene orchestration. The application range can be divided into 'intra-domain communication', 'inter-domain communication' and 'intra-domain non-communication' according to the function requirements.
Enhancement service layer: and carrying out parameter screening on the requests sent by the scene service layer, selecting which service is executed according to a preset priority order when a plurality of requests are received, and returning request parameters.
Atomic service layer: the influence of the change of the frequency-closed I/O abstraction layer on the enhancement layer reduces the modification of software during the function change and realizes decoupling.
I/O abstraction layer: bind with the hardware layer, mask the hardware design and specific implementation. The interface provided by the I/O abstraction layer is only visible to the atomic service layer and other levels cannot be invoked directly.
Basic service layer: similar to the system service, the requirements can be divided into "intra-domain communication", "inter-domain communication", and "intra-domain non-communication".
For easy understanding, the following describes the method for updating the mileage value of the vehicle provided by the application in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method of updating a vehicle mileage value according to an exemplary embodiment, and as shown in fig. 1, the method of updating a vehicle mileage value includes the steps of:
s101, the electronic equipment acquires a first mileage value from a main area controller of the vehicle.
As one possible implementation manner, the electronic device sends an instruction for reading the first mileage value to a basic service layer in the main area controller; correspondingly, after receiving the reading instruction, the basic service layer acquires a first mileage value in the storage layer by calling the reading service, and sends the first mileage value to a mileage reading interface of the electronic equipment. Correspondingly, the electronic equipment acquires a first mileage value.
It should be noted that the storage layer stores mileage data of the vehicle by adopting an analog EEPROM and related basic software.
S102, the electronic equipment acquires at least one second mileage value from at least one redundant area controller of the vehicle.
Wherein a second mileage value is stored in a redundant area controller.
As one possible implementation manner, the electronic device sends an instruction for reading the second mileage value to the basic service layer of each redundant area controller in the at least one redundant area controller; correspondingly, after receiving the reading instruction, the basic service layer of each redundant area controller invokes the service to read the second mileage value in the storage layer and sends the second mileage value to the mileage reading interface of the electronic equipment. Correspondingly, the electronic device obtains at least one second mileage value.
If there are two redundant area controllers, the electronic device sends an instruction for reading the second mileage value to the basic service layer of each of the two redundant area controllers; correspondingly, after receiving the reading instruction, the basic service layer in each redundant controller invokes the service to read the second mileage value in the storage layer, and sends the two second mileage values to the mileage reading interface of the electronic device. Correspondingly, the electronic equipment acquires two second mileage values.
S103, the electronic device determines an initial mileage value from the first mileage value and at least one second mileage value.
As one possible implementation, the electronic device determines whether the main area controller is initialized, and whether the first vehicle identification code stored in the main area controller is the same as the vehicle identification code of the vehicle.
After receiving the modification operation of the user on the first mileage value, the electronic device judges whether the first mileage value is smaller than a preset mileage value, and determines an initial mileage value from the first mileage value and at least one second mileage value.
And S104, the electronic equipment updates the current mileage value of the vehicle according to the initial mileage value and the running information of the vehicle.
The running information of the vehicle comprises a speed signal and a power gear signal of the vehicle.
As one possible implementation manner, in the case that the power gear signal indicates that the power gear is on, the electronic device calculates, according to the vehicle speed signal of the vehicle, a mileage increment accumulated in a preset calculation period, and calculates, according to the mileage increment, a current mileage value of the vehicle.
In the actual application process, the running information of the vehicle can also comprise a vehicle speed effective signal; under the condition that the vehicle speed signal of the vehicle is valid and the power gear signal is on, the electronic equipment updates the current mileage value of the vehicle according to the initial mileage value and the running information of the vehicle.
If the power source gear signal of the vehicle is turned off and the vehicle speed indicated by the vehicle speed signal is not 0, the vehicle speed valid signal indicates that the vehicle speed signal is invalid.
If the vehicle speed indicated by the vehicle speed signal is greater than the preset speed threshold value, the vehicle speed signal marked by the vehicle speed effective signal is invalid.
By way of example, the preset calculation period may be 30 seconds.
According to the technical scheme provided by the embodiment of the application, the first mileage value is obtained from the main area controller of the vehicle, and the at least one second mileage value is obtained from the at least one redundant area controller of the vehicle; and determining an initial mileage value from the first mileage value and the at least one second mileage value. Further, the current mileage value of the vehicle is updated according to the initial mileage value and the running information of the vehicle. Therefore, under the condition that the regional controller of the vehicle has faults, the initial mileage value can be determined from the first mileage value and at least one second mileage value, and the current mileage value of the vehicle is updated according to the determined initial mileage value, so that the problem that the calculation of the mileage value of the vehicle is wrong or cannot be displayed due to the faults of the regional controller can be effectively reduced. In addition, since a plurality of regional controllers are used to store mileage values of the vehicle, the influence due to the life problem of the memory in the regional controllers can be greatly reduced.
In some embodiments, in order to determine whether to determine the initial mileage value from the first mileage value and the at least one second mileage value according to the verification information of the vehicle, as shown in fig. 2, in the method for updating the vehicle mileage value according to the embodiment of the present application, S103 includes the following steps:
s201, the electronic equipment judges whether the verification information of the vehicle passes the verification.
The verification information comprises a first mileage value, at least one second mileage value, a first vehicle identification code, at least one second vehicle identification code, a power supply gear signal of the vehicle and a speed signal of the vehicle; the first vehicle identification code is stored in the main zone controller and a second vehicle identification code is stored in a redundant zone controller.
As one possible implementation manner, the electronic device determines that the verification information of the vehicle passes the verification when the first mileage value and the at least one second mileage value are both smaller than the preset mileage upper limit, the data dimensions of the first vehicle identification code and the at least one second vehicle identification code are both preset data dimensions, the power supply gear signal of the vehicle indicates that the vehicle is in the energized state, and the speed indicated by the speed signal of the vehicle is smaller than the preset speed threshold.
And the electronic equipment determines that the verification information of the vehicle does not pass the verification under the condition that the first mileage value and the at least one second mileage value are greater than or equal to a preset mileage upper limit, and/or the data dimension of the at least one vehicle identification code in the first vehicle identification code and the second vehicle identification code is not the preset data dimension, and/or the power supply gear signal of the vehicle does not indicate that the vehicle is in a power-on state, and/or the speed indicated by the speed signal of the vehicle is greater than or equal to a preset speed threshold.
Illustratively, the preset data dimension is 64; the preset upper limit of mileage may be 999999 km; the preset speed threshold may be 360 kilometers per hour.
S202, under the condition that the verification information of the vehicle passes the verification, the electronic equipment determines an initial mileage value from the first mileage value and at least one second mileage value.
As one possible implementation, in the case where the main area controller is initialized, the electronic device determines a maximum value of the first mileage value and the at least one second mileage value as an initial mileage value.
If the primary zone controller is non-initialized, the electronic device determines a maximum of the first mileage value and the at least one second mileage value as an initial mileage value if the first vehicle identification code stored in the primary zone controller is not the same as the vehicle identification code of the vehicle.
In the case that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, responding to the modification operation of the user on the first mileage value, and if the first mileage value is smaller than the preset mileage value, determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value by the electronic device.
According to the technical scheme provided by the embodiment of the application, whether the verification information of the vehicle passes the verification is judged, and under the condition that the verification information of the vehicle passes the verification, the electronic equipment determines an initial mileage value from the first mileage value and at least one second mileage value. Therefore, the vehicle verification information is pre-verified, the vehicle verification information can be filtered in advance, and errors of the mileage value determined by errors in the vehicle verification information are avoided.
In some embodiments, in order to determine an initial mileage value from the first mileage value and at least one second mileage value, as shown in fig. 3, in the method for updating a vehicle mileage value according to the embodiment of the present application, the step S103 includes the following steps:
s301, the electronic device judges whether the main area controller is initialized.
As a possible implementation manner, if the main area controller is powered for the first time, the electronic device determines that the main area controller is initialized; if the main area controller is always in a power supply state after being electrified for the first time, the electronic equipment judges that the main area controller is non-initialized.
Illustratively, when the primary zone controller is first powered on after the vehicle is manufactured, the electronic device determines that the primary zone controller is initialized.
And under the condition that the connection between the main area controller and the storage battery of the vehicle is not disconnected after the first power-on and the storage battery of the vehicle is not in a power-shortage state, the electronic equipment judges that the main area controller is not initialized.
As another possible implementation manner, if the main area controller resumes the power supply after the power supply is interrupted, the electronic device determines that the main area controller is initialized.
For example, when the battery of the vehicle is replaced and maintained, the electronic device determines that the main zone controller is initialized after the power supply of the vehicle is restored.
S302, if the main area controller is not initialized, the electronic device judges whether the first vehicle identification code stored in the main area controller is identical to the vehicle identification code.
And S303, under the condition that the main area controller is initialized, the electronic equipment determines the maximum value of the first mileage value and at least one second mileage value as an initial mileage value.
As a possible implementation, in the case that the main area controller is initialized, the electronic device determines a maximum value from the first mileage value and the at least one second mileage value, and determines the maximum value as the initial mileage value.
And S304, if the main area controller is not initialized, if the first vehicle identification code stored in the main area controller is different from the vehicle identification code of the vehicle, the electronic equipment determines the maximum value of the first mileage value and the at least one second mileage value as an initial mileage value.
In the actual application process, the electronic equipment updates the vehicle identification code of the vehicle according to the first vehicle identification code.
S305, the electronic equipment judges whether the first mileage value is smaller than a preset mileage value.
And S306, under the condition that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, responding to the modification operation of the user on the first mileage value, and if the first mileage value is smaller than a preset mileage value, determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value by the electronic equipment.
As one possible implementation manner, if the electronic device receives the modification operation of the first mileage value by the user, and if the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, it is determined whether the first mileage value is smaller than the preset mileage value.
And under the condition that the first mileage value is smaller than the preset mileage value, the electronic equipment determines a minimum value from the first mileage value and at least one second mileage value, and determines the minimum value as an initial mileage value.
By way of example, the preset mileage value may be 256 km.
In the actual application process, under the condition that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, and the power gear of the vehicle is started, the speed signal of the vehicle is 0, the first mileage value is smaller than a preset mileage value, and if the user manually modifies and reduces the first mileage value, the electronic equipment determines the minimum value of the first mileage value and at least one second mileage value as an initial mileage value.
According to the technical scheme provided by the embodiment of the application, the initialization state of the main area controller is judged in advance, so that the maximum value of the first mileage value and at least one second mileage value can be determined as the initial mileage value when the main area controller is initialized; by judging in advance whether the first vehicle identification code stored in the main area controller is identical to the vehicle identification code of the vehicle in the case where the activation state of the main area controller is non-initialized, it is possible to determine the maximum value of the first mileage value and the at least one second mileage value as the initial mileage value in the case where the first vehicle identification code stored in the main area controller is not identical to the vehicle identification code; and determining whether the first mileage value is smaller than a preset mileage value or not in response to a user modification operation of the first mileage value when the activation state of the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, and determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value when the first mileage value is smaller than the preset mileage value. In this way, a method of determining an initial mileage value from a first mileage value and at least one second mileage value is implemented by determining whether an initialization state of a main area controller, a first vehicle identification code stored in the main area controller is identical to a vehicle identification code of a vehicle, and determining whether the first mileage value is smaller than a preset mileage value.
In some embodiments, in order to implement updating of the mileage values in the main area controller and at least one redundant area controller, or in the vehicle machine of the vehicle, as shown in fig. 4, the method for updating the mileage values of the vehicle provided by the embodiment of the application further includes the following steps:
s401, the electronic equipment acquires the updated current mileage value.
And S402, after updating the current mileage value, the electronic equipment synchronizes the updated current mileage value to the main area controller and the at least one redundant area controller, or displays the updated current mileage value on the machine of the vehicle.
As one possible implementation manner, the electronic device sends an instruction for storing the updated current mileage value to the basic service layer of the main area controller and the at least one redundant area controller; correspondingly, at least one basic service layer acquires the storage instruction and stores the updated current mileage value into the storage layer.
The electronic device sends the updated current mileage value to an experience domain computer (experience domain computer, EDC) in an Application (APP) layer; correspondingly, the EDC receives the updated current mileage value and displays the updated current mileage value in the vehicle body of the vehicle.
As another possible implementation manner, if the difference between the updated current mileage value and the current mileage value before updating is greater than the preset difference, the electronic device sends an instruction for storing the updated current mileage value to the basic service layers of the main area controller and the at least one redundant area controller; correspondingly, at least one basic service layer acquires the storage instruction and stores the updated current mileage value into the storage layer.
The electronic device sends the updated current mileage value to an experience domain computer (experience domain computer, EDC) in the application layer; correspondingly, the EDC receives the updated current mileage value and displays the updated current mileage value in the vehicle body of the vehicle.
It should be noted that, after the storage instruction is acquired, the basic service layer may update the pre-update mileage value stored therein, without deleting the pre-update mileage value.
According to the technical scheme provided by the embodiment of the application, after the current mileage value is updated, the electronic equipment synchronizes the updated current mileage value to the main area controller and the at least one redundant area controller, or displays the updated current mileage value on the vehicle body of the vehicle. Thus, updating the mileage values of the main area controller and the at least one redundant controller can be achieved by storing the updated current mileage values in the main area controller and the at least one redundant controller. And the updated current mileage value is displayed in the vehicle machine of the vehicle, so that a user can observe the change condition of the mileage value of the vehicle in the running process in real time.
The following describes the actual implementation of the present application in the actual application process:
FIG. 5 is a schematic diagram of an implementation architecture according to an exemplary embodiment, as shown in FIG. 5, where the implementation architecture includes an application layer, a system service layer, a base service layer, and a storage layer. The system comprises a main area controller, a first redundant area controller and a second redundant area controller, wherein the main area controller, the first redundant area controller and the second redundant area controller are simultaneously positioned in a system service layer, a basic service layer and a storage layer, an experience area computer is arranged in an application program layer, an accumulated total mileage calculation service Sys_Total Mil is arranged in the system service layer of the main area controller, an accumulated total mileage storage service Basc_DIDTotalMilgVIU1 and a storage service Basc_DID are arranged in the basic service layer of the main area controller, an accumulated total mileage storage service Basc_DIDTotalMilgVIU2 and a storage service Basc_DID are arranged in the basic service layer of the first redundant area controller, an accumulated total mileage storage service Basc_DIDTotalMilgVIU3 and a storage service Basc_DID are arranged in the basic service layer of the main area controller, and an analog electrically erasable read-only memory and related basic software are arranged in the storage layer of the first redundant area controller and the second redundant area controller.
In practical applications, the application layer is also called APP layer; the accumulated total mileage calculation service is also called Sys_Total Millg; the cumulative total mileage storage service in the above-mentioned main area controller is also called basc_didtotalmilgviu1; the cumulative total mileage storage service in the first zone controller is also called basc_didtotalmilgviu2; the cumulative total mileage storage service in the second zone controller is also called basc_didtotalmilgviu3; the storage service is also called basc_did.
FIG. 6 is a schematic diagram of a method for acquiring mileage values, vehicle identification codes, power supply gear, vehicle speed signals, and vehicle speed valid signals according to an exemplary embodiment, as shown in FIG. 6, wherein the system service layer acquires mileage values and vehicle identification codes in a main area controller, a first redundant area controller, and a second redundant area controller through an odometer vehicle identification code reading interface; the system service layer acquires a power gear in the enhanced service layer through the calculation parameter reading interface, and acquires a vehicle speed signal and a vehicle speed effective signal in the basic service layer.
In practical applications, the vehicle identification code reading interface is also called VIN reading interface.
FIG. 7 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment, as shown in FIG. 7, S501, the system service layer reads mileage parameters; s502, the system service layer checks the read mileage parameters and judges whether the check result passes. And the system service layer re-reads the mileage parameters under the condition that the verification is not passed. S503, after the mileage parameter verification is passed, the system service layer determines an initial mileage value from the first mileage value and at least one second mileage value, and synchronizes the mileage values in the main area controller, the first redundant area controller and the second redundant area controller, and sends the initial mileage value to the mileage calculation module. S504, the mileage calculation module receives the initial mileage value, and calculates to obtain the updated current mileage value in the current preset calculation period according to the initial mileage value and the running information of the vehicle. S505, the mileage calculation module judges whether the updated current mileage value meets the storage condition according to the updated current mileage value and the updated current mileage value. S506, under the condition that the updated current mileage value meets the storage condition, the system service layer calls the accumulated total mileage storage service in the basic service layer to store the updated current mileage value into the EEPROM of the storage layer. S507, under the condition that the updated current mileage value does not meet the storage condition, the updated current mileage value is not stored, and the updated current mileage value in the next preset calculation period is continuously calculated.
Fig. 8 is a flowchart illustrating yet another method of updating a vehicle mileage value according to an exemplary embodiment, as shown in fig. 8, S601, the electronic device judges a vehicle speed valid signal and a power range signal. S602, under the condition that the vehicle speed signal of the vehicle is effective and the power gear signal is on, the electronic equipment calculates the updated current mileage value in each preset calculation period according to the initial mileage value and the running information of the vehicle. S603, the electronic equipment judges whether the difference value between the updated current mileage value and the current mileage value before updating is larger than a preset difference value. And under the condition that the difference value is larger than a preset difference value, the electronic equipment sends an instruction for storing the updated current mileage value to the basic service layers of the main area controller and the at least one redundant area controller. S604, at least one basic service layer acquires the storage instruction, and stores the updated current mileage value into a storage layer. And S605, under the condition that the difference value is smaller than or equal to the preset difference value, the updated current mileage value is not stored and is only used for being displayed in a vehicle machine of the vehicle, and the electronic equipment continues to calculate the updated current mileage value in the next preset calculation period.
Fig. 9 is a flowchart illustrating yet another method for updating a vehicle mileage value according to an exemplary embodiment, as shown in fig. 9, in which there may be a slight difference in initialization time of a main area controller, a first redundant area controller, and a second redundant area controller during actual use, in order to prevent an uninitialized area controller from performing erroneous storage due to acquisition of an erroneous updated current mileage value, the method for updating a vehicle mileage value includes the steps of: s701, acquiring an updated current mileage value and an area controller initialization signal corresponding to the updated current mileage value to be stored. S702, judging whether the area controller corresponding to the updated current mileage value to be stored is initialized or not. S703, judging whether the storage signal is valid or not under the condition that whether the area controller corresponding to the updated current mileage value is initialized or not. And S704, storing the updated mileage value when the storage signal is valid. It should be noted that when the difference between the updated current mileage value and the current mileage value before updating is greater than the preset difference, the stored signal is valid.
The foregoing description of the solution provided by the embodiments of the present application has been mainly presented in terms of a method. In order to achieve the above functions, the updating device or the electronic device for the vehicle mileage value includes a hardware structure and/or a software module for executing each function. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
According to the method, the function module of the updating device or the electronic device of the vehicle mileage value can be divided, for example, the updating device or the electronic device of the vehicle mileage value can comprise each function module corresponding to each function division, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 10 is a block diagram illustrating a vehicle mileage value updating apparatus 800 according to an exemplary embodiment. Referring to fig. 10, the updating apparatus 800 of the vehicle mileage value includes: an acquisition unit 801, a determination unit 802, and an update unit 803.
An obtaining unit 801, configured to obtain a first mileage value from a main area controller of a vehicle, and obtain at least one second mileage value from at least one redundant area controller of the vehicle; a second mileage value is stored in a redundant area controller.
A determining unit 802 for determining an initial mileage value from the first mileage value and at least one second mileage value.
And an updating unit 803 for updating the current mileage value of the vehicle according to the initial mileage value and the operation information of the vehicle.
Optionally, as shown in fig. 10, the determining unit 802 provided in the embodiment of the present application is specifically configured to: determining an initial mileage value from the first mileage value and at least one second mileage value under the condition that the verification information of the vehicle passes the verification; the verification information comprises a first mileage value, at least one second mileage value, a first vehicle identification code, at least one second vehicle identification code, a power supply gear signal of the vehicle and a speed signal of the vehicle; the first vehicle identification code is stored in the main zone controller and a second vehicle identification code is stored in a redundant zone controller.
Optionally, as shown in fig. 10, the determining unit 802 provided in the embodiment of the present application is further configured to: and determining that the verification information of the vehicle passes the verification under the conditions that the first mileage value and the at least one second mileage value are smaller than the preset mileage upper limit, the data dimension of the first vehicle identification code and the data dimension of the at least one second vehicle identification code are both preset data dimension, the power supply gear signal of the vehicle indicates that the vehicle is in a power-on state, and the speed indicated by the speed signal of the vehicle is smaller than the preset speed threshold.
Optionally, as shown in fig. 10, the determining unit 802 provided in the embodiment of the present application is specifically configured to: in the case that the main area controller is initialized, a maximum value of the first mileage value and the at least one second mileage value is determined as an initial mileage value.
If the primary zone controller is non-initialized, if the first vehicle identification code stored in the primary zone controller is not the same as the vehicle identification code of the vehicle, determining the maximum value of the first mileage value and the at least one second mileage value as the initial mileage value.
And under the condition that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, responding to the modification operation of the user on the first mileage value, and if the first mileage value is smaller than a preset mileage value, determining the minimum value of the first mileage value and at least one second mileage value as an initial mileage value.
Optionally, as shown in fig. 10, the apparatus 800 for updating a vehicle mileage value provided in the embodiment of the present application further includes: a processing unit 804.
The processing unit 804 is configured to synchronize the updated current mileage value with the main area controller and the at least one redundant area controller after updating the current mileage value, or the processing unit 804 is further configured to display the updated current mileage value on a vehicle body of the vehicle.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 11 is a block diagram of an electronic device, according to an example embodiment. As shown in fig. 11, electronic device 900 includes, but is not limited to: a processor 901 and a memory 902.
The memory 902 is configured to store executable instructions of the processor 901. It is to be understood that the above processor 901 is configured to execute instructions to implement the method for updating the vehicle mileage value in the above embodiment.
It should be noted that the electronic device structure shown in fig. 11 is not limited to the electronic device, and the electronic device may include more or less components than those shown in fig. 11, or may combine some components, or may have different arrangements of components, as will be appreciated by those skilled in the art.
The processor 901 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the electronic device. The processor 901 may include one or more processing units. Alternatively, the processor 901 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 901.
The memory 902 may be used to store software programs as well as various data. The memory 902 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs (such as a determination unit, a processing unit, etc.) required for at least one functional module, and the like. In addition, the memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
In an exemplary embodiment, a computer readable storage medium is also provided, such as a memory 902, comprising instructions executable by the processor 901 of the electronic device 900 to implement the method of updating a vehicle mileage value in the above-described embodiment.
In actual implementation, the functions of the acquisition unit 801, the determination unit 802, the update unit 803, and the processing unit 804 in fig. 10 may be implemented by the processor 901 in fig. 11 calling a computer program stored in the memory 902. For a specific implementation procedure, reference may be made to the description of the update method portion of the vehicle mileage value in the above embodiment, and details are not repeated here.
Alternatively, the computer readable storage medium may be a non-transitory computer readable storage medium, for example, a read-only memory (ROM), a random access memory (random access memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, embodiments of the present application also provide a computer program product comprising one or more instructions executable by the processor 901 of an electronic device to perform the method of updating a vehicle mileage value in the above-described embodiments.
It should be noted that, when the instructions in the computer readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the respective processes of the embodiment of the method for updating a vehicle mileage value are implemented, and the technical effects same as those of the method for updating a vehicle mileage value can be achieved, so that repetition is avoided and detailed description is omitted here.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules, so as to perform all the classification parts or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. The purpose of the embodiment scheme can be achieved by selecting part or all of the classification part units according to actual needs.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application, or the portion contributing to the prior art or the whole classification portion or portion of the technical solution, may be embodied in the form of a software product stored in a storage medium, where the software product includes several instructions to cause a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to execute the whole classification portion or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The present application is not limited to the above embodiments, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (13)

1. A method for updating a vehicle mileage value, comprising:
acquiring a first mileage value from a main area controller of a vehicle, and acquiring at least one second mileage value from at least one redundant area controller of the vehicle; a second mileage value is stored in a redundant area controller;
and determining an initial mileage value from the first mileage value and the at least one second mileage value, and updating the current mileage value of the vehicle according to the initial mileage value and the running information of the vehicle.
2. The method of claim 1, wherein said determining an initial mileage value from said first mileage value and said at least one second mileage value comprises:
determining an initial mileage value from the first mileage value and the at least one second mileage value in case that the verification information of the vehicle passes the verification; the verification information comprises the first mileage value, the at least one second mileage value, a first vehicle identification code, at least one second vehicle identification code, a power supply gear signal of the vehicle and a speed signal of the vehicle; the first vehicle identification code is stored in the primary zone controller and a second vehicle identification code is stored in a redundant zone controller.
3. The method according to claim 2, wherein the method further comprises:
and determining that the verification information of the vehicle passes the verification under the conditions that the first mileage value and the at least one second mileage value are smaller than a preset mileage upper limit, the data dimension of the first vehicle identification code and the data dimension of the at least one second vehicle identification code are preset data dimension, the power supply gear signal of the vehicle indicates that the vehicle is in a power-on state, and the speed indicated by the speed signal of the vehicle is smaller than a preset speed threshold.
4. A method according to any one of claims 1-3, wherein said determining an initial mileage value from said first mileage value and said at least one second mileage value comprises:
determining a maximum value of the first mileage value and the at least one second mileage value as the initial mileage value in the case that the main area controller is initialized;
if the primary area controller is non-initialized, determining the maximum value of the first mileage value and the at least one second mileage value as the initial mileage value if the first vehicle identification code stored in the primary area controller is not the same as the vehicle identification code of the vehicle;
And under the condition that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, responding to the modification operation of the user on the first mileage value, and if the first mileage value is smaller than a preset mileage value, determining the minimum value of the first mileage value and the at least one second mileage value as the initial mileage value.
5. The method according to claim 1, wherein the method further comprises:
after updating the current mileage value, synchronizing the updated current mileage value to the main area controller and the at least one redundant area controller, or displaying the updated current mileage value on a vehicle body of the vehicle.
6. A vehicle mileage updating apparatus, characterized by comprising: the device comprises an acquisition unit, a determination unit and an updating unit;
the acquisition unit is used for acquiring a first mileage value from a main area controller of a vehicle and acquiring at least one second mileage value from at least one redundant area controller of the vehicle; a second mileage value is stored in a redundant area controller;
the determining unit is used for determining an initial mileage value from the first mileage value and the at least one second mileage value;
And the updating unit is used for updating the current mileage value of the vehicle according to the initial mileage value and the running information of the vehicle.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to:
determining an initial mileage value from the first mileage value and the at least one second mileage value in case that the verification information of the vehicle passes the verification; the verification information comprises the first mileage value, the at least one second mileage value, a first vehicle identification code, at least one second vehicle identification code, a power supply gear signal of the vehicle and a speed signal of the vehicle; the first vehicle identification code is stored in the primary zone controller and a second vehicle identification code is stored in a redundant zone controller.
8. The apparatus of claim 7, wherein the determining unit is further configured to: and determining that the verification information of the vehicle passes the verification under the conditions that the first mileage value and the at least one second mileage value are smaller than a preset mileage upper limit, the data dimension of the first vehicle identification code and the data dimension of the at least one second vehicle identification code are preset data dimension, the power supply gear signal of the vehicle indicates that the vehicle is in a power-on state, and the speed indicated by the speed signal of the vehicle is smaller than a preset speed threshold.
9. The apparatus according to any one of claims 6-8, wherein the determining unit is specifically configured to:
determining a maximum value of the first mileage value and the at least one second mileage value as the initial mileage value in the case that the main area controller is initialized;
if the primary area controller is non-initialized, determining the maximum value of the first mileage value and the at least one second mileage value as the initial mileage value if the first vehicle identification code stored in the primary area controller is not the same as the vehicle identification code of the vehicle;
and under the condition that the main area controller is non-initialized and the first vehicle identification code is the same as the vehicle identification code of the vehicle, responding to the modification operation of the user on the first mileage value, and if the first mileage value is smaller than a preset mileage value, determining the minimum value of the first mileage value and the at least one second mileage value as the initial mileage value.
10. The apparatus of claim 6, wherein the apparatus further comprises: a processing unit;
the processing unit is configured to synchronize the updated current mileage value to the main area controller and the at least one redundant area controller after updating the current mileage value, or is further configured to display the updated current mileage value on a vehicle body of the vehicle.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 5.
12. A computer readable storage medium, characterized in that, when computer-executable instructions stored in the computer readable storage medium are executed by a processor of an electronic device, the electronic device is capable of performing the method of any one of claims 1 to 5.
13. A vehicle characterized by comprising the vehicle mileage updating device according to any one of claims 6 to 10; the updating means of the vehicle mileage value is for executing the updating method of the vehicle mileage value according to any one of claims 1 to 5.
CN202310626849.9A 2023-05-29 2023-05-29 Vehicle mileage value updating method, device, equipment, storage medium and vehicle Pending CN116721483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310626849.9A CN116721483A (en) 2023-05-29 2023-05-29 Vehicle mileage value updating method, device, equipment, storage medium and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310626849.9A CN116721483A (en) 2023-05-29 2023-05-29 Vehicle mileage value updating method, device, equipment, storage medium and vehicle

Publications (1)

Publication Number Publication Date
CN116721483A true CN116721483A (en) 2023-09-08

Family

ID=87872578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310626849.9A Pending CN116721483A (en) 2023-05-29 2023-05-29 Vehicle mileage value updating method, device, equipment, storage medium and vehicle

Country Status (1)

Country Link
CN (1) CN116721483A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974492A (en) * 2023-09-21 2023-10-31 北京远特科技股份有限公司 FLASH-based mileage data storage method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974492A (en) * 2023-09-21 2023-10-31 北京远特科技股份有限公司 FLASH-based mileage data storage method, device, equipment and medium
CN116974492B (en) * 2023-09-21 2023-12-12 北京远特科技股份有限公司 FLASH-based mileage data storage method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN109643254B (en) Vehicle-mounted updating system, vehicle-mounted updating device and updating method of communication device
CN109478155B (en) Vehicle-mounted updating device, vehicle-mounted updating system and updating method of communication device
US10678530B2 (en) Vehicle update systems and methods
CN104978206B (en) The method, apparatus and system that the car body control module of vehicle is updated
CN106293507B (en) Electronic device with external memory and method of operating the same
CN106802813A (en) Method, device and vehicle for aerial firmware upgrade
US20190324858A1 (en) Rollback recovery from partial failure in multiple electronic control unit over-the-air updates
CN107066305B (en) Method and device for updating server firmware of server and server
CN110083374B (en) Upgrade rollback method, system and terminal equipment
CN107463400B (en) Hot updating method of mobile application and terminal equipment
CN111090577B (en) Multi-terminal synchronous test method and device, computer equipment and storage medium
CN116721483A (en) Vehicle mileage value updating method, device, equipment, storage medium and vehicle
CN102006332A (en) Method and system for software upgrading
US20170357930A1 (en) Work plan support information provision method, work plan support information provision apparatus, and computer-readable recording medium
EP2660761A1 (en) Timestamp management method for data synchronization and terminal therefor
CN108734951A (en) A kind of fence setting method and computing device
KR20170026186A (en) Method and subsystem for installing a software update in a vehicle
CN103514065B (en) Tool automatically detects and recovers electronic installation and the method for function
CN107633041A (en) A kind of information processing method, mobile terminal and information processing system
CN104182330B (en) Application recommendation method and device and terminal
CN109871385A (en) Method and apparatus for handling data
CN109086065A (en) A kind of method for upgrading software, system and terminal device
CN110673867A (en) CPLD online upgrading method, device and system
CN111427417A (en) Time obtaining method and device and electronic equipment
CN108710497A (en) A kind of method for updating system of vehicle-mounted middle control and vehicle-mounted middle control

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