CN116165977A - Method, device, system, medium and program product for controlling start of electronic system - Google Patents

Method, device, system, medium and program product for controlling start of electronic system Download PDF

Info

Publication number
CN116165977A
CN116165977A CN202211680341.9A CN202211680341A CN116165977A CN 116165977 A CN116165977 A CN 116165977A CN 202211680341 A CN202211680341 A CN 202211680341A CN 116165977 A CN116165977 A CN 116165977A
Authority
CN
China
Prior art keywords
starting
started
startup
time
mode setting
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
CN202211680341.9A
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 Kunbo Biotechnology Co Ltd
Original Assignee
Hangzhou Kunbo Biotechnology 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 Kunbo Biotechnology Co Ltd filed Critical Hangzhou Kunbo Biotechnology Co Ltd
Priority to CN202211680341.9A priority Critical patent/CN116165977A/en
Publication of CN116165977A publication Critical patent/CN116165977A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/41865Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32252Scheduling production, machining, job shop

Abstract

The application provides a startup control method, a device, a system, a medium and a program product of an electronic system, wherein the system to be started can be started through a plurality of startup modes by sending a mode setting signal to the system to be started, the sources of startup data corresponding to the startup modes are different, and the mode setting signal is used for setting the startup mode; if the starting success signal fed back by the system to be started is not received within the preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode. By setting a plurality of starting modes and calling starting data from different sources, a plurality of backup schemes are added for starting, and the technical problem of low starting reliability of an electronic system in the prior art is solved. The technical effect of improving the starting reliability of the automatic control system is achieved.

Description

Method, device, system, medium and program product for controlling start of electronic system
Technical Field
The present invention relates to the field of automatic control, and in particular, to a method, apparatus, system, medium, and program product for controlling startup of an electronic system.
Background
The development of social productivity is largely attributable to the progress of technology, and automatic control has become an indispensable important technology in various fields of production and life. The automatic control is to use the electronic system as a core and execute a preset application program to control a plurality of peripheral devices to execute corresponding work tasks.
The reliability of the electronic system has a very important influence on whether the whole automatic control system can work normally. However, due to the characteristics of the electronic system, when the electronic system fails, the troubleshooting of the failure cause is generally difficult, and some unpredictable minor failures may cause the electronic system to be unable to start.
Therefore, how to improve the starting reliability of the electronic system is a technical problem to be solved.
Disclosure of Invention
The application provides a startup control method, a startup control device, a startup control system, a startup control medium and a startup control program product for an electronic system, so as to solve the technical problem of low startup reliability of the electronic system in the prior art.
In a first aspect, the present application provides a method for controlling start-up of an electronic system, including:
A mode setting signal is sent to a system to be started, the system to be started can be started through a plurality of starting modes, the sources of starting data corresponding to the various starting modes are different, and the mode setting signal is used for setting the starting modes;
if the starting success signal fed back by the system to be started is not received within the preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode.
In this embodiment, by setting multiple starting modes, each starting mode sets a different starting data source, that is, calls different starting data, so that the problem that an electronic system cannot be started due to faults when calling default starting data is avoided, and the system starting reliability is improved.
In one possible design, the boot data corresponding to each boot mode is stored on a different bootable memory in the system to be booted, or on a different storage unit or storage space in the same bootable memory.
In this embodiment, by storing the startup data in different memories, when a certain memory fails, the startup data stored in another memory can still be called, thereby improving the reliability of system startup.
In one possible design, the preset time threshold is determined by the following method:
acquiring each history time consumption recorded when the system to be started is successfully started each time;
and determining a preset time threshold according to each historical time consumption.
In one possible design, determining the preset time threshold based on each historical time consuming includes:
and determining a preset time threshold according to the maximum value and/or the minimum value of each historical time consumption.
In one possible design, the predetermined time threshold, determined from each historical time elapsed, includes:
and calculating the average value of each historical time consumption, and determining a preset time threshold according to the average value.
In one possible design, the method further comprises:
acquiring recorded starting characteristic data, wherein the starting characteristic data is recorded after a system to be started is successfully started or after the system to be started fails to be started;
and determining a preset time threshold according to the starting characteristic data.
In one possible design, the startup feature data includes a maximum startup time consumption, and determining the preset time threshold from the startup feature data includes:
and determining a preset time threshold according to the maximum starting time.
In one possible design, the method further comprises:
If the starting success signal is received within the preset time threshold, determining the current starting time consumption according to the starting success signal, wherein the current starting time consumption is used for representing the time consumed by the system to be started in the current starting;
and adding the current starting time to a historical time consumption record corresponding to the system to be started.
In one possible design, the method further comprises:
if the starting success signal is received within the preset time threshold, determining the starting time consumption according to the starting success signal, wherein the starting time consumption is used for representing the time consumed by the system to be started in the starting time;
judging whether the starting time is greater than the maximum starting time;
if yes, the maximum starting time is updated to be the starting time.
In one possible design, before sending the mode setting signal to the system to be started, the method further includes:
acquiring configuration parameters of a system to be started, wherein the configuration parameters comprise: maximum startup time consumption and startup signature identification;
judging whether the system to be started is started for the first time according to the starting signature mark;
if the system to be started is started for the first time, setting the maximum starting time consumption as a preset initial value, setting the first starting identification in the starting signature identifications as a set value, and determining a preset time threshold according to the maximum starting time consumption;
Correspondingly, after updating the maximum starting time consumption into the starting time consumption of this time, the method further comprises: setting the first start identifier to a non-set value;
if not, determining a preset time threshold according to the maximum starting time consumption in the configuration parameters.
In one possible design, before determining whether the current startup time is greater than the maximum startup time, the method further includes:
if the system to be started is started for the first time, the maximum starting time is updated to be the starting time;
if the system to be started is not started for the first time, judging whether the time consumption of the starting is greater than the maximum starting time consumption.
In one possible design, before sending the mode setting signal to the system to be started, the method further includes:
acquiring configuration parameters of a system to be started, wherein the configuration parameters comprise: a target startup device storing startup data;
a mode setting signal is determined based on the target enabled device.
In one possible design, the method further comprises:
if a starting success signal fed back by the system to be started is received within a preset time threshold, the starting equipment called during successful starting is set as target starting equipment, and the starting equipment is used for storing starting data called during starting of the central controller.
In one possible design, the method further comprises:
monitoring whether the starting control system is in a normal working state by using a watchdog module;
and/or the number of the groups of groups,
the control system and the started system are mutually monitored to monitor whether the control system and the started system are in a normal working state or not.
In a second aspect, the present application provides a start control device of an electronic system, including:
the system to be started can be started through a plurality of starting modes, the sources of starting data corresponding to the various starting modes are different, and the mode setting signals are used for setting the starting modes;
a monitoring module for:
if the starting success signal fed back by the system to be started is not received within the preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode.
In a third aspect, the present application provides a monitoring system comprising:
the memory is used for storing program instructions and configuration parameters for controlling the starting of the system to be started;
And a monitor for calling and executing program instructions in the memory to perform any one of the possible startup control methods of the electronic system provided in the first aspect.
In a fourth aspect, the present application provides a storage medium, in which a computer program is stored, the computer program being configured to perform any one of the possible startup control methods of the electronic system provided in the first aspect.
In a fifth aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, implements any one of the possible electronic system start-up control system methods provided in the first aspect.
The application provides a startup control method, a device, a system, a medium and a program product of an electronic system, wherein the system to be started can be started through a plurality of startup modes by sending a mode setting signal to the system to be started, the sources of startup data corresponding to the startup modes are different, and the mode setting signal is used for setting the startup mode; if the starting success signal fed back by the system to be started is not received within the preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode. By setting a plurality of starting modes and calling starting data from different sources, a plurality of backup schemes are added for starting, and the technical problem of low starting reliability of an electronic system in the prior art is solved. The technical effect of improving the starting reliability of the automatic control system is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic structural diagram of an electronic system and a start control system thereof according to an embodiment of the present application;
fig. 2 is a flow chart of a first method for controlling startup of an electronic system according to an embodiment of the present application;
fig. 3 is a flow chart of a second method for controlling start of an electronic system according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of determining a preset time threshold according to a preset monitoring requirement according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating another embodiment of determining a preset time threshold according to a preset monitoring requirement;
fig. 6 is a flowchart of a third method for controlling startup of an electronic system according to an embodiment of the present application;
fig. 7 is a flowchart of a method for controlling startup of a fourth electronic system according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another electronic system and a start control system thereof according to an embodiment of the present application;
fig. 9 is a flowchart of a start control method of a fifth electronic system according to an embodiment of the present application;
Fig. 10 is a flowchart of a method for controlling start of a sixth electronic system according to an embodiment of the present application;
fig. 11 is a flowchart of a start control method of a seventh electronic system according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a start control device of an electronic system according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a monitoring system according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, including but not limited to combinations of embodiments, which can be made by one of ordinary skill in the art without inventive faculty, are intended to be within the scope of the present application, based on the embodiments herein.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The development of social productivity is largely attributable to the progress of technology, and automatic control has become an indispensable important technology in various fields of production and life. The automatic control is to use the electronic system as a core and execute a preset application program to control a plurality of peripheral devices to execute corresponding work tasks.
The reliability of the electronic system has a very important influence on whether the whole automatic control system can work normally. However, due to the characteristics of the electronic system, when the electronic system fails, the troubleshooting of the failure cause is generally difficult, and some unpredictable minor failures may cause the electronic system to be unable to start.
Therefore, how to improve the starting reliability of the electronic system is a technical problem to be solved.
In order to solve the technical problems, the invention concept of the application is as follows:
by setting a plurality of starting modes, each starting mode sets different starting data sources, namely different starting data are called, the problem that an electronic system cannot be started due to faults when default starting data are called is avoided, and the starting reliability of the system is improved.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an electronic system and a start control system thereof according to an embodiment of the present application. As shown in fig. 1, the start-up control system 100 may control the start-up of one or more electronic systems 200, respectively, the start-up control system 100 comprising: a monitor 101 and a nonvolatile memory 102, wherein the monitor 101 is used for executing a startup control method described below, and the memory 102 is used for storing configuration parameters required to be used in the startup control method. The electronic system 200 includes: the system comprises a startup mode pin setting unit 201, a central controller 202 and a plurality of activatable storage devices 203, wherein the central controller 202 needs to read a startup mode signal in the startup mode pin setting unit 201 when in startup, and startup data in the activatable storage devices 203 corresponding to the startup mode signal are started. The startup data may be referred to as system initialization data.
The following describes how the monitor 101 performs the startup control method provided in the present application.
Fig. 2 is a flowchart of a first method for controlling startup of an electronic system according to an embodiment of the present application. As shown in fig. 2, the specific steps of the start control method of the electronic system include:
S201, a mode setting signal is sent to a system to be started.
In this step, the system to be started may be started in a plurality of starting modes, and the source of the starting data corresponding to the various starting modes is different, and the mode setting signal is used to set the starting mode of the system to be started.
In this embodiment, by setting multiple starting modes, each starting mode sets a different starting data source, that is, calls different starting data, so that the problem that an electronic system cannot be started due to faults when calling default starting data is avoided, and the system starting reliability is improved.
In one possible design, the boot data corresponding to each boot mode is stored on a different bootable memory in the system to be booted, or on a different storage unit or storage space in the same bootable memory. For example, first boot data corresponding to mode one is stored in the first bootable memory, and second boot data corresponding to mode two is stored in the second bootable memory. By storing the starting data in different memories, when a certain memory fails, the starting data stored in another memory can still be called, so that the reliability of system starting is improved.
In this embodiment, the monitor sends a mode setting signal to the start mode setting unit of the system to be started, and after receiving the mode setting signal, the start mode setting unit changes the state of the input pin of the central controller of the system to be started into a mode selection state corresponding to the mode setting signal. Then, when the system to be started is started, the mode selection state is read through the input pin.
Specifically, as shown in fig. 1, the electronic system 200 is a system to be started, the monitor 101 in the start control system 100 sends a mode setting signal to the start mode pin setting unit 201 in the electronic system 200, and starts a timer in the monitor 101 to start counting. The start-up mode pin setting unit 201, upon receiving the mode setting signal, sets a circuit connected to the start-up mode pin of the central controller 202 to a state corresponding to the start-up mode, such as a high-level state or a low-level state. The central controller reads the state in the start mode pin, i.e. the start mode signal, at power-up, and finds the corresponding bootable memory 203 storing start data from the plurality of bootable memories 203 according to the start mode signal.
It should be noted that, in the general prior art, the system to be started only includes a memory capable of being started, and the start mode pin setting unit is also set to a fixed state only by the fixed circuit, so that the state cannot be changed, otherwise, the central controller cannot be started. The method breaks through the inertia thinking and inertia design, the starting mode pin setting unit is replaced by a circuit structure capable of changing states, a monitor sends a state changing instruction, namely a mode setting signal, to the starting mode pin setting unit, the state of the starting mode pin setting unit is changed, namely the starting mode corresponding to the central controller is changed, each starting mode corresponds to one starting memory, namely the same or different starting data are stored by setting a plurality of starting memories, and the central controller can still start normally when a certain starting memory fails. Meanwhile, as a plurality of bootable memories are arranged, if different versions of starting data are stored in different bootable memories, the same set of hardware control circuit can realize a plurality of sets of different software starting versions, so that the starting flexibility is improved, and the application range of the electronic system is widened. I.e. the plurality of bootable memories may not only be used as backing stores, but also as storage units for other versions of the boot data.
S202, if a start success signal fed back by a system to be started is not received within a preset time threshold, a mode setting signal is changed.
Specifically, in one possible implementation manner, when a mode setting signal is sent to a system to be started, a monitoring timer may be started, whether a start success signal fed back by the system to be started is received within a preset time threshold is judged according to the timing of the monitoring timer, if not, a new mode setting signal is determined according to a preset start rule, if yes, the system to be started is proved to be started successfully, and the process is directly ended.
In this embodiment, as shown in fig. 1, the central controller 202 invokes the corresponding startup data in the bootable memory 203 to start according to the startup mode signal corresponding to the startup mode pin setting unit 201, and after successful startup, the central controller 202 feeds back a startup success signal to the monitor 101 through a wired or wireless mode.
It is noted that the start-up success signal must be sent within a preset time threshold beyond which the start-up is deemed to have failed.
In this embodiment, the preset initiation rules include at least one of the following rules:
(1) Restarting the electronic system in the same starting mode after the starting failure, wherein the same starting mode corresponds to the same mode setting signal, the using times of the same mode setting signal cannot exceed the maximum times limit value, for example, the maximum times limit value is 2 times, and when the using times of the same mode setting signal exceed the maximum times limit value, one of the remaining mode setting signals is randomly selected to be sent to the system to be started, or the next mode setting signal is selected according to a certain sequence to be sent to the system to be started for starting attempt.
(2) After the electronic system fails to start, randomly selecting one of the remaining mode setting signals to send to the system to be started, or selecting the next mode setting signal according to a certain sequence to send to the system to be started for starting trial until all the mode setting signals are used, and ending the starting control flow when the system still cannot start.
(3) And after the electronic system fails to start, randomly selecting one of the remaining mode setting signals to send to the system to be started, or selecting the next mode setting signal according to a certain sequence to send to the system to be started for starting trial until the maximum starting trial number limit is reached.
In this embodiment, as shown in fig. 1, the startup mode setting signals correspond to startup modes one by one, and the startup modes correspond to the number of the bootable memories 203 one by one, and changing the startup mode setting signals can enable the central controller 202 to retrieve startup data from different bootable memories 203, so as to avoid the technical problem that startup cannot be performed due to some unknown faults, in which startup data in the bootable memories 203 designated in the original S201 cannot be retrieved.
S203, sending a changed mode setting signal to the system to be started.
In this step, the modified mode setting signal is sent to the system to be started, so that the system to be started can determine a new starting mode according to the modified mode setting signal, and new starting data is obtained from a source corresponding to the new starting mode.
In one possible design, since there may be different reboot requirements for the system to be booted, after S203, a reset signal may be sent to the system to be booted, so that the system to be booted restarts according to the boot mode corresponding to the mode setting signal.
The embodiment provides a starting control method of an electronic system, which is characterized in that a mode setting signal is sent to a system to be started, the system to be started can be started through a plurality of starting modes, the sources of starting data corresponding to the various starting modes are different, and the mode setting signal is used for setting the starting modes; if the starting success signal fed back by the system to be started is not received within the preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode. By setting a plurality of starting modes and calling starting data from different sources, a plurality of backup schemes are added for starting, and the technical problem of low starting reliability of an electronic system in the prior art is solved. The technical effect of improving the starting reliability of the automatic control system is achieved.
In the embodiment shown in fig. 2, consider:
(1) If the value of the preset time threshold is set to be too large, if the system to be started fails during starting, a long time is required to wait for starting through another starting mode again, so that the starting time of the system is long, the use experience of a user is affected, and the overall response efficiency of the system is improved.
(2) If the preset time threshold is set to be too small, abnormal restarting occurs in the process that the system to be started is still in normal starting, for example, when the weather is cold, delayed response may occur to the system hardware, but the system is still in normal starting, but is misjudged as abnormal starting by the monitor, so that the system falls into the dead cycle of continuous restarting.
(3) Different systems to be started, even if the same circuit design is adopted by the controller and the same system software is installed, because peripheral equipment of different systems to be started is different, possible slight differences in application software or hardware of different peripheral equipment can possibly cause the starting time to be different, and at the moment, if a monitor monitors a plurality of systems to be started simultaneously, the problems mentioned in (1) and (2) can occur simultaneously for different systems to be started by adopting a unified preset time threshold.
In one possible design, to avoid the above three cases, the value of the preset time threshold in S202 is not fixed, but can be dynamically adjusted according to the preset monitoring requirement.
For ease of understanding, the dynamic adjustment of the preset time threshold is illustrated by the following examples.
Fig. 3 is a flowchart of a second method for controlling startup of an electronic system according to an embodiment of the present application. As shown in fig. 3, the specific steps of the start control method of the electronic system include:
s301, a mode setting signal is sent to a system to be started.
The detailed principle and noun explanation of the present step may refer to S201, and will not be repeated here.
S302, determining a preset time threshold according to a preset monitoring requirement.
In this step, various embodiments may be included:
fig. 4 is a flowchart illustrating determining a preset time threshold according to a preset monitoring requirement according to an embodiment of the present application. As shown in fig. 4, the specific steps of S302 may include:
s3021, acquiring each history time-consuming recorded by the system to be started when the system is started successfully each time.
In this step, as shown in fig. 1, each history time may be stored in the nonvolatile memory 102, and each history time may be obtained by reading the record therein.
Alternatively, each historical time consuming record in the remote database may also be obtained through a network interface.
S3023, determining a preset time threshold according to each historical time consumption.
In this step, the determination of the preset time threshold according to each historical time consumption may have various embodiments:
in one possible design, the preset time threshold may be determined based on a maximum and/or minimum of each historical time consumption.
For example, (1) maximum value or minimum value+preset determination time consumption=preset time threshold, wherein the preset determination time consumption can be set according to the needs of the actual scene, which is not limited in the application;
(2) N times of maximum value or minimum value+preset determination time consumption=preset time threshold value, optionally, n is a number greater than or equal to 1, and of course, n can also be other values;
(3) a maximum value of a times+a minimum value of b times+a preset determination time consumption=preset time threshold;
(4) Average of maximum and minimum+preset determination time-consuming=preset time threshold.
In another possible design, the average of the historical time consumption may be calculated and the preset time threshold may be determined based on the average.
For example, (5) average value of n times+preset determination time consumption=preset time threshold, optionally, n is a number greater than or equal to 1, but n may be other values.
In still another possible design, in order to save the storage space of the nonvolatile memory, each historical time consumption recorded when the system to be started was last successfully started N times may be obtained, so that the preset time threshold is determined according to each historical time consumption. Optionally, N is an integer greater than or equal to 2.
It should be noted that, determining the preset time threshold according to each historical time elapsed recorded during the last N times of successful startup includes:
at least one of the maximum value, the minimum value, and the average value is determined from each of the historical time periods, and then the preset time threshold is found in a similar manner as in (1) to (5) above.
Fig. 5 is a flowchart illustrating another method for determining a preset time threshold according to a preset monitoring requirement according to an embodiment of the present application. As shown in fig. 5, the specific steps of S302 may include:
s3022, acquiring recorded starting characteristic data.
In this step, the start-up feature data is recorded after the system to be started is successfully started or after the system to be started is failed to be started, and the start-up feature data includes: at least one of maximum time consumption, minimum time consumption and average time consumption of each successful start of the system to be started.
In this embodiment, startup feature data recorded in a database or nonvolatile memory is acquired.
As shown in fig. 1, the start-up feature data may be stored in a non-volatile memory 102, and the start-up feature data may be obtained by reading a record therein.
Alternatively, each historical time consuming record in the remote database may also be obtained through a network interface.
In this embodiment, only recording the startup feature data can greatly reduce the storage space of the nonvolatile memory or database.
S3024, determining a preset time threshold according to the starting characteristic data.
In one possible design, the startup feature data includes a maximum startup time consumption. Thus, step S3024 is specifically to determine the preset time threshold according to the maximum startup time consumption.
For example, n times the maximum startup time + the preset decision time = preset time threshold.
S303, judging whether a start success signal fed back by a system to be started is received within a preset time threshold.
In the present embodiment, the monitoring timer may be synchronously started at the time of executing S301. And judging whether a start success signal fed back by the system to be started is received within a preset time threshold according to the timing of the monitoring timer, if the start success signal is not received within the preset time threshold, executing step S304, and if the start success signal is received within the preset time threshold, executing steps S305-S306.
S304, determining a new mode setting signal according to a preset starting rule, and retransmitting the mode setting signal to the system to be started.
The implementation principle and noun explanation of this step may refer to S202 to S203, which are not described herein.
S305, determining the current starting time consumption according to the starting success signal.
In this step, the current startup time is used to characterize the time consumed by the system to be started at this time. Specifically, the start success signal includes: the successful start-up is identified and the start-up is time consuming.
S306, adding the current starting time to a historical time consumption record corresponding to the system to be started.
In this embodiment, as shown in fig. 1, each time the system to be started is successfully started, the monitor 101 stores the time consumption for starting in the nonvolatile memory 102, so as to adjust the preset time threshold later.
Fig. 6 is a flowchart of a third method for controlling startup of an electronic system according to an embodiment of the present application. As shown in fig. 6, the specific steps of the start control method of the electronic system include:
s601, acquiring configuration parameters of a system to be started, and determining a preset time threshold and a mode setting signal of a starting mode according to the configuration parameters.
In this step, a configuration parameter is obtained from a preset storage address of a database or a nonvolatile memory, and a preset time threshold and a mode setting signal of a start mode are determined according to the configuration parameter, where the configuration parameter includes: maximum start-up is time consuming.
Determining a preset time threshold according to the configuration parameters, including: n times maximum startup time + preset decision time = preset time threshold, or m times maximum startup time = preset time threshold, where m is greater than 1.
Specifically, as shown in fig. 1, the monitor 101 reads the configuration parameters from a preset storage address of the nonvolatile memory 102, and optionally, the configuration parameters may also be read by connecting a remote database through a network interface.
And then calculating a preset time threshold according to the configuration parameters, wherein the configuration parameters also comprise a default first starting mode, and determining a corresponding mode setting signal according to the first starting mode.
S602, sending a mode setting signal to a system to be started, and starting a monitoring timer.
S603, judging whether a start success signal fed back by the system to be started is received within a preset time threshold according to the timing of the monitoring timer.
In this step, if not, step S604 is executed, and if yes, step S605 is executed.
S604, determining a new mode setting signal according to a preset starting rule, and retransmitting the mode setting signal to the system to be started.
S605, determining the time consumption of the starting according to the starting success signal.
In this step, the time consumed for the current startup is used to characterize the time consumed by the system to be started during the current startup.
S606, judging whether the starting time is more than the maximum starting time.
In this step, if yes, step S607 is performed.
S607, updating the maximum starting time consumption into the starting time consumption.
In this step, the maximum startup time consumption in the database or the nonvolatile memory is updated to be the current startup time consumption.
For ease of understanding, the embodiment of fig. 6 determines the preset time threshold and updates the maximum startup time when the system to be started is first started, as further described below with respect to the embodiment of fig. 7.
Fig. 7 is a flowchart of a startup control method of a fourth electronic system according to an embodiment of the present application. As shown in fig. 7, the specific steps of the start control method of the electronic system include:
s701, acquiring configuration parameters of a system to be started.
In this step, the configuration parameters are obtained from a preset storage address of the database or the nonvolatile memory, where the configuration parameters include: maximum startup time consumption and startup signature identification.
Specifically, as shown in fig. 1, the monitor 101 reads the configuration parameters from a preset storage address of the nonvolatile memory 102, and optionally, the configuration parameters may also be read by connecting a remote database through a network interface.
S702, judging whether the system to be started is started for the first time according to the starting signature identification.
In this step, if the system to be started is started for the first time, step S703 is executed, otherwise step S704 is executed.
S703, setting the maximum starting time consumption as a preset initial value, and setting the first starting identification in the starting signature identifications as a set value.
In this step, when the maximum starting time is not recorded in any starting time, a preset initial value needs to be set, and the value of the preset initial value can be set by a developer according to experience or statistical data of similar products. The first start flag may be, for example, a boolean type variable, with 1 representing a set value and 0 representing a non-set value.
S704, determining a preset time threshold according to the maximum starting time.
In this step, specifically, the method includes: n times maximum startup time + preset decision time = preset time threshold, or m times maximum startup time = preset time threshold, where m is greater than 1.
S705, determining a mode setting signal according to the configuration parameter.
In this embodiment, the mode setting signal is determined according to a default first start mode, and optionally, the configuration parameters further include: a default first start-up mode.
S706, a mode setting signal is sent to the system to be started.
Note that S704 and S705 do not have a time sequence requirement, and may be performed simultaneously, and S704 need only be performed before S707.
Optionally, after sending a mode setting signal to the system to be started, a monitoring timer is started, and the monitoring timer is used for recording the starting time.
S707, judging whether a start success signal fed back by the system to be started is received within a preset time threshold.
In this step, according to whether a start success signal is received before the count of the monitoring timer reaches the preset time threshold, if not, step S708 is executed, and if yes, step S709 is executed.
S708, determining a new mode setting signal according to a preset starting rule, and retransmitting the mode setting signal to the system to be started.
S709, determining the time consumption of the starting according to the starting success signal.
In this step, the time consumed for the current startup is used to characterize the time consumed by the system to be started during the current startup.
Specifically, when a start success signal is received, the timing of the monitoring timer is determined to be time-consuming in the starting.
S710, judging whether the first starting mark is a set value.
In this step, if yes, S711 is executed, and if no, S712 is executed.
Specifically, if the first start identifier is a set value, determining that the current successful start is the first successful start of the system to be started, and directly setting the time consumption of the start as the maximum start time consumption.
S711, updating the maximum starting time consumption to be the starting time consumption, and setting the first starting identification to be a non-set value.
In this step, the maximum startup time consumption in the database or the nonvolatile memory is updated to be the current startup time consumption. The value of the first start flag is set to a non-set value, such as 0.
S712, judging whether the time consumption of the starting is larger than the maximum starting time consumption.
In this step, if yes, step S713 is performed.
S713, updating the maximum starting time consumption into the starting time consumption.
In this step, the maximum startup time consumption in the database or the nonvolatile memory is updated to be the current startup time consumption.
In the above embodiments, there is a problem that if the first transmitted starting mode setting signal is fixed, the bootable memory corresponding to the starting mode setting signal fails, but when the starting mode setting signal is not maintained and replaced in time, the system to be started will experience at least one starting failure at each time, and then restart the starting mode is replaced, so that starting time consumption is definitely increased, starting efficiency is affected.
That is, before S201 of the embodiment shown in fig. 2, and before S301 shown in fig. 3, further includes: obtaining configuration parameters from preset storage addresses of a database or a nonvolatile memory, wherein the configuration parameters comprise: a target startup device storing startup data; a mode setting signal is determined based on the target enabled device.
The configuration parameters in S601 of the embodiment shown in fig. 6 and S701 of the embodiment shown in fig. 7 further include: a target boot device storing boot data. The determining of the mode setting signal according to the configuration parameters in S705 includes: a mode setting signal is determined based on the target enabled device.
And in the embodiments shown in fig. 2, 3, 6 and 7, further comprises:
if a starting success signal fed back by the system to be started is received within a preset time threshold, the starting equipment called during successful starting is set as target starting equipment, and the starting equipment is used for storing starting data called during starting of the central controller. The startup device includes the startup-capable storage device in the above embodiments.
The present inventors have also found that, in the start-up control system shown in fig. 1, although the monitor 101 can monitor whether a malfunction has occurred in the electronic system 200 that can affect the start-up and control it to restart in another start-up mode, if the monitor 101 itself has failed, the start-up control of the electronic system 200 cannot be achieved. Accordingly, the present application also provides a start control system that adds a watchdog module to monitor the operation of the monitor 101. Note that the watchdog module may be implemented in hardware or software.
In addition, after the electronic system 200 is started, a mutual monitoring mechanism between the monitor 101, i.e. the start control system, and the electronic system 200, i.e. the started system, needs to be established, so that any one of the two fails, and can be found in time when the electronic system cannot work normally, thereby further increasing the safety of the system.
Therefore, the start control method provided by the application further comprises the following steps:
monitoring whether the starting control system is in a normal working state by using a watchdog module;
and/or the number of the groups of groups,
the control system and the started system are mutually monitored to monitor whether the control system and the started system are in a normal working state or not.
The following description is made of a specific embodiment of whether such mutual supervision is in a normal operation state.
Fig. 8 is a schematic structural diagram of another electronic system and a start control system thereof according to an embodiment of the present application. As shown in fig. 8, the start-up control system 100 may control the start-up of one or more electronic systems 200, respectively, the start-up control system 100 including: the system comprises a monitor 101, a nonvolatile memory 102 and a watchdog 103, wherein the monitor 101 is used for executing the starting control method provided by each method embodiment of the application, the memory 102 is used for storing configuration parameters required to be used in the starting control method, and the watchdog 103 is used for monitoring whether the monitor 101 operates normally. The electronic system 200 includes: the system comprises a startup mode pin setting unit 201, a central controller 202 and a plurality of activatable storage devices 203, wherein the central controller 202 needs to read a startup mode signal in the startup mode pin setting unit 201 when in startup, and startup data in the activatable storage devices 203 corresponding to the startup mode signal are started. The startup data may be referred to as system initialization data.
The working logic of the watchdog 103 is described below in connection with the embodiments shown in fig. 2, 3, 6 and 7:
when the mode setting signal is sent to the system to be started as described in S201, S301, S602, and S706, the method further includes:
sending a starting signal to the watchdog module, and starting a normal operation timer;
when the normal operation timer reaches a first preset interval, a first operation identifier is sent to the watchdog module, and the normal operation timer is reset, wherein the first operation identifier is used for representing that the system is in a normal working state;
and if the first preset interval is exceeded, the system still cannot send the first operation identifier, receiving and executing a stop instruction sent by the watchdog module, wherein the stop instruction is used for stopping the system and/or the system to be started.
As shown in fig. 8, after the monitor 101 is powered on, a start signal is sent to the watchdog 103, and a normal operation timer in the monitor 101 is started, and when the normal operation timer reaches a first preset interval, the monitor 101 sends a first operation identification to the watchdog 103, and resets the normal operation timer. The first operation identifier is used to indicate that the monitor 101 is in a normal operation state.
If the first preset interval is exceeded, the monitor 101 cannot transmit the first operation identifier, and the watchdog 103 transmits a stop instruction to the monitor 101 to stop the operation of the monitor 101 and/or the electronic system 200.
The present inventors have also found that, for each of the above embodiments, after the system to be started, i.e., the electronic system 200 shown in fig. 1 and 8, the started system may still fail, so as to stop the electronic system 200 as soon as possible, and prevent the expansion loss, the start control method provided in the present application may further increase the operation monitoring of the started system through the monitor, so as to improve the stability of the started system.
The start control method provided for the above embodiments further includes each step shown in at least one of fig. 9, 10, and 11.
Fig. 9 is a flowchart of a start control method of a fifth electronic system according to an embodiment of the present application. As shown in fig. 9, the specific steps of the start control method of the electronic system include:
and S901, receiving a second operation identifier sent by the started system according to a second preset interval.
In this step, the second running identifier is used to characterize that the started system is in a normal working state.
S902, if the second operation identifier is not received beyond the second preset interval, a reset signal is sent to the started system.
Specifically, although there are methods for preventing the system from running off, such as a watchdog, when the system watchdog (e.g., a watchdog program implemented in a software application) also fails. The system to be started is successfully started to become a started system, and when the started system is in normal operation, the started system sends an operation mark to a monitoring controller (such as a monitor 101 shown in fig. 1 and 8) according to a certain interval time, and if the monitoring controller exceeds a set interval, the started system is reset if the operation state mark is not received. Thus, the stability of the started system can be effectively improved.
Fig. 10 is a flowchart of a start control method of a sixth electronic system according to an embodiment of the present application. As shown in fig. 10, the specific steps of the start control method of the electronic system include:
s1001, receiving a third operation identifier sent by one or more applications in the started system according to a third preset interval.
In this step, the third running flag is used to characterize that one or more applications in the started system are in a normal operating state.
S1002, if the third running identifier is not received beyond the third preset interval, a restarting signal is sent to the application.
Specifically, the monitor controller, i.e. the monitor 101 shown in fig. 1 and 8, may monitor one or more application programs in the started system without changing the hardware architecture after the system to be started is started successfully, including: application programs in the embedded control system. The application in the started system sends an application running flag, i.e. a third running flag, to the monitoring controller, i.e. the monitor 101, and in case the application fails to start or any abnormality causes the application to become stopped from running, the monitoring controller, i.e. the monitor 101, may send an instruction to the started system to cause the started system to reset and restart the application, increasing the running stability and reliability of one or more applications in the started system.
Fig. 11 is a flowchart of a start control method of a seventh electronic system according to an embodiment of the present application. As shown in fig. 11, the specific steps of the start control method of the electronic system include:
s1101, sending a fourth operation identifier to the started system according to a fourth preset interval.
In this step, the monitor 101 as shown in fig. 1 and 8 transmits a fourth operation identifier to one or more started systems according to a fourth preset interval, where the fourth operation identifier is used to characterize that the monitor 101 is operating normally.
S1102, receiving a monitoring reset signal sent by the controllable reset module.
In this step, the controllable reset module is configured to: if the system (such as the monitor 101 shown in fig. 1 and 8) does not send the fourth running identifier to the started system beyond the fourth preset interval, the started system sends a reset control instruction to the controllable reset module, and the reset control instruction is used for controlling the controllable reset module to send a monitoring reset signal. The monitor 101 receives the monitor reset signal sent by the controllable reset module.
S1103, reset restarting is executed on the system according to the monitoring reset signal.
In this step, in response to monitoring the reset signal, the monitor 101 performs reset restart.
It should be noted that, in this embodiment, the present system includes: such as monitor 101 in fig. 1 and 8, activates either control system 100 or the entirety of control system 100 and one or more electronic systems 200. And a controllable reset module is disposed between the start control system 100 and the electronic system 200 in this embodiment, it is understood that the controllable reset module may be a module in the start control system 100 or the electronic system 200.
After the embodiment shown in fig. 11 is combined with the above embodiments, the start control system and the electronic system are mutually monitored, and after any one of them has a problem, the other can find out in time that the other is reset and restarted, so that the overall stability is improved.
In summary, the present application provides a method for controlling startup of an electronic system, by sending a mode setting signal to a system to be started, and starting a monitoring timer, the system to be started can be started by a plurality of startup modes, sources of startup data corresponding to the various startup modes are different, and the mode setting signal is used for setting the startup mode; judging whether a starting success signal fed back by a system to be started is received within a preset time threshold according to the timing of the monitoring timer; if not, determining a new mode setting signal according to a preset starting rule, and retransmitting the mode setting signal to the system to be started. The technical problem of low starting reliability of an electronic system in the prior art is solved. By setting a plurality of starting modes and calling starting data from different sources, a plurality of backup schemes are added for starting, and the technical effect of improving the starting reliability of the automatic control system is achieved.
Fig. 12 is a schematic structural diagram of a start control device of an electronic system according to an embodiment of the present application. The start control device 1200 of the electronic system may be implemented by software, hardware, or a combination of both.
As shown in fig. 12, the start control device 1200 of the electronic system includes:
The sending module 1201 is configured to send a mode setting signal to a system to be started, where the system to be started can be started by using multiple starting modes, and the starting data corresponding to the various starting modes are different in source, and the mode setting signal is used for setting the starting mode;
a monitoring module 1202 for:
if the starting success signal fed back by the system to be started is not received within a preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode.
In one possible design, the boot data corresponding to each boot mode is stored on a different bootable memory in the system to be booted, or on a different storage unit or storage space in the same bootable memory.
In one possible design, the value of the preset time threshold is dynamically adjustable according to preset monitoring requirements.
In one possible design, before determining whether the start success signal fed back by the system to be started is received within the preset time threshold according to the timing of the monitoring timer, the monitoring module 1202 is further configured to:
And determining a preset time threshold according to the preset monitoring requirement.
In one possible design, the start control apparatus 1200 further includes:
a monitoring module 1202, configured to obtain each historical time consumption recorded by the system to be started when the system is successfully started each time;
the monitoring module 1202 is further configured to determine a preset time threshold according to each historical time consumption.
In one possible design, the monitoring module 1202 is further configured to determine the preset time threshold based on a maximum and/or minimum of each historical time consumption.
In one possible design, the monitoring module 1202 is further configured to calculate an average value of each historical time consumption, and determine the preset time threshold according to the average value.
In one possible design, the monitoring module 1202 is further configured to obtain each historical time-consuming record of the last N successful boots of the system to be booted.
In one possible design, the monitor module 1202 is further configured to obtain startup feature data recorded in a database or in a nonvolatile memory;
the monitoring module 1202 is further configured to determine a preset time threshold according to the start-up feature data.
In one possible design, the startup feature data includes a maximum startup time consumption, and the monitoring module 1202 is further configured to determine a preset time threshold based on the maximum startup time consumption.
In one possible design, after determining whether the start success signal fed back by the system to be started is received within the preset time threshold according to the timing of the monitoring timer, the monitoring module 1202 is further configured to:
if yes, determining starting time consumption according to the starting success signal, wherein the starting time consumption is used for representing the time consumed by the system to be started in the current starting;
the sending module 1201 is further configured to add the startup time to a historical time-consuming record corresponding to the system to be started.
In one possible design, after determining whether the start success signal fed back by the system to be started is received within the preset time threshold according to the timing of the monitoring timer, the monitoring module 1202 is further configured to:
if yes, determining starting time consumption according to the starting success signal, wherein the starting time consumption is used for representing the time consumed by the system to be started in the current starting;
judging whether the starting time is more than the maximum starting time;
if so, the sending module 1201 is further configured to update the maximum startup time consumption to the startup time consumption.
In one possible design, the maximum boot time is stored in a database or nonvolatile memory, and the monitoring module 1202 is further configured to, before sending the mode setting signal to the system to be booted:
Obtaining configuration parameters from preset storage addresses of the database or the nonvolatile memory, wherein the configuration parameters comprise: maximum start-up time;
the sending module 1201 is further configured to:
the maximum startup time in the database or nonvolatile memory is updated to be startup time.
In one possible design, the configuration parameters further include: after the signature identifier is started and the configuration parameters are obtained from the preset storage address of the database or the nonvolatile memory, the monitoring module 1202 is further configured to:
judging whether the system to be started is started for the first time according to the starting signature mark;
if yes, setting the maximum starting time consumption as a preset initial value, setting a first starting identifier in the starting signature identifiers as a set value, and determining a preset time threshold according to the maximum starting time consumption;
correspondingly, after updating the maximum startup time in the database or the nonvolatile memory to the startup time, the monitoring module 1202 is further configured to: setting the first start identifier to a non-set value;
if not, the monitoring module 1202 is further configured to determine a preset time threshold according to the maximum starting time in the configuration parameters.
In one possible design, the monitor module 1202, prior to determining whether the startup time period is greater than the maximum startup time period, is further configured to:
Judging whether the first starting mark is a set value or not;
if yes, updating the maximum starting time consumption in the database or the nonvolatile memory into starting time consumption;
if not, judging whether the starting time is greater than the maximum starting time.
In one possible design, the monitor module 1202 is further configured to, prior to sending the mode setting signal to the system to be started:
obtaining configuration parameters from preset storage addresses of a database or a nonvolatile memory, wherein the configuration parameters comprise: a target startup device storing startup data;
the monitoring module 1202 is further configured to determine a mode setting signal according to the target enabled device.
In one possible design, if the start success signal fed back by the system to be started is received within a preset time threshold, the monitoring module 1202 is further configured to:
and setting the starting equipment called when the starting is successful as target starting equipment, wherein the starting equipment is used for storing starting data called when the central controller is started.
In one possible design, the configuration parameters further include: the target boot device storing the boot data, after retrieving the configuration parameters from the database or from the preset memory address of the non-volatile memory, the monitor module 1202 is further configured to:
A mode setting signal is determined based on the target enabled device.
In one possible design, if the start success signal fed back by the system to be started is received within a preset time threshold, the monitoring module 1202 is further configured to:
and setting the starting equipment called when the starting is successful as target starting equipment, wherein the starting equipment is used for storing starting data called when the central controller is started.
In one possible design, the start control apparatus 1200 further includes: a watchdog module 1203;
when the sending module 1201 sends a mode setting signal to the system to be started, the monitoring module 1202 is further configured to:
sending a starting signal to the watchdog module 1203 and starting a normal operation timer;
when the normal operation timer reaches a first preset interval, a first operation identifier is sent to the watchdog module 1203, and the normal operation timer is reset, wherein the first operation identifier is used for representing that the starting control device 1200 is in a normal working state;
if the first preset interval is exceeded, the start control device 1200 still cannot send the first operation identifier, and then receives and executes a stop instruction sent by the watchdog module 1203, where the stop instruction is used to stop the present system and/or the system to be started;
A watchdog module 1203 for:
receiving a first operation identifier sent by the monitoring module 1202 according to a first preset interval;
if the first running flag cannot be received beyond the first preset interval, a stop instruction is sent to the monitoring module 1202.
In one possible design, the monitor module 1202 is also configured to:
receiving a second operation identifier sent by the started system according to a second preset interval, wherein the second operation identifier is used for representing that the started system is in a normal working state;
the sending module 1201 is further configured to send a reset signal to the started system if the second operation identifier is not received beyond the second preset interval.
In one possible design, the monitor module 1202 is also configured to:
receiving a third operation identifier sent by one or more applications in the started system according to a third preset interval, wherein the third operation identifier is used for representing that the applications are in a normal working state;
the sending module 1201 is further configured to send a restart signal to an application in the started system if the third running identifier is not received beyond the third preset interval.
In one possible design, the start control apparatus 1200 further includes: a controllable reset module 1204;
The sending module 1201 is further configured to send a fourth operation identifier to the started system according to a fourth preset interval;
a controllable reset module 1204 for:
if the sending module 1201 does not send the fourth running identifier to the started system beyond the fourth preset interval, receiving a reset control instruction sent by the started system, and sending a monitoring reset signal to the acquisition module according to the reset control instruction;
the acquisition module is also used for receiving a monitoring reset signal;
the monitoring module 1202 is further configured to:
reset restart of the start control apparatus 1200 is performed in accordance with the monitor reset signal.
In one possible design, the sending module 1201 is further configured to:
and sending a reset signal to the system to be started so that the system to be started is restarted according to the starting mode corresponding to the mode setting signal.
It should be noted that, the apparatus provided in the embodiment shown in fig. 12 may perform the method provided in any of the above method embodiments, and the specific implementation principles, technical features, explanation of terms, and technical effects are similar, and are not repeated herein.
Fig. 13 is a schematic structural diagram of a monitoring system according to an embodiment of the present application. As shown in fig. 13, the monitoring system 1300 may include: at least one monitor 1301 and a memory 1302. Fig. 13 shows an electronic device as an example of a monitor.
The memory 1302 is used for storing programs and configuration parameters for controlling the system to be started. In particular, the program may include program code including computer-operating instructions.
In one possible design, the configuration parameters include: the respective histories recorded by the system to be started at each successful start-up are time consuming.
In one possible design, the configuration parameters include: maximum start-up is time consuming.
In one possible design, the configuration parameters include: a target device identification for characterizing a target boot device storing boot data of a system to be booted.
In one possible design, the configuration parameters include: and the first starting identifier in the starting signature identifiers is used for representing whether the system to be started is started for the first time.
The memory 1302 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
The monitor 1301 is configured to execute computer-executable instructions stored in the memory 1302 to implement the methods described in the method embodiments above.
The monitor 1301 may be a central monitor (central processing unit, abbreviated as CPU), or a specific integrated circuit (application specific integrated circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present application.
Alternatively, the memory 1302 may be separate or integrated with the monitor 1301. When the memory 1302 is a device independent of the monitor 1301, the electronic apparatus 1300 may further include:
a bus 1303 for connecting the monitor 1301 and the memory 1302. The bus may be an industry standard architecture (industry standard architecture, abbreviated ISA) bus, an external device interconnect (peripheral component, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. Buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 1302 and the monitor 1301 are implemented on a single chip, the memory 1302 and the monitor 1301 may complete communication through an internal interface.
In one possible design, the monitoring system 1300 further includes: a watchdog circuit 1304;
the watchdog circuit 1304 is to:
receiving a first operation identifier sent by a monitor according to a first preset interval;
if the watchdog circuit 1304 does not receive the first operation identifier, a stop instruction is sent to the monitor 1301, where the stop instruction is used to stop the current system and/or the system to be started.
In one possible design, the monitoring system 1300 further includes: a controllable reset circuit 1305;
the monitor 1301 is further configured to send a fourth operation identifier to the started system according to a fourth preset interval;
a controllable reset circuit 1305 for:
if the monitor 1301 exceeds a fourth preset interval and does not send a fourth running identifier to the started system, receiving a reset control instruction sent by the started system; transmitting a monitor reset signal to the monitor 1301 according to the reset control instruction;
monitor 1301, also for:
receives the monitor reset signal and performs a reset restart of the monitor system 1300 according to the monitor reset signal.
Embodiments of the present application also provide a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, and specifically, the computer readable storage medium stores program instructions for the methods in the above method embodiments.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the method of the above-described method embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (17)

1. A startup control method of an electronic system, characterized by comprising:
a mode setting signal is sent to a system to be started, the system to be started can be started through a plurality of starting modes, the sources of starting data corresponding to the starting modes are different, and the mode setting signal is used for setting the starting modes;
if the starting success signal fed back by the system to be started is not received within a preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode.
2. The startup control method according to claim 1, wherein the startup data corresponding to each startup mode is stored in a different bootable memory in the system to be started or in a different storage unit or storage space in the same bootable memory.
3. The startup control method according to claim 1, wherein the preset time threshold is determined by:
acquiring each history time consumption recorded when the system to be started is successfully started each time;
and determining the preset time threshold according to each historical time consumption.
4. The startup control method according to claim 3, wherein said determining said preset time threshold according to each of said historical time consuming values comprises:
and determining the preset time threshold according to the maximum value and/or the minimum value of each historical time consumption.
5. The startup control method according to claim 3, wherein said preset time threshold determined from each of said historical time elapsed time comprises:
and calculating the average value of each historical time consumption, and determining the preset time threshold according to the average value.
6. The startup control method according to claim 1, characterized in that the method further comprises:
acquiring recorded starting characteristic data, wherein the starting characteristic data is recorded after the system to be started is successfully started or after the system to be started fails to be started;
and determining the preset time threshold according to the starting characteristic data.
7. The startup control method according to claim 6, wherein the startup feature data includes a maximum startup time consumption, and wherein the determining the preset time threshold from the startup feature data includes:
and determining the preset time threshold according to the maximum starting time.
8. The startup control method according to any one of claims 1 to 7, characterized in that the method further comprises:
if the starting success signal is received within a preset time threshold, determining current starting time consumption according to the starting success signal, wherein the current starting time consumption is used for representing the time consumed by the system to be started in the current starting;
and adding the current starting time to a historical time consumption record corresponding to the system to be started.
9. The startup control method according to any one of claims 1 to 7, characterized in that the method further comprises:
If the starting success signal is received within a preset time threshold, determining the time consumption of the starting according to the starting success signal, wherein the time consumption of the starting is used for representing the time consumed by the system to be started in the starting;
judging whether the starting time is greater than the maximum starting time;
if yes, updating the maximum starting time consumption into the starting time consumption.
10. The startup control method according to claim 9, characterized by further comprising, before said sending a mode setting signal to a system to be started:
acquiring configuration parameters of the system to be started, wherein the configuration parameters comprise: maximum startup time consumption and startup signature identification;
judging whether the system to be started is started for the first time according to the starting signature identifier;
if the system to be started is started for the first time, setting the maximum starting time consumption as a preset initial value, setting a first starting identification in the starting signature identifications as a set value, and determining the preset time threshold according to the maximum starting time consumption;
correspondingly, after updating the maximum starting time consumption to the current starting time consumption, the method further comprises: setting the first start identifier to a non-set value;
If not, determining the preset time threshold according to the maximum starting time consumption in the configuration parameters.
11. The startup control method according to claim 10, further comprising, before said determining whether the current startup time period is greater than a maximum startup time period:
if the system to be started is started for the first time, updating the maximum starting time consumption into the current starting time consumption;
if the system to be started is not started for the first time, judging whether the time consumption of the current starting is greater than the maximum starting time consumption.
12. The startup control method according to claim 1, characterized by further comprising, before said sending of the mode setting signal to the system to be started:
acquiring configuration parameters of a system to be started, wherein the configuration parameters comprise: a target startup device storing the startup data;
and determining the mode setting signal according to the target starting device.
13. The startup control method according to claim 12, characterized by further comprising:
if the starting success signal fed back by the system to be started is received within a preset time threshold, setting starting equipment called during successful starting as the target starting equipment, wherein the starting equipment is used for storing the starting data called during starting of the central controller.
14. The startup control method according to claim 1, characterized in that the method further comprises:
monitoring whether the starting control system is in a normal working state by using a watchdog module;
and/or the number of the groups of groups,
and the starting control system and the started system monitor each other to monitor whether the starting control system and the started system are in a normal working state or not.
15. A start-up control device of an electronic system, comprising:
the system comprises a sending module, a starting module and a starting module, wherein the sending module is used for sending a mode setting signal to a system to be started, the system to be started can be started through a plurality of starting modes, the sources of starting data corresponding to the various starting modes are different, and the mode setting signal is used for setting the starting modes;
a monitoring module for:
if the starting success signal fed back by the system to be started is not received within a preset time threshold, the mode setting signal is changed, the changed mode setting signal is sent to the system to be started, so that the system to be started determines a new starting mode according to the changed mode setting signal, and new starting data are acquired from a source corresponding to the new starting mode.
16. A monitoring system, comprising: a monitor and a memory;
The memory is used for storing: the computer program of the monitor controls the configuration parameters of the system to be started;
the monitor is configured to execute the start-up control method of the electronic system according to any one of claims 1 to 14 via execution of the computer program.
17. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the start-up control method of the electronic system of any one of claims 1 to 14.
CN202211680341.9A 2022-12-26 2022-12-26 Method, device, system, medium and program product for controlling start of electronic system Pending CN116165977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211680341.9A CN116165977A (en) 2022-12-26 2022-12-26 Method, device, system, medium and program product for controlling start of electronic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211680341.9A CN116165977A (en) 2022-12-26 2022-12-26 Method, device, system, medium and program product for controlling start of electronic system

Publications (1)

Publication Number Publication Date
CN116165977A true CN116165977A (en) 2023-05-26

Family

ID=86413974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211680341.9A Pending CN116165977A (en) 2022-12-26 2022-12-26 Method, device, system, medium and program product for controlling start of electronic system

Country Status (1)

Country Link
CN (1) CN116165977A (en)

Similar Documents

Publication Publication Date Title
JP5623593B2 (en) Rack and method for simultaneously updating a basic input / output system
CN109471770B (en) System management method and device
US10049010B2 (en) Method, computer, and apparatus for migrating memory data
US7200845B2 (en) System and method for high availability firmware load
US7395455B2 (en) System, method and program product for recovering from a failure
CN103324495A (en) Method and system for data center server boot management
US10698679B2 (en) Server with double-firmware storage space and firmware update method therefor
JP2011145910A (en) Information processing apparatus and firmware updating method of the same
CN107066300B (en) Firmware upgrading method of storage device and storage device
US7657734B2 (en) Methods and apparatus for automatically multi-booting a computer system
US20030106052A1 (en) System and method for high availability firmware load
CN112199240B (en) Method for switching nodes during node failure and related equipment
CN115237644A (en) System failure processing method, central processing unit and vehicle
CN111124749A (en) Method and system for automatically repairing BMC (baseboard management controller) system of tightly-coupled high-performance computer system
CN116165977A (en) Method, device, system, medium and program product for controlling start of electronic system
CN111309388A (en) Automatic rollback system and method for system software version of device
CN109684153B (en) Server with double firmware storage spaces and firmware updating method thereof
CN116501343A (en) Program upgrading method, power supply and computing device
CN115963756A (en) Electronic system start control method and device and monitoring system
CN116360865A (en) Cluster management method, device and computing system
CN113986357A (en) Method, apparatus and storage medium for establishing communication link
CN113377425A (en) BMC firmware generation method and device, BMC starting method and device and storage medium
US20120278565A1 (en) Processing device, controlling unit, and method for processing
CN218974903U (en) Domestic server BIOS firmware backup device
CN109271347B (en) Starting method, device and equipment for storage unit of distributed file system

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