JP6406219B2 - Communication apparatus and image forming apparatus - Google Patents

Communication apparatus and image forming apparatus Download PDF

Info

Publication number
JP6406219B2
JP6406219B2 JP2015222382A JP2015222382A JP6406219B2 JP 6406219 B2 JP6406219 B2 JP 6406219B2 JP 2015222382 A JP2015222382 A JP 2015222382A JP 2015222382 A JP2015222382 A JP 2015222382A JP 6406219 B2 JP6406219 B2 JP 6406219B2
Authority
JP
Japan
Prior art keywords
communication
error
unit
storage device
ssd
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.)
Expired - Fee Related
Application number
JP2015222382A
Other languages
Japanese (ja)
Other versions
JP2017091323A (en
Inventor
鉄矢 松坂
鉄矢 松坂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2015222382A priority Critical patent/JP6406219B2/en
Publication of JP2017091323A publication Critical patent/JP2017091323A/en
Application granted granted Critical
Publication of JP6406219B2 publication Critical patent/JP6406219B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Debugging And Monitoring (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、外部の記憶装置とデータの送受信を行うための通信装置、及び画像を印刷する画像形成装置に関するものである。   The present invention relates to a communication device for transmitting / receiving data to / from an external storage device, and an image forming apparatus for printing an image.

複写機やプリンター、ファクシミリなどの画像形成装置は、入力された画像データを圧縮して一時的に記憶装置に保存し、記憶装置から読み出された圧縮データを伸張してから、その伸張後の画像データに基づいて画像形成処理を実行する。また、複写機やファクシミリなどに搭載されたスキャナー等の画像読取装置は、読み取られた画像データを圧縮してから記憶装置に保存し、読み出しコマンドが入力されたときに、記憶装置から圧縮データを読み出して伸張している。   Image forming apparatuses such as copiers, printers, and facsimiles compress input image data, temporarily store it in a storage device, decompress compressed data read from the storage device, and then decompress the compressed data. An image forming process is executed based on the image data. Also, an image reading device such as a scanner mounted on a copying machine or a facsimile compresses the read image data and stores it in a storage device. When a read command is input, the compressed image data is read from the storage device. Read and decompress.

また、記憶装置としては、ハードディスク記憶装置(以下「HDD」という。)やソリッドステートドライブ(以下「SSD」という。)が用いられている。HDD、SSDとの間で行われるデータ転送は、例えばSATA(Serial Advanced Technology Attachment)規格等のインターフェース(以下「I/F」という)規格に基づいて行われる。一般に、SATA規格では、HDD及びSSDや接続ポートにエラー(異常)が生じた場合や、転送エラーが生じた場合に、発生したエラー内容や状態などを示すエラーコードを通知することが定められており、複数のエラーコードが用意されている。   As the storage device, a hard disk storage device (hereinafter referred to as “HDD”) or a solid state drive (hereinafter referred to as “SSD”) is used. Data transfer between the HDD and the SSD is performed based on an interface (hereinafter referred to as “I / F”) standard such as a SATA (Serial Advanced Technology Attachment) standard. In general, in the SATA standard, when an error (abnormality) occurs in an HDD, an SSD, or a connection port, or when a transfer error occurs, an error code indicating an error content or state that has occurred is notified. There are multiple error codes.

ところで、HDDやSSDにエラーが生じていなくても、HDDやSSDを搭載した装置に外部からノイズが印加されることによって、HDDやSSDからの応答信号にビットエラーが生じ、特定のエラーが発生していることを示すエラーコードが通知される場合がある。特に、静電気を貯めやすい記録用紙や原稿などのシート材を取り扱う画像形成装置や画像読取装置などの画像処理装置では、静電気が生じやすいため、静電気によるノイズが通信ケーブルやフレームを伝って各デバイスに印加されやすい。このノイズは転送エラー等の原因となる。   By the way, even if there is no error in the HDD or SSD, a bit error occurs in the response signal from the HDD or SSD due to external noise applied to the HDD or SSD mounted device, and a specific error occurs. An error code indicating that this is being performed may be notified. In particular, image processing devices such as image forming devices and image reading devices that handle sheet materials such as recording paper and manuscripts that can easily store static electricity are prone to static electricity, so static noise is transmitted to each device through communication cables and frames. Easy to be applied. This noise causes a transfer error and the like.

特許文献1には、HDDからホストコンピューターに対して特定のエラーが通知された場合、HDDの異常ではなく通信ケーブル上のノイズと判断し、通信ケーブル上のノイズと判断した場合、特別なルーチンを実行することによって記憶装置との間の通信を短時間で復帰する方法について記載されている。   In Patent Document 1, when a specific error is notified from the HDD to the host computer, it is determined that the noise is not on the HDD but on the communication cable, and on the communication cable. A method is described in which communication with a storage device is restored in a short time by executing.

特開2014−192603号公報JP 2014-192603 A

通信部と記憶装置の間で通信エラーが発生したとき、エラー発生前に記憶装置に転送されたデータのうちキャッシュメモリー等に一時的に格納されたデータは、フラッシュメモリー等の記憶部本体に確実に移行されない可能性があり、データ保持率の悪化の原因となっていた。更に、記憶装置がSSDである場合、データの記憶場所を示す論理アドレスと物理アドレスを管理するテーブルの内容が、エラー発生によって更新されず、データの記憶先が分からなくて読み出しが出来ないという事態が発生するという問題がある。特許文献1に記載されている方法は、HDDとの間の通信を短時間で復帰できるものの、当該問題は解決できず、特に、SSDに対して適用することができない。   When a communication error occurs between the communication unit and the storage device, the data temporarily stored in the cache memory etc. among the data transferred to the storage device before the error occurs is surely stored in the storage unit body such as the flash memory. The data retention rate may have been deteriorated. Furthermore, when the storage device is an SSD, the contents of the table managing the logical address and the physical address indicating the data storage location are not updated due to the occurrence of an error, and the data storage destination is not known and cannot be read. There is a problem that occurs. Although the method described in Patent Document 1 can restore communication with the HDD in a short time, the problem cannot be solved, and in particular, it cannot be applied to an SSD.

本発明は、上記の問題を解決するためになされたもので、HDDやSSD等の記憶装置と通信装置との間でノイズによる通信エラーが発生した場合、可能な限り記憶装置が保持するデータが破壊されることがないようにして、短時間で通信を再開可能にすることを目的とする。   The present invention has been made to solve the above-described problems. When a communication error due to noise occurs between a storage device such as an HDD or an SSD and a communication device, data held by the storage device is stored as much as possible. An object is to enable communication to be resumed in a short time without being destroyed.

本発明の一局面に係る通信装置は、予め定められたインターフェース通信規格に基づき記憶装置と通信してデータ転送を行う通信部と、前記通信部が前記記憶装置からエラー情報を受信した際、前記通信部に対して前記記憶装置との通信をリセットした後で再び通信を開始させ、その後、前記通信部に、前記記憶装置が保持するデータのうち、アドレスが確定していないデータのアドレスを確定させると共に、アドレスを管理するテーブルの内容を確定させるコマンドを、前記記憶装置に対して送信させる制御部と、を備える。   A communication device according to an aspect of the present invention includes a communication unit that performs data transfer by communicating with a storage device based on a predetermined interface communication standard, and when the communication unit receives error information from the storage device, After the communication unit resets communication with the storage device, communication is started again, and then the communication unit determines the address of data for which the address is not fixed among the data held by the storage device And a control unit that transmits a command for determining the contents of a table for managing addresses to the storage device.

また、本発明における画像形成装置は、上記の通信装置と、前記画像読取装置が読み取った画像を用紙に印刷する画像形成部と、を備える。   An image forming apparatus according to the present invention includes the communication device described above and an image forming unit that prints an image read by the image reading device on a sheet.

本発明によれば、制御部が、通信部と記憶装置の間で通信エラーが発生した時に、制御部は記憶装置が保持するデータのうち、アドレスが確定していないデータ、例えばキャッシュメモリー等に一時的に格納されているデータの記憶先を確定すると共に、アドレスを管理するテーブルの内容を確定するコマンドを通信部により記憶装置に対して送信させる。このコマンドを受けて、例えば、記憶装置は、キャッシュメモリー等に格納しているデータをフラッシュメモリー等の記憶部本体に記憶させると共に、アドレスを管理するテーブルの内容を確定する等の処理を行う。これにより、エラー発生後のデータ保持率を上げることができ、テーブルの整合性も保つことができる。従って、通信部と記憶装置の間の通信を、通信エラーが生じてから短時間で再開可能となる。   According to the present invention, when a communication error occurs between the communication unit and the storage device, the control unit transfers the data stored in the storage device to data whose address is not fixed, such as a cache memory. In addition to determining the storage destination of the temporarily stored data, the communication unit transmits a command for determining the contents of the table for managing addresses to the storage device. In response to this command, for example, the storage device stores data stored in the cache memory or the like in the storage unit body such as a flash memory, and performs processing such as determining the contents of a table for managing addresses. As a result, the data retention rate after the occurrence of an error can be increased, and the consistency of the table can be maintained. Therefore, communication between the communication unit and the storage device can be resumed in a short time after a communication error occurs.

画像形成装置の構造を示す正面断面図である。It is a front sectional view showing the structure of the image forming apparatus. 画像形成装置の主要内部構成を示す機能ブロック図である。2 is a functional block diagram illustrating a main internal configuration of the image forming apparatus. FIG. PxSERRレジスタのデータ構成の一部を示した図である。It is the figure which showed a part of data structure of a PxSERR register. エラー処理の流れを示すフローチャートである。It is a flowchart which shows the flow of an error process.

以下、本発明の一実施形態に係る通信装置及び画像形成装置について図面を参照して説明する。図1は、本実施の形態における画像形成装置1の構造を示す正面断面図である。   Hereinafter, a communication apparatus and an image forming apparatus according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a front sectional view showing a structure of an image forming apparatus 1 in the present embodiment.

画像形成装置1は、例えば、コピー機、プリンター、スキャナー及びファクシミリ等であってもよいし、これらの機能を備えた複合機であってもよい。画像形成装置1は、装置本体11に、操作部47、画像形成部12、定着部13、給紙部14、原稿給送部6及び画像読取部5等を備えて構成されている。   The image forming apparatus 1 may be, for example, a copier, a printer, a scanner, a facsimile, or the like, or may be a multifunction machine having these functions. The image forming apparatus 1 includes an operation unit 47, an image forming unit 12, a fixing unit 13, a paper feeding unit 14, a document feeding unit 6, an image reading unit 5, and the like in the apparatus main body 11.

操作部47は、ユーザーから画像形成動作実行指示や原稿読取動作実行指示等の指示を受け付ける。操作部47は、ユーザーへの操作案内等を表示する表示部473を備えている。   The operation unit 47 receives an instruction such as an image forming operation execution instruction or a document reading operation execution instruction from the user. The operation unit 47 includes a display unit 473 that displays operation guidance for the user.

画像形成装置1が原稿読取動作を行う場合、原稿給送部6により給送されてくる原稿又は原稿載置ガラス161に載置された原稿の画像を画像読取部5が光学的に読み取り、画像データを生成する。画像読取部5により生成された画像データはSSDやHDD等に保存される。   When the image forming apparatus 1 performs the document reading operation, the image reading unit 5 optically reads the document fed by the document feeding unit 6 or the image of the document placed on the document placing glass 161, and Generate data. Image data generated by the image reading unit 5 is stored in an SSD, HDD, or the like.

画像形成装置1が画像形成動作を行う場合は、上記原稿読取動作により生成された画像データ又はSSDやHDDに記憶されている画像データ等に基づいて、画像形成部12が、給紙部14から給紙される記録媒体としての記録紙Pにトナー像を形成する。カラー印刷を行う場合、画像形成部12のマゼンタ用の画像形成ユニット12M、シアン用の画像形成ユニット12C、イエロー用の画像形成ユニット12Y及びブラック用の画像形成ユニット12Bkは、それぞれに、上記画像データを構成するそれぞれの色成分からなる画像に基づいて、帯電、露光及び現像の工程により感光体ドラム121上にトナー像を形成し、そのトナー像を一次転写ローラー126により中間転写ベルト125上に転写させる。   When the image forming apparatus 1 performs the image forming operation, the image forming unit 12 receives the image forming unit 12 from the paper feeding unit 14 based on the image data generated by the document reading operation or the image data stored in the SSD or HDD. A toner image is formed on a recording sheet P as a recording medium to be fed. When performing color printing, the magenta image forming unit 12M, the cyan image forming unit 12C, the yellow image forming unit 12Y, and the black image forming unit 12Bk of the image forming unit 12 each have the above image data. The toner image is formed on the photosensitive drum 121 by the charging, exposure and development processes based on the image composed of the respective color components constituting the toner, and the toner image is transferred onto the intermediate transfer belt 125 by the primary transfer roller 126. Let

中間転写ベルト125上に転写される上記各色のトナー画像は、転写タイミングを調整して中間転写ベルト125上で重ね合わされ、カラーのトナー像となる。二次転写ローラー210は、中間転写ベルト125の表面に形成されたカラーのトナー像を、中間転写ベルト125を挟んで駆動ローラー125aとのニップ部Nにおいて、給紙部14から搬送路190を搬送されてきた記録紙Pに転写させる。この後、定着部13が、記録紙P上のトナー像を、熱圧着により記録紙Pに定着させる。定着処理の完了したカラー画像形成済みの記録紙Pは、排出トレイ151に排出される。   The toner images of the respective colors transferred onto the intermediate transfer belt 125 are superimposed on the intermediate transfer belt 125 with the transfer timing adjusted to form a color toner image. The secondary transfer roller 210 conveys the color toner image formed on the surface of the intermediate transfer belt 125 from the sheet feeding unit 14 through the conveyance path 190 at the nip N between the intermediate transfer belt 125 and the driving roller 125a. The recording sheet P is transferred. Thereafter, the fixing unit 13 fixes the toner image on the recording paper P to the recording paper P by thermocompression bonding. The recording paper P on which the color image has been formed after completion of the fixing process is discharged to a discharge tray 151.

給紙部14は、複数の給紙カセットを備える。そして後述する制御ユニットが、ユーザーによる指示で指定されたサイズの記録紙が収容された給紙カセットのピックアップローラー145を回転駆動させて、各給紙カセットに収容されている記録紙Pをニップ部Nに向けて搬送させる。   The paper feed unit 14 includes a plurality of paper feed cassettes. A control unit, which will be described later, rotates the pickup roller 145 of the paper feed cassette that contains the recording paper of the size specified by the user's instruction so that the recording paper P contained in each paper feed cassette is fed to the nip portion. Transport toward N.

尚、画像形成装置1において、両面印刷を行う場合は、画像形成部12より一方の面に画像が形成された記録紙Pを、排出ローラー対159にニップされた状態とした後、記録紙Pを排出ローラー対159によりスイッチバックさせて反転搬送路195に送り、搬送ローラー対19により、ニップ部N及び定着部13に対して記録紙Pの搬送方向上流域に再度搬送する。これにより、画像形成部12により記録紙の他方の面に画像が形成される。   In the case of performing double-sided printing in the image forming apparatus 1, the recording paper P on which an image is formed on one side from the image forming unit 12 is nipped by the discharge roller pair 159, and then the recording paper P Is switched back by the discharge roller pair 159 and sent to the reverse conveyance path 195, and the conveyance roller pair 19 conveys the recording paper P again upstream in the conveyance direction of the recording paper P with respect to the nip N and the fixing unit 13. Thereby, an image is formed on the other side of the recording paper by the image forming unit 12.

図2は、画像形成装置1の主要内部構成を示す機能ブロック図である。画像形成装置1は、制御ユニット31(特許請求の範囲における通信装置の一例)、操作部47、原稿給送部6、画像読取部5、画像形成部12、給紙部14及びSSD32(記憶装置)等を備える。以下、図1において説明した構成要素については同じ符号を付し、説明を省略する。   FIG. 2 is a functional block diagram showing the main internal configuration of the image forming apparatus 1. The image forming apparatus 1 includes a control unit 31 (an example of a communication device in claims), an operation unit 47, a document feeding unit 6, an image reading unit 5, an image forming unit 12, a paper feeding unit 14, and an SSD 32 (storage device). ) Etc. In the following, the same components as those described in FIG.

SSD(solid state drive)32は、画像読取部5によって読み取られた原稿画像等を記憶する大容量の記憶装置で、SATA規格に準拠した不揮発性記憶装置である。尚、SSD32に代えてHDDでもよいが、本実施の形態ではSSDを用いて説明する。   The solid state drive (SSD) 32 is a large-capacity storage device that stores a document image read by the image reading unit 5 and is a non-volatile storage device that conforms to the SATA standard. Although an HDD may be used in place of the SSD 32, the present embodiment will be described using an SSD.

制御ユニット31は、CPU(Central Processing Unit)311(制御部、判断部、判別部)、メモリー312(記憶部)、インターフェース回路(以下「I/F」という)41及びSATA−I/F42(通信部)等から構成される。CPU311は、メモリー312に記憶された各種プログラムを読み出して処理を実行し、各機能部への指示信号の出力、データ転送等を行って画像形成装置1を統括的に制御する。   The control unit 31 includes a CPU (Central Processing Unit) 311 (control unit, determination unit, determination unit), a memory 312 (storage unit), an interface circuit (hereinafter referred to as “I / F”) 41, and a SATA-I / F 42 (communication). Part). The CPU 311 reads out various programs stored in the memory 312 and executes processing, and outputs an instruction signal to each function unit, transfers data, and the like, thereby controlling the image forming apparatus 1 in an integrated manner.

I/F41は、SATA規格以外の通信を行うためのインターフェース回路である。本実施形態において、SATA規格以外の通信とは、シリアル通信又はパラレル通信であり、データ転送中に送信されるエラー情報からノイズが発生したことを検知できない通信規格である。例えば、制御ユニット31と操作部47、原稿給送部6、画像読取部5、画像形成部12及び給紙部14の間のデータ通信はシリアル通信が用いられる。   The I / F 41 is an interface circuit for performing communication other than the SATA standard. In the present embodiment, communication other than the SATA standard is serial communication or parallel communication, and is a communication standard that cannot detect the occurrence of noise from error information transmitted during data transfer. For example, serial communication is used for data communication between the control unit 31 and the operation unit 47, the document feeding unit 6, the image reading unit 5, the image forming unit 12, and the paper feeding unit 14.

SATA−I/F42は、SATA規格に基づいたインターフェース回路であり、制御ユニット31とSSD32はSATA規格に基づいた通信を行う。なお、後述するように、SATA規格通信によれば、データ転送中に送信されるエラー情報からノイズが発生したことを検知可能である。   The SATA-I / F 42 is an interface circuit based on the SATA standard, and the control unit 31 and the SSD 32 perform communication based on the SATA standard. As will be described later, according to the SATA standard communication, it is possible to detect that noise has occurred from error information transmitted during data transfer.

メモリー312には、EEPROM等からなり、各種プログラムの他に、SSD32に関する選択エラーコードが記憶されている。選択エラーコードは、SATA規格で定められた複数のエラーコードから、予め選択して定められている特定のエラーコードである。   The memory 312 includes an EEPROM or the like, and stores a selection error code related to the SSD 32 in addition to various programs. The selection error code is a specific error code selected and determined in advance from a plurality of error codes defined in the SATA standard.

図3に示したエラーコードは、エラーの内容と、ビット番号とを組み合わせたものであり、例えばPxSERR#21と表される。また、エラーコードのエラー状態を示すエラー情報は、エラーの内容と、ビット番号と、エラー内容の状態を示す1ビット情報とを組み合わせたものである。つまり、エラー情報は、エラーコードに1ビット情報が加えられたものである。   The error code shown in FIG. 3 is a combination of an error content and a bit number, and is represented as, for example, PxSERR # 21. The error information indicating the error state of the error code is a combination of error content, bit number, and 1-bit information indicating the error content state. That is, the error information is obtained by adding 1-bit information to the error code.

例えば、1ビット情報の部分の情報が「0」の場合はエラー状態ではなく正常であることを示し、「1」の場合はエラー状態であることを示す。本実施の形態では、当該PxSERR#21、PxSERR#19及びPxSERR#16が選択エラーコードに設定されており、メモリー312に記憶されている。これらを選択エラーコードとした理由は、画像形成装置1に対する静電気によるノイズ実験を行った結果、静電気がSSD32に伝わったときにビットエラーが生じて、エラー状態を示す1ビット情報が書き換えられ、各エラーコード(PxSERR#21、PxSERR#19及びPxSERR#16)が発生することが判明しているためである。なお、これは選択エラーコードの単なる一例である。   For example, when the information of the 1-bit information portion is “0”, it indicates that the information is not an error state but is normal, and when the information is “1”, it indicates an error state. In the present embodiment, PxSERR # 21, PxSERR # 19, and PxSERR # 16 are set as selection error codes and stored in the memory 312. The reason why these are selected error codes is that a bit error occurs when static electricity is transmitted to the SSD 32 as a result of conducting noise experiments on the image forming apparatus 1, and 1-bit information indicating an error state is rewritten. This is because it is known that error codes (PxSERR # 21, PxSERR # 19, and PxSERR # 16) are generated. This is just an example of a selection error code.

ここで、PxSERR#21のCRC Errorは、画像データが転送される1単位であるフレーム(パケットと呼ばれている。)の誤り検出方法である巡回冗長検査(CRC:Cyclic Redundancy Check)におけるエラーである。このエラーを伴うフレームを受け取ったSSD32は、そのフレームを破棄する。また、PxSERR#19の10b−to−8b Decode ERRORは、10ビットから8ビットへの符号化のエラーである。また、PxSERR#16のPhyRdy Changeは、SSD32が読み書き可能な準備状態であることを示すPhyRdy状態(physical layer ready state)に変化があることをエラーとするものである。   Here, CRC Error of PxSERR # 21 is an error in a cyclic redundancy check (CRC) that is an error detection method of a frame (called a packet) that is one unit to which image data is transferred. is there. The SSD 32 that received the frame with this error discards the frame. Further, 10b-to-8b Decode ERROR of PxSERR # 19 is an encoding error from 10 bits to 8 bits. Also, PxSERR # 16 PhyRdy Change is an error when there is a change in the PhyRdy state (physical layer ready state) indicating that the SSD 32 is in a read / write ready state.

ここで、SSDとHDDについて説明する。HDDはデータの記憶先を示す論理アドレスと物理アドレスが基本的に一致するが、SSDは全く一致しない。SSDはウエアレベリングやガベッジコレクション等の処理を前提としているため、論理アドレスと物理アドレスの関係性が流動的である。論理アドレスと物理アドレスを変換する仕組みは、各SSDメーカーが独自で構築しており、各社が異なる仕組みを用いているものと思われる。   Here, the SSD and HDD will be described. In the HDD, the logical address indicating the data storage destination and the physical address basically match, but the SSD does not match at all. Since SSD is premised on processing such as wear leveling and garbage collection, the relationship between logical addresses and physical addresses is fluid. The mechanism for converting the logical address and the physical address is individually constructed by each SSD manufacturer, and it seems that each company uses a different mechanism.

例えば、SSDの論理アドレスと物理アドレスを単純なテーブルを用いて管理している場合、テーブルの更新タイミングが「400ms毎」又は「Standby Immediateコマンド発行」の何れかである場合がある。これらのタイミングでテーブルの更新が正しく行われずにSSDの電源が遮断されると、SSDに書き込まれたはずのデータが読み出せなかったり、テーブルの整合性チェック等に時間が掛かったりする等の問題が発生する。   For example, when the logical address and physical address of the SSD are managed using a simple table, the table update timing may be either “every 400 ms” or “Issuance of Standby Immediate Command”. If the table is not updated correctly at these timings and the SSD power is cut off, the data that should have been written to the SSD cannot be read, and it takes time to check the consistency of the table. Will occur.

特に、エラーがノイズである場合、エラー発生後に何度もエラーが発生したり、SSDやホストコンピューターが再起動したりしてしまう可能性がある。例えば、エラー発生後にSSDが再起動してしまうと、テーブルが更新されなかった期間のデータを読み込むことができない。   In particular, when the error is noise, the error may occur many times after the error occurs, or the SSD or the host computer may be restarted. For example, if the SSD is restarted after an error occurs, it is not possible to read data for a period during which the table was not updated.

そこで、本実施形態では、SSDのテーブルが更新されない期間を出来る限り少なくするために、エラーから復旧してすぐにStandby Immediate信号を発行する。このStandby Immediate信号によって、SSDが受け付けたデータのうち、SSD内のキャッシュメモリー等に一時的に格納されているデータがフラッシュメモリーに移行して書き込ませると共に、論理アドレスと物理アドレスを管理するテーブルの内容を確定させ、省エネモードの一つであるStandbyモードに移行させる。すなわち、Standby Immediate信号は、エラー復旧時にSSD内のキャッシュメモリー等に一時的に格納されているデータのうち、アドレスが確定していないデータのアドレスを確定させて、当該データをこの確定したアドレスが示すフラッシュメモリーの領域に書き込ませ、更に、論理アドレスと物理アドレスを管理するテーブルの内容を確定させる処理を、記憶装置としてのSSDに行わせるためのコマンドである。   Therefore, in this embodiment, in order to minimize the period during which the SSD table is not updated, the Standby Immediate signal is issued immediately after recovery from the error. By this Standby Immediate signal, the data temporarily stored in the cache memory or the like in the SSD among the data accepted by the SSD is transferred to the flash memory and written, and the table for managing the logical address and the physical address is stored. The content is confirmed and the mode is shifted to the standby mode, which is one of the energy saving modes. That is, the Standby Immediate signal is used to determine the address of data whose address is not fixed among the data temporarily stored in the cache memory or the like in the SSD at the time of error recovery. This is a command for causing the SSD as a storage device to execute processing for writing to the area of the flash memory shown, and further determining the contents of the table for managing logical addresses and physical addresses.

このように、ノイズ発生後にStandby Immediate信号を発行することでフラッシュメモリーへのデータ書き込みとテーブル確定がなされるため、データが読み出せなかったり、テーブルの整合性チェックに時間が掛かったりする等の問題を解消することができる。   As described above, by issuing a Standby Immediate signal after the occurrence of noise, data writing to the flash memory and table determination are performed, so that data cannot be read, and it takes time to check the consistency of the table. Can be eliminated.

次に、CPU311が実行するエラー処理の一例について説明する。図4は、本実施の形態におけるエラー処理の流れを示したフローチャートである。   Next, an example of error processing executed by the CPU 311 will be described. FIG. 4 is a flowchart showing a flow of error processing in the present embodiment.

まず、CPU311は、SSD32に対してSATA規格に基づくデータ転送を行う場合に、データ転送に先駆けてSSD32との間で通信を確立する初期処理を行う。その後、通信が確立したのちに、データの転送処理が行われる。   First, when performing data transfer based on the SATA standard with respect to the SSD 32, the CPU 311 performs initial processing for establishing communication with the SSD 32 prior to data transfer. Thereafter, after communication is established, data transfer processing is performed.

このデータ転送の最中に、SATA−I/F42がエラー情報を受信したことをCPU311が検知したとき、CPU311はエラーコードがPxISの#26〜#29の何れかであるかどうかを判定する(ステップS11)。PxISはSSD32とSATA−I/F42の接続ポートにおける割り込みステータス(Port x Interrupt Status)を示すものである。ここで、エラーコードがPxISの#26〜#29の何れでもない場合(ステップS11;NO)、CPU311は、例えば、メモリー312に記憶されている図略のタスクファイルを参照して、各エラーコードのエラー内容に応じて設定されているエラー処理を実行し、その後の処理を終了する。   During this data transfer, when the CPU 311 detects that the SATA-I / F 42 has received the error information, the CPU 311 determines whether the error code is any one of PxIS # 26 to # 29 ( Step S11). PxIS indicates an interrupt status (Port x Interrupt Status) at a connection port between the SSD 32 and the SATA-I / F 42. If the error code is not any of PxIS # 26 to # 29 (step S11; NO), the CPU 311 refers to, for example, a task file (not shown) stored in the memory 312 and sets each error code. The error processing set according to the error content is executed, and the subsequent processing is terminated.

エラーコードがPxISの#26〜#29の何れかである場合(ステップS11;YES)、CPU311はエラーコードがPxSERR#21であるかどうかを判定する(ステップS12)。エラーコードがPxSERR#21でない場合(ステップS12;NO)、CPU311はエラーコードがPxSERR#19であるかどうかを判定する(ステップS13)。エラーコードがPxSERR#19でない場合(ステップS13;NO)、CPU311はエラーコードがPxSERR#16であるかどうかを判定する(ステップS14)。つまり、CPU311は、エラーコードが、ノイズによるビットエラーを発生させるとして予め定められたエラーコードであるPxSERR#21、PxSERR#19又はPxSERR#16であるかどうかを判定する。   If the error code is any of PxIS # 26 to # 29 (step S11; YES), the CPU 311 determines whether the error code is PxSERR # 21 (step S12). If the error code is not PxSERR # 21 (step S12; NO), the CPU 311 determines whether the error code is PxSERR # 19 (step S13). If the error code is not PxSERR # 19 (step S13; NO), the CPU 311 determines whether the error code is PxSERR # 16 (step S14). That is, the CPU 311 determines whether or not the error code is PxSERR # 21, PxSERR # 19, or PxSERR # 16, which is a predetermined error code that causes a bit error due to noise.

受信したエラーコードが上記3つのエラーコードではない場合(ステップS12〜S14において全てNO)、つまり、SSD32から送信されたエラーコードと上記3つのエラーコードとが不一致である場合、エラーの原因はノイズではないため別の対処を行う。例えば、CPU311は、メモリー312に記憶されている図略のタスクファイルを参照して、各エラーコードのエラー内容に応じて設定されているエラー処理を実行し、その後の処理を終了する。   If the received error code is not the above three error codes (NO in steps S12 to S14), that is, if the error code transmitted from the SSD 32 and the above three error codes do not match, the cause of the error is noise Because it is not, another countermeasure is taken. For example, the CPU 311 refers to a task file (not shown) stored in the memory 312, executes error processing set according to the error content of each error code, and ends the subsequent processing.

エラーコードの何れかが上記3つのエラーコードである場合(ステップS12〜S14の何れかにおいてYES)、ノイズによるビットエラーであるとして、CPU311はシリアルI/F41に対してデータ転送の中止と再転送を指示する(ステップS15)。その後、エラー回復処理を実行する(ステップS16〜S19)。   If any of the error codes is the above three error codes (YES in any of steps S12 to S14), the CPU 311 cancels the data transfer to the serial I / F 41 and retransfers it as a bit error due to noise. Is instructed (step S15). Thereafter, error recovery processing is executed (steps S16 to S19).

エラー回復処理について説明する。CPU311は、SATA−I/F42とSSD32との間の通信を一旦切断させるためのComReset信号をSSD32に対して出力し(ステップS16)、その後データ通信を再び確立するための初期処理を行う(ステップS17)。これにより、SATA−I/F42とSSD32との通信が再び確立する。   The error recovery process will be described. The CPU 311 outputs a ComReset signal for temporarily disconnecting the communication between the SATA-I / F 42 and the SSD 32 to the SSD 32 (step S16), and then performs an initial process for reestablishing data communication (step S16). S17). Thereby, the communication between the SATA-I / F 42 and the SSD 32 is established again.

そして、CPU311は、SATA−I/F42に、SSD32に対してStandby Immediate信号を出力させる(ステップS18)。Standby Immediate信号は、省エネルギーモードの一つであるStandbyモードへ移行するための信号であり、この信号が出力されることで、SSD32のステータスやキャッシュメモリーの内容がフラッシュメモリーに書き出されると共に、論理アドレスと物理アドレスを管理するテーブルの更新が行われる。   Then, the CPU 311 causes the SATA-I / F 42 to output a Standby Immediate signal to the SSD 32 (step S18). The Standby Immediate signal is a signal for shifting to the Standby mode, which is one of the energy saving modes. By outputting this signal, the status of the SSD 32 and the contents of the cache memory are written to the flash memory, and the logical address The table for managing the physical address is updated.

次に、CPU311はノイズによるエラーが発生した時のコマンドをSSD32に対して再出力し(ステップS19)、エラー処理を終了する。すなわち、CPU311は、当該コマンドをSSD32に対して再出力することで当該エラー発生により実行されなかった処理(データ書き込み等)を、SSD32に再度実行させる。   Next, the CPU 311 re-outputs a command when an error due to noise occurs to the SSD 32 (step S19), and ends the error processing. That is, the CPU 311 re-outputs the command to the SSD 32 to cause the SSD 32 to execute again a process (such as data writing) that has not been executed due to the occurrence of the error.

以上、説明したように、ノイズによるエラーが発生した際に実行されるエラー回復処理においてStandby Immediate信号を発行することによって、SSD32の論理アドレスと物理アドレスを管理するテーブルの内容が更新されるため、エラー復帰後にSSD32にアクセスした際にデータを正しく読み出すことができる。また、テーブルの内容が正しく確定されると、SSD32内のデータの整合性チェックに時間が掛からず、スムーズに行われる。   As described above, the contents of the table managing the logical address and physical address of the SSD 32 are updated by issuing a Standby Immediate signal in the error recovery process executed when an error due to noise occurs. Data can be read correctly when the SSD 32 is accessed after error recovery. Further, if the contents of the table are correctly determined, the consistency check of the data in the SSD 32 does not take time and is performed smoothly.

尚、本実施の形態では、SATA−I/F42に接続される記憶装置としてSSD32を例に説明したが、HDDであってもよい。HDDの場合、Standby Immediate信号をコマンドするとヘッドが予め設定されている位置に退避するため、Standbyモードからの復帰に時間が掛かってしまうが、ノイズ発生時のキャッシュメモリーの内容がStandby Immediate信号によってフラッシュメモリーに書き込まれるため、データ保持率を高めることができる。   In the present embodiment, the SSD 32 is described as an example of a storage device connected to the SATA-I / F 42, but an HDD may be used. In the case of HDD, if the Standby Immediate signal is commanded, the head is retracted to a preset position, so it takes time to return from the Standby mode. However, the contents of the cache memory at the time of noise generation are flushed by the Standby Immediate signal Since the data is written in the memory, the data retention rate can be increased.

また、SSDは、メーカー独自の省エネモードを採用している場合はStandbyモードからの復帰に時間が掛かる場合があるが、一般的にはStandbyモードから復帰が短時間ですぐにアクセス可能な場合が多い。従って、本発明においては、記憶装置としてSSDを適用する方が望ましい。   In addition, when the SSD adopts a manufacturer's original energy saving mode, it may take a long time to return from the standby mode, but in general, the recovery from the standby mode may be immediately accessible in a short time. Many. Therefore, in the present invention, it is desirable to apply SSD as a storage device.

そして、CPU311は、記憶装置としてSDDまたはHDDの何れが用いられているか判断し、SDDである場合にのみ、上記エラー回復処理を実行するようにしてもよい。   Then, the CPU 311 may determine which of the SDD and the HDD is used as a storage device, and may execute the error recovery process only when the storage device is an SDD.

1 画像形成装置
12 画像形成部
14 給紙部
31 制御ユニット
311 CPU
312 メモリー
32 SSD
41 I/F
42 SATA−I/F
47 操作部
473 表示部
6 原稿給送部
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 12 Image forming part 14 Paper feed part 31 Control unit 311 CPU
312 Memory 32 SSD
41 I / F
42 SATA-I / F
47 Operation unit 473 Display unit 6 Document feeding unit

Claims (4)

予め定められたインターフェース通信規格に基づき記憶装置と通信してデータ転送を行う通信部と、
前記通信部が前記記憶装置からエラー情報を受信した際、前記通信部に対して前記記憶装置との通信をリセットした後で再び通信を開始させ、その後、前記通信部に、前記記憶装置が保持するデータのうち、アドレスが確定していないデータのアドレスを確定させると共に、アドレスを管理するテーブルの内容を確定させるコマンドを、前記記憶装置に対して送信させる制御部と、を備え
前記インターフェース通信規格で定められたエラーコードのうち、少なくともノイズを原因の1つとするエラーを示す選択エラーコードを記憶する記憶部と、
前記通信部により前記記憶装置から受信されたエラー情報の示すエラーコードが、前記選択エラーコードと一致するか否かを判断する判断部とを更に備え、
前記判断部が前記エラー情報の示すエラーコードと前記選択エラーコードとが一致すると判断した場合にのみ、前記コマンドを前記通信部に対して送信させる通信装置。
A communication unit that communicates with a storage device to transfer data based on a predetermined interface communication standard;
When the communication unit receives error information from the storage device, the communication unit starts communication again after resetting communication with the storage device, and then the storage unit holds the storage device. A control unit that transmits a command for determining the contents of a table for managing addresses, and a command for determining the contents of a table for managing addresses, among the data to be determined ,
A storage unit for storing a selection error code indicating an error caused by at least one of noises among error codes defined in the interface communication standard;
A determination unit that determines whether an error code indicated by the error information received from the storage device by the communication unit matches the selected error code;
A communication apparatus that transmits the command to the communication unit only when the determination unit determines that the error code indicated by the error information matches the selected error code .
前記コマンドは、Standby Immediate信号である請求項1に記載の通信装置。 The communication apparatus according to claim 1, wherein the command is a Standby Immediate signal. 前記予め定められたインターフェース通信規格とはSATA規格である請求項1又は請求項に記載の通信装置。 The communication apparatus according to claim 1 or claim 2 which is the SATA standard The predetermined interface communication standard. 請求項1乃至請求項の何れか一項に記載の通信装置と、
画像を用紙に印刷する画像形成部と、を備えた画像形成装置。
A communication device according to any one of claims 1 to 3 ,
An image forming apparatus comprising: an image forming unit that prints an image on paper.
JP2015222382A 2015-11-12 2015-11-12 Communication apparatus and image forming apparatus Expired - Fee Related JP6406219B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015222382A JP6406219B2 (en) 2015-11-12 2015-11-12 Communication apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015222382A JP6406219B2 (en) 2015-11-12 2015-11-12 Communication apparatus and image forming apparatus

Publications (2)

Publication Number Publication Date
JP2017091323A JP2017091323A (en) 2017-05-25
JP6406219B2 true JP6406219B2 (en) 2018-10-17

Family

ID=58770637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015222382A Expired - Fee Related JP6406219B2 (en) 2015-11-12 2015-11-12 Communication apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP6406219B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7009786B2 (en) * 2017-06-06 2022-01-26 日本電気株式会社 Communication control methods, programs and devices
CN111984441B (en) * 2019-05-21 2023-09-22 慧荣科技股份有限公司 Instant power-off recovery processing method and device and computer readable storage medium
JP7494546B2 (en) 2020-04-17 2024-06-04 コニカミノルタ株式会社 Image forming apparatus, control method for image forming apparatus, and control program for image forming apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001109584A (en) * 1999-10-12 2001-04-20 Toshiba Corp Disk array device
JP2004206239A (en) * 2002-12-24 2004-07-22 Pfu Ltd Raid device
JP4888935B2 (en) * 2005-03-14 2012-02-29 株式会社リコー Storage system
JP4457060B2 (en) * 2005-09-21 2010-04-28 株式会社沖データ Image forming apparatus
CN101446926B (en) * 2008-11-10 2011-06-01 成都市华为赛门铁克科技有限公司 Method for storing power-fail data of cache memory, equipment and system thereof
WO2013175622A1 (en) * 2012-05-25 2013-11-28 富士通株式会社 Information processing device, information processing program, and access control method
JP5800847B2 (en) * 2013-03-26 2015-10-28 京セラドキュメントソリューションズ株式会社 Information processing apparatus and error processing method

Also Published As

Publication number Publication date
JP2017091323A (en) 2017-05-25

Similar Documents

Publication Publication Date Title
JP5004831B2 (en) Image forming apparatus, image forming method, program, and recording medium
JP5800847B2 (en) Information processing apparatus and error processing method
JP2009267660A (en) Image processing apparatus, and image processing system
JP6406219B2 (en) Communication apparatus and image forming apparatus
US20090009800A1 (en) Image forming apparatus and image forming method
JP5919234B2 (en) Communication apparatus and communication method
JP2015029239A (en) Information processing apparatus, control method of information processing apparatus, and program
US8411314B2 (en) Image forming apparatus for forming an image by transferring an image onto an intermediate transfer member, image forming method, and storage medium
JP2015046050A5 (en)
JP5470124B2 (en) Electronic device and program for electronic device
JP4589768B2 (en) Information processing device
JP2014138265A (en) Image forming apparatus
JP7016725B2 (en) Information processing equipment, control methods and programs
US11842064B2 (en) Information processing apparatus, control device, and control method of control device
US11137951B2 (en) Image forming apparatus, control method of image forming apparatus, and program
JP4292866B2 (en) Image forming apparatus, firmware rewriting method, rewriting program, and recording medium
JP2009053935A (en) Information processor and history information management program
JP2008191388A (en) Image forming device
JP2017097077A (en) Image formation apparatus and control method thereof
JP2004237667A (en) Data transfer method
JP6213438B2 (en) Image forming apparatus
JP2016051193A (en) Electronic device and image forming device
JP2023112360A (en) Information processing device and information processing method
JP2004130686A (en) Printer with built-in server and method of printing operation
JP2004066787A (en) Image recorder, method of controlling the same, medium providing control program, and control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170824

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180612

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180730

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180821

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180903

R150 Certificate of patent or registration of utility model

Ref document number: 6406219

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees