A vehicle data processing method and device, electronic equipment and storage medium
By obtaining the current update status and data type of the EEPROM and performing verification calculations in conjunction with sensor data, the problem of data anomalies during EEPROM power-down was solved, thus achieving the accuracy and reliability of stored data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DEEPAL AUTOMOBILE TECH CO LTD
- Filing Date
- 2023-03-29
- Publication Date
- 2026-04-21
AI Technical Summary
Existing technology cannot determine whether there are unexpected situations during the power-down process that cause abnormalities in the data stored in the EEPROM, and therefore cannot guarantee the accuracy of the stored data.
By obtaining the current update status of the memory, switching is performed based on the writing and reading of stored data, determining whether the data type is computational or numerical, and performing verification calculations based on relevant parameters or sensor data to ensure the accuracy of the data.
It improves the accuracy of data stored in EEPROM, prevents data errors caused by abnormal power-down, and enhances the user experience.
Smart Images

Figure CN116386169B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data storage technology, specifically to a vehicle data processing method, apparatus, electronic device, and storage medium. Background Technology
[0002] With technological advancements, automobiles now incorporate controllers such as vehicle controllers, body controllers, and intelligent driving domain control units. New energy vehicles further utilize proprietary controllers like battery management controllers and motor controllers. The intelligent vehicle controller assembly, as a crucial hub for driving and coordinating other controllers, also needs to store vehicle identification information such as VIN, SK code, and vehicle configuration code. Simultaneously, range-extended electric vehicles require the storage of highly accurate data such as fuel level and remaining driving range. For example, fuel level is stored in the EEPROM (Electrically Erasable Programmable Read-Only Memory) within the MCU (Microcontroller Unit, vehicle). However, current technologies lack data storage verification measures when reading this data, making it impossible to determine if unexpected events during power-off caused data storage anomalies, thus compromising the accuracy of the data stored in the EEPROM.
[0003] Patent document CN112053727A provides a power-down protection control method for EEPROM. This method prevents the EEPROM from being written to unsuccessfully under abnormal voltage based on the write-in disabled state of the flag bit. However, this patent cannot improve the accuracy of the data stored in the memory. Summary of the Invention
[0004] In view of the shortcomings of the prior art described above, this application provides a vehicle data processing method, apparatus, electronic device and storage medium to solve the technical problem that it is impossible to determine whether there are unexpected situations during the power-off process that cause abnormal data storage and thus cannot improve the accuracy of the data stored in the memory.
[0005] This application provides a vehicle data processing method, comprising: after the vehicle is powered on, obtaining the current update state of the memory, wherein the current update state is switched based on the writing and reading of data stored in the memory; if the current update state is updated, reading the stored data in the memory and using the stored data as the current vehicle data; if the current update state is not updated, obtaining the data type of the stored data, wherein the data type includes computational and numerical types; if the data type of the stored data is computational, obtaining computational data according to relevant parameters and using the computational data as the current vehicle data, wherein the relevant parameters are obtained based on the current vehicle state; if the data type of the stored data is numerical, reading the stored data in the memory and using the stored data as the current vehicle data.
[0006] In one embodiment of the present invention, after reading the stored data in the memory, the method further includes: adjusting the current update state of the memory to not updated.
[0007] In one embodiment of the present invention, the vehicle data processing method further includes: if the vehicle receives a power-off command during operation, before the vehicle is powered off, storing the updated stored data in the memory, and adjusting the current update state of the memory to updated.
[0008] In one embodiment of the present invention, after the vehicle is powered on and before obtaining the current update state of the memory, the method further includes: if the validity of the received wake-up source signal is invalid, the vehicle is powered off after the power-on period exceeds a preset time, and the wake-up source signal is used to wake up the vehicle from the power-off state; if the validity of the received wake-up source information signal is valid, the vehicle remains powered on until the vehicle receives a power-off command.
[0009] In one embodiment of the present invention, if the stored data is a stored fuel level value, after the vehicle is powered on, the method further includes: if the current update state of the memory is updated, reading the stored fuel level value in the memory and adjusting the current update state of the memory to not updated; and displaying the stored fuel level value on the vehicle terminal display screen.
[0010] In one embodiment of the present invention, if the stored data is a stored fuel level value, after the vehicle is powered on, the method further includes: if the current update status of the memory is not updated, obtaining the fuel level resistance through a sensor; calculating the fuel level value based on the fuel level resistance, and displaying the calculated fuel level value as the stored fuel level value on the vehicle terminal display screen.
[0011] In one embodiment of the present invention, after displaying the calculated fuel level value as the stored fuel level value on the vehicle terminal display screen, the method further includes: if the vehicle receives a power-off command during operation, before the vehicle is powered off, calculating an updated fuel level value based on the vehicle's operating data after power-on; storing the updated fuel level value in a memory, and adjusting the current update status of the memory to updated.
[0012] Embodiments of the present invention also provide a vehicle data processing device, comprising: a status acquisition module, configured to acquire the current update status of a memory after the vehicle is powered on, the current update status being switched based on the writing and reading of data stored in the memory; an updated data reading module, configured to read the stored data in the memory if the current update status is updated, and use the stored data as the current vehicle data; a data type acquisition module, configured to acquire the data type of the stored data if the current update status is not updated, the data type including computational and numerical types; a computational data calculation module, configured to obtain computational data according to relevant parameters if the data type of the stored data is computational, and use the computational data as the current vehicle data, the relevant parameters being acquired based on the current vehicle status; and a numerical data reading module, configured to read the stored data in the memory if the data type of the stored data is numerical, and use the stored data as the current vehicle data.
[0013] Embodiments of the present invention also provide an electronic device, the electronic device comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device enables the vehicle data processing method as described in any of the above embodiments.
[0014] Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer's processor, causes the computer to perform any of the vehicle data processing methods described in the above embodiments.
[0015] The beneficial effects of this application are as follows: The embodiments of this invention provide a vehicle data processing method, device, electronic device, and storage medium. The method obtains the current update state of the memory after the vehicle is powered on. The current update state is switched based on the writing and reading of the stored data in the memory. The current update state is used to determine the update state in the memory and prevent the data in the memory from not being updated due to the last abnormal power failure. If the current update state is not updated, the data type of the stored data is obtained. The data type includes computational and numerical types. The computational data can be obtained through verification calculation and used as the current vehicle data, thereby improving the accuracy of the current vehicle data.
[0016] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0018] Figure 1 This is a schematic diagram of a vehicle data processing system shown in an exemplary embodiment of the present invention;
[0019] Figure 2 This is a schematic flowchart of a vehicle data processing method shown in an exemplary embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram illustrating a vehicle data storage and retrieval process based on EEPROM, as shown in an exemplary embodiment of the present invention.
[0021] Figure 4 This is a block diagram illustrating a vehicle data processing apparatus according to an exemplary embodiment of the present invention;
[0022] Figure 5 A schematic diagram of a computer system suitable for implementing embodiments of the present invention is shown. Detailed Implementation
[0023] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0024] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0025] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.
[0026] First, it's important to clarify that EEPROM (Electrically Erasable Programmable Read-Only Memory) is a type of memory chip that retains data even when power is off. EEPROM can be erased and reprogrammed on a computer or dedicated device, and is typically used in plug-and-play applications. EEPROM is a user-modifiable read-only memory (ROM) that can be erased and reprogrammed (rewritten) using voltages higher than normal. Unlike EPROM chips, EEPROM can be modified without being removed from the computer. An EEPROM can be frequently and repeatedly programmed while the computer is in use. EEPROM is a special form of flash memory, typically used in personal computers for erasing, writing, and reprogramming.
[0027] The current vehicle EEPROM storage logic is that when the vehicle stops or is powered off, the MCU directly reads or stores the various stored values it receives. However, when abnormal power-off or other operating conditions cause abnormal stored values, direct reading or storage may result in inaccurate stored data. Using inaccurate stored data as the current vehicle data may lead to a poor user experience or cause more serious adverse consequences. To solve the above problems, embodiments of this application propose a vehicle data processing system, a vehicle data processing method, a vehicle data processing device, an electronic device, and a computer-readable storage medium, which will be described in detail below.
[0028] Please see Figure 1 , Figure 1This is a schematic diagram of a vehicle data processing system illustrated in an exemplary embodiment of the present invention. The vehicle data processing system includes an MCU lower layer, an MCU application layer, and an EEPROM. After the vehicle is powered on, the MCU application layer software receives a storage verification flag bit read from the EEPROM by the MCU lower layer software to obtain the current update status of the memory. If the current update status of the memory is updated, the MCU application layer receives the stored data read from the EEPROM by the MCU lower layer software and uses the read stored data as the current vehicle data. If the current update status of the memory is not updated, the data type of the stored data is obtained. The data type includes computational and numerical types. Computational data is stored data that can be verified through calculation, while numerical data is data whose stored value can only be obtained from the MCU lower layer software. If the data type of the stored data is computational, the MCU application layer software obtains the calculated data based on relevant parameters and uses the calculated data as the current vehicle data. These relevant parameters are obtained based on the current vehicle status; for example, the fuel level is obtained by a sensor to obtain the current fuel level resistance, and then the current fuel level value is calculated based on the fuel level resistance. If the data type of the stored data is numerical, the stored data value in the EEPROM is read and used as the current vehicle data.
[0029] Please see Figure 2 , Figure 2 This is a schematic flowchart of a vehicle data processing method illustrated in an exemplary embodiment of the present invention. In an exemplary embodiment, the vehicle data processing method includes at least steps S210 to S250, which are described in detail below:
[0030] Step S210: After the vehicle is powered on, the current update state of the memory is obtained. The current update state is switched based on the writing and reading of stored data in the memory.
[0031] After the vehicle is powered on, the current update status of the memory is obtained by acquiring the memory check flag. If the memory check flag is "1", it means that the current update status of the memory has been updated. If the memory check flag is "0", it means that the current update status of the memory has not been updated. The memory check flag is set to "1" after each write operation and set to "0" after each read operation. This ensures that when the memory check flag is "1", the current update status is updated and when the memory check flag is "0", the current update status is not updated.
[0032] In one embodiment of the present invention, after the vehicle is powered on but before obtaining the current update state of the memory, the method further includes: if the validity of the received wake-up source signal is invalid, the vehicle is powered off after a preset time, and the wake-up source signal is used to wake up the vehicle from the power-off state; if the validity of the received wake-up source information signal is valid, the vehicle remains powered on until the vehicle receives a power-off command. In this embodiment, the wake-up source can be key wake-up, network management wake-up, DC-DC wake-up, etc. The preset time in this embodiment is a short duration, such as 1 second, which can be set according to different vehicle conditions. The value of this preset time does not limit the scope of this application in any way.
[0033] It's important to understand that DCDC means DC to DC (conversion between different DC power supply values). Any power supply that meets this definition can be called a DC-DC converter.
[0034] Step S220: If the current update status is updated, read the stored data in the memory and use the stored data as the current vehicle data.
[0035] In one embodiment of the present invention, after reading the stored data in the memory, the method further includes: adjusting the current update state of the memory to not updated.
[0036] In one embodiment of the present invention, if the stored data is a stored fuel quantity value, after the vehicle is powered on, the method further includes: if the current update state of the memory is updated, reading the stored fuel quantity value in the memory and adjusting the current update state of the memory to not updated; and displaying the stored fuel quantity value on the vehicle terminal display screen.
[0037] Step S230: If the current update status is not updated, obtain the data type of the stored data. The data type includes computational and numeric types.
[0038] The data type of the stored data can be obtained. Data types include computational and numerical types. If the data type is computational, the relevant data can be obtained through sensors, and the computational data can be calculated based on the relevant data. If the data type is numerical, it can only be obtained by reading the values in the memory.
[0039] Step S240: If the data type of the stored data is computational, the computational data is obtained according to the relevant parameters and used as the current vehicle data. The relevant parameters are obtained based on the current state of the vehicle. In this embodiment, the computational data is a value that can be calculated based on the relevant parameters. If the computational data is not updated, a more accurate value can be calculated based on the relevant parameters.
[0040] In one embodiment of the present invention, different computational data are pre-set with corresponding related parameters. These parameters are obtained based on the current state of the vehicle. For example, the related parameter for the stored fuel level is the fuel resistance, which is obtained by a sensor collecting the current resistance of the vehicle's fuel tank. The current resistance of the vehicle's fuel tank represents the current state of the vehicle. In this embodiment, the stored fuel level is calculated based on a pre-defined mapping relationship between the fuel resistance and the stored fuel level.
[0041] In one embodiment of the present invention, if the stored data is a stored fuel level value, after the vehicle is powered on, the method further includes: if the current update status of the memory is not updated, obtaining the fuel level resistance through a sensor; calculating the fuel level value based on the fuel level resistance, and displaying the calculated fuel level value as a stored fuel level value on the vehicle terminal display screen.
[0042] In one embodiment of the present invention, after displaying the calculated fuel level value as a stored fuel level value on the vehicle terminal display screen, the method further includes: if the vehicle receives a power-off command during operation, before the vehicle is powered off, calculating an updated fuel level value based on the vehicle's operating data after power-on; storing the updated fuel level value in a memory, and adjusting the current update status of the memory to updated.
[0043] In one embodiment of the present invention, if the data type of the stored data is computational, the stored data is corrected through verification calculation after it has been read more than a preset number of times. For example, if the number of reads of the stored oil quantity value since the last correction exceeds 10, then on the 11th read, regardless of whether the current update status is updated or not, the oil quantity resistance is obtained through a sensor, and the calculated oil quantity value is obtained based on the oil quantity resistance. The stored oil quantity value is then corrected based on the calculated oil quantity value, thereby preventing excessive errors in the stored oil quantity value due to calculation errors or external factors such as oil evaporation.
[0044] In another embodiment of the present invention, if the data type of the stored data is computational, then after the stored data has been read for more than a preset period of time, the stored data is corrected through verification calculation. For example, if the stored oil level value has been more than half a month since the last correction, then on the next read, regardless of whether the current update status is updated or not, the oil level resistance is obtained through the sensor, and the calculated oil level value is obtained based on the oil level resistance. The stored oil level value is then corrected based on the calculated oil level value, thereby preventing excessive errors in the stored oil level value due to calculation errors or external factors such as oil evaporation.
[0045] Step S250: If the data type of the stored data is numeric, read the stored data in the memory and use the stored data as the current vehicle data.
[0046] If the data type of the stored data is numerical, a more accurate alternative value cannot be obtained through verification calculation. Therefore, when the numerical data has not been updated, the unupdated stored data in the memory can still be read as the current vehicle data. In this embodiment, the numerical data is a value that cannot be verified and calculated based on relevant parameters, and the stored data of the numerical type can only be read from the memory.
[0047] In one embodiment of the present invention, the vehicle data processing method further includes: if the vehicle receives a power-off command during operation, before the vehicle is powered off, storing the updated storage data in a memory and adjusting the current update status of the memory to updated.
[0048] In one embodiment of the present invention, if the stored data is a stored fuel level value, when the vehicle receives a power-off command during operation, before the vehicle is powered off, the updated stored fuel level value is stored in the memory. The stored fuel level value is continuously updated in real time during vehicle operation. The update of the stored fuel level value is calculated based on the relationship between mileage, average vehicle speed and external factors. After the updated stored fuel level value is stored in the memory, the current update status of the memory is adjusted to updated.
[0049] In one embodiment of the present invention, if the vehicle experiences an unexpected power failure before receiving the power-down command, the updated stored data is not stored in the memory, nor is the current update state of the memory adjusted to updated. When the vehicle is powered on again, the current update state is not updated, and the data reading on the next power-on will execute the unupdated reading strategy.
[0050] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating a vehicle data storage and retrieval process based on EEPROM, as shown in an exemplary embodiment of the present invention.
[0051] according to Figure 3 As shown, when the vehicle receives signals such as key wake-up, network management wake-up, and DC-DC wake-up and enters the power-on process, the MCU application layer software first determines whether the wake-up source is valid. If the wake-up source is determined to be invalid, the vehicle's SVDC will be woken up for more than a preset time and then enter the power-down process again. In this embodiment, the preset time is 1 second. Therefore, if the wake-up source is invalid, the vehicle's SVDC will be woken up for more than 1 second and then enter the power-down process again.
[0052] If the wake-up source is valid, the MCU application layer reads the EEPROM and determines whether the storage check flag bit read from the EEPROM is "1". When the storage check flag bit is "1", it indicates that the current update status of the memory is updated. If the read storage check flag bit is "1", in this embodiment, the stored data read is the stored fuel level value. Then, the stored fuel level value is read, and the mileage is calculated based on the stored fuel level value. After reading the stored fuel level value, the storage check flag bit is set to "0". When the storage check flag bit is "0", it indicates that the current update status of the memory is not updated.
[0053] If the read storage verification flag is "0", the calculated fuel level is obtained through the fuel level resistor, and the mileage is calculated based on the calculated fuel level.
[0054] When the vehicle is in operation, the mileage and stored fuel level are calculated and updated by the fuel level resistor. If the vehicle enters the power-off process, the updated fuel level and mileage data are stored in the EEPROM before the vehicle is powered off, and the storage verification flag is set to "1" before the vehicle is powered off.
[0055] In one embodiment of the present invention, if the vehicle experiences an abnormal situation during the power-down process and fails to complete the normal power-down process, the storage verification flag is not set to "1". When the vehicle is powered on again, it will enter the path where the storage verification flag is "0", that is, the current update status is not updated, to process the data, thereby avoiding the problem of abnormal stored values caused by abnormal power-down.
[0056] In an embodiment of the present invention, after reading the stored data, the current update state of the memory is adjusted to not updated to avoid the problem of abnormal stored values caused by abnormal power-off.
[0057] In an embodiment of the present invention, if the vehicle receives a power-off command during operation, the updated stored data is stored in the memory before the vehicle is powered off, and the current update status is adjusted to "updated". The data in the memory is updated once before the vehicle is powered off each time to ensure the accuracy of the data in the memory.
[0058] In an embodiment of the present invention, if an invalid wake-up source is received, the vehicle cannot be kept in a wake-up state for a long time, nor can the current update state of the memory be changed, and the data in the memory will not be affected.
[0059] In an embodiment of the present invention, if the stored data is the stored oil quantity value and the current update status is updated, the stored oil quantity value in the memory is read directly, and the current status is adjusted to not updated to ensure the accuracy of the data in the memory. After one read, the current status will only be adjusted to updated after the next write.
[0060] In an embodiment of the present invention, if the stored data is a stored oil quantity value and the current update status is not updated, the oil quantity resistance is obtained through a sensor, the calculated oil quantity value is obtained based on the oil quantity resistance, and the calculated oil quantity value is displayed as the stored oil quantity value on the terminal screen, thus ensuring the accuracy of the stored oil quantity value when the current update status is not updated.
[0061] Figure 4 This is a block diagram illustrating a vehicle data processing apparatus according to an exemplary embodiment of the present invention, such as... Figure 4 As shown, the exemplary vehicle data processing device includes a status acquisition module 401, an updated data reading module 402, a data type acquisition module 403, a computational data calculation module 404, and a numerical data reading module 405.
[0062] The status acquisition module 401 is used to acquire the current update status of the memory after the vehicle is powered on. The current update status is switched based on the writing and reading of data stored in the memory.
[0063] The updated data reading module 402 is used to read the stored data in the memory if the current update status is updated, and use the stored data as the current vehicle data;
[0064] The data type acquisition module 403 is used to acquire the data type of the stored data if the current update status is not updated. The data types include computational and numeric types.
[0065] The computational data calculation module 404 is used to obtain calculated data based on relevant parameters if the data stored is of computational type, and to use the calculated data as the current vehicle data. The relevant parameters are obtained based on the current state of the vehicle.
[0066] The numerical data reading module 405 is used to read the stored data in the memory if the data type of the stored data is numerical, and use the stored data as the current vehicle data.
[0067] It should be noted that the vehicle data processing device and the vehicle data processing method provided in the above embodiments belong to the same concept. The specific ways in which each module and unit performs operations have been described in detail in the method embodiments and will not be repeated here. In practical applications, the vehicle data processing device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.
[0068] Embodiments of the present invention also provide an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the vehicle data processing method provided in the above embodiments.
[0069] Figure 5 A schematic diagram of a computer system suitable for implementing embodiments of the present invention is shown. It should be noted that... Figure 5 The computer system 500 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0070] like Figure 5 As shown, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 502 or programs loaded from storage portion 508 into Random Access Memory (RAM) 503, such as performing the methods described in the above embodiments. The RAM 503 also stores various programs and data required for system operation. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An Input / Output (I / O) interface 505 is also connected to the bus 504.
[0071] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.
[0072] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing computer programs for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs various functions defined in the system of the present invention.
[0073] It should be noted that the computer-readable medium shown in the embodiments of the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0074] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0075] The units described in the embodiments of the present invention can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0076] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer's processor, causes the computer to perform the vehicle data processing method as described above. This computer-readable storage medium may be included in the electronic device described in the above embodiments, or it may exist independently and not incorporated into the electronic device.
[0077] Another aspect of the present invention provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the vehicle data processing method provided in the various embodiments described above.
[0078] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A vehicle data processing method, characterized in that, The vehicle data processing method includes: After the vehicle is powered on, the current update state of the memory is obtained, and the current update state is switched based on the writing and reading of data stored in the memory; If the current update status is updated, read the stored data in the memory and use the stored data as the current vehicle data; If the current update status is not updated, obtain the data type of the stored data, which includes computational and numerical types; If the data type of the stored data is computational, then the computational data is obtained according to the relevant parameters, and the computational data is used as the current vehicle data. The relevant parameters are obtained based on the current state of the vehicle. If the data type of the stored data is numerical, the stored data in the memory is read and used as the current vehicle data.
2. The vehicle data processing method according to claim 1, characterized in that, After reading the stored data from the memory, the process further includes: Adjust the current update state of the memory to not updated.
3. The vehicle data processing method according to claim 1, characterized in that, The vehicle data processing method further includes: if the vehicle receives a power-off command during operation, before the vehicle is powered off, storing the updated stored data into the memory, and adjusting the current update status of the memory to updated.
4. The vehicle data processing method according to claim 1, characterized in that, After the vehicle is powered on, before obtaining the current update state of the memory, the following steps are also included: If the received wake-up source signal is invalid, the vehicle is powered off after being powered on for a preset time. The wake-up source signal is used to wake up the vehicle from the power-off state. If the received wake-up source information is valid, the vehicle remains powered on until it receives a power-off command.
5. The vehicle data processing method according to any one of claims 1-4, characterized in that, If the stored data is a stored fuel level value, after the vehicle is powered on, the following steps are also included: If the current update state of the memory is updated, read the stored oil quantity value in the memory and adjust the current update state of the memory to not updated; The stored oil level is displayed on the vehicle terminal display screen.
6. The vehicle data processing method according to any one of claims 1-4, characterized in that, If the stored data is a stored fuel level, after the vehicle is powered on, the following steps are also included: If the current update status of the memory is not updated, the oil level resistance is obtained through the sensor; The calculated fuel level is obtained based on the fuel level resistor, and the calculated fuel level is displayed as the stored fuel level on the vehicle terminal display screen.
7. The vehicle data processing method according to claim 6, characterized in that, After displaying the calculated fuel level as the stored fuel level on the vehicle terminal display screen, the method further includes: If the vehicle receives a power-off command during operation, the fuel level is updated based on the vehicle's operating data after power-on before the vehicle is powered off. The updated oil quantity value is stored in the memory, and the current update status of the memory is adjusted to "updated".
8. A vehicle data processing device, characterized in that, The vehicle data processing device includes: The status acquisition module is used to acquire the current update status of the memory after the vehicle is powered on. The current update status is switched based on the writing and reading of data stored in the memory. The updated data reading module is used to read the stored data in the memory and use the stored data as the current vehicle data if the current update status is updated. The data type acquisition module is used to acquire the data type of the stored data if the current update status is not updated, and the data type includes computational type and numerical type. A computational data calculation module is used to obtain computational data based on relevant parameters if the data type of the stored data is computational, and to use the computational data as the current vehicle data, wherein the relevant parameters are obtained based on the current state of the vehicle. A numerical data reading module is used to read the stored data in the memory if the data type of the stored data is numerical, and to use the stored data as the current vehicle data.
9. An electronic device, characterized in that, The electronic device includes: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the electronic device to implement the vehicle data processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by the computer's processor, causes the computer to perform the vehicle data processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
EEPROM power-down protection control method and device, storage medium and storage equipment
CN112053727A
Air conditioner parameter updating method and device
CN110895008A
Network fault risk detection method, device and equipment and readable storage medium
CN111884860A