CN113641418A - Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment - Google Patents

Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment Download PDF

Info

Publication number
CN113641418A
CN113641418A CN202110843896.XA CN202110843896A CN113641418A CN 113641418 A CN113641418 A CN 113641418A CN 202110843896 A CN202110843896 A CN 202110843896A CN 113641418 A CN113641418 A CN 113641418A
Authority
CN
China
Prior art keywords
configuration parameter
vehicle
area
verification
configuration parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110843896.XA
Other languages
Chinese (zh)
Inventor
李新亮
尤胜坤
林文强
徐梓鼎
欧阳超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hopechart Iot Technology Co ltd
Original Assignee
Hangzhou Hopechart Iot 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 Hangzhou Hopechart Iot Technology Co ltd filed Critical Hangzhou Hopechart Iot Technology Co ltd
Priority to CN202110843896.XA priority Critical patent/CN113641418A/en
Publication of CN113641418A publication Critical patent/CN113641418A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a storage method, a device, equipment and a medium for configuration parameters of vehicle-mounted equipment, wherein the method comprises the following steps: after the vehicle-mounted equipment is powered on, reading a first configuration parameter from a default area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing first verification on the first configuration parameter; if the first verification is successful, reading a second configuration parameter from an update area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing second verification on the second configuration parameter; if the second check fails, reading a third configuration parameter from a backup area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing a third check on the third configuration parameter; if the third verification is successful, completely writing the third configuration parameters into the updating area; and the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally. The method and the device can be used for recovering and updating the configuration parameters of the vehicle-mounted equipment, so that the problem that the configuration parameters are lost under the abnormal condition is solved.

