CN109947687B - System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium - Google Patents

System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium Download PDF

Info

Publication number
CN109947687B
CN109947687B CN201910234073.XA CN201910234073A CN109947687B CN 109947687 B CN109947687 B CN 109947687B CN 201910234073 A CN201910234073 A CN 201910234073A CN 109947687 B CN109947687 B CN 109947687B
Authority
CN
China
Prior art keywords
eeprom
signal
storage
signals
attribute information
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.)
Active
Application number
CN201910234073.XA
Other languages
Chinese (zh)
Other versions
CN109947687A (en
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.)
Deep Blue Automotive Technology Co ltd
Original Assignee
Chongqing Changan New Energy Automobile Technology 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 New Energy Automobile Technology Co Ltd filed Critical Chongqing Changan New Energy Automobile Technology Co Ltd
Priority to CN201910234073.XA priority Critical patent/CN109947687B/en
Publication of CN109947687A publication Critical patent/CN109947687A/en
Application granted granted Critical
Publication of CN109947687B publication Critical patent/CN109947687B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a system, a method and a device for configuring an EEPROM storage interface of a vehicle control unit and a computer readable storage medium, which can automatically read an EEPROM signal in a signal file to be transcoded, extract an initial EEPROM signal from the signal file, convert the initial EEPROM signal into a signal type supporting a C language form to obtain the EEPROM signal, further extract attribute information of each EEPROM signal, allocate the attribute information of each EEPROM signal to a storage space of an EEPROM, allocate the EEPROM signal to a corresponding storage position by using the allocated storage space and attribute information of each EEPROM signal, so as to call a function in a preset C language form corresponding to each storage position, complete the configuration of the EEPROM storage interface, convert the EEPROM signal into a code in the C language form, automatically complete the automatic configuration of the EEPROM interface, and improve the configuration efficiency and accuracy of the EEPROM interface.

Description

