Double-insurance operation method and system for preventing system faults
By adopting dual insurance operation methods and systems in the driving recorder, and using watchdog reset number judgment and remote OTA repair, the problem of system failure caused by low battery power or unstable power supply is solved, and automatic switching and repair of the system are realized. , ensuring the driving safety of the vehicle and the reliability of the evidence after the accident.
Patent Information
- Application Number
- CN202410289460.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-14
- Publication Date
- 2024-09-06
AI Technical Summary
During remote upgrade or use of existing driving recorders, the system upgrade fails due to low battery power or unstable vehicle power supply, or the flash generates bad blocks and cannot be booted, resulting in the inability to properly settle claims for some vehicles.
Adopting double insurance operation methods and systems, by setting up double backup systems, it automatically detects abnormalities and implements automatic switching. It uses the number of watchdog resets to determine the system status. If the system fails to start, it switches to another system and repairs it through remote OTA. .
It realizes automatic switching to another system when it is detected that the system cannot be turned on, repairs the damaged system, and quickly detects and analyzes the system to ensure the reliability and stability of the system and avoid claims failure due to failure.
Smart Images

Figure CN118609233A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of driving recorders, and more specifically, to a double insurance operation method and system for preventing system failures. Background Art
[0002] With the development of technology, in order to ensure the driving safety of vehicles and to quickly find evidence after an accident, most vehicles are equipped with driving recorders. Although a large number of driving recorders are installed, every year some vehicles still cannot use driving records for normal and legal claims.
[0003] Prior to the technology of the present invention, in the prior art, during the remote upgrade or card upgrade of the recorder, the low battery level or unstable vehicle power supply caused an abnormal power outage, resulting in the system upgrade failure and the inability to boot up. In addition, during the use of the recorder, the flash generated bad blocks or the flash content became abnormal, resulting in the machine being unable to boot up. Summary of the invention
[0004] In view of the above problems, the present invention proposes a double insurance operation method and system for preventing system failures, providing a double backup operating system and automatically detecting abnormalities to achieve automatic switching.
[0005] According to a first aspect of an embodiment of the present invention, a double insurance operation method for preventing system failure is provided.
[0006] In one or more embodiments, preferably, the double insurance operation method for preventing system failure includes:
[0007] Set up the recording system structure and power on the power supply;
[0008] Start bootLoader and read the number of watchdog resets;
[0009] The process of setting the start of system A or system B according to the number of watchdog resets is regarded as a loop judgment, and a loop judgment is started;
[0010] If the system in the loop judgment does not start normally, restart the loop judgment until the system startup is completed;
[0011] Set the system to a state where it cannot start according to the current watchdog reset times in real time;
[0012] Determine whether the bootloader has a program switching command, and automatically update if so.
[0013] In one or more embodiments, preferably, the configuration forms a recording system structure and performs power-on, specifically including:
[0014] Use MCU as the core control chip of the driving recorder;
[0015] Check online whether the power supply is connected. If it is connected, power on the main control.
[0016] In one or more embodiments, preferably, starting the bootLoader and reading the watchdog reset count specifically includes:
[0017] After the main control starts, start the bootloader;
[0018] After the bootloader is started, read the watchdog status of the MCU;
[0019] Record the current watchdog reset times.
[0020] In one or more embodiments, preferably, the process of determining whether to start system A or system B according to the number of watchdog resets is used as a loop determination, and a loop determination is started, specifically including:
[0021] Determine whether the current number of watchdog resets satisfies the first calculation formula, and if so, read whether the last system startup was system A or system B, and select the last system to start;
[0022] Start the watchdog function of the MCU. If the startup is successful, the watchdog will be turned off and the system will run normally.
[0023] The first calculation formula is:
[0024] K≤3
[0025] Where K is the number of consecutive resets of the watchdog reset.
[0026] In one or more embodiments, preferably, if the system in the loop judgment is not started normally, restarting the loop judgment until the system startup is completed, specifically includes:
[0027] If the system in the current loop judgment is not started, the watchdog of the MCU is used to count all the time, and when it is judged that the second calculation formula is satisfied, it is considered to be timed out;
[0028] After the timeout, the MCU resets the main control and restarts the loop judgment until the system startup is completed;
[0029] The second calculation formula is:
[0030] T≥Y
[0031] Among them, Y is the watchdog count margin, and T is the number of watchdog counts.
[0032] In one or more embodiments, preferably, the real-time setting of the system unable to start state according to the current watchdog reset times specifically includes:
[0033] Read the current watchdog reset times in real time;
[0034] Determine whether the third calculation formula is satisfied, if so, it is considered that the current system cannot be started;
[0035] The third calculation formula is:
[0036] K>3
[0037] Where K is the number of consecutive resets of the watchdog reset.
[0038] In one or more embodiments, preferably, determining whether the bootloader has a program switching command and automatically updating if so specifically includes:
[0039] Determine whether the current system is A or B;
[0040] When the current system is A, if the bootloader has a program switching command, the bootloader program will switch to B for startup, and repair A through remote OTA. If the bootloader has no program switching command, no switching will be performed;
[0041] When the current system is B, if the bootloader has a program switching command, the bootloader program will switch to A for startup, and repair B through remote OTA. If the bootloader has no program switching command, no switching will be performed.
[0042] According to a second aspect of an embodiment of the present invention, a double insurance operating system for preventing system failure is provided.
[0043] In one or more embodiments, preferably, the dual insurance operating system for preventing system failures includes:
[0044] The main control power-on module is used to set up the recording system structure and power on the power supply;
[0045] Start the reset module, which is used to start the bootLoader and read the number of watchdog resets;
[0046] A loop module is set to use the process of determining whether to start the A system or the B system according to the number of watchdog resets as a loop judgment, and start a loop judgment;
[0047] A restart judgment module, used for restarting the loop judgment if the system in the loop judgment is not normally started, until the system startup is completed;
[0048] Unable to restart analysis module, used to set the system unable to start status in real time according to the current watchdog reset times;
[0049] Repair the startup module to determine whether the bootloader has a program switching command, and automatically update it if so.
[0050] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0051] According to a fourth aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement any one of the methods described in the first aspect of the embodiment of the present invention.
[0052] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0053] In the solution of the present invention, a dual backup system is implemented. If it is detected that one system cannot be started, it switches to another system and repairs the damaged system at the same time.
[0054] In the solution of the present invention, automatic switching and system backup are achieved through rapid detection and analysis.
[0055] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0056] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0058] Figure 1 The present invention is a flowchart of a double insurance operation method for preventing system failure according to an embodiment of the present invention.
[0059] Figure 2It is a flowchart of setting up a recording system structure and powering on a double insurance operation method for preventing system failure in one embodiment of the present invention.
[0060] Figure 3 The present invention is a flowchart of starting a bootloader and reading the number of watchdog resets in a double insurance operation method for preventing system failures according to an embodiment of the present invention.
[0061] Figure 4 It is a flowchart of starting a cycle judgment in a double insurance operation method for preventing system failure according to an embodiment of the present invention, which determines whether to set the start of system A or system B according to the number of watchdog resets.
[0062] Figure 5 The present invention is a flowchart of a double insurance operation method for preventing system failures in one embodiment of the present invention, in which if the system in the loop judgment is not started normally, the loop judgment is restarted until the system startup is completed.
[0063] Figure 6 The present invention is a flowchart of setting a system unable to start state in real time according to the current watchdog reset times in a double insurance operation method for preventing system failures according to an embodiment of the present invention.
[0064] Figure 7 This is a flowchart of determining whether a bootloader has a program switching command in a double insurance operation method for preventing system failures according to an embodiment of the present invention, and automatically updating if so.
[0065] Figure 8 The present invention is a structural diagram of a double insurance operating system for preventing system failures according to an embodiment of the present invention.
[0066] Fig. 9 It is a structural diagram of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0067] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0069] With the development of technology, in order to ensure the driving safety of vehicles and to quickly find evidence after an accident, most vehicles are equipped with driving recorders. Although a large number of driving recorders are installed, every year some vehicles still cannot use driving records for normal and legal claims.
[0070] Prior to the technology of the present invention, in the prior art, during the remote upgrade or card upgrade of the recorder, the low battery level or unstable vehicle power supply caused an abnormal power outage, resulting in the system upgrade failure and the inability to boot up. In addition, during the use of the recorder, the flash generated bad blocks or the flash content became abnormal, resulting in the machine being unable to boot up.
[0071] In the embodiment of the present invention, a double insurance operation method and system for preventing system failure are provided. The solution provides a double backup operating system and a protection system for automatically detecting abnormalities and realizing automatic switching.
[0072] According to a first aspect of an embodiment of the present invention, a double insurance operation method for preventing system failure is provided.
[0073] Figure 1 The present invention is a flowchart of a double insurance operation method for preventing system failure according to an embodiment of the present invention.
[0074] In one or more embodiments, preferably, the double insurance operation method for preventing system failure includes:
[0075] Set up the recording system structure and power on the power supply;
[0076] Start bootLoader and read the number of watchdog resets;
[0077] The process of setting the start of system A or system B according to the number of watchdog resets is regarded as a loop judgment, and a loop judgment is started;
[0078] If the system in the loop judgment does not start normally, restart the loop judgment until the system startup is completed;
[0079] Set the system to a state where it cannot start according to the current watchdog reset times in real time;
[0080] Determine whether the bootloader has a program switching command, and automatically update if so.
[0081] In the embodiment of the present invention, through the dual backup system, if it is detected that one system cannot be started, it switches to another system and repairs the damaged system at the same time.
[0082] Figure 2 It is a flowchart of setting up a recording system structure and powering on a double insurance operation method for preventing system failure in one embodiment of the present invention.
[0083] like Figure 2 As shown, in one or more embodiments, preferably, the configuration forms a recording system structure, and power is turned on, specifically including:
[0084] S101, MCU is used as the core control chip of the driving recorder;
[0085] S102, online detection of whether the power supply is connected, and if so, powering on the main control.
[0086] In the embodiment of the present invention, when the MCU detects that a power source is connected, the main control is powered on.
[0087] Figure 3 The present invention is a flowchart of starting a bootloader and reading the number of watchdog resets in a double insurance operation method for preventing system failures according to an embodiment of the present invention.
[0088] like Figure 3 As shown, in one or more embodiments, preferably, starting the bootLoader and reading the watchdog reset times specifically includes:
[0089] S201, after the main control is started, bootLoader is started;
[0090] S202, after the bootloader is started, read the watchdog status of the MCU;
[0091] S203, record the current watchdog reset times.
[0092] In the embodiment of the present invention, the master controller reads the number of MCU watchdog resets after booting to the bootloader.
[0093] Figure 4 It is a flowchart of starting a cycle judgment in a double insurance operation method for preventing system failure according to an embodiment of the present invention, which determines whether to set the start of system A or system B according to the number of watchdog resets.
[0094] like Figure 4As shown, in one or more embodiments, preferably, the process of determining whether to start system A or system B according to the number of watchdog resets is used as a loop determination, and a loop determination is started, specifically including:
[0095] S301, determining whether the current number of watchdog resets satisfies a first calculation formula, and if so, reading whether the last system startup was system A or system B, and selecting the last system to start;
[0096] S302, start the watchdog function of the MCU. If the current startup is successful, the watchdog is turned off and the system operates normally;
[0097] The first calculation formula is:
[0098] K≤3
[0099] Where K is the number of consecutive resets of the watchdog reset.
[0100] In an embodiment of the present invention, if the number of MCU watchdog resets does not exceed 3 times in a row, it is read whether the last system startup was A or B, and the corresponding system startup is selected, and the watchdog function of the MCU is started at the same time. If system A starts successfully, the watchdog system is turned off and runs normally.
[0101] Figure 5 The present invention is a flowchart of a double insurance operation method for preventing system failures in one embodiment of the present invention, in which if the system in the loop judgment is not started normally, the loop judgment is restarted until the system startup is completed.
[0102] like Figure 5 As shown, in one or more embodiments, preferably, if the system in the loop judgment is not started normally, restarting the loop judgment until the system startup is completed, specifically includes:
[0103] S401, if the system in the current loop judgment is not started, the watchdog of the MCU is used to count all the time, and when it is judged that the second calculation formula is satisfied, it is considered to be timed out;
[0104] S402, after the timeout, the MCU resets the main control and restarts the loop judgment until the system startup is completed;
[0105] The second calculation formula is:
[0106] T≥Y
[0107] Among them, Y is the watchdog count margin, and T is the number of watchdog counts.
[0108] In the embodiment of the present invention, if the system in the current one-cycle judgment is not started, after the watchdog of the MCU has been counting for timeout, the MCU will reset the main control and restart the one-cycle judgment.
[0109] Figure 6 The present invention is a flowchart of setting a system unable to start state in real time according to the current watchdog reset times in a double insurance operation method for preventing system failures according to an embodiment of the present invention.
[0110] like Figure 6 As shown, in one or more embodiments, preferably, the real-time setting of the system unable to start state according to the current watchdog reset times specifically includes:
[0111] S501, read the current watchdog reset consecutive times in real time;
[0112] S502, determining whether the third calculation formula is satisfied, and if so, considering that the current system cannot be started;
[0113] The third calculation formula is:
[0114] K>3
[0115] Where K is the number of consecutive resets of the watchdog reset.
[0116] In the embodiment of the present invention, if the number of MCU watchdog resets exceeds 3 times in succession, it is considered that the current system cannot be started.
[0117] Figure 7 This is a flowchart of determining whether a bootloader has a program switching command in a double insurance operation method for preventing system failures according to an embodiment of the present invention, and automatically updating if so.
[0118] like Figure 7 As shown, in one or more embodiments, preferably, the step of determining whether the bootloader has a program switching command and automatically updating if so specifically includes:
[0119] S701, determining whether the current system is A or B;
[0120] S702, when the current system is A, if the bootloader has a program switching command, the bootloader program will switch to B for startup, and repair A through remote OTA. If the bootloader has no program switching command, no switching will be performed;
[0121] S703, when the current system is B, if the bootloader has a program switching command, the bootloader program will switch to A for startup, and repair B through remote OTA. If the bootloader has no program switching command, no switching will be performed.
[0122] In the embodiment of the present invention, if the current system is A, the bootloader program will switch to B for startup, and repair A through remote OTA. If the current system is B, the bootloader program will switch to A for startup, and repair B through remote OTA.
[0123] According to a second aspect of an embodiment of the present invention, a double insurance operating system for preventing system failure is provided.
[0124] Figure 8 The present invention is a structural diagram of a double insurance operating system for preventing system failures according to an embodiment of the present invention.
[0125] In one or more embodiments, preferably, the dual insurance operating system for preventing system failures includes:
[0126] The main control power-on module 801 is used to set up the recording system structure and power on the power supply;
[0127] The startup reset module 802 is used to start the bootLoader and read the watchdog reset times;
[0128] A loop module 803 is configured to use a process of determining whether to start the A system or the B system according to the number of watchdog resets as a loop determination, and to initiate a loop determination;
[0129] A restart determination module 804 is used to restart the loop determination if the system in the loop determination is not started normally, until the system is started up completely;
[0130] The unable to restart analysis module 805 is used to set the system unable to start state in real time according to the current watchdog reset times;
[0131] The repair startup module 806 is used to determine whether the bootloader has a program switching command, and automatically update if so.
[0132] In the embodiment of the present invention, a system suitable for different structures is realized through a series of modular designs. The system can achieve closed-loop, reliable and efficient execution through collection, analysis and control.
[0133] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0134] According to a fourth aspect of an embodiment of the present invention, an electronic device is provided. Fig. 9 It is a structural diagram of an electronic device in one embodiment of the present invention. Fig. 9 The electronic device shown is a dual-safety operating device for general prevention of system failure. Fig. 9 The electronic device may be a smart phone, a tablet computer, or the like. The electronic device 900 includes a processor 901 and a memory 902. The processor 901 is electrically connected to the memory 902.
[0135] Processor 901 is the control center of electronic device 900. It uses various interfaces and lines to connect various parts of the entire electronic device, executes various functions of the electronic device and processes data by running or calling computer programs stored in memory 902, and calling data stored in memory 902, thereby monitoring the electronic device as a whole.
[0136] In this embodiment, the processor 901 in the electronic device 900 will load the instructions corresponding to the processes of one or more computer programs into the memory 902 according to the following steps, and the processor 901 will run the computer program stored in the memory 902 to implement various functions, such as: setting up a record system structure and powering on the power supply; starting the bootloader and reading the number of watchdog resets; judging the process of setting the startup of system A or system B based on the number of watchdog resets as a loop judgment, and starting a loop judgment; if the system in the loop judgment does not start normally, restart the loop judgment until the system startup is completed; set the system to a state where it cannot start in real time according to the current number of watchdog resets; judge whether the bootloader has a program switching command, and automatically update it if so.
[0137] In some embodiments, the electronic device 900 may further include: a display 903, a radio frequency circuit 904, an audio circuit 905, a wireless fidelity module 906, and a power supply 907. The display 903, the radio frequency circuit 904, the audio circuit 905, the wireless fidelity module 906, and the power supply 907 are electrically connected to the processor 901, respectively.
[0138] The display 903 may be used to display information input by a user or information provided to a user and various graphical user interfaces, which may be composed of graphics, text, icons, videos, and any combination thereof. The display 903 may include a display panel, and in some embodiments, the display panel may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
[0139] The radio frequency circuit 904 can be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.
[0140] The audio circuit 905 can be used to provide an audio interface between a user and the electronic device through a speaker and a microphone.
[0141] The wireless fidelity module 906 can be used for short-range wireless transmission, and can help users to send and receive emails, browse websites, and access streaming media, etc. It provides users with wireless broadband Internet access.
[0142] The power supply 907 may be used to supply power to various components of the electronic device 900. In some embodiments, the power supply 907 may be logically connected to the processor 901 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.
[0143] although Fig. 9 Not shown, the electronic device 900 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0144] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0145] In the solution of the present invention, a dual backup system is implemented. If it is detected that one system cannot be started, it switches to another system and repairs the damaged system at the same time.
[0146] In the solution of the present invention, automatic switching and system backup are achieved through rapid detection and analysis.
[0147] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0148] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0151] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A double insurance operation method for preventing system failure, characterized in that: The method includes: Set up the recording system structure and power on the power supply; Start bootLoader and read the number of watchdog resets; The process of setting the start of system A or system B according to the number of watchdog resets is regarded as a loop judgment, and a loop judgment is started; If the system in the loop judgment does not start normally, restart the loop judgment until the system startup is completed; Set the system to a state where it cannot start according to the current watchdog reset times in real time; Determine whether the bootloader has a program switching command, and automatically update if so.
2. A double insurance operation method for preventing system failure as claimed in claim 1, characterized in that: The configuration forms a recording system structure and performs power-on, specifically including: Use MCU as the core control chip of the driving recorder; Check online whether the power supply is connected. If it is connected, power on the main control.
3. A double insurance operation method for preventing system failure as claimed in claim 1, characterized in that: The bootloader is started to read the number of watchdog resets, specifically including: After the main control starts, start the bootloader; After the bootloader is started, read the watchdog status of the MCU; Record the current watchdog reset times.
4. A double insurance operation method for preventing system failure as claimed in claim 1, characterized in that: The process of determining whether to start system A or system B according to the number of watchdog resets is used as a loop determination, and a loop determination is started, specifically including: Determine whether the current number of watchdog resets satisfies the first calculation formula, and if so, read whether the last system startup was system A or system B, and select the last system to start; Start the watchdog function of the MCU. If the startup is successful, the watchdog will be turned off and the system will run normally. The first calculation formula is: K≤3 Where K is the number of consecutive resets of the watchdog reset.
5. A double insurance operation method for preventing system failure as claimed in claim 1, characterized in that: If the system in the loop judgment is not started normally, restarting the loop judgment until the system startup is completed, specifically includes: If the system in the current loop judgment is not started, the watchdog of the MCU is used to count all the time, and when it is judged that the second calculation formula is satisfied, it is considered to be timed out; After the timeout, the MCU resets the main control and restarts the loop judgment until the system startup is completed; The second calculation formula is: T≥Y Among them, Y is the watchdog count margin, and T is the number of watchdog counts.
6. A double insurance operation method for preventing system failure as claimed in claim 1, characterized in that: The real-time setting of the system unable to start state according to the current watchdog reset times specifically includes: Read the current watchdog reset times in real time; Determine whether the third calculation formula is satisfied, if so, it is considered that the current system cannot be started; The third calculation formula is: K>3 Where K is the number of consecutive resets of the watchdog reset.
7. A double insurance operation method for preventing system failure as claimed in claim 1, characterized in that: The determining whether the bootloader has a program switching command and automatically updating if so specifically includes: Determine whether the current system is A or B; When the current system is A, if the bootloader has a program switching command, the bootloader program will switch to B for startup, and repair A through remote OTA. If the bootloader has no program switching command, no switching will be performed; When the current system is B, if the bootloader has a program switching command, the bootloader program will switch to A for startup, and repair B through remote OTA. If the bootloader has no program switching command, no switching will be performed.
8. A double insurance operating system for preventing system failure, characterized in that: The system is used to implement the method according to any one of claims 1 to 7, and the system comprises: The main control power-on module is used to set up the recording system structure and power on the power supply; Start the reset module, which is used to start the bootLoader and read the number of watchdog resets; A loop module is set to use the process of determining whether to start the A system or the B system according to the number of watchdog resets as a loop judgment, and start a loop judgment; A restart judgment module, used for restarting the loop judgment if the system in the loop judgment is not normally started, until the system startup is completed; Unable to restart analysis module, used to set the system unable to start status in real time according to the current watchdog reset times; Repair the startup module to determine whether the bootloader has a program switching command, and automatically update it if so.
9. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1-7.
Citation Information
Patent Citations
System exception processing method and device, equipment and storage medium
CN115509821A
System and method for operating autonomous vehicle
CN117693948A
Computer system of which operating system can be automatically replaced and automatic replacement method of operating system using the system
JP2003208314A
Cited By
MCU online upgrading method based on CAN bus UDS diagnosis service
CN119668644A
System disk switching method and device, equipment and storage medium
CN120234053A