Description

Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment
Technical Field
The invention relates to the technical field of automobile communication, in particular to a storage method, a storage device, equipment and a storage medium for configuration parameters of vehicle-mounted equipment.
Background
In the field of automotive communications, it is generally required that stored configuration parameters have the characteristics of being non-lost, modifiable, and erasable when power is off. Therefore, the in-vehicle device is generally required to be equipped with a nonvolatile line storage device, which is a storage device that can store stored data even when not powered and can be used to store important configuration parameters, and examples of the nonvolatile line storage device include a Read Only Memory (ROM), a programmable ROM (prom), an electrically programmable ROM (eprom), an electrically erasable programmable ROM (eeprom), a flash memory, a phase change random access memory (PRAM), a magnetic ram (mram), a resistance ram (rram), a ferroelectric ram (fram), and the like.
When the configuration parameters are updated, if abnormal power failure of the equipment occurs or environmental interference is strong, the configuration parameters stored in errors may occur. In general, if the vehicle-mounted terminal stores the wrong configuration parameters, the parameters can only be restored to factory settings, and the configuration parameters that have been changed will be lost, thereby affecting the actual use.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a storage method and a storage device for vehicle-mounted equipment configuration parameters, which are used for recovering and updating the vehicle-mounted equipment configuration parameters, avoiding executing the configuration parameters to recover factory settings and ensuring the stable and normal operation of the vehicle-mounted equipment.
Specifically, the invention is realized by the following technical scheme:
in a first aspect, the present invention provides a storage method for configuration parameters of a vehicle-mounted device, including:
after the vehicle-mounted equipment is powered on, reading a first configuration parameter from a default area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing first verification on the first configuration parameter;
if the first verification is successful, reading a second configuration parameter from an update area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing second verification on the second configuration parameter;
if the second check fails, reading a third configuration parameter from a backup area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing a third check on the third configuration parameter;
if the third verification is successful, completely writing the third configuration parameters into the updating area;
and the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
Further, the method further comprises: and when the first verification fails and/or the third verification fails, the vehicle-mounted equipment performs failure reporting processing.
Further, the method further comprises: writing the updated configuration parameters into the update area in real time, performing fourth verification on the updated configuration parameters, and completely writing the updated configuration parameters into the configuration parameters of the update backup area of the backup area if the fourth verification is successful; if the fourth check fails, no task action is performed.
Further, the method further comprises: and in the normal operation process of the vehicle-mounted equipment, comparing the configuration parameters contained in the updating area and the backup area at preset time intervals, if the comparison result is consistent, not executing any task action, and if the comparison result is inconsistent, writing the configuration parameters contained in the updating area into the backup area.
Further, the header mark fields of the corresponding areas are stored at the starting positions in the default area, the update area and the backup area, and the check information of the corresponding areas is stored at the ending positions in the default area, the update area and the backup area.
Further, the method adopts a CRC check mode to check the configuration parameters of each area.
In a second aspect, the present invention provides a storage apparatus for vehicle-mounted device configuration parameters, including:
the first verification module is used for reading a first configuration parameter from a default area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment after the vehicle-mounted equipment is powered on, and performing first verification on the first configuration parameter;
the second check module is used for reading a second configuration parameter from an update area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment and carrying out second check on the second configuration parameter if the first check is successful;
the third verification module is used for reading a third configuration parameter from a backup area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment and performing third verification on the third configuration parameter if the second verification fails;
a writing module, configured to write the third configuration parameter into the update area completely if the third verification is successful;
and the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
In a third aspect, the present invention provides a storage apparatus for vehicle-mounted device configuration parameters, including:
a non-volatile memory for storing the configuration parameters and including a default area, an update area, and a backup area;
the first reading module is used for reading a first configuration parameter from the default area and carrying out first verification on the first configuration parameter when the vehicle-mounted equipment is powered on;
the second reading module is used for reading the second configuration parameters from the updating area and carrying out second check on the second configuration parameters;
the third reading module is used for reading a third configuration parameter from the backup area and carrying out third verification on the third configuration parameter;
the first writing module writes the third configuration parameter into the update section if the second verification fails and the third verification succeeds.
In a fourth aspect, the present invention provides an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the storage method for configuration parameters of an in-vehicle device according to any one of the first aspect when executing the computer program.
In a fifth aspect, the present invention provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the storage method for in-vehicle device configuration parameters according to any one of the first aspect.
The method comprises the steps of reading a first configuration parameter from a default area of the vehicle-mounted equipment, carrying out first verification on the first configuration parameter, reading a second configuration parameter from an update area of the vehicle-mounted equipment and carrying out second verification on the second configuration parameter if the first verification is successful, reading a third configuration parameter from a backup area and carrying out third verification on the third configuration parameter if the second verification is failed, completely writing the third configuration parameter into an update area if the third verification is successful, loading the second configuration parameter or the third configuration parameter of the update area by the vehicle-mounted equipment and normally operating, and recovering and updating the configuration parameter of the vehicle-mounted equipment, so that the configuration parameter is prevented from being recovered from factory settings, stable and normal operation of the vehicle-mounted equipment is ensured, and the problem that the configuration parameter is lost under abnormal conditions is solved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow diagram of a storage method for in-vehicle device configuration parameters according to one embodiment of the present invention;
FIG. 2 is a schematic diagram of a storage device for vehicle device configuration parameters according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of a storage device for on-board device configuration parameters according to yet another embodiment of the present invention; and
fig. 4 is a schematic structural diagram of an electronic device according to still another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. 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.
FIG. 1 is a flow diagram of a storage method for on-board device configuration parameters according to one embodiment of the invention. The storage medium area for storing the configuration parameters of the in-vehicle device may be divided into a default area, an update area, and a backup area. The default area stores system initial parameters and can not be modified; the updating area stores updated configuration parameters which can be remotely issued by the platform or updated by a serial port upper computer; the backup area is used for backing up data in the update area, and the content is the same as that of the update area. The start position of each zone is stored with the head mark field of the zone, the end position is stored with the check information of the zone, and the check method adopts the CRC check mode to check the correctness of the configuration parameters in the zone.
Referring to fig. 1, the method flow may generally include:
s101: after the vehicle-mounted equipment is powered on, reading a first configuration parameter from a default area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing first verification on the first configuration parameter;
s102: if the first verification is successful, reading a second configuration parameter from an update area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing second verification on the second configuration parameter;
s103: if the second check fails, reading a third configuration parameter from a backup area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing a third check on the third configuration parameter;
s104: if the third verification is successful, completely writing the third configuration parameters into the updating area;
s105: and the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
Specifically, the present embodiment can be implemented by the following steps:
step 1, after the vehicle-mounted device is powered on, reading a first configuration parameter from a default area, and performing first check on the first configuration parameter (for example, a CRC check mode may be adopted), if the first check is successful, entering step 2, and if the first check is failed, entering step 6;
step 2, reading the second configuration parameter from the update area, and performing a second check on the second configuration parameter (for example, a CRC check may be adopted), if the second check is successful, the step 5 is performed, and if the second check is failed, the step 3 is performed;
step 3, reading a third configuration parameter from the backup area, and performing a third check on the third configuration parameter (for example, a CRC check may be adopted), if the third check is successful, entering step 4, and if the third check is failed, entering step 6;
step 4, completely writing the third configuration parameter into the update area, and then executing step 5;
step 5, the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter and normally operates, and then step 7 is carried out;
step 6, the vehicle-mounted equipment carries out fault reporting processing;
step 7, writing the updated configuration parameters (the configuration parameters can be remotely updated through a platform or updated through a serial port upper computer) into an update area in real time, and then entering step 8;
step 8, performing a fourth check on the updated configuration parameter (for example, a CRC check may be adopted), if the fourth check is successful, performing step 9, and if the fourth check is failed, not performing any task action;
step 9, writing the updated configuration parameters into the backup area completely, and then entering step 10;
step 10, setting a fixed time interval, comparing the configuration parameters contained in the update area and the backup area at the time interval, if the comparison result is consistent, not executing any task action, and if the comparison result is inconsistent, writing the configuration parameters contained in the update area into the backup area.
As can be seen from the foregoing embodiments, the present invention implements recovery and update of configuration parameters of a vehicle-mounted device by verifying configuration parameters in a default area, an update area, and a backup area of a storage medium of the vehicle-mounted device and comparing the configuration parameters in the update area and the backup area, thereby avoiding execution of factory settings for recovery of the configuration parameters, ensuring stable and normal operation of the vehicle-mounted device, and solving a problem that the configuration parameters are lost under an abnormal condition.
Fig. 2 is a schematic diagram of a storage device for vehicle-mounted device configuration parameters according to another embodiment of the present invention.
Referring to fig. 2, a storage apparatus for in-vehicle device configuration parameters according to another embodiment of the present invention may include: the first verification module 201 is configured to, after the vehicle-mounted device is powered on, read a first configuration parameter from a default area of a storage medium storing the configuration parameter of the vehicle-mounted device, and perform first verification on the first configuration parameter; a second verification module 202, configured to, if the first verification is successful, read the second configuration parameter from the update area of the storage medium storing the configuration parameter of the in-vehicle device, and perform a second verification on the second configuration parameter; the third verification module 203 reads the third configuration parameter from the backup area of the storage medium storing the configuration parameter of the vehicle-mounted device and performs third verification on the third configuration parameter if the second verification fails; a writing module 204, configured to write the third configuration parameter completely into the update area if the third verification is successful; and a loading module 205, loading the second configuration parameter or the third configuration parameter of the update area by the vehicle-mounted equipment and normally operating.
Since the storage device for the configuration parameters of the vehicle-mounted device provided by the embodiment of the present invention can be used for executing the storage method for the configuration parameters of the vehicle-mounted device described in the above embodiment, the operation principle and the beneficial effect are similar, so detailed descriptions are omitted here, and specific contents can be referred to the description of the above embodiment.
In this embodiment, it should be noted that each module in the apparatus according to the embodiment of the present invention may be integrated into a whole or may be separately disposed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Fig. 3 is a schematic diagram of a storage device for vehicle-mounted device configuration parameters according to yet another embodiment of the present invention.
Referring to fig. 3, the storage apparatus for in-vehicle device configuration parameters according to still another embodiment of the present invention may include: a nonvolatile memory 301 for storing configuration parameters and including a default area, an update area, and a backup area; the first reading module 302 is used for reading a first configuration parameter from the default area and performing first verification on the first configuration parameter when the vehicle-mounted equipment is powered on; a second reading module 303, configured to read the second configuration parameter from the update area, and perform a second check on the second configuration parameter; a third reading module 304, configured to read a third configuration parameter from the backup area, and perform a third verification on the third configuration parameter; the first writing module 305 writes the third configuration parameter into the update section if the second check fails and the third check succeeds.
Specifically, the first reading module is configured to read configuration parameters of a default area of the nonvolatile memory and verify the configuration parameters of the default area when the vehicle-mounted device is powered on. The verification method can verify the mark information of the head position and the verification information at the tail of the area. And the check mode at the tail adopts a CRC check mode.
And the second reading module is used for reading the configuration parameters of the updating area of the nonvolatile memory and verifying the configuration parameters of the updating area. Generally, in the operation process of the vehicle-mounted device, a situation of abnormal write-in configuration parameters occurs, such as power failure or strong interference on the vehicle, and the area where the configuration parameters are written is an update area of the nonvolatile memory. Therefore, whether the abnormal writing condition exists can be judged by reading the updating area of the nonvolatile storage and checking the read configuration parameters.
The verification method can verify the mark information of the head position and the verification information at the tail of the area. And the check mode at the tail adopts a CRC check mode.
And the third reading module is used for reading the configuration parameters of the backup area of the nonvolatile memory and verifying the configuration parameters of the backup area. When the verification of the configuration parameters of the update area fails, which indicates that the written configuration parameters of the update area are abnormal, the configuration parameters of the update area need to be restored through the backup area. And checking the parameters of the backup area, and if the checking is successful, performing subsequent operation. The verification method can verify the mark information of the head position and the verification information at the tail of the area. And the check mode at the tail adopts a CRC check mode.
And the first writing module is used for updating and writing the configuration parameters of the backup area into the updating area if the configuration parameter verification of the updating area fails and the data verification of the backup area succeeds, so that the configuration parameters of the updating area are recovered to be normal.
In this embodiment, it should be noted that the storage device may check the configuration data by using a CRC check method. In addition, each module in the apparatus according to the embodiment of the present invention may be integrated into a whole, or may be separately deployed, and the modules may be combined into one module, or may be further split into a plurality of sub-modules.
Based on the same inventive concept, another embodiment of the present invention provides an electronic device, which specifically includes the following components, with reference to fig. 4: a processor 401, a memory 402, a communication interface 403, and a communication bus 404; the processor 401, the memory 402 and the communication interface 403 complete communication with each other through the communication bus 404.
The processor 401 is configured to call the computer program in the memory 402, and the processor implements all the steps of the above storage method for the configuration parameters of the vehicle-mounted device when executing the computer program, for example, the processor implements the following processes when executing the computer program: after the vehicle-mounted equipment is powered on, reading a first configuration parameter from the default area, and performing first verification on the first configuration parameter; if the first check is successful, reading the second configuration parameter from the updating area, and performing a second check on the second configuration parameter; if the second check fails, reading a third configuration parameter from the backup area, and performing a third check on the third configuration parameter; if the third verification is successful, completely writing the third configuration parameters into the updating area; and then the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
Based on the same inventive concept, yet another embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements all the steps of the above-mentioned storage method for configuration parameters of an in-vehicle device, for example, the processor implements the following processes when executing the computer program: after the vehicle-mounted equipment is powered on, reading a first configuration parameter from the default area, and performing first verification on the first configuration parameter; if the first check is successful, reading the second configuration parameter from the updating area, and performing a second check on the second configuration parameter; if the second check fails, reading a third configuration parameter from the backup area, and performing a third check on the third configuration parameter; if the third verification is successful, completely writing the third configuration parameters into the updating area; and then the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
Based on the same inventive concept, another embodiment of the present invention provides a computer program product, which includes a computer program, when being executed by a processor, the computer program implements all the steps of the above storage method for configuration parameters of an in-vehicle device, for example, when the processor executes the computer program, the processor implements the following processes: after the vehicle-mounted equipment is powered on, reading a first configuration parameter from the default area, and performing first verification on the first configuration parameter; if the first check is successful, reading the second configuration parameter from the updating area, and performing a second check on the second configuration parameter; if the second check fails, reading a third configuration parameter from the backup area, and performing a third check on the third configuration parameter; if the third verification is successful, completely writing the third configuration parameters into the updating area; and then the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions may be essentially or partially implemented in the form of software products, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the storage method for configuration parameters of the vehicle-mounted device according to various embodiments or some portions of the embodiments.
Moreover, in the present invention, relational terms such as first and second, and the like may be 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 phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Furthermore, in the present disclosure, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A storage method for configuration parameters of vehicle-mounted equipment is characterized by comprising the following steps:
after the vehicle-mounted equipment is powered on, reading a first configuration parameter from a default area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing first verification on the first configuration parameter;
if the first verification is successful, reading a second configuration parameter from an update area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing second verification on the second configuration parameter;
if the second check fails, reading a third configuration parameter from a backup area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment, and performing a third check on the third configuration parameter;
if the third verification is successful, completely writing the third configuration parameters into the updating area;
and the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
2. The storage method for the in-vehicle device configuration parameters according to claim 1, characterized by further comprising: and when the first verification fails and/or the third verification fails, the vehicle-mounted equipment performs failure reporting processing.
3. The storage method for the in-vehicle device configuration parameters according to claim 1, characterized by further comprising: writing the updated configuration parameters into the update area in real time, performing fourth verification on the updated configuration parameters, and completely writing the updated configuration parameters into the configuration parameters of the update backup area of the backup area if the fourth verification is successful; if the fourth check fails, no task action is performed.
4. The storage method for the in-vehicle device configuration parameters according to claim 3, characterized by further comprising: and in the normal operation process of the vehicle-mounted equipment, comparing the configuration parameters contained in the updating area and the backup area at preset time intervals, if the comparison result is consistent, not executing any task action, and if the comparison result is inconsistent, writing the configuration parameters contained in the updating area into the backup area.
5. The storage method for the in-vehicle apparatus configuration parameters according to claim 1,
and storing the header mark fields of the corresponding areas at the starting positions in the default area, the updating area and the backup area, and storing the check information of the corresponding areas at the ending positions in the default area, the updating area and the backup area.
6. The method for storing the configuration parameters of the vehicle-mounted equipment according to any one of claims 1 to 5, characterized in that the configuration parameters of each zone are checked by means of CRC check.
7. A storage device for in-vehicle device configuration parameters, comprising:
the first verification module is used for reading a first configuration parameter from a default area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment after the vehicle-mounted equipment is powered on, and performing first verification on the first configuration parameter;
the second checking module is used for reading a second configuration parameter from an updating area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment and carrying out second checking on the second configuration parameter if the first checking is successful;
the third verification module is used for reading a third configuration parameter from a backup area of a storage medium for storing the configuration parameter of the vehicle-mounted equipment and performing third verification on the third configuration parameter if the second verification fails;
a writing module, configured to write the third configuration parameter into the update area completely if the third verification is successful;
and the vehicle-mounted equipment loads the second configuration parameter or the third configuration parameter of the update area and operates normally.
8. A storage device for in-vehicle device configuration parameters, comprising:
a non-volatile memory for storing the configuration parameters and including a default area, an update area, and a backup area;
the first reading module is used for reading a first configuration parameter from the default area and carrying out first verification on the first configuration parameter when the vehicle-mounted equipment is powered on;
the second reading module is used for reading the second configuration parameters from the updating area and carrying out second check on the second configuration parameters;
the third reading module is used for reading a third configuration parameter from the backup area and carrying out third verification on the third configuration parameter;
the first writing module writes the third configuration parameter into the update section if the second verification fails and the third verification succeeds.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the storage method for configuration parameters of an in-vehicle device according to any one of claims 1 to 6 when executing the computer program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the storage method for on-board device configuration parameters according to any one of claims 1 to 6.
CN202110843896.XA 2021-07-26 2021-07-26 Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment Pending CN113641418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110843896.XA CN113641418A (en) 2021-07-26 2021-07-26 Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110843896.XA CN113641418A (en) 2021-07-26 2021-07-26 Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment

Publications (1)

Publication Number Publication Date
CN113641418A true CN113641418A (en) 2021-11-12

Family

ID=78418293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110843896.XA Pending CN113641418A (en) 2021-07-26 2021-07-26 Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment

Country Status (1)

Country Link
CN (1) CN113641418A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356810A (en) * 2021-12-31 2022-04-15 浪潮(北京)电子信息产业有限公司 Communication connection method, device, equipment and medium for host and storage system
CN116737089A (en) * 2023-08-15 2023-09-12 北京紫光芯能科技有限公司 Method, device and system for storing configuration data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN108664358A (en) * 2018-05-18 2018-10-16 广州视源电子科技股份有限公司 Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device
CN110781026A (en) * 2019-10-25 2020-02-11 宁波三星医疗电气股份有限公司 Embedded equipment data storage and repair method and device and embedded equipment
CN110941394A (en) * 2019-11-13 2020-03-31 通号城市轨道交通技术有限公司 Data reading and writing method and device for automatic train control system
CN111506449A (en) * 2019-01-31 2020-08-07 青岛海尔空调电子有限公司 Air conditioner parameter storage method and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761112A (en) * 2011-12-30 2014-04-30 深圳市大富科技股份有限公司 Vehicle-mounted multimedia device and control method thereof
CN108664358A (en) * 2018-05-18 2018-10-16 广州视源电子科技股份有限公司 Microcontroller parameter processing method, system, readable storage medium storing program for executing and terminal device
CN111506449A (en) * 2019-01-31 2020-08-07 青岛海尔空调电子有限公司 Air conditioner parameter storage method and device and storage medium
CN110781026A (en) * 2019-10-25 2020-02-11 宁波三星医疗电气股份有限公司 Embedded equipment data storage and repair method and device and embedded equipment
CN110941394A (en) * 2019-11-13 2020-03-31 通号城市轨道交通技术有限公司 Data reading and writing method and device for automatic train control system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114356810A (en) * 2021-12-31 2022-04-15 浪潮(北京)电子信息产业有限公司 Communication connection method, device, equipment and medium for host and storage system
CN114356810B (en) * 2021-12-31 2023-08-04 浪潮(北京)电子信息产业有限公司 Communication connection method, device, equipment and medium for host and storage system
CN116737089A (en) * 2023-08-15 2023-09-12 北京紫光芯能科技有限公司 Method, device and system for storing configuration data
CN116737089B (en) * 2023-08-15 2023-11-21 北京紫光芯能科技有限公司 Method, device and system for storing configuration data

Similar Documents

Publication Publication Date Title
CN109032632B (en) FOTA upgrading method, wireless communication terminal and storage medium
CN113641418A (en) Storage method, device, equipment and medium for configuration parameters of vehicle-mounted equipment
CN110244958B (en) Method and device for updating calibration data of a vehicle
CN107239411B (en) Memory management method and system for vehicle-mounted controller
CN112181455B (en) Online upgrading method of microcontroller, microcontroller and storage medium
JP5167936B2 (en) Information processing device
JP7298427B2 (en) Program update system and program update method
CN111506449B (en) Air conditioner parameter storage method and device and storage medium
CN114265613B (en) Method and system for differentially upgrading firmware of all electric control units of whole vehicle
CN106775874B (en) System upgrading method of terminal equipment
CN106095474A (en) For the method and apparatus updating the software in means of transport
CN114915554A (en) Remote upgrading method and device, computer equipment and storage medium
CN105488419A (en) Firmware safe upgrading method and routing device
CN111090541B (en) Data anti-lost method and device of controller, driving computer equipment and storage medium
CN112579105A (en) Flash method of whole vehicle initialization controller and related equipment
CN117407020A (en) OTA upgrade refreshing method and device, electronic equipment and storage medium
JP2012118904A (en) Information processing apparatus
CN116126379A (en) BIOS firmware upgrading method, device, equipment and storage medium
CN111783162B (en) Data protection implementation method and device and computer equipment
CN114356658A (en) Processing method of firmware upgrading exception, computer equipment and readable storage medium
CN116257384A (en) Terminal starting method, electronic device and computer readable storage medium
CN111897583A (en) Equipment starting method and embedded equipment
CN110781031A (en) Controller data recovery method and device, controller and automobile
CN112685053A (en) Remote upgrading control method for single chip microcomputer program
US20230051776A1 (en) Vehicle software management system and method for recovering software thereof

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