JP6217206B2 - Communication control device, image processing device, transfer control program - Google Patents

Communication control device, image processing device, transfer control program Download PDF

Info

Publication number
JP6217206B2
JP6217206B2 JP2013149744A JP2013149744A JP6217206B2 JP 6217206 B2 JP6217206 B2 JP 6217206B2 JP 2013149744 A JP2013149744 A JP 2013149744A JP 2013149744 A JP2013149744 A JP 2013149744A JP 6217206 B2 JP6217206 B2 JP 6217206B2
Authority
JP
Japan
Prior art keywords
packet data
buffer
retransmission
normal transmission
control unit
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.)
Active
Application number
JP2013149744A
Other languages
Japanese (ja)
Other versions
JP2015023408A (en
JP2015023408A5 (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2013149744A priority Critical patent/JP6217206B2/en
Publication of JP2015023408A publication Critical patent/JP2015023408A/en
Publication of JP2015023408A5 publication Critical patent/JP2015023408A5/ja
Application granted granted Critical
Publication of JP6217206B2 publication Critical patent/JP6217206B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、通信制御装置、画像処理装置、転送制御プログラムに関する。   The present invention relates to a communication control device, an image processing device, and a transfer control program.

制御系を総括するCPUを備えたマスター通信制御部と、機器の動作を制御するスレーブ側通信制御部との間を、シリアル通信を介して接続する場合、送信側であるマスター通信制御部から送信したコマンド(パケットデータ)に対して、受信側であるスレーブ通信制御部では、正常に受信した場合はAck信号を返信し、エラー等に基づく再送要求の場合はNack信号を返信することで、通信プロトコルを進行させるシステムがある。   When connecting via serial communication between the master communication control unit with a CPU that controls the control system and the slave communication control unit that controls the operation of the device, it is transmitted from the master communication control unit on the transmission side. In response to the received command (packet data), the slave communication control unit on the receiving side returns an Ack signal when it is normally received, and returns a Nack signal when it is a retransmission request based on an error or the like. There are systems that advance the protocol.

一方で、Ack信号又はNack信号を確認せずに、送信側であるマスター通信制御部から、予め定めた間隔で受信側であるスレーブ通信制御部へコマンド(パケットデータ)を送信するシステムがある。   On the other hand, there is a system that transmits a command (packet data) from a master communication control unit on the transmission side to a slave communication control unit on the reception side at a predetermined interval without checking the Ack signal or the Nack signal.

特許文献1には、短い周期で一定量のデータを必ず伝送し終わらなければならない、というような同期転送の制約が強い用途においても、低コスト、かつ、少ない再送オーバーヘッドでエラー発生時の処理を効率よく処理することができるデータ通信装置、画像処理システム及びデータ通信方法が提案されている。   In Patent Document 1, even in applications where there are strong restrictions on synchronous transfer such that a certain amount of data must be transmitted in a short cycle, processing at the time of occurrence of an error with low cost and low retransmission overhead is performed. A data communication device, an image processing system, and a data communication method that can be processed efficiently have been proposed.

また、特許文献2には、データ通信を適切かつ効率的に行うデータ通信装置が提案されており、例えば、パケットが正常転送できなかった場合にパケットを所定の時間経過後に再送信するデータ通信を行うことが記載されている。   Further, Patent Document 2 proposes a data communication device that performs data communication appropriately and efficiently. For example, when a packet cannot be transferred normally, data communication for retransmitting the packet after a predetermined time has elapsed. It is described to do.

特開2008−204245号公報JP 2008-204245 A 特開2011−39897号公報JP 2011-39897 A

本発明は、送信側及び受信側で新規にコマンドを作成することなく、パケットデータにおける送信順序と受信順序の入れ替わりを防止することができる通信制御装置、画像処理装置、転送制御プログラムを得ることが目的である。   The present invention provides a communication control device, an image processing device, and a transfer control program that can prevent the transmission order and the reception order in packet data from being switched without creating new commands on the transmission side and the reception side. Is the purpose.

請求項に記載の発明は、送信側に設けられた送信側通信機能に基づいて一定間隔毎に送信されるパケットデータを受信する受信機能、及び前記送信側へ少なくとも正常又は再送信を要求する異常の応答信号を返信する返信機能を備えた通信制御手段と、前記再送信以外の通常送信によって受信したパケットデータを格納すると共に格納領域が2段以上設けられた通常送信用バッファと、前記再送信によって受信したパケットデータを格納する再送信用バッファとを備え、前記通常送信用バッファに格納されたパケットデータを先入れ先出し方式に基づき格納領域をシフトさせて次工程へ送出すると共に、前記再送信用バッファに格納されたパケットデータを次工程へ送出する送出制御手段と、前記送出制御手段で送出したパケットデータを、前記通常送信用バッファ又は前記再送信用バッファから削除して次のパケットデータの格納を許可すると共に、前記通常送信用バッファの最下流段の格納領域に格納されたパケットデータが、前記再送信の原因となるパケットデータの場合には、次工程へ送出せずに削除する削除手段と、前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、前記異常の応答信号の要因となるパケットデータの削除を禁止する禁止手段と、を有している。 The invention according to claim 1 is a reception function for receiving packet data transmitted at regular intervals based on a transmission side communication function provided on the transmission side, and requests at least normal or retransmission to the transmission side. A communication control means having a reply function for returning an abnormal response signal; a normal transmission buffer for storing packet data received by normal transmission other than the retransmission and having two or more storage areas; A retransmission trust buffer for storing packet data received by transmission, shifting the storage area of the packet data stored in the normal transmission buffer based on a first-in first-out method to the next step, and sending the packet data to the retransmission trust buffer. and transmission control means for sending the stored packet data to the next step, the packet data transmitted by said transmission control means The packet data stored in the storage area at the most downstream stage of the normal transmission buffer is deleted and deleted from the normal transmission buffer or the retransmission trust buffer, and the cause of the retransmission The packet data stored in the retransmission trust buffer until the packet data stored in the retransmission trust buffer is sent to the next process, and the most downstream stage of the normal transmission buffer. And prohibiting means for prohibiting deletion of packet data that is a cause of the abnormal response signal.

請求項に記載の発明は、前記請求項に記載の発明において、前記送出制御手段が、前記受信したパケットデータが、通常送信か再送信かを判定する送信種判定手段と、前記送信種判定手段での判定結果に基づき、前記パケットデータの書き込み先を、前記通常送信用バッファ又は前記再送信用バッファの何れかに指定する指定手段と、前記応答信号が正常か異常かを判定する応答信号判定手段と、前記削除手段及び前記禁止手段の実行を制御して、前記応答信号判定手段での判定結果が、正常の応答信号の場合は前記通常送信用バッファ及び前記再送信用バッファの両方のパケットデータを削除し、異常の応答信号の場合は前記再送信用バッファのパケットデータを削除し、前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、前記異常の応答信号の要因となるパケットデータの削除を禁止するように指示する削除指示手段と、を備える。 According to a second aspect of the present invention, in the first aspect of the invention, the transmission control unit includes a transmission type determination unit that determines whether the received packet data is normal transmission or retransmission, and the transmission type. Based on the determination result of the determination means, a designation means for designating the packet data write destination as either the normal transmission buffer or the retransmission trust buffer, and a response signal for determining whether the response signal is normal or abnormal Control the execution of the determination means, the deletion means and the prohibition means, and when the determination result in the response signal determination means is a normal response signal, both packets of the normal transmission buffer and the retransmission trust buffer remove the data, in case of abnormality in the response signal to delete the packet data of the retransmission buffer, the re-transmission buffer for storing packet data to the next step Until protruding, and a deletion instruction means for instructing the above are normally stored in the storage area of the most downstream stage of the transmission buffer, to prohibit deletion of packet data which causes the response signal of the abnormality .

請求項に記載の発明は、少なくとも受信した画像情報に基づいて記録用紙へ画像を形成する画像形成部と、前記画像形成部による画像形成処理を制御する画像形成制御部と、前記画像形成制御部に対して、配線数がパラレル通信回線よりも少ないシリアル通信回線を介して接続され、前記受信した画像情報を前記画像形成制御部へ送信する主制御部と、前記主制御部が送信側、前記画像形成制御部が受信側とされ、一定間隔毎に前記シリアル通信回線を介してパケットデータを受信する受信側から正常又は異常の応答信号を送信側へ返信し、異常の応答信号を受けた送信側は、該当するパケットデータを前記一定間隔の送信に割り込ませて再送信する通信手順を制御する通信制御手段と、前記再送信以外の通常送信によって受信したパケットデータを格納すると共に格納領域が2段以上設けられた通常送信用バッファと、前記再送信によって受信したパケットデータを格納する再送信用バッファとを備え、前記通常送信用バッファに格納されたパケットデータを先入れ先出し方式に基づき格納領域をシフトさせて次工程へ送出すると共に、前記再送信用バッファに格納されたパケットデータを次工程へ送出する送出制御手段と、前記送出制御手段で送出したパケットデータを、前記通常送信用バッファ又は前記再送信用バッファから削除して次のパケットデータの格納を許可すると共に、前記通常送信用バッファの最下流段の格納領域に格納されたパケットデータが、前記再送信の原因となるパケットデータの場合には、次工程へ送出せずに削除する削除手段と、前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、前記異常の応答信号の要因となるパケットデータの削除を禁止する禁止手段と、を有する画像処理装置である。 According to a third aspect of the present invention, there is provided an image forming unit that forms an image on a recording sheet based on at least received image information, an image forming control unit that controls image forming processing by the image forming unit, and the image forming control. A main control unit that is connected to the unit via a serial communication line having a smaller number of wires than a parallel communication line, and transmits the received image information to the image formation control unit, and the main control unit is a transmission side, The image formation control unit is a receiving side, and a normal or abnormal response signal is returned from the receiving side that receives packet data via the serial communication line at regular intervals, and an abnormal response signal is received. sender, receiving and communication control means for controlling the communication procedure by interrupting the transmission retransmits the corresponding packet data and the predetermined interval, the normal transmission other than the retransmission packets A normal transmission buffer for storing data and having two or more storage areas; and a retransmission trust buffer for storing packet data received by the retransmission, the packet data stored in the normal transmission buffer being Based on the first-in first-out method, the storage area is shifted and sent to the next process, the packet data stored in the retransmission trust buffer is sent to the next process, and the packet data sent by the transmission control means is The packet data stored in the storage area in the most downstream stage of the normal transmission buffer is deleted from the normal transmission buffer or the retransmission trust buffer and allowed to store the next packet data. Packet data that is to be deleted without being sent to the next process; Until the packet data stored in the file is sent to the next process, deletion of the packet data that is stored in the most downstream storage area of the normal transmission buffer and causes the abnormal response signal is prohibited. And an prohibiting unit .

請求項に記載の発明は、一定間隔毎にパケットデータを受信し、再送信以外の通常送信によって受信したパケットデータを格納すると共に格納領域が2段以上設けられた通常送信用バッファに、前記通常送信によって受信したパケットデータを格納し、再送信によって受信したパケットデータを再送信用バッファに格納し、前記通常送信用バッファに格納されたパケットデータを先入れ先出し方式に基づき格納領域をシフトさせて次工程へ送出すると共に、前記再送信用バッファに格納されたパケットデータを次工程へ送出し、送出したパケットデータを、前記通常送信用バッファ又は前記再送信用バッファから削除して次のパケットデータの格納を許可すると共に、前記通常送信用バッファの最下流段の格納領域に格納されたパケットデータが、前記再送信の原因となるパケットデータの場合には、次工程へ送出せずに削除して次のパケットデータの格納を許可することを原則とし、例外として、前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、異常の応答信号の要因となるパケットデータの削除を禁止する、ことを実行させる転送制御プログラムである。 The invention according to claim 4 receives the packet data at regular intervals , stores the packet data received by normal transmission other than retransmission, and stores the packet data in the normal transmission buffer provided with two or more storage areas. the packet data received by the normal transmission to store, stores the packet data received by retransmission to retransmission buffer, the packet data to which the are usually stored in the transmission buffer is shifted to the storage area based on the first-in first-out following And sending the packet data stored in the retransmission trust buffer to the next step, deleting the transmitted packet data from the normal transmission buffer or the retransmission trust buffer , and storing the next packet data. together to allow said is usually stored in a storage area of the most downstream stage of the transmission buffer Pakettode If the packet data is the cause of the retransmission, the packet data is deleted without being sent to the next process and allowed to store the next packet data. Until the transmitted packet data is sent to the next process, it is prohibited to delete the packet data stored in the storage area at the most downstream stage of the normal transmission buffer and causing the abnormal response signal. This is a transfer control program to be executed.

請求項記載の発明によれば、送信側及び受信側で新規にコマンドを作成することなく、パケットデータにおける送信順序と受信順序の入れ替わりを防止することができる。 According to the first aspect of the present invention, it is possible to prevent the transmission order and the reception order in the packet data from being switched without newly creating commands on the transmission side and the reception side.

請求項に記載の発明によれば、パケットデータの削除可否に、既存の応答信号を利用することができる
請求項記載の発明によれば、送信側及び受信側で新規にコマンドを作成することなく、パケットデータにおける送信順序と受信順序の入れ替わりを防止することができる。
According to the second aspect of the present invention, an existing response signal can be used to determine whether or not packet data can be deleted. According to the third aspect of the present invention, a new command is created on the transmission side and the reception side. Therefore, it is possible to prevent the transmission order and the reception order in the packet data from being switched.

請求項記載の発明によれば、送信側及び受信側で新規にコマンドを作成することなく、パケットデータにおける送信順序と受信順序の入れ替わりを防止することができる。

According to the fourth aspect of the present invention, it is possible to prevent the transmission order and the reception order in the packet data from being switched without newly creating commands on the transmission side and the reception side.

本実施の形態に係る画像形成装置の制御装置の概略を示すブロック図である。2 is a block diagram showing an outline of a control device of the image forming apparatus according to the present embodiment. FIG. 本実施の形態に係る制御装置の内、主制御部の概略を示すブロック図である。It is a block diagram which shows the outline of a main control part among the control apparatuses which concern on this Embodiment. 本実施の形態に係る制御装置の内、機器制御部の概略を示すブロック図である。It is a block diagram which shows the outline of an apparatus control part among the control apparatuses which concern on this Embodiment. (A)は本実施の形態に係るパケットデータの一例を示すフォーマット図、(B)はパケットフォーマットの内のヘッダー領域の詳細を示すフォーマット図、(C)はヘッダー領域の内のCS領域のデータ展開図、(D)はヘッダー領域の内のCode領域のデータ展開図、(E)はヘッダー領域の内のSP領域のデータ展開図である。(A) is a format diagram showing an example of packet data according to the present embodiment, (B) is a format diagram showing details of the header area in the packet format, and (C) is data in the CS area in the header area. (D) is a data development view of the Code area in the header area, and (E) is a data development view of the SP area in the header area. 本実施の形態に係るスレーブ側通信制御部の設けられたパケットデータ整列回路の概略を示すブロック図である。It is a block diagram which shows the outline of the packet data alignment circuit provided with the slave side communication control part which concerns on this Embodiment. 本実施の形態に係るマスター側通信制御部とスレーブ側通信制御との間のパケットデータの通信プロトコルを示すタイミングチャートである。It is a timing chart which shows the communication protocol of the packet data between the master side communication control part and slave side communication control which concern on this Embodiment. 本実施の形態に係る画像形成部で実行される、モータロック設定制御ルーチンを示すフローチャートである。It is a flowchart which shows the motor lock setting control routine performed with the image forming part which concerns on this Embodiment.

図1は、本実施の形態に係る画像形成装置の制御装置10の構成例を示す図である。この制御装置10は、マスターとしての主制御部12及びスレーブとしての機器制御部14がシリアルバス16を介して接続されている。   FIG. 1 is a diagram illustrating a configuration example of a control device 10 of the image forming apparatus according to the present embodiment. In the control device 10, a main control unit 12 as a master and a device control unit 14 as a slave are connected via a serial bus 16.

シリアルバス16は、主制御部12から見て機器制御部14への送信用となる信号線Tx、及び主制御部12から見て機器制御部14からの受信用となる信号線Rxを備えた全二重の伝送路である(例えば、LVDS(Low Voltage Differential Signaling)。   The serial bus 16 includes a signal line Tx for transmission to the device control unit 14 when viewed from the main control unit 12 and a signal line Rx for reception from the device control unit 14 when viewed from the main control unit 12. It is a full-duplex transmission line (for example, LVDS (Low Voltage Differential Signaling).

主制御部12は、CPU制御部18とマスター側通信制御部20を備えている。   The main control unit 12 includes a CPU control unit 18 and a master side communication control unit 20.

また、機器制御部14は、マシンコントローラ22とスレーブ側通信制御部24を備えている。   The device control unit 14 includes a machine controller 22 and a slave side communication control unit 24.

CPU制御部18は、CPU26とCPU・I/F28を備えている。CPU18は、画像形成を含み、画像読取、FAX送受信等のその他の画像処理全般を一括して制御する。本実施の形態における画像形成においては、当該画像形成を実行するための画像データの送受信、並びに画像形成を実行するための制御を司るものであり、CPU・I/F28を介して、マスター側通信制御部20のシリアルバス制御部30と接続されている。   The CPU control unit 18 includes a CPU 26 and a CPU / I / F 28. The CPU 18 collectively controls other image processing such as image reading and FAX transmission / reception including image formation. In the image formation in the present embodiment, image data transmission / reception for executing the image formation and control for executing the image formation are managed, and the master side communication is performed via the CPU / I / F 28. The serial bus control unit 30 of the control unit 20 is connected.

マスター側通信制御部20は、前記シリアルバス制御部30に加え、第1のバッファ32、第2のバッファ34、Tx用シリアライザ・デシリアライザ制御部(TxSERDES)36、Rx用シリアライザ・デシリアライザ制御部(RxSERDES)38を備えた、これらは接続するデータバスやコントロールバス等のバス39によって、相互に接続されている。   In addition to the serial bus control unit 30, the master side communication control unit 20 includes a first buffer 32, a second buffer 34, a Tx serializer / deserializer control unit (TxSERDES) 36, an Rx serializer / deserializer control unit (RxSERDES). These are connected to each other by a bus 39 such as a data bus or a control bus to be connected.

シリアルバス制御部30は、図示しない記憶部に記憶されたプログラムを実行し、画像形成処理全般を制御する(詳細後述、図2参照)。   The serial bus control unit 30 executes a program stored in a storage unit (not shown) and controls the entire image forming process (details will be described later, see FIG. 2).

シリアルバス制御部30は、前記CPU26から、CPU・I/F28を介して、画像データ等の送信要求と送信パケットを受信する。   The serial bus control unit 30 receives a transmission request such as image data and a transmission packet from the CPU 26 via the CPU / I / F 28.

また、シリアルバス制御部30は、前記CPU26へ、CPU・I/F28を介して、送信パケットの受信に対して受信完了通知と受信パケットを送出する。   Further, the serial bus control unit 30 sends a reception completion notification and a reception packet to the CPU 26 via the CPU / I / F 28 in response to reception of the transmission packet.

第1のバッファ32は、送信バッファ部32Aと再送バッファ部32Bを備え、それぞれ、シリアルバス制御部30から受けた情報(パラレル信号)を一時的に格納する。   The first buffer 32 includes a transmission buffer unit 32A and a retransmission buffer unit 32B, and temporarily stores information (parallel signals) received from the serial bus control unit 30, respectively.

第2のバッファ34は、受信バッファ部34Aを備え、RxSERDES38から受けた情報(シリアル信号)を一時的に格納する。   The second buffer 34 includes a reception buffer unit 34A, and temporarily stores information (serial signal) received from the RxSERDES 38.

TxSERDES36は、パラレル−シリアル変換回路36Aとフォーマッタ36Bとを備え、第1のバッファ32から機器制御部14に送信するための情報(パラレル信号)を受け取る。   The TxSERDES 36 includes a parallel-serial conversion circuit 36A and a formatter 36B, and receives information (parallel signal) to be transmitted from the first buffer 32 to the device control unit 14.

このTxSERDES36では、当該情報(パラレル信号)をパケット化し、各パケットをシリアル信号に変換して、前記シリアルバス16を介して機器制御部14に送信する。   In this TxSERDES 36, the information (parallel signal) is packetized, each packet is converted into a serial signal, and transmitted to the device control unit 14 via the serial bus 16.

また、RxSERDES38は、シリアル−パラレル変換回路38Aを備え、機器制御部14からシリアルバス16を介してパケット化された情報(シリアル信号)を受信すると、当該受信した情報をパラレル信号に変換してデコードし、該パケットに含まれる情報を取り出し、第2のバッファ34へ送出する。   Further, the RxSERDES 38 includes a serial-parallel conversion circuit 38A. When the packetized information (serial signal) is received from the device control unit 14 via the serial bus 16, the received information is converted into a parallel signal and decoded. The information contained in the packet is extracted and sent to the second buffer 34.

一方、機器制御部14のマシンコントローラ22には、複数の駆動系及びセンサが接続されている。例えば、画像形成を行うための駆動系及びセンサとしては、感光体や現像ロール等を回転させるモータ、用紙検出のためのセンサ、或いはトナー濃度を検出するためのセンサ等が含まれる。また、画像形成は、電子写真方式に限らず、インクジェット方式で画像形成を行なってもよい。   On the other hand, a plurality of drive systems and sensors are connected to the machine controller 22 of the device control unit 14. For example, a drive system and sensors for forming an image include a motor for rotating a photoconductor and a developing roll, a sensor for detecting paper, a sensor for detecting toner density, and the like. Further, the image formation is not limited to the electrophotographic method, and the image formation may be performed by an ink jet method.

また、機器制御部14のスレーブ側通信制御部24は、前記マスター側通信制御部20と同一のハード構成である。すなわち、スレーブ側通信制御部24は、シリアルバス制御部40、第1のバッファ42(送信バッファ部42A、再送バッファ部42B)、第2のバッファ44(受信バッファ部44A)、TxSERDES46(パラレル−シリアル変換回路46A、フォーマッタ46B)、RxSERDES48(シリアル−パラレル変換回路48Aを備え、相互にバス49によって接続されている。   The slave side communication control unit 24 of the device control unit 14 has the same hardware configuration as that of the master side communication control unit 20. That is, the slave-side communication control unit 24 includes a serial bus control unit 40, a first buffer 42 (a transmission buffer unit 42A, a retransmission buffer unit 42B), a second buffer 44 (a reception buffer unit 44A), and a TxSERDES 46 (parallel-serial). A conversion circuit 46A, a formatter 46B), and an RxSERDES 48 (serial-parallel conversion circuit 48A), which are connected to each other by a bus 49.

RxSERDES48は、マスター側通信制御部20のTxSERDES36からシリアルバス16を介して情報(シリアル信号)のパケットを受信すると、該受信したパケットをパラレル信号に変換してデコードし、受信バッファ44に格納する。   When receiving a packet of information (serial signal) from the TxSERDES 36 of the master side communication control unit 20 via the serial bus 16, the RxSERDES 48 converts the received packet into a parallel signal, decodes it, and stores it in the reception buffer 44.

また、TxSERDES46は、主制御部12に送信する情報(パラレル信号)をパケット化し、各パケットをシリアル信号に変換してシリアルバス16を介してマスター側通信制御部20のRxSERDES38に送信する。   The TxSERDES 46 packetizes information (parallel signals) to be transmitted to the main control unit 12, converts each packet into a serial signal, and transmits the serial signal to the RxSERDES 38 of the master side communication control unit 20 via the serial bus 16.

シリアルバス制御部40は、前記マシンコントローラ22から、I/O50を介して、画像データ等の送信要求と送信パケットを受信する。   The serial bus control unit 40 receives a transmission request such as image data and a transmission packet from the machine controller 22 via the I / O 50.

また、シリアルバス制御部40は、前記マシンコントローラ22へ、I/O50を介して、送信パケットの受信に対して受信完了通知と受信パケットを送出する。   In addition, the serial bus control unit 40 sends a reception completion notification and a reception packet to the machine controller 22 via the I / O 50 in response to reception of the transmission packet.

マシンコントローラ22のI/O50には、電子写真方式の画像形成の制御系として、Y色画像制御部52、M色画像制御部54、C色画像形成制御部56、K色画像形成制御部58、並びにセンサ、モータ割込I/F59を備えている。   The I / O 50 of the machine controller 22 includes, as an electrophotographic image formation control system, a Y color image control unit 52, an M color image control unit 54, a C color image formation control unit 56, and a K color image formation control unit 58. In addition, a sensor and a motor interrupt I / F 59 are provided.

図2に示される如く、マスター側通信制御部20のシリアルバス制御部30は、コントローラ60、パケット生成回路62、パケットデコード回路64、及びアドレスカウンタ66、複写レジスタ群68を備えている。   As shown in FIG. 2, the serial bus control unit 30 of the master side communication control unit 20 includes a controller 60, a packet generation circuit 62, a packet decode circuit 64, an address counter 66, and a copy register group 68.

コントローラ60は、プロトコル制御や各構成要素の動作タイミング等を制御することで、第1のバッファ32、第2のバッファ34、TxSERDES36、RxSERDES38を制御する。   The controller 60 controls the first buffer 32, the second buffer 34, the TxSERDES 36, and the RxSERDES 38 by controlling protocol control, operation timing of each component, and the like.

パケット生成回路62は、情報に基づいてパケットデータを生成して第1のバッファ32へ送出する。   The packet generation circuit 62 generates packet data based on the information and sends it to the first buffer 32.

パケットデコード回路64は、受信バッファ34に一時的に格納されたパケットデータをデコードして、当該パケットに含まれる情報を取り出す。   The packet decoding circuit 64 decodes the packet data temporarily stored in the reception buffer 34 and extracts information included in the packet.

アドレスカウンタ66は、複写レジスタ群68へ、スレーブ側通信制御部24のシリアルバス制御部40の制御系の一部である入出力制御レジスタ群78(図3参照、後述)から読出されて転送されたデータを書込むときの書込先のアドレスを生成してコントローラ60に出力する。   The address counter 66 is read and transferred from the input / output control register group 78 (see FIG. 3, described later) which is a part of the control system of the serial bus control unit 40 of the slave side communication control unit 24 to the copy register group 68. A write destination address for writing the data is generated and output to the controller 60.

図3に示される如く、スレーブ側通信制御部24のシリアルバス制御部40は、コントローラ70、パケットデコード回路72、パケット生成回路74、アドレスカウンタ76、及び入出力制御レジスタ群78を備えている。   As shown in FIG. 3, the serial bus control unit 40 of the slave side communication control unit 24 includes a controller 70, a packet decoding circuit 72, a packet generation circuit 74, an address counter 76, and an input / output control register group 78.

コントローラ70は、プロトコル制御や各構成要素の動作タイミング等を制御することで、第1のバッファ42、第2のバッファ44、TxSERDES46、RxSERDES48を制御する。   The controller 70 controls the first buffer 42, the second buffer 44, the TxSERDES 46, and the RxSERDES 48 by controlling the protocol control, the operation timing of each component, and the like.

パケットデコード回路72は、第2のバッファ44に一時的に記憶されたパラレル形式のパケットをデコードして、該パケットに含まれるデータを取り出す。   The packet decoding circuit 72 decodes the parallel-format packet temporarily stored in the second buffer 44, and extracts data included in the packet.

パケット生成回路74は、パケットを生成し、第1のバッファ42へ送出する。   The packet generation circuit 74 generates a packet and sends it to the first buffer 42.

アドレスカウンタ76は、入出力制御レジスタ群78からデータを読み出して複写レジスタ群68(図2参照)に複写するときの、データの読出元のアドレスを生成してコントローラ70に出力する。   The address counter 76 generates an address from which data is read when data is read from the input / output control register group 78 and copied to the copy register group 68 (see FIG. 2), and is output to the controller 70.

複写レジスタ群70(図2参照)へのデータの複写は、予め定められたサイズのデータを入出力制御レジスタ群68から読み出して、順次マスター側通信制御部20へ転送することにより行なわれるため、予め定められたサイズのデータが入出力制御レジスタ群68から読み出される毎に、当該サイズ分インクリメントされたアドレスが出力される。アドレスカウンタ76は、複写レジスタ群68(図2参照)への複写のための入出力制御レジスタ群78からのデータの読出しが終了したとき或いはデータの読出しを開始する際にリセットされる。   Copying of data to the copy register group 70 (see FIG. 2) is performed by reading data of a predetermined size from the input / output control register group 68 and sequentially transferring the data to the master side communication control unit 20. Each time data of a predetermined size is read from the input / output control register group 68, an address incremented by the size is output. The address counter 76 is reset when reading of data from the input / output control register group 78 for copying to the copy register group 68 (see FIG. 2) is completed or when reading of data is started.

(パケットデータ整列制御)
ここで、本実施の形態の画像形成装置の制御装置10では、主制御部12から機器制御部14へのパケット通信に際し、高速転送処理の一環として、主制御部12側において機器制御部14からのAck/Nack信号を待たずに、予め定めた一定間隔ごとにパケット通信を実行している。
(Packet data alignment control)
Here, in the control device 10 of the image forming apparatus according to the present embodiment, when performing packet communication from the main control unit 12 to the device control unit 14, as a part of the high-speed transfer process, the main control unit 12 side receives the device control unit 14. The packet communication is executed at predetermined intervals without waiting for the Ack / Nack signal.

図1に示すマスター側通信制御部20のTxSERDES36によるパケット通信において、フォーマッタ36Bでは、図4(A)に示すようなパケットフォーマット80を構築する。図4(A)に示される如く、パケットフォーマット80は、7ビット(bit)のヘッダー領域80Aの他、5つの領域80B〜80E(ADR領域80B(14bit)、DATA領域80C(16bit)、Pad領域80D(5bit)、CRC7領域80E(7bit))に分割されている。   In the packet communication by the TxSERDES 36 of the master side communication control unit 20 shown in FIG. 1, the formatter 36B constructs a packet format 80 as shown in FIG. As shown in FIG. 4A, the packet format 80 includes a 7-bit header area 80A, five areas 80B to 80E (ADR area 80B (14 bits), DATA area 80C (16 bits), Pad area) 80D (5 bits), CRC7 area 80E (7 bits)).

図4(B)に示される如く、ヘッダー領域80Aは、さらに、チップセレクト領域(CS領域)82(2bit)、コード領域(Code領域)84(4bit)、再送有無領域(SP領域)86(1bit)に分割されている。   As shown in FIG. 4B, the header area 80A further includes a chip select area (CS area) 82 (2 bits), a code area (Code area) 84 (4 bits), and a retransmission presence / absence area (SP area) 86 (1 bit). ).

図4(C)に示される如く、CS領域82の信号は2ビットであり、ビット信号により2種類のチップセレクトコード(Chip0,Chip1)を分類する。   As shown in FIG. 4C, the signal in the CS area 82 is 2 bits, and two types of chip select codes (Chip0, Chip1) are classified by the bit signals.

図4(D)に示される如く、Code領域84の信号は4ビットであり、ビット信号により4種類のパケットデータ(WriteWord,WriteBlock,ReadWord,ReadBlock)を分類する。   As shown in FIG. 4D, the signal in the Code area 84 is 4 bits, and four types of packet data (WriteWord, WriteBlock, ReadWord, ReadBlock) are classified by the bit signal.

図4(E)に示される如く、SP領域86の信号は1ビット、すなわち、0/1(L/H)信号であり、本実施の形態では、信号「0(L)」が再送無し、信号「1(H)」が再送有りを示す。   As shown in FIG. 4E, the signal in the SP area 86 is 1 bit, that is, a 0/1 (L / H) signal. In this embodiment, the signal “0 (L)” is not retransmitted. The signal “1 (H)” indicates the presence of retransmission.

すなわち、図1に示すスレーブ側通信制御部24のシリアルバス制御部40でパケットデータを解析するにあたり、ヘッダー領域80AのSP領域86のビット信号を判定することで、当該パケットデータが、通常の送信データ(通常データ)であるのか、再送データであるのかが認識可能となる。   That is, when the packet data is analyzed by the serial bus control unit 40 of the slave side communication control unit 24 shown in FIG. 1, the bit data in the SP area 86 of the header area 80A is determined so that the packet data is transmitted normally. Whether it is data (normal data) or retransmission data can be recognized.

ところで、通常データと再送データを含め、パケットデータにはナンバリングがなされていない。これは、ナンバリングされているよりも高速送信を目的としている。   By the way, numbering is not performed on packet data including normal data and retransmission data. This is intended for faster transmission than numbered.

一方、スレーブ側通信制御部24において、パケットデータを受け付ける順番が入れ替わることがあり、この入れ替わりがあると、パケットデータによって取得した情報に基づいて実行されるシーケンス制御(例えば、画像形成部のモータロック設定制御等)のコマンドの手順(例えば、図7(後述)参照)がずれによるエラーが発生するまで、再送データ前後のパケットデータの入れ替わりに気づかない場合がある。   On the other hand, in the slave-side communication control unit 24, the order in which the packet data is received may be changed. When this change is made, the sequence control executed based on the information acquired by the packet data (for example, the motor lock of the image forming unit) In some cases, the switching of packet data before and after retransmission data may not be noticed until an error due to a shift in command procedure (for example, setting control) (see FIG. 7 (described later)) occurs.

なお、前記シーケンス制御でエラーが発生した場合、該当する情報の通信を最初からやり直すことで対応している。   Note that when an error occurs in the sequence control, the communication of the corresponding information is performed again from the beginning.

ここで、本実施の形態では、図3に示される如く、シリアルバス制御部40(スレーブ側通信制御部24)のコントローラ70に、パケットデータ整列回路部88を設け、パケットデータの入れ替わりを是正するようにした。   Here, in this embodiment, as shown in FIG. 3, a packet data alignment circuit unit 88 is provided in the controller 70 of the serial bus control unit 40 (slave side communication control unit 24) to correct the exchange of packet data. I did it.

パケットデータ整列回路部88は、マスター側通信制御部20のTxSERDES36(図2参照)から送信され、スレーブ側通信制御部24のRxSERDES48(図3参照)で受信した、ナンバリングされていないパケットデータを、第2のバッファ44の受信バッファ44Aへ一時的に格納する前に、パケットデータのヘッダー領域80A(図4参照)を解析して、再送データを抽出し、通常送信の際の適正な順序に並べ替える処理(整列処理)を行う。   The packet data alignment circuit unit 88 transmits unnumbered packet data transmitted from the TxSERDES 36 (see FIG. 2) of the master side communication control unit 20 and received by the RxSERDES 48 (see FIG. 3) of the slave side communication control unit 24. Before temporarily storing in the reception buffer 44A of the second buffer 44, the header area 80A (see FIG. 4) of the packet data is analyzed to extract retransmission data and arranged in an appropriate order for normal transmission. A process of changing (alignment process) is performed.

図5は、図3に示すパケットデータ整列回路部88による整列処理を機能別に分類したブロック図である。なお、この図5の各ブロックはパケットデータ整列回路部88のハード構成を限定するものではない。例えば、パケットデータ整列回路部88をCPU及びメモリを備えたASICとし、各部の機能をソフトウェアで処理するようにしてもよい。   FIG. 5 is a block diagram in which the sorting processing by the packet data sorting circuit unit 88 shown in FIG. 3 is classified by function. Each block in FIG. 5 does not limit the hardware configuration of the packet data alignment circuit unit 88. For example, the packet data alignment circuit unit 88 may be an ASIC including a CPU and a memory, and the function of each unit may be processed by software.

パケットデータ整列回路部88は、判定回路部90と処理回路部92とを備え、判定回路部90でパケットデータのヘッダー領域80Aの一部として設けられているSP領域86(図4参照)のビット信号を判定し、当該判定した結果に基づいて、処理回路部92でパケットデータを入れ替える。   The packet data alignment circuit unit 88 includes a determination circuit unit 90 and a processing circuit unit 92. The bit of the SP area 86 (see FIG. 4) provided as a part of the header area 80A of the packet data in the determination circuit unit 90. The signal is determined, and the packet data is replaced by the processing circuit unit 92 based on the determined result.

判定回路部90は、前記スレーブ側通信制御部24のRxSERDES48で受信した、ナンバリングされていないパケットデータを受け付けるデータ解析部94を備えている。   The determination circuit unit 90 includes a data analysis unit 94 that receives unnumbered packet data received by the RxSERDES 48 of the slave side communication control unit 24.

データ解析部94では、受け付けたパケットデータを受信バッファセル96へ送出すると共に、パケットデータの中から、ヘッダー領域80Aに含まれるSP領域86のビット信号を選別し、SP信号判定部98へ送出する。   The data analysis unit 94 sends the received packet data to the reception buffer cell 96, selects the bit signal of the SP area 86 included in the header area 80A from the packet data, and sends it to the SP signal determination unit 98. .

SPビット判定部98では、SP領域86のビット信号が「0」信号か「1」信号かを判定し、当該判定結果が書込先指定部99へ送出されるようになっている。書込み先とは、後述する処理回路部90において、パケットデータを一時的に格納する(書き込む)バッファの特定先であり、書込先情報として、「受信0」又は「受信1」が設定される。   The SP bit determination unit 98 determines whether the bit signal in the SP area 86 is a “0” signal or a “1” signal, and the determination result is sent to the write destination designation unit 99. The write destination is a specific destination of a buffer that temporarily stores (writes) packet data in the processing circuit unit 90 to be described later, and “reception 0” or “reception 1” is set as the write destination information. .

書込先指定部99では、前記データ解析部94から受信バッファセル96に送出されたパケットデータに対して、書込先情報(受信0又は受信1)が付加されるようになっている。   The write destination designation unit 99 adds write destination information (reception 0 or reception 1) to the packet data sent from the data analysis unit 94 to the reception buffer cell 96.

受信バッファセル96は、処理回路部92の受信1バッファ100と受信0バッファ102とに接続されている。ここで、判定回路90の受信バッファセル96に一時的に格納したパケットデータは、受信1バッファ100又は受信0バッファ102の何れかに送出されることになるが、このときの送出先(書込み先)が、前記書込先情報(受信0又は受信1)に基づいて特定されるようになっている。   The reception buffer cell 96 is connected to the reception 1 buffer 100 and the reception 0 buffer 102 of the processing circuit unit 92. Here, the packet data temporarily stored in the reception buffer cell 96 of the determination circuit 90 is sent to either the reception 1 buffer 100 or the reception 0 buffer 102. At this time, the transmission destination (write destination) ) Is specified based on the write destination information (reception 0 or reception 1).

すなわち、書込先情報が「受信0」の場合は、受信0バッファ102に送出され、書込先情報が「受信1」の場合は、受信1バッファ100へ送出され、何れにしても、パケットデータは、処理回路部92において一時的に格納される。   That is, when the write destination information is “reception 0”, it is sent to the reception 0 buffer 102, and when the write destination information is “reception 1”, it is sent to the reception 1 buffer 100. Data is temporarily stored in the processing circuit unit 92.

ここで、受信0バッファ102は、2段のシフトレジスタが構築され(受信0バッファ「A」102A、受信0バッファ「B」102B)、判定回路部90から受けたパケットデータを受信0バッファ102が格納する場合は、まず、受信バッファ0「B」102Bに格納されるようになっている。   Here, the reception 0 buffer 102 has a two-stage shift register (reception 0 buffer “A” 102A, reception 0 buffer “B” 102B), and the reception 0 buffer 102 receives the packet data received from the determination circuit unit 90. In the case of storing, the data is first stored in the reception buffer 0 “B” 102B.

また、受信0バッファ102では、パケットデータが受信バッファ0「B」102Bに格納された場合、受信バッファ0「A」102Aが空の状態(クリアされて未格納な状態)であることを条件に、パケットデータを、受信バッファ0「B」102Bから受信バッファ0「A」102Aにシフトさせることが可能となっている。   In the reception 0 buffer 102, when the packet data is stored in the reception buffer 0 “B” 102B, the reception buffer 0 “A” 102A is empty (cleared and not stored). The packet data can be shifted from the reception buffer 0 “B” 102 B to the reception buffer 0 “A” 102 A.

言い換えると、受信バッファ0「A」102Aにパケットデータが残存している場合は、次にパケットデータが受信バッファ0「B」102Bで受信したパケットデータは、シフトが禁止されることになる。   In other words, when packet data remains in the reception buffer 0 “A” 102A, the next packet data received by the reception buffer 0 “B” 102B is prohibited from shifting.

受信0バッファ102及び受信1バッファ100はそれぞれバッファセル104に接続されている。バッファセル104は、受信0バッファ102又は受信1バッファ100から転送されたパケットデータを第2のバッファ44の受信バッファ44Aへ送出するようになっている。   The reception 0 buffer 102 and the reception 1 buffer 100 are connected to the buffer cell 104, respectively. The buffer cell 104 sends the packet data transferred from the reception 0 buffer 102 or the reception 1 buffer 100 to the reception buffer 44A of the second buffer 44.

第2のバッファ44では、正常の受信の際は、受信したパケットデータを下流へ送出すると共に、受信完了通知を出力する。また、第2のバッファ44には、Ack/Nack判定部106が接続されている。このAck/Nack判定部106には、第2のバッファ44からマスター側通信制御部20のRxSERDES38(図1参照)に対して送出するAck/Nack信号(正常受信のときはAck信号、異常受信のときはNack信号)が分岐されて入力されるようになっている。   In normal reception, the second buffer 44 sends the received packet data downstream and outputs a reception completion notification. An Ack / Nack determination unit 106 is connected to the second buffer 44. The Ack / Nack determination unit 106 transmits an Ack / Nack signal transmitted from the second buffer 44 to the RxSERDES 38 (see FIG. 1) of the master-side communication control unit 20 (Ack signal in normal reception, abnormal reception). (Nack signal) is branched and input.

Ack/Nack判定部106は、バッファクリア指示部108に接続されている。   The Ack / Nack determination unit 106 is connected to the buffer clear instruction unit 108.

バッファクリア指示部108は、Ack/Nack判定部106から受けるAck/Nack信号に基づいて、前記受信0バッファ102、受信1バッファ100、バッファセル104のそれぞれに対して、独立してクリア指示(削除指示)信号を出力する。   Based on the Ack / Nack signal received from the Ack / Nack determining unit 106, the buffer clear instructing unit 108 independently issues a clear instruction (deletion) to each of the reception 0 buffer 102, reception 1 buffer 100, and buffer cell 104. Command) signal is output.

