WO2016145774A1 - Electronic equipment start-up method and device - Google Patents
Electronic equipment start-up method and device Download PDFInfo
- Publication number
- WO2016145774A1 WO2016145774A1 PCT/CN2015/086802 CN2015086802W WO2016145774A1 WO 2016145774 A1 WO2016145774 A1 WO 2016145774A1 CN 2015086802 W CN2015086802 W CN 2015086802W WO 2016145774 A1 WO2016145774 A1 WO 2016145774A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- memory
- signal
- electronic device
- startup
- switching
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000004913 activation Effects 0.000 claims description 20
- 230000008569 process Effects 0.000 abstract description 12
- 238000003860 storage Methods 0.000 abstract description 10
- 230000014759 maintenance of location Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 238000012423 maintenance Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000012827 research and development Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Definitions
- the present invention relates to the field of electronic device technologies, and in particular, to a method and device for starting an electronic device.
- main memory and auxiliary memory also referred to as main memory and auxiliary memory.
- main memory and auxiliary memory also referred to as main memory and auxiliary memory.
- FPGA Field-Programmable Gate Array
- main memory is switched to the spare memory, and the program or data is loaded from the spare memory.
- the main object of the present invention is to provide a method and device for starting an electronic device, which solves the problems of high starting cost and poor reliability of the current electronic device.
- the present invention provides a method for starting an electronic device, including:
- the reset signal is asserted, and the boot device is restarted by the second memory.
- the determining, as the first memory, the memory corresponding to the startup device startup failure, and the step of switching from the first memory to the second memory according to the switching signal comprises:
- the method further includes:
- the step of determining whether the activation device is successfully started comprises:
- the method further includes:
- a control signal is generated to complete a control operation corresponding to the control signal.
- the present invention further provides an activation device for an electronic device, the device comprising:
- control module configured to generate a switching signal and a reset signal after the startup device fails to start
- a switching module configured to determine a memory corresponding to the startup device startup failure as the first memory, and switch from the first memory to the second memory according to the switching signal.
- control module is further configured to reset the activation device according to the reset signal
- the switching module is further configured to switch from the first memory to the second memory according to the switching signal.
- control module is further configured to determine whether the startup device is successfully started.
- control module is further configured to determine whether the startup device is started within a preset time
- control module is further configured to complete a control operation corresponding to the control signal.
- the present invention switches from a first memory to a second memory according to a switching signal; After a memory is switched to the second memory, the reset signal is disabled, and the device is restarted by the second memory, thereby realizing a substantial saving in material cost, research and development cost, and maintenance cost without using an expensive programmable logic chip.
- the implementation process of the electronic device is made simpler, and the relationship between the device reset timing and the memory switching timing can be effectively ensured, and the reliability of the system is improved.
- FIG. 1 is a schematic structural diagram of hardware involved in an activation device of an electronic device according to the present invention
- FIG. 2 is a schematic illustration of an embodiment of the activation system of Figure 1;
- FIG. 3 is a timing diagram of the startup system of Figure 1;
- FIG. 4 is a schematic flow chart of a first embodiment of a method for starting an electronic device according to the present invention
- FIG. 5 is a schematic diagram showing the refinement process of an embodiment of step S20 in FIG. 4;
- FIG. 6 is a schematic flow chart of a second embodiment of a method for starting an electronic device according to the present invention.
- FIG. 7 is a schematic diagram showing the refinement process of an embodiment of step S40 in FIG. 6;
- FIG. 8 is a schematic diagram of functional modules of a preferred embodiment of an activation device for an electronic device according to the present invention.
- the main solution of the embodiment of the present invention is: after the startup device fails to start, generate a switching signal and a reset signal; determine a memory corresponding to the startup device startup failure as the first memory, and switch from the first memory to the second memory according to the switching signal; After successfully switching from the first memory to the second memory, the reset signal is deactivated and the boot device is restarted by the second memory. Switching from the first memory to the second memory according to the switching signal; after successfully switching from the first memory to the second memory, the reset signal is disabled, and the method of starting the device is restarted by the second memory, thereby achieving no need to be expensive
- the programmable logic chip can save a lot of material cost, research and development cost and maintenance cost.
- the implementation process of the electronic device is made simpler, and the relationship between the device reset timing and the memory switching timing can be effectively ensured, and the reliability of the system is improved.
- the switching of the memory is realized by using a programmable logic chip or a timer.
- the cost of the programmable logic chip is high, which increases the development cost and the maintenance cost.
- the technique of using the timer to implement the memory switching is too complicated, and it is difficult to ensure the relationship between the timing of the device reset timing memory switching, and the reliability is poor.
- the embodiment of the present invention is an apparatus for starting an electronic device.
- the startup device of the electronic device completes the switching of the memory without using an expensive programmable logic chip, and can save a large amount of material cost, research and development cost, and maintenance cost.
- the implementation process of the electronic device is made simpler, and the startup device reset timing and the memory switching timing can be effectively guaranteed. The relationship improves the reliability of the system.
- the hardware architecture involved in the booting device of the electronic device in this embodiment may be as shown in FIG. 1 .
- FIG. 1 is a schematic diagram showing the hardware structure of an activation device for an electronic device according to the present invention.
- the hardware involved in the booting device of the electronic device includes a booting system 100, a booting device 700, a first memory 800, and a second memory 900.
- the booting system 100 includes a control module 200 and a switching module 300.
- certain devices of the electronic device need to read programs or data from the current memory, that is, when the boot device 700 of the electronic device is booted, such as when the processor of the electronic device is booted, it is required to be from the first memory 800 or the second memory 900.
- the boot program is read; when the electronic device is actively read in the FPGA configuration, the logic code needs to be read from its first memory 800 or the second memory 900.
- the data bus of the boot device 700 of the electronic device, the address bus, and control signals other than the CS signal (Chip Select) are connected to the first memory 800 and the second memory 900.
- the CS signal output by the boot device 700 is connected to the switching module 300 of the booting system 100 of the electronic device, and then transmitted to the first memory 800 or the second memory 900 of the electronic device via the switching module 300, if the electronic device is from its first memory 800 When activated, the CS signal output by the boot device 700 of the electronic device is transmitted to its first memory 800, and the CS0 signal is valid; if the electronic device is booted from its second memory 900, the CS signal output from the boot device 700 of the electronic device is transmitted. To its second memory 900, the CS1 signal is asserted.
- the control module 200 of the activation system 100 of the electronic device transmits its RESET signal (reset signal) to the activation device 700 of the electronic device for resetting the activation device 700 of the electronic device.
- the CTL signal output by the startup device 700 is sent to the control module 200 of the startup system 100 of the electronic device, and the S1 signal (switching signal) output by the control module 200 is connected to the switching module 300 of the startup system 100 of the electronic device, and the switching module 300 receives the
- the S1 signal generated by the control module 200 of the booting system 100 of the electronic device is used to control switching between the first memory 800 and the second memory 900 of the electronic device. Whether the electronic device is switched to its first memory 800 or to its second memory 900 can be controlled by changing the level of the S1 signal level.
- the electronic device when the S1 signal is high, the CS0 signal is valid, the electronic device switches to its first memory 800, when the S1 signal is low, the CS1 signal is valid, and the electronic device switches to its second memory 900;
- the S1 signal is high, the CS1 signal is active, the electronic device switches to its second memory 900, and when the S1 signal is low, the CS0 signal is active and the electronic device switches to its first memory 800.
- FIG. 2 is a schematic illustration of an embodiment of the activation system of Figure 1.
- the control module 200 of the startup system 100 of the electronic device includes a watchdog module 400 and a trigger module 500, and the like, and the switching module 300 includes a switch module 600 and the like.
- the watchdog module 400 of the control module 200 of the booting system 100 of the electronic device is composed of a watchdog circuit, which is a special reset monitoring circuit.
- the role of the watchdog circuit is to force a hardware reset of the CPU to bring the entire system back into controllable state once the CPU has failed.
- the trigger module 500 of the control module 200 of the booting system 100 of the electronic device is constituted by a flip-flop circuit.
- a flip-flop is a memory cell circuit that operates when a clock signal is asserted. It handles the interaction between the input and output signals and the clock frequency.
- the trigger is divided into RS trigger, JK trigger, T flip-flop, D Several types of triggers. Triggers of the same logic function can be implemented with different circuit structures, that is, the same circuit structure form can form triggers of different logic functions.
- the trigger of the above trigger module 500 selects a D flip-flop, and the D flip-flop is composed of 6 NAND gates.
- the watchdog circuit of watchdog module 400 selects SP706R/S/T, its reset pulse width is 200ms (rated value), independent watchdog timer is 1.6s timeout (rated value), debounce TTL/CMOS manual Reset input (/MR pin).
- the SP706R/S/T pin function table is shown below.
- the RESET signal output from the /RST terminal of the watchdog module 400 described above is transmitted to the boot device 700 of the electronic device.
- the WDI terminal of the watchdog module 400 receives the CTL signal output from the boot device 700 of the electronic device, the /WDO terminal of the watchdog module 400 is connected to its /MR terminal, and its /WDO terminal is connected to the CLK terminal of the flip-flop module 500.
- the /Q terminal of the flip-flop module 500 is connected to its D terminal, and its Q terminal is connected to the SWITCH terminal of the switching module 600 of the switching module 300 of the startup system 100 of the electronic device.
- the IN terminal of the switch module 600 receives the CS signal output by the boot device 700, the OUT0 terminal of the switch module 600 is connected to the first memory 800 of the electronic device for transmitting the CS0 signal, and the OUT1 terminal of the switch module 600 is connected to the second device of the electronic device.
- the memory 900 is configured to transmit a CS1 signal.
- the initial state of the signal output from the /RST terminal of the watchdog module 400 and the signal output from the /WDO terminal is a high level, and the initial state of the signal outputted from the Q terminal of the flip-flop module 500 is also a high level.
- the watchdog module 400 has no level change in the signal outputted by the WDI terminal within 1.6s, that is, when it does not change from a high level to a low level or from a low level to a high level, the /WDO terminal outputs The signal changes from high level to low level; when the signal output from its WDI terminal changes level, that is, from high level to low level or from low level to high level, its /WDO output The signal stays high. Since the /WDO end of the watchdog module 400 is connected to its /MR side, when it /MR When it is low, it will trigger its /RST output low level and will go high after 200ms. The function of the activation device 700 of the reset electronic device is implemented.
- the signal outputted by the /RST terminal of the watchdog module 400 is low, the signal outputted from the /WDO terminal is restored from the low level to the high level, and the output of the /WDO terminal of the watchdog module 400 is realized. The process of changing the signal from high to low and then to high.
- the /WDO terminal of the watchdog module 400 is connected to the CLK terminal of the flip-flop module 500. If the signal output from the CLK terminal of the flip-flop module 500 changes from a low level to a high level, the Q terminal of the flip-flop module 500 outputs its The D terminal signal, whose /Q terminal outputs the inversion signal of its D terminal. Since the /Q terminal of the flip-flop module 500 is connected to its D terminal, the signal outputted by the Q terminal every time is the inverted signal of the signal outputted last time, that is, the signal outputted by the Q terminal of the flip-flop module 500 is realized. High and low level flip.
- the signal S1 outputted by the Q terminal of the flip-flop module 500 is sent to the SWITCH terminal of the switch module 600.
- the signal of the SWITCH output of the switch module 600 is high, the signal output by the IN terminal of the switch module 600 is sent to its OUT0 terminal;
- the signal of the SWITCH output of the switch module 600 is low level, the signal outputted by the IN terminal of the switch module 600 is sent to the OUT1 end thereof, so when the signal outputted by the SWITCH terminal of the switch module 600 is turned high and low, the CS signal is realized.
- Switching between the first memory 800 and the second memory 900 of the electronic device is achieved by switching between the CS0 signal, the CS signal and the CS1 signal.
- the switching between the first memory 800 and the second memory 900 of the electronic device may be from its first memory 800 to its second memory 900, or from its second memory 900 to its first memory 800.
- FIG. 3 is a timing diagram of the startup system of FIG.
- the signal output from the /WDO terminal of the watchdog module 400 changes from a high level to a low level, and after t0 (about 1 us) time, the signal output from the /RST terminal of the watchdog module 400 becomes a low level.
- the signal output from the /RST terminal goes high after a period of t1 (200ms).
- /WDO returns to high level when /RST goes low.
- the signal output from the SWITCH terminal of the switch module 600 changes from a high level to a low level.
- the boot device 700 of the electronic device is restarted, that is, the electronic device reads the program or data from the current memory.
- the first memory 800 of the electronic device and the second memory 900 have completed switching.
- FIG. 4 is a first implementation of a method for starting an electronic device according to the present invention.
- the method for starting the electronic device includes:
- Step S10 after the startup device fails to start, generating a switching signal and a reset signal;
- the boot device of the electronic device When the boot device of the electronic device needs to be powered on, that is, when some devices of the electronic device need to read programs or data from the current memory, such as when the processor starts, it needs to be from its first memory or second memory. Reading the boot program; if the FPGA (Field Programmable Gate Array) is configured for active read, the logic code needs to be read from its first memory or the second memory, preferably, the first memory is the main memory, and the second The memory is a spare memory.
- FPGA Field Programmable Gate Array
- the electronic device When the electronic device fails to start its boot device, that is, when the boot device of the electronic device fails to read the program or data from the current memory, the electronic device generates the S1 signal and the RESET signal through the control module of the startup system.
- Step S20 determining a memory corresponding to the startup device startup failure as the first memory, and switching from the first memory to the second memory according to the switching signal.
- determining a memory corresponding to the startup failure of the boot device as the first memory, and the process of switching from the first memory to the second memory according to the switching signal may include:
- Step S21 determining a memory corresponding to the startup device startup failure as the first memory.
- Step S22 resetting the startup device according to the reset signal, and switching from the first memory to the second memory according to the switching signal.
- Step S30 after successfully switching from the first memory to the second memory, the reset signal is deactivated, and the boot device is restarted by the second memory.
- the memory corresponding to the startup failure of the startup device of the electronic device is determined to be the first memory, that is, the memory corresponding to the startup device reading program or the data failure of the electronic device is determined to be the first memory.
- the above S1 signal is used for the electronic device to switch from the first memory in which it is currently located to the second memory, that is, to switch from the main memory to the backup memory.
- the RESET signal begins to take effect
- the S1 signal begins to switch from the first memory to the second memory.
- the RESET signal is deactivated and the electronic device is reset from the second memory. Start its startup device.
- whether the electronic device switches to its first memory or to its second memory can be controlled by changing the level of the S1 signal level generated by the control module of the activation system of the electronic device. For example, when the S1 signal is high, the CS0 signal is valid, the electronic device switches to its first memory, and when the S1 signal is low, the CS1 signal is valid, and the electronic device switches to its second memory; When the S1 signal is high, the CS1 signal is active, the electronic device switches to its second memory, and when the S1 signal is low, the CS0 signal is asserted and the electronic device switches to its first memory.
- FIG. 6 is a schematic flowchart diagram of a second embodiment of a method for starting an electronic device according to the present invention. Based on the first embodiment of the method for starting the electronic device, before step S10, the method further includes:
- step S40 it is determined whether the boot device is successfully started.
- determining whether the booting device is successfully started according to the startup instruction may include:
- Step S41 determining whether the startup device is started within a preset time
- Step S42 if yes, determining that the startup device is successfully started
- Step S43 if no, it is determined that the startup device fails to be started
- Step S44 after the startup device is successfully started, a control signal is generated to complete the control operation corresponding to the control signal.
- the preset time can be freely set according to requirements, and can be set to 1s, 1.6s, 2s, and so on. Preferably, the preset time is set to 1.6 s.
- the electronic device does not start its boot device within a preset time, it is determined that the electronic device fails to start its boot device, that is, some devices of the electronic device fail to successfully read programs or data from the current memory.
- the electronic device starts its boot device within a preset time, it is determined that the electronic device successfully starts its boot device, that is, some devices of the electronic device successfully read programs or data from the current memory.
- the startup device of the electronic device When the electronic device successfully starts its startup device, the startup device of the electronic device outputs a CTL signal to the control module of the startup system of the electronic device, and when the control module receives the CTL signal output by the startup device of the electronic device, the S1 signal and the RESET are not generated. signal. After the startup of the startup device is successful, a control signal is generated to complete a control operation corresponding to the control signal, the control operation including data reading, application control, and the like.
- the switching technology of the electronic device memory overcomes the problems of high cost and poor reliability, reduces the cost of switching the electronic device memory, and improves the switching reliability.
- FIG. 8 is a schematic diagram of functional modules of a preferred embodiment of an apparatus for starting an electronic device according to the present invention.
- the starting device of the electronic device includes a control module 200 and a switching module 300.
- the control module 200 is configured to generate a switching signal and a reset signal after the startup device fails to start;
- the boot device of the electronic device When the boot device of the electronic device needs to be powered on, that is, when some devices of the electronic device need to read programs or data from the current memory, such as when the processor starts, it needs to be from its first memory or second memory. Reading the boot program; if the FPGA (Field Programmable Gate Array) is configured for active read, the logic code needs to be read from its first memory or the second memory, preferably, the first memory is the main memory, and the second The memory is a spare memory.
- FPGA Field Programmable Gate Array
- the electronic device When the electronic device fails to start its boot device, that is, when the boot device of the electronic device fails to read a program or data from the current memory, the electronic device generates an S1 signal and a RESET signal through the control module of the boot system thereof.
- the switching module 300 is configured to determine a memory corresponding to the startup device startup failure as the first memory, and switch from the first memory to the second memory according to the switching signal;
- control module 200 is further configured to reset the startup device according to the reset signal;
- the switching module 300 is further configured to switch from the first memory to the second memory according to the switching signal.
- the control module 200 is further configured to: after successfully switching from the first memory to the second memory, disable the reset signal, and restart the boot device by the second memory.
- the memory corresponding to the startup failure of the startup device of the electronic device is determined to be the first memory, that is, the memory corresponding to the startup device reading program or the data failure of the electronic device is determined to be the first memory.
- the S1 signal is used for the electronic device to switch from the first memory in which it is currently located to the second memory, ie, from the primary memory to the backup memory.
- the RESET signal begins to be active
- the S1 signal begins to switch from the first memory to the second memory.
- the RESET signal is deactivated and the electronic device is re-enabled from the second memory. Start its startup device.
- whether the electronic device switches to its first memory or to its second memory can be controlled by changing the level of the S1 signal level generated by the control module of the activation system of the electronic device. For example, when the S1 signal is high, the CS0 signal is valid, the electronic device switches to its first memory, and when the S1 signal is low, the CS1 signal is valid, and the electronic device switches to its second memory; When the S1 signal is high, the CS1 signal is active, the electronic device switches to its second memory, and when the S1 signal is low, the CS0 signal is asserted and the electronic device switches to its first memory. Alternatively, it may be selected that when the S1 signal is high, the CS0 signal is active, the electronic device switches to its first memory, and when the S1 signal is low, the CS1 signal is active and the electronic device switches to its second memory.
- control module 200 is further configured to determine whether the boot device is successfully started.
- control module 200 is further configured to: determine whether to start the boot device within a preset time; and further, if the boot device is started within a preset time, determine that the boot device is successfully started; and if it is not preset When the startup device is started within the time, it is judged that the startup device fails to be started; it is also set to complete the control operation corresponding to the control signal.
- the preset time can be freely set according to requirements, and can be set to 1s, 1.6s, 2s, and so on. Preferably, the preset time is set to 1.6 s.
- the electronic device does not start its boot device within a preset time, it is determined that the electronic device fails to start its boot device, that is, some devices of the electronic device fail to successfully read programs or data from the current memory.
- the electronic device starts its boot device within a preset time, it is determined that the electronic device successfully starts its boot device, that is, some devices of the electronic device successfully read programs or data from the current memory.
- the startup device of the electronic device When the electronic device starts up successfully, the startup device of the electronic device outputs a CTL signal to the control module of the startup system of the electronic device, and when the control module receives the CTL signal output by the startup device of the electronic device, the S1 signal is not generated and RESET signal. After the startup of the startup device is successful, a control signal is generated to complete a control operation corresponding to the control signal, the control operation including data reading, application control, and the like.
- the switching technology of the electronic device memory overcomes the problems of high cost and poor reliability, reduces the cost of switching the electronic device memory, and improves the switching reliability.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- a storage medium such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- the method and apparatus for starting an electronic device provided by the embodiments of the present invention have the following beneficial effects: making the startup process of the electronic device simpler, and effectively ensuring the relationship between the device reset timing and the memory switching timing. Improve system reliability.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Electronic Switches (AREA)
- Stored Programmes (AREA)
Abstract
An electronic equipment start-up device and method. The method comprises: when a component to be started up (700) fails to start up, generating a switch signal (S1) and a reset signal (RESET); determining a corresponding storage used when the component to be started up (700) fails to start up as a first storage (800), and switching from the first storage (800) to a second storage (900) according to the switch signal (S1); when successfully switching from the first storage (800) to the second storage (900), setting the reset signal (RESET) as invalid, and restarting up the component to be started up (700) via the second storage. The electronic equipment start-up device enables a start-up process of the electronic equipment to be simpler, effectively ensuring a relationship between a reset timing of the start-up component (700) and a switching timing of the storages, improving system reliability.
Description
本发明涉及电子设备技术领域,尤其涉及一种电子设备的启动方法和装置。The present invention relates to the field of electronic device technologies, and in particular, to a method and device for starting an electronic device.
现代电子设备为了提高性能,又要兼顾合理的造价,往往采用多级存储体系。根据存储器在电子设备系统中所起的作用,可分为主用存储器和备用存储器,也称为主存储器和辅助存储器。当电子设备的某些器件需要从存储器加载程序或数据时,如处理器启动时,需要从存储器中加载引导程序;如以FPGA(Field-Programmable Gate Array,现场可编程门阵列)配置为主动加载时,需要从存储器加载逻辑代码。为了防止存储器中程序或数据异常、丢失或损坏等,导致处理器或FPGA等器件无法正常加载的情况发生,则要从主用存储器切换到备用存储器,从备用存储器中加载程序或数据。In order to improve performance, modern electronic equipment must also take into account reasonable cost, often using a multi-level storage system. Depending on the role of the memory in the electronic device system, it can be divided into a main memory and a spare memory, also referred to as main memory and auxiliary memory. When some devices of an electronic device need to load programs or data from memory, such as when the processor is booted, the bootloader needs to be loaded from the memory; for example, an FPGA (Field-Programmable Gate Array) is configured for active loading. When you need to load logic code from memory. In order to prevent the program or data in the memory from being abnormal, lost or damaged, and the device such as the processor or FPGA cannot be loaded normally, the main memory is switched to the spare memory, and the program or data is loaded from the spare memory.
相关技术中,有多种方案可以实现主用存储器与备用存储器的切换。例如采用两片FLASH启动CPU(Central Processing Unit,中心处理器),当其中主FLASH启动CPU失败后,CPLD将备份FLASH选中并输出复位信号到CPU,让CPU从备份FLASH启动。该方案是使用可编程逻辑芯片实现启动CPU系统的功能,但是可编程逻辑芯片成本较高,而且需要运行逻辑代码,增加了开发成本及维护成本。还可以用计时器替代现有的逻辑芯片实现CPU在主用存储器和备用存储器之间的启动切换。但是这种技术过于复杂,而且难以保证CPU复位时序和主备用存储器切换时序之间的关系,会出现CPU已经重新启动,但是主备用存储器还没有切换的情况,启动成本高、可靠性差。In the related art, there are various schemes for switching between the primary memory and the backup memory. For example, two FLASH boot CPUs (Central Processing Units) are used. When the main FLASH fails to start the CPU, the CPLD will select the backup FLASH and output a reset signal to the CPU to enable the CPU to boot from the backup FLASH. The solution is to use the programmable logic chip to realize the function of starting the CPU system, but the programmable logic chip has high cost and needs to run logic code, which increases development cost and maintenance cost. It is also possible to replace the existing logic chip with a timer to realize the startup switching of the CPU between the main memory and the backup memory. However, this technique is too complicated, and it is difficult to ensure the relationship between the CPU reset timing and the main standby memory switching timing. The CPU has been restarted, but the primary spare memory has not been switched, and the startup cost is high and the reliability is poor.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种电子设备的启动方法和装置,解决当前电子设备的启动成本高、可靠性差的问题。The main object of the present invention is to provide a method and device for starting an electronic device, which solves the problems of high starting cost and poor reliability of the current electronic device.
为实现上述目的,本发明提供一种电子设备的启动方法,包括:To achieve the above object, the present invention provides a method for starting an electronic device, including:
当启动器件启动失败后,生成切换信号和复位信号;After the startup device fails to start, a switching signal and a reset signal are generated;
确定所述启动器件启动失败对应的存储器作为第一存储器,根据所述切换信号从所述第一存储器切换至第二存储器;Determining, as the first memory, the memory corresponding to the startup device startup failure, switching from the first memory to the second memory according to the switching signal;
在成功从所述第一存储器切换至所述第二存储器后,将所述复位信号置为无效,通过所述第二存储器重新启动所述启动器件。
After successfully switching from the first memory to the second memory, the reset signal is asserted, and the boot device is restarted by the second memory.
优选地,所述确定所述启动器件启动失败对应的存储器作为第一存储器,根据所述切换信号从所述第一存储器切换至第二存储器的步骤包括:Preferably, the determining, as the first memory, the memory corresponding to the startup device startup failure, and the step of switching from the first memory to the second memory according to the switching signal comprises:
确定所述启动器件启动失败对应的存储器作为第一存储器;Determining, as the first memory, the memory corresponding to the startup device startup failure;
根据所述复位信号复位所述启动器件,并根据所述切换信号从所述第一存储器切换至第二存储器。And resetting the startup device according to the reset signal, and switching from the first memory to the second memory according to the switching signal.
优选地,所述当根据所述当启动器件启动失败后,生成切换信号和复位信号的步骤之前,还包括:Preferably, before the step of generating the switching signal and the reset signal after the startup device fails to start, the method further includes:
判断是否成功启动所述启动器件。It is judged whether the boot device is successfully started.
优选地,所述判断是否成功启动所述启动器件的步骤包括:Preferably, the step of determining whether the activation device is successfully started comprises:
判断是否在预设时间内启动所述启动器件;Determining whether the starting device is started within a preset time;
若是,则判断所述启动器件启动成功;If yes, determining that the boot device is successfully booted;
若否,则判断所述启动器件启动失败。If not, it is determined that the boot device failed to boot.
优选地,所述若是,则判断所述启动器件启动成功步骤之后,还包括:Preferably, if the method is successful, after the step of starting the booting device is successful, the method further includes:
当所述启动器件启动成功后,产生控制信号,以完成与所述控制信号对应的控制操作。After the startup device is successfully booted, a control signal is generated to complete a control operation corresponding to the control signal.
此外,为实现上述目的,本发明还提供一种电子设备的启动装置,该装置包括:In addition, in order to achieve the above object, the present invention further provides an activation device for an electronic device, the device comprising:
控制模块,设置为当启动器件启动失败后,生成切换信号和复位信号;a control module configured to generate a switching signal and a reset signal after the startup device fails to start;
还设置为在成功从所述第一存储器切换至所述第二存储器后,将所述复位信号置为无效,通过所述第二存储器重新启动所述启动器件;Is further configured to, after successfully switching from the first memory to the second memory, disable the reset signal, and restart the boot device through the second memory;
切换模块,设置为确定所述启动器件启动失败对应的存储器作为第一存储器,根据所述切换信号从所述第一存储器切换至第二存储器。And a switching module, configured to determine a memory corresponding to the startup device startup failure as the first memory, and switch from the first memory to the second memory according to the switching signal.
优选地,所述控制模块,还设置为根据所述复位信号复位所述启动器件;Preferably, the control module is further configured to reset the activation device according to the reset signal;
所述切换模块,还设置为根据所述切换信号从所述第一存储器切换至第二存储器。The switching module is further configured to switch from the first memory to the second memory according to the switching signal.
优选地,所述控制模块,还设置为判断是否成功启动所述启动器件。Preferably, the control module is further configured to determine whether the startup device is successfully started.
优选地,所述控制模块,还设置为判断是否在预设时间内启动所述启动器件;Preferably, the control module is further configured to determine whether the startup device is started within a preset time;
还设置为若在预设时间内启动所述启动器件,则判断所述启动器件启动成功;It is further configured to determine that the startup device is successfully started if the startup device is started within a preset time;
还设置为若未在在预设时间内启动所述启动器件,则判断所述启动器件启动失败。It is also provided that if the boot device is not started within a preset time, it is determined that the boot device failed to boot.
优选地,所述控制模块,还设置为完成与所述控制信号对应的控制操作。Preferably, the control module is further configured to complete a control operation corresponding to the control signal.
相对相关技术,本发明通过根据切换信号从第一存储器切换至第二存储器;在成功从第
一存储器切换至第二存储器后,将复位信号置为无效,通过第二存储器重新启动其启动器件的方式,实现无需采用昂贵的可编程逻辑芯片,可以大量节省材料成本、研发成本和维护成本。使得电子设备的启动实现过程更加简单,可以有效保证启动器件复位时序和存储器切换时序之间的关系,提高系统的可靠性。Relative to related art, the present invention switches from a first memory to a second memory according to a switching signal;
After a memory is switched to the second memory, the reset signal is disabled, and the device is restarted by the second memory, thereby realizing a substantial saving in material cost, research and development cost, and maintenance cost without using an expensive programmable logic chip. The implementation process of the electronic device is made simpler, and the relationship between the device reset timing and the memory switching timing can be effectively ensured, and the reliability of the system is improved.
图1为本发明电子设备的启动装置所涉及的硬件结构示意图;1 is a schematic structural diagram of hardware involved in an activation device of an electronic device according to the present invention;
图2为图1中启动系统的一实施例的示意图;Figure 2 is a schematic illustration of an embodiment of the activation system of Figure 1;
图3为图1启动系统的时序图;Figure 3 is a timing diagram of the startup system of Figure 1;
图4为本发明电子设备的启动方法的第一实施例的流程示意图;4 is a schematic flow chart of a first embodiment of a method for starting an electronic device according to the present invention;
图5为图4中步骤S20一实施例的细化流程示意图;FIG. 5 is a schematic diagram showing the refinement process of an embodiment of step S20 in FIG. 4;
图6为本发明电子设备的启动方法的第二实施例的流程示意图;6 is a schematic flow chart of a second embodiment of a method for starting an electronic device according to the present invention;
图7为图6中步骤S40一实施例的细化流程示意图;FIG. 7 is a schematic diagram showing the refinement process of an embodiment of step S40 in FIG. 6;
图8为本发明电子设备的启动装置的较佳实施例的功能模块示意图。FIG. 8 is a schematic diagram of functional modules of a preferred embodiment of an activation device for an electronic device according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:当启动器件启动失败后,生成切换信号和复位信号;确定启动器件启动失败对应的存储器作为第一存储器,根据切换信号从第一存储器切换至第二存储器;在成功从第一存储器切换至第二存储器后,将复位信号置为无效,通过第二存储器重新启动启动器件。通过根据切换信号从第一存储器切换至第二存储器;在成功从第一存储器切换至第二存储器后,将复位信号置为无效,通过第二存储器重新启动其启动器件的方式,实现无需采用昂贵的可编程逻辑芯片,可以大量节省材料成本、研发成本和维护成本。使得电子设备的启动实现过程更加简单,可以有效保证启动器件复位时序和存储器切换时序之间的关系,提高系统的可靠性。The main solution of the embodiment of the present invention is: after the startup device fails to start, generate a switching signal and a reset signal; determine a memory corresponding to the startup device startup failure as the first memory, and switch from the first memory to the second memory according to the switching signal; After successfully switching from the first memory to the second memory, the reset signal is deactivated and the boot device is restarted by the second memory. Switching from the first memory to the second memory according to the switching signal; after successfully switching from the first memory to the second memory, the reset signal is disabled, and the method of starting the device is restarted by the second memory, thereby achieving no need to be expensive The programmable logic chip can save a lot of material cost, research and development cost and maintenance cost. The implementation process of the electronic device is made simpler, and the relationship between the device reset timing and the memory switching timing can be effectively ensured, and the reliability of the system is improved.
由于相关电子设备的启动方法,是通过采用可编程逻辑芯片或计时器实现对存储器的切换。但是可编程逻辑芯片成本高,增加了开发成本和维护成本,而采用计时器实现对存储器切换的技术过于复杂,难以保证启动器件复位时序存储器切换时序之间的关系,可靠性差。Due to the startup method of the related electronic device, the switching of the memory is realized by using a programmable logic chip or a timer. However, the cost of the programmable logic chip is high, which increases the development cost and the maintenance cost. The technique of using the timer to implement the memory switching is too complicated, and it is difficult to ensure the relationship between the timing of the device reset timing memory switching, and the reliability is poor.
本发明实施例架构一电子设备的启动装置,该电子设备的启动装置完成了无需采用昂贵的可编程逻辑芯片实现存储器的切换,可以大量节省材料成本、研发成本和维护成本。使得电子设备的启动实现过程更加简单,可以有效保证启动器件复位时序和存储器切换时序之间
的关系,提高系统的可靠性。The embodiment of the present invention is an apparatus for starting an electronic device. The startup device of the electronic device completes the switching of the memory without using an expensive programmable logic chip, and can save a large amount of material cost, research and development cost, and maintenance cost. The implementation process of the electronic device is made simpler, and the startup device reset timing and the memory switching timing can be effectively guaranteed.
The relationship improves the reliability of the system.
其中,本实施例电子设备的启动装置所涉及的硬件架构可以如图1所示。The hardware architecture involved in the booting device of the electronic device in this embodiment may be as shown in FIG. 1 .
图1为本发明电子设备的启动装置所涉及的硬件结构示意图。参照图1,该电子设备的启动装置所涉及的硬件包括启动系统100,启动器件700,第一存储器800,第二存储器900,其中,启动系统100包括控制模块200和切换模块300。当电子设备的某些器件需要从当前所在的存储器读取程序或数据时,即电子设备的启动器件700启动时,如电子设备的处理器启动时,需要从第一存储器800或第二存储器900中读取引导程序;如电子设备以FPGA配置主动读取时,需要从其第一存储器800或第二存储器900读取逻辑代码。电子设备的启动器件700的数据总线、地址总线及除CS信号(Chip Select,片选信号)外的控制信号与其第一存储器800和第二存储器900连接。启动器件700输出的CS信号连接到电子设备的启动系统100的切换模块300,然后经过切换模块300再传送到电子设备的第一存储器800或第二存储器900,如果电子设备从其第一存储器800启动,则电子设备的启动器件700输出的CS信号传送到其第一存储器800,则CS0信号有效;如果电子设备是从其第二存储器900启动,则电子设备的启动器件700输出的CS信号传送到其第二存储器900,则CS1信号有效。FIG. 1 is a schematic diagram showing the hardware structure of an activation device for an electronic device according to the present invention. Referring to FIG. 1, the hardware involved in the booting device of the electronic device includes a booting system 100, a booting device 700, a first memory 800, and a second memory 900. The booting system 100 includes a control module 200 and a switching module 300. When certain devices of the electronic device need to read programs or data from the current memory, that is, when the boot device 700 of the electronic device is booted, such as when the processor of the electronic device is booted, it is required to be from the first memory 800 or the second memory 900. The boot program is read; when the electronic device is actively read in the FPGA configuration, the logic code needs to be read from its first memory 800 or the second memory 900. The data bus of the boot device 700 of the electronic device, the address bus, and control signals other than the CS signal (Chip Select) are connected to the first memory 800 and the second memory 900. The CS signal output by the boot device 700 is connected to the switching module 300 of the booting system 100 of the electronic device, and then transmitted to the first memory 800 or the second memory 900 of the electronic device via the switching module 300, if the electronic device is from its first memory 800 When activated, the CS signal output by the boot device 700 of the electronic device is transmitted to its first memory 800, and the CS0 signal is valid; if the electronic device is booted from its second memory 900, the CS signal output from the boot device 700 of the electronic device is transmitted. To its second memory 900, the CS1 signal is asserted.
电子设备的启动系统100的控制模块200将其产生RESET信号(复位信号)发送到电子设备的启动器件700,用于复位电子设备的启动器件700。该启动器件700输出的CTL信号发送到电子设备的启动系统100的控制模块200,控制模块200输出的S1信号(切换信号)连接到电子设备的启动系统100的切换模块300,切换模块300接收到电子设备的启动系统100的控制模块200产生的S1信号,用于控制电子设备的第一存储器800与第二存储器900之间的切换。可以通过改变S1信号电平的高低,来控制电子设备是切换到其第一存储器800还是切换到其第二存储器900。例如,当S1信号为高电平时,则CS0信号有效,电子设备切换到其第一存储器800,当S1信号为低电平时,则CS1信号有效,电子设备切换到其第二存储器900;也可以是当S1信号为高电平时,CS1信号有效,电子设备切换到其第二存储器900,当S1信号为低电平时,CS0信号有效,电子设备切换到其第一存储器800。在本实施例中,可以选择当S1信号为高电平时,CS0信号有效,电子设备切换到其第一存储器800,当S1信号为低电平时,CS1信号有效,电子设备切换到其第二存储器900。The control module 200 of the activation system 100 of the electronic device transmits its RESET signal (reset signal) to the activation device 700 of the electronic device for resetting the activation device 700 of the electronic device. The CTL signal output by the startup device 700 is sent to the control module 200 of the startup system 100 of the electronic device, and the S1 signal (switching signal) output by the control module 200 is connected to the switching module 300 of the startup system 100 of the electronic device, and the switching module 300 receives the The S1 signal generated by the control module 200 of the booting system 100 of the electronic device is used to control switching between the first memory 800 and the second memory 900 of the electronic device. Whether the electronic device is switched to its first memory 800 or to its second memory 900 can be controlled by changing the level of the S1 signal level. For example, when the S1 signal is high, the CS0 signal is valid, the electronic device switches to its first memory 800, when the S1 signal is low, the CS1 signal is valid, and the electronic device switches to its second memory 900; When the S1 signal is high, the CS1 signal is active, the electronic device switches to its second memory 900, and when the S1 signal is low, the CS0 signal is active and the electronic device switches to its first memory 800. In this embodiment, it may be selected that when the S1 signal is high, the CS0 signal is valid, the electronic device switches to its first memory 800, when the S1 signal is low, the CS1 signal is valid, and the electronic device switches to its second memory. 900.
优选地,参照图2,图2为图1中启动系统的一实施例的示意图。电子设备的启动系统100的控制模块200包括看门狗模块400和触发器模块500等,其切换模块300包括开关模块600等。Preferably, reference is made to Figure 2, which is a schematic illustration of an embodiment of the activation system of Figure 1. The control module 200 of the startup system 100 of the electronic device includes a watchdog module 400 and a trigger module 500, and the like, and the switching module 300 includes a switch module 600 and the like.
电子设备的启动系统100的控制模块200的看门狗模块400,是由看门狗电路构成,它是一种专门的复位监控电路。看门狗电路的作用是一旦CPU运行出现故障,就强制对CPU进行硬件复位使整个系统重新处于可控状态。The watchdog module 400 of the control module 200 of the booting system 100 of the electronic device is composed of a watchdog circuit, which is a special reset monitoring circuit. The role of the watchdog circuit is to force a hardware reset of the CPU to bring the entire system back into controllable state once the CPU has failed.
电子设备的启动系统100的控制模块200的触发器模块500,是由触发器电路构成。触发器是在时钟信号触发时才能动作的存储单元电路,它可以处理输入、输出信号和时钟频率之间的相互影响。根据逻辑功能的不同特点,触发器分为RS触发器、JK触发器、T触发器、D
触发器等几种类型。同一中逻辑功能的触发器可以用不同的电路结构实现,即同一种电路结构形式可以形成不同逻辑功能的触发器。The trigger module 500 of the control module 200 of the booting system 100 of the electronic device is constituted by a flip-flop circuit. A flip-flop is a memory cell circuit that operates when a clock signal is asserted. It handles the interaction between the input and output signals and the clock frequency. According to the different characteristics of the logic function, the trigger is divided into RS trigger, JK trigger, T flip-flop, D
Several types of triggers. Triggers of the same logic function can be implemented with different circuit structures, that is, the same circuit structure form can form triggers of different logic functions.
优选地,上述触发器模块500的触发器选择D触发器,D触发器由6个与非门组成。看门狗模块400的看门狗电路选择SP706R/S/T,其复位脉冲宽度为200ms(额定值),独立的看门狗定时器是1.6s超时(额定值),去抖TTL/CMOS手动复位输入(/MR管脚)。SP706R/S/T管脚功能表如下图所示。Preferably, the trigger of the above trigger module 500 selects a D flip-flop, and the D flip-flop is composed of 6 NAND gates. The watchdog circuit of watchdog module 400 selects SP706R/S/T, its reset pulse width is 200ms (rated value), independent watchdog timer is 1.6s timeout (rated value), debounce TTL/CMOS manual Reset input (/MR pin). The SP706R/S/T pin function table is shown below.
上述看门狗模块400的/RST端输出的RESET信号发送到电子设备的启动器件700。看门狗模块400的WDI端接收电子设备的启动器件700输出的CTL信号,看门狗模块400的/WDO端连接到其/MR端,且其/WDO端连接到触发器模块500的CLK端。触发器模块500的/Q端连接到其D端,其Q端连接到电子设备的启动系统100的切换模块300的开关模块600的SWITCH端。开关模块600的IN端接收启动器件700输出的CS信号,开关模块600的OUT0端连接到电子设备的第一存储器800,用于传送CS0信号,开关模块600的OUT1端连接到电子设备的第二存储器900,用于传送CS1信号。看门狗模块400的/RST端输出的信号和其/WDO端输出的信号的初始状态为高电平,触发器模块500的Q端输出的信号的初始状态也为高电平。The RESET signal output from the /RST terminal of the watchdog module 400 described above is transmitted to the boot device 700 of the electronic device. The WDI terminal of the watchdog module 400 receives the CTL signal output from the boot device 700 of the electronic device, the /WDO terminal of the watchdog module 400 is connected to its /MR terminal, and its /WDO terminal is connected to the CLK terminal of the flip-flop module 500. . The /Q terminal of the flip-flop module 500 is connected to its D terminal, and its Q terminal is connected to the SWITCH terminal of the switching module 600 of the switching module 300 of the startup system 100 of the electronic device. The IN terminal of the switch module 600 receives the CS signal output by the boot device 700, the OUT0 terminal of the switch module 600 is connected to the first memory 800 of the electronic device for transmitting the CS0 signal, and the OUT1 terminal of the switch module 600 is connected to the second device of the electronic device. The memory 900 is configured to transmit a CS1 signal. The initial state of the signal output from the /RST terminal of the watchdog module 400 and the signal output from the /WDO terminal is a high level, and the initial state of the signal outputted from the Q terminal of the flip-flop module 500 is also a high level.
看门狗模块400在1.6s内,其WDI端输出的信号没有电平变化,即没有从高电平变化为低电平或者从低电平变化为高电平时,则其/WDO端输出的信号从高电平变化为低电平;当其WDI端输出的信号有电平变化时,即从高电平变为低电平或者从低电平变为高电平时,其/WDO端输出的信号保持高电平。由于看门狗模块400的/WDO端连接到其/MR端,当其/MR
为低电平时,会触发其/RST端输出低电平,并持续200ms后变为高电平。实现复位电子设备的启动器件700的功能。而且当看门狗模块400的/RST端输出的信号为低电平时,其/WDO端输出的信号会从低电平恢复为高电平,实现了看门狗模块400的/WDO端输出的信号从高电平变化到低电平再变化到高电平的过程。The watchdog module 400 has no level change in the signal outputted by the WDI terminal within 1.6s, that is, when it does not change from a high level to a low level or from a low level to a high level, the /WDO terminal outputs The signal changes from high level to low level; when the signal output from its WDI terminal changes level, that is, from high level to low level or from low level to high level, its /WDO output The signal stays high. Since the /WDO end of the watchdog module 400 is connected to its /MR side, when it /MR
When it is low, it will trigger its /RST output low level and will go high after 200ms. The function of the activation device 700 of the reset electronic device is implemented. Moreover, when the signal outputted by the /RST terminal of the watchdog module 400 is low, the signal outputted from the /WDO terminal is restored from the low level to the high level, and the output of the /WDO terminal of the watchdog module 400 is realized. The process of changing the signal from high to low and then to high.
看门狗模块400的/WDO端连接到触发器模块500的CLK端,如果触发器模块500的CLK端输出的信号从低电平变化为高电平,则触发器模块500的Q端输出其D端信号,其/Q端输出其D端的取反信号。由于触发器模块500的/Q端连接到其D端,所以其Q端每次输出的信号都是上次输出的信号的取反信号,即实现了触发器模块500的Q端输出的信号的高低电平翻转。The /WDO terminal of the watchdog module 400 is connected to the CLK terminal of the flip-flop module 500. If the signal output from the CLK terminal of the flip-flop module 500 changes from a low level to a high level, the Q terminal of the flip-flop module 500 outputs its The D terminal signal, whose /Q terminal outputs the inversion signal of its D terminal. Since the /Q terminal of the flip-flop module 500 is connected to its D terminal, the signal outputted by the Q terminal every time is the inverted signal of the signal outputted last time, that is, the signal outputted by the Q terminal of the flip-flop module 500 is realized. High and low level flip.
触发器模块500的Q端输出的信号S1发送到开关模块600的SWITCH端,当开关模块600的SWITCH输出的信号为高电平时,开关模块600的IN端输出的信号发送到其OUT0端;当开关模块600的SWITCH输出的信号为低电平时,开关模块600的IN端输出的信号发送到其OUT1端,所以当开关模块600的SWITCH端输出的信号发生高低电平翻转时,实现了CS信号与CS0信号,CS信号与CS1信号的切换,即实现了电子设备的第一存储器800与第二存储器900之间的切换。电子设备的第一存储器800和第二存储器900之间的切换可以是从其第一存储器800切换到其第二存储器900,也可以从其第二存储器900切换到其第一存储器800。The signal S1 outputted by the Q terminal of the flip-flop module 500 is sent to the SWITCH terminal of the switch module 600. When the signal of the SWITCH output of the switch module 600 is high, the signal output by the IN terminal of the switch module 600 is sent to its OUT0 terminal; When the signal of the SWITCH output of the switch module 600 is low level, the signal outputted by the IN terminal of the switch module 600 is sent to the OUT1 end thereof, so when the signal outputted by the SWITCH terminal of the switch module 600 is turned high and low, the CS signal is realized. Switching between the first memory 800 and the second memory 900 of the electronic device is achieved by switching between the CS0 signal, the CS signal and the CS1 signal. The switching between the first memory 800 and the second memory 900 of the electronic device may be from its first memory 800 to its second memory 900, or from its second memory 900 to its first memory 800.
优选地,参照图3,图3为图1启动系统的时序图。Preferably, referring to FIG. 3, FIG. 3 is a timing diagram of the startup system of FIG.
当看门狗模块400的/WDO端输出的信号从高电平变为低电平时,并经过t0(约1us)时间后,看门狗模块400的/RST端输出的信号变为低电平,/RST端输出的信号持续t1(200ms)时间后变为高电平。当/RST变为低电平后,/WDO恢复到高电平。在/WDO从低电平变为高电平后,开关模块600的SWITCH端输出的信号从高电平变为低电平。在看门狗模块400的/RST端输出的信号变为高电平后,电子设备的启动器件700才重新启动,即电子设备重新从当前所在的存储器中读取程序或数据。然而,在电子设备的启动器件700重新启动之前,电子设备的第一存储器800与第二存储器900已经完成了切换。When the signal output from the /WDO terminal of the watchdog module 400 changes from a high level to a low level, and after t0 (about 1 us) time, the signal output from the /RST terminal of the watchdog module 400 becomes a low level. The signal output from the /RST terminal goes high after a period of t1 (200ms). /WDO returns to high level when /RST goes low. After /WDO changes from low level to high level, the signal output from the SWITCH terminal of the switch module 600 changes from a high level to a low level. After the signal output from the /RST terminal of the watchdog module 400 goes high, the boot device 700 of the electronic device is restarted, that is, the electronic device reads the program or data from the current memory. However, before the boot device 700 of the electronic device is restarted, the first memory 800 of the electronic device and the second memory 900 have completed switching.
基于上述硬件架构,提出本发明电子设备的启动方法实施例。Based on the above hardware architecture, an embodiment of a method for starting an electronic device of the present invention is proposed.
参照图4,图4为本发明电子设备的启动方法的第一实施,该电子设备的启动方法包括:Referring to FIG. 4, FIG. 4 is a first implementation of a method for starting an electronic device according to the present invention. The method for starting the electronic device includes:
步骤S10,当启动器件启动失败后,生成切换信号和复位信号;Step S10, after the startup device fails to start, generating a switching signal and a reset signal;
当电子设备的启动器件需要上电启动时,即当电子设备的某些器件需要从当前所在的存储器读取程序或数据时,如处理器启动时,需要从其第一存储器或第二存储器中读取引导程序;如以FPGA(现场可编程门阵列)配置为主动读取时,需要从其第一存储器或第二存储器读取逻辑代码,优选地,第一存储器为主用存储器,第二存储器为备用存储器。When the boot device of the electronic device needs to be powered on, that is, when some devices of the electronic device need to read programs or data from the current memory, such as when the processor starts, it needs to be from its first memory or second memory. Reading the boot program; if the FPGA (Field Programmable Gate Array) is configured for active read, the logic code needs to be read from its first memory or the second memory, preferably, the first memory is the main memory, and the second The memory is a spare memory.
当电子设备启动其启动器件失败时,即电子设备的启动器件从当前所在的存储器读取程序或数据失败时,电子设备通过其启动系统的控制模块,产生S1信号和RESET信号。
When the electronic device fails to start its boot device, that is, when the boot device of the electronic device fails to read the program or data from the current memory, the electronic device generates the S1 signal and the RESET signal through the control module of the startup system.
步骤S20,确定启动器件启动失败对应的存储器作为第一存储器,根据切换信号从第一存储器切换至第二存储器。Step S20, determining a memory corresponding to the startup device startup failure as the first memory, and switching from the first memory to the second memory according to the switching signal.
优选地,参照图5,在一实施例中,确定启动器件启动失败对应的存储器作为第一存储器,根据切换信号从第一存储器切换至第二存储器的过程可以包括:Preferably, referring to FIG. 5, in an embodiment, determining a memory corresponding to the startup failure of the boot device as the first memory, and the process of switching from the first memory to the second memory according to the switching signal may include:
步骤S21,确定启动器件启动失败对应的存储器作为第一存储器。Step S21, determining a memory corresponding to the startup device startup failure as the first memory.
步骤S22,根据复位信号复位启动器件,并根据切换信号从第一存储器切换至第二存储器。Step S22, resetting the startup device according to the reset signal, and switching from the first memory to the second memory according to the switching signal.
步骤S30,在成功从第一存储器切换至第二存储器后,将复位信号置为无效,通过第二存储器重新启动启动器件。Step S30, after successfully switching from the first memory to the second memory, the reset signal is deactivated, and the boot device is restarted by the second memory.
确定电子设备的启动器件启动失败对应的存储器为第一存储器,即确定电子设备的启动器件读取程序或数据失败时所对应的存储器为第一存储器。The memory corresponding to the startup failure of the startup device of the electronic device is determined to be the first memory, that is, the memory corresponding to the startup device reading program or the data failure of the electronic device is determined to be the first memory.
上述S1信号用于电子设备从当前所在的第一存储器切换至第二存储器,即从主用存储器切换到备用存储器。在RESET信号开始生效的时候,S1信号开始从第一存储器切换至第二存储器,当S1信号成功从第一存储器切换至第二存储器之后,RESET信号被置为无效,电子设备从第二存储器重新启动其启动器件。The above S1 signal is used for the electronic device to switch from the first memory in which it is currently located to the second memory, that is, to switch from the main memory to the backup memory. When the RESET signal begins to take effect, the S1 signal begins to switch from the first memory to the second memory. After the S1 signal is successfully switched from the first memory to the second memory, the RESET signal is deactivated and the electronic device is reset from the second memory. Start its startup device.
优选地,可以通过改变电子设备的启动系统的控制模块产生的S1信号电平的高低,来控制电子设备是切换到其第一存储器还是切换到其第二存储器。例如,当S1信号为高电平时,则CS0信号有效,电子设备切换到其第一存储器,当S1信号为低电平时,则CS1信号有效,电子设备切换到其第二存储器;也可以是当S1信号为高电平时,CS1信号有效,电子设备切换到其第二存储器,当S1信号为低电平时,CS0信号有效,电子设备切换到其第一存储器。优选地,可以选择当S1信号为高电平时,CS0信号有效,电子设备切换到其第一存储器,当S1信号为低电平时,CS1信号有效,电子设备切换到其第二存储器。Preferably, whether the electronic device switches to its first memory or to its second memory can be controlled by changing the level of the S1 signal level generated by the control module of the activation system of the electronic device. For example, when the S1 signal is high, the CS0 signal is valid, the electronic device switches to its first memory, and when the S1 signal is low, the CS1 signal is valid, and the electronic device switches to its second memory; When the S1 signal is high, the CS1 signal is active, the electronic device switches to its second memory, and when the S1 signal is low, the CS0 signal is asserted and the electronic device switches to its first memory. Preferably, it may be selected that when the S1 signal is high, the CS0 signal is active, the electronic device switches to its first memory, and when the S1 signal is low, the CS1 signal is active and the electronic device switches to its second memory.
在本实施例中,通过根据切换信号从第一存储器切换至第二存储器;在成功从第一存储器切换至第二存储器后,将复位信号置为无效,通过第二存储器重新启动其启动器件的方式,实现无需采用昂贵的可编程逻辑芯片,可以大量节省材料成本、研发成本和维护成本。使得电子设备的启动实现过程更加简单,可以有效保证启动器件复位时序和存储器切换时序之间的关系,提高系统的可靠性。In this embodiment, by switching from the first memory to the second memory according to the switching signal; after successfully switching from the first memory to the second memory, the reset signal is disabled, and the boot device is restarted by the second memory. In this way, material cost, R&D and maintenance costs can be saved by eliminating the need for expensive programmable logic chips. The implementation process of the electronic device is made simpler, and the relationship between the device reset timing and the memory switching timing can be effectively ensured, and the reliability of the system is improved.
参照图6,图6为本发明电子设备的启动方法的第二实施例的流程示意图。基于上述电子设备的启动方法的第一实施例,步骤S10之前,还包括:Referring to FIG. 6, FIG. 6 is a schematic flowchart diagram of a second embodiment of a method for starting an electronic device according to the present invention. Based on the first embodiment of the method for starting the electronic device, before step S10, the method further includes:
步骤S40,判断是否成功启动启动器件。In step S40, it is determined whether the boot device is successfully started.
当电子设备的某些器件需要从当前所在的存储器读取程序或数据时,判断电子设备是否成功启动其启动器件,即判断电子设备的某些器件是否成功从当前所在的存储器读取程序或数据。
When some devices of the electronic device need to read programs or data from the current memory, determine whether the electronic device successfully starts its boot device, that is, determine whether some devices of the electronic device successfully read programs or data from the current memory. .
可选地,参照图7,在一实施例中,判断根据启动指令是否成功启动启动器件的过程可以包括:Optionally, referring to FIG. 7, in an embodiment, determining whether the booting device is successfully started according to the startup instruction may include:
步骤S41,判断是否在预设时间内启动启动器件;Step S41, determining whether the startup device is started within a preset time;
步骤S42,若是,则判断启动器件启动成功;Step S42, if yes, determining that the startup device is successfully started;
步骤S43,若否,则判断启动器件启动失败;Step S43, if no, it is determined that the startup device fails to be started;
步骤S44,当启动器件启动成功后,产生控制信号,以完成与控制信号对应的控制操作。Step S44, after the startup device is successfully started, a control signal is generated to complete the control operation corresponding to the control signal.
确定电子设备启动其启动器件的预设时间,该预设时间可以根据需要自由设置,可以设置为1s,1.6s,2s等。优选地,预设时间设置为1.6s。当电子设备没有在预设的时间内启动其启动器件时,判断电子设备启动其启动器件失败,即电子设备的某些器件未能成功从当前所在的存储器读取程序或数据。当电子设备在预设的时间内启动其启动器件时,判断电子设备成功启动其启动器件,即电子设备的某些器件成功从当前所在的存储器读取程序或数据。当电子设备成功启动其启动器件时,电子设备的启动器件输出CTL信号到电子设备的启动系统的控制模块,当控制模块接收到电子设备的启动器件输出的CTL信号时,不产生S1信号和RESET信号。在启动器件启动成功后,产生控制信号,以完成与控制信号对应的控制操作,该控制操作包括数据读取、应用控制等。Determine the preset time for the electronic device to start its startup device. The preset time can be freely set according to requirements, and can be set to 1s, 1.6s, 2s, and so on. Preferably, the preset time is set to 1.6 s. When the electronic device does not start its boot device within a preset time, it is determined that the electronic device fails to start its boot device, that is, some devices of the electronic device fail to successfully read programs or data from the current memory. When the electronic device starts its boot device within a preset time, it is determined that the electronic device successfully starts its boot device, that is, some devices of the electronic device successfully read programs or data from the current memory. When the electronic device successfully starts its startup device, the startup device of the electronic device outputs a CTL signal to the control module of the startup system of the electronic device, and when the control module receives the CTL signal output by the startup device of the electronic device, the S1 signal and the RESET are not generated. signal. After the startup of the startup device is successful, a control signal is generated to complete a control operation corresponding to the control signal, the control operation including data reading, application control, and the like.
在本实施例中,克服了电子设备存储器的切换技术存在成本高,可靠性差的问题,降低了电子设备存储器的切换的成本,提高了切换可靠性。In this embodiment, the switching technology of the electronic device memory overcomes the problems of high cost and poor reliability, reduces the cost of switching the electronic device memory, and improves the switching reliability.
对应的,在本发明实施例中还提供了一种电子设备的启动装置。参照图8,图8为本发明电子设备的启动装置的较佳实施例的功能模块示意图,该电子设备的启动装置包括:控制模块200和切换模块300。Correspondingly, an activation device for an electronic device is further provided in the embodiment of the present invention. Referring to FIG. 8, FIG. 8 is a schematic diagram of functional modules of a preferred embodiment of an apparatus for starting an electronic device according to the present invention. The starting device of the electronic device includes a control module 200 and a switching module 300.
控制模块200,设置为当启动器件启动失败后,生成切换信号和复位信号;The control module 200 is configured to generate a switching signal and a reset signal after the startup device fails to start;
当电子设备的启动器件需要上电启动时,即当电子设备的某些器件需要从当前所在的存储器读取程序或数据时,如处理器启动时,需要从其第一存储器或第二存储器中读取引导程序;如以FPGA(现场可编程门阵列)配置为主动读取时,需要从其第一存储器或第二存储器读取逻辑代码,优选地,第一存储器为主用存储器,第二存储器为备用存储器。When the boot device of the electronic device needs to be powered on, that is, when some devices of the electronic device need to read programs or data from the current memory, such as when the processor starts, it needs to be from its first memory or second memory. Reading the boot program; if the FPGA (Field Programmable Gate Array) is configured for active read, the logic code needs to be read from its first memory or the second memory, preferably, the first memory is the main memory, and the second The memory is a spare memory.
当电子设备启动其启动器件失败时,即电子设备的启动器件从当前所在的存储器读取程序或数据失败时,电子设备通过其启动系统的控制模块产生S1信号和RESET信号。When the electronic device fails to start its boot device, that is, when the boot device of the electronic device fails to read a program or data from the current memory, the electronic device generates an S1 signal and a RESET signal through the control module of the boot system thereof.
切换模块300,设置为确定启动器件启动失败对应的存储器作为第一存储器,根据切换信号从第一存储器切换至第二存储器;The switching module 300 is configured to determine a memory corresponding to the startup device startup failure as the first memory, and switch from the first memory to the second memory according to the switching signal;
优选地,控制模块200,还设置为根据复位信号复位启动器件;Preferably, the control module 200 is further configured to reset the startup device according to the reset signal;
优选地,切换模块300,还设置为根据切换信号从第一存储器切换至第二存储器。
Preferably, the switching module 300 is further configured to switch from the first memory to the second memory according to the switching signal.
控制模块200,还设置为在成功从第一存储器切换至第二存储器后,将复位信号置为无效,通过第二存储器重新启动启动器件。The control module 200 is further configured to: after successfully switching from the first memory to the second memory, disable the reset signal, and restart the boot device by the second memory.
确定电子设备的启动器件启动失败对应的存储器为第一存储器,即确定电子设备的启动器件读取程序或数据失败时所对应的存储器为第一存储器。The memory corresponding to the startup failure of the startup device of the electronic device is determined to be the first memory, that is, the memory corresponding to the startup device reading program or the data failure of the electronic device is determined to be the first memory.
S1信号用于电子设备从当前所在的第一存储器切换至第二存储器,即从主用存储器切换到备用存储器。在RESET信号开始有效的时候,S1信号开始从第一存储器切换至第二存储器,当S1信号成功从第一存储器切换至第二存储器之后,RESET信号被置为无效,电子设备从第二存储器重新启动其启动器件。The S1 signal is used for the electronic device to switch from the first memory in which it is currently located to the second memory, ie, from the primary memory to the backup memory. When the RESET signal begins to be active, the S1 signal begins to switch from the first memory to the second memory. After the S1 signal successfully switches from the first memory to the second memory, the RESET signal is deactivated and the electronic device is re-enabled from the second memory. Start its startup device.
优选地,可以通过改变电子设备的启动系统的控制模块产生的S1信号电平的高低,来控制电子设备是切换到其第一存储器还是切换到其第二存储器。例如,当S1信号为高电平时,则CS0信号有效,电子设备切换到其第一存储器,当S1信号为低电平时,则CS1信号有效,电子设备切换到其第二存储器;也可以是当S1信号为高电平时,CS1信号有效,电子设备切换到其第二存储器,当S1信号为低电平时,CS0信号有效,电子设备切换到其第一存储器。可选地,可以选择当S1信号为高电平时,CS0信号有效,电子设备切换到其第一存储器,当S1信号为低电平时,CS1信号有效,电子设备切换到其第二存储器。Preferably, whether the electronic device switches to its first memory or to its second memory can be controlled by changing the level of the S1 signal level generated by the control module of the activation system of the electronic device. For example, when the S1 signal is high, the CS0 signal is valid, the electronic device switches to its first memory, and when the S1 signal is low, the CS1 signal is valid, and the electronic device switches to its second memory; When the S1 signal is high, the CS1 signal is active, the electronic device switches to its second memory, and when the S1 signal is low, the CS0 signal is asserted and the electronic device switches to its first memory. Alternatively, it may be selected that when the S1 signal is high, the CS0 signal is active, the electronic device switches to its first memory, and when the S1 signal is low, the CS1 signal is active and the electronic device switches to its second memory.
在本实施例中,通过根据切换信号从第一存储器切换至第二存储器;在成功从第一存储器切换至第二存储器后,将复位信号置为无效,通过第二存储器重新启动其启动器件的方式,实现无需采用昂贵的可编程逻辑芯片,可以大量节省材料成本、研发成本和维护成本。使得电子设备的启动实现过程更加简单,可以有效保证启动器件复位时序和存储器切换时序之间的关系,提高系统的可靠性。In this embodiment, by switching from the first memory to the second memory according to the switching signal; after successfully switching from the first memory to the second memory, the reset signal is disabled, and the boot device is restarted by the second memory. In this way, material cost, R&D and maintenance costs can be saved by eliminating the need for expensive programmable logic chips. The implementation process of the electronic device is made simpler, and the relationship between the device reset timing and the memory switching timing can be effectively ensured, and the reliability of the system is improved.
可选地,控制模块200,还设置为判断是否成功启动启动器件。Optionally, the control module 200 is further configured to determine whether the boot device is successfully started.
当电子设备的某些器件需要从当前所在的存储器读取程序或数据时,判断电子设备根据其启动指令是否成功启动其启动器件,即判断电子设备的某些器件是否成功从当前所在的存储器读取程序或数据。When some devices of the electronic device need to read programs or data from the current memory, determine whether the electronic device successfully starts its startup device according to its startup instruction, that is, whether some devices of the electronic device successfully read from the current memory. Take the program or data.
可选地,控制模块200,还设置为判断是否在预设时间内启动启动器件;还设置为若在预设时间内启动启动器件,则判断启动器件启动成功;还设置为若未在预设时间内启动启动器件,则判断启动器件启动失败;还设置为完成与控制信号对应的控制操作。Optionally, the control module 200 is further configured to: determine whether to start the boot device within a preset time; and further, if the boot device is started within a preset time, determine that the boot device is successfully started; and if it is not preset When the startup device is started within the time, it is judged that the startup device fails to be started; it is also set to complete the control operation corresponding to the control signal.
确定电子设备启动其启动器件的预设时间,该预设时间可以根据需要自由设置,可以设置为1s,1.6s,2s等。优选地,预设时间设置为1.6s。当电子设备没有在预设的时间内启动其启动器件时,判断电子设备启动其启动器件失败,即电子设备的某些器件未能成功从当前所在的存储器读取程序或数据。当电子设备在预设的时间内启动其启动器件时,判断电子设备成功启动其启动器件,即电子设备的某些器件成功从当前所在的存储器读取程序或数据。当电子设备启动成功其启动器件时,电子设备的启动器件输出CTL信号到电子设备的启动系统的控制模块,当控制模块接收到电子设备的启动器件输出的CTL信号时,不产生S1信号和
RESET信号。在启动器件启动成功后,产生控制信号,以完成与控制信号对应的控制操作,该控制操作包括数据读取、应用控制等。Determine the preset time for the electronic device to start its startup device. The preset time can be freely set according to requirements, and can be set to 1s, 1.6s, 2s, and so on. Preferably, the preset time is set to 1.6 s. When the electronic device does not start its boot device within a preset time, it is determined that the electronic device fails to start its boot device, that is, some devices of the electronic device fail to successfully read programs or data from the current memory. When the electronic device starts its boot device within a preset time, it is determined that the electronic device successfully starts its boot device, that is, some devices of the electronic device successfully read programs or data from the current memory. When the electronic device starts up successfully, the startup device of the electronic device outputs a CTL signal to the control module of the startup system of the electronic device, and when the control module receives the CTL signal output by the startup device of the electronic device, the S1 signal is not generated and
RESET signal. After the startup of the startup device is successful, a control signal is generated to complete a control operation corresponding to the control signal, the control operation including data reading, application control, and the like.
在本实施例中,克服了电子设备存储器的切换技术存在成本高,可靠性差的问题,降低了电子设备存储器的切换的成本,提高了切换可靠性。In this embodiment, the switching technology of the electronic device memory overcomes the problems of high cost and poor reliability, reduces the cost of switching the electronic device memory, and improves the switching reliability.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments. Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
如上所述,本发明实施例提供的一种电子设备的启动方法和装置具有以下有益效果:使得电子设备的启动实现过程更加简单,可以有效保证启动器件复位时序和存储器切换时序之间的关系,提高系统的可靠性。
As described above, the method and apparatus for starting an electronic device provided by the embodiments of the present invention have the following beneficial effects: making the startup process of the electronic device simpler, and effectively ensuring the relationship between the device reset timing and the memory switching timing. Improve system reliability.
Claims (10)
- 一种电子设备的启动方法,包括:A method for starting an electronic device, comprising:当启动器件启动失败后,生成切换信号和复位信号;After the startup device fails to start, a switching signal and a reset signal are generated;确定所述启动器件启动失败对应的存储器作为第一存储器,根据所述切换信号从所述第一存储器切换至第二存储器;Determining, as the first memory, the memory corresponding to the startup device startup failure, switching from the first memory to the second memory according to the switching signal;在成功从所述第一存储器切换至所述第二存储器后,将所述复位信号置为无效,通过所述第二存储器重新启动所述启动器件。After successfully switching from the first memory to the second memory, the reset signal is asserted, and the boot device is restarted by the second memory.
- 如权利要求1所述的电子设备的启动方法,其中,所述确定所述启动器件启动失败对应的存储器作为第一存储器,根据所述切换信号从所述第一存储器切换至第二存储器的步骤包括:The method of starting up an electronic device according to claim 1, wherein said determining a memory corresponding to said boot device startup failure as a first memory, and switching from said first memory to said second memory according to said switching signal include:确定所述启动器件启动失败对应的存储器作为第一存储器;Determining, as the first memory, the memory corresponding to the startup device startup failure;根据所述复位信号复位所述启动器件,并根据所述切换信号从所述第一存储器切换至第二存储器。And resetting the startup device according to the reset signal, and switching from the first memory to the second memory according to the switching signal.
- 如权利要求1或2所述的电子设备的启动方法,其中,所述当根据所述当启动器件启动失败后,生成切换信号和复位信号的步骤之前,还包括:The method for starting an electronic device according to claim 1 or 2, wherein the step of generating a switching signal and a reset signal after the device fails to start after the startup device fails, further comprising:判断是否成功启动所述启动器件。It is judged whether the boot device is successfully started.
- 如权利要求3所述的电子设备的启动方法,其中,所述判断是否成功启动所述启动器件的步骤包括:The method for starting an electronic device according to claim 3, wherein the step of determining whether the activation device is successfully started comprises:判断是否在预设时间内启动所述启动器件;Determining whether the starting device is started within a preset time;若是,则判断所述启动器件启动成功;If yes, determining that the boot device is successfully booted;若否,则判断所述启动器件启动失败。If not, it is determined that the boot device failed to boot.
- 如权利要求3所述的电子设备的启动方法,其中,所述若是,则判断所述启动器件启动成功步骤之后,还包括:The method for starting an electronic device according to claim 3, wherein if the step of determining the startup device is successful, the method further comprises:当所述启动器件启动成功后,产生控制信号,以完成与所述控制信号对应的控制操作。After the startup device is successfully booted, a control signal is generated to complete a control operation corresponding to the control signal.
- 一种电子设备的启动装置,包括:An activation device for an electronic device, comprising:控制模块,设置为当启动器件启动失败后,生成切换信号和复位信号;a control module configured to generate a switching signal and a reset signal after the startup device fails to start;还设置为在成功从所述第一存储器切换至所述第二存储器后,将所述复位信号置为无效,通过所述第二存储器重新启动所述启动器件;Is further configured to, after successfully switching from the first memory to the second memory, disable the reset signal, and restart the boot device through the second memory;切换模块,设置为确定所述启动器件启动失败对应的存储器作为第一存储器,根据 所述切换信号从所述第一存储器切换至第二存储器。a switching module, configured to determine a memory corresponding to the startup device startup failure as the first memory, according to The switching signal is switched from the first memory to a second memory.
- 如权利要求6所述的电子设备的启动装置,其中,所述控制模块,还设置为根据所述复位信号复位所述启动器件;The activation device of the electronic device of claim 6, wherein the control module is further configured to reset the activation device according to the reset signal;所述切换模块,还设置为根据所述切换信号从所述第一存储器切换至第二存储器。The switching module is further configured to switch from the first memory to the second memory according to the switching signal.
- 如权利要求6或7所述的电子设备的启动装置,其中,所述控制模块,还设置为判断是否成功启动所述启动器件。The starting device for an electronic device according to claim 6 or 7, wherein the control module is further configured to determine whether the starting device is successfully started.
- 如权利要求8所述的电子设备的启动装置,其中,所述控制模块,还设置为判断是否在预设时间内启动所述启动器件;还设置为若在预设时间内启动所述启动器件,则判断所述启动器件启动成功;还设置为若未在在预设时间内启动所述启动器件,则判断所述启动器件启动失败。The activation device of the electronic device of claim 8, wherein the control module is further configured to determine whether to activate the startup device within a preset time; and further configured to activate the startup device if the preset time is started And determining that the boot device is successfully booted; and further, if the boot device is not started within a preset time, determining that the boot device fails to boot.
- 如权利要求8所述的电子设备的启动装置,其中,所述控制模块,还设置为完成与所述控制信号对应的控制操作。 The starting device of an electronic device according to claim 8, wherein the control module is further configured to complete a control operation corresponding to the control signal.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510120863.7 | 2015-03-18 | ||
CN201510120863.7A CN106033365A (en) | 2015-03-18 | 2015-03-18 | Electronic device starting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016145774A1 true WO2016145774A1 (en) | 2016-09-22 |
Family
ID=56918227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/086802 WO2016145774A1 (en) | 2015-03-18 | 2015-08-12 | Electronic equipment start-up method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106033365A (en) |
WO (1) | WO2016145774A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112859675B (en) * | 2021-01-04 | 2021-11-30 | 北京无线电测量研究所 | Power-up sequence control device and method, phased array antenna and radar |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006065711A (en) * | 2004-08-30 | 2006-03-09 | Yokogawa Electric Corp | Electronic equipment, starting-up method for electronic equipment, and starting method for application program |
CN101017441A (en) * | 2007-02-27 | 2007-08-15 | 华为技术有限公司 | Electric device, start method of electric and update method of BIOS |
CN101078990A (en) * | 2006-05-25 | 2007-11-28 | 中兴通讯股份有限公司 | Client terminal start-up software dynamic updating method and device |
CN201741095U (en) * | 2010-05-26 | 2011-02-09 | 青岛海信电器股份有限公司 | Signal state transition circuit, reset circuit and electronic equipment |
CN203191973U (en) * | 2013-04-01 | 2013-09-11 | 深圳市天方信安电子科技有限公司 | Electronic device with dual systems |
CN103399828A (en) * | 2013-07-23 | 2013-11-20 | 杭州华三通信技术有限公司 | Starting and switching control device and method based on main and standby storages |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5923830A (en) * | 1997-05-07 | 1999-07-13 | General Dynamics Information Systems, Inc. | Non-interrupting power control for fault tolerant computer systems |
TWI284813B (en) * | 2005-10-21 | 2007-08-01 | Inventec Corp | Auto reset system, and method thereof |
-
2015
- 2015-03-18 CN CN201510120863.7A patent/CN106033365A/en active Pending
- 2015-08-12 WO PCT/CN2015/086802 patent/WO2016145774A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006065711A (en) * | 2004-08-30 | 2006-03-09 | Yokogawa Electric Corp | Electronic equipment, starting-up method for electronic equipment, and starting method for application program |
CN101078990A (en) * | 2006-05-25 | 2007-11-28 | 中兴通讯股份有限公司 | Client terminal start-up software dynamic updating method and device |
CN101017441A (en) * | 2007-02-27 | 2007-08-15 | 华为技术有限公司 | Electric device, start method of electric and update method of BIOS |
CN201741095U (en) * | 2010-05-26 | 2011-02-09 | 青岛海信电器股份有限公司 | Signal state transition circuit, reset circuit and electronic equipment |
CN203191973U (en) * | 2013-04-01 | 2013-09-11 | 深圳市天方信安电子科技有限公司 | Electronic device with dual systems |
CN103399828A (en) * | 2013-07-23 | 2013-11-20 | 杭州华三通信技术有限公司 | Starting and switching control device and method based on main and standby storages |
Also Published As
Publication number | Publication date |
---|---|
CN106033365A (en) | 2016-10-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101626433B1 (en) | Method and system for verifying proper operation of a computing device after a system change | |
US9542195B1 (en) | Motherboards and methods for BIOS failover using a first BIOS chip and a second BIOS chip | |
US10866623B2 (en) | Information handling system and method to detect and recover from no power/no post failures | |
US9152205B2 (en) | Mechanism for facilitating faster suspend/resume operations in computing systems | |
US10909247B2 (en) | Computing device having two trusted platform modules | |
TW201020779A (en) | System for auto-operating backup firmware and method thereof | |
US9367107B2 (en) | Method and system for controlling reset state change in a system-on-a-chip device | |
JP2004038529A (en) | Information processor | |
US20090271660A1 (en) | Motherboard, a method for recovering the bios thereof and a method for booting a computer | |
WO2019169877A1 (en) | Double bios control method and related devices | |
KR20200002603A (en) | Power button override for persistent memory enabled platforms | |
US7194614B2 (en) | Boot swap method for multiple processor computer systems | |
CN105279021A (en) | Method and device for executing non-maskable interrupt | |
JP2023020861A (en) | Firmware update | |
JP2023046382A (en) | PCIe deterministic link training using OOB communication and enumeration optimization during different power-up states | |
WO2017062131A1 (en) | System and method for providing operating system independent error control in a computing device | |
US11704198B2 (en) | Method and apparatus for providing recovery from a computing device boot up error | |
CN113867807A (en) | Method, device, equipment and storage medium for shortening power-on time of server | |
CN101739315A (en) | System and method for automatically starting backup firmware | |
JP6599725B2 (en) | Information processing apparatus, log management method, and computer program | |
WO2016145774A1 (en) | Electronic equipment start-up method and device | |
US20140181496A1 (en) | Method, Apparatus and Processor for Reading Bios | |
CN102789397B (en) | Multi-operating system switching method in computer system | |
CN105677414A (en) | Method for achieving dual boot in Hostboot | |
CN113867753B (en) | A server firmware update method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15885153 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15885153 Country of ref document: EP Kind code of ref document: A1 |