JP2018181248A - Information processing device and program - Google Patents

Information processing device and program Download PDF

Info

Publication number
JP2018181248A
JP2018181248A JP2017084488A JP2017084488A JP2018181248A JP 2018181248 A JP2018181248 A JP 2018181248A JP 2017084488 A JP2017084488 A JP 2017084488A JP 2017084488 A JP2017084488 A JP 2017084488A JP 2018181248 A JP2018181248 A JP 2018181248A
Authority
JP
Japan
Prior art keywords
power
supply
power supply
storage means
volatile storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017084488A
Other languages
Japanese (ja)
Inventor
友裕 増渕
Tomohiro Masubuchi
友裕 増渕
竹中 昌也
Masaya Takenaka
昌也 竹中
達央 三嶋
Tatsuo Mishima
達央 三嶋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2017084488A priority Critical patent/JP2018181248A/en
Publication of JP2018181248A publication Critical patent/JP2018181248A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PROBLEM TO BE SOLVED: To avoid the disappearance of information recorded in volatile storage means even if a power supply of an information processing device is stopped.SOLUTION: When a CPU 11 hangs, a user turns off a power supply switch to eliminate this state. Even though this off operation stops the supply of power from a power supply 4 to an SoC 10, power stored in capacitor 9 is supplied instead of the stop of the supply of the power. The CPU 11 collectively writes a log written in an SRAM 12 to store the log in an NVRAM 6 by transferring the log to the NVRAM through an SPI bus 21 while the power is supplied from the capacitor 9 when it is detected that power supply 1 is turned off.SELECTED DRAWING: Figure 2

Description

本発明は、情報処理装置及びプログラムに関する。   The present invention relates to an information processing apparatus and program.

従来から、メモリをパラレルインターフェースで接続することは一般的であった。集積回路に内蔵されているCPU(Central Processing Unit)からは、アドレスを指定したデータのただ1回の保存命令で不揮発性記憶装置にデータを書き込みできる。   Conventionally, it has been common to connect memories with a parallel interface. Data can be written from the CPU (Central Processing Unit) incorporated in the integrated circuit to the non-volatile storage device with a single storage instruction of the data designated by the address.

特開2017−10117号公報JP, 2017-10117, A

本発明は、揮発性記憶手段に情報が記憶されている場合に、情報処理装置の電源が停止されたとしても揮発性記憶手段に記録されている情報の消失を回避することを目的とする。   An object of the present invention is to avoid the loss of information recorded in volatile storage means, even when the power supply of the information processing apparatus is stopped, when information is stored in the volatile storage means.

本発明に係る情報処理装置は、情報を揮発性記憶手段に記録する記録手段と、電源が停止されると、制御部への電力の供給が停止される直前に猶予を持たせることによって前記制御部及び前記揮発性記憶手段への電力の供給の停止を遅延させる遅延手段と、前記遅延手段により電力の供給の停止が遅延されている間に、前記揮発性記憶手段に記録されている情報を不揮発性記憶手段に転送する転送手段と、を有することを特徴とする。   An information processing apparatus according to the present invention comprises: recording means for recording information in volatile storage means; and the control by giving a delay immediately before the supply of power to the control unit is stopped when the power is stopped. And means for delaying the stop of the supply of power to the volatile storage means, and the information recorded in the volatile storage means while the stop of the supply of power is delayed by the delay means And transfer means for transferring data to the non-volatile storage means.

また、蓄電手段を有し、前記遅延手段は、ユーザ操作により電源が停止されると、前記蓄電手段に蓄電されている電力を前記制御部に供給することを特徴とする。   Further, the power storage unit is provided, and the delay unit is characterized in that the power stored in the storage unit is supplied to the control unit when the power is stopped by a user operation.

また、前記遅延手段は、ユーザ操作により電源が停止された場合、電源から前記制御部への電力の供給が停止されるまでの時間を遅延させることを特徴とする。   Further, the delay means is characterized by delaying a time until the supply of power from the power supply to the control unit is stopped when the power supply is stopped by a user operation.

また、前記揮発性記憶手段は、集積回路内において前記制御部とパラレル接続されていることを特徴とする。   Further, the volatile memory means is connected in parallel with the control unit in an integrated circuit.

また、前記不揮発性記憶手段は、前記制御部を内蔵する集積回路とシリアルインターフェースで接続されていることを特徴とする。   Further, the non-volatile storage means is connected to an integrated circuit incorporating the control unit via a serial interface.

本発明に係るプログラムは、コンピュータを、情報を揮発性記憶手段に記録する記録手段、電源が停止されると、制御部への電力の供給が停止される直前に猶予を持たせることによって前記制御部及び前記揮発性記憶手段への電力の供給の停止を遅延させる遅延手段、前記遅延手段により電力の供給の停止が遅延されている間に、前記揮発性記憶手段に記録されている情報を不揮発性記憶手段に転送する転送手段、として機能させる。   A program according to the present invention includes the recording means for recording information in a volatile storage means, the control according to the present invention by giving a delay immediately before the supply of power to the control unit is stopped when the power is stopped. And means for delaying the stop of the supply of power to the volatile storage means, the information recorded in the volatile storage means being non-volatile while the stop of the supply of power is delayed by the delay means It functions as a transfer means for transferring data to the nature storage means.

請求項1に記載の発明によれば、情報処理装置の電源が停止されたとしても揮発性記憶手段に記録されている情報の消失を回避することができる。   According to the first aspect of the present invention, even if the power supply of the information processing apparatus is stopped, it is possible to avoid the loss of the information recorded in the volatile storage means.

請求項2に記載の発明によれば、蓄電手段に蓄電されている電力を使用して揮発性記憶手段に記録されている情報を不揮発性記憶手段に転送することができる。   According to the second aspect of the invention, the information stored in the volatile storage means can be transferred to the non-volatile storage means using the power stored in the storage means.

請求項3に記載の発明によれば、ユーザ操作により電源が停止された場合でも電力の供給の停止を遅延させることによって、電源から供給される電力を使用して揮発性記憶手段に記録されている情報を不揮発性記憶手段に転送することができる。   According to the third aspect of the present invention, even when the power is shut down by the user operation, the power supply supplied from the power supply is used to be recorded in the volatile storage means by delaying the stopping of the power supply. Information can be transferred to the non-volatile storage means.

請求項4に記載の発明によれば、集積回路内において制御部とパラレル接続されている揮発性記憶手段に記録されている情報の消失を回避することができる。   According to the fourth aspect of the present invention, it is possible to avoid the loss of the information recorded in the volatile storage means connected in parallel with the control unit in the integrated circuit.

請求項5に記載の発明によれば、揮発性記憶手段に記録されている情報を、集積回路とシリアルインターフェースで接続されている不揮発性記憶手段に転送することができる。   According to the fifth aspect of the present invention, the information recorded in the volatile storage means can be transferred to the non-volatile storage means connected with the integrated circuit by the serial interface.

請求項6に記載の発明によれば、情報処理装置の電源が停止されたとしても揮発性記憶手段に記録されている情報の消失を回避することができる。   According to the sixth aspect of the present invention, even if the power supply of the information processing apparatus is stopped, it is possible to avoid the loss of the information recorded in the volatile storage means.

本発明に係る情報処理装置の実施の形態1の構成の要部を示すブロック構成図である。It is a block block diagram which shows the principal part of a structure of Embodiment 1 of the information processing apparatus which concerns on this invention. 実施の形態1におけるSoCの概略的な内部構成図である。FIG. 2 is a schematic internal configuration diagram of SoC in the first embodiment. 実施の形態1における省電力モード移行時処理を示すフローチャートである。7 is a flowchart showing processing upon power saving mode transition in the first embodiment. 実施の形態1における省電力モードからの復帰処理を示すフローチャートである。5 is a flowchart showing return processing from a power saving mode according to the first embodiment. 実施の形態1における省電力モード移行時処理の途中でCPUがハングした場合におけるフローチャートである。FIG. 10 is a flowchart in the case where the CPU hangs up in the process of transition to the power saving mode according to the first embodiment. FIG. 実施の形態1においてCPUのリセット後に実行される処理を示すフローチャートである。5 is a flowchart showing processing executed after CPU is reset in the first embodiment. 実施の形態2における情報処理装置の構成の要部を示すブロック構成図である。FIG. 16 is a block diagram showing an essential part of a configuration of an information processing device in a second embodiment.

以下、図面に基づいて、本発明の好適な実施の形態について説明する。   Hereinafter, preferred embodiments of the present invention will be described based on the drawings.

実施の形態1.
図1は、本発明に係る情報処理装置の一実施の形態の構成の要部を示すブロック構成図である。図1には、電源1、電源スイッチ2及び基板3が示されている。電源1は、AC/DCコンバータを内蔵しており、商用電源(交流電源)を直流電源に変換する機能を有し、基板3に電力を供給する電源となる。電源スイッチ2は、本装置の電源スイッチであり、オフされると電源1及び基板3を含む装置全体への電力の供給が停止される。
Embodiment 1
FIG. 1 is a block diagram showing the main part of the configuration of an embodiment of the information processing apparatus according to the present invention. The power supply 1, the power switch 2 and the substrate 3 are shown in FIG. 1. The power source 1 incorporates an AC / DC converter, has a function of converting a commercial power source (AC power source) into a DC power source, and serves as a power source for supplying power to the substrate 3. The power switch 2 is a power switch of this device, and when it is turned off, the supply of power to the entire device including the power source 1 and the substrate 3 is stopped.

基板3には、電源4、システムメモリ5、NVRAM(Non−Volatile RAM)6、ROM(Read Only Memory)7、各種インターフェース(I/F)8、キャパシタ9及びSoC(System−on−a−Chip)10が搭載されている。電源4は、DC/DCコンバータを内蔵しており、電源1からの直流電圧を降圧する機能を有し、SoC10に電力を供給する電源となる。システムメモリ5は、OS(Operating System)が利用するメモリ領域である。本実施の形態では、OSとしてLinux(登録商標)が搭載されている場合を例にして説明するが、これに限定されるものではない。   The substrate 3 includes a power supply 4, a system memory 5, an NVRAM (Non-Volatile RAM) 6, a ROM (Read Only Memory) 7, various interfaces (I / F) 8, a capacitor 9 and a SoC (System-on-a-Chip). ) Is mounted. The power supply 4 incorporates a DC / DC converter, has a function of stepping down the DC voltage from the power supply 1, and serves as a power supply for supplying power to the SoC 10. The system memory 5 is a memory area used by an OS (Operating System). In the present embodiment, although a case where Linux (registered trademark) is installed as an OS is described as an example, the present invention is not limited to this.

NVRAM6は、自由に読み書きが可能なRAMのうち、電源スイッチ2をオフにしても内容が失われない不揮発性メモリである。本実施の形態では、NVRAM6を、一般的なSRAM(Static Random Access Memory)に電池(バックアップバッテリ)を組み合わせ、常に通電しておくようにして形成する。ROM7は、読み出し専用の記憶手段である。ところで、本実施の形態における情報処理装置(コンピュータ)は、複合機等の画像形成装置に搭載されている場合を想定している。従って、SoC10には、フューザーユニットやスキャナ等のデバイスも接続されているが、これらを接続するインターフェースは、本実施の形態の説明に用いないので、図1では各種インターフェース(I/F)8とまとめて図示している。   The NVRAM 6 is a non-volatile memory of which the content is not lost even if the power switch 2 is turned off among the RAMs which can be freely read and written. In the present embodiment, the NVRAM 6 is formed by combining a general static random access memory (SRAM) with a battery (backup battery) so that power is always supplied. The ROM 7 is a read only storage unit. By the way, it is assumed that the information processing apparatus (computer) in the present embodiment is installed in an image forming apparatus such as a multifunction peripheral. Therefore, although devices such as a fuser unit and a scanner are also connected to the SoC 10, the interface for connecting them is not used in the description of the present embodiment, so various interfaces (I / F) 8 and It is illustrated collectively.

キャパシタ9は、蓄電手段として設けられ、後述するSoC10の動作から明らかなようにSoC10のSRAM12に記録されている全ての情報のNVRAM6への転送完了に必要な電力を蓄積する。   The capacitor 9 is provided as a storage means, and accumulates the power necessary to complete the transfer of all the information recorded in the SRAM 12 of the SoC 10 to the NVRAM 6 as apparent from the operation of the SoC 10 described later.

図2は、本実施の形態におけるSoC10の概略的な内部構成図である。SoC10は、プロセッサコアをはじめ一般的なマイクロコントローラが持つような機能の他、応用目的の機能なども集積し、連携してシステムとして機能するよう設計されている集積回路製品である。本実施の形態では、集積回路としてSoC10を例にして説明するが、これに限定するものではなく、例えばASSP(Application Specific Standard Produce)などの集積回路を用いてもよい。   FIG. 2 is a schematic internal configuration diagram of the SoC 10 in the present embodiment. The SoC 10 is an integrated circuit product designed to integrate a function for application as well as a function that a general microcontroller has, such as a processor core, and to function as a system in cooperation. In the present embodiment, the SoC 10 is described as an example of the integrated circuit, but the present invention is not limited to this. For example, an integrated circuit such as Application Specific Standard Produce (ASSP) may be used.

SoC10は、CPU11、SRAM12、SPI(Serial Peripheral Interface)コントローラ13及び内部バス14を内蔵している。内部バス14は、相対的に高速なパラレルインターフェースバスであり、内蔵する構成要素11〜13に加え、システムメモリ5及び各種インターフェース8が接続される。CPU11は、各種プログラムを実行する。SRAM12は、読み書きが可能なRAMの一種で、一時的にデータを保持するための揮発性メモリである。SoC10に内蔵されるSRAM12は、NVRAM6と比べて情報を記録するための制御が容易である。   The SoC 10 incorporates a CPU 11, an SRAM 12, an SPI (Serial Peripheral Interface) controller 13, and an internal bus 14. The internal bus 14 is a relatively high-speed parallel interface bus, to which the system memory 5 and various interfaces 8 are connected in addition to the built-in components 11 to 13. The CPU 11 executes various programs. The SRAM 12 is a type of readable and writable RAM, and is a volatile memory for temporarily retaining data. The SRAM 12 built in the SoC 10 is easier to control than the NVRAM 6 for recording information.

SPIコントローラ13は、本実施の形態の場合、NVRAM6及びROM7を接続するSPIバス21のコントローラである。SPIバス21は、コンピュータ内部で使われるデバイス同士を接続するバスであり、パラレルインターフェース(パラレルバス)に比べて接続端子数が少なくてすむシリアルバスの一種であるが、シリアルインターフェースであることから相対的に低速である。   The SPI controller 13 is a controller of the SPI bus 21 connecting the NVRAM 6 and the ROM 7 in this embodiment. The SPI bus 21 is a bus that connects devices used in a computer and is a kind of serial bus that requires a smaller number of connection terminals than a parallel interface (parallel bus), but is a serial interface and is therefore relative. As slow as possible.

ところで、従来においては、情報処理装置に搭載されるSoC10とNVRAM6とは、パラレルインターフェースで接続されるのが一般的であった。従って、SoC10に内蔵されているCPU11からは、アドレスを指定したデータのただ1回の書込命令で不揮発性メモリにデータの書き込みができていた。   By the way, conventionally, the SoC 10 and the NVRAM 6 mounted on the information processing apparatus are generally connected by a parallel interface. Therefore, from the CPU 11 incorporated in the SoC 10, data can be written to the non-volatile memory with only one write instruction of the data specified by the address.

近年では、SoC10のインターフェースとしてパラレルインターフェースを採用する場合が減少し、相対的に低速とはなるもののデバイスの接続端子数削減のためSPI等のシリアルインターフェースを採用するのが主流となってきている。シリアルインターフェースは、CPU11からは、シリアルインターフェースのコントローラ(本実施の形態におけるSPIコントローラ13)に対する複数回のRead/Write命令による不揮発性メモリへのデータの書き込みが必要になる。   In recent years, the use of a parallel interface as the interface of the SoC 10 has decreased, and it has become mainstream to adopt a serial interface such as SPI in order to reduce the number of device connection terminals although it is relatively slow. The serial interface requires the CPU 11 to write data to the non-volatile memory by a plurality of read / write instructions to the controller (SPI controller 13 in the present embodiment) of the serial interface.

従って、情報のNVRAM6への保存は、パラレルインターフェースの場合は一命令で実現できたが、シリアルインターフェースの場合は、複数の命令を組み合わせる必要があるため情報の書込制御が複雑にならざるを得なかった。特に、通常の状態から低電力の状態への遷移中、あるいは低電力の状態から通常の状態への遷移中には、障害が発生した場合の解析用として画像形成装置に搭載されているデバイスに関するログをNVRAM6に書込保存する必要があるが、その書込制御が複雑になってしまう。   Therefore, storage of information in NVRAM 6 could be realized with one instruction in the case of a parallel interface, but in the case of a serial interface, writing control of information has to be complicated because it is necessary to combine a plurality of instructions. It was not. In particular, during transition from a normal state to a low power state or during a transition from a low power state to a normal state, it relates to a device mounted on an image forming apparatus for analysis in the case of failure. Although the log needs to be written and saved in the NVRAM 6, the write control becomes complicated.

このため、本実施の形態においては、パラレルバスである内部バス14を介してCPU11と接続されているSRAM12を有効利用することで情報のNVRAM6への書き込みを簡単に行えるようにした。ただ、SRAM12は、電力の供給が停止されると、記録しているログを失ってしまう。そこで、本実施の形態においては、CPU11及びSRAM12を内蔵するSoC10への電力の供給の停止が検知されると、SoC10への電力の供給が停止される直前に猶予を持たせることによって電力の供給の停止を遅延させる構成を持たせたことを特徴としている。具体的には、キャパシタ9に蓄積されている電力を有効利用して、SRAM12に記録されている情報をNVRAM6に転送して書込保存できるようにした。   Therefore, in the present embodiment, writing of information to the NVRAM 6 can be easily performed by effectively using the SRAM 12 connected to the CPU 11 via the internal bus 14 which is a parallel bus. However, the SRAM 12 loses the recorded log when the power supply is stopped. Therefore, in the present embodiment, when it is detected that the supply of power to SoC 10 incorporating CPU 11 and SRAM 12 is stopped, the supply of power can be made by giving a delay immediately before the supply of power to SoC 10 is stopped. It is characterized in that it has a configuration to delay the stop of the. Specifically, the power stored in the capacitor 9 is effectively used to transfer the information stored in the SRAM 12 to the NVRAM 6 so that the information can be written and saved.

次に、本実施の形態におけるSoC10の動作について説明する。   Next, the operation of the SoC 10 in the present embodiment will be described.

SoC10は、通常の状態としてユーザ操作を待機しているスタンバイモードで動作している。ユーザによる操作指示があると、そのユーザ操作指示に応じてコピーやスキャンなどの処理を実行する。そして、処理が終了すると指示の待機状態に戻る。なお、CPU11は、スタンバイモードにおいてプログラムを実行することで取り扱うデータを、NVRAM6に書き込むことで記録する。また、スタンバイモードで動作している間に、キャパシタ9には、少なくともSRAM12からNVRAM6へのデータ転送に必要な電力が蓄積される。   The SoC 10 operates in a standby mode waiting for a user operation as a normal state. When an operation instruction is given by the user, processing such as copying or scanning is executed according to the user operation instruction. When the process is completed, the process returns to the instruction standby state. The CPU 11 writes the data handled by executing the program in the standby mode by writing the data in the NVRAM 6. In addition, while operating in the standby mode, at least the power necessary for data transfer from SRAM 12 to NVRAM 6 is stored in capacitor 9.

スタンバイモードでの動作中に所定時間何も操作されなった場合、SoC10は、省電力モード(低電力の状態)に移行する。省電力モードでは、SoC10等への電力の供給を停止して電力消費を軽減するが、SoC10には電力が供給されなくなるので、CPU11は動作を停止し、SRAM12はデータを保持できなくなる。つまり、SRAM12に保持されているデータは消失する。また、通常時(スタンバイモードでの動作中)では、Linuxに搭載される機能を使用できるが、省電力モードに移行するタイミングでは、使用できる機能に制約があるので、情報を記録するための制御(排他制御)が複雑になる。この省電力モードへの移行時(遷移中)に実行される処理について図3に示すフローチャートを用いて説明する。   If no operation is performed for a predetermined time while operating in the standby mode, the SoC 10 transitions to the power saving mode (low power state). In the power saving mode, the supply of power to the SoC 10 or the like is stopped to reduce power consumption, but since the power is not supplied to the SoC 10, the CPU 11 stops its operation and the SRAM 12 can not hold data. That is, the data held in the SRAM 12 is lost. Also, during normal times (during operation in standby mode), the functions installed in Linux can be used, but at the timing of transition to power saving mode, there are restrictions on the functions that can be used, so control for recording information (Exclusive control) becomes complicated. The process executed at the time of transition to the power saving mode (during transition) will be described using the flowchart shown in FIG.

省電力モードへの移行時に実行される処理では、どの段階まで移行処理が済んだのかを把握しやすいように、1つの移行処理が終了する度に履歴(ログ)を記録する。そのために、CPU11は、省電力モードへ移行するための所定のプログラムの実行を開始すると、ログの記録先をNVRAM6からSRAM12に切り替える(ステップ101)。そして、以上の処理が終了すると、その処理内容が記述されたログをSRAM12に書き込む(ステップ102)。   In the process executed at the time of transition to the power saving mode, a history (log) is recorded each time one transition process is completed, so that it is easy to grasp to what stage the transition process has been completed. Therefore, when the CPU 11 starts executing a predetermined program for shifting to the power saving mode, the CPU 11 switches the log recording destination from the NVRAM 6 to the SRAM 12 (step 101). Then, when the above processing is completed, the log in which the processing content is described is written in the SRAM 12 (step 102).

その後、デバイス毎に当該デバイスの現在の状態等を収集し、その収集した情報をログとしてSRAM12に書き込む。すなわち、CPU11は、一のデバイスに関する情報を取得し、当該デバイスへの電力供給を停止する処理を含む移行処理を実施すると(ステップ103−1〜n)、その実施した移行処理に関するログをSRAM12に書き込む(ステップ104−1〜n)。ログとして記録される情報には、当該デバイスの電源オフの正常完了の旨や次に移行処理が実行されるデバイスを特定する情報等が含まれる。   Thereafter, the current state of the device is collected for each device, and the collected information is written to the SRAM 12 as a log. That is, when the CPU 11 executes the migration process including the process of stopping the power supply to the device by acquiring information on one device (steps 103-1 to n), the log on the implemented migration process is stored in the SRAM 12 Write (steps 104-1 to n). The information to be recorded as a log includes information indicating that the power-off of the device has been normally completed, and information specifying the device on which the migration process is to be performed next.

全てのデバイスに対し、上記移行処理とログの書き込みが終了すると、CPU11は、SRAM12に書き込まれたログを一括して、SPIバス21を介してNVRAM6に転送することで書込保存する(ステップ105)。パラレルインターフェースと異なり、SPIバス21を介するデータ転送の場合は、複数回のRead/Write命令が必要になるかもしれない。ただ、本実施の形態では、全てのデバイスを電源オフの状態にしており、マルチコアの場合、他のCPUも停止している状態である。したがって、排他制御を考慮する必要がないのでNVRAM6への書込制御を単純化できる。   When the migration processing and log writing are completed for all devices, the CPU 11 writes and saves the logs written in the SRAM 12 collectively by transferring them to the NVRAM 6 via the SPI bus 21 (step 105). ). Unlike the parallel interface, in the case of data transfer via the SPI bus 21, multiple read / write instructions may be required. However, in the present embodiment, all devices are in the power-off state, and in the case of a multi-core, the other CPUs are also in the stop state. Therefore, write control to the NVRAM 6 can be simplified because exclusive control does not have to be considered.

続いて、省電力モードからスタンバイモードに復帰する際に実行される復帰処理について図4に示すフローチャートを用いて説明する。   Subsequently, a return process executed when returning from the power saving mode to the standby mode will be described using the flowchart shown in FIG.

復帰処理では、基本的には省電力モードへの移行時処理とは逆の順序で処理を行うことで復帰させればよい。すなわち、CPU11は、スタンバイモードへ復帰するための所定のプログラムの実行を開始すると、復帰処理の実行が開始された旨のログをSRAM12に書き込む(ステップ111)。   In the return processing, basically, the processing may be performed in the reverse order to the processing at the time of transition to the power saving mode. That is, when the CPU 11 starts execution of a predetermined program for returning to the standby mode, it writes a log to the effect that the execution of the return processing is started in the SRAM 12 (step 111).

その後、CPU11は、デバイス毎に当該デバイスの電源をオンにしていくことで電力の供給を開始させるなどの復帰処理を実施すると(ステップ112−1〜n)、その実施した復帰処理に関するログをSRAM12に書き込む(ステップ113−1〜n)。   After that, when the CPU 11 executes recovery processing such as starting supply of power by turning on the power supply of the device for each device (steps 112-1 to n), the log regarding the implemented recovery processing is stored in the SRAM 12 (Step 113-1 to n).

全てのデバイスに対して上記復帰処理とログの書き込みが終了し、NVRAM6に電力が供給されることでログが記録できる状態になると、CPU11は、SRAM12に書き込まれたログを一括して、SPIバス21を介してNVRAM6に転送することで書込保存する(ステップ114)。そして、CPU11は、ログの記録先をSRAM12からNVRAM6に切り替える(ステップ115)。   When the above recovery processing and log writing are completed for all devices, and power can be supplied to the NVRAM 6 so that the log can be recorded, the CPU 11 collectively collects the logs written in the SRAM 12 into the SPI bus. The data is written and saved by transferring to the NVRAM 6 through 21 (step 114). Then, the CPU 11 switches the log recording destination from the SRAM 12 to the NVRAM 6 (step 115).

以上が省電力モードへの移行及び省電力モードからの復帰が正常に終了した場合であるが、ここで、省電力モードへの遷移中に不具合が発生した場合における処理について図5及び図6に示すフローチャートを用いて説明する。なお、図3と同じ処理には同じ符号を付け、説明を適宜省略する。   The above is the case where the transition to the power saving mode and the return from the power saving mode have ended normally, but here the processing in the case where a failure occurs during the transition to the power saving mode is shown in FIGS. It demonstrates using the flowchart shown. The same processes as in FIG. 3 are assigned the same reference numerals, and the description thereof will be omitted as appropriate.

まず、ログの記録先をSRAM12に切り替え(ステップ101)、その内容のログをSRAM12に書込保存する(ステップ102)。そして、各デバイスに対する省電力モードの移行処理及びログの書き込みを順番に行う(ステップ103−1〜,104−1〜)。その処理の過程において移行処理x(1≦x≦n)の実行時に何らかの不具合が発生したことでCPU11がハング(フリーズ)したとする(ステップ103−x)。   First, the log recording destination is switched to the SRAM 12 (step 101), and the log of the content is written and stored in the SRAM 12 (step 102). Then, transition processing of the power saving mode to each device and writing of the log are sequentially performed (steps 103-1 to 104-1). It is assumed that the CPU 11 hangs (freezes) due to the occurrence of a failure during execution of the transition processing x (1 ≦ x ≦ n) in the process of the processing (step 103-x).

CPU11がハングすると、このハングの状態を解消するために、ユーザは、電源スイッチ2をオフし、そしてオンすることで画像形成装置を再起動させ、画像形成装置の状態を回復させると考えられる。なお、従来であれば、このユーザによる電源スイッチ2のオフ操作により、SRAM12への電力の供給が停止することになる。つまり、SRAM12に保持されている情報は、NVRAM6に退避する間もなく失われてしまうことになる。   When the CPU 11 hangs up, the user is considered to turn off the power switch 2 and turn it on to restart the image forming apparatus and recover the state of the image forming apparatus in order to eliminate the state of the hang. In the conventional case, the power supply to the SRAM 12 is stopped by the user's operation of turning off the power switch 2. That is, the information held in the SRAM 12 will be lost soon after being saved in the NVRAM 6.

このユーザによる電源スイッチ2のオフ操作により(ステップ106)、電源1は基板3への電力の供給を停止する。これに伴い、基板3では、電源4がSoC10への電力の供給を停止する。その一方で、キャパシタ9は、電源4からの電力の供給が停止することによって放電を開始する。これにより、キャパシタ9が電源4の代わりに電力をSoC10に供給することになる。   When the user turns off the power switch 2 (step 106), the power supply 1 stops the supply of power to the substrate 3. Along with this, in the substrate 3, the power supply 4 stops the supply of power to the SoC 10. On the other hand, capacitor 9 starts discharging when the supply of power from power supply 4 is stopped. As a result, the capacitor 9 supplies power to the SoC 10 instead of the power supply 4.

ところで、電源1がオフされると、フリーズ状態のCPU11はリセットされる。リセット後、CPU11は、電源1がオフされたことを検知可能である。従って、電源1がオフされたことを検知すると(ステップ121でY)、CPU11は、SRAM12に書き込まれたログを一括して、SPIバス21を介してNVRAM6に転送することで書込保存する(ステップ105)。なお、CPU11は、ログのNVRAM6へ書き込みに続けて所定のエラー処理等を実行するが、本実施の形態の要旨ではないので説明を省略する。その後、SoC10は、キャパシタ9から十分な電力の供給が受けられなくなると停止する。一方、CPU11がリセットされたのが電源スイッチ2のオフ操作によるものでない場合(ステップ121でN)、CPU11は、通常の起動処理を実行する(ステップ122)。   By the way, when the power supply 1 is turned off, the CPU 11 in the freeze state is reset. After reset, the CPU 11 can detect that the power supply 1 is turned off. Therefore, when detecting that the power supply 1 is turned off (Y in step 121), the CPU 11 writes and saves the logs written in the SRAM 12 collectively by transferring them to the NVRAM 6 through the SPI bus 21 ( Step 105). Although the CPU 11 executes a predetermined error process and the like following the writing of the log into the NVRAM 6, the description is omitted because it is not the gist of the present embodiment. After that, the SoC 10 stops when sufficient power supply from the capacitor 9 can not be received. On the other hand, when the CPU 11 is not reset due to the turning-off operation of the power switch 2 (N in step 121), the CPU 11 executes a normal start process (step 122).

ここでは、図3に示した最後の移行処理(ステップ103−n)に対応するログの書き込み処理(ステップ104−n)まで実行できておらず、移行処理x−1までのログがNVRAM6に書き込まれることになる。これにより、NVRAM6に書き込まれたログを解析することで、移行処理xの実行時に不具合が発生したことが特定でき、ログの内容を解析することによって不具合発生の原因を特定できる場合もある。   Here, the log writing process (step 104-n) corresponding to the last migration process (step 103-n) shown in FIG. 3 can not be executed until the log up to the migration process x-1 is written to NVRAM 6 Will be As a result, by analyzing the log written in the NVRAM 6, it may be possible to identify that a failure has occurred at the time of execution of the migration processing x, and it may be possible to identify the cause of the failure by analyzing the contents of the log.

本実施の形態によれば、以上説明したようにSoC10に内蔵されているSRAM12を有効利用することによってNVRAM6へのログの書込制御を単純化できる。また、キャパシタ9に蓄積されている電力を有効利用することによって、電源スイッチ2のオフ操作に伴いSoC10への電力の供給を即座に停止させるのではなく、電力の供給が停止される直前に猶予を持たせることができるようにした。これにより、NVRAM6にログを確実に残すことが可能となる。   According to the present embodiment, the write control of the log to the NVRAM 6 can be simplified by effectively using the SRAM 12 built in the SoC 10 as described above. Further, by effectively using the power stored in capacitor 9, the power supply to SoC 10 is not immediately stopped with the turning-off operation of power switch 2, but the power supply is suspended immediately before the power supply is stopped. To be able to have This makes it possible to securely keep the log in the NVRAM 6.

なお、本実施の形態では、蓄電手段としてのキャパシタ9を基板3上に設けたが、基板3以外に設けたり、既存の蓄電手段を利用したりしてもよい。   In the present embodiment, the capacitor 9 as the storage means is provided on the substrate 3, but it may be provided other than the substrate 3 or an existing storage means may be used.

実施の形態2.
図7は、本実施の形態における情報処理装置の構成の要部を示すブロック構成図である。なお、図1と同じ構成要素には、同じ符号を付け説明を省略する。本実施の形態における情報処理装置は、商用電源と電源1との間に設けられたリレー回路22を有している、また、電源1には、実施の形態1と同様にAC−DCコンバータ23に加えて、切替部24が設けられている。切替部24は、電源スイッチ2のオンオフ操作に応じてリレー回路22のオンオフの切替制御を行う。本実施の形態では、実施の形態1におけるキャパシタ9に代えてリレー回路22及び切替部24を遅延手段として設けている。なお、SoC10の構成は、実施の形態1と同じ構成でよい。
Second Embodiment
FIG. 7 is a block diagram showing the main part of the configuration of the information processing apparatus in the present embodiment. The same components as in FIG. 1 are assigned the same reference numerals and descriptions thereof will be omitted. The information processing apparatus in the present embodiment has a relay circuit 22 provided between the commercial power supply and the power supply 1, and the power supply 1 includes the AC-DC converter 23 as in the first embodiment. In addition to, the switching unit 24 is provided. The switching unit 24 performs on / off switching control of the relay circuit 22 in response to the on / off operation of the power switch 2. In the present embodiment, in place of the capacitor 9 in the first embodiment, the relay circuit 22 and the switching unit 24 are provided as delay means. The configuration of SoC 10 may be the same as that of the first embodiment.

上記実施の形態1では、ユーザによる電源スイッチ2のオフ操作をトリガとし、キャパシタ9から電力の供給を受けてログのNVRAM6へのデータの書き込みを行うようにした。本実施の形態においてもユーザによる電源スイッチ2のオフ操作をトリガとする点で同様であるが、本実施の形態では、電源スイッチ2のオフ操作に応じて電源1からの電力の供給を即座に停止させるのではなく電源スイッチ2のオフ操作後所定時間遅延させた後に、電源1が電力の供給を停止するようにした。換言すると、電源スイッチ2のオフ操作から電源1が実際に電力の供給を停止するまでに猶予を持たせるようにした。ここで、「所定時間」というのは、ログのNVRAM6への転送処理を完了させるのに必要な時間以上の時間長のことをいう。   In the first embodiment, the user turns off the power switch 2 as a trigger to receive power supply from the capacitor 9 and write data to the NVRAM 6 of the log. This embodiment is the same in that the user turns off the power switch 2 as a trigger, but in this embodiment, the power supply from the power source 1 is immediately supplied according to the off operation of the power switch 2. The power supply 1 is configured to stop the supply of power after delaying for a predetermined time after the turning-off operation of the power supply switch 2 instead of stopping it. In other words, the power supply switch 2 has a delay from when the power switch 2 is turned off until the power supply 1 actually stops supplying power. Here, the "predetermined time" refers to a time length longer than the time required to complete the process of transferring the log to the NVRAM 6.

以下、本実施の形態における動作について説明するが、基本的には実施の形態1と同じでよい。図3及び図4を用いて説明した省電力モード移行時処理及び省電力モードからの復帰処理は同じでよいので説明を省略する。また、図5及び図6を用いて説明した省電力モード移行時処理の途中でCPUがハングした場合における処理フローも同じでよい。ただ、電源スイッチ2がオフ操作されたときの動作が異なる。なお、電源スイッチ2がオンのとき、切替部24は、リレー回路22が閉じた状態になるよう制御する。つまり、商用電源からの電力は、電源1に供給される状態にある。   Hereinafter, although the operation in the present embodiment will be described, it may be basically the same as the first embodiment. The power saving mode transition process described with reference to FIGS. 3 and 4 and the return process from the power saving mode may be the same, and thus the description thereof will be omitted. In addition, the same processing flow may be applied when the CPU hangs up during the process of transition to the power saving mode described with reference to FIGS. 5 and 6. However, the operation when the power switch 2 is turned off is different. When the power switch 2 is on, the switching unit 24 controls the relay circuit 22 to be in a closed state. That is, power from the commercial power source is in a state of being supplied to the power source 1.

ここで、ユーザにより電源スイッチ2がオフ操作されたことを検知すると(ステップ106)、切替部24は、CPU11をリセットする。リセットされたCPU11は、ユーザによるオフ操作を検知すると、SRAM12に書き込まれたログを一括して、SPIバス21を介してNVRAM6に転送することで書込保存する(ステップ105)。   Here, when it is detected that the power switch 2 has been turned off by the user (step 106), the switching unit 24 resets the CPU 11. When the reset CPU 11 detects an OFF operation by the user, the CPU 11 collectively transfers the logs written in the SRAM 12 to the NVRAM 6 via the SPI bus 21 to write and save (step 105).

切替部24は、ユーザによるオフ操作後所定時間が経過すると、タイムアップによりリレー回路22を開制御する。これにより、基板3への電力の供給は停止される。なお、リレー回路22が開制御される前に、NVRAM6へのログの転送は完了している。その後、ユーザにより電源スイッチ2がオン操作されると、切替部24は、リレー回路22を閉制御する。これにより、基板3への電力の供給が開始されOSが起動される。   The switching unit 24 controls the relay circuit 22 to open by time-up when a predetermined time has elapsed after the user performs an off operation. Thereby, the supply of power to the substrate 3 is stopped. The transfer of the log to the NVRAM 6 is completed before the relay circuit 22 is controlled to open. After that, when the power switch 2 is turned on by the user, the switching unit 24 controls the relay circuit 22 to close. Thereby, the supply of power to the substrate 3 is started and the OS is started.

以上説明したように、本実施の形態によれば、ユーザにより電源オフ操作されても、電源1から基板3に電力を所定時間供給させ、そして供給されている間にSRAM12に記録されているログをNVRAM6に転送できるようにした。これにより、NVRAM6にログを確実に残すことが可能となる。   As described above, according to the present embodiment, even when the power is turned off by the user, the power is supplied from the power source 1 to the substrate 3 for a predetermined time, and the log recorded in the SRAM 12 while being supplied Was able to be transferred to NVRAM6. This makes it possible to securely keep the log in the NVRAM 6.

各実施の形態において、SoC10への電力の供給の停止を遅延させる構成を示したが、これらの両方の構成を情報処理装置に持たせるようにしてもよい。   In each embodiment, the configuration is shown in which the stop of the supply of power to the SoC 10 is delayed, but both of these configurations may be provided to the information processing apparatus.

なお、本実施の形態においては、NVRAM6に書き込む情報としてログを例にしたが、ログに限定する必要はない。   In the present embodiment, a log is used as an example of the information to be written to the NVRAM 6, but the information need not be limited to the log.

また、本実施の形態においては、画像形成装置に内蔵されているコンピュータを例にして説明したが、これに限らず、PC(Personal Computer)をはじめ、様々な装置に内蔵されるコンピュータに適用することは可能である。   Further, although the computer incorporated in the image forming apparatus has been described as an example in the present embodiment, the present invention is not limited to this, and is applied to a computer incorporated in various devices such as PC (Personal Computer). It is possible.

1,4 電源、2 電源スイッチ、3 基板、5 システムメモリ、6 NVRAM、7 ROM、8 各種インターフェース(I/F)、10 SoC、11 CPU、12 SRAM、13 SPIコントローラ、14 内部バス、21 SPIバス、22 リレー回路、23 AC−DCコンバータ、24 切替部。
1,4 power supply, 2 power supply switch, 3 boards, 5 system memory, 6 NVRAM, 7 ROM, 8 various interfaces (I / F), 10 SoC, 11 CPU, 12 SRAM, 13 SPI controller, 14 internal bus, 21 SPI Bus, 22 relay circuit, 23 AC-DC converter, 24 switching unit.

Claims (6)

情報を揮発性記憶手段に記録する記録手段と、
電源が停止されると、制御部への電力の供給が停止される直前に猶予を持たせることによって前記制御部及び前記揮発性記憶手段への電力の供給の停止を遅延させる遅延手段と、
前記遅延手段により電力の供給の停止が遅延されている間に、前記揮発性記憶手段に記録されている情報を不揮発性記憶手段に転送する転送手段と、
を有することを特徴とする情報処理装置。
Recording means for recording information in volatile storage means;
Delay means for delaying the stop of the supply of power to the control unit and the volatile storage means by giving a delay immediately before the supply of power to the control unit is stopped when the power supply is stopped;
Transfer means for transferring the information recorded in the volatile storage means to the non-volatile storage means while the stop of the power supply is delayed by the delay means;
An information processing apparatus comprising:
蓄電手段を有し、
前記遅延手段は、ユーザ操作により電源が停止されると、前記蓄電手段に蓄電されている電力を前記制御部に供給することを特徴とする請求項1に記載の情報処理装置。
Have storage means,
The information processing apparatus according to claim 1, wherein the delay unit supplies the power stored in the storage unit to the control unit when power is stopped by a user operation.
前記遅延手段は、ユーザ操作により電源が停止された場合、電源から前記制御部への電力の供給が停止されるまでの時間を遅延させることを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the delay unit delays a time until the supply of power from the power supply to the control unit is stopped when the power supply is stopped by a user operation. 前記揮発性記憶手段は、集積回路内において前記制御部とパラレル接続されていることを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the volatile storage unit is connected in parallel with the control unit in an integrated circuit. 前記不揮発性記憶手段は、前記制御部を内蔵する集積回路とシリアルインターフェースで接続されていることを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the nonvolatile storage unit is connected to an integrated circuit including the control unit via a serial interface. コンピュータを、
情報を揮発性記憶手段に記録する記録手段、
電源が停止されると、制御部への電力の供給が停止される直前に猶予を持たせることによって前記制御部及び前記揮発性記憶手段への電力の供給の停止を遅延させる遅延手段、
前記遅延手段により電力の供給の停止が遅延されている間に、前記揮発性記憶手段に記録されている情報を不揮発性記憶手段に転送する転送手段、
として機能させるためのプログラム。
Computer,
Recording means for recording information in volatile storage means,
Delay means for delaying the stop of the supply of power to the control unit and the volatile storage means by giving a delay immediately before the supply of power to the control unit is stopped when the power supply is stopped;
Transfer means for transferring the information recorded in the volatile storage means to the non-volatile storage means while the stop of the power supply is delayed by the delay means;
Program to function as.
JP2017084488A 2017-04-21 2017-04-21 Information processing device and program Pending JP2018181248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017084488A JP2018181248A (en) 2017-04-21 2017-04-21 Information processing device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017084488A JP2018181248A (en) 2017-04-21 2017-04-21 Information processing device and program

Publications (1)

Publication Number Publication Date
JP2018181248A true JP2018181248A (en) 2018-11-15

Family

ID=64276737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017084488A Pending JP2018181248A (en) 2017-04-21 2017-04-21 Information processing device and program

Country Status (1)

Country Link
JP (1) JP2018181248A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021136585A (en) * 2020-02-27 2021-09-13 株式会社リコー Information processing apparatus, information processing method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021136585A (en) * 2020-02-27 2021-09-13 株式会社リコー Information processing apparatus, information processing method, and program
JP7404932B2 (en) 2020-02-27 2023-12-26 株式会社リコー Information processing device and program

Similar Documents

Publication Publication Date Title
US8301923B2 (en) Multiprocessor system including a power saving mode and control method thereof, and computer-readable medium
CN101464819A (en) Hardware driven processor state storage prior to entering a low power mode
JP2007219581A (en) Memory controller, and electronic equipment mounted therewith
EP3332306B1 (en) System and method for cache aware low power mode control in a portable computing device
US20120117407A1 (en) Computer system and computer system control method
US20140013140A1 (en) Information processing apparatus and computer program product
JP2011095916A (en) Electronic apparatus
US20160070634A1 (en) System and method for system-on-a-chip subsystem trace extraction and analysis
JP2005539322A5 (en)
RU2573233C2 (en) Image forming device, method of controlling image forming device and data medium
JP2002182803A (en) Method and device for suspending and resuming computer system operation
JP2012155534A (en) Electronic device, and method and program of the same
JP2008225929A (en) Information processor
JP2018181248A (en) Information processing device and program
US9921983B2 (en) Direct memory access controller, control method thereof, and information processing system
JP2011221708A (en) Information processing devise and control method for information processing devise
JP5852431B2 (en) Image processing apparatus, control method thereof, and program
JP6864830B2 (en) Information processing equipment and programs
US10042650B2 (en) Computer startup method, startup apparatus, state transition method and state transition apparatus
JP4870098B2 (en) Electronic device and control method of electronic device
US20130073792A1 (en) Electronic apparatus using nand flash and memory management method thereof
JP2006260092A (en) Information processor or data transfer controller
JP2005078197A (en) Power-saving controller
KR20140067739A (en) Memory controller and operating method of memory controller
JP2011257987A (en) Computer system