WO2022121475A1 - Operating-state switching method and apparatus, and electronic device and storage medium - Google Patents

Operating-state switching method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2022121475A1
WO2022121475A1 PCT/CN2021/122291 CN2021122291W WO2022121475A1 WO 2022121475 A1 WO2022121475 A1 WO 2022121475A1 CN 2021122291 W CN2021122291 W CN 2021122291W WO 2022121475 A1 WO2022121475 A1 WO 2022121475A1
Authority
WO
WIPO (PCT)
Prior art keywords
wake
control unit
signal
command
memory
Prior art date
Application number
PCT/CN2021/122291
Other languages
French (fr)
Chinese (zh)
Inventor
伍健
Original Assignee
浪潮电子信息产业股份有限公司
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 浪潮电子信息产业股份有限公司 filed Critical 浪潮电子信息产业股份有限公司
Publication of WO2022121475A1 publication Critical patent/WO2022121475A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of computer technologies, and in particular, to an operating state switching method, an operating state switching device, an electronic device, and a computer-readable storage medium.
  • the computer has a variety of different operating states according to its energy consumption during operation, such as the normal working state when the device is fully turned on, or the STR (Suspend to RAM, suspend to memory) state, that is, the sleep state, or the STD (Suspend to RAM) state. Disk, suspend to hard disk) state, or shutdown state.
  • the reset signal corresponding to the memory is different. Sometimes the reset signal needs to be adjusted, and sometimes the reset signal needs to be kept unchanged. For example, when the computer switches from the sleep state to the normal working state, it needs the reset signal to not be triggered. , in order to continue the previous work with the data in memory.
  • the reset signal of the memory is directly controlled by the processor.
  • Some embodiments of the present application provide an operating state switching method, an operating state switching apparatus, an electronic device, and a computer-readable storage medium, so as to avoid failure of operating state switching.
  • the present application provides a method for switching operating states, including:
  • the wake-up command is sent to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
  • the method before acquiring the wake-up signal, the method further includes: acquiring a sleep signal and generating a sleep instruction; and sending a sleep instruction to the control unit through the target bus, so that the control unit keeps the reset signal from being disabled Change.
  • the generating a wake-up instruction includes generating a clock enable signal setting instruction, and generating the wake-up instruction by using the clock enable signal setting instruction.
  • the sending the wake-up command to the control component through the target bus, so that the control component keeps the reset signal unchanged includes: sending the wake-up command to the single-chip microcomputer through the target bus, so that the single-chip computer keeps all the The reset signal remains unchanged.
  • the operating state switching method of the present application further includes:
  • the power-on command is sent to the control unit through the target bus, so that the control unit adjusts the reset signal.
  • the sending the power-on command to the control unit through the target bus, so that the control unit adjusts the reset signal includes sending the power-on command to the control unit through the target bus
  • the instruction causes the control component to send a low-level shock to the target port corresponding to the reset signal.
  • the method further includes performing data interaction with the memory.
  • the present application also provides an operating state switching device, comprising:
  • the acquisition module is used to perform the startup operation after acquiring the wake-up signal
  • an instruction generation module for generating a wake-up instruction after the start-up operation ends
  • the signal holding module is used for sending the wake-up command to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
  • the present application also provides an electronic device, including a memory and a processor, wherein:
  • the memory for storing computer readable instructions
  • the processor is configured to execute the computer-readable instructions to implement the above-mentioned method for switching operating states.
  • the present application further provides a computer-readable storage medium for storing computer-readable instructions, wherein, when the computer-readable instructions are executed by a processor, the above-mentioned operating state switching method is implemented.
  • the processor executes a start-up operation after obtaining a wake-up signal; after the start-up operation is completed, a wake-up command is generated; the wake-up command is sent to the control unit through the target bus, so that the control unit keeps The reset signal corresponding to the memory remains unchanged.
  • the provided operating state switching method utilizes a control component to relay the reset signal, and does not directly control the reset signal by the processor.
  • the processor starts after obtaining the wake-up signal, IO jitter may occur during the startup process. Since the processor does not directly control the reset signal corresponding to the memory, the memory will not be reset.
  • the processor After the start-up operation is completed, the processor generates a wake-up command, and sends the wake-up command to the control component, informing the control component how to set the control signal corresponding to the memory during this state switching.
  • the control unit Since it is still necessary to use the data stored in the memory before entering the sleep state to work from the sleep state to the normal working state, after sending the wake-up command to the control unit, the control unit will keep the reset signal unchanged, so as to avoid triggering the reset signal and causing the memory data loss, thereby avoiding the failure of the computer's operating state switching.
  • the control component plays the role of filtering IO jitter, which can avoid the failure of running state switching caused by the IO jitter of the processor, and solves the problem of the related art. It is prone to the failure of running state switching.
  • the present application also provides an operating state switching device, an electronic device and a computer-readable storage medium, which also have the above beneficial effects.
  • FIG. 1 is a flowchart of a method for switching operating states provided by some embodiments of the present application
  • FIG. 2 is a schematic structural diagram of a related art operating state switching system provided by some embodiments of the present application.
  • FIG. 3 is a schematic structural diagram of an operating state switching system provided by some embodiments of the present application.
  • FIG. 4 is a waveform diagram of a running state switching signal provided by some embodiments of the present application.
  • FIG. 5 is a schematic structural diagram of an operating state switching device provided by some embodiments of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device according to some embodiments of the present application.
  • FIG. 1 is a flowchart of a method for switching an operating state provided by an embodiment of the present application.
  • the method of the present application includes step S101 : acquiring a wake-up signal and performing a start-up operation.
  • ACPI Advanced Configuration and Power Interface
  • S0 This is the daily working state of electronic equipment, all components are fully turned on, and the power consumption generally exceeds 80W;
  • S1 Also known as POS (Power on Suspend), in this state, except that the processor is turned off by the processor (ie CPU) clock controller, other components still work normally, and the power consumption at this time is generally in Below 30W;
  • S3 Suspend to RAM, suspend to memory), that is, sleep mode, the power consumption at this time does not exceed 10W;
  • S4 STD mode (Suspend to Disk, suspend to hard disk), in this state, the main power of the system is turned off, and the hard disk is used to store the data information before the S4 state, which is more power-saving than S3;
  • a wake-up signal can be sent to the processor.
  • This embodiment does not limit the specific sending method of the wake-up signal.
  • the wake-up signal can be generated by pressing the power-on button; or the wake-up signal can be obtained through a designated component, and the wake-up signal can be sent.
  • the processor for example, to obtain wake-up signals sent by other electronic devices.
  • the designated component should be in the open state in the non-S5 state.
  • the processor performs a start-up operation after acquiring the wake-up signal.
  • the specific process and manner of the start-up operation are not limited in this embodiment, and reference may be made to related technologies.
  • FIG. 2 is a schematic structural diagram of a related art operating state switching system provided by an embodiment of the present application.
  • the processor 201 is directly connected to the memory 203 through the control circuit 202, and the processor directly controls the control signals for setting the state of the memory, including the reset signal DDRRESET.
  • IO jitter may cause the control interface signal of the reset signal to be unstable.
  • the reset signal is sent under uncontrolled conditions, and in cooperation with other control signals, the memory is reset, causing data loss. lost.
  • the memory stores the data stored before the processor is turned off. When the operating state is switched to S0, these data are needed to restore the electronic device to the state before sleep. Therefore, resetting the memory will cause the operating state to fail to switch, that is, wake-up failure.
  • the wake-up signal is acquired by the processor, and the processor performs a start-up operation after acquiring the wake-up signal.
  • control unit is connected to the processor and the memory is respectively connected, since the processor and the control unit need to transmit signals through the target bus, and IO jitter cannot constitute an effective signal that can be transmitted through the target bus, Therefore, the IO jitter when the processor performs the startup operation cannot affect the control unit, so that the memory control signal controlled by the control unit may not be affected by the IO jitter when the processor starts.
  • the specific model of the processor in this embodiment is not limited, for example, it may be a Loongson LS3A4000 chip.
  • the method of the present application includes step S102: after the start-up operation ends, generating a wake-up instruction.
  • the memory state needs to be set so that the data can be interacted with the memory normally and the running state switching can be completed. Therefore, the wake-up command is generated.
  • This embodiment does not limit the specific content of the wake-up command. It can notify the control component to control, and set the control signal of the memory through the control component, while keeping the reset signal corresponding to the memory unchanged to prevent the memory from being reset.
  • the wake-up instruction is generated by the processor.
  • the step of generating the wake-up command may include step 11: generating a clock enable signal setting command, and generating the wake-up command by using the clock enable signal setting command.
  • the clock enable signal is the CKE signal, which is an input signal and is active high.
  • the clock enable signal is the CKE signal, which is an input signal and is active high.
  • the CKE signal is invalid, all input-related functional modules in the memory stop working. At the same time, enter self-refresh to keep internal data valid.
  • the CKE signal of the memory Before the electronic device enters the sleep state, in order to ensure the security of the data in the memory, the CKE signal of the memory is usually set to be invalid, so as to ensure that the data in it will not be rewritten.
  • the clock enable signal setting instruction may be generated first when the wake-up instruction is generated, and the wake-up instruction may be generated based on the clock enable signal setting instruction.
  • the control unit sets the CKE signal to be valid after obtaining the wake-up command. This embodiment does not limit whether other contents are included in the wake-up
  • the wake-up command may only be a signal instructing the control unit to keep the reset signal corresponding to the memory unchanged, so as to ensure that the reset signal remains unchanged.
  • the method of the present application includes step S103 : sending a wake-up command to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
  • the wake-up command is sent to the control unit through the target bus with the control unit.
  • the target bus is connected to the control part, so that the influence of IO jitter on the control part can be avoided.
  • the target bus may specifically be an I2C bus, or may be other signal buses.
  • control component is a single-chip microcomputer
  • step S103 is to send a wake-up command to the single-chip microcomputer through the target bus, so that the single-chip computer keeps the reset signal unchanged.
  • the specific model of the microcontroller is not limited, for example, it can be an STM32 microcontroller.
  • the switching of the running state can be completed. In this embodiment, the switching of the running state is switching from the sleep state to the running state. Further, data interaction with the memory can also be performed, so that the electronic device can work normally.
  • a wake-up command is sent by the processor to the control unit via the target bus.
  • the reset signal is relayed by the control component, and the reset signal is not directly controlled by the processor.
  • the processor starts after obtaining the wake-up signal, IO jitter may occur during the startup process. Since the processor does not directly control the reset signal corresponding to the memory, the memory will not be reset.
  • the processor After the start-up operation is completed, the processor generates a wake-up command, and sends the wake-up command to the control component, informing the control component how to set the control signal corresponding to the memory during this state switching.
  • the control unit Since it is still necessary to use the data stored in the memory before entering the sleep state to work from the sleep state to the normal working state, after sending a wake-up command to the control unit, the control unit will keep the reset signal unchanged, so as to avoid triggering the reset signal and causing the memory data loss, thereby avoiding the failure of the computer's operating state switching.
  • the control part By using the control part to isolate the reset signal of the processor and the memory, the control part plays the role of filtering IO jitter, which can avoid the failure of operating state switching caused by the IO jitter of the processor, and solve the problem that the related technology is prone to failure of operating state switching.
  • the method may further include:
  • Step 21 Acquire a sleep signal and generate a sleep instruction
  • Step 22 Send a sleep command to the control unit through the target bus, so that the control unit keeps the reset signal unchanged.
  • the sleep signal is used to indicate entering the S1, S2 or S3 state
  • the specific acquisition method thereof is not limited in this embodiment, for example, the acquisition method may be the same as that of the wake-up signal.
  • a corresponding sleep command is generated, and the sleep command is sent to the control unit through the target bus, so that the control unit sets the control signal corresponding to the memory. It can be understood that since the electronic device has not entered the shutdown state (ie, the S5 state), no matter how the control component sets the control signal corresponding to the memory, the reset signal will remain unchanged.
  • the sleep signal is obtained by the processor, and the sleep instruction is generated by the processor after obtaining the sleep signal. In some implementations, a sleep instruction is sent by the processor to the control unit over the target bus.
  • the reset signal may be adjusted when the electronic device is switched from the S5 state to the S0 state, so as to enable the electronic device to be powered on normally.
  • the method can also include:
  • Step 31 Obtain a power-on signal and perform a boot-up operation
  • Step 32 After the start-up operation is completed, generate a boot command; and/or
  • Step 33 Send a power-on command to the control unit through the target bus, so that the control unit adjusts the reset signal.
  • the specific detection method of the power-on signal is similar to the acquisition method of the wake-up signal or the sleep signal, which is not repeated in this embodiment.
  • a start-up operation is performed, and the specific process of the start-up operation is not limited.
  • a power-on command is generated and sent to the control unit. Since the memory needs to be left blank when the electronic device is powered on, the control component can adjust the reset signal after obtaining the boot command, so that the memory can be reset.
  • This embodiment does not limit the specific manner in which the control unit adjusts the reset signal. For example, in some embodiments, sending a power-on command to the control unit through the target bus so that the control unit adjusts the reset signal may include:
  • Step 41 Send a power-on command to the control unit through the target bus, so that the control unit sends a low-level shock to the target port corresponding to the reset signal.
  • the DDRRESET signal can be temporarily set to a low-level state by sending a low-level shock to the port corresponding to the reset signal, that is, the target port. After detecting that the reset signal is a low-level signal, the memory can perform an initialization operation to complete the initialization of the memory.
  • the start-up operation is performed by a processor.
  • the power-on instruction is generated by the processor.
  • a power-on command is sent by the processor to the control unit via the target bus.
  • FIG. 3 is a schematic structural diagram of an operating state switching system provided by some embodiments of the present application.
  • the processor 201 is connected to the memory 203 through the control unit 204, and the control unit itself is powered by the S3 power supply. 205 powered.
  • the S3 power supply 205 is a power supply that still supplies power to the outside in the S3 state.
  • FIG. 4 is a waveform diagram of an operating state switching signal provided by some embodiments of the present application.
  • SLP_S3# is the S3 state flag signal, and when it is at a low level, it indicates that the electronic device enters the S3 state.
  • SLP_S4# and SLP_S5# are the S4 state flag signal and the S5 state flag signal respectively
  • MC0&MC1_DDR_DIMM_RESET_N is the DDRRESET signal
  • the low level is the enable state, that is, when the low level is low, the memory will be initialized, that is, reset.
  • BIOS Command is the BIOS control signal
  • the MC0_CKE and MC1_CKE signals are the CKE signals corresponding to the two memories respectively.
  • the control unit 204 After acquiring the sleep instruction, the control unit 204 sets the CKE signal to a low level state to ensure data security in the memory 203 and to ensure that the MC0 & MC1_DDR_DIMM_RESET_N signals are at a high level state.
  • the processor obtains the wake-up signal and executes the start-up operation. During the start-up process, since the control unit does not receive the wake-up command, the memory control signal will not be set. After the processor generates a wake-up command (the BIOS Command is in a valid state), it sends it to the control unit.
  • control unit After the control unit receives the wake-up command, it restores the CKE signal to a high level, so that the processor and the memory can exchange data. During this process, the MC0&MC1_DDR_DIMM_RESET_N signals can also be kept at a high level.
  • the methods of some embodiments of the present application can solve the problem that the switching of the operating state of the electronic device fails due to the IO jitter when the processor is started.
  • the following describes the operating state switching device provided by the embodiments of the present application.
  • the operating state switching device described below and the operating state switching method described above may refer to each other correspondingly.
  • FIG. 5 is a schematic structural diagram of an operating state switching apparatus provided by some embodiments of the present application, including:
  • an acquisition module 110 configured to perform a startup operation after acquiring the wake-up signal
  • an instruction generation module 120 for generating a wake-up instruction after the start-up operation is completed
  • the signal holding module 130 is configured to send a wake-up command to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
  • the apparatus further includes:
  • a sleep instruction generation module configured to generate a sleep instruction after acquiring the sleep signal
  • the sleep instruction sending module is used for sending the sleep instruction to the control unit through the target bus, so that the control unit keeps the reset signal unchanged.
  • the instruction generating module 120 includes a generating unit for generating a clock enable signal setting instruction, and generating a wake-up instruction using the clock enable signal setting instruction.
  • the signal holding module 130 includes a microcontroller control unit, configured to send a wake-up command to the microcontroller through the target bus, so that the microcontroller keeps the reset signal unchanged.
  • the apparatus further includes:
  • the startup module is used to perform the startup operation after detecting the startup signal
  • a power-on instruction generation module used for generating a power-on instruction after the start-up operation is completed
  • the power-on command sending module is used for sending a power-on command to the control unit through the target bus, so that the control unit adjusts the reset signal.
  • the power-on command sending module includes a low-level shock unit, configured to send a power-on command to the control component through the target bus, so that the control component sends a low-level shock to the target port corresponding to the reset signal.
  • the apparatus further includes a data interaction module for performing data interaction with the memory.
  • the electronic device 100 may include a processor 101 and a memory 102 , and may further include one or more of a multimedia component 103 , an information input/information output (I/O) interface 104 and a communication component 105 .
  • a multimedia component 103 may be included in the electronic device 100 .
  • I/O information input/information output
  • the processor 101 is used to control the overall operation of the electronic device 100 to complete all or part of the steps in the above-mentioned operating state switching method;
  • the memory 102 is used to store various types of data to support the operation of the electronic device 100, these Data may include, for example, instructions for any application or method to operate on the electronic device 100, as well as application-related data.
  • the memory 102 may be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory) Erasable Programmable Read-Only Memory, EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read- One or more of Only Memory, ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM Static Random Access Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • PROM Programmable Read-Only Memory
  • Read- One or more of Only Memory ROM
  • magnetic memory flash memory
  • flash memory magnetic disk or optical disk.
  • Multimedia components 103 may include screen and audio components.
  • the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals.
  • the audio component may include a microphone for receiving external audio signals.
  • the received audio signal may be further stored in the memory 102 or transmitted through the communication component 105 .
  • the audio assembly also includes at least one speaker for outputting audio signals.
  • the I/O interface 104 provides an interface between the processor 101 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons.
  • the communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC for short), 2G, 3G or 4G, or one or a combination of them, so the corresponding communication component 105 may include: Wi-Fi parts, Bluetooth parts, NFC parts.
  • the electronic device 100 may be implemented by one or more Application Specific Integrated Circuit (ASIC for short), Digital Signal Processor (DSP for short), Digital Signal Processing Device (DSPD for short), Programmable logic device (Programmable Logic Device, PLD for short), Field Programmable Gate Array (Field Programmable Gate Array, FPGA for short), controller, microcontroller, microprocessor or other electronic components are implemented for implementing the above embodiments The given operation state switching method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • PLD Programmable logic device
  • Field Programmable Gate Array Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic components are implemented for implementing the above embodiments The given operation state switching method.
  • the present application also provides a computer-readable storage medium, such as a non-volatile computer-readable storage medium, where computer-readable instructions are stored on the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, the above-mentioned operating state is realized The steps to switch the method.
  • a computer-readable storage medium such as a non-volatile computer-readable storage medium
  • the computer-readable storage medium may include: a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc. that can store program codes medium.
  • a software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
  • RAM random access memory
  • ROM read only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Sources (AREA)

Abstract

Disclosed are an operating-state switching method and apparatus, and an electronic device and a computer-readable storage medium. The method comprises: after acquiring a wake-up signal, a processor executing a start operation; generating a wake-up instruction after the start operation ends; and sending the wake-up instruction to a control component via a target bus, such that the control component keeps a reset signal, corresponding to a memory, unchanged.

Description

运行状态切换方法、装置、电子设备及存储介质Operating state switching method, device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求在2020年12月11日提交中国专利局,申请号为202011445720.0,发明名称为“运行状态切换方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 11, 2020 with the application number 202011445720.0 and the title of the invention is "operation state switching method, device, electronic device and storage medium", the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种运行状态切换方法、运行状态切换装置、电子设备及计算机可读存储介质。The present application relates to the field of computer technologies, and in particular, to an operating state switching method, an operating state switching device, an electronic device, and a computer-readable storage medium.
背景技术Background technique
计算机在运行时根据其能耗不同,具有多种不同的运行状态,例如设备全开的正常工作状态,或者STR(Suspend to RAM,挂起到内存)状态,即睡眠状态,或者STD(Suspend to Disk,挂起到硬盘)状态,或者为关机状态。在各个状态中切换时,内存对应的复位信号不同,有时需要对复位信号进行调节,而有时需要保持复位信号不变,例如计算机从睡眠状态切换到正常工作状态时,其需要复位信号不被触发,以便利用内存中的数据继续之前的工作。相关技术中,内存的复位信号由处理器直接控制,由于状态切换过程往往伴随着处理器的上电或掉电,在处理器上电过程中常常出现IO抖动,这使得内存的复位信号不稳,容易导致内存中数据的丢失,进而导致运行状态切换失败。The computer has a variety of different operating states according to its energy consumption during operation, such as the normal working state when the device is fully turned on, or the STR (Suspend to RAM, suspend to memory) state, that is, the sleep state, or the STD (Suspend to RAM) state. Disk, suspend to hard disk) state, or shutdown state. When switching in each state, the reset signal corresponding to the memory is different. Sometimes the reset signal needs to be adjusted, and sometimes the reset signal needs to be kept unchanged. For example, when the computer switches from the sleep state to the normal working state, it needs the reset signal to not be triggered. , in order to continue the previous work with the data in memory. In the related art, the reset signal of the memory is directly controlled by the processor. Since the state switching process is often accompanied by the power-on or power-off of the processor, IO jitter often occurs during the power-on process of the processor, which makes the reset signal of the memory unstable. , which can easily lead to the loss of data in the memory, which in turn leads to the failure of running state switching.
因此,相关技术容易出现运行状态切换失败的问题,是本领域技术人员需要解决的技术问题。Therefore, the related art is prone to the problem of failure to switch the operating state, which is a technical problem to be solved by those skilled in the art.
发明内容SUMMARY OF THE INVENTION
本申请的一些实施例提供了一种运行状态切换方法、运行状态切换装置、电子设备及计算机可读存储介质,避免运行状态切换失败。Some embodiments of the present application provide an operating state switching method, an operating state switching apparatus, an electronic device, and a computer-readable storage medium, so as to avoid failure of operating state switching.
在一些实施方式中,本申请提供了一种运行状态切换方法,包括:In some embodiments, the present application provides a method for switching operating states, including:
获取唤醒信号并执行启动操作;Get the wake-up signal and perform the start operation;
在所述启动操作结束后,生成唤醒指令;以及after the start-up operation is complete, generating a wake-up instruction; and
通过目标总线向控制部件发送所述唤醒指令,使得所述控制部件保持内存对应的复位信号不变。The wake-up command is sent to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
在一些实施方式中,在获取到唤醒信号之前,还包括:获取睡眠信号并生成睡眠指令;以及通过所述目标总线向所述控制部件发送睡眠指令,使得所述控制部件保持所述复位信号不变。In some embodiments, before acquiring the wake-up signal, the method further includes: acquiring a sleep signal and generating a sleep instruction; and sending a sleep instruction to the control unit through the target bus, so that the control unit keeps the reset signal from being disabled Change.
在一些实施方式中,所述生成唤醒指令,包括生成时钟使能信号设置指令,并利用所述时钟使能信号设置指令生成所述唤醒指令。In some embodiments, the generating a wake-up instruction includes generating a clock enable signal setting instruction, and generating the wake-up instruction by using the clock enable signal setting instruction.
在一些实施方式中,所述通过目标总线向控制部件发送所述唤醒指令,使得所述控制部件保持复位信号不变,包括:通过目标总线向单片机发送所述唤醒指令,使得所述单片机保持所述复位信号不变。In some implementation manners, the sending the wake-up command to the control component through the target bus, so that the control component keeps the reset signal unchanged, includes: sending the wake-up command to the single-chip microcomputer through the target bus, so that the single-chip computer keeps all the The reset signal remains unchanged.
在一些实施方式中,本申请的运行状态切换方法还包括:In some embodiments, the operating state switching method of the present application further includes:
获取开机信号并执行所述启动操作;Acquire the power-on signal and execute the start-up operation;
在所述启动操作结束后,生成开机指令;以及After the start-up operation is finished, generating a power-on instruction; and
通过所述目标总线向所述控制部件发送所述开机指令,使得所述控制部件调节所述复位信号。The power-on command is sent to the control unit through the target bus, so that the control unit adjusts the reset signal.
在一些实施方式中,所述通过所述目标总线向所述控制部件发送所述开机指令,使得所述控制部件调节所述复位信号,包括通过所述目标总线向所述控制部件发送所述开机指令,使得所述控制部件向所述复位信号对应的目标端口发送低电平冲击。In some embodiments, the sending the power-on command to the control unit through the target bus, so that the control unit adjusts the reset signal, includes sending the power-on command to the control unit through the target bus The instruction causes the control component to send a low-level shock to the target port corresponding to the reset signal.
在一些实施方式中,在通过目标总线向控制部件发送所述唤醒指令之后,还包括与所述内存进行数据交互。In some embodiments, after the wake-up command is sent to the control component through the target bus, the method further includes performing data interaction with the memory.
在一些实施方式中,本申请还提供了一种运行状态切换装置,包括:In some embodiments, the present application also provides an operating state switching device, comprising:
获取模块,用于获取到唤醒信号后执行启动操作;The acquisition module is used to perform the startup operation after acquiring the wake-up signal;
指令生成模块,用于在所述启动操作结束后,生成唤醒指令;以及an instruction generation module for generating a wake-up instruction after the start-up operation ends; and
信号保持模块,用于通过目标总线向控制部件发送所述唤醒指令,使得所述控制部件保持内存对应的复位信号不变。The signal holding module is used for sending the wake-up command to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
在一些实施方式中,本申请还提供了一种电子设备,包括存储器和处理器,其中:In some embodiments, the present application also provides an electronic device, including a memory and a processor, wherein:
所述存储器用于保存计算机可读指令;且the memory for storing computer readable instructions; and
所述处理器用于执行所述计算机可读指令,以实现上述的运行状态切换方法。The processor is configured to execute the computer-readable instructions to implement the above-mentioned method for switching operating states.
在一些实施方式中,本申请还提供了一种计算机可读存储介质,用于保存计算机可读指令,其中,所述计算机可读指令被处理器执行时实现上述的运行状态切换方法。In some embodiments, the present application further provides a computer-readable storage medium for storing computer-readable instructions, wherein, when the computer-readable instructions are executed by a processor, the above-mentioned operating state switching method is implemented.
本申请的一些实施方式中,提供的运行状态切换方法,处理器获取到唤醒信号后执行启动操作;在启动操作结束后,生成唤醒指令;通过目标总线向控制部件发送唤醒指令,使得控制部件保持内存对应的复位信号不变。In some embodiments of the present application, in the operating state switching method provided, the processor executes a start-up operation after obtaining a wake-up signal; after the start-up operation is completed, a wake-up command is generated; the wake-up command is sent to the control unit through the target bus, so that the control unit keeps The reset signal corresponding to the memory remains unchanged.
本申请的一些实施方式中,提供的运行状态切换方法,利用控制部件对复位信号进行中转,不由处理器直接控制复位信号。当处理器获取到唤醒信号后进行启动,该启动过程中可能出现IO抖动,由于处理器不直接控制内存对应的复位信号,因此不会造成内存被复位。在启动操作结束后,处理器生成唤醒指令,并将唤醒指令发送至控制部件,通知控制部件在本次状态切换时如何对内存对应的控制信号进行设置。由于从睡眠状态到正常工作状态时仍需利用进入睡眠状态之前存储在内存中的数据进行工作,因此向控制部件发送唤醒指令后,控制部件会保持复位信号不变,避免触发复位信号导致内存中的数据丢失,进而避免计算机的运行状态切换失败。在本申请的一些实施例中,通过利用控制部件将处理器和内存的复位信号隔离,控制部件起到了过滤IO抖动的作用,可以避免因处理器IO抖动造成运行状态切换失败,解决了相关技术容易出现运行状态切换失败的问题。In some embodiments of the present application, the provided operating state switching method utilizes a control component to relay the reset signal, and does not directly control the reset signal by the processor. When the processor starts after obtaining the wake-up signal, IO jitter may occur during the startup process. Since the processor does not directly control the reset signal corresponding to the memory, the memory will not be reset. After the start-up operation is completed, the processor generates a wake-up command, and sends the wake-up command to the control component, informing the control component how to set the control signal corresponding to the memory during this state switching. Since it is still necessary to use the data stored in the memory before entering the sleep state to work from the sleep state to the normal working state, after sending the wake-up command to the control unit, the control unit will keep the reset signal unchanged, so as to avoid triggering the reset signal and causing the memory data loss, thereby avoiding the failure of the computer's operating state switching. In some embodiments of the present application, by using the control component to isolate the reset signal of the processor and the memory, the control component plays the role of filtering IO jitter, which can avoid the failure of running state switching caused by the IO jitter of the processor, and solves the problem of the related art. It is prone to the failure of running state switching.
此外,本申请还提供了一种运行状态切换装置、电子设备及计算机可读存储介质,同样具有上述有益效果。In addition, the present application also provides an operating state switching device, an electronic device and a computer-readable storage medium, which also have the above beneficial effects.
附图说明Description of drawings
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application or related technologies more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only the For the embodiments of the application, for those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without any creative effort.
图1为本申请的一些实施例提供的一种运行状态切换方法流程图;FIG. 1 is a flowchart of a method for switching operating states provided by some embodiments of the present application;
图2为本申请的一些实施例提供的一种相关技术的运行状态切换系统的结构示意图;FIG. 2 is a schematic structural diagram of a related art operating state switching system provided by some embodiments of the present application;
图3为本申请的一些实施例提供的一种运行状态切换系统的结构示意图;FIG. 3 is a schematic structural diagram of an operating state switching system provided by some embodiments of the present application;
图4为本申请的一些实施例提供的一种运行状态切换信号波形图;FIG. 4 is a waveform diagram of a running state switching signal provided by some embodiments of the present application;
图5为本申请的一些实施例提供的一种运行状态切换装置的结构示意图;FIG. 5 is a schematic structural diagram of an operating state switching device provided by some embodiments of the present application;
图6为本申请的一些实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device according to some embodiments of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
请参考图1,图1为本申请实施例提供的一种运行状态切换方法流程图。Please refer to FIG. 1 , which is a flowchart of a method for switching an operating state provided by an embodiment of the present application.
在一些实施方式中,本申请的方法包括步骤S101:获取唤醒信号并执行启动操作。In some embodiments, the method of the present application includes step S101 : acquiring a wake-up signal and performing a start-up operation.
本实施例中的部分或全部步骤可以由电子设备中的处理器执行,该电子设备可以为计算机、服务器或其他具有处理器和内存的设备。高级配置与电源接口(Advanced Configuration and Power Interface),简称ACPI,是操作系统应用程序管理所有电源管理设置的接口,通过该接口,可以实现计算机的睡眠、休眠、唤醒等功能。在ACPI中,共有6种状态,分别是S0到S5,它们代表的含义分别是:Some or all of the steps in this embodiment may be executed by a processor in an electronic device, and the electronic device may be a computer, a server, or other devices having a processor and a memory. Advanced Configuration and Power Interface (ACPI for short) is an interface for operating system applications to manage all power management settings. Through this interface, functions such as sleep, hibernation, and wake-up of the computer can be realized. In ACPI, there are 6 states, S0 to S5, and their meanings are:
S0:这就是电子设备的日常工作状态,所有部件全开,功耗一般会超过80W;S0: This is the daily working state of electronic equipment, all components are fully turned on, and the power consumption generally exceeds 80W;
S1:也称为POS(Power on Suspend),在这种状态下,除了通过处理器(即CPU)时钟控制器将处理器关闭之外,其他的部件仍然正常工作,这时的功耗一般在30W以下;S1: Also known as POS (Power on Suspend), in this state, except that the processor is turned off by the processor (ie CPU) clock controller, other components still work normally, and the power consumption at this time is generally in Below 30W;
S2:这时处理器处于停止运作状态,总线时钟也被关闭,但其余的部件仍然运转;S2: At this time, the processor is in a stopped state, and the bus clock is also turned off, but the rest of the components are still running;
S3:STR模式(Suspend to RAM,挂起到内存),即睡眠模式,这时的功耗不超过10W;S3: STR mode (Suspend to RAM, suspend to memory), that is, sleep mode, the power consumption at this time does not exceed 10W;
S4:STD模式(Suspend to Disk,挂起到硬盘),这种状态下系统主电源关闭,利用硬盘存储S4状态前的数据信息,比S3更加省电;S4: STD mode (Suspend to Disk, suspend to hard disk), in this state, the main power of the system is turned off, and the hard disk is used to store the data information before the S4 state, which is more power-saving than S3;
S5:电源在内的所有部件全部关闭,即关机状态(shutdown),功耗为0。S5: All components including the power supply are turned off, that is, a shutdown state (shutdown), and the power consumption is 0.
可以看出,除了S0状态外,其他状态下处理器都处于关闭状态,因此在从S1、S2或S3状态切换到S0状态以便重新开始工作时,都需要重新启动处理器。具体的,可以向处理器发送唤醒信号,本实施例并不限定唤醒信号的具体发送方式,例如可以通过按动开机按键生成唤醒信号;或者可以通过指定部件获取唤醒信号,并将该唤醒信号发送给处理器,例如获取其他电子设备发送的唤醒信号。需要说明的是,该指定部件应当在非S5状态下均处于开启状态。处理器在获取唤醒信号后执行启动操作,启动操作的具体过程和方式本实施例不做限定,可以参考相关技术。It can be seen that except the S0 state, the processor is in the off state in other states, so when switching from the S1, S2 or S3 state to the S0 state in order to restart the work, the processor needs to be restarted. Specifically, a wake-up signal can be sent to the processor. This embodiment does not limit the specific sending method of the wake-up signal. For example, the wake-up signal can be generated by pressing the power-on button; or the wake-up signal can be obtained through a designated component, and the wake-up signal can be sent. To the processor, for example, to obtain wake-up signals sent by other electronic devices. It should be noted that the designated component should be in the open state in the non-S5 state. The processor performs a start-up operation after acquiring the wake-up signal. The specific process and manner of the start-up operation are not limited in this embodiment, and reference may be made to related technologies.
处理器在启动过程中,可能会出现IO抖动的现象,即处理器的输入输出可能不受控。请参考图2,图2为本申请实施例提供的一种相关技术的运行状态切换系统的结构示意图。处理器201通过控制电路202直接与内存203相连,处理器直接控制用于设置内存状态的控制信号,其中就包括复位信号DDRRESET。在处理器启动时,IO抖动可能会导致复位信号的控制接口信号不稳,在不受控的情况下发送了复位信号,在与其他控制信号的配合下,使得内存进行了复位,造成了数据丢失。而内存中存储有处理器关闭前存储的数据,在运行状态切换为S0时,需要这些数据使电子设备恢复至睡眠前的状态,因此内存的复位会导致运行状态切换失败,即唤醒失败。During the startup process of the processor, IO jitter may occur, that is, the input and output of the processor may be uncontrolled. Please refer to FIG. 2 , which is a schematic structural diagram of a related art operating state switching system provided by an embodiment of the present application. The processor 201 is directly connected to the memory 203 through the control circuit 202, and the processor directly controls the control signals for setting the state of the memory, including the reset signal DDRRESET. When the processor is started, IO jitter may cause the control interface signal of the reset signal to be unstable. The reset signal is sent under uncontrolled conditions, and in cooperation with other control signals, the memory is reset, causing data loss. lost. The memory stores the data stored before the processor is turned off. When the operating state is switched to S0, these data are needed to restore the electronic device to the state before sleep. Therefore, resetting the memory will cause the operating state to fail to switch, that is, wake-up failure.
在一些实施方式中,由处理器获取唤醒信号,并由处理器在获取唤醒信号后执行启动操作。In some implementations, the wake-up signal is acquired by the processor, and the processor performs a start-up operation after acquiring the wake-up signal.
本申请的一些实施例中,利用控制部件与处理器相连和内存分别相连,由于处理器和控制部件之间需要通过目标总线传输信号,而IO抖动不可能构成可以通过目标总线传输的有效信号,因此处理器在执行启动操作时的IO抖动并不能影响到控制部件,使得控制部件控制的内存控制信号可以不受到处理器启动时的IO抖动的影响。In some embodiments of the present application, the control unit is connected to the processor and the memory is respectively connected, since the processor and the control unit need to transmit signals through the target bus, and IO jitter cannot constitute an effective signal that can be transmitted through the target bus, Therefore, the IO jitter when the processor performs the startup operation cannot affect the control unit, so that the memory control signal controlled by the control unit may not be affected by the IO jitter when the processor starts.
需要说明的是,本实施例中处理器的具体型号不做限定,例如可以为龙芯LS3A4000芯片。It should be noted that the specific model of the processor in this embodiment is not limited, for example, it may be a Loongson LS3A4000 chip.
在一些实施方式中,本申请的方法包括步骤S102:在启动操作结束后,生成唤醒指令。In some embodiments, the method of the present application includes step S102: after the start-up operation ends, generating a wake-up instruction.
在启动操作结束后,需要对内存状态进行设置,以便正常与内存进行数据交互,完成运行状态切换。因此生成唤醒指令,本实施例并不限定唤醒指令的具体内容,其可以通知控制部件进行控制,通过控制部件对内存的控制信号进行设置,同时保持内存对应的复位信号不变,防止内存复位。After the startup operation is completed, the memory state needs to be set so that the data can be interacted with the memory normally and the running state switching can be completed. Therefore, the wake-up command is generated. This embodiment does not limit the specific content of the wake-up command. It can notify the control component to control, and set the control signal of the memory through the control component, while keeping the reset signal corresponding to the memory unchanged to prevent the memory from being reset.
在一些实施方式中,由处理器生成唤醒指令。In some implementations, the wake-up instruction is generated by the processor.
在一些实施方式中,生成唤醒指令的步骤可以包括步骤11:生成时钟使能信号设置指令,并利用时钟使能信号设置指令生成唤醒指令。In some embodiments, the step of generating the wake-up command may include step 11: generating a clock enable signal setting command, and generating the wake-up command by using the clock enable signal setting command.
时钟使能信号即为CKE信号,其为输入信号,高电平有效。CKE信号的用途有两个:一、关闭时钟以进入省电模式;二、进入自刷新状态。CKE信号无效时,内存内部所有与输入相关的功能模块停止工作。同时进入自刷新保持内部数据有效。在电子设备进入睡眠状态前,为了保证内存中数据的安全性,通常会将内 存的CKE信号设置为无效,以便保证其内数据不会被改写。为了在后续正常工作,可以在生成唤醒指令时先生成时钟使能信号设置指令,并基于时钟使能信号设置指令生成唤醒指令。使得控制部件在获取到唤醒指令后对CKE信号设置为有效。本实施例并不限定唤醒指令中是否还包括其他内容,可以根据实际需要进行设置。The clock enable signal is the CKE signal, which is an input signal and is active high. There are two purposes of the CKE signal: first, to turn off the clock to enter the power saving mode; second, to enter the self-refresh state. When the CKE signal is invalid, all input-related functional modules in the memory stop working. At the same time, enter self-refresh to keep internal data valid. Before the electronic device enters the sleep state, in order to ensure the security of the data in the memory, the CKE signal of the memory is usually set to be invalid, so as to ensure that the data in it will not be rewritten. In order to work normally in the future, the clock enable signal setting instruction may be generated first when the wake-up instruction is generated, and the wake-up instruction may be generated based on the clock enable signal setting instruction. The control unit sets the CKE signal to be valid after obtaining the wake-up command. This embodiment does not limit whether other contents are included in the wake-up instruction, which can be set according to actual needs.
在一些实施方式中,唤醒指令可以仅为指示控制部件保持内存对应的复位信号不变的信号,以便确保复位信号不变。In some embodiments, the wake-up command may only be a signal instructing the control unit to keep the reset signal corresponding to the memory unchanged, so as to ensure that the reset signal remains unchanged.
在一些实施方式中,本申请的方法包括步骤S103:通过目标总线向控制部件发送唤醒指令,使得控制部件保持内存对应的复位信号不变。In some embodiments, the method of the present application includes step S103 : sending a wake-up command to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
在生成唤醒指令后,通过与控制部件之间的目标总线向控制部件发送唤醒指令。通过目标总线与控制部件相连,可以避免IO抖动对控制部件造成影响。目标总线具体可以为I2C总线,或者可以为其他信号总线。在向控制部件发送唤醒指令后,控制部件可以根据唤醒指令设置内存对应的控制信号,该设置过程不会造成内存的复位信号变化,可以保持内存对应的复位信号不变。在一些实施方式中,控制部件为单片机,则S103步骤则为通过目标总线向单片机发送唤醒指令,使得单片机保持复位信号不变。单片机的具体型号不做限定,例如可以为STM32单片机。在对内存对应的控制信号进行设置后,即可完成运行状态切换,在本实施例中,运行状态切换即为从睡眠状态切换为运行状态。进一步的,还可与内存进行数据交互,使得电子设备可以正常工作。After the wake-up command is generated, the wake-up command is sent to the control unit through the target bus with the control unit. The target bus is connected to the control part, so that the influence of IO jitter on the control part can be avoided. The target bus may specifically be an I2C bus, or may be other signal buses. After sending the wake-up command to the control unit, the control unit can set the control signal corresponding to the memory according to the wake-up command, the setting process will not cause the reset signal of the memory to change, and the reset signal corresponding to the memory can be kept unchanged. In some embodiments, the control component is a single-chip microcomputer, and step S103 is to send a wake-up command to the single-chip microcomputer through the target bus, so that the single-chip computer keeps the reset signal unchanged. The specific model of the microcontroller is not limited, for example, it can be an STM32 microcontroller. After the control signal corresponding to the memory is set, the switching of the running state can be completed. In this embodiment, the switching of the running state is switching from the sleep state to the running state. Further, data interaction with the memory can also be performed, so that the electronic device can work normally.
在一些实施方式中,由处理器通过目标总线向控制部件发送唤醒指令。In some embodiments, a wake-up command is sent by the processor to the control unit via the target bus.
应用本申请的一些实施例提供的运行状态切换方法,利用控制部件对复位信号进行中转,不由处理器直接控制复位信号。当处理器获取到唤醒信号后进行启动,该启动过程中可能出现IO抖动,由于处理器不直接控制内存对应的复位信号,因此不会造成内存被复位。在启动操作结束后,处理器生成唤醒指令,并将唤醒指令发送至控制部件,通知控制部件在本次状态切换时如何对内存对应的控制信号进行设置。由于从睡眠状态到正常工作状态时仍需利用进入睡眠状态之前存储在内存中的数据进行工作,因此向控制部件发送唤醒指令后,控制部件会保持复位信号不变,避免触发复位信号导致内存中的数据丢失,进而避免计算机的运行状态切换失败。通过利用控制部件将处理器和内存的复位信号隔离,控制部件起到了过滤IO抖动的作用,可以避免因处理器IO抖动造成运行状态切换失败,解决了相关技术容易出现运行状态切换失败的问题。By applying the operating state switching method provided by some embodiments of the present application, the reset signal is relayed by the control component, and the reset signal is not directly controlled by the processor. When the processor starts after obtaining the wake-up signal, IO jitter may occur during the startup process. Since the processor does not directly control the reset signal corresponding to the memory, the memory will not be reset. After the start-up operation is completed, the processor generates a wake-up command, and sends the wake-up command to the control component, informing the control component how to set the control signal corresponding to the memory during this state switching. Since it is still necessary to use the data stored in the memory before entering the sleep state to work from the sleep state to the normal working state, after sending a wake-up command to the control unit, the control unit will keep the reset signal unchanged, so as to avoid triggering the reset signal and causing the memory data loss, thereby avoiding the failure of the computer's operating state switching. By using the control part to isolate the reset signal of the processor and the memory, the control part plays the role of filtering IO jitter, which can avoid the failure of operating state switching caused by the IO jitter of the processor, and solve the problem that the related technology is prone to failure of operating state switching.
基于上述实施例,在将电子设备从S1、S2或S3状态切换到S0状态之前,需要先将其从S0状态切换至S1、S2或S3状态。因此在获取到唤醒信号之前,该方法还可以包括:Based on the above embodiment, before switching the electronic device from the S1, S2 or S3 state to the S0 state, it needs to be switched from the S0 state to the S1, S2 or S3 state first. Therefore, before acquiring the wake-up signal, the method may further include:
步骤21:获取睡眠信号并生成睡眠指令;及/或Step 21: Acquire a sleep signal and generate a sleep instruction; and/or
步骤22:通过目标总线向控制部件发送睡眠指令,使得控制部件保持复位信号不变。Step 22: Send a sleep command to the control unit through the target bus, so that the control unit keeps the reset signal unchanged.
在本实施例中,睡眠信号用于指示进入S1、S2或S3状态,其具体获取方式本实施例不做限定,例如可以与唤醒信号的获取方式相同。在获取睡眠信号后,生成对应的睡眠指令,并通过目标总线向控制部件发送睡眠指令,以便控制部件对内存对应的控制信号进行设置。可以理解的是,由于电子设备并没有进入关机状态(即S5状态),因此控制部件无论怎样设置内存对应的控制信号,都会保持复位信号不变。In this embodiment, the sleep signal is used to indicate entering the S1, S2 or S3 state, and the specific acquisition method thereof is not limited in this embodiment, for example, the acquisition method may be the same as that of the wake-up signal. After acquiring the sleep signal, a corresponding sleep command is generated, and the sleep command is sent to the control unit through the target bus, so that the control unit sets the control signal corresponding to the memory. It can be understood that since the electronic device has not entered the shutdown state (ie, the S5 state), no matter how the control component sets the control signal corresponding to the memory, the reset signal will remain unchanged.
在一些实施方式中,由处理器获取睡眠信号,并由处理器在获取睡眠信号后生成睡眠指令。在一些实施方式中,由处理器通过目标总线向控制部件发送睡眠指令。In some implementations, the sleep signal is obtained by the processor, and the sleep instruction is generated by the processor after obtaining the sleep signal. In some implementations, a sleep instruction is sent by the processor to the control unit over the target bus.
基于上述实施例,在另一种情况中,可以在电子设备从S5状态切换为S0状态时对复位信号进行调节,以便使得电子设备正常开机。在一些实施方式中,该方法还可以包括:Based on the above embodiment, in another case, the reset signal may be adjusted when the electronic device is switched from the S5 state to the S0 state, so as to enable the electronic device to be powered on normally. In some embodiments, the method can also include:
步骤31:获取开机信号并执行启动操作;及/或Step 31: Obtain a power-on signal and perform a boot-up operation; and/or
步骤32:在启动操作结束后,生成开机指令;及/或Step 32: After the start-up operation is completed, generate a boot command; and/or
步骤33:通过目标总线向控制部件发送开机指令,使得控制部件调节复位信号。Step 33: Send a power-on command to the control unit through the target bus, so that the control unit adjusts the reset signal.
开机信号的具体检测方式与唤醒信号或睡眠信号的获取方式类似,本实施例在此不做赘述。在检测到开机信号后,执行启动操作,启动操作的具体过程不做限定。在启动操作结束后,生成开机指令并将其发送给控制部件。由于电子设备开机时需要使得内存空白,因此控制部件在获取到开机指令后,可以调节复位信号,以便内存进行复位。本实施例并不限定控制部件调节复位信号的具体方式,例如,在一些实施方式中,通过目标总线向控制部件发送开机指令,以便控制部件调节复位信号的步骤可以包括:The specific detection method of the power-on signal is similar to the acquisition method of the wake-up signal or the sleep signal, which is not repeated in this embodiment. After the power-on signal is detected, a start-up operation is performed, and the specific process of the start-up operation is not limited. After the start-up operation is completed, a power-on command is generated and sent to the control unit. Since the memory needs to be left blank when the electronic device is powered on, the control component can adjust the reset signal after obtaining the boot command, so that the memory can be reset. This embodiment does not limit the specific manner in which the control unit adjusts the reset signal. For example, in some embodiments, sending a power-on command to the control unit through the target bus so that the control unit adjusts the reset signal may include:
步骤41:通过目标总线向控制部件发送开机指令,使得控制部件向复位信号对应的目标端口发送低电平冲击。Step 41: Send a power-on command to the control unit through the target bus, so that the control unit sends a low-level shock to the target port corresponding to the reset signal.
在本实施例中,可以通过向复位信号对应的端口,即目标端口发送低电平冲击的方式,将DDRRESET信号短暂设置为低电平状态。内存在检测到复位信号为低电平信号后即可进行初始化操作,完成内存的初始化。In this embodiment, the DDRRESET signal can be temporarily set to a low-level state by sending a low-level shock to the port corresponding to the reset signal, that is, the target port. After detecting that the reset signal is a low-level signal, the memory can perform an initialization operation to complete the initialization of the memory.
在一些实施方式中,由处理器执行启动操作。在一些实施方式中,由处理器生成开机指令。在一些实施方式中,由处理器通过目标总线向控制部件发送开机指令。In some implementations, the start-up operation is performed by a processor. In some implementations, the power-on instruction is generated by the processor. In some implementations, a power-on command is sent by the processor to the control unit via the target bus.
请参考图3,图3为本申请的一些实施例提供的一种运行状态切换系统的结构示意图,该运行状态切换系统中处理器201通过控制部件204与内存203相连,控制部件本身由S3电源205供电。S3电源205即为在S3状态下仍向外供电的电源。请参考图4,图4为本申请的一些实施例提供的一种运行状态切换信号波形图。其中SLP_S3#为S3状态标志信号,其处于低电平时表示电子设备进入S3状态。SLP_S4#和SLP_S5#分别为S4状态标志信号和S5状态标志信号,MC0&MC1_DDR_DIMM_RESET_N即为DDRRESET信号,低电平为使能状态,即在低电平时,内存会进行初始化,即复位。BIOS Command为BIOS控制信号,MC0_CKE和MC1_CKE信号分别为两条内存对应的CKE信号。当电子设备从S0状态转换为S3状态时,SLP_S3#变化为低电平状态,此时,处理器生成睡眠指令,并将其发给控制部件204。控制部件204在获取到睡眠指令后对CKE信号进行设置,将其设置为低电平状态,保证内存203中数据的安全性,同时保证MC0&MC1_DDR_DIMM_RESET_N信号为高电平状态。在电子设备从S3状态转换为S0状态时,处理器获取到唤醒信号,并执行启动操作,在启动过程中,由于控制部件未收到唤醒指令,因此不会进行内存的控制信号的设置。在处理器生成唤醒指令(BIOS Command为valid状态)后,将其发送给控制部件,控制部件在接收到唤醒指令后,将CKE信号恢复为高电平,以便处理器与内存进行数据交互。在该过程中,同样可以保持MC0&MC1_DDR_DIMM_RESET_N信号为高电平状态。本申请的一些实施例的方法可以解决处理器启动时的IO抖动造成电子设备的运行状态切换失败的问题。Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of an operating state switching system provided by some embodiments of the present application. In the operating state switching system, the processor 201 is connected to the memory 203 through the control unit 204, and the control unit itself is powered by the S3 power supply. 205 powered. The S3 power supply 205 is a power supply that still supplies power to the outside in the S3 state. Please refer to FIG. 4 , FIG. 4 is a waveform diagram of an operating state switching signal provided by some embodiments of the present application. SLP_S3# is the S3 state flag signal, and when it is at a low level, it indicates that the electronic device enters the S3 state. SLP_S4# and SLP_S5# are the S4 state flag signal and the S5 state flag signal respectively, MC0&MC1_DDR_DIMM_RESET_N is the DDRRESET signal, and the low level is the enable state, that is, when the low level is low, the memory will be initialized, that is, reset. BIOS Command is the BIOS control signal, and the MC0_CKE and MC1_CKE signals are the CKE signals corresponding to the two memories respectively. When the electronic device transitions from the S0 state to the S3 state, SLP_S3# changes to a low level state, and at this time, the processor generates a sleep command and sends it to the control unit 204 . After acquiring the sleep instruction, the control unit 204 sets the CKE signal to a low level state to ensure data security in the memory 203 and to ensure that the MC0 & MC1_DDR_DIMM_RESET_N signals are at a high level state. When the electronic device transitions from the S3 state to the S0 state, the processor obtains the wake-up signal and executes the start-up operation. During the start-up process, since the control unit does not receive the wake-up command, the memory control signal will not be set. After the processor generates a wake-up command (the BIOS Command is in a valid state), it sends it to the control unit. After the control unit receives the wake-up command, it restores the CKE signal to a high level, so that the processor and the memory can exchange data. During this process, the MC0&MC1_DDR_DIMM_RESET_N signals can also be kept at a high level. The methods of some embodiments of the present application can solve the problem that the switching of the operating state of the electronic device fails due to the IO jitter when the processor is started.
下面对本申请实施例提供的运行状态切换装置进行介绍,下文描述的运行状态切换装置与上文描述的运行状态切换方法可相互对应参照。The following describes the operating state switching device provided by the embodiments of the present application. The operating state switching device described below and the operating state switching method described above may refer to each other correspondingly.
请参考图5,图5为本申请的一些实施例提供的一种运行状态切换装置的结构示意图,包括:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an operating state switching apparatus provided by some embodiments of the present application, including:
获取模块110,用于在获取到唤醒信号后执行启动操作;an acquisition module 110, configured to perform a startup operation after acquiring the wake-up signal;
指令生成模块120,用于在启动操作结束后,生成唤醒指令;以及an instruction generation module 120 for generating a wake-up instruction after the start-up operation is completed; and
信号保持模块130,用于通过目标总线向控制部件发送唤醒指令,使得控制部件保持内存对应的复位信号不变。The signal holding module 130 is configured to send a wake-up command to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
在一些实施方式中,该装置还包括:In some embodiments, the apparatus further includes:
睡眠指令生成模块,用于获取睡眠信号后,生成睡眠指令;以及a sleep instruction generation module, configured to generate a sleep instruction after acquiring the sleep signal; and
睡眠指令发送模块,用于通过目标总线向控制部件发送睡眠指令,使得控制部件保持复位信号不变。The sleep instruction sending module is used for sending the sleep instruction to the control unit through the target bus, so that the control unit keeps the reset signal unchanged.
在一些实施方式中,指令生成模块120包括生成单元,用于生成时钟使能信号设置指令,并利用时钟使能信号设置指令生成唤醒指令。In some embodiments, the instruction generating module 120 includes a generating unit for generating a clock enable signal setting instruction, and generating a wake-up instruction using the clock enable signal setting instruction.
在一些实施方式中,信号保持模块130包括单片机控制单元,用于通过目标总线向单片机发送唤醒指令,使得单片机保持复位信号不变。In some embodiments, the signal holding module 130 includes a microcontroller control unit, configured to send a wake-up command to the microcontroller through the target bus, so that the microcontroller keeps the reset signal unchanged.
在一些实施方式中,该装置还包括:In some embodiments, the apparatus further includes:
启动模块,用于在检测到开机信号后执行启动操作;The startup module is used to perform the startup operation after detecting the startup signal;
开机指令生成模块,用于在启动操作结束后,生成开机指令;以及a power-on instruction generation module, used for generating a power-on instruction after the start-up operation is completed; and
开机指令发送模块,用于通过目标总线向控制部件发送开机指令,使得控制部件调节复位信号。The power-on command sending module is used for sending a power-on command to the control unit through the target bus, so that the control unit adjusts the reset signal.
在一些实施方式中,开机指令发送模块包括低电平冲击单元,用于通过目标总线向控制部件发送开机指令,使得控制部件向复位信号对应的目标端口发送低电平冲击。In some embodiments, the power-on command sending module includes a low-level shock unit, configured to send a power-on command to the control component through the target bus, so that the control component sends a low-level shock to the target port corresponding to the reset signal.
在一些实施方式中,该装置还包括数据交互模块,用于与内存进行数据交互。In some embodiments, the apparatus further includes a data interaction module for performing data interaction with the memory.
下面对本申请实施例提供的电子设备进行介绍,下文描述的电子设备与上文描述的运行状态切换方法可相互对应参照。The electronic device provided by the embodiments of the present application will be introduced below, and the electronic device described below and the operating state switching method described above may refer to each other correspondingly.
请参考图6,图6为本申请的一些实施例提供的一种电子设备的结构示意图。其中电子设备100可以包括处理器101和存储器102,还可以进一步包括多媒体组件103、信息输入/信息输出(I/O)接口104以及通信组件105中的一种或多种。Please refer to FIG. 6 , which is a schematic structural diagram of an electronic device according to some embodiments of the present application. The electronic device 100 may include a processor 101 and a memory 102 , and may further include one or more of a multimedia component 103 , an information input/information output (I/O) interface 104 and a communication component 105 .
其中,处理器101用于控制电子设备100的整体操作,以完成上述的运行状态切换方法中的全部或部分步骤;存储器102用于存储各种类型的数据以支持在电子设备100的操作,这些数据例如可以包括用于在该电子设备100上操作的任何应用程序或方法的指令,以及应用程序相关的数据。该存储器102可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,SRAM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、只读存储器(Read-Only Memory,ROM)、磁存储器、快闪存储器、磁盘或光盘中的一种或多种。Wherein, the processor 101 is used to control the overall operation of the electronic device 100 to complete all or part of the steps in the above-mentioned operating state switching method; the memory 102 is used to store various types of data to support the operation of the electronic device 100, these Data may include, for example, instructions for any application or method to operate on the electronic device 100, as well as application-related data. The memory 102 may be implemented by any type of volatile or non-volatile memory device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory) Erasable Programmable Read-Only Memory, EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read- One or more of Only Memory, ROM), magnetic memory, flash memory, magnetic disk or optical disk.
多媒体组件103可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器102或通过通信组件105发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口104为处理器101和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件105用于电子设备100与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件105可以包括:Wi-Fi部件,蓝牙部件,NFC部件。 Multimedia components 103 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 102 or transmitted through the communication component 105 . The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 104 provides an interface between the processor 101 and other interface modules, and the above-mentioned other interface modules may be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons. The communication component 105 is used for wired or wireless communication between the electronic device 100 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC for short), 2G, 3G or 4G, or one or a combination of them, so the corresponding communication component 105 may include: Wi-Fi parts, Bluetooth parts, NFC parts.
电子设备100可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述实施例给出的运行状态切换方法。The electronic device 100 may be implemented by one or more Application Specific Integrated Circuit (ASIC for short), Digital Signal Processor (DSP for short), Digital Signal Processing Device (DSPD for short), Programmable logic device (Programmable Logic Device, PLD for short), Field Programmable Gate Array (Field Programmable Gate Array, FPGA for short), controller, microcontroller, microprocessor or other electronic components are implemented for implementing the above embodiments The given operation state switching method.
下面对本申请的一些实施例提供的计算机可读存储介质进行介绍,下文描述的计算机可读存储介质与上文描述的运行状态切换方法可相互对应参照。The following describes the computer-readable storage medium provided by some embodiments of the present application, and the computer-readable storage medium described below and the operating state switching method described above may refer to each other correspondingly.
本申请还提供一种计算机可读存储介质,例如是非易失性计算机可读存储介质,计算机可读存储介质上存储有计算机可读指令,计算机可读指令被处理器执行时实现上述的运行状态切换方法的步骤。The present application also provides a computer-readable storage medium, such as a non-volatile computer-readable storage medium, where computer-readable instructions are stored on the computer-readable storage medium, and when the computer-readable instructions are executed by a processor, the above-mentioned operating state is realized The steps to switch the method.
该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The computer-readable storage medium may include: a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc. that can store program codes medium.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments may be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method.
本领域技术人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应该认为超出本申请的范围。Those skilled in the art may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the hardware and software In the above description, the components and steps of each example have been generally described according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different approaches to implement the described functionality for each particular application, but such implementations should not be considered beyond the scope of this application.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in conjunction with the embodiments disclosed herein may be directly implemented in hardware, a software module executed by a processor, or a combination of the two. A software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other in the technical field. in any other known form of storage medium.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系属于仅仅用来将一个实体或者操作与另一个实体或者操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语包括、包含或者其他任何变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。Finally, it should also be noted that, in this context, relationships such as first and second, etc., are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Furthermore, the terms including, comprising, or any other variation are intended to cover non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or Yes also includes elements inherent to such a process, method, article or apparatus.
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The principles and implementations of the present application are described herein by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. There will be changes in the specific implementation and application scope. To sum up, the content of this specification should not be construed as a limitation to the application.

Claims (10)

  1. 一种运行状态切换方法,包括:A running state switching method, comprising:
    获取唤醒信号并执行CPU启动操作;Get the wake-up signal and perform the CPU startup operation;
    在所述启动操作结束后,生成唤醒指令;以及after the start-up operation is complete, generating a wake-up instruction; and
    通过目标总线向控制部件发送所述唤醒指令,使得所述控制部件对内存发出所述内存唤醒所需的控制信号,其中所述控制部件在收到所述目标总线的所述唤醒指令前,保持所述内存睡眠所需的控制信号。Send the wake-up command to the control unit through the target bus, so that the control unit sends a control signal required for the memory wake-up to the memory, wherein the control unit keeps the wake-up command from the target bus before receiving the wake-up command The control signal required for the memory sleep.
  2. 根据权利要求1所述的运行状态切换方法,在处理器获取到所述唤醒信号之前,还包括:The operating state switching method according to claim 1, before the processor acquires the wake-up signal, further comprising:
    获取睡眠信号并生成睡眠指令;以及acquire sleep signals and generate sleep instructions; and
    通过所述目标总线向所述控制部件发送所述睡眠指令,使得所述控制部件保持所述复位信号不变。The sleep command is sent to the control unit through the target bus, so that the control unit keeps the reset signal unchanged.
  3. 根据权利要求1或2所述的运行状态切换方法,所述生成唤醒指令,包括:The operating state switching method according to claim 1 or 2, wherein the generating a wake-up instruction comprises:
    生成时钟使能信号设置指令,并利用所述时钟使能信号设置指令生成所述唤醒指令。A clock enable signal setting instruction is generated, and the wake-up instruction is generated using the clock enable signal setting instruction.
  4. 根据权利要求1至3任一项所述的运行状态切换方法,所述通过目标总线向控制部件发送所述唤醒指令,使得所述控制部件保持复位信号不变,包括:The operating state switching method according to any one of claims 1 to 3, wherein the sending the wake-up command to the control unit through the target bus so that the control unit keeps the reset signal unchanged, comprising:
    通过目标总线向单片机发送所述唤醒指令,使得所述单片机保持所述复位信号不变。The wake-up command is sent to the single-chip microcomputer through the target bus, so that the single-chip computer keeps the reset signal unchanged.
  5. 根据权利要求1至4任一项所述的运行状态切换方法,还包括:The operating state switching method according to any one of claims 1 to 4, further comprising:
    获取开机信号并执行所述CPU启动操作;obtaining a power-on signal and executing the CPU start-up operation;
    在所述启动操作结束后,生成开机指令;After the start-up operation is completed, a boot-up instruction is generated;
    通过所述目标总线向所述控制部件发送所述开机指令,使得所述控制部件调节所述复位信号。The power-on command is sent to the control unit through the target bus, so that the control unit adjusts the reset signal.
  6. 根据权利要求5所述的运行状态切换方法,所述通过所述目标总线向所述控制部件发送所述开机指令,以便所述控制部件调节所述复位信号,包括:The operating state switching method according to claim 5, wherein the sending the power-on command to the control component through the target bus, so that the control component adjusts the reset signal, comprises:
    通过所述目标总线向所述控制部件发送所述开机指令,使得所述控制部件向所述复位信号对应的目标端口发送低电平冲击。The power-on command is sent to the control unit through the target bus, so that the control unit sends a low-level shock to the target port corresponding to the reset signal.
  7. 根据权利要求1至6任一所述的运行状态切换方法,在通过目标总线向控制部件发送所述唤醒指令之后,还包括:The operating state switching method according to any one of claims 1 to 6, after sending the wake-up command to the control component through the target bus, further comprising:
    与所述内存进行数据交互。Data interaction with the memory.
  8. 一种运行状态切换装置,包括:An operating state switching device, comprising:
    获取模块,用于在获取到唤醒信号后执行启动操作;The acquisition module is used to perform the startup operation after acquiring the wake-up signal;
    指令生成模块,用于在所述启动操作结束后,生成唤醒指令;以及an instruction generation module for generating a wake-up instruction after the start-up operation ends; and
    信号保持模块,用于通过目标总线向控制部件发送所述唤醒指令,使得所述控制部件保持内存对应的复位信号不变。The signal holding module is configured to send the wake-up command to the control unit through the target bus, so that the control unit keeps the reset signal corresponding to the memory unchanged.
  9. 一种电子设备,包括:An electronic device comprising:
    存储器,用于保存计算机可读指令;以及memory for storing computer readable instructions; and
    处理器,用于执行所述计算机可读指令,实现如权利要求1至7任一项所述的运行状态切换方法。The processor is configured to execute the computer-readable instructions to implement the operating state switching method according to any one of claims 1 to 7.
  10. 一种非易失性计算机可读存储介质,存储有计算机可读指令,其中,所述计算机可读指令被处理器执行时实现如权利要求1至7任一项所述的运行状态切换方法。A non-volatile computer-readable storage medium storing computer-readable instructions, wherein when the computer-readable instructions are executed by a processor, the operating state switching method according to any one of claims 1 to 7 is implemented.
PCT/CN2021/122291 2020-12-11 2021-09-30 Operating-state switching method and apparatus, and electronic device and storage medium WO2022121475A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011445720.0 2020-12-11
CN202011445720.0A CN112506576A (en) 2020-12-11 2020-12-11 Operation state switching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022121475A1 true WO2022121475A1 (en) 2022-06-16

Family

ID=74971308

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122291 WO2022121475A1 (en) 2020-12-11 2021-09-30 Operating-state switching method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN112506576A (en)
WO (1) WO2022121475A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506576A (en) * 2020-12-11 2021-03-16 浪潮电子信息产业股份有限公司 Operation state switching method and device, electronic equipment and storage medium
CN113177063B (en) * 2021-04-29 2023-04-07 山东英信计算机技术有限公司 Thermal reset method and related device of PCI bus equipment
CN115118534B (en) * 2022-06-07 2023-11-17 合肥移瑞通信技术有限公司 Low-power-consumption state control method, device, terminal and storage medium of MBB equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014677A1 (en) * 1999-06-28 2003-01-16 Apple Computer, Inc. Apparatus and method for awakening bus circuitry from a low power state
CN102759981A (en) * 2011-04-27 2012-10-31 华硕电脑股份有限公司 Computer system and sleep control method thereof
CN105302548A (en) * 2015-09-24 2016-02-03 深圳Tcl数字技术有限公司 Android device standby and waking-up method and apparatus
CN105608023A (en) * 2014-10-29 2016-05-25 梅特勒-托利多(常州)测量技术有限公司 Method and system for protecting DRAM stored data of embedded system software
CN109308195A (en) * 2018-08-22 2019-02-05 青岛海信电器股份有限公司 Starting method, embedded device and the computer storage medium of embedded device
CN112506576A (en) * 2020-12-11 2021-03-16 浪潮电子信息产业股份有限公司 Operation state switching method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101581962B (en) * 2009-06-19 2012-11-14 北京红旗胜利科技发展有限责任公司 Method for reducing CPU power consumption and CPU
CN103984543A (en) * 2014-04-24 2014-08-13 浪潮电子信息产业股份有限公司 Method for implementing standby, hibernation and wake-up on domestic FeiTeng processor
CN206388163U (en) * 2017-01-16 2017-08-08 北京疯景科技有限公司 Internal memory reset control circuit and electronic equipment
CN109426525B (en) * 2017-08-18 2020-12-08 华为技术有限公司 Method and device for waking up sleep state of computer
CN109739563B (en) * 2018-12-29 2022-04-22 龙芯中科技术股份有限公司 Terminal control method, device, system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014677A1 (en) * 1999-06-28 2003-01-16 Apple Computer, Inc. Apparatus and method for awakening bus circuitry from a low power state
CN102759981A (en) * 2011-04-27 2012-10-31 华硕电脑股份有限公司 Computer system and sleep control method thereof
CN105608023A (en) * 2014-10-29 2016-05-25 梅特勒-托利多(常州)测量技术有限公司 Method and system for protecting DRAM stored data of embedded system software
CN105302548A (en) * 2015-09-24 2016-02-03 深圳Tcl数字技术有限公司 Android device standby and waking-up method and apparatus
CN109308195A (en) * 2018-08-22 2019-02-05 青岛海信电器股份有限公司 Starting method, embedded device and the computer storage medium of embedded device
CN112506576A (en) * 2020-12-11 2021-03-16 浪潮电子信息产业股份有限公司 Operation state switching method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112506576A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
WO2022121475A1 (en) Operating-state switching method and apparatus, and electronic device and storage medium
EP2239647B1 (en) Motherboard with electronic device for reducing power consumption during sleep mode of computer motherboard
US6760850B1 (en) Method and apparatus executing power on self test code to enable a wakeup device for a computer system responsive to detecting an AC power source
TWI582578B (en) System on a chip with always-on processor
TWI528162B (en) Computer system and operating system switching method thereof
KR101518323B1 (en) Method and system for providing hybrid-shutdown and fast startup processes
TWI425337B (en) Method of over/under clocking applied to computer system
KR101805346B1 (en) System on a chip with always-on processor which reconfigures soc and supports memory-only communication mode
JP5340335B2 (en) Information processing device
JP2006120114A (en) Computer which has multifunctional power button and related method
US20170147363A1 (en) System and method for reducing hibernate and resume time
US20160041607A1 (en) System management controller
TWI485623B (en) Method for fast resuming computer system and computer system
TWI693513B (en) Server system and power saving method thereof
TWI437419B (en) Computer system and associated sleep control method
JP4846862B2 (en) Information processing apparatus and power saving control method
TW201624192A (en) Computer system, adaptable hibernation control module and control method thereof
TWI482090B (en) System capable of booting through a universal serial bus device and method thereof
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus
JP5378451B2 (en) Method and computer for reducing start-up reliability and POST time
CN108287670B (en) Method for protecting data during system shutdown and BMC
JP2010079572A (en) Information processor, external memory and control method
WO2018058717A1 (en) Non-volatile storage device, method, computer system, and standby or hibernate implementation method
TW541453B (en) Power saving device for computer and method thereof
TW201541354A (en) Electronic device and operating system switching method thereof

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: 21902183

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: 21902183

Country of ref document: EP

Kind code of ref document: A1