より詳しくは、Ack/Nack判定部106からAck信号を受けた場合は、受信0バッファ102(受信0バッファ「A」102A)と受信1バッファ100とバッファセル104に対してクリア指示信号が出力される。   More specifically, when an Ack signal is received from Ack / Nack determination unit 106, a clear instruction signal is output to reception 0 buffer 102 (reception 0 buffer “A” 102 A), reception 1 buffer 100, and buffer cell 104. The

一方、Ack/Nack判定部106からNack信号を受けた場合は、受信1バッファ100とバッファセル104に対してクリア指示信号が出力され、受信0バッファ102(受信0バッファ「A」102A)にはクリア指示信号が出力されない。   On the other hand, when a Nack signal is received from the Ack / Nack determination unit 106, a clear instruction signal is output to the reception 1 buffer 100 and the buffer cell 104, and the reception 0 buffer 102 (reception 0 buffer “A” 102A) is output. Clear instruction signal is not output.

以下に本実施の形態の作用を説明する。   The operation of this embodiment will be described below.

本実施の形態では、パケットデータをマスター側通信制御部20のTxSERDES36から、スレーブ側通信制御部24のRxSERDES48へ転送する際、パケットデータにナンバリングを施すことなく、一定間隔で転送を実行する。   In this embodiment, when packet data is transferred from the TxSERDES 36 of the master-side communication control unit 20 to the RxSERDES 48 of the slave-side communication control unit 24, the packet data is transferred at regular intervals without being numbered.

スレーブ側通信制御部24では、受信した順序に従いパケットデータを解析し、例えば、解析した情報に基づいて、画像形成部でのシーケンス制御(一例として、モータクロック設定制御)を実行する。   The slave side communication control unit 24 analyzes the packet data according to the received order, and executes sequence control (for example, motor clock setting control) in the image forming unit based on the analyzed information.

ところで、パケットデータは、スレーブ側通信制御部24からのNack信号に基づき、再送する場合がある。このとき、通常データと再送データを含め、パケットデータにはナンバリングがなされていない。   Incidentally, the packet data may be retransmitted based on the Nack signal from the slave side communication control unit 24. At this time, packet data is not numbered, including normal data and retransmission data.

このため、スレーブ側通信制御部24において、パケットデータを受け付ける順番が入れ替わる場合がある。   For this reason, in the slave side communication control part 24, the order which receives packet data may change.

そこで、本実施の形態では、スレーブ側通信制御部24(パケットデータ整列回路部88)において、パケットデータの入れ替わりを是正するようにした。   Therefore, in the present embodiment, the slave side communication control unit 24 (packet data alignment circuit unit 88) corrects the replacement of packet data.

図6は、マスター側通信制御部20とスレーブ側通信制御部24との間のパケットデータの通信プロトコルである。   FIG. 6 shows a packet data communication protocol between the master side communication control unit 20 and the slave side communication control unit 24.

なお、以下の説明において、「WriteWord1」〜「WriteWord5」をそれぞれW1〜W5と省略して記すこととする。   In the following description, “WriteWord1” to “WriteWord5” are abbreviated as W1 to W5, respectively.

まず、図6の「W1」及び「W2」のように、正常受信が継続する場合には、受信0バッファ102が適用され、判定回路90の受信バッファセル96→受信0バッファ「B」102B→受信0バッファ「A」102A→バッファセル104と転送され、受信0バッファ「A」102Aとバッファセル104がクリアされることが繰り返される。   First, when normal reception continues as in “W1” and “W2” in FIG. 6, the reception 0 buffer 102 is applied, and the reception buffer cell 96 → the reception 0 buffer “B” 102B of the determination circuit 90 → The reception 0 buffer “A” 102A → the buffer cell 104 is transferred, and the reception 0 buffer “A” 102A and the buffer cell 104 are repeatedly cleared.

一方、図6の「W3」のように、異常受信があると、Nack信号(「Nack3」)が出力され、当該Nack信号に応じて、「W3」の再送を受け、その後、「W4」を受信する。   On the other hand, when there is an abnormal reception as in “W3” in FIG. 6, a Nack signal (“Nack3”) is output, and in response to the Nack signal, “W3” is retransmitted. Receive.

ところが、前述したように、一定間隔のパケット送信の原則に基づき、図6の「W4」のように、Nack信号(「Nack4」)に基づくマスター側通信制御部20からの再送データの受信の前に、異常受信したパケットデータ「W4」の次のパケットデータ「W5」を、受信する場合がある。   However, as described above, based on the principle of packet transmission at regular intervals, as shown in “W4” in FIG. 6, before receiving retransmission data from the master side communication control unit 20 based on the Nack signal (“Nack4”). In addition, the packet data “W5” next to the abnormally received packet data “W4” may be received.

この場合、受信0バッファ102がパケットデータを段階的に移行させる機能を持たないと、図6の比較例のように、パケットデータ「W5」が、再送を待つパケットデータ「W4」よりも先にバッファセル104へ送出されることがあった。   In this case, if the reception 0 buffer 102 does not have a function of shifting the packet data step by step, the packet data “W5” is ahead of the packet data “W4” waiting for retransmission as in the comparative example of FIG. In some cases, the data is sent to the buffer cell 104.

しかし、本実施の形態では、Nack信号(「Nack4」)に基づき、受信0バッファ「A」102Aはクリアされないため(図6の期間tc参照)、パケットデータ「W5」は受信0バッファ「B」に待機となり、この間に、再送されたパケットデータ「W4」が、受信バッファセル96→受信1バッファ100へと転送される。   However, in the present embodiment, since the reception 0 buffer “A” 102A is not cleared based on the Nack signal (“Nack 4”) (see the period tc in FIG. 6), the packet data “W5” is the reception 0 buffer “B”. During this time, the retransmitted packet data “W4” is transferred from the reception buffer cell 96 to the reception 1 buffer 100.

このため、再送されて受信1バッファ100に一時格納されたパケットデータ「W4」が、受信0バッファ「B」102Bに一時格納されたパケットデータ「W5」を追い越して、バッファセル104へ送出される。   For this reason, the packet data “W4” retransmitted and temporarily stored in the reception 1 buffer 100 passes the packet data “W5” temporarily stored in the reception 0 buffer “B” 102B, and is sent to the buffer cell 104. .

この再送されたパケットデータ「W4」が正常であると、Ack信号に基づき、受信0バッファ「A」102Aとバッファセル104がクリアされ、受信0バッファ「B」102Bに一時格納されたパケットデータ「W5」が、受信0バッファ「A」102A→バッファセル104へと転送される。   If the retransmitted packet data “W4” is normal, the reception 0 buffer “A” 102A and the buffer cell 104 are cleared based on the Ack signal, and the packet data “T” temporarily stored in the reception 0 buffer “B” 102B is stored. W5 ”is transferred from the reception 0 buffer“ A ”102A to the buffer cell 104.

図7は、スレーブ側通信制御部24で受信したパケットデータ画像形成部でのシーケンス制御の一例を示すフローチャートである。この図7のフローチャートは、予め定めた順序どおりにパケットデータを受けた場合に正常に動作するようになっており、各ステップがそれぞれ1個又は複数個のパケットデータから解析される情報(Word1〜Word5)に基づき処理されるようになっている。   FIG. 7 is a flowchart showing an example of sequence control in the packet data image forming unit received by the slave side communication control unit 24. The flowchart of FIG. 7 operates normally when packet data is received in a predetermined order, and each step analyzes information (Word1 to Word1) analyzed from one or more packet data. Processing is performed based on Word 5).

すなわち、図7は、画像形成部におけるモータロック設定のシーケンス制御であり、まず、ステップ120で初期化がなされ、次のステップ122でカウントクロックを選択し、次いでステップ124へ移行してクロック周波数を決定し、ステップ126へ移行する。ステップ126では、出力パルス数を決定し、次いでステップ128へ移行してクロック回路をオンして、ステップ130へ移行する。   That is, FIG. 7 shows sequence control of motor lock setting in the image forming unit. First, initialization is performed in step 120, a count clock is selected in the next step 122, and then the process proceeds to step 124 to set the clock frequency. The process proceeds to step 126. In step 126, the number of output pulses is determined, and then the process proceeds to step 128, the clock circuit is turned on, and the process proceeds to step 130.

ステップ130では、上記ステップ120〜ステップ128のモータクロック設定シーケンス制御の動作が正常であるか否かが判断され、正常動作が確認された場合(肯定判定)は、ステップ132へ移行して正常終了し、正常動作が確認されなかった場合(否定判定)は、ステップ134へ移行して異常終了する。この異常終了があると、マスター側通信制御部20に対して、情報の受信異常が報告される。   In step 130, it is determined whether or not the operation of the motor clock setting sequence control in steps 120 to 128 is normal. If normal operation is confirmed (positive determination), the process proceeds to step 132 and ends normally. If the normal operation is not confirmed (negative determination), the process proceeds to step 134 and ends abnormally. If this abnormal termination occurs, an information reception abnormality is reported to the master side communication control unit 20.

この図7のフローチャートにおいて、例えば、ステップ126の出力パルス数決定の処理に必要な情報に関するパケット通信が異常であった場合、ステップ134において、異常であると判断されることになるが、この場合の正常動作が確認されるまでの時間は、スレーブ側通信制御部20でのパケットデータの受信時に再送信を通知して正常に受信するよりも遅延することになる。   In the flowchart of FIG. 7, for example, when packet communication related to information necessary for the process of determining the number of output pulses in step 126 is abnormal, it is determined in step 134 that the packet communication is abnormal. The time until the normal operation is confirmed is delayed compared to the case where the slave side communication control unit 20 receives the packet data and notifies the retransmission and receives it normally.

これに対して、本実施の形態では、パケットデータにナンバリングを行わず、当該ナンバリングを行ったときよりも高速にパケット通信し、かつ、スレーブ側通信制御部20において、異常受信があった場合は、異常受信の代替である再送データが正常に受信されるまで、異常受信のパケットデータ以降のパケットデータを待機させ、パケットデータの受信順序を確保したため、図7のフローチャートのシーケンス処理の時点での情報欠落の回避が可能となる。   On the other hand, in the present embodiment, when packet data is not numbered, packet communication is performed at a higher speed than when the numbering is performed, and the slave-side communication control unit 20 receives an abnormal reception. The packet data after the abnormally received packet data is kept waiting until the retransmission data that is an alternative to the abnormal reception is normally received, and the reception order of the packet data is secured. Therefore, at the time of the sequence processing of the flowchart of FIG. Information loss can be avoided.

なお、本実施の形態では、パケットデータ整列回路88を、シリアルバス制御部40のコントローラ70(スレーブ側通信制御部24)に組み込んだ例を示したが、コントローラ70に組み込む必要はなく、例えば、RxSERDES48と第2のバッファ44の間に直接組み込んでもよいし、スレーブ側通信制御24の一部として機能させれば、個別の回路としてバス49によって接続するようにしてもよい。   In the present embodiment, the example in which the packet data alignment circuit 88 is incorporated in the controller 70 (slave side communication control unit 24) of the serial bus control unit 40 is shown, but it is not necessary to incorporate in the controller 70. It may be incorporated directly between the RxSERDES 48 and the second buffer 44, or may be connected via the bus 49 as a separate circuit if it functions as a part of the slave side communication control 24.

10 制御装置
12 主制御部
14 機器制御部
16 シリアルバス
18 CPU制御部
20 マスター側通信制御部
22 マシンコントローラ
24 スレーブ側通信制御部
26 CPU
28 CPU・I/F
30 シリアルバス制御部
32 第1のバッファ
34 第2のバッファ
36 Tx用シリアライザ・デシリアライザ制御部(TxSERDES)
38 Rx用シリアライザ・デシリアライザ制御部(RxSERDES)
39 バス
32A 送信バッファ部
32B 再送バッファ部
34A 受信バッファ部
36A パラレル−シリアル変換回路
36B フォーマッタ
38A シリアル−パラレル変換回路
40 シリアルバス制御部
42 第1のバッファ
42A 送信バッファ部
42B 再送バッファ部
44 第2のバッファ
44B 受信バッファ部
46 TxSERDES
46A パラレル−シリアル変換回路
46B フォーマッタ
48 RxSERDES
48A シリアル−パラレル変換回路
49 バス
50 I/O
52 Y色画像制御部
54 M色画像制御部
56 C色画像形成制御部
58 K色画像形成制御部
59 センサ、モータ取込I/F
60 コントローラ
62 パケット生成回路
64 パケットデコード回路
66 アドレスカウンタ
68 複写レジスタ群
70 コントローラ
72 パケットデコード回路
74 パケット生成回路
76 アドレスカウンタ
78 入出力制御レジスタ群
80 パケットフォーマット
80A ヘッダー領域
80B ADR領域
80C DATA領域
80D Pad領域
80E CRC7領域
82 チップセレクト領域(CS領域)
84 コード領域(Code領域)
86 再送有無領域(SP領域)
88 パケットデータ整列回路部
90 判定回路部
92 処理回路部
94 データ解析部
96 受信バッファセル
98 SP信号判定部
99 書込先指定部
100 受信1バッファ
102 受信0バッファ
102A 受信0バッファ「A」
102B 受信0バッファ「B」
104 バッファセル
106 Ack/Nack判定部
108 バッファクリア指示部
DESCRIPTION OF SYMBOLS 10 Control apparatus 12 Main control part 14 Equipment control part 16 Serial bus 18 CPU control part 20 Master side communication control part 22 Machine controller 24 Slave side communication control part 26 CPU
28 CPU ・ I / F
30 Serial Bus Control Unit 32 First Buffer 34 Second Buffer 36 Tx Serializer / Deserializer Control Unit (TxSERDES)
38 Rx Serializer / Deserializer Controller (RxSERDES)
39 Bus 32A Transmission buffer unit 32B Retransmission buffer unit 34A Reception buffer unit 36A Parallel-serial conversion circuit 36B Formatter 38A Serial-parallel conversion circuit 40 Serial bus control unit 42 First buffer 42A Transmission buffer unit 42B Retransmission buffer unit 44 Second retransmission buffer unit 44 Buffer 44B Reception buffer 46 TxSERDES
46A Parallel-serial conversion circuit 46B Formatter 48 RxSERDES
48A serial-parallel conversion circuit 49 bus 50 I / O
52 Y-color image control unit 54 M-color image control unit 56 C-color image formation control unit 58 K-color image formation control unit 59 Sensor, motor capture I / F
60 controller 62 packet generation circuit 64 packet decode circuit 66 address counter 68 copy register group 70 controller 72 packet decode circuit 74 packet generation circuit 76 address counter 78 input / output control register group 80 packet format 80A header area 80B ADR area 80C DATA area 80D Pad Area 80E CRC7 area 82 Chip select area (CS area)
84 Code area (Code area)
86 Retransmission presence / absence area (SP area)
88 packet data alignment circuit unit 90 determination circuit unit 92 processing circuit unit 94 data analysis unit 96 reception buffer cell 98 SP signal determination unit 99 write destination designation unit 100 reception 1 buffer 102 reception 0 buffer 102A reception 0 buffer “A”
102B Receive 0 buffer “B”
104 buffer cell 106 Ack / Nack determination unit 108 buffer clear instruction unit

Claims (4)

送信側に設けられた送信側通信機能に基づいて一定間隔毎に送信されるパケットデータを受信する受信機能、及び前記送信側へ少なくとも正常又は再送信を要求する異常の応答信号を返信する返信機能を備えた通信制御手段と、
前記再送信以外の通常送信によって受信したパケットデータを格納すると共に格納領域が2段以上設けられた通常送信用バッファと、前記再送信によって受信したパケットデータを格納する再送信用バッファとを備え、前記通常送信用バッファに格納されたパケットデータを先入れ先出し方式に基づき格納領域をシフトさせて次工程へ送出すると共に、前記再送信用バッファに格納されたパケットデータを次工程へ送出する送出制御手段と、
前記送出制御手段で送出したパケットデータを、前記通常送信用バッファ又は前記再送信用バッファから削除して次のパケットデータの格納を許可すると共に、前記通常送信用バッファの最下流段の格納領域に格納されたパケットデータが、前記再送信の原因となるパケットデータの場合には、次工程へ送出せずに削除する削除手段と、
前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、前記異常の応答信号の要因となるパケットデータの削除を禁止する禁止手段と、
を有する通信制御装置。
A reception function for receiving packet data transmitted at regular intervals based on a transmission side communication function provided on the transmission side, and a reply function for returning an abnormal response signal requesting at least normal or retransmission to the transmission side A communication control means comprising:
The normal transmission buffer for storing packet data received by normal transmission other than the retransmission and having two or more storage areas, and the retransmission credit buffer for storing the packet data received by the retransmission, A transmission control means for shifting the packet data stored in the normal transmission buffer to the next process by shifting the storage area based on a first-in first-out method, and sending the packet data stored in the retransmission trust buffer to the next process;
The packet data transmitted by the transmission control means is deleted from the normal transmission buffer or the retransmission trust buffer to permit storage of the next packet data and stored in the storage area at the most downstream stage of the normal transmission buffer. If the packet data is packet data that causes the retransmission, a deletion unit that deletes the packet data without sending it to the next process;
Until the packet data stored in the retransmission trust buffer is sent to the next step, the packet data that is stored in the storage area at the most downstream stage of the normal transmission buffer and causes the abnormal response signal is deleted. Prohibiting means to prohibit,
A communication control device.
前記送出制御手段が、
前記受信したパケットデータが、通常送信か再送信かを判定する送信種判定手段と、
前記送信種判定手段での判定結果に基づき、前記パケットデータの書き込み先を、前記通常送信用バッファ又は前記再送信用バッファの何れかに指定する指定手段と、
前記応答信号が正常か異常かを判定する応答信号判定手段と、
前記削除手段及び前記禁止手段の実行を制御して、前記応答信号判定手段での判定結果が、正常の応答信号の場合は前記通常送信用バッファ及び前記再送信用バッファの両方のパケットデータを削除し、異常の応答信号の場合は前記再送信用バッファのパケットデータを削除し、前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、前記異常の応答信号の要因となるパケットデータの削除を禁止するように指示する削除指示手段と、
を備える請求項1記載の通信制御装置。
The delivery control means is
Transmission type determination means for determining whether the received packet data is normal transmission or retransmission;
Based on the determination result in the transmission type determination means, a designation means for designating the write destination of the packet data as either the normal transmission buffer or the retransmission trust buffer;
Response signal determining means for determining whether the response signal is normal or abnormal;
The execution of the deletion means and the prohibition means is controlled, and when the determination result by the response signal determination means is a normal response signal, the packet data in both the normal transmission buffer and the retransmission trust buffer are deleted. In the case of an abnormal response signal, the packet data in the retransmission trust buffer is deleted, and until the packet data stored in the retransmission trust buffer is sent to the next process, the storage area in the most downstream stage of the normal transmission buffer Delete instruction means for instructing prohibition of deletion of packet data that is a cause of the abnormal response signal,
A communication control device according to claim 1 .
少なくとも受信した画像情報に基づいて記録用紙へ画像を形成する画像形成部と、  An image forming unit that forms an image on a recording sheet based on at least the received image information;
前記画像形成部による画像形成処理を制御する画像形成制御部と、  An image formation control unit that controls image formation processing by the image forming unit;
前記画像形成制御部に対して、配線数がパラレル通信回線よりも少ないシリアル通信回線を介して接続され、前記受信した画像情報を前記画像形成制御部へ送信する主制御部と、  A main control unit connected to the image formation control unit via a serial communication line having a smaller number of wires than a parallel communication line, and transmitting the received image information to the image formation control unit;
前記主制御部が送信側、前記画像形成制御部が受信側とされ、一定間隔毎に前記シリアル通信回線を介してパケットデータを受信する受信側から正常又は異常の応答信号を送信側へ返信し、異常の応答信号を受けた送信側は、該当するパケットデータを前記一定間隔の送信に割り込ませて再送信する通信手順を制御する通信制御手段と、  The main control unit is a transmission side and the image formation control unit is a reception side, and a normal or abnormal response signal is returned to the transmission side from the reception side receiving packet data via the serial communication line at regular intervals. The transmission side that has received the abnormal response signal, communication control means for controlling the communication procedure for retransmitting the corresponding packet data by interrupting the transmission at the predetermined interval;
前記再送信以外の通常送信によって受信したパケットデータを格納すると共に格納領域が2段以上設けられた通常送信用バッファと、前記再送信によって受信したパケットデータを格納する再送信用バッファとを備え、前記通常送信用バッファに格納されたパケットデータを先入れ先出し方式に基づき格納領域をシフトさせて次工程へ送出すると共に、前記再送信用バッファに格納されたパケットデータを次工程へ送出する送出制御手段と、  The normal transmission buffer for storing packet data received by normal transmission other than the retransmission and having two or more storage areas, and the retransmission credit buffer for storing the packet data received by the retransmission, A transmission control means for shifting the packet data stored in the normal transmission buffer to the next process by shifting the storage area based on a first-in first-out method, and sending the packet data stored in the retransmission trust buffer to the next process;
前記送出制御手段で送出したパケットデータを、前記通常送信用バッファ又は前記再送信用バッファから削除して次のパケットデータの格納を許可すると共に、前記通常送信用バッファの最下流段の格納領域に格納されたパケットデータが、前記再送信の原因となるパケットデータの場合には、次工程へ送出せずに削除する削除手段と、  The packet data transmitted by the transmission control means is deleted from the normal transmission buffer or the retransmission trust buffer to permit storage of the next packet data and stored in the storage area at the most downstream stage of the normal transmission buffer. If the packet data is packet data that causes the retransmission, a deletion unit that deletes the packet data without sending it to the next process;
前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、前記異常の応答信号の要因となるパケットデータの削除を禁止する禁止手段と、  Until the packet data stored in the retransmission trust buffer is sent to the next step, the packet data that is stored in the storage area at the most downstream stage of the normal transmission buffer and causes the abnormal response signal is deleted. Prohibiting means to prohibit,
を有する画像処理装置。An image processing apparatus.
一定間隔毎にパケットデータを受信し、  Receive packet data at regular intervals,
再送信以外の通常送信によって受信したパケットデータを格納すると共に格納領域が2段以上設けられた通常送信用バッファに、前記通常送信によって受信したパケットデータを格納し、再送信によって受信したパケットデータを再送信用バッファに格納し、  Stores packet data received by normal transmission other than retransmission and stores the packet data received by normal transmission in a normal transmission buffer having two or more storage areas, and stores packet data received by retransmission. Store it in the retransmission buffer,
前記通常送信用バッファに格納されたパケットデータを先入れ先出し方式に基づき格納領域をシフトさせて次工程へ送出すると共に、前記再送信用バッファに格納されたパケットデータを次工程へ送出し、  The packet data stored in the normal transmission buffer is sent to the next process by shifting the storage area based on a first-in first-out method, and the packet data stored in the retransmission trust buffer is sent to the next process,
送出したパケットデータを、前記通常送信用バッファ又は前記再送信用バッファから削除して次のパケットデータの格納を許可すると共に、前記通常送信用バッファの最下流段の格納領域に格納されたパケットデータが、前記再送信の原因となるパケットデータの場合には、次工程へ送出せずに削除して次のパケットデータの格納を許可することを原則とし、  The transmitted packet data is deleted from the normal transmission buffer or the retransmission trust buffer to allow storage of the next packet data, and the packet data stored in the storage area at the most downstream stage of the normal transmission buffer is In the case of packet data that causes the retransmission, in principle, the packet data is deleted without being sent to the next process, and storage of the next packet data is permitted.
例外として、前記再送信用バッファに格納されたパケットデータが次工程へ送出するまでは、前記通常送信用バッファの最下流段の格納領域に格納されている、異常の応答信号の要因となるパケットデータの削除を禁止する、  As an exception, until the packet data stored in the retransmission trust buffer is sent to the next process, the packet data that is stored in the storage area at the most downstream stage of the normal transmission buffer and causes an abnormal response signal Prohibit the deletion of
ことを実行させる転送制御プログラム。A transfer control program that makes things happen.
JP2013149744A 2013-07-18 2013-07-18 Communication control device, image processing device, transfer control program Active JP6217206B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013149744A JP6217206B2 (en) 2013-07-18 2013-07-18 Communication control device, image processing device, transfer control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013149744A JP6217206B2 (en) 2013-07-18 2013-07-18 Communication control device, image processing device, transfer control program

Publications (3)

Publication Number Publication Date
JP2015023408A JP2015023408A (en) 2015-02-02
JP2015023408A5 JP2015023408A5 (en) 2016-06-02
JP6217206B2 true JP6217206B2 (en) 2017-10-25

Family

ID=52487524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013149744A Active JP6217206B2 (en) 2013-07-18 2013-07-18 Communication control device, image processing device, transfer control program

Country Status (1)

Country Link
JP (1) JP6217206B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11215185A (en) * 1998-01-22 1999-08-06 Fuji Xerox Co Ltd Device and method for transmitting data
JP2003110565A (en) * 2001-10-01 2003-04-11 Minolta Co Ltd Communication system, transmitter, communication method, communication program, and computer readable recording medium recording the same program
JP4587053B2 (en) * 2007-08-28 2010-11-24 日本電気株式会社 Communication apparatus, communication system, packet loss detection method, and packet loss detection program
WO2011090918A2 (en) * 2010-01-19 2011-07-28 Valens Semiconductor Ltd. Highly utilized communication channel with order and retransmissions

Also Published As

Publication number Publication date
JP2015023408A (en) 2015-02-02

Similar Documents

Publication Publication Date Title
EP1198105A2 (en) High speed transmission line interface
US9201623B2 (en) Control device and image forming apparatus with two controllers
JP2010263328A (en) Image processing apparatus, and image processing method
JP6668964B2 (en) Image forming system, image data transmission unit, and image data transmission method
US20090195838A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP2019068296A (en) Information processing device, control method thereof, and computer program
JP6217206B2 (en) Communication control device, image processing device, transfer control program
JP2012034254A (en) Data transfer device, image formation device, data transfer control method, data transfer control program, and recording medium
CN114125081B (en) Method and device for processing received data and storage medium
JP6136754B2 (en) Communication control apparatus and image forming apparatus
US20170091601A1 (en) Control device, image forming apparatus, and control method
JP2016031547A (en) Signal transfer unit and method for controlling the signal transfer unit
JP6260189B2 (en) COMMUNICATION DEVICE, CONTROL DEVICE, AND IMAGE FORMING DEVICE
JP6213003B2 (en) Communication control device, image processing device, communication control program
JP5913454B2 (en) Control device, first control device, second control device, image forming apparatus
JP6163941B2 (en) Control device and image forming apparatus
JP5713136B2 (en) Control device, first control device, second control device, image forming apparatus
JP6107499B2 (en) Communication control apparatus and image forming apparatus
JP6213029B2 (en) Communication device and communication system
JP5004322B2 (en) Data transfer control method, apparatus, and image forming apparatus
JP5334173B2 (en) Data transfer system and retry control method
JP2009006507A (en) Image forming apparatus
JP3784624B2 (en) Communication direction switching method
JPH06252895A (en) Data transmission system
JP2023006210A (en) Redundant communication device, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160218

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160411

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170110

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170310

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170911

R150 Certificate of patent or registration of utility model

Ref document number: 6217206

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350