System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium
Technical Field
The invention relates to the field of computer storage, in particular to a system, a method and a device for configuring an EEPROM (electrically erasable programmable read-only memory) storage interface of a vehicle controller and a computer-readable storage medium.
Background
The vehicle control unit assembly is generally called as the brain of the new energy vehicle in the industry, and forms three major core parts of the new energy vehicle together with the battery module and the battery management controller. The vehicle control unit assembly is used as a vehicle 'brain', has core functions of energy management, torque control, human-computer interaction and the like of a vehicle, and has the core functions, namely the vehicle control unit assembly needs extremely huge data to perform corresponding calculation, in the data, various historical data of the vehicle are often involved, and the storage of the historical data relates to an important module: an EEPROM memory module (Electrically Erasable Programmable read only memory). At present, the EEPROM module software of the vehicle control unit assembly is developed manually by a controller software development engineer according to a signal list stored as required, and along with the increasingly powerful functions of the controller, data to be stored is also increased, and excessive signal storage will cause the difficulty of manual development to be higher and higher, and the time consumption to be longer and longer, and errors are easy to occur.
In view of the complexity and importance of the EEPROM memory module of the vehicle controller assembly, a method for configuring an EEPROM memory interface is needed, which can improve software development efficiency and quality, and ensure the correctness of historical data of the vehicle controller assembly, so as to ensure the normal operation of various functions of the vehicle.
Disclosure of Invention
In view of the above, the present invention provides a system, a method, a device and a computer-readable storage medium for configuring an EEPROM storage interface of a vehicle controller, so as to improve configuration efficiency. The specific scheme is as follows:
a vehicle control unit EEPROM storage interface configuration system comprises:
the file loading module is used for loading a signal file to be transcoded; the signal file comprises various EEPROM signals;
the signal reading module is used for reading all initial EEPROM signals in the signal file;
the signal type changing module is used for changing the signal type which is not supported by the C language in all the initial EEPROM signals into the signal type which is supported by the C language to obtain all the EEPROM signals;
the attribute extraction module is used for extracting attribute information of all EEPROM signals;
the storage space distribution module is used for distributing the storage space of each EEPROM signal in the EEPROM by utilizing the attribute information of each EEPROM signal;
and the storage position allocation module is used for allocating the attribute information of each EEPROM signal to a corresponding storage position according to the storage space and the attribute information of each EEPROM signal so as to provide a function call in a preset C language form corresponding to each storage position, and complete the configuration of the EEPROM storage interface.
Optionally, the file loading module is specifically configured to load an EEPROM signal interface list.
Optionally, the signal reading module includes:
the Sheet table screening unit is used for reading a Sheet table comprising EEPROM signals in an EEPROM signal interface list by utilizing a keyword EEPROM;
and the signal reading unit is used for reading all initial EEPROM signals from each sheet table and removing the blank contents in the sheet table.
Optionally, the signal type changing module is specifically configured to change a boul type signal in all initial EEPROM signals into a uint8 type signal, so as to obtain all EEPROM signals.
Optionally, the storage space allocating module includes:
the signal attribute judging unit is used for judging whether the current EEPROM signal can be cleared or not by utilizing the attribute information of the current EEPROM signal;
the clearing space distribution unit is used for distributing the current EEPROM signal to the clearing space when the signal attribute judgment module judges that the current EEPROM signal can be cleared;
and the non-removable allocation unit is used for allocating the current EEPROM signal to the non-removable space when the signal attribute judgment module judges that the current EEPROM signal is not removable.
Optionally, the storage location allocating module includes:
the setting function allocation unit is used for allocating the initial value and the default value recorded in the attribute information of each EEPROM signal to a corresponding structural body for caching according to the storage space of each EEPROM signal so as to be used for calling the setting function in the preset C language form corresponding to the structural body, wherein the setting function is a function for setting the initial value and the default value;
the storage function allocation unit is used for assigning each EEPROM signal to a corresponding storage position according to the storage space and the attribute information of each EEPROM signal so as to call a storage function in a preset C language form corresponding to the storage position;
and the reading function distribution unit is used for reading each EEPROM signal from the corresponding storage position to the corresponding cache for storage according to the storage space and the attribute information of each EEPROM signal, and calling the reading function in the preset C language form corresponding to the cache.
The invention also discloses a configuration method of the EEPROM storage interface of the whole vehicle controller, which comprises the following steps:
loading a signal file to be transcoded; the signal file comprises various EEPROM signals;
reading all initial EEPROM signals in the signal file;
changing the signal type which is not supported by the C language in all the initial EEPROM signals into the signal type which is supported by the C language to obtain all the EEPROM signals;
extracting attribute information of all EEPROM signals;
distributing the storage space of each EEPROM signal in the EEPROM by using the attribute information of each EEPROM signal;
and according to the storage space and the attribute information of each EEPROM signal, distributing each EEPROM signal and the attribute information to a corresponding storage position for function call in a preset C language form corresponding to each storage position to complete the configuration of the EEPROM storage interface.
Optionally, the process of loading the signal file to be transcoded includes:
and loading an EEPROM signal interface list.
Optionally, the process of reading all initial EEPROM signals in the signal file includes:
reading a sheet table containing EEPROM signals in an EEPROM signal interface list by using a keyword EEPROM;
and reading all initial EEPROM signals from each sheet table, and removing the blank contents in the sheet table.
Optionally, the step of changing the non-C-language-supported signal type in all the initial EEPROM signals into a C-language-supported signal type to obtain all the EEPROM signals includes:
and changing the pool type signal in all the initial EEPROM signals into a u int8 type signal to obtain all the EEPROM signals.
Optionally, the process of allocating a storage space of each EEPROM signal in the EEPROM by using the attribute information of each EEPROM signal includes:
judging whether the current EEPROM signal can be cleared or not by utilizing the attribute information of the current EEPROM signal;
if yes, distributing the current EEPROM signal to the cleanable space;
if not, distributing the current EEPROM signal to the unclonable space.
Optionally, the allocating each EEPROM signal and the attribute information to a corresponding storage location according to the storage space and the attribute information of each EEPROM signal, so as to provide a process of function call in a preset C language form corresponding to each storage location, including:
according to the storage space of each EEPROM signal, distributing the initial value and the default value recorded in the attribute information of each EEPROM signal to a corresponding structural body for caching so as to call a preset function in a C language form corresponding to the structural body, wherein the setting function is a function for setting the initial value and the default value;
assigning each EEPROM signal to a corresponding storage position according to the storage space and attribute information of each EEPROM signal so as to call a storage function in a preset C language form corresponding to the storage position;
and reading each EEPROM signal from the corresponding storage position to the corresponding cache for storage according to the storage space and the attribute information of each EEPROM signal, and calling a read function in a preset C language form corresponding to the cache.
The invention also discloses a device for configuring the EEPROM storage interface of the whole vehicle controller, which comprises:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the configuration method of the EEPROM storage interface of the whole vehicle controller.
The invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the configuration method of the whole vehicle controller EEPROM storage interface is realized.
In the invention, the whole vehicle controller EEPROM storage interface configuration system comprises: the file loading module is used for loading a signal file to be transcoded; the signal file comprises various EEPROM signals; the signal reading module is used for reading all initial EEPROM signals in the signal file; the signal type changing module is used for changing the signal types which are not supported by the C language in all the initial EEPROM signals into the signal types which are supported by the C language to obtain all the EEPROM signals; the attribute extraction module is used for extracting attribute information of all EEPROM signals; the storage space distribution module is used for distributing the storage space of each EEPROM signal in the EEPROM by utilizing the attribute information of each EEPROM signal; and the storage position allocation module is used for allocating the attribute information of each EEPROM signal to a corresponding storage position according to the storage space and the attribute information of each EEPROM signal so as to provide a function call in a preset C language form corresponding to each storage position, and complete the configuration of the EEPROM storage interface.
The invention automatically reads the EEPROM signals in the signal files to be transcoded, extracts the initial EEPROM signals from the signal files, converts the initial EEPROM signals into signal types supporting the C language form to obtain the EEPROM signals, further extracts the attribute information of each EEPROM signal, distributes the attribute information of each EEPROM signal in the storage space of the EEPROM, distributes the EEPROM signals to corresponding storage positions by using the storage space and the attribute information distributed by each EEPROM signal to call the function in the preset C language form corresponding to each storage position to complete the configuration of the EEPROM storage interface, realizes the conversion of the EEPROM signals into codes in the C language form, and automatically completes the automatic configuration of the EEPROM interface, thereby improving the configuration efficiency and accuracy of the EEPROM interface.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a configuration system of an EEPROM storage interface of a vehicle control unit according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of another whole vehicle controller EEPROM storage interface configuration system disclosed in the embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for configuring an EEPROM storage interface of a vehicle control unit according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of another configuration method of an EEPROM storage interface of a vehicle control unit according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a configuration system of an EEPROM (electrically erasable programmable read-only memory) storage interface of a vehicle controller, which is shown in figure 1 and comprises the following components:
the file loading module 11 is used for loading a signal file to be transcoded; the signal file includes a variety of EEPROM signals.
Specifically, a signal file including various EEPROM signals may be input to a designated storage area in the system in advance by a user, so that the signal file in the designated storage area is actively loaded by the file loading module 11 after the system is operated, and is subsequently read.
And a signal reading module 12, configured to read all initial EEPROM signals in the signal file.
It can be understood that the word recognition technology can be utilized, and all initial EEPROM signals are read from the signal file in a keyword extraction mode, so that the EEPROM signals are screened from the signal file; since the EEPROM signals in the signal file may be stored in various types, for example, several types, such as a pool type, a uint8 type, or a uint16 type, when the EEPROM signals are initially read from the signal file, the EEPROM signals still remain the signal types in the signal file, and thus, are referred to as initial EEPROM signals herein to distinguish the EEPROM signals of the subsequent changed signal types.
And a signal type changing module 13, configured to change a signal type that is not supported by the C language in all the initial EEPROM signals into a signal type that is supported by the C language, so as to obtain all the EEPROM signals.
Specifically, in order to enable the EEPROM signals to be stored in the EEPROM in the C language form and to be read and called by the function in the C language form, the non-C language-supported signal type in all the initial EEPROM signals is changed to the C language-supported signal type, so that all the EEPROM signals are obtained, and all the obtained EEPROM signals are the signal types capable of supporting the function reading and calling in the C language form, for example, the uint8 type.
And the attribute extraction module 14 is used for extracting attribute information of all the EEPROM signals.
Specifically, after all the EEPROM signals are read, corresponding attribute information is extracted from all the EEPROM signals, where the attribute information may include a signal name, an initial value, a default value, whether the signal name is a vehicle unique attribute, a signal data type, and other attribute information mutually transmitted by an ASW (application SoftWare layer) and a BSW (base SoftWare layer), and is used for subsequently allocating different storage locations according to different attribute information of each EEPROM.
And a storage space allocation module 15, configured to allocate a storage space of each EEPROM signal in the EEPROM by using the attribute information of each EEPROM signal.
Specifically, the EEPROM includes two storage spaces, one is a space where data is lost after power failure, which is called a removable space, and the other is a space where data is not lost after power failure, which is called an unremovable space, so that it is possible to allocate a storage space of the EEPROM signal in the EEPROM by using whether the attribute information of each EEPROM signal is a vehicle-specific attribute or a signal data type.
And the storage location allocation module 16 is configured to allocate each EEPROM signal and attribute information to a corresponding storage location according to the storage space and attribute information of each EEPROM signal, so as to provide a function call in a preset C language form corresponding to each storage location, and complete configuration of an EEPROM storage interface.
It should be noted that, the configuration of the EEPROM interface may be completed by configuring a function corresponding to the interface function, and different functions correspond to different interface functions, for example, the control interface implements a corresponding storage function for storage, and the control interface implements a corresponding read function for reading, so that if the EEPROM interface is operated in a code in the C language format, only a relevant function in the C language format needs to be configured.
Specifically, after the storage space of each EEPROM signal is determined, the attribute information of each EEPROM signal is allocated to a specific storage location according to the storage space of each EEPROM signal, the storage location may include a cache, a structural body, a fixed storage location, and the like, different storage locations correspond to different functions in the C language format, each function corresponds to a corresponding storage location, the function in the C language format is a pre-generated function template, and by storing the attribute information of the EEPROM signal to the corresponding storage location, the function can read and call the attribute information of the EEPROM signal in the corresponding storage location, thereby assigning the function, obtaining a complete function, and implementing configuration of the EEPROM interface.
Therefore, the embodiment of the invention automatically reads the EEPROM signals in the signal file to be transcoded, extracts the initial EEPROM signals from the signal file, converts the initial EEPROM signals into the signal type supporting the C language form to obtain the EEPROM signals, further extracts the attribute information of each EEPROM signal, distributes the attribute information of each EEPROM signal to the storage space of the EEPROM, distributes the EEPROM signals to the corresponding storage positions by using the storage space and the attribute information distributed by each EEPROM signal to call the function in the preset C language form corresponding to each storage position, completes the configuration of the EEPROM storage interface, realizes the conversion of the EEPROM signals into the codes in the C language form, and automatically completes the automatic configuration of the EEPROM interface, thereby improving the configuration efficiency and accuracy of the EEPROM interface.
The embodiment of the invention discloses a specific configuration system of an EEPROM (electrically erasable programmable read-only memory) storage interface of a vehicle controller, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme. Referring to fig. 2, specifically:
specifically, the file loading module 11 may load the signal file to be transcoded into an EEPROM signal interface list, where a large number of various EEPROM signals are stored in the EEPROM signal interface list in a table form.
Specifically, the signal reading module 12 may include a Sheet table screening unit 121 and a signal reading unit 122; wherein the content of the first and second substances,
the Sheet table screening unit 121 is configured to read a Sheet table including EEPROM signals in the EEPROM signal interface list by using the keyword "EEPROM".
It can be understood that a large amount of information is stored in the EEPROM signal interface list, and also information of some non-EEPROM signals is included, for example, some signals are annotated, in order to improve the efficiency of reading the list, a keyword recognition technology may be used to screen out a Sheet table that meets the requirement, so that useless information may be quickly eliminated, where the keyword may be set to "EEPROM", and a Sheet table whose name includes "EEPROM" is quickly found out, so as to ensure that all screened Sheet tables include EEPROM signals.
And the signal reading unit 122 is configured to read all initial EEPROM signals from each sheet table, and remove blank contents in the sheet table.
Specifically, after the sheet tables are screened out, the content of each table in each sheet table can be read according to rows and/or columns, all initial EEPROM signals are read out from the table, blank rows in the table are eliminated simultaneously, interference of invalid data is avoided, and meanwhile, the occupation amount of a storage space can be reduced; the read initial EEPROM signal may be temporarily stored in a corresponding preset structure body for buffering, so as to be processed later.
Specifically, the signal type changing module 13 may be specifically configured to change a boul type signal that does not support the C language format in all the initial EEPROM signals into a uint8 type signal that supports the C language format, so as to obtain all the EEPROM signals; of course, the signal type changing module 13 may also convert other signal types that do not support the C language format into other signal types that support the C language format, and the embodiment of the present invention is not limited in this respect.
Specifically, the storage space allocation module 15 may specifically include a signal attribute determination unit 151, a clear space allocation unit 152, and an unclonable allocation unit 153; wherein, the first and the second end of the pipe are connected with each other,
a signal attribute judging unit 151 for judging whether the current EEPROM signal can be erased using attribute information of the current EEPROM signal;
a clear space allocation unit 152, configured to allocate the current EEPROM signal to the removable space when the signal attribute determination module determines that the current EEPROM signal is removable;
the unclonable allocation unit 153 is configured to allocate the current EEPROM signal to the unclonable space when the signal attribute determination module determines that the current EEPROM signal is unclonable.
Specifically, the attribute determination of all EEPROM signals may be performed one by one, for example, it may be first determined whether the EEPROM signals are indelible signals one by one, the indelible signals are allocated to the indelible space one by one using the indelible allocation unit 153, the unallocated EEPROM signals are then determined whether the EEPROM signals are purgeable signals one by one, and the purgeable signals are allocated to the purgeable space one by one using the purgeable allocation unit, thereby completing the allocation of the storage space for all EEPROM signals.
Wherein, whether the current EEPROM signal can be cleared or not can be judged by utilizing whether the current EEPROM signal is the inherent attribute of the vehicle and the signal data type.
Specifically, the storage location allocating module 16 may specifically include a setting function allocating unit 161, a storage function allocating unit 162, and a reading function allocating unit 163; wherein the content of the first and second substances,
the setting function allocating unit 161 is configured to allocate the initial value and the default value recorded in the attribute information of each EEPROM signal to a corresponding structure for caching according to the storage space of each EEPROM signal, so as to provide a setting function call in the preset C language format corresponding to the structure, where the setting function is a function for setting the initial value and the default value.
Specifically, the initial values and the default values recorded in the attribute information of the EEPROM signals are allocated to the corresponding structural bodies according to the storage space of the EEPROM signals to be cached, for example, the initial values and the default values of the EEPROM signals in the erasable space are allocated to the structural bodies corresponding to the erasable space to be cached, the initial values and the default values of the EEPROM signals in the non-erasable space are allocated to the structural bodies corresponding to the non-erasable space to be cached, the initial values and the default values of the EEPROM signals are allocated to the corresponding structural bodies to be cached, which is equivalent to assigning the initial values and the default values to the setting functions corresponding to the structural bodies, the setting functions can call the initial values and the default values in the structural bodies by using the correspondence between the initial values and the default values in advance, so as to realize the subsequent calling functions for the initial values and the default values, the setting functions can call the corresponding initial values and the default values according to names of the EEPROM signals provided by other functions, and the setting functions also establish the correspondence between the names of the EEPROM signals and the corresponding initial values and the default values while storing the initial values and the default values in the structural bodies.
And the storage function allocation unit 162 is configured to assign each EEPROM signal to a corresponding storage location according to the storage space and the attribute information of each EEPROM signal, so as to provide a storage function call in the preset C language form corresponding to the storage location.
Specifically, the distribution process principle of the same set function is the same, the judgment is performed one by one according to whether the storage space of each EEPROM signal is a removable space, and then the EEPROM signals are distributed to the storage positions corresponding to different storage spaces according to the attribute information of the signal name transmitted to the BSW by the ASW of the EEPROM signals, so that the storage function can call the corresponding EEPROM signals, and the assignment of the storage function and the interface configuration of the EEPROM are realized.
And the read function allocating unit 163 is configured to read each EEPROM signal from the corresponding storage location to the corresponding cache according to the storage space and the attribute information of each EEPROM signal, and store the read function in the preset C language format corresponding to the cache.
Specifically, the storage position of each EEPROM signal in different storage spaces is found according to the storage space of each EEPROM signal, and then each EEPROM signal is read from the storage position into a cache corresponding to the attribute information that each EEPROM signal BSW transfers to the ASW for storage, so that the read function can call the corresponding EEPROM signal, thereby implementing assignment of the read function and interface configuration of the EEPROM.
Correspondingly, the embodiment of the invention also discloses a configuration method of the EEPROM storage interface of the vehicle control unit, which is shown in fig. 3 and comprises the following steps:
s11: loading a signal file to be transcoded; the signal file comprises various EEPROM signals;
s12: reading all initial EEPROM signals in the signal file;
s13: changing the signal type which is not supported by the C language in all the initial EEPROM signals into the signal type which is supported by the C language to obtain all the EEPROM signals;
s14: extracting attribute information of all EEPROM signals;
s15: distributing the storage space of each EEPROM signal in the EEPROM by using the attribute information of each EEPROM signal;
s16: and according to the storage space and the attribute information of each EEPROM signal, distributing each EEPROM signal and the attribute information to a corresponding storage position for function call in a preset C language form corresponding to each storage position to complete the configuration of the EEPROM storage interface.
In addition, the embodiment of the invention discloses a specific configuration method of an EEPROM storage interface of a vehicle controller, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme.
Referring to fig. 4, specifically:
s21: loading an EEPROM signal interface list;
specifically, when the signal file to be transcoded is an EEPROM signal interface list, the above S12 may include S121 and S122 in the embodiment of the present invention; wherein the content of the first and second substances,
s121: reading a sheet table containing EEPROM signals in an EEPROM signal interface list by using a keyword EEPROM;
s122; and reading all initial EEPROM signals from each sheet table, and removing the blank contents in the sheet table.
S23: and changing the pool type signal in all the initial EEPROM signals into a u int8 type signal to obtain all the EEPROM signals.
S24: extracting attribute information of all EEPROM signals;
specifically, the above S15 may specifically include S151 to S153 in the embodiment of the present invention; wherein the content of the first and second substances,
s151: judging whether the current EEPROM signal can be cleared or not by utilizing the attribute information of the current EEPROM signal;
s152: if yes, distributing the current EEPROM signal to the cleanable space;
s153: if not, the current EEPROM signal is allocated to the unclonable space.
Specifically, the above S16 may specifically include S161 to S163 in the embodiment of the present invention; wherein the content of the first and second substances,
s161: according to the storage space of each EEPROM signal, distributing the initial value and the default value recorded in the attribute information of each EEPROM signal to a corresponding structural body for caching so as to call a preset function in a C language form corresponding to the structural body, wherein the setting function is a function for setting the initial value and the default value;
s162: assigning each EEPROM signal to a corresponding storage position according to the storage space and attribute information of each EEPROM signal so as to call a storage function in a preset C language form corresponding to the storage position;
s163: and reading each EEPROM signal from a corresponding storage position to a corresponding cache for storage according to the storage space and the attribute information of each EEPROM signal, and calling a preset reading function in a C language form corresponding to the cache.
In addition, the embodiment of the invention also discloses a device for configuring the EEPROM storage interface of the whole vehicle controller, which comprises the following components:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the configuration method of the EEPROM storage interface of the whole vehicle controller.
In addition, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program realizes the configuration method of the whole vehicle controller EEPROM storage interface.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 invention.
The technical content provided by the present invention is described in detail above, and the principle and the implementation of the present invention are explained by applying specific examples herein, and the description of the above examples is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A vehicle control unit EEPROM storage interface configuration system is characterized by comprising:
the file loading module is used for loading a signal file to be transcoded; the signal file comprises various EEPROM signals;
the signal reading module is used for reading all initial EEPROM signals in the signal file;
the signal type changing module is used for changing the signal type which is not supported by the C language in all the initial EEPROM signals into the signal type which is supported by the C language to obtain all the EEPROM signals;
the attribute extraction module is used for extracting attribute information of all EEPROM signals;
the storage space distribution module is used for distributing the storage space of each EEPROM signal in the EEPROM by utilizing the attribute information of each EEPROM signal;
and the storage position allocation module is used for allocating the attribute information of each EEPROM signal to a corresponding storage position according to the storage space and the attribute information of each EEPROM signal so as to provide a function call in a preset C language form corresponding to each storage position, and complete the configuration of the EEPROM storage interface.
2. The vehicle control unit EEPROM storage interface configuration system of claim 1, wherein the file loading module is specifically configured to load an EEPROM signal interface list.
3. The vehicle control unit EEPROM memory interface configuration system of claim 2, wherein the signal reading module comprises:
the Sheet table screening unit is used for reading a Sheet table comprising EEPROM signals in an EEPROM signal interface list by utilizing a keyword EEPROM;
and the signal reading unit is used for reading all initial EEPROM signals from each sheet table and removing the blank contents in the sheet table.
4. The vehicle control unit EEPROM memory interface configuration system of claim 1, wherein the signal type modification module is specifically configured to modify a boul type signal of all the initial EEPROM signals into a u 8 type signal, so as to obtain all the EEPROM signals.
5. The vehicle control unit EEPROM memory interface configuration system of any one of claims 1 to 4, wherein the memory space allocation module comprises:
the signal attribute judging unit is used for judging whether the current EEPROM signal can be cleared or not by utilizing the attribute information of the current EEPROM signal;
the clearing space distribution unit is used for distributing the current EEPROM signal to the clearing space when the signal attribute judgment module judges that the current EEPROM signal can be cleared;
and the non-removable allocation unit is used for allocating the current EEPROM signal to the non-removable space when the signal attribute judgment module judges that the current EEPROM signal is not removable.
6. The vehicle control unit EEPROM memory interface configuration system of claim 5, wherein the memory location allocation module comprises:
the setting function allocation unit is used for allocating the initial value and the default value recorded in the attribute information of each EEPROM signal to a corresponding structural body for caching according to the storage space of each EEPROM signal so as to be used for calling the setting function in the preset C language form corresponding to the structural body, wherein the setting function is a function for setting the initial value and the default value;
the storage function allocation unit is used for assigning each EEPROM signal to a corresponding storage position according to the storage space and the attribute information of each EEPROM signal so as to call a storage function in a preset C language form corresponding to the storage position;
and the reading function allocation unit is used for reading each EEPROM signal from the corresponding storage position to the corresponding cache for storage according to the storage space and the attribute information of each EEPROM signal, so as to call the reading function in the preset C language form corresponding to the cache.
7. A configuration method for an EEPROM storage interface of a vehicle controller is characterized by comprising the following steps:
loading a signal file to be transcoded; the signal file comprises various EEPROM signals;
reading all initial EEPROM signals in the signal file;
changing the signal type which is not supported by the C language in all the initial EEPROM signals into the signal type which is supported by the C language to obtain all the EEPROM signals;
extracting attribute information of all EEPROM signals;
distributing the storage space of each EEPROM signal in the EEPROM by using the attribute information of each EEPROM signal;
and according to the storage space and the attribute information of each EEPROM signal, distributing each EEPROM signal and the attribute information to a corresponding storage position for function call in a preset C language form corresponding to each storage position to complete the configuration of the EEPROM storage interface.
8. The vehicle control unit EEPROM memory interface configuration method of claim 7, wherein the process of loading the signal file to be transcoded comprises:
and loading an EEPROM signal interface list.
9. The configuration method for the EEPROM storage interface of the vehicle controller according to claim 8, wherein the reading out all the initial EEPROM signals in the signal file includes:
reading a sheet table containing EEPROM signals in an EEPROM signal interface list by using a keyword EEPROM;
and reading all initial EEPROM signals from each sheet table, and removing the blank contents in the sheet table.
10. The vehicle control unit EEPROM memory interface configuration method of claim 7, wherein the process of changing the non-C language supported signal type in all initial EEPROM signals to a C language supported signal type to obtain all EEPROM signals comprises:
and changing the pool type signal in all the initial EEPROM signals into a u int8 type signal to obtain all the EEPROM signals.
11. The configuration method of the EEPROM storage interface of the vehicle control unit according to any one of claims 7 to 10, wherein the process of allocating the storage space of each EEPROM signal in the EEPROM by using the attribute information of each EEPROM signal includes:
judging whether the current EEPROM signal can be cleared or not by utilizing the attribute information of the current EEPROM signal;
if yes, distributing the current EEPROM signal to the cleanable space;
if not, the current EEPROM signal is allocated to the unclonable space.
12. The vehicle control unit EEPROM storage interface configuration method according to claim 11, wherein the process of allocating each EEPROM signal and attribute information to a corresponding storage location according to the storage space and attribute information of each EEPROM signal, so as to provide a function call in a preset C language corresponding to each storage location comprises:
according to the storage space of each EEPROM signal, distributing the initial value and the default value recorded in the attribute information of each EEPROM signal to a corresponding structural body for caching so as to call a preset function in a C language form corresponding to the structural body, wherein the setting function is a function for setting the initial value and the default value;
assigning each EEPROM signal to a corresponding storage position according to the storage space and attribute information of each EEPROM signal so as to call a storage function in a preset C language form corresponding to the storage position;
and reading each EEPROM signal from a corresponding storage position to a corresponding cache for storage according to the storage space and the attribute information of each EEPROM signal, and calling a preset reading function in a C language form corresponding to the cache.
13. A vehicle control unit EEPROM storage interface configuration device is characterized by comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the vehicle control unit EEPROM storage interface configuration method according to any one of claims 7 to 12.
14. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the method for configuring the EEPROM storage interface of the vehicle control unit as claimed in any one of claims 7 to 12 is implemented.
CN201910234073.XA 2019-03-26 2019-03-26 System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium Active CN109947687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910234073.XA CN109947687B (en) 2019-03-26 2019-03-26 System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910234073.XA CN109947687B (en) 2019-03-26 2019-03-26 System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium

Publications (2)

Publication Number Publication Date
CN109947687A CN109947687A (en) 2019-06-28
CN109947687B true CN109947687B (en) 2022-11-18

Family

ID=67010960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910234073.XA Active CN109947687B (en) 2019-03-26 2019-03-26 System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium

Country Status (1)

Country Link
CN (1) CN109947687B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111460050A (en) * 2020-04-01 2020-07-28 北京汽车集团有限公司 Vehicle information processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5430675A (en) * 1993-05-24 1995-07-04 Matsushita Electronics Corporation An EEPROM Circuit, a memory device having the EEPROM circuit and an IC card having the EEPROM circuit
JPH07175640A (en) * 1993-12-17 1995-07-14 Hudson Soft Co Ltd Function improvement system for electronic equipment
CN104317746A (en) * 2014-10-27 2015-01-28 安徽江淮汽车股份有限公司 Data redundancy access method for EEPROM (electrically erasable programmable read-only memory)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4795956B2 (en) * 2004-08-30 2011-10-19 パナソニック株式会社 Recording apparatus, system, integrated circuit, program, recording method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5430675A (en) * 1993-05-24 1995-07-04 Matsushita Electronics Corporation An EEPROM Circuit, a memory device having the EEPROM circuit and an IC card having the EEPROM circuit
JPH07175640A (en) * 1993-12-17 1995-07-14 Hudson Soft Co Ltd Function improvement system for electronic equipment
CN104317746A (en) * 2014-10-27 2015-01-28 安徽江淮汽车股份有限公司 Data redundancy access method for EEPROM (electrically erasable programmable read-only memory)

