CN112925574B - Management method and device of controller and electronic equipment - Google Patents

Management method and device of controller and electronic equipment Download PDF

Info

Publication number
CN112925574B
CN112925574B CN201911242333.4A CN201911242333A CN112925574B CN 112925574 B CN112925574 B CN 112925574B CN 201911242333 A CN201911242333 A CN 201911242333A CN 112925574 B CN112925574 B CN 112925574B
Authority
CN
China
Prior art keywords
application program
program
controller
brushing
application
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
CN201911242333.4A
Other languages
Chinese (zh)
Other versions
CN112925574A (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.)
Qoros Automotive Co Ltd
Original Assignee
Qoros Automotive 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 Qoros Automotive Co Ltd filed Critical Qoros Automotive Co Ltd
Priority to CN201911242333.4A priority Critical patent/CN112925574B/en
Publication of CN112925574A publication Critical patent/CN112925574A/en
Application granted granted Critical
Publication of CN112925574B publication Critical patent/CN112925574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The invention discloses a management method and device of a controller and electronic equipment, wherein the method comprises the following steps: identifying whether the controller is in a power-on state; detecting whether a first application program to be executed is valid or not under the condition that the controller is in a power-on state; if the first application program is invalid, prohibiting the first application program from running and entering an exception handling mode; and if the first application program is valid, running the first application program. According to the method, when the controller is in the power-on state, whether the first application program to be executed is effective is detected, the first application program is operated when the first application program is effective, the first application program is forbidden to be operated when the first application program is ineffective, and meanwhile, an exception handling mode is entered, so that the controller is prevented from operating the ineffective application program, and the stability of the controller is improved.

Description

Management method and device of controller and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for managing a controller, and an electronic device.
Background
In recent years, with the rapid development of the internet of vehicles industry, new energy automobiles are gradually favored by the public, and the occupied market share is also continuously increased. With the improvement of the living standard of people, the requirements on the performance of automobiles are also continuously improved. Therefore, the development and market application of controllers in vehicles often involve the flushing of application programs, thereby continually repairing the BUGs in the programs or adding new functions.
Currently, when an application program in a controller is refreshed, there is often a case that the refresh fails. When the application program fails to be refreshed, if the controller does not receive a command for refreshing again after the controller is electrified, the application program failing to be refreshed is operated, and therefore a greater potential safety hazard exists in the running process of the vehicle.
Disclosure of Invention
The present invention aims to solve one of the technical problems in the related art at least to some extent.
Therefore, a first object of the present invention is to provide a method for managing a controller, which can avoid the controller running invalid application programs, and improve the stability of the controller.
A second object of the present invention is to provide a management device for a controller.
A third object of the present invention is to propose an electronic device.
A fourth object of the present invention is to propose a computer readable storage medium.
To achieve the above object, an embodiment of a first aspect of the present invention provides a method for managing a controller, the method including:
identifying whether the controller is in a power-on state;
detecting whether a first application program to be executed is valid or not under the condition that the controller is in a power-on state;
if the first application program is invalid, prohibiting the first application program from running and entering an exception handling mode;
and if the first application program is valid, running the first application program.
According to one embodiment of the present invention, the entering the exception handling mode includes:
identifying whether a brushing instruction of the first application program is received;
if the brushing instruction is received, brushing the first application program;
if the brushing instruction is not received, executing a pre-stored second application program;
the second application program is used for realizing part of functions of the first application program, and the storage space required by the second application program is smaller than that of the first application program.
According to one embodiment of the present invention, the brushing the first application program includes:
and acquiring a brushing program of the first application program, and updating the first application program by using the brushing program.
According to one embodiment of the invention, the updating the first application program with the brusher program includes:
writing a valid flag bit of the brushing program, and writing the brushing program into the controller.
According to one embodiment of the present invention, before the obtaining the brusher of the first application program, the method further includes:
receiving an erasing instruction for erasing the first application program;
and erasing the valid mark of the first application program and the first application program.
According to one embodiment of the present invention, before the writing of the first application program, the method further includes:
and detecting and determining that the power supply voltage of the controller is larger than a preset voltage threshold value, and the moving speed of the carrier of the controller is smaller than a preset speed threshold value.
According to one embodiment of the present invention, the detecting whether the first application to be executed is valid includes:
acquiring a check value of an effective zone bit of the first application program based on a redundancy check algorithm;
and determining whether the first application program is valid or not according to the check value.
According to one embodiment of the present invention, before the running of the first application program, the method further includes:
and detecting and determining that a control instruction for brushing the controller is not received.
According to the management method of the controller, when the controller is in the power-on state, whether the first application program to be executed is effective or not is detected, the first application program is operated when the first application program is effective, the first application program is forbidden to be operated when the first application program is ineffective, and meanwhile, the controller enters an exception handling mode, so that the operation of the ineffective application program by the controller is avoided, and the stability of the controller is improved.
An embodiment of the second aspect of the present invention provides a management apparatus for a controller, the apparatus including:
the identification module is used for identifying whether the controller is in a power-on state or not;
the detection module is used for detecting whether a first application program to be executed is valid or not under the condition that the controller is in a power-on state;
the control module is used for prohibiting the operation of the first application program when the first application program is invalid and entering an exception handling mode; and running the first application when the first application is valid.
According to one embodiment of the invention, the control module is further configured to:
identifying whether a brushing instruction of the first application program is received;
if the brushing instruction is received, brushing the first application program;
if the brushing instruction is not received, executing a pre-stored second application program;
the second application program is used for realizing part of functions of the first application program, and the storage space required by the second application program is smaller than that of the first application program.
According to one embodiment of the invention, the control module is further configured to:
and acquiring a brushing program of the first application program, and updating the first application program by using the brushing program.
According to one embodiment of the invention, the control module is further configured to:
writing a valid flag bit of the brushing program, and writing the brushing program into the controller.
According to one embodiment of the invention, the control module is further configured to:
receiving an erasing instruction for erasing the first application program;
and erasing the valid mark of the first application program and the first application program.
According to one embodiment of the invention, the control module is further configured to:
and detecting and determining that the power supply voltage of the controller is larger than a preset voltage threshold value, and the moving speed of the carrier of the controller is smaller than a preset speed threshold value.
According to one embodiment of the invention, the detection module is further configured to:
acquiring a check value of an effective zone bit of the first application program based on a redundancy check algorithm;
and determining whether the first application program is valid or not according to the check value.
According to one embodiment of the invention, the control module is further configured to:
and detecting and determining that a control instruction for brushing the controller is not received.
According to the management device of the controller provided by the embodiment of the invention, when the controller is in the power-on state, whether the first application program to be executed is effective is detected, the first application program is operated when the first application program is effective, the first application program is forbidden to be operated when the first application program is ineffective, and meanwhile, the controller enters an exception handling mode, so that the operation of the ineffective application program by the controller is avoided, and the stability of the controller is improved.
An embodiment of a third aspect of the present invention provides an electronic device, including a memory, and a processor;
wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the management method of the controller described in the first aspect.
An embodiment of the fourth aspect of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of managing a controller described in the first aspect above.
Drawings
FIG. 1 is a flow chart of a method of managing a controller in accordance with one embodiment of the present disclosure;
FIG. 2 is a schematic diagram illustrating a step of determining whether a first application is valid by using a check value of a valid flag bit of the first application in a management method of a controller according to an embodiment of the disclosure;
FIG. 3 is a schematic diagram illustrating steps of an exception handling mode in a method for managing a controller according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating steps for erasing a valid flag of a first application and the first application in a management method of a controller according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram illustrating a step of verifying a brushwrite program in a management method of a controller according to an embodiment of the present disclosure;
FIG. 6 is a control flow diagram of a method of managing a controller according to one embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a management device of a controller according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present invention and should not be construed as limiting the invention.
The following describes a management method and apparatus of a controller and an electronic device according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method of managing a controller according to an embodiment of the present disclosure. As shown in fig. 1, the management method of the controller provided in this embodiment includes the following steps:
s101, identifying whether the controller is in a power-on state.
Generally, a current detection circuit is arranged in the controller, and can be used for detecting the current in the controller, and when the current value in the controller exceeds a preset current value, the controller can be determined to be in a power-on state; and when the current value in the controller is detected not to exceed the preset current value, determining that the controller is not in a power-on state.
S102, detecting whether a first application program to be executed is valid or not under the condition that the controller is in a power-on state.
Specifically, when the controller is in a power-on state, the controller operates the application program set in the controller according to the preset operation logic. Wherein, before running the application program, in order to ensure that the controller can run normally, it is optional to detect whether the application program in the controller is valid. In this embodiment, it is necessary to detect whether the first application to be executed is valid. When the first application program is invalid, the controller cannot normally run, and step S103 is executed; and when the first application program is valid, the controller can operate normally, and step S104 is executed.
Alternatively, when detecting whether the first application is valid, the check value of the valid flag bit of the first application may be used to determine whether the first application is valid. As shown in fig. 2, the method comprises the following steps:
s201, acquiring a check value of an effective zone bit of the first application program based on a redundancy check algorithm.
Specifically, a redundancy check algorithm is used for calculating file contents in the first application program, so that a check value of a valid flag bit of the first application program is obtained. The redundancy check algorithm is a cyclic redundancy algorithm (CRC), a message digest algorithm (Message Digest Algorithm MD 5) or a secure hash algorithm (Secure Hash Algorithm 1, SHA 1).
S202, determining whether the first application program is effective according to the check value.
Specifically, a check value of an effective flag bit of the first application program is obtained, and the check value is compared with a preset check value. When the two are matched, determining that the first application program is effective; when the two do not match, then the first application is determined to be invalid.
S103, if the first application program is invalid, the first application program is forbidden to run, and an exception handling mode is entered.
Specifically, when the first application is invalid, the controller will not operate normally, and therefore, at this time, the first application is prohibited from operating and enters an exception handling mode.
Optionally, as shown in fig. 3, the exception handling mode includes the steps of:
s301, identifying whether a brushing instruction of the first application program is received.
Specifically, when the first application is invalid, in order for the controller to operate normally, it is necessary to brush the first application. Therefore, the control instruction issued by the staff member can be detected, and when the brushing instruction of the first application program issued by the staff member is received, the first application program can be brushed, namely, the step S302 is executed; when the instruction for writing the first application program issued by the staff member is not received, in order to enable the controller to meet the basic requirement of the staff member, the pre-stored second application program may be executed, that is, step S303 is executed.
S302, the first application program is refreshed.
Specifically, when a swiping instruction is received, the first application program is swished. When the first application program is refreshed, the first application program can be obtained first, for example, the refreshing program can be downloaded from a network server, and then the first application program is updated by using the refreshing program.
Alternatively, when the first application program is updated with the brushware, the valid flag bit of the brushware may be written first and then written into the controller.
S303, executing a pre-stored second application program.
Specifically, when the brushing instruction is not received, if the invalid first application program continues to run, the controller cannot meet the use requirement of the staff. Therefore, in order to enable the controller to meet the basic use requirement of the staff, in this embodiment, the second application program for implementing part of the functions of the first application program is stored in the controller in advance, and the storage space required by the second application program is smaller than the storage space of the first application program. In this embodiment, since the storage space required by the second application is smaller than that of the first application, this significantly reduces the manufacturing cost of the controller relative to the way the first application is backed up.
S104, if the first application program is valid, the first application program is operated.
Specifically, when the first application is active, the controller will be able to run normally, and therefore, at this time, the first application is run.
Optionally, before the first application program is executed, a control instruction issued by the staff member may be detected, so that the controller can be executed according to the intention of the staff member. When the controller instruction of the controller is detected and determined not to be received, the fact that the controller is not required to be brushed by a worker is indicated, and at the moment, the first application program is normally operated; and when the controller command of the controller is detected and determined to be received, indicating that the controller needs to be refreshed by the staff, entering a refreshing mode by the controller at the moment, and refreshing the first application program.
In summary, in the management method of the controller provided in the embodiment, when the controller is in the power-on state, whether the first application to be executed is valid is detected, the first application is operated when the first application is valid, and the first application is prohibited from being operated when the first application is invalid, and meanwhile, the controller enters an exception handling mode, so that the controller is prevented from operating the invalid application, and the stability of the controller is improved.
In some embodiments, the valid flag of the first application and the first application may also be erased before the first application's brush is obtained to ensure that the first application can be refreshed. As shown in fig. 4, the method comprises the following steps:
s401, receiving an erasing instruction for erasing the first application program.
Specifically, the erasing command may be generated by the controller itself, or may be issued by a worker, and may be specifically determined according to the actual situation, which is not limited herein. When the erasure instruction is generated by the controller itself, it is determined that the erasure instruction is received; when the erasure command is issued by a worker, the erasure command can be determined to be received when a signal of the erasure command is transmitted to the controller.
S402, erasing the valid mark of the first application program and the first application program.
Specifically, after receiving an erase command for erasing the first application program, the valid flag of the first application program and the first application program can be erased.
Optionally, in order to ensure that the effective flag of the first application program after being written is correct, the effective flag of the first application program may be erased first, and then the first application program may be erased.
In some embodiments, before the first application is flushed, it may also be determined whether the controller currently satisfies a flush condition to ensure that the flush can be completed successfully. When the power supply voltage of the controller is detected to be larger than a preset voltage threshold value and the moving speed of the carrier of the controller is detected to be smaller than a preset speed threshold value, the controller is determined to meet the brushing condition. For example, when the controller is disposed on the vehicle, the controller is allowed to brush the first application program only when the power supply voltage of the controller is required to be greater than a preset voltage threshold and the running speed of the vehicle is less than a preset speed threshold.
In some embodiments, when the first application is updated with the brushware, the brushware may also be checked to ensure that the brushware was successful. As shown in fig. 5, the method comprises the following steps:
s501, respectively acquiring a check value of an effective zone bit of a first application program and a check value of an effective zone bit of a refreshing program based on a redundancy check algorithm.
Specifically, a redundancy check algorithm is used for calculating file contents in the first application program, so that a check value of a valid flag bit of the first application program is obtained. And calculating the file content in the refreshing program by using a redundancy check algorithm, so as to obtain the check value of the effective zone bit of the refreshing program.
S502, judging whether the check value of the effective zone bit of the first application program is matched with the check value of the effective zone bit of the writing program.
Specifically, the check value of the valid flag bit of the first application program is compared with the check value of the valid flag bit of the writing program, and whether the two are matched can be determined. When the two are matched, the brushing program is correct, and the first application program can be successfully updated by using the brushing program, and step S503 is executed; when the two do not match, the brusher is erroneous, and the first application cannot be updated with the brusher, step S504 is performed.
S503, updating the first application program by using the brushing program.
Specifically, when the check value of the valid flag bit of the first application program matches the check value of the valid flag bit of the brushwrite program, the first application program is updated with the brushwrite program.
S504, re-entering an exception handling mode.
Specifically, when the check value of the valid flag bit of the first application program does not match the check value of the valid flag bit of the brushwrite program, the exception handling mode is re-entered to reacquire the brushwrite program.
In order to facilitate understanding, the management method of the controller provided in this embodiment is explained below. As shown in fig. 6, the control flow of the management method of the controller in the present embodiment includes the following steps:
s601, identifying whether the controller is in a power-on state.
S602, detecting whether a first application program to be executed is valid or not under the condition that the controller is in a power-on state. Wherein, if the first application is valid, steps S603-S609 are performed; if the first application is not valid, steps S610-S613 are performed.
S603, identifying whether a brushing instruction is received. Wherein, if a brushing instruction is received, steps S605-S609 are executed; if no brush instruction is received, step S604 is performed.
S604, running a first application program.
S605, erasing the valid mark of the first application program.
S606, erasing the first application program.
S607, acquiring a brushing program.
S608, whether the brushing program is correct or not is identified. Wherein, if the brushing program is correct, step S609 is executed; if the brusher is wrong, steps S610-S613 are performed.
S609, the brush program is written into the controller.
S610, entering an exception handling mode.
S611, identifying whether a brushing instruction is received. Wherein, if a swipe instruction is received, step S612 is performed; if the swipe instruction is not received, step S613 is performed.
S612, identifying whether the brushing condition is met. Wherein, if the brushing condition is satisfied, step S605 is executed; if the brushing condition is not satisfied, step S613 is performed.
S613, running the second application.
Fig. 7 is a schematic structural diagram of a management device of a controller according to an embodiment of the present disclosure. As shown in fig. 7, the management apparatus 300 of the controller includes:
the identification module 11 is used for identifying whether the controller is in a power-on state;
a detection module 12, configured to detect whether a first application to be executed is valid, in a case where the controller is in a power-on state;
a control module 13, configured to prohibit the first application from running and enter an exception handling mode when the first application is invalid; and running the first application when the first application is valid.
Further, the control module 13 is further configured to:
identifying whether a brushing instruction of a first application program is received;
if a brushing instruction is received, brushing the first application program;
if the brushing instruction is not received, executing a pre-stored second application program;
the second application program is used for realizing part of functions of the first application program, and the storage space required by the second application program is smaller than that of the first application program.
Further, the control module 13 is further configured to:
and acquiring a flash program of the first application program, and updating the first application program by using the flash program.
Further, the control module 13 is further configured to:
the valid flag bit of the flush procedure is written and the flush procedure is written into the controller.
Further, the control module 13 is further configured to:
receiving an erasing instruction for erasing a first application program;
the valid flag of the first application and the first application are erased.
Further, the control module 13 is further configured to:
and detecting and determining that the power supply voltage of the controller is larger than a preset voltage threshold value, and the moving speed of the carrier of the controller is smaller than a preset speed threshold value.
Further, the detection module 12 is further configured to:
acquiring a check value of an effective zone bit of a first application program based on a redundancy check algorithm;
and determining whether the first application program is valid according to the check value.
Further, the control module 13 is further configured to:
and detecting and determining that the control instruction of the brush writing controller is not received.
It should be understood that, the foregoing apparatus is used to perform the method in the foregoing embodiment, and corresponding program modules in the apparatus implement principles and technical effects similar to those described in the foregoing method, and reference may be made to corresponding processes in the foregoing method for the working process of the apparatus, which are not repeated herein.
In summary, in the management device of the controller provided in this embodiment, when the controller is in the power-on state, whether the first application to be executed is valid is detected, and when the first application is valid, the first application is operated, and when the first application is invalid, the first application is prohibited from being operated, and meanwhile, an exception handling mode is entered, so that the controller is prevented from operating the invalid application, and the stability of the controller is improved.
In order to implement the above embodiment, the present application further provides an electronic device, as shown in fig. 8, which includes a memory 21, a processor 22; wherein the processor 22 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 21 for realizing the respective steps of the above method.
In order to implement the method of the above embodiment, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above method.
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element being referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present invention.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In the present invention, unless expressly stated or limited otherwise, a first feature "up" or "down" a second feature may be the first and second features in direct contact, or the first and second features in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., 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 invention. In this specification, schematic representations of the above terms are not necessarily directed 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, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (8)

1. A method of managing a controller, the method comprising:
identifying whether the controller is in a power-on state;
detecting whether a first application program to be executed is valid or not under the condition that the controller is in a power-on state;
if the first application program is invalid, prohibiting the first application program from running and entering an exception handling mode;
if the first application program is valid, the first application program is operated;
the entering the exception handling mode includes:
identifying whether a brushing instruction of the first application program is received;
if the brushing instruction is received, brushing the first application program;
if the brushing instruction is not received, executing a pre-stored second application program;
the second application program is used for realizing part of functions of the first application program, and the storage space required by the second application program is smaller than the storage space of the first application program;
the brushing the first application program comprises the following steps:
acquiring a refreshing program of the first application program, checking the refreshing program, and if the checking is successful, updating the first application program by using the refreshing program;
the verifying the brushing program comprises the following steps: and comparing the check value of the effective zone bit of the first application program with the check value of the effective zone bit of the brushing program, and if the check values are matched, checking successfully.
2. The method of claim 1, wherein the updating the first application with the brusher comprises:
writing a valid flag bit of the brushing program, and writing the brushing program into the controller.
3. The method of claim 1, wherein prior to the obtaining the first application program's brush program, further comprising:
receiving an erasing instruction for erasing the first application program;
and erasing the valid mark of the first application program and the first application program.
4. A method according to any of claims 2-3, wherein prior to the brushing the first application program, further comprising:
and detecting and determining that the power supply voltage of the controller is larger than a preset voltage threshold value, and the moving speed of the carrier of the controller is smaller than a preset speed threshold value.
5. A method according to any of claims 1-3, wherein said detecting whether the first application to be executed is valid comprises:
acquiring a check value of an effective zone bit of the first application program based on a redundancy check algorithm;
and determining whether the first application program is valid or not according to the check value.
6. A method according to any of claims 1-3, wherein prior to said running said first application, further comprising:
and detecting and determining that a control instruction for brushing the controller is not received.
7. A management device of a controller, the device comprising:
the identification module is used for identifying whether the controller is in a power-on state or not;
the detection module is used for detecting whether a first application program to be executed is valid or not under the condition that the controller is in a power-on state;
the control module is used for prohibiting the operation of the first application program when the first application program is invalid and entering an exception handling mode; and running the first application when the first application is valid;
the control module is further configured to:
identifying whether a brushing instruction of a first application program is received;
if a brushing instruction is received, brushing the first application program;
if the brushing instruction is not received, executing a pre-stored second application program;
the second application program is used for realizing part of functions of the first application program, and the storage space required by the second application program is smaller than the storage space of the first application program;
the brushing the first application program comprises the following steps:
acquiring a refreshing program of the first application program, checking the refreshing program, and if the checking is successful, updating the first application program by using the refreshing program;
the control module further comprises:
and the verification unit of the brushing program is used for comparing the verification value of the effective zone bit of the first application program with the verification value of the effective zone bit of the brushing program, and if the verification value of the effective zone bit of the first application program is matched with the verification value of the effective zone bit of the brushing program, the verification is successful.
8. An electronic device, comprising a memory and a processor;
wherein the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for realizing the management method of the controller according to any one of claims 1 to 6.
CN201911242333.4A 2019-12-06 2019-12-06 Management method and device of controller and electronic equipment Active CN112925574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911242333.4A CN112925574B (en) 2019-12-06 2019-12-06 Management method and device of controller and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911242333.4A CN112925574B (en) 2019-12-06 2019-12-06 Management method and device of controller and electronic equipment

Publications (2)

Publication Number Publication Date
CN112925574A CN112925574A (en) 2021-06-08
CN112925574B true CN112925574B (en) 2023-12-19

Family

ID=76161600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911242333.4A Active CN112925574B (en) 2019-12-06 2019-12-06 Management method and device of controller and electronic equipment

Country Status (1)

Country Link
CN (1) CN112925574B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608370A (en) * 2015-12-30 2016-05-25 科力远混合动力技术有限公司 ECU program flashing and detection method
CN105974830A (en) * 2016-05-10 2016-09-28 北京新能源汽车股份有限公司 Electromobile and remote program update control method thereof
CN109471652A (en) * 2018-10-24 2019-03-15 北汽福田汽车股份有限公司 Method for updating program and its system, the car-mounted terminal and electronic equipment of vehicle
CN110334486A (en) * 2019-06-28 2019-10-15 潍柴动力股份有限公司 Application integrity method of calibration and equipment
CN110532001A (en) * 2019-09-09 2019-12-03 阳光电源股份有限公司 Vehicle control device writes with a brush dipped in Chinese ink method, system, diagnostic device and vehicle control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608370A (en) * 2015-12-30 2016-05-25 科力远混合动力技术有限公司 ECU program flashing and detection method
CN105974830A (en) * 2016-05-10 2016-09-28 北京新能源汽车股份有限公司 Electromobile and remote program update control method thereof
CN109471652A (en) * 2018-10-24 2019-03-15 北汽福田汽车股份有限公司 Method for updating program and its system, the car-mounted terminal and electronic equipment of vehicle
CN110334486A (en) * 2019-06-28 2019-10-15 潍柴动力股份有限公司 Application integrity method of calibration and equipment
CN110532001A (en) * 2019-09-09 2019-12-03 阳光电源股份有限公司 Vehicle control device writes with a brush dipped in Chinese ink method, system, diagnostic device and vehicle control device

Also Published As

Publication number Publication date
CN112925574A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN109624919B (en) Vehicle anti-theft system configuration method, computer-readable storage medium, and terminal
JP4539757B2 (en) Electronic control unit
CN111782234A (en) Vehicle-mounted software flashing method, control device, central processing unit and automobile
CN110263590B (en) Vehicle-mounted ECU and safety protection method thereof
CN114385421A (en) Data storage method and device, electronic equipment and storage medium
CN112925574B (en) Management method and device of controller and electronic equipment
US20180059615A1 (en) Imaging cartridge and memory chip applied to imaging cartridge
US11640288B2 (en) System version upgrading method and apparatus
JP6094523B2 (en) Program rewriting method
US20060206764A1 (en) Memory reliability detection system and method
CN113220319A (en) Data updating method and device and vehicle
CN110908871A (en) Data management method, device, equipment and storage medium based on vehicle control unit
JP5516509B2 (en) Program writing system
CN113050600A (en) Offline detection method and device for vehicle controller
CN112394965A (en) Battery management system upgrade and operation method, controller, battery management system and storage medium
CN113946356A (en) Method and device for updating electronic controller program and electronic controller
CN116302019B (en) BootLoader program self-updating method, system and storage medium
JP2004005152A (en) Rewriting device for nonvolatile memory
CN113778061B (en) Method and device for verifying program integrity of electronic controller and electronic controller
US11923017B2 (en) Non-volatile storage device
JP5862350B2 (en) Flash memory writing device, flash memory writing control method, and program
JP7205982B2 (en) Memory, error recovery method for memory, and battery device containing memory
KR20180049834A (en) Control device for recovering car control program and Method thereof
CN112486549A (en) Automobile embedded software upgrading method and device and storage medium
CN117573174A (en) Method and device for updating Bootloader based on chip

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