Also Published As

Publication number Publication date
CN109947687A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN105404521B (en) A kind of method for updating increment and relevant apparatus
CN107526743B (en) Method and apparatus for compressing file system metadata
JP5172855B2 (en) Apparatus and method for resource reuse in data storage
US5317723A (en) System and method for automatically relocating and configuring firmware stored in subsystem modules
CN109033338B (en) Method and system for generating database file of automobile communication protocol
CN109947687B (en) System, method and device for configuring EEPROM (electrically erasable programmable read-Only memory) storage interface of vehicle controller and storage medium
JP2004530965A5 (en)
CN102779095A (en) Flash memory device, memory control device, memory control method, and storage system
CN105493095A (en) Adaptive and recursive filtering for sample submission
CN103390005A (en) Method and system for merging documents
CN110515894A (en) A kind of conversion method of data format, device, equipment and readable storage medium storing program for executing
CN101211352A (en) Electronic dictionary data update system and its method
CN109284492B (en) Method and device for generating notification document
CN103246605A (en) Method and system for collocating remote controller key values based on xml (extensive markup language)
CN102880690A (en) Method for simplifying character library of electronic book, and processing device for electronic book
CN110826619A (en) File classification method and device of electronic files and electronic equipment
CN110222046A (en) Processing method, device, server and the storage medium of table data
CN108205559B (en) Data management method and equipment thereof
CN103778219A (en) HBase-based method for updating incremental indexes
JP5526991B2 (en) Information processing apparatus, information processing method, program, information processing system
CN109510812B (en) Intelligent electronic operation instruction book reading board management system and method
CN114153555A (en) Cloud platform PMEM device management method, system, device and storage medium
CN113419672A (en) Storage capacity management method, system and storage medium
JP3461749B2 (en) Transmission line design system and line business support system
CN114817117B (en) Protocol compatibility method, electronic equipment and computer readable storage device

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 401133 room 208, 2 house, 39 Yonghe Road, Yu Zui Town, Jiangbei District, Chongqing

Patentee after: Deep Blue Automotive Technology Co.,Ltd.

Address before: 401133 room 208, 2 house, 39 Yonghe Road, Yu Zui Town, Jiangbei District, Chongqing

Patentee before: CHONGQING CHANGAN NEW ENERGY AUTOMOBILE TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder