JP2005047254A - Output unit, radio communication unit, and output processing system - Google Patents

Output unit, radio communication unit, and output processing system Download PDF

Info

Publication number
JP2005047254A
JP2005047254A JP2004034190A JP2004034190A JP2005047254A JP 2005047254 A JP2005047254 A JP 2005047254A JP 2004034190 A JP2004034190 A JP 2004034190A JP 2004034190 A JP2004034190 A JP 2004034190A JP 2005047254 A JP2005047254 A JP 2005047254A
Authority
JP
Japan
Prior art keywords
data
unit
reception
processing
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004034190A
Other languages
Japanese (ja)
Inventor
Hirotaka Akamatsu
裕隆 赤松
Akihito Tanimoto
晃仁 谷本
Kiyoshi Hashimoto
潔 橋本
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2004034190A priority Critical patent/JP2005047254A/en
Publication of JP2005047254A publication Critical patent/JP2005047254A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To avoid a trouble that a user transmits data from a portable terminal, or the like, regardless of the fact that an output unit is in a data unreceivable state. <P>SOLUTION: When a printer 1 outputs a ready command to a CF type communication card 13 following to initialization processing, the CF type communication card 13 releases interlocked state. After data received from a portable telephone 14 is transferred to the printer 1, the CF type communication card 13 makes a transition to an interlocked state. If the received data is extensions "vnt", "jpg" and "jpeg", the printer 1 outputs the ready command again following to rasterization of that data and the CF type communication card 13 releases interlocked state. During execution of print operation, vCard data of the extension "vcf" is not received by the printer 1 but the data of the extensions "vnt", "jpg" and "jpeg" is received. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

携帯電話などの携帯端末から無線通信でデータを受信し、そのデータに基づき出力処理を行う出力装置、無線通信器及び出力処理システムに係り、詳しくはデータ受信の許可・禁止の処理を行うインターロック技術に関する。   Interlocks for receiving data from mobile terminals such as mobile phones via wireless communication and performing output processing based on the data, wireless communication devices, and output processing systems. Regarding technology.

近年、携帯電話には赤外線通信ポートが標準装備されているものが多い。携帯電話には電話帳機能で入力した知人等の氏名、電話番号、メールアドレス等を含む個人情報データや、カメラ機能で撮影した画像データが保存されており、これらのデータをプリンタに印刷させたい要求がある。   In recent years, many mobile phones are equipped with an infrared communication port as standard. The mobile phone stores personal information data such as names of acquaintances entered through the phone book function, phone numbers, e-mail addresses, etc., and image data taken with the camera function, and these data are to be printed on a printer. There is a request.

従来、携帯用パーソナルコンピュータ(パソコンと称す)とプリンタを赤外線通信で結び、同パソコンのデータを印刷する技術が知られている(例えば特許文献1)。また、この特許文献1では、パソコンなどからプリントデータを赤外線通信により受信し、プリンタに出力するプリンタ通信アダプタに、パソコンとの間で通信を行っている間は表示用LEDを点灯制御し、通信障害が所定時間継続したときには、表示用LEDを点滅するようになっていた。
特開平8−300772号公報
2. Description of the Related Art Conventionally, a technique for connecting a portable personal computer (referred to as a personal computer) and a printer by infrared communication and printing data of the personal computer is known (for example, Patent Document 1). Further, in this Patent Document 1, a printer communication adapter that receives print data from a personal computer or the like by infrared communication and outputs it to a printer controls lighting of a display LED while communicating with the personal computer. When the failure continues for a predetermined time, the display LED blinks.
JP-A-8-300772

ところで、プリンタが複数の通信部を装備している場合、通常は最初にデータを受信した1つの通信部しか有効とされないので、その先に受信されたデータの処理中に他の通信部がデータを受信したとしても受信エラーとなる。しかしながら、操作者からはプリンタがデータ受信可能状態にあるか否かを判断できず、データを何度送信してもその度にエラーとなることも起こり得た。さらに送信したにも拘わらずデータがプリンタ側で受け付けられないので、その送信操作が無駄になるという問題もあった。   By the way, if the printer is equipped with a plurality of communication units, normally only one communication unit that received the data first is valid, so that other communication units may receive data during the processing of the data received earlier. Even if received, a reception error occurs. However, the operator cannot determine whether or not the printer is ready to receive data, and an error may occur every time data is transmitted. Further, since the data is not accepted on the printer side despite the transmission, there is a problem that the transmission operation is wasted.

本発明の目的は、携帯端末などから出力装置に無線通信でデータを送信する際、出力装置が受信できない状態にあるにもかかわらずデータが送信されてしまう不都合を回避できる出力装置、無線通信器及び出力処理ユニットを提供することにある。   An object of the present invention is to provide an output device and a wireless communication device capable of avoiding the inconvenience that data is transmitted even when the output device cannot receive when transmitting data from a portable terminal or the like to the output device by wireless communication. And providing an output processing unit.

上記課題を解決するために、本発明では、携帯端末からのデータを受信する受信部と、該受信部を介して受信したデータに基づき出力処理を行う出力手段とを備えた出力装置において、前記受信部からデータを受信して前記出力処理を行うことが可能か否かを判断する判断手段と、前記判断手段により前記出力処理を行うことが不能と判断された場合は前記受信部からのデータ受信を禁止し、一方、前記出力処理を行うことが可能と判断された場合は前記受信部からのデータ受信を許可するインターロック手段とを備えたことを要旨とする。   In order to solve the above problems, in the present invention, in an output device including a receiving unit that receives data from a mobile terminal, and an output unit that performs output processing based on the data received via the receiving unit, A determination unit that determines whether or not the output process can be performed by receiving data from the reception unit; and the data from the reception unit when the determination unit determines that the output process cannot be performed. The gist of the invention is that it includes an interlocking unit that prohibits reception and permits data reception from the receiving unit when it is determined that the output process can be performed.

これによれば、判断手段は受信部からデータを受信して出力処理を行うことが可能か否かを判断する。インターロック手段は、判断手段により出力処理を行うことが不能と判断された場合は受信部からのデータ受信を禁止し、一方、出力処理を行うことが可能と判断された場合は受信部からのデータ受信を許可する。   According to this, the determination means determines whether it is possible to receive data from the receiving unit and perform output processing. The interlock means prohibits data reception from the receiving unit when it is determined by the determining means that the output process cannot be performed. On the other hand, when it is determined that the output process can be performed, the interlock means Allow data reception.

本発明では、前記受信部から受信したデータに前記出力処理に含まれる複数の処理を順次施す複数の処理部を備え、前記判断手段は、前記第1処理部がデータ処理中であるか否かを判断し、前記インターロック手段は、前記複数の処理部のうち受信部から受信したデータに最初の処理を施す第1処理部がデータ処理中である場合は前記受信部からのデータ受信を禁止し、一方、前記第1処理部が次の第2処理部へデータを受け渡し済みである場合は前記受信部からのデータ受信を許可することを要旨とする。   In the present invention, it comprises a plurality of processing units for sequentially performing a plurality of processes included in the output process on the data received from the receiving unit, and the determination means determines whether or not the first processing unit is processing data. And the interlock means prohibits data reception from the receiving unit when the first processing unit that performs the first processing on the data received from the receiving unit among the plurality of processing units is processing data. On the other hand, the gist is to permit data reception from the receiving unit when the first processing unit has passed the data to the next second processing unit.

これによれば、インターロック手段は、複数の処理部のうち受信部から受信したデータに最初の処理を施す第1処理部がデータ処理中である場合は受信部からのデータ受信を禁止する。一方、第1処理部が次の第2処理部へデータを受け渡し済みである場合は受信部からのデータ受信を許可する。   According to this, the interlock means prohibits data reception from the receiving unit when the first processing unit that performs the first process on the data received from the receiving unit among the plurality of processing units is performing data processing. On the other hand, when the first processing unit has passed the data to the next second processing unit, data reception from the receiving unit is permitted.

また、本発明の出力装置では、前記判断手段は、第1処理部から第2処理部へデータを送るデータ経路が使用中であるか否かを判断するものであって、前記インターロック手段は、前記データ経路が使用中と判断されたときは前記受信部からのデータの受信を禁止し、一方、前記データ経路が使用中でないと判断されたときは前記受信部からの受信を許可することを要旨とする。   In the output device of the present invention, the determination means determines whether a data path for sending data from the first processing section to the second processing section is in use, and the interlock means When it is determined that the data path is in use, reception of data from the receiving unit is prohibited. On the other hand, when it is determined that the data path is not in use, reception from the receiving unit is permitted. Is the gist.

これによれば、判断手段は、第1処理部から第2処理部へデータを送るデータ経路が使用中であるか否かを判断する。インターロック手段は、データ経路が使用中と判断されたときは受信部からの受信を禁止し、一方、データ経路が使用中でないと判断されたときは受信部からの受信を許可する。   According to this, the determination means determines whether or not the data path for sending data from the first processing unit to the second processing unit is in use. The interlock means prohibits reception from the receiving unit when it is determined that the data path is in use, and permits reception from the receiving unit when it is determined that the data path is not in use.

本発明の出力装置では、前記判断手段は、前記第1処理部から第2処理部へデータを送り終えたと判断したときは、さらに第2処理部における処理が終了したか否かを判断し、前記インターロック手段は、前記第2処理部がデータ処理中である場合は、前記受信部からの受信を禁止し、前記第2処理部が処理を終了している場合は、前記受信部からの受信を許可することを要旨とする。   In the output device of the present invention, when the determination unit determines that the data has been sent from the first processing unit to the second processing unit, the determination unit further determines whether the processing in the second processing unit is completed, The interlock means prohibits reception from the receiving unit when the second processing unit is processing data, and from the receiving unit when the second processing unit ends processing. The gist is to allow reception.

これによれば、判断手段は、第1処理部から第2処理部へデータを送り終えたと判断したときは、さらに第2処理部における処理が終了したか否かを判断する。インターロック手段は、第2処理部がデータ処理中である場合は、受信部からの受信を禁止し、第2処理部が処理を終了している場合は、受信部からの受信を許可する。   According to this, when it is determined that the data has been sent from the first processing unit to the second processing unit, the determination unit further determines whether or not the processing in the second processing unit has ended. The interlock means prohibits reception from the reception unit when the second processing unit is processing data, and permits reception from the reception unit when the second processing unit has finished processing.

また、本発明の出力装置では、前記受信部がデータを受信したことを通知する通知手段と、前記通知手段からの通知に基づいて前記受信部から受信されたデータが前記出力処理の終了までに複数の処理部を転送する転送経路を予め確保する予約手段を備えることを要旨とする。   In the output device of the present invention, the notification unit that notifies the reception unit that the data has been received, and the data received from the reception unit based on the notification from the notification unit until the end of the output process. The gist of the present invention is to provide a reservation unit that secures a transfer path for transferring a plurality of processing units in advance.

これによれば、通知手段は受信部がデータを受信したことを通知する。予約手段は、通知手段からの通知に基づいて受信部から受信されたデータが出力処理の終了までに複数の処理部を転送する転送経路を予め確保する。   According to this, the notifying means notifies that the receiving unit has received the data. The reservation unit reserves in advance a transfer path through which the data received from the receiving unit is transferred to the plurality of processing units by the end of the output process based on the notification from the notification unit.

本発明の出力装置では、前記受信部は、出力装置本体に着脱可能に取着される無線通信器を介してデータ受信可能に構成されており、前記無線通信器は受信したデータを前記出力装置本体の前記受信部に転送するとインターロック状態に移行する制御部を有し、前記インターロック手段は、前記受信部からのデータ受信を許可する場合はインターロックを解除する解除信号を無線通信器に送信し、前記受信部からのデータ受信を禁止するときは前記無線通信器に前記解除信号を送信しないことを要旨とする。   In the output device of the present invention, the receiving unit is configured to be able to receive data via a wireless communication device that is detachably attached to the output device body, and the wireless communication device receives the received data in the output device. When the data is transferred to the receiving unit of the main body, the control unit shifts to an interlock state, and the interlock means sends a release signal for releasing the interlock to the wireless communication device when allowing data reception from the receiving unit. The gist is not to transmit the release signal to the wireless communication device when transmitting and prohibiting data reception from the receiving unit.

これによれば、無線通信器の制御部を受信したデータを出力装置本体の受信部に転送するとインターロック状態に移行する。出力装置本体側のインターロック手段は、受信部からのデータ受信を許可する場合はインターロックを解除する解除信号を無線通信器に送信する。一方、受信部からのデータ受信を禁止するときは無線通信器に解除信号を送信しない。   According to this, when the data received by the control unit of the wireless communication device is transferred to the receiving unit of the output device main body, the interlock state is entered. The interlock unit on the output device body side transmits a release signal for releasing the interlock to the wireless communication device when permitting data reception from the receiving unit. On the other hand, when the reception of data from the receiving unit is prohibited, the release signal is not transmitted to the wireless communication device.

さらに本発明の出力装置では、前記受信部からの受信が許可されるか禁止されるかを報知する報知手段と、前記インターロック手段からの入力信号に基づき報知手段を制御する報知制御部とを備え、前記インターロック手段は、前記受信部からの受信を許可するときに前記報知制御部に受信許可信号を出力し、前記受信部からの受信を禁止するときには前記報知制御部に受信禁止信号を出力し、前記報知制御部は、前記受信許可信号に基づいて前記報知手段に受信可能な旨を報知させ、前記受信禁止信号に基づいて前記報知手段に受信不能な旨を報知させることを要旨とする。   Furthermore, in the output device of the present invention, a notifying unit for notifying whether reception from the receiving unit is permitted or prohibited, and a notifying control unit for controlling the notifying unit based on an input signal from the interlock unit, The interlock means outputs a reception permission signal to the notification control unit when permitting reception from the reception unit, and outputs a reception prohibition signal to the notification control unit when prohibiting reception from the reception unit. And the notification control unit notifies the notification means that reception is possible based on the reception permission signal, and notifies the notification means that reception is not possible based on the reception prohibition signal. To do.

これによれば、報知手段は、受信部からの受信が許可されるか禁止されるかを報知する。報知制御部は、インターロック手段からの入力信号に基づき報知手段を制御する。インターロック手段は、受信部からの受信を許可するときに報知制御部に受信許可信号を出力し、受信部からの受信を禁止するときには報知制御部に受信禁止信号を出力する。報知制御部は、受信許可信号に基づいて報知手段に受信可能な旨を報知させ、受信禁止信号に基づいて報知手段に受信不能な旨を報知させる。   According to this, the notification means notifies whether reception from the receiving unit is permitted or prohibited. The notification control unit controls the notification unit based on an input signal from the interlock unit. The interlock means outputs a reception permission signal to the notification control unit when permitting reception from the reception unit, and outputs a reception prohibition signal to the notification control unit when prohibiting reception from the reception unit. The notification control unit notifies the notification unit that reception is possible based on the reception permission signal, and notifies the notification unit that reception is not possible based on the reception prohibition signal.

また、本発明の出力装置において、前記受信部からの受信が許可されるか禁止されるかを報知する報知手段と、前記制御部は、インターロック状態に移行すると前記報知手段に受信不能の旨を報知させ、前記インターロック手段から前記受信部を介して解除信号を受信すると前記報知手段に受信可能の旨を報知させることを要旨とする。   Further, in the output device of the present invention, the notifying means for notifying whether the reception from the receiving unit is permitted or prohibited, and the control unit is incapable of receiving to the notifying unit when the interlock state is entered. And when the release signal is received from the interlock means via the receiving section, the notifying means is informed that reception is possible.

これによれば、無線通信器に内蔵された制御部は、受信したデータを出力装置本体側の受信部に転送し終えたことによりインターロック状態に移行すると、報知手段に受信不能の旨を報知させる。一方、出力装置本体側のインターロック手段から受信部を介して解除信号を受信すると、報知手段に受信可能の旨を報知させる。よって、無線通信器がデータを受信可能か受信不能かを報知手段によって知ることができる。   According to this, when the control unit built in the wireless communication device shifts to the interlock state because the received data has been transferred to the receiving unit on the output device main body side, it notifies the notification means that reception is impossible. Let On the other hand, when the release signal is received via the receiving unit from the interlock unit on the output device main body side, the notifying unit is notified that reception is possible. Therefore, it is possible to know whether the wireless communication device can receive data or not by the notification means.

また、本発明の出力装置では、前記制御部は携帯端末との間で第1転送処理を行うとともに前記受信部との間で第2転送処理を行うものであって、前記無線通信器内の前記制御部の通信異常を前記受信部を介して検出する検出手段と、前記検出手段により通信異常が検出されると前記無線通信器内の制御部をリセットするリセット手段とを備えたことを要旨とする。   In the output device of the present invention, the control unit performs a first transfer process with the portable terminal and performs a second transfer process with the reception unit, The present invention comprises: a detecting unit that detects a communication abnormality of the control unit via the receiving unit; and a reset unit that resets the control unit in the wireless communication device when the detecting unit detects a communication abnormality. And

これによれば、無線通信器内の制御部は、携帯端末との間で第1転送処理を行うとともに受信部との間で第2転送処理を行う。受信部は携帯端末からのデータを無線通信器を介して受信する。検出手段が無線通信器内の制御部の通信異常を検出すると、リセット手段は無線通信器内の制御部をリセットする。   According to this, the control part in a radio | wireless communication apparatus performs a 1st transfer process between portable terminals, and performs a 2nd transfer process between receiving parts. The receiving unit receives data from the portable terminal via the wireless communication device. When the detection unit detects a communication abnormality of the control unit in the wireless communication device, the reset unit resets the control unit in the wireless communication device.

また、本発明の出力装置では、携帯端末等からのデータを受信する通信ポートと、該通信ポートを介して受信したデータに基づき出力処理を行う出力手段とを備えた出力装置において、前記通信ポートからデータを受信して前記出力処理を行うことが可能か否かを判断する判断手段と、前記判断手段により前記出力処理を行うことが不能と判断された場合は前記通信ポートからのデータ受信を禁止し、一方、前記出力処理を行うことが可能と判断された場合は前記通信ポートからのデータ受信を許可するインターロック手段と、前記インターロック手段により前記通信ポートからのデータ受信を禁止している間に、新たに受信を許可されたことを前記判断手段が判断した場合は、前記出力処理での既に受信しているデータの処理を中断して、前記新たに受信を許可されたデータの出力処理を施す割込み手段とを備えたことを要旨とする。   Further, in the output device of the present invention, in the output device including a communication port that receives data from a portable terminal or the like, and an output unit that performs output processing based on the data received through the communication port, the communication port A determination means for determining whether the output process can be performed by receiving data from the communication port; and, if the determination means determines that the output process cannot be performed, receives the data from the communication port. On the other hand, if it is determined that the output process can be performed, an interlock unit that permits data reception from the communication port, and the interlock unit prohibits data reception from the communication port. If the determination means determines that the reception is newly permitted, the processing of the data already received in the output processing is interrupted, Serial and gist that a interruption means for performing an output process of the new data that is allowed to receive.

これによれば、本発明の出力装置は、携帯端末等(ホストコンピュータ、BT(ブルートゥース通信)対応端末、またはUSB(Universal Serial Bus)を使用した機器等)のデータを通信ポートを介して受信し、受信したデータに基づいて出力処理を施す。通信ポートからデータを受信して出力処理を行うことが可能か否かを判断手段が判断する。そして、インターロック手段は、判断手段により出力処理を行うことが不能と判断された場合は通信ポートからのデータ受信を禁止し、一方、出力処理を行うことが可能と判断された場合は通信ポートからのデータ受信を許可する。このように判断手段とインターロック手段とによって受信が許可されると、その受信が許可されたデータの受信及び出力処理は整然と(順番通りに)施される。場合によっては、現在出力処理をしているデータの処理を中断してまでも、後のデータを先に出力させたいこともある。このため、インターロック手段により通信ポートからのデータ受信を禁止している間に、優先して出力処理をすべきデータであって新たに受信を許可できるデータであることを判断手段が判断した場合、割込み手段は、出力処理での既に受信しているデータの処理を中断して、受信を許可されて新たに受信したデータに出力処理を優先的に施す。新たに受信を許可できるデータ(すなわち優先して出力処理を行うべきデータ)である旨は、例えばデータと別々に送信される信号またはコマンド、あるいはヘッダ中のコードまたはコマンド等によって判断手段は判断する。よって、後から受信されたデータを、先に受信されたデータよりも先に出力させることができる。   According to this, the output device of the present invention receives data of a portable terminal or the like (a host computer, a terminal compatible with BT (Bluetooth communication), or a device using USB (Universal Serial Bus)) via the communication port. Then, output processing is performed based on the received data. The determination unit determines whether it is possible to receive data from the communication port and perform output processing. The interlock means prohibits data reception from the communication port when it is determined by the determination means that the output process cannot be performed, while the communication port determines that the output process can be performed. Allow data reception from. When reception is permitted by the determination means and the interlock means in this way, the reception and output processing of the data permitted to be received is performed in order (in order). In some cases, it may be desirable to output the subsequent data first even if the processing of the data currently being output is interrupted. For this reason, when the determination means determines that the data to be preferentially output and can be newly received while the reception of data from the communication port is prohibited by the interlock means The interrupt means interrupts the processing of the already received data in the output processing, and preferentially performs the output processing on the newly received data that is permitted to be received. The determination means determines whether the data can be newly permitted to be received (that is, data to be preferentially output), for example, by a signal or command transmitted separately from the data, or a code or command in the header . Therefore, data received later can be output earlier than data received earlier.

また、本発明は、前記出力装置の出力装置本体に着脱可能に取着される無線通信器であって、前記無線通信器が受信したデータを前記受信部に転送し終えるとインターロック状態に移行し、一方、前記インターロック手段から前記受信部を介して解除信号を受信するとインターロック状態を解除する前記制御部と、前記制御部により制御される前記報知手段としての表示部とを備えたことを要旨とする。   Further, the present invention is a wireless communication device that is detachably attached to the output device main body of the output device, and shifts to an interlock state when data received by the wireless communication device is transferred to the receiving unit. On the other hand, when the release signal is received from the interlock means via the receiving section, the control section that releases the interlock state and the display section as the notification means controlled by the control section are provided. Is the gist.

この無線通信器によれば、前記出力装置本体に無線通信器が取着される出力装置の発明と同様の作用効果を得ることができる。
また、本発明の無線通信器では、前記制御部は前記リセット手段からのリセット信号を入力することでリセットされることを要旨とする。
According to this wireless communication device, it is possible to obtain the same operational effects as the invention of the output device in which the wireless communication device is attached to the output device body.
Further, the gist of the wireless communication device of the present invention is that the control unit is reset by inputting a reset signal from the reset means.

さらに本発明の出力処理システムは、前記出力装置と、前記無線通信器とを備え、前記無線通信器は出力装置本体に着脱可能に取着されることを要旨とする。
この出力処理システムでは、前記出力装置の発明及び前記無線通信器の発明の作用効果を得ることができる。
Furthermore, the output processing system of the present invention includes the output device and the wireless communication device, and the wireless communication device is detachably attached to the output device main body.
In this output processing system, the effects of the invention of the output device and the invention of the wireless communication device can be obtained.

以下、本発明を具体化した一実施形態を図面に従って説明する。
図1は、プリンタ1の斜視図を示す。図1において、出力装置としてのプリンタ1は、インクジェット式プリンタであって、その本体2の背面側には自動給紙装置3のシートフィーダ4及びロール紙支持部5が設けられている。シートフィーダ4には、単票紙(図示せず)がセットされ、本体2内部に給紙される。また、ロール紙支持部5には、ロール紙P1がセットされ、本体2内部に給紙される。本体2の中央には、カバー6が設けられ、そのカバー6内には印刷機構が配設され、その印刷機構の作動により印刷された印刷媒体としての用紙P(単票紙又はロール紙)が前側下部の排紙口7から排出される。また、本体2の上面右側には、操作パネル8が設けられている。
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, an embodiment of the invention will be described with reference to the drawings.
FIG. 1 is a perspective view of the printer 1. In FIG. 1, a printer 1 as an output device is an ink jet printer, and a sheet feeder 4 and a roll paper support 5 of an automatic paper feeder 3 are provided on the back side of a main body 2. A sheet paper (not shown) is set in the sheet feeder 4 and fed into the main body 2. Further, the roll paper P 1 is set on the roll paper support portion 5 and fed into the main body 2. A cover 6 is provided in the center of the main body 2, and a printing mechanism is provided in the cover 6, and a sheet P (cut sheet paper or roll paper) as a printing medium printed by the operation of the printing mechanism. The paper is discharged from the front lower discharge port 7. An operation panel 8 is provided on the right side of the upper surface of the main body 2.

図2に示すように、操作パネル8は、表示画面9aを有する表示装置9と、複数の操作スイッチからなる操作部10とを備えている。表示装置9は、液晶表示装置であって、例えば用紙の種類(単票紙又はロール紙)、用紙サイズ、レイアウト、写真選択、印刷枚数等をマニュアル選択するためのメニューを表示画面9aに表示する。   As shown in FIG. 2, the operation panel 8 includes a display device 9 having a display screen 9a and an operation unit 10 including a plurality of operation switches. The display device 9 is a liquid crystal display device, and displays, for example, a menu for manually selecting a paper type (cut sheet or roll paper), paper size, layout, photo selection, number of prints, and the like on the display screen 9a. .

また、操作部10には、プリンタ1に電源投入するための電源スイッチ10a、エラー発生時に押されるメンテナンススイッチ10b、ロール紙を操作する時に押されるロール紙スイッチ10cが設けられている。さらに、操作部10には、印刷開始スイッチ10d、中止スイッチ10e、上スイッチ10f、下スイッチ10g、決定スイッチ10h、戻りスイッチ10iが設けられている。印刷開始スイッチ10dは単票紙又はロール紙に画像の印刷を開始するときに押される。中止スイッチ10eは、実行中の印刷を中止するときや、非印刷状態のときに表示画面9aの入力内容を破棄するときに押される。上スイッチ10f及び下スイッチ10gは、表示画面9aでのメニュー選択や各種設定項目を選択する際のカーソル移動や、入力すべき数値の増減を行うときに押される。決定スイッチ10hは表示画面9aの表示を次画面に進めたり、表示画面9aを使って入力した設定内容を確定するときに押される。戻りスイッチ10iは、表示画面9aに表示される画面を初期画面に戻すときや、表示画面9aの表示を一つ前の画面に戻すときに操作される。   The operation unit 10 is also provided with a power switch 10a for powering on the printer 1, a maintenance switch 10b that is pressed when an error occurs, and a roll paper switch 10c that is pressed when operating the roll paper. Further, the operation unit 10 is provided with a print start switch 10d, a cancel switch 10e, an upper switch 10f, a lower switch 10g, a determination switch 10h, and a return switch 10i. The print start switch 10d is pressed when starting to print an image on a cut sheet or roll paper. The cancel switch 10e is pressed when canceling printing that is being executed or when discarding the input content on the display screen 9a when the printer is in a non-printing state. The upper switch 10f and the lower switch 10g are pressed when selecting a menu on the display screen 9a, moving a cursor when selecting various setting items, or increasing / decreasing numerical values to be input. The decision switch 10h is pushed when the display on the display screen 9a is advanced to the next screen or when the setting content input using the display screen 9a is confirmed. The return switch 10i is operated when returning the screen displayed on the display screen 9a to the initial screen or when returning the display of the display screen 9a to the previous screen.

図1に示すように、プリンタ1の本体2の右側上部には、第2表示装置11が取り付けられている。第2表示装置11の表示画面11aには、用紙Pに印刷される印刷画像が事前に表示される。   As shown in FIG. 1, a second display device 11 is attached to the upper right side of the main body 2 of the printer 1. A print image to be printed on the paper P is displayed in advance on the display screen 11 a of the second display device 11.

本体2の正面右側には、カードスロット(CFカードスロット)12が設けられ、そのカードスロット12には赤外線通信機能内蔵CF(コンパクトフラッシュ(R))型カード(赤外線通信カード)(以下、CF型通信カードという)13が挿抜可能にセットされる。CF型通信カード13は、IrDA(Infrared Data Association)に準拠した赤外線通信機能を有したIrDAモジュールであって、カードスロット12にセットすることで、プリンタ1に赤外線データを受信可能な赤外線通信機能を付与する。プリンタ1は、CF型通信カード13が携帯電話14から受信したデータを取り込んでそのデータに基づく印刷処理を行う。   A card slot (CF card slot) 12 is provided on the front right side of the main body 2, and the card slot 12 has a CF (compact flash (R)) type card (infrared communication card) (hereinafter referred to as a CF type) with a built-in infrared communication function. (Referred to as a communication card) 13 is set to be insertable / removable. The CF type communication card 13 is an IrDA module having an infrared communication function compliant with IrDA (Infrared Data Association), and is set in the card slot 12 so that the printer 1 has an infrared communication function capable of receiving infrared data. Give. The printer 1 takes in data received from the mobile phone 14 by the CF type communication card 13 and performs a printing process based on the data.

本実施形態における携帯電話14は、電話機能及び赤外線通信機能の他、電話番号等を含む個人情報を登録管理できる電話帳機能、他の携帯電話との間で電子メールを送受信できる電子メール機能、静止画又は動画を撮影できるカメラ機能などの多機能を備えている。携帯電話14は、電話帳機能で扱う個人情報データ(テキストデータ)と、カメラ機能で扱う画像データとを、赤外線通信対応のファイル形式でそれぞれ管理している。詳しくは、個人情報データはvCard(TM)ファイル形式で管理され、画像データはvNote(TM)ファイル形式で管理されている。よって、携帯電話14に管理されているvCardファイル形式の個人情報データ又はvNoteファイル形式の画像データは、カードスロット12にセットされたCF型通信カード13を通じてプリンタ1に受信される。また、携帯電話14は、他の携帯電話やパソコン等との間で携帯電話網を通じて電子メールや画像データを送受信できる。なお、カードスロット12にデジタルカメラ用のCF型メモリカードをセットすれば、デジタルカメラで撮影した画像データをCF型メモリカードからプリンタ1に読み込んで印刷させることもできる。   The mobile phone 14 in the present embodiment includes a telephone function and an infrared communication function, a telephone book function capable of registering and managing personal information including a telephone number, an electronic mail function capable of sending and receiving electronic mails with other mobile phones, It has multiple functions such as a camera function that can capture still images or moving images. The mobile phone 14 manages personal information data (text data) handled by the phone book function and image data handled by the camera function in a file format compatible with infrared communication. Specifically, personal information data is managed in the vCard (TM) file format, and image data is managed in the vNote (TM) file format. Therefore, personal information data in the vCard file format or image data in the vNote file format managed by the mobile phone 14 is received by the printer 1 through the CF type communication card 13 set in the card slot 12. The mobile phone 14 can send and receive e-mails and image data to and from other mobile phones and personal computers through the mobile phone network. If a CF memory card for a digital camera is set in the card slot 12, image data captured by the digital camera can be read from the CF memory card to the printer 1 and printed.

図3に示すように、CF型通信カード13にはその正面(前面)に通信ポートとなる赤外線受発光部13aと表示部13bとが設けられている。赤外線受発光部13aは、受光素子と発光素子とを有し、発光素子はキャリア周波数例えば25〜50kHzの搬送波で搬送されるパルス位相変調されたビット信号からなる赤外線をその発光のオン・オフにより出力し、受光素子は同様の方式で表現されるビット信号からなる赤外線を受光する。表示部13bは、発光色の異なる複数の発光ダイオード(LED)からなり、CF型通信カード13のデータ受信状態を、発光色、点灯、点滅及び消灯の組合わせにより報知する。また、CF型通信カード13の背面には図示しないコネクタが形成され、このコネクタがカードスロット12の奥面に設けられたプリンタ側コネクタと電気的に接続される。CF型通信カード13はIrDA通信の通信インターフェイス部を構成する。   As shown in FIG. 3, the CF-type communication card 13 is provided with an infrared light receiving / emitting unit 13a and a display unit 13b serving as communication ports on the front surface (front surface). The infrared light emitting / receiving unit 13a includes a light receiving element and a light emitting element, and the light emitting element emits infrared light composed of a pulse signal modulated by a carrier wave having a carrier frequency of, for example, 25 to 50 kHz by turning on / off the light emission. The light receiving element outputs infrared light composed of bit signals expressed in the same manner. The display unit 13b includes a plurality of light emitting diodes (LEDs) having different emission colors, and notifies the data reception state of the CF type communication card 13 by a combination of the emission color, lighting, blinking, and extinguishing. A connector (not shown) is formed on the back surface of the CF-type communication card 13, and this connector is electrically connected to a printer-side connector provided on the back surface of the card slot 12. The CF-type communication card 13 constitutes a communication interface unit for IrDA communication.

図1に示すように、CF型通信カード13の前面に設けられた赤外線受発光部13aと表示部13bは、CF型通信カード13がカードスロット12にセットされた状態で露出する位置にあり、携帯電話14を操作するユーザ(操作者)から共に視認可能な位置にある。赤外線受発光部13a,20間の通信可能な最大距離(以下、最大通信距離という)は、例えば10〜50cm内の値である。赤外線は比較的指向性が高い通信媒体であるので、携帯電話14からデータを送信する際は携帯電話14の赤外線受発光部20を赤外線受発光部13aに所定の広がり角度(本例では60度)以内でなるべく真っ直ぐ向け、データ送信に要する約10秒〜1分程度の間、その状態を保持する必要がある。このとき、表示部13bと赤外線受発光部13aは、共にCF型通信カード13に設けられていることによって、携帯電話14を操作又は保持するユーザ(操作者)の同一視野内に入るようになっている。   As shown in FIG. 1, the infrared light receiving / emitting unit 13 a and the display unit 13 b provided on the front surface of the CF type communication card 13 are in a position where the CF type communication card 13 is exposed in a state where it is set in the card slot 12. Both are visible from the user (operator) who operates the mobile phone 14. The maximum communicable distance between the infrared light emitting / receiving units 13a and 20 (hereinafter referred to as the maximum communication distance) is, for example, a value within 10 to 50 cm. Since infrared is a communication medium having relatively high directivity, when transmitting data from the mobile phone 14, the infrared light receiving / emitting unit 20 of the mobile phone 14 is directed to the infrared light receiving / emitting unit 13a at a predetermined spread angle (60 degrees in this example). ) It is necessary to keep the state as straight as possible within about 10 seconds to 1 minute required for data transmission. At this time, the display unit 13b and the infrared light receiving / emitting unit 13a are both provided in the CF type communication card 13, so that the user (operator) who operates or holds the mobile phone 14 enters the same field of view. ing.

図4(a)は正面から見た携帯電話を示す。同図に示すように、携帯電話14は、複数の操作ボタン15(15a〜15c等)、受話口16、送話口17、ディスプレイ18及びCCD(Charge-Coupled Device)撮像装置19を備えている。   FIG. 4A shows the mobile phone viewed from the front. As shown in the figure, the mobile phone 14 includes a plurality of operation buttons 15 (15a to 15c, etc.), a mouthpiece 16, a mouthpiece 17, a display 18, and a CCD (Charge-Coupled Device) imaging device 19. .

携帯電話14は、カメラ機能の使用中、CCD撮像装置19で撮像している画像をディスプレイ18に表示するとともに、操作ボタン15bをシャッターとして操作することでその撮像している画像を一枚の画像データとして保存できる。   While using the camera function, the mobile phone 14 displays an image captured by the CCD imaging device 19 on the display 18 and operates the operation button 15b as a shutter to display the captured image as one image. Can be saved as data.

本実施形態では、携帯電話14のカメラ機能で撮影された画像データ(静止画像データ)はJPEGデータとして携帯電話14に保存され、携帯電話14から赤外線通信によりプリンタ1に送信する場合は、携帯電話14に保存されているJPEGデータを赤外線通信対応のファイル形式の1つであるvNote(TM)形式に変換して送信される。このvNote形式で受信したプリンタ1は、Base64と呼ばれるエンコード/デコード変換器でJPEGデータをエンコード(圧縮)し、エンコードされたJPEG画像データとして保存される。また、携帯電話14は、電話帳機能を使って、操作ボタン15aを操作してディスプレイ18上に作成した個人情報を登録することができる。   In the present embodiment, image data (still image data) captured by the camera function of the mobile phone 14 is stored in the mobile phone 14 as JPEG data, and the mobile phone 14 transmits the image data to the printer 1 by infrared communication. 14 is converted into vNote (TM) format, which is one of the file formats compatible with infrared communication, and transmitted. The printer 1 received in this vNote format encodes (compresses) JPEG data with an encode / decode converter called Base64, and is stored as encoded JPEG image data. In addition, the cellular phone 14 can register the personal information created on the display 18 by operating the operation button 15a using the phone book function.

図4(b)は、携帯電話の電話帳機能を使って登録しディスプレイに表示させた個人情報の一例を示す。この個人情報の登録方法を説明すると、まず操作ボタン15を操作して、電話帳機能の個人情報作成モード(新規登録モード)を選択すると、携帯電話14に内蔵された個人情報作成プログラムが起動する。ディスプレイ18には図4(b)中左寄りに示された各項目、すなわち「名前」、「フリガナ」、「電話番号1」、「電話番号2」、「電話番号3」、「電子メールアドレス1」、「電子メールアドレス2」、「電子メールアドレス3」、「住所」及び「メモ(ノート)」の各欄が表示される。操作ボタン15cを操作して所望の項目を選択した後、該当するデータを入力し、これを必要な項目数だけ繰り返すことで、同図(b)に示すような1つの個人情報が作成される。この電話帳機能で作成した個人情報データ(テキストデータ)は、本実施形態では赤外線通信対応のファイル形式の1つであるvCard(TM)形式で保存される。   FIG. 4B shows an example of personal information registered and displayed on the display using the telephone directory function of the mobile phone. The personal information registration method will be described. First, when the operation button 15 is operated to select the personal information creation mode (new registration mode) of the telephone book function, the personal information creation program built in the mobile phone 14 is activated. . On the display 18, items shown on the left side in FIG. 4B, that is, “name”, “phonetic”, “phone number 1”, “phone number 2”, “phone number 3”, “e-mail address 1” "," E-mail address 2 "," E-mail address 3 "," Address "and" Memo (note) "are displayed. After selecting a desired item by operating the operation button 15c, the corresponding data is input, and this is repeated as many times as necessary to create one piece of personal information as shown in FIG. . Personal information data (text data) created by the telephone directory function is stored in the vCard (TM) format, which is one of the file formats compatible with infrared communication in this embodiment.

さらに、携帯電話14は、IrDA(Infrared Data Association)に準拠した赤外線通信機能を有し、前記CF型通信カード13との間での赤外線通信を行うための赤外線受発光部20(図1に示す)を備えている。携帯電話14は、操作ボタン15を操作することによって、画像データや個人情報データをCF型通信カード13に送信する。赤外線受発光部20は、CF型通信カード13に設けられた赤外線受発光部13aと同様の赤外線通信方式の受発行が可能な受光素子と発光素子とを有している。   Further, the mobile phone 14 has an infrared communication function compliant with IrDA (Infrared Data Association), and an infrared light receiving / emitting unit 20 (shown in FIG. 1) for performing infrared communication with the CF type communication card 13. ). The cellular phone 14 transmits image data and personal information data to the CF-type communication card 13 by operating the operation buttons 15. The infrared light receiving / emitting unit 20 includes a light receiving element and a light emitting element that can receive and issue the same infrared communication method as the infrared light receiving / emitting unit 13 a provided in the CF type communication card 13.

次に、上記のように構成した、プリンタ1、CF型通信カード13及び携帯電話14の電気的構成を図5に従って説明する。
まず、携帯電話14の電気的構成を説明する。携帯電話14は、制御部21、メモリ22、送受信部23、マイク24、スピーカ25、操作ボタン15、ディスプレイ18、CCD撮像装置19、赤外線受発光部20を有している。
Next, the electrical configuration of the printer 1, the CF-type communication card 13, and the mobile phone 14 configured as described above will be described with reference to FIG.
First, the electrical configuration of the mobile phone 14 will be described. The mobile phone 14 includes a control unit 21, a memory 22, a transmission / reception unit 23, a microphone 24, a speaker 25, an operation button 15, a display 18, a CCD imaging device 19, and an infrared light receiving / emitting unit 20.

メモリ22は、CCD撮像装置19で撮像した画像データや個人情報データが制御部21によって一時保存される。マイク24は、受話口16で話した音声を音声信号として制御部21に出力する。スピーカ25は、制御部21から出力された音声信号を音声にして送話口17から出力する。   In the memory 22, image data and personal information data captured by the CCD imaging device 19 are temporarily stored by the control unit 21. The microphone 24 outputs the voice spoken at the earpiece 16 to the control unit 21 as a voice signal. The speaker 25 converts the sound signal output from the control unit 21 into sound and outputs it from the mouthpiece 17.

送受信部23は、入出力インターフェイスであって、制御部21から出力された音声信号、メール、画像データを他の携帯電話やパソコンに送信するとともに、他の携帯電話やパソコンからの音声信号、メール、画像データを受信し制御部21に出力する。   The transmission / reception unit 23 is an input / output interface, and transmits the audio signal, mail, and image data output from the control unit 21 to another mobile phone or personal computer, and also transmits the voice signal, mail from other mobile phone or personal computer. The image data is received and output to the control unit 21.

制御部21は、CPU、ROM、EEPROM等を有し、CPUがROM及びEEPROMに記憶された制御プログラムや各種アプリケーションプログラムに基づいて各種動作を実行する。つまり、制御部21は、前記した通話、メールの作成、データの送受及び保存のための処理動作を操作ボタン15の操作に基づいて実行する。制御部21は、前記したCCD撮像装置19で撮像した画像データの表示及び保存のための処理動作を操作ボタン15の操作に基づいて実行する。   The control unit 21 includes a CPU, a ROM, an EEPROM, and the like, and the CPU executes various operations based on a control program and various application programs stored in the ROM and the EEPROM. That is, the control unit 21 executes the processing operation for the above-described call, creation of mail, transmission / reception and storage of data based on the operation of the operation button 15. The control unit 21 executes a processing operation for displaying and storing image data captured by the CCD imaging device 19 based on the operation of the operation button 15.

このとき、メモリ22に保存される画像データは、制御部21によってJPEGデータ形式で保存される。制御部21は、個人情報の作成及び保存のため処理動作を操作ボタン15の操作に基づいて実行する。このとき、メモリ22に保存される個人情報データ(テキストデータ)は、制御部21によって名刺データ形式(本例ではvCard形式)で保存される。   At this time, the image data stored in the memory 22 is stored in the JPEG data format by the control unit 21. The control unit 21 executes a processing operation based on the operation of the operation button 15 for creating and storing personal information. At this time, the personal information data (text data) stored in the memory 22 is stored in the business card data format (in this example, the vCard format) by the control unit 21.

さらに、制御部21は前記保存した個人情報データや画像データをプリンタ1(CF型通信カード13)に赤外線受発光部20を介して送信するための処理動作を操作ボタン15の操作に基づいて実行する。制御部21からCF型通信カード13に送信される際は、個人情報データはvCardファイル形式で、また画像データ(エンコードされたJPEGデータ)はvNoteファイル形式で送信される。制御部21は、これらをオブジェクト交換プロトコルに従って送信する。本実施形態では、オブジェクト交換プロトコルとして、電話帳(vCard)、スケジュール(vCalender)、メモ(vNote)等のvフォーマットと呼ばれるオブジェクトの交換に使用されるIrOBEX(TM)を採用している。   Further, the control unit 21 executes a processing operation for transmitting the stored personal information data and image data to the printer 1 (CF type communication card 13) via the infrared light receiving / emitting unit 20 based on the operation of the operation button 15. To do. When transmitted from the control unit 21 to the CF-type communication card 13, personal information data is transmitted in the vCard file format, and image data (encoded JPEG data) is transmitted in the vNote file format. The control unit 21 transmits these according to the object exchange protocol. In this embodiment, IrOBEX (TM) used for exchanging objects called v format such as a telephone directory (vCard), a schedule (vCalender), and a memo (vNote) is adopted as an object exchange protocol.

次に、CF型通信カード13の電気的構成を説明する。
CF型通信カード13は、カード制御部31、メモリ32、カード側UART(Universal Asynchronous Receiver Transmitter)33、プリンタ側UART(Universal Asynchronous Receiver Transmitter)34、赤外線受発光部13a及び表示部(LED)13bを有している。
Next, the electrical configuration of the CF type communication card 13 will be described.
The CF type communication card 13 includes a card control unit 31, a memory 32, a card side UART (Universal Asynchronous Receiver Transmitter) 33, a printer side UART (Universal Asynchronous Receiver Transmitter) 34, an infrared light receiving and emitting unit 13a, and a display unit (LED) 13b. Have.

カード制御部31は、メモリ32、カード側UART33、赤外線受発光部13a及び表示部13bを統括する。カード制御部31は、CPU、ROM等を有し、CPUがROMに記憶された制御プログラムや各種アプリケーションプログラムに基づいて各種動作を実行する。カード制御部31は、携帯電話14から赤外線受発光部13aを介してデータを受信すると、カード側UART33に対してそのオブジェクトデータ(個人情報データ又は画像データ)のプリンタ1への転送処理を指示する。この際、メモリ32の一部がオブジェクトデータを一時保存するバッファとして使用される。   The card control unit 31 controls the memory 32, the card side UART 33, the infrared light emitting / receiving unit 13a, and the display unit 13b. The card control unit 31 includes a CPU, a ROM, and the like, and the CPU executes various operations based on a control program and various application programs stored in the ROM. When the card control unit 31 receives data from the mobile phone 14 via the infrared light emitting / receiving unit 13a, the card control unit 31 instructs the card-side UART 33 to transfer the object data (personal information data or image data) to the printer 1. . At this time, a part of the memory 32 is used as a buffer for temporarily storing object data.

カード側UART33は、カード制御部31の指示に基づいてオブジェクトデータ(個人情報データ又は画像データ)をシリアルのビットストリームに変換してプリンタ側UART34に出力する。   The card side UART 33 converts object data (personal information data or image data) into a serial bit stream based on an instruction from the card control unit 31 and outputs the serial bit stream to the printer side UART 34.

プリンタ側UART34は、CF型通信カード13がカードスロット12にセットされた状態で双方のコネクタが電気的に接続されることで繋がるバス35を介してプリンタ1側の通信インターフェイス45により制御される。プリンタ側UART34は、カード側UART33からオブジェクトデータを受信し始めると、プリンタ1側にデータの読込みを要求すべく割込信号を出力する。この割込信号を受信したプリンタ1側で入力ポートを開くことでオブジェクトデータのプリンタ1への読み込みが開始される。この際、プリンタ側UART34は、カード側UART33から受信したシリアルのビットストリームをパラレルなバイトデータに変換しつつそのオブジェクトデータをプリンタ1側へ出力する。   The printer-side UART 34 is controlled by the communication interface 45 on the printer 1 side via a bus 35 that is connected when both connectors are electrically connected with the CF-type communication card 13 set in the card slot 12. When the printer-side UART 34 starts receiving object data from the card-side UART 33, the printer-side UART 34 outputs an interrupt signal to request the printer 1 to read the data. When the printer 1 that receives this interrupt signal opens the input port, reading of object data into the printer 1 is started. At this time, the printer-side UART 34 converts the serial bit stream received from the card-side UART 33 into parallel byte data and outputs the object data to the printer 1 side.

また、プリンタ側UART34は、プリンタ1側から入力した各種信号を、カード側UART33を介してカード制御部31に出力する。カード制御部31はプリンタ1側から入力した各種信号を監視してデータ受信状態(通信ステータス)を管理し、表示部13bをその時の通信ステータスに応じた点灯態様に表示制御する。よって、CF型通信カード13の前面に設けられた表示部13bの点灯態様によってユーザにその時々のデータ受信状態を報知する。このとき、カード制御部31は、通信ステータスの情報を赤外線受発光部13aを介して携帯電話14に送信し、携帯電話14のディスプレイ18にはプリンタ1側のデータ受信状態が文字情報などにより表示される。   The printer-side UART 34 outputs various signals input from the printer 1 side to the card control unit 31 via the card-side UART 33. The card control unit 31 monitors various signals input from the printer 1 side, manages the data reception state (communication status), and controls display of the display unit 13b in a lighting mode according to the communication status at that time. Therefore, the data reception state is notified to the user by the lighting mode of the display unit 13b provided on the front surface of the CF type communication card 13. At this time, the card control unit 31 transmits the communication status information to the mobile phone 14 via the infrared light emitting / receiving unit 13a, and the display 18 of the mobile phone 14 displays the data reception state on the printer 1 side as character information or the like. Is done.

次に、プリンタ1の電気的構成を説明する。
プリンタ1は、CPU41、ROM42、EEPROM43、RAM44、通信インターフェイス45、ASIC(Application Specific IC)46、ドライバ47a〜47d及びユーザインターフェイス48を有し、これらはデータバス49を介してそれぞれ互いに電気的に接続されている。
Next, the electrical configuration of the printer 1 will be described.
The printer 1 has a CPU 41, ROM 42, EEPROM 43, RAM 44, communication interface 45, ASIC (Application Specific IC) 46, drivers 47 a to 47 d, and user interface 48, which are electrically connected to each other via a data bus 49. Has been.

通信インターフェイス(I/F)45は、通信インターフェイス部45a、パラレル通信部45b、ブルートゥース(Bluetooth)(TM)通信部45c、USB(Universal Serial Bus)通信部45d、スロット通信部45e及びシリアル通信部(図示せず)を備えている。各通信部45b〜45e等は通信ポート(入力・出力ポート)をそれぞれ有しており、通信インターフェイス部45aは、例えば各通信部45b〜45eごとに独立して複数設けられた通信インターフェイス群からなり、各通信部45b〜45eがデータを受信するとその旨を、通信(データ受信)の優先順位を管理するCPU41に通知する。CPU41は通信インターフェイス部45aから受け付けたその受信の旨の情報に基づきそのデータの受信が可能かどうかを判定し、例えば次データの受信が可能になった後に最初にデータ受信した場合はその通信部の入力ポートを開く指示を出す。通信インターフェイス部45aはCPU41の指示に従って各通信部45b〜45eの入力ポートのうち指示された1つを開くことにより、所定のホスト装置から送られてくるデータを受信し、共通のデータバス49に出力する。これら複数の入力ポート中のどれか1つのポートに最先にデータが到着すると、通信インターフェイス部45aは、そのポートからデータの取り込みを開始するとともにデータの取込みが終了するまでの間、他のポートをビジー状態にして他のポートからのデータ受信を禁止するようになっている。通信インターフェイス部45aはこのような処理をCPU41の指示に従って行う。CPU41は、1つの通信ポートからのデータ受信が開始されると、その受信データが印刷処理に至るまで通るデータ転送経路をその印刷終了時まで確保し、その間は他の通信ポートからのデータ受信を禁止するよう通信インターフェイス部45aに指示する。また、CPU41は通信ポートからのデータ受信を許可するか禁止するかのインターロック処理を行う。   The communication interface (I / F) 45 includes a communication interface unit 45a, a parallel communication unit 45b, a Bluetooth (TM) communication unit 45c, a USB (Universal Serial Bus) communication unit 45d, a slot communication unit 45e, and a serial communication unit ( (Not shown). Each of the communication units 45b to 45e has a communication port (input / output port), and the communication interface unit 45a is composed of, for example, a group of communication interfaces provided independently for each of the communication units 45b to 45e. When each of the communication units 45b to 45e receives data, the communication unit 45b to 45e notifies the CPU 41 that manages the priority of communication (data reception). The CPU 41 determines whether the data can be received based on the reception information received from the communication interface unit 45a. For example, when the first data is received after the next data can be received, the communication unit Command to open the input port. The communication interface unit 45 a receives data sent from a predetermined host device by opening one of the input ports of the communication units 45 b to 45 e in accordance with an instruction from the CPU 41, and sends it to a common data bus 49. Output. When data arrives first in any one of the plurality of input ports, the communication interface unit 45a starts taking in data from that port and continues to other ports until the data is taken in. In a busy state, data reception from other ports is prohibited. The communication interface unit 45a performs such processing in accordance with instructions from the CPU 41. When reception of data from one communication port is started, the CPU 41 secures a data transfer path through which the received data reaches the printing process until the end of the printing, and receives data from other communication ports during that time. The communication interface unit 45a is instructed to be prohibited. Further, the CPU 41 performs an interlock process for permitting or prohibiting data reception from the communication port.

通信インターフェイス部45aがホスト装置又はCF型通信カード13から受信要求を受け付けると、CPU41は通信インターフェイス部45aからその旨の通知を受けるようになっており、その通信情報を基に通信ポートの空き状況や受信中の通信ポートなどを管理する。   When the communication interface unit 45a receives a reception request from the host device or the CF-type communication card 13, the CPU 41 receives a notification to that effect from the communication interface unit 45a. Based on the communication information, the communication port availability state And the communication port being received.

また、CPU41が既に受信されて出力処理を施している間に、プリンタ1の本体等に配設されている割込み信号ボタン等からの割込み信号または通信インターフェイス部45aで判断することができる割込みコマンドを含む新たな受信データを通信ポートを介して受信した場合は、割込み手段として、CPU41は、既に受信されて出力処理を施しているデータの出力処理を中断する。さらに、CPU41は、中断されたデータをワークメモリ44b等に格納して、新たな受信データの割込み処理に基づく出力処理が終了した後に、再び中断されたデータをワークメモリ44b等から読み出して残りの出力処理を続けて出力する。割込み手段としての、この割込み処理は、各通信ポートの間で行うとともに、それぞれの通信ポートでも同様に割り込み処理を行う。   In addition, while the CPU 41 is already receiving and performing output processing, an interrupt signal from an interrupt signal button or the like provided on the main body or the like of the printer 1 or an interrupt command that can be determined by the communication interface unit 45a. When new received data including the received data is received via the communication port, the CPU 41 interrupts the output processing of the data that has already been received and subjected to the output processing as an interrupt means. Further, the CPU 41 stores the interrupted data in the work memory 44b and the like, and after the output process based on the interrupt process of the new received data is completed, the interrupted data is read again from the work memory 44b and the remaining data. Continue output processing and output. This interrupt processing as interrupt means is performed between the communication ports, and interrupt processing is similarly performed at each communication port.

パラレル通信部45bは、ホストコンピュータ(パーソナルコンピュータ)HCから通信ケーブルを介してデータをパラレル通信で受信することが可能である。ブルートゥース通信部45cは、ブルートゥース対応携帯端末BCから所定通信プロトコルに従って所定規格周波数帯域の電波による近距離無線通信でデータを受信することが可能である。USB通信部45dは、USB対応機器(図示せず)から所定通信プロトコルに従ってデータを受信することが可能である。スロット通信部45eは、CFカードスロット12に挿着されたCF型通信カード13又はCFカード(メモリカード)からデータを受信することが可能である。なお、各通信部45b,45c,45d,45eは、ホスト装置との通信上必要な情報やプリンタ1の状態を通知する信号など所定の信号又はデータを送信可能となっている。   The parallel communication unit 45b can receive data from a host computer (personal computer) HC via a communication cable via parallel communication. The Bluetooth communication unit 45c can receive data from the Bluetooth-compatible mobile terminal BC by short-range wireless communication using radio waves in a predetermined standard frequency band according to a predetermined communication protocol. The USB communication unit 45d can receive data from a USB compatible device (not shown) according to a predetermined communication protocol. The slot communication unit 45e can receive data from the CF type communication card 13 or the CF card (memory card) inserted in the CF card slot 12. Each of the communication units 45b, 45c, 45d, and 45e can transmit predetermined signals or data such as information necessary for communication with the host device and a signal for notifying the state of the printer 1.

CPU41は、ROM42に記憶された制御プログラム及びEEPROM43に記憶された各種アプリケーションプログラムなどに基づいて、通信インターフェイス45、ASIC46及びドライバ47a〜47cを統括制御する。CPU41は、ASIC46に対して印刷機構の一部を作動させる指令信号を出力したり、ASIC46とRAM44間及びASIC46の内部の各種処理回路間におけるデータの転送処理を指示する。CPU41は転送処理のため例えばDMAコントローラを内蔵する。また、CPU41は、ドライバ47a〜47cを介して紙送りモータM1、キャリッジモータM2、ロール紙の印刷後の部分を所定のサイズに切断するカッタ装置のカッタモータM3を駆動制御する。   The CPU 41 comprehensively controls the communication interface 45, the ASIC 46, and the drivers 47a to 47c based on a control program stored in the ROM 42 and various application programs stored in the EEPROM 43. The CPU 41 outputs a command signal for operating a part of the printing mechanism to the ASIC 46, and instructs data transfer processing between the ASIC 46 and the RAM 44 and between various processing circuits inside the ASIC 46. The CPU 41 incorporates, for example, a DMA controller for transfer processing. Further, the CPU 41 drives and controls the paper feed motor M1, the carriage motor M2, and the cutter motor M3 of the cutter device that cuts the printed portion of the roll paper into a predetermined size via the drivers 47a to 47c.

ASIC46は、データに画像処理を施して印刷データを生成したり、CPU41からの指令信号と印刷データに基づいてドライバ47cを介して複数の圧電素子PZを駆動制御する。RAM44には受信バッファ44a、ワークメモリ44b及び出力バッファ44cなどが備えられている。各通信部45b〜45eを通じて受信したデータは受信バッファ44aに一旦格納され、所定の処理を施す際のデータはワークメモリ44bに格納され、さらに最終的に生成された印刷データは出力バッファ44cに格納される。   The ASIC 46 performs image processing on the data to generate print data, and drives and controls the plurality of piezoelectric elements PZ via the driver 47c based on a command signal from the CPU 41 and the print data. The RAM 44 includes a reception buffer 44a, a work memory 44b, an output buffer 44c, and the like. Data received through each of the communication units 45b to 45e is temporarily stored in the reception buffer 44a, data for performing a predetermined process is stored in the work memory 44b, and finally generated print data is stored in the output buffer 44c. Is done.

紙送りモータM1は、自動給紙装置3にセットされた単票紙又はロール紙P1を、印字位置を経由して排紙口7まで搬送させるためのモータである。キャリッジモータM2は、複数の噴射ノズルを有した記録ヘッドを搭載したキャリッジを主走査方向に往復動させるためのモータである。圧電素子PZは、記録ヘッドに設けられた複数の噴射ノズル毎に設けられそのノズルからインクを噴出させるための素子である。カッタモータM3は、カッタ装置を駆動するモータであり、切断刃を主走査方向に移動させてロール紙を所定のサイズに切断する。   The paper feed motor M1 is a motor for transporting the cut paper or roll paper P1 set in the automatic paper feeder 3 to the paper discharge port 7 via the printing position. The carriage motor M2 is a motor for reciprocating a carriage mounted with a recording head having a plurality of ejection nozzles in the main scanning direction. The piezoelectric element PZ is an element that is provided for each of a plurality of ejection nozzles provided in the recording head and ejects ink from the nozzles. The cutter motor M3 is a motor that drives the cutter device, and moves the cutting blade in the main scanning direction to cut the roll paper into a predetermined size.

又、CPU41は、EEPROM43に予め記憶されたメニュー表示用データを読み出して表示装置9の表示処理部9bに転送する。表示処理部9bはそのメニュー表示用データに基づき用紙の種類、用紙サイズ、レイアウト、写真選択、印刷枚数等をマニュアル選択するために用いられるメニューを表示画面9aに表示させる。メニュー項目には「レイアウト」が用意されており、この「レイアウト」は、カードスロット12にセットされたメモリカード等から印刷用に入力した1つ又は複数の画像を用紙上にレイアウト指定して印刷画像(印刷状態画像)を作成するための機能である。EEPROM43にはこのレイアウトの指定に使う複数のレイアウト用テンプレートが記憶されている。このレイアウト機能で作成した印刷画像の表示用データはRAM44に一時保存され、印刷実行前に操作部10を操作すると、CPU41がRAM44から表示用データを読み出して表示処理部11bに転送することで、その印刷画像が表示画面11aに表示される。   Further, the CPU 41 reads out menu display data stored in advance in the EEPROM 43 and transfers it to the display processing unit 9 b of the display device 9. The display processing unit 9b displays on the display screen 9a a menu used for manually selecting the paper type, paper size, layout, photo selection, number of prints, and the like based on the menu display data. A “layout” is prepared for the menu item, and this “layout” is printed by designating one or a plurality of images input for printing from a memory card or the like set in the card slot 12 on a sheet. This is a function for creating an image (printed state image). The EEPROM 43 stores a plurality of layout templates used for designating the layout. The display data for the print image created by this layout function is temporarily stored in the RAM 44. When the operation unit 10 is operated before printing, the CPU 41 reads the display data from the RAM 44 and transfers it to the display processing unit 11b. The print image is displayed on the display screen 11a.

また、CPU41は、操作パネル8に設けられた各スイッチ10a〜10iの操作に基づく信号をユーザI/F48を介して入力するようになっている。
図6は、携帯電話とプリンタ間でCF型通信カードを介して行われるデータ通信およびその受信データの印刷処理について説明する機能ブロック図である。同図に示された各機能部は、各種回路を含むハードウェア回路、及び、通信プロトコルプログラムやアプリケーションプログラム等を実行するCPUによって実現されている。
Further, the CPU 41 is configured to input a signal based on the operation of each switch 10 a to 10 i provided on the operation panel 8 via the user I / F 48.
FIG. 6 is a functional block diagram for explaining data communication performed between the mobile phone and the printer via the CF type communication card and printing processing of the received data. Each functional unit shown in the figure is realized by a hardware circuit including various circuits, and a CPU that executes a communication protocol program, an application program, and the like.

CF型通信カード(赤外線通信カード)13に内蔵されているカード制御部31は、IrDA通信回路61、IrDAスタック(IrDAプロトコルスタック)62、ファイル転送部63及びオブジェクト送受信部64を有する。IrDA通信回路61は、CPU及び通信回路(いずれも図示せず)を含むハードウェアからなり、通信レイヤでは物理層に相当する。IrDAスタック62はIrDA通信プロトコル群からなり、データリンク層及びネットワーク層に相当する。また、ファイル転送部63は、携帯電話14から赤外線通信で受信するファイルの転送制御を司り、通信レイヤではトランスポート層及びセッション層に相当する。オブジェクト送受信部64は、携帯電話14との間で行われるIrDA通信と、プリンタ1との間で行われるシリアル通信との2つの通信系統の間でデータの受け渡し制御を行うとともに、受信データチェックなどの必要な処理を司る。オブジェクト送受信部64は、ファイル転送部63からのデータを処理するプレゼンテーション層及びアプリケーション層に相当する部分と、UART33の上位層でシリアル通信プロトコルスタックからなるプレゼンテーション層〜データリンク層を構成する部分とからなる。   The card control unit 31 built in the CF type communication card (infrared communication card) 13 includes an IrDA communication circuit 61, an IrDA stack (IrDA protocol stack) 62, a file transfer unit 63, and an object transmission / reception unit 64. The IrDA communication circuit 61 includes hardware including a CPU and a communication circuit (both not shown), and corresponds to a physical layer in the communication layer. The IrDA stack 62 includes an IrDA communication protocol group and corresponds to a data link layer and a network layer. The file transfer unit 63 controls transfer of files received from the mobile phone 14 by infrared communication, and corresponds to a transport layer and a session layer in the communication layer. The object transmission / reception unit 64 performs data transfer control between two communication systems of IrDA communication performed with the mobile phone 14 and serial communication performed with the printer 1, and received data check, etc. Manage the necessary processing. The object transmitting / receiving unit 64 includes a portion corresponding to a presentation layer and an application layer for processing data from the file transfer unit 63, and a portion constituting a presentation layer to a data link layer including a serial communication protocol stack in an upper layer of the UART 33. Become.

ファイル転送部63は、CF型通信カード13内のCPUがOBEX(Object Exchange)(TM)プログラムを実行することで構築される機能部分であり、OBEXの仕様に基づくファイル転送制御を司る。詳しくは携帯電話14側のOBEXとの論理的な通信リンクの確立及び切断や、ファイル転送時にパケット分割されて送られてくるパケットを元のファイルに組み立てる復元処理などを行う。   The file transfer unit 63 is a functional part constructed by the CPU in the CF type communication card 13 executing an OBEX (Object Exchange) (TM) program, and controls file transfer based on the OBEX specification. Specifically, a logical communication link with OBEX on the mobile phone 14 side is established and disconnected, and a restoration process for assembling a packet divided and sent in the original file at the time of file transfer is performed.

また、オブジェクト送受信部64は対応拡張子記憶部64aを有し、カードスロット12にCF型通信カード13が挿着された状態をプリンタ1が電源投入後はじめて検知した時に、プリンタ1からCF型通信カード13へ送られてくる拡張子データを対応拡張子記憶部64aに記憶(セットアップ)する。また、オブジェクト送受信部64は、受信したデータからファイル名を取得し、そのファイル名の中の拡張子と拡張子データとを比較参照することにより、受信したデータがプリンタ1にとって印刷対応能力のある印刷対応データか否かを判定する。詳しくはデータのヘッダ中にあるファイル名「aaaa.bbb」を読み取り、ファイル名から拡張子「bbb」を抜き出し、この拡張子「bbb」と拡張子データとを参照比較することにより印刷対応データか否かを判断する。この比較参照では大文字と小文字の区別はしない。そして、オブジェクト送受信部64は、その判定結果に基づき印刷対応データの受信は許可するが、印刷未対応データの受信は拒否するデータ選別処理を行う。オブジェクト送受信部64は、印刷対応データである場合、そのオブジェクトデータ及びファイル拡張子「bbb」のデータ(ファイル拡張子データという)をプリンタ1側へ転送する。   The object transmission / reception unit 64 has a corresponding extension storage unit 64a. When the printer 1 detects that the CF type communication card 13 is inserted into the card slot 12 for the first time after the power is turned on, the object transmission / reception unit 64 receives the CF type communication from the printer 1. The extension data sent to the card 13 is stored (set up) in the corresponding extension storage unit 64a. Further, the object transmission / reception unit 64 obtains a file name from the received data, and compares and refers to the extension and extension data in the file name, so that the received data has a print compatible capability for the printer 1. It is determined whether the data is print compatible data. For details, read the file name “aaaa.bbb” in the header of the data, extract the extension “bbb” from the file name, and compare the extension “bbb” with the extension data. Judge whether or not. This comparison reference is not case sensitive. Then, the object transmission / reception unit 64 performs a data selection process that permits the reception of print-compatible data based on the determination result, but rejects the reception of non-print-compatible data. When the object transmission / reception unit 64 is print-compatible data, the object transmission / reception unit 64 transfers the object data and data with the file extension “bbb” (referred to as file extension data) to the printer 1 side.

プリンタ1側には、カードドライバ71、IrDA UART ドライバ(以下、UARTドライバという)72、データトランスファ部73、IrDAプロファイル処理部(IrDAプロファイル部)74、テキストデータラスタ処理部75、画像データラスタ処理部76及びプリントエンジン77が備えられている。   On the printer 1 side, a card driver 71, an IrDA UART driver (hereinafter referred to as a UART driver) 72, a data transfer unit 73, an IrDA profile processing unit (IrDA profile unit) 74, a text data raster processing unit 75, an image data raster processing unit 76 and a print engine 77 are provided.

カードドライバ71及びUARTドライバ72は、図5におけるスロット通信部45eに内蔵されたドライバ回路からなるハードウェアとソフトウェアとで構成されている。また、データトランスファ部73は、CPU41が通信プロトコルプログラムを実行することにより実現される機能部分である。また、IrDAプロファイル処理部74、テキストデータラスタ処理部75及び画像データラスタ処理部76は、CPU41がアプリケーションプログラムを実行することにより実現される機能部分である。さらにプリントエンジン77は、CPU41がアプリケーションプログラムを実行することにより実現されるソフトウェア部分と、ASIC46、ドライバ47a〜47d、紙送りモータM1、キャリッジモータM2、圧電素子PZ及びカッタモータM3などからなる印刷処理を実現するハードウェア部分とから構成される。   The card driver 71 and the UART driver 72 are configured by hardware and software including a driver circuit built in the slot communication unit 45e in FIG. The data transfer unit 73 is a functional part realized by the CPU 41 executing the communication protocol program. Further, the IrDA profile processing unit 74, the text data raster processing unit 75, and the image data raster processing unit 76 are functional parts realized by the CPU 41 executing the application program. Further, the print engine 77 is a printing process comprising a software part realized by the CPU 41 executing an application program, an ASIC 46, drivers 47a to 47d, a paper feed motor M1, a carriage motor M2, a piezoelectric element PZ, a cutter motor M3, and the like. It is comprised from the hardware part which implement | achieves.

なお、OSI参照モデルに当てはめた場合、カードドライバ71及びUARTドライバ72は、データリンク層及びネットワーク層に相当する。また、データトランスファ部73はトランスポート層及びセッション層に相当し、IrDAプロファイル処理部74、テキストデータラスタ処理部75及び画像データラスタ処理部76は、プレゼンテーション層及びアプリケーション層に相当する。   When applied to the OSI reference model, the card driver 71 and the UART driver 72 correspond to the data link layer and the network layer. The data transfer unit 73 corresponds to a transport layer and a session layer, and the IrDA profile processing unit 74, the text data raster processing unit 75, and the image data raster processing unit 76 correspond to a presentation layer and an application layer.

カードドライバ71は、CF型通信カード13と信号やデータのやりとりをする通信ドライバであり、CPU41からの指示などに基づきUARTドライバ72に必要な指示を出す。   The card driver 71 is a communication driver that exchanges signals and data with the CF-type communication card 13, and issues necessary instructions to the UART driver 72 based on instructions from the CPU 41.

UARTドライバ72は、CF型通信カード13に内蔵されたプリンタ側UART34の通信動作を制御するもので、例えばCPU41及びカードドライバ71の指示に基づきプリンタ側UART34を制御する。UARTドライバ72は、プリンタ側UART34から割込要求を受け付けると、プリンタ1が他の通信部45b〜45eからデータ受信中であるビジー状態でない限り入力ポートを開きデータの取り込みを開始する。   The UART driver 72 controls the communication operation of the printer side UART 34 built in the CF type communication card 13. For example, the UART driver 72 controls the printer side UART 34 based on instructions from the CPU 41 and the card driver 71. When the UART driver 72 receives an interrupt request from the printer-side UART 34, the printer 1 opens the input port and starts to capture data unless the printer 1 is busy receiving data from the other communication units 45b to 45e.

また、カードドライバ71は、プリンタ1の電源投入時にCPU41が実行する初期化処理の際にCPU41から拡張子データを受け取ってセットアップデータ記憶部71aに格納する。そして、カードドライバ71は、電源投入後はじめてプリンタ1とCF型通信カード13との電気的接続を検知したCPU41からの指示に基づきセットアップデータ記憶部71aに格納された拡張子データを読み出してCF型通信カード13に送信する。本実施形態では、印刷対応ファイルの拡張子として、「vcf」「vnt」「jpeg」「jpg」が拡張子データに設定されている。CF型通信カード13へ送られた拡張子データは、オブジェクト送受信部64により対応拡張子記憶部64aに格納されることによりCF型通信カード13側にセットアップされる。また、UARTドライバ72は、データトランスファ部73及びIrDAプロファイル処理部74で検出されたエラー通知などの通知を受け取ると、その旨の信号をカード制御部31に送信する。カード制御部31は携帯電話14及びプリンタ1から受信したデータ及び信号を監視することでデータ受信状態を表す通信ステータスを管理し、その時々の通信ステータスに応じた点灯態様となるよう表示部(LED)13bを表示制御する。CF型通信カード13は表示部13bの点灯態様によってデータ受信状態を送り主に報知する。   Further, the card driver 71 receives extension data from the CPU 41 and stores it in the setup data storage unit 71a during an initialization process executed by the CPU 41 when the printer 1 is powered on. Then, the card driver 71 reads the extension data stored in the setup data storage unit 71a based on an instruction from the CPU 41 that detects the electrical connection between the printer 1 and the CF type communication card 13 for the first time after the power is turned on. It transmits to the communication card 13. In this embodiment, “vcf”, “vnt”, “jpeg”, and “jpg” are set in the extension data as the extension of the print compatible file. The extension data sent to the CF type communication card 13 is set up on the CF type communication card 13 side by being stored in the corresponding extension storage unit 64a by the object transmitting / receiving unit 64. When the UART driver 72 receives a notification such as an error notification detected by the data transfer unit 73 and the IrDA profile processing unit 74, the UART driver 72 transmits a signal to that effect to the card control unit 31. The card control unit 31 manages the communication status indicating the data reception state by monitoring the data and signals received from the mobile phone 14 and the printer 1, and displays the display unit (LED ) Display control of 13b. The CF type communication card 13 notifies the sender of the data reception state by the lighting state of the display unit 13b.

データトランスファ部73は、CF型通信カード13のオブジェクト送受信部64から送られてきたオブジェクトデータとファイル拡張子データを受け取ると、ファイル拡張子データをIrDAプロファイル処理部74に送るとともに、オブジェクトデータについてはそれを正しく受信できたかどうかを判断する。この判断は、オブジェクトデータが正しく受信できたかどうかを検証する手順がプログラムされた伝送制御手順に従って判定される。伝送制御手順73aとしては、ベーシック手順と、HDLC(ハイレベルデータリンク)手順とが挙げられる。本例ではベーシック手順を簡素化した伝送制御手順を採用する。なお、エラー制御に採用するエラー検出方式は、CRC検出方式に限らず、パリティチェック方式、チェックサム、ハミング符号によるものでもよい。   When the data transfer unit 73 receives the object data and the file extension data sent from the object transmission / reception unit 64 of the CF-type communication card 13, the data transfer unit 73 sends the file extension data to the IrDA profile processing unit 74. Judge whether it was received correctly. This determination is made according to a transmission control procedure in which a procedure for verifying whether or not the object data has been received correctly is programmed. The transmission control procedure 73a includes a basic procedure and an HDLC (High Level Data Link) procedure. In this example, a transmission control procedure in which the basic procedure is simplified is adopted. Note that the error detection method employed for error control is not limited to the CRC detection method, but may be a parity check method, a checksum, or a Hamming code.

データトランスファ部73は、伝送制御手順73aによりデータを正しく受信できた場合はそのデータ(電文本体又は電文分割ブロック)を次のIrDAプロファイル処理部74へ順次送り、データが正しく受信できなかった場合はオブジェクト送受信部64へそのデータの再送を要求する。この再送要求を受けたオブジェクト送受信部64は直前にデータトランスファ部73へ送信したデータを再送する。データトランスファ部73は、再送要求の後に再送されないままタイムアウトになると、エラー通知信号をオブジェクト送受信部64へ送信するようUARTドライバ72に指示する。   The data transfer unit 73 sequentially sends the data (the message body or the message division block) to the next IrDA profile processing unit 74 when the data can be correctly received by the transmission control procedure 73a, and when the data cannot be correctly received. The object transmission / reception unit 64 is requested to retransmit the data. Receiving this retransmission request, the object transmission / reception unit 64 retransmits the data transmitted to the data transfer unit 73 immediately before. The data transfer unit 73 instructs the UART driver 72 to transmit an error notification signal to the object transmission / reception unit 64 when a timeout occurs without being retransmitted after the retransmission request.

IrDAプロファイル処理部74は、拡張子識別部81、件数判定部82、ノート(Note)解析部83、分割処理部84、テキストデータ形式変換部85、テンプレート記憶部86、画像データデコード部87及び判断部88を備えている。IrDAプロファイル処理部74はROM42又はEEPROM43に記憶されたプログラムデータ及び各種データ等に基づき実現される。   The IrDA profile processing unit 74 includes an extension identification unit 81, a number determination unit 82, a note analysis unit 83, a division processing unit 84, a text data format conversion unit 85, a template storage unit 86, an image data decoding unit 87, and a determination. A portion 88 is provided. The IrDA profile processing unit 74 is realized based on program data and various data stored in the ROM 42 or the EEPROM 43.

拡張子識別部81は、データトランスファ部73から入力したファイル拡張子データから、そのオブジェクトデータのファイル形式を識別する。すなわち、個人情報データ(vCardファイル形式)か、添付形式の画像データ(vNoteファイル形式)か、画像データ(JPEGファイル)かのいずれであるのかその拡張子を識別する。すなわち、ファイル拡張子データが「vcf」であれば「vCardファイル」と識別し、「vnt」であれば「vNoteファイル」と識別し、さらに「jpeg」又は「jpg」であると「JPEGファイル」と識別する。拡張子識別部81は、識別した拡張子に応じて、その後データトランスファ部73から送られてくるオブジェクトデータの処理経路を振り分ける。すなわち、拡張子識別部81は、拡張子が「vcf」であればそのvCardファイル(個人情報データ)を件数判定部82へ送り、拡張子が「vnt」であればそのvNoteファイル(画像データ)を画像データデコード部87へ送る。さらに、拡張子が「jpeg」又は「jpg」であればそのJPEGデータを画像データラスタ処理部76へ送る。   The extension identifying unit 81 identifies the file format of the object data from the file extension data input from the data transfer unit 73. That is, it identifies the extension of personal information data (vCard file format), attached format image data (vNote file format), or image data (JPEG file). That is, if the file extension data is “vcf”, it is identified as “vCard file”, if “vnt”, it is identified as “vNote file”, and if it is “jpeg” or “jpg”, “JPEG file”. Identify. The extension identifying unit 81 distributes the processing path of the object data sent from the data transfer unit 73 thereafter according to the identified extension. That is, if the extension is “vcf”, the extension identifying unit 81 sends the vCard file (personal information data) to the number determination unit 82, and if the extension is “vnt”, the vNote file (image data). Is sent to the image data decoding unit 87. Further, if the extension is “jpeg” or “jpg”, the JPEG data is sent to the image data raster processor 76.

件数判定部82は、vCardファイルが1件分の個人情報を含む「単件」ファイルか、複数件分の個人情報を含む「全件」ファイルかを判定する。「単件」ファイルと判定した場合はそのvCardファイルをノート解析部83へ送り、「全件」ファイルと判定した場合はそのvCardファイルを分割処理部84へ送る。また、件数判定部82の判定結果は、「単件」であれば「N=0」、「全件」であれば「N=1」として、その判定値Nがテキストデータ形式変換部85へ送られる。   The number determination unit 82 determines whether the vCard file is a “single case” file including one piece of personal information or an “all case” file including a plurality of pieces of personal information. If it is determined that the file is a “single case” file, the vCard file is sent to the note analysis unit 83. If it is determined that the file is “all cases”, the vCard file is sent to the division processing unit 84. The determination result of the number determination unit 82 is “N = 0” for “single case” and “N = 1” for “all cases”, and the determination value N is sent to the text data format conversion unit 85. Sent.

ノート解析部83は、vCardファイルのノート(Note)領域に記述されたテキストを取り出して解析する。単件の個人情報を印刷する場合は、ノート領域に予め決められた指定文字を記述しておくことで印刷レイアウトを指定できるようになっており、指定文字による印刷レイアウトの指定の有無を判断するためにノート領域の記述内容を解析する。本実施形態では指定文字として数字(番号)を採用している。数字を採用するのは、記述する文字数が少なく済むうえ識別し易いからである。数字以外にアルファベット(例えばA,B,C,…)を指定文字として採用することも可能である。ノート解析部83は、解析結果として得られた指定文字の情報M(例えば番号M=1,2,…n)をテキストデータ形式変換部85へ送る。   The note analysis unit 83 extracts and analyzes the text described in the Note area of the vCard file. When printing a single piece of personal information, it is possible to specify a print layout by describing a predetermined designated character in the note area, and whether or not the print layout is designated by the designated character is determined. Therefore, the description contents of the note area are analyzed. In the present embodiment, numbers (numbers) are adopted as designated characters. The reason why numbers are used is that the number of characters to be written is small and the identification is easy. In addition to numbers, alphabets (for example, A, B, C,...) Can be adopted as designated characters. The note analysis unit 83 sends the designated character information M (for example, the number M = 1, 2,... N) obtained as an analysis result to the text data format conversion unit 85.

分割処理部84は、全件ファイルを電文分割ブロック単位で順次入力し始めるとバッファ(図示せず)に蓄えながらデータの中身を調べ、1件毎の区切りを抽出することにより所定件数分ずつ分割する。そして、その分割した所定件数分ずつ個人情報データを次処理のテキストデータ形式変換部85へ送り出す。本実施形態では所定件数は1件に設定されており、vCardファイルの全件データは1件ずつの個人情報に順次分割されながら、分割処理部84から1件分ずつ次処理のテキストデータ形式変換部85へ送り出される。   When the division processing unit 84 starts to sequentially input all the case files in units of message division blocks, the division processing unit 84 examines the contents of the data while storing them in a buffer (not shown), and divides them by a predetermined number of times by extracting a delimiter for each case. To do. Then, the personal information data is sent to the text data format conversion unit 85 for the next processing for each of the divided predetermined number of cases. In this embodiment, the predetermined number of cases is set to one, and all data in the vCard file is sequentially divided into individual information for each case, while the division processing unit 84 converts the text data format for the next processing one by one. Sent to the unit 85.

テキストデータ形式変換部85は、個人情報データ(テキストデータ)をvCard形式からXHTML(Extensible Hyper Text Markup Language)形式に変換する。但し、形式変換を行う前に、そのオブジェクトデータがvCard形式であるかどうかそのデータの中身を解析し、vCardファイル形式のデータであることを検証する。例えばvCardファイル形式のデータであれば備えているはずのプロパティ(「BEGIN VCARD」「N」「SOUND」等)などの有無を確認する。vCardファイル形式のデータでなければデータを破棄するとともに、間違ったデータである旨をUARTドライバ72を通じてCF型通信カード13へ通知する。一方、vCardファイル形式のデータであれば、そのオブジェクトデータに形式変換処理を施す。また、vCardファイルは携帯電話メーカーによって画像添付機能付きタイプとすることもできる。画像添付機能付きタイプのvCardファイルであると解析された際は、その添付されているエンコードされたJPEG画像データを抜き取り、画像データデコード部87に転送する。このようにテキストデータ形式変換部85は、拡張子が「vCard」であるけれどもデータの中身までも正しくvCard形式であるかどうかを事前に解析及び検証する。また、画像データデコード部87においてメモ帳機能で記述されたテキストデータを含むタイプのvNoteファイルを受け付けた場合は、テキストデータ形式変換部85は、そのテキストデータのみを画像データデコード部87から受け付ける。このときは既にデータの中身については画像データデコード部87において検証済みなので改めて解析はしない。   The text data format conversion unit 85 converts personal information data (text data) from the vCard format to the XHTML (Extensible Hyper Text Markup Language) format. However, before performing format conversion, whether the object data is in vCard format is analyzed to verify that the data is in vCard file format. For example, the presence or absence of properties (“BEGIN VCARD”, “N”, “SOUND”, etc.) that should be provided for data in the vCard file format is confirmed. If the data is not in the vCard file format, the data is discarded and the CF type communication card 13 is notified through the UART driver 72 that the data is incorrect. On the other hand, if the data is in the vCard file format, the object data is subjected to format conversion processing. The vCard file can also be of a type with an image attachment function by a mobile phone manufacturer. When it is analyzed that it is a vCard file with an image attachment function type, the encoded JPEG image data attached is extracted and transferred to the image data decoding unit 87. As described above, the text data format conversion unit 85 analyzes and verifies in advance whether the extension is “vCard” but the contents of the data are also correctly in the vCard format. When the image data decoding unit 87 accepts a vNote file of a type including text data described by the memo pad function, the text data format conversion unit 85 accepts only the text data from the image data decoding unit 87. At this time, the contents of the data have already been verified by the image data decoding unit 87 and are not analyzed again.

テキストデータ形式変換部85は、形式変換処理を施す際、まずテンプレート記憶部86からXHTML形式で記述された印刷レイアウトテンプレート(以下テンプレートという)を読み出す。テンプレートはオブジェクトデータを構成する各項目(プロパティ)の値(テキストデータ)を所定位置に割り付けられるようにタグの記述によってレイアウト枠が指定されたものである。レイアウト枠内に該当項目(プロパティ)の値(テキストデータ)を組み込むことにより、vCard形式の個人情報をテンプレート付きのXHTML形式に変換する。つまり、vCardファイルは元々レイアウトの概念を持たないファイル形式であるが、印刷時には所定のレイアウトで印刷されるように、レイアウト定義できないファイル形式(vCard)からレイアウト定義できるファイル形式(XHTML)へ形式変換する。そして、この形式変換時にXHTML形式で記述されたテンプレートを用いることでタグによってレイアウトを定義付ける。テキストデータ形式変換部85は、個人情報がテンプレートに組み込まれたXHTMLデータを、テキストデータラスタ処理部75に送出する。   When performing the format conversion process, the text data format conversion unit 85 first reads a print layout template (hereinafter referred to as a template) described in the XHTML format from the template storage unit 86. In the template, a layout frame is specified by a tag description so that the value (text data) of each item (property) constituting the object data can be assigned to a predetermined position. By incorporating the value (text data) of the corresponding item (property) in the layout frame, the personal information in the vCard format is converted into the XHTML format with a template. In other words, the vCard file is originally a file format that does not have the concept of layout, but the format is converted from a file format (vCard) that cannot be layout defined to a file format (XHTML) that can be layout defined so that it can be printed with a predetermined layout when printing. To do. A layout is defined by tags by using a template described in the XHTML format at the time of format conversion. The text data format conversion unit 85 sends XHTML data in which personal information is embedded in the template to the text data raster processing unit 75.

一方、画像データデコード部87は、拡張子識別部81からvNoteファイル形式のオブジェクトデータを受け取って、そのオブジェクトデータの中身を解析し、vNoteファイル形式のデータであるか否かを検証する。例えばvNoteファイル形式のデータであれば備えているはずのプロパティ等の有無を確認する。vNoteファイル形式のデータでなければデータを破棄するとともに、間違ったデータである旨をUARTドライバ72を通じてCF型通信カード13へ通知する。一方、vNoteファイル形式のデータであれば、添付されているエンコード画像データを抜き取るとともに、メモ帳機能で記述されたテキストデータを含むと解析した場合はそのテキストデータをテキストデータ形式変換部85に転送する。そして、予め用意されたデコード用プログラム(Bese64)を起動させて、エンコードされたJPEG画像データをJPEG画像データにデコードする。   On the other hand, the image data decoding unit 87 receives the object data in the vNote file format from the extension identifying unit 81, analyzes the contents of the object data, and verifies whether the data is in the vNote file format. For example, the presence or absence of a property or the like that should be provided in the case of vNote file format data is confirmed. If the data is not in the vNote file format, the data is discarded and the CF communication card 13 is notified through the UART driver 72 that the data is incorrect. On the other hand, if the data is in the vNote file format, the attached encoded image data is extracted, and if it is analyzed that the text data described by the memo pad function is included, the text data is transferred to the text data format conversion unit 85. To do. Then, a decoding program (Bese64) prepared in advance is activated to decode the encoded JPEG image data into JPEG image data.

このように画像データデコード部87は、拡張子が「vnt」であるけれどもデータの中身までも正しくvNote形式であるかどうかを事前に解析及び検証する。画像データデコード部87は、デコード後のJPEG画像データを、画像データラスタ処理部76に送出する。   In this manner, the image data decoding unit 87 analyzes and verifies in advance whether the extension is “vnt” but the contents of the data are also correctly in the vNote format. The image data decoding unit 87 sends the decoded JPEG image data to the image data raster processing unit 76.

テキストデータラスタ処理部75は、テキストデータ形式変換部85から受け取ったXHTMLデータにラスタ処理を施す。このラスタ処理には、XHTML解析処理、レイアウト設定処理、色変換処理及び2値化処理が含まれる。まずXHTML解析処理では、XHTMLデータを解析して、XHTML言語で記述されたレイアウトテンプレート情報とテキストで記述された個人情報とに分解する。そして、XHTML言語(タグ)で記述された記述内容(レイアウトテンプレート情報)を解析して個人情報テキスト(各プロパティの値)の割付領域を演算し、演算した各割付領域の位置座標データ(アドレスデータ)を取得する。レイアウト設定処理では、個人情報テキストの文字コードをキャラクタデータに変換するとともに、得られたキャラクタデータをテンプレートで指定された割付領域から決まるアドレスに所定の文字サイズのドットデータとして展開する。この展開されたドットデータに色変換処理及び2値化処理を施した後、その2値化データに印刷時のドット形成順序に並び替える処理を施す。   The text data raster processing unit 75 performs raster processing on the XHTML data received from the text data format conversion unit 85. This raster processing includes XHTML analysis processing, layout setting processing, color conversion processing, and binarization processing. First, in the XHTML analysis process, XHTML data is analyzed and decomposed into layout template information described in the XHTML language and personal information described in text. Then, the description contents (layout template information) described in the XHTML language (tag) are analyzed to calculate the allocation area of the personal information text (value of each property), and the calculated position coordinate data (address data) of each allocation area ) To get. In the layout setting process, the character code of the personal information text is converted into character data, and the obtained character data is developed as dot data of a predetermined character size at an address determined from the allocation area specified by the template. A color conversion process and a binarization process are performed on the expanded dot data, and then the binarization data is subjected to a process of rearranging in the dot formation order at the time of printing.

なお、XHTML解析処理の結果、XHTMLデータが画像を含む(アドレス指定のみ)場合は、その画像のアドレスデータを指定して携帯電話14に画像データを転送させる転送要求を出し、この転送要求に応答して携帯電話14から画像データが転送されると、その画像とテキストを併せた全体についてレイアウト設定処理を行う。よって、テキストと画像を含む場合は、テキストと画像が所定位置に配置されたレイアウトが決定される。ここで、vCardデータに画像が含まれる場合、エンコードされた画像データのデコード処理(Base64)が必要であるが、本実施形態では、携帯電話14から取得した画像データを画像データデコード部87に一旦送り、画像データデコード部87においてデコード処理された後のJPEGデータをテキストデータラスタ処理部75へ戻すことで間接的にデコード処理を行うようにしている。このようにvCardデータが画像を含む場合、本実施形態のようにvCardデータに画像のアドレスデータのみ埋め込まれた構成でもよいし、vCardデータに画像データが最初から埋め込まれている構成でもよい。この後者の構成の場合は、画像データのみを後から転送させる転送処理を不要にすることができる。   As a result of the XHTML analysis process, if the XHTML data includes an image (only address designation), a transfer request is issued to designate the address data of the image and transfer the image data to the mobile phone 14, and respond to this transfer request. When the image data is transferred from the mobile phone 14, layout setting processing is performed for the entire image and text. Therefore, when text and an image are included, a layout in which the text and the image are arranged at predetermined positions is determined. Here, when an image is included in the vCard data, it is necessary to decode the encoded image data (Base64). In the present embodiment, the image data acquired from the mobile phone 14 is temporarily stored in the image data decoding unit 87. The JPEG data after being sent and decoded by the image data decoding unit 87 is returned to the text data raster processing unit 75 to indirectly perform the decoding process. When the vCard data includes an image as described above, a configuration in which only image address data is embedded in the vCard data as in this embodiment may be used, or a configuration in which image data is embedded in the vCard data from the beginning may be used. In the case of this latter configuration, it is possible to eliminate the transfer process for transferring only the image data later.

画像データラスタ処理部76は、JPEG画像データにラスタ処理を施す。但し、ラスタ処理の前に、画像データデコード部87を経由せず直接送られてきたJPEGデータについては、データの中身を解析してJPEGファイル形式のデータであるか否かを検証する。例えばJPEGファイル形式のデータであれば備えているはずの情報の有無を確認する。JPEGファイル形式のデータでなければデータを破棄するとともに、間違ったデータである旨をUARTドライバ72を通じてCF型通信カード13へ通知する。一方、JPEGファイル形式のデータであれば、ラスタ処理に移行する。このように画像データラスタ処理部76は、拡張子が「jpeg」であるけれどもデータの中身までも正しくJPEG形式であるかどうかを事前に解析及び検証する。   The image data raster processing unit 76 performs raster processing on the JPEG image data. However, for the JPEG data sent directly without going through the image data decoding unit 87 before raster processing, the contents of the data are analyzed to verify whether the data is in JPEG file format. For example, the presence or absence of information that should be provided in the case of JPEG file format data is confirmed. If the data is not in the JPEG file format, the data is discarded and the CF type communication card 13 is notified through the UART driver 72 that the data is incorrect. On the other hand, if the data is in JPEG file format, the process proceeds to raster processing. As described above, the image data raster processing unit 76 analyzes and verifies in advance whether the extension is “jpeg” but the data contents are also correctly in the JPEG format.

ラスタ処理には、JPEG解析及びデコード処理、レイアウト設定処理、色変換処理及び2値化処理が含まれる。JPEG解析及びデコード処理では、JPEG画像データが圧縮系画像データであるためまずこれをYCbCr表色系(輝度(Y)と青の色差(Cb)と赤の色差(Cr)を使って表現する表色系)の非圧縮系画像データに解凍する。そして、解凍して得られたYCbCr表色系の多値画像データをさらにRGB表色系の多値画像データに変換する。そして、レイアウト設定処理では、RGB表色系の多値画像データを用紙上に割り付ける割付領域を演算し、演算した割付領域から決まるワークメモリ(イメージバッファ)44b上のアドレスにその画像を所定サイズのドットデータとして展開する。この展開された画像データ(ドットデータ)に色変換処理及び2値化処理を施した後、その2値化データに印刷時のドット形成順序に並び替える処理を施す。先に説明したテキストデータラスタ処理部75におけるレイアウト設定処理後のJPEG画像のラスタ処理についても同様の処理が行われる。また、vNoteデータにテキストが含まれる場合は、画像データラスタ処理部76がテキストと画像の全体についてレイアウト設定処理を行うようになっている。なお、各ファイル形式(vCard,vNote,JPEG)のオブジェクトデータの中身について解析及び検証する、テキストデータ形式変換部85、画像データデコード部87及び画像データラスタ処理部76によって、第2判定手段が構成される。   The raster processing includes JPEG analysis and decoding processing, layout setting processing, color conversion processing, and binarization processing. In JPEG analysis and decoding processing, since JPEG image data is compressed image data, this is first expressed using the YCbCr color system (luminance (Y), blue color difference (Cb), and red color difference (Cr). Decompress to color-based (uncompressed) image data. The YCbCr color system multi-value image data obtained by decompression is further converted into RGB color system multi-value image data. In the layout setting process, an allocation area in which RGB color system multi-value image data is allocated on a sheet is calculated, and the image is assigned to an address on the work memory (image buffer) 44b determined from the calculated allocation area. Expand as dot data. After the developed image data (dot data) is subjected to color conversion processing and binarization processing, the binarized data is subjected to processing for rearranging in the dot formation order at the time of printing. The same processing is performed for the raster processing of the JPEG image after the layout setting processing in the text data raster processing section 75 described above. When text is included in the vNote data, the image data raster processing unit 76 performs layout setting processing for the entire text and image. The second determination means is constituted by the text data format conversion unit 85, the image data decoding unit 87, and the image data raster processing unit 76 that analyze and verify the contents of the object data in each file format (vCard, vNote, JPEG). Is done.

プリントエンジン77は、ワークメモリ44b上に展開されたラスタ処理後のCMYK2値画像データ(ラスタデータ)を、印刷コマンドヘッダとセットにしてプリンタ印刷コマンドに仕立て、エンジンコントローラによってプリンタ印刷コマンドに基づき印刷機構が駆動されることにより用紙に印刷が施される。   The print engine 77 sets the CMYK binary image data (raster data) after raster processing developed on the work memory 44b as a set with a print command header to be a printer print command, and prints the print mechanism by the engine controller based on the printer print command. Is driven to print on the paper.

なお、テキストデータラスタ処理部75及び画像データラスタ処理部76は、ブルートゥース対応携帯端末BCで扱われるファイル形式(XHTML形式とJPEG形式)のデータでも印刷できるように、プリンタ1にCF型通信カード受信方式の採用前から備えられた既存のものである。本例では、CF型通信カード13を介して受信した携帯電話対応形式のファイルデータでも印刷できるように追加が必要な機能部分についてこの既存部分を流用することによりその最小化を図っている。つまり、携帯電話対応形式(vCard形式とvNote形式)のデータをブルートゥース対応形式へ形式変換する機能部分をIrDAプロファイル処理部74に追加することにより、形式変換後のデータ処理については各ラスタ処理部75,76を流用するようにしている。   Note that the text data raster processing unit 75 and the image data raster processing unit 76 receive a CF type communication card in the printer 1 so that data in file formats (XHTML format and JPEG format) handled by the Bluetooth-compatible mobile terminal BC can also be printed. It is an existing one that was provided before the system was adopted. In this example, the function part that needs to be added is diverted to minimize the function part that needs to be added so that even the file data of the cellular phone compatible format received via the CF type communication card 13 can be printed. That is, by adding to the IrDA profile processing unit 74 a function part for converting data in a cellular phone compatible format (vCard format and vNote format) into a Bluetooth compatible format, each raster processing unit 75 , 76 is diverted.

図7は、2つのラスタ処理部とプリントエンジンの一部とにより構成され、XHTML形式及びJPEG形式の各データから印刷データを生成する画像処理装置の概略構成を示す。この画像処理装置は、主にCPU41、ASIC46、ROM42、EEPROM43及びRAM44から構成される。但し、処理の一部についてはCPU41がプログラムを実行するソフトウェアにより実現している。もちろん、大部分の処理をハードウェア回路で実現するのではなく、半分以上の処理をソフトウェアにより実現することもできる。   FIG. 7 shows a schematic configuration of an image processing apparatus that includes two raster processing units and a part of a print engine, and generates print data from data in XHTML format and JPEG format. This image processing apparatus mainly includes a CPU 41, an ASIC 46, a ROM 42, an EEPROM 43, and a RAM 44. However, part of the processing is realized by software that the CPU 41 executes a program. Of course, most of the processing is not realized by a hardware circuit, but more than half of the processing can be realized by software.

図7に示すように、ASIC46は、解釈処理部90、JPEG解凍器91、YCbCr/RGBコンバータ92、メモリコントローラ93、画像処理部46a及び印刷処理部46bを内蔵する。また、画像処理部46aは色変換処理部94及び2値化処理部95などを備え、印刷処理部46bはコマンドエンコーダ96及びエンジンコントローラ97を備えている。ROM42にはキャラクタジェネレータ98が構築されている。また、EEPROM43はその記憶領域の一部にテンプレート記憶部86を含むとともに色変換テーブル99を記憶している。   As shown in FIG. 7, the ASIC 46 includes an interpretation processing unit 90, a JPEG decompressor 91, a YCbCr / RGB converter 92, a memory controller 93, an image processing unit 46a, and a print processing unit 46b. The image processing unit 46 a includes a color conversion processing unit 94 and a binarization processing unit 95. The print processing unit 46 b includes a command encoder 96 and an engine controller 97. A character generator 98 is built in the ROM 42. The EEPROM 43 includes a template storage unit 86 in a part of the storage area and stores a color conversion table 99.

メモリコントローラ93は、キャラクタデータと画像データのうち少なくとも一方からなるドットデータをワークメモリ44b上に展開するとともに、展開したドットデータの画素順序をラスタスキャンの順序に並べ替える画像処理を司る回路である。   The memory controller 93 is a circuit that manages image processing for expanding dot data including at least one of character data and image data on the work memory 44b and rearranging the pixel order of the expanded dot data to the raster scan order. .

また、図6における各ラスタ処理部75,76が有する各バッファ75a,76aは、RAM44にそれぞれ専用記憶領域として確保されている。もちろん、RAM以外の例えばSDRAMにそれらの専用記憶領域が確保されてもよい。   Further, the buffers 75a and 76a included in the raster processing units 75 and 76 in FIG. 6 are respectively secured as dedicated storage areas in the RAM 44. Of course, those dedicated storage areas may be secured in, for example, SDRAM other than RAM.

まず、XHTMLデータにラスタ処理を施すテキストデータラスタ処理部75の処理について説明する。なお、テキストデータラスタ処理部75は、解釈処理部90、メモリコントローラ93、キャラクタジェネレータ98及び第1バッファ75aなどにより構成される。   First, the processing of the text data raster processing unit 75 that performs raster processing on XHTML data will be described. The text data raster processing unit 75 includes an interpretation processing unit 90, a memory controller 93, a character generator 98, a first buffer 75a, and the like.

ROM42には、日本語及び英語のフォント等のキャラクタ(文字や記号等)のパターンを示すキャラクタジェネレータデータ(CGデータ)が記憶され、このCGデータによりキャラクタコード(文字コード)をCGデータに変換するキャラクタジェネレータ98が構築されている。キャラクタジェネレータ98は、その指定されたアドレスに文字コードが与えられると、各種文字のドット構成(文字ドットパターン)を特定するために必要なCGデータを読み出す。CGデータはベクタデータである。ここで、ベクタデータとは、描画の対象となる文字や図形の輪郭を表したデータであり、より詳しくは文字や図形の主要点の座標および座標間を結ぶ曲線(例えばベジェ曲線)の方程式を含むパラメータによって記述されている。   The ROM 42 stores character generator data (CG data) indicating a pattern of characters (characters, symbols, etc.) such as Japanese and English fonts, and converts the character code (character code) into CG data using the CG data. A character generator 98 is constructed. When a character code is given to the designated address, the character generator 98 reads CG data necessary for specifying the dot configuration (character dot pattern) of various characters. CG data is vector data. Here, the vector data is data representing the outline of the character or figure to be drawn. More specifically, the coordinates of the main points of the character or figure and the equation of a curve (for example, a Bezier curve) connecting the coordinates are expressed. It is described by the parameters that it contains.

テキストデータラスタ処理部75に送られたXHTMLデータは、まず解釈処理部90に転送される。XTMHLデータは、個人情報が記述された本文であるキャラクタデータと、個人情報の本文がレイアウトされるべき場所を記述するテンプレートタグとを含む。   The XHTML data sent to the text data raster processing unit 75 is first transferred to the interpretation processing unit 90. The XTMHL data includes character data that is a body in which personal information is described, and a template tag that describes a place where the body of the personal information is to be laid out.

解釈処理部90は、XHTMLデータの記述内容を解析し、テキスト本文の文字(キャラクタ)に対応するキャラクタデータと、文字列のレイアウトされるべき場所を記述するテンプレートタグから解釈されるレイアウトデータ(アドレス空間上の座標データ)とに個々の対応を関連付けたまま変換する。キャラクタデータは、文字や記号の種類を特定するキャラクタコード(例えばアスキー(ASCII)コードなど)とフォントなどの修飾情報とを有する。解釈処理部90は、XHTMLデータから分解及び変換したキャラクタデータ及びレイアウトデータを個々の対応を関連付けた情報と共にメモリコントローラ93に渡す。   The interpretation processing unit 90 analyzes the description content of the XHTML data, and layout data (address) that is interpreted from character data corresponding to characters (characters) of the text body and a template tag that describes a place where the character string should be laid out. (Coordinate data in space) and the corresponding correspondence is converted. The character data includes a character code (for example, ASCII code) that specifies the type of character or symbol, and modification information such as a font. The interpretation processing unit 90 passes the character data and layout data decomposed and converted from the XHTML data to the memory controller 93 together with information associated with each correspondence.

メモリコントローラ93は、キャラクタデータをキャラクタジェネレータ98に与えて読み出したCGデータ(ベクタデータ)を、所定の文字サイズの文字ドットパターンデータ(キャラクタドットデータ)に変換するベクタフォント展開処理を行う。さらにメモリコントローラ93は、ベクタフォント展開処理で得たキャラクタドットデータを、ワークメモリ44bにおいてレイアウトデータ(アドレス空間上の座標データ)によって指定された垂直位置及び水平位置に展開する。そして、メモリコントローラ93は、展開したその画素順序をラスタスキャンの順序に並べ替えて第1バッファ75aに格納した後、印刷処理部46bに転送する。ここで、第1バッファ75aは、XHTMLデータのラスタ処理に使われるためそのバッファ容量は比較的小さい(例えば30〜100キロバイト)。   The memory controller 93 performs vector font expansion processing for converting CG data (vector data) read by supplying character data to the character generator 98 into character dot pattern data (character dot data) having a predetermined character size. Further, the memory controller 93 expands the character dot data obtained by the vector font expansion processing to the vertical position and the horizontal position designated by the layout data (coordinate data on the address space) in the work memory 44b. The memory controller 93 rearranges the developed pixel order into the raster scan order, stores it in the first buffer 75a, and transfers it to the print processing unit 46b. Here, since the first buffer 75a is used for raster processing of XHTML data, its buffer capacity is relatively small (for example, 30 to 100 kilobytes).

次にJPEG画像データにラスタ処理を施す画像データラスタ処理部76の処理について説明する。なお、画像データラスタ処理部76は、JPEG解凍器91、YCbCr/RGBコンバータ92、メモリコントローラ93及び第2バッファ76aなどにより構成される。   Next, processing of the image data raster processing unit 76 that performs raster processing on JPEG image data will be described. The image data raster processing unit 76 includes a JPEG decompressor 91, a YCbCr / RGB converter 92, a memory controller 93, a second buffer 76a, and the like.

JPEG解凍器91は、JPEG画像データを解凍してYCbCr表色系の多値画像データに変換する回路である。YCbCr/RGBコンバータ92は、YCbCr表色系の多値画像データを、YCbCr表色系からRGB表色系のRGB多値画像データに色変換する回路である。この色変換には以下の変換式が使用される。
R= Y+1.40200×Cr
G=Y-0.34414×Cb-0.71414×Cr
B=Y+1.77200×Cb
メモリコントローラ93は、YCbCr/RGBコンバータ92から受け取ったRGB多値画像データをワークメモリ44bに展開するとともに、展開した画素順序をラスタスキャンの順序に並べ替える画像処理を司る回路である。ここで、JPEGの圧縮処理では、元画像は8画素×8画素のブロック領域に分割され、ブロック領域単位で所定の演算処理がなされる。そのため、YCbCr/RGBコンバータ92から渡される、JPEGデータから変換された当初のRGB多値データも、8画素×8画素のブロック領域に分割した形で画素データが並んでいる。メモリコントローラ93は、その8画素×8画素のブロック領域に仕分けられている画素データの配列を、印刷処理に適したラスタスキャン(つまり、例えば、画像の左端から右端までの行方向の水平スキャンを、最上行から1行づつ下へ向って繰り返していくスキャン)の順序の配列に変換する。メモリコントローラ93は、YCbCr/RGBコンバータ92から受け取ったRGB多値画像の各画素データを展開後、第2バッファ76a上にラスタスキャン順序に従って書き込んでいくことで、この並べ替えを行う。これにより、第2バッファ76a上には、ラスタスキャンの順序で画素が並んだRGB多値画像データが格納されることになる。メモリコントローラ93は、ラスタスキャンの順序で画素が並んだRGB多値画像データを画像処理部46aへ転送する。ここで、第2バッファ76aは、JPEG画像データのラスタ処理に使われるためそのバッファ容量が第1バッファ75aのそれに比べ相対的に大きい(例えば3〜10メガバイト)。
The JPEG decompressor 91 is a circuit that decompresses JPEG image data and converts it into YCbCr color system multi-value image data. The YCbCr / RGB converter 92 is a circuit for color-converting the YCbCr color system multi-value image data from the YCbCr color system to the RGB color system RGB multi-value image data. The following conversion formula is used for this color conversion.
R = Y + 1.40200 × Cr
G = Y-0.34414 × Cb-0.71414 × Cr
B = Y + 1.77200 × Cb
The memory controller 93 is a circuit that manages the RGB multi-valued image data received from the YCbCr / RGB converter 92 in the work memory 44b and performs image processing for rearranging the developed pixel order into the raster scan order. Here, in JPEG compression processing, the original image is divided into block regions of 8 pixels × 8 pixels, and predetermined calculation processing is performed in units of block regions. For this reason, the original RGB multivalued data converted from JPEG data passed from the YCbCr / RGB converter 92 is also arranged in the form of pixel data divided into 8 pixel × 8 pixel block areas. The memory controller 93 converts the array of pixel data sorted into the block area of 8 pixels × 8 pixels into a raster scan suitable for print processing (that is, for example, horizontal scan in the row direction from the left end to the right end of the image). , Scans that are repeated downward from the top row one row at a time). The memory controller 93 performs this rearrangement by developing each pixel data of the RGB multi-valued image received from the YCbCr / RGB converter 92 and writing it in the second buffer 76a according to the raster scan order. As a result, RGB multilevel image data in which pixels are arranged in the raster scan order is stored on the second buffer 76a. The memory controller 93 transfers the RGB multilevel image data in which the pixels are arranged in the raster scan order to the image processing unit 46a. Here, since the second buffer 76a is used for raster processing of JPEG image data, its buffer capacity is relatively larger than that of the first buffer 75a (for example, 3 to 10 megabytes).

画像処理部46aに転送されたRGB多値画像データはまず色変換処理部94に送られ、次に2値化処理部95に転送される。色変換処理部94は、RGB多値画像データをCMYK多値画像データに色変換する回路である。さらに2値化処理部95は、そのCMYK多値画像データをCMYK2値画像データに2値化する回路である。   The RGB multilevel image data transferred to the image processing unit 46 a is first sent to the color conversion processing unit 94 and then transferred to the binarization processing unit 95. The color conversion processing unit 94 is a circuit that performs color conversion of RGB multilevel image data to CMYK multilevel image data. Further, the binarization processing unit 95 is a circuit that binarizes the CMYK multilevel image data into CMYK binary image data.

色変換処理部94は、EEPROM43に記憶された、RGB表色系からCMYK表色系へ色変換するための色変換テーブル99を読み出し、これを参照してRGB多値画像データをCMYK多値画像データに変換する。このCMYK多値画像データは2値化処理部95に転送される。   The color conversion processing unit 94 reads the color conversion table 99 for color conversion from the RGB color system to the CMYK color system stored in the EEPROM 43, and refers to this to convert the RGB multi-value image data into the CMYK multi-value image. Convert to data. The CMYK multivalued image data is transferred to the binarization processing unit 95.

次いで、2値化処理部95は、CMYK多値画像データに2値化処理(例えば、誤差拡散処理又はディザ処理など)を施し、これをCMYK2値画像データに変換する。このCMYK2値画像データは印刷処理部46bに転送される。なお、画像処理部46aに転送されたデータに拡大、縮小、回転などの所定処理を施す際はCPU41に転送され、その所定処理はソフトウェア処理により施される。   Next, the binarization processing unit 95 performs binarization processing (for example, error diffusion processing or dither processing) on the CMYK multilevel image data, and converts this into CMYK binary image data. The CMYK binary image data is transferred to the print processing unit 46b. Note that when the data transferred to the image processing unit 46a is subjected to predetermined processing such as enlargement, reduction, and rotation, the data is transferred to the CPU 41, and the predetermined processing is performed by software processing.

印刷処理部46bには、ラスタスキャン順序に並び替えられた、キャラクタドットデータ又はCMYK2値画像データが転送されてくる。これらのデータはコマンドエンコーダ96に転送される。   Character dot data or CMYK binary image data rearranged in the raster scan order is transferred to the print processing unit 46b. These data are transferred to the command encoder 96.

コマンドエンコーダ96は、キャラクタドットデータ又はCMYK2値画像データを、CPU41からのプリンタ印刷コマンドのコマンドヘッダとセットにして印刷データに仕立て、エンジンコントローラ97へ送る。エンジンコントローラ97は印刷データに基づいて圧電素子PZを駆動制御する指令信号をドライバ47dに出力する。   The command encoder 96 sets the character dot data or CMYK binary image data together with the command header of the printer print command from the CPU 41 as print data, and sends it to the engine controller 97. The engine controller 97 outputs a command signal for driving and controlling the piezoelectric element PZ to the driver 47d based on the print data.

図7は、プリンタが複数の通信方式で受信したデータを印刷データに変換して印刷に至るまでのデータ処理の流れを説明するブロック図である。通信方式としては、メモリカード読取り方式、ブルートゥース通信方式及び赤外線通信(IrDA)方式のみを挙げている。これらの通信方式で受信するデータは、その送信元の機器の種類によって取り扱うファイル形式が異なるが、プリンタ1は各通信方式で取り扱われるファイル形式の違いによらず印刷可能に対応している。メモリカード読取り方式では、デジタルカメラで撮影された画像データをメモリカードから読み取って印刷する用途を前提とするので、その読み取りデータはデジタルカメラで一般に採用されているJPEGデータとなる。ブルートゥース通信方式で受信されるデータは、PDAなどのブルートゥース対応の携帯端末BCで使用頻度の高いXHTMLデータとJPEGデータとなる。赤外線通信(IrDA)方式で受信されるデータは、携帯電話14で採用されるvCard形式データとvNote形式データとなる。このように受信データのファイル形式が異なると、印刷データに変換して印刷に至るまでにはファイル形式毎に異なるデータ処理が必要となる。   FIG. 7 is a block diagram illustrating the flow of data processing from when data received by a printer using a plurality of communication methods is converted into print data to printing. As the communication method, only the memory card reading method, the Bluetooth communication method, and the infrared communication (IrDA) method are listed. The data received by these communication methods is handled in different file formats depending on the type of the transmission source device, but the printer 1 is capable of printing regardless of the difference in the file formats handled by each communication method. The memory card reading method is based on the premise that the image data captured by the digital camera is read from the memory card and printed, and thus the read data is JPEG data generally adopted by the digital camera. Data received by the Bluetooth communication method is XHTML data and JPEG data that are frequently used in a Bluetooth-compatible mobile terminal BC such as a PDA. Data received by the infrared communication (IrDA) method is vCard format data and vNote format data adopted by the mobile phone 14. If the file format of the received data is different as described above, different data processing is required for each file format before printing into print data and printing.

本実施形態のプリンタ1は、ホストコンピュータ内のプリンタドライバから受信した印刷データを扱う印刷処理機能と、メモリカードから読み取った画像データ(JPEG)を処理する印刷処理機能と、ブルートゥース通信方式で受信したXHTMLデータを処理する印刷処理機能とを備える。そして、本実施形態では、赤外線通信方式の採用に当たり、メモリカード用に元々備えられたカードスロット12を利用して、IrDA通信モジュールをCF型通信カード13の形で提供しカード形式で実装できるようにしている。従って、プリンタ1の筐体(本体ケース)などの形状設計変更が不要で、プリンタ1の筐体は赤外線通信方式の導入前後で共通のものを使用できるので、その設計変更や製造金型変更の必要もない。また、プリンタ1の内部的にはIrDA通信プロトコル及びアプリケーションなどソフトウェアの追加・変更のみで済ませている。これにより、既存の回路などには手を加えず既存のものを共用する形で、IrDA通信機能を追加するようにしている。   The printer 1 of the present embodiment receives a print processing function that handles print data received from a printer driver in a host computer, a print processing function that processes image data (JPEG) read from a memory card, and a Bluetooth communication method. And a print processing function for processing XHTML data. In this embodiment, when the infrared communication method is adopted, the IrDA communication module is provided in the form of the CF communication card 13 by using the card slot 12 originally provided for the memory card so that it can be mounted in the card format. I have to. Accordingly, it is not necessary to change the shape design of the casing (main body case) of the printer 1, and the casing of the printer 1 can be used before and after the introduction of the infrared communication method. There is no need. In addition, the printer 1 only needs to add / change software such as the IrDA communication protocol and application. As a result, the IrDA communication function is added in such a manner that the existing circuit is shared without changing the existing circuit.

以下、図7を用いて、赤外線通信方式を導入するに当たり既存の構成の共用によって簡素な構成の追加のみで済ませたプリンタの特徴的構成について説明する。
赤外線通信方式の導入に当たり追加されたのは、カードスロット12にセットして使用されるCF型通信カード13と、本体2内に設けられたIrDA通信用チップ、通信プロトコル及びアプリケーション等からなるIrDA通信処理部120である。
Hereinafter, a characteristic configuration of a printer in which only a simple configuration is added by sharing an existing configuration when introducing an infrared communication method will be described with reference to FIG.
What was added when the infrared communication system was introduced was an IrDA communication comprising a CF-type communication card 13 set in the card slot 12 and an IrDA communication chip, a communication protocol, an application, and the like provided in the main body 2. It is the processing unit 120.

CF型通信カード13は、既に説明したように、赤外線受発光部13a、IrDA通信回路61、IrDAスタック62、ファイル転送部(IrOBEX)63、オブジェクト送受信部64及びUART33,34を備える。このCF型通信カード13に赤外線通信でデータ送信を行う携帯電話14もほぼ同様の通信レイヤ構造をもち、赤外線受発光部20、IrDA通信回路121、IrDAスタック122、ファイル転送部(IrOBEX)123及びアプリケーション124を備える。また、IrDA通信処理部120は、ドライバ71,72、データトランスファ部73及びIrDAプロファイル処理部74を備える。IrDAプロファイル処理部74は、携帯電話14で扱われるデータを、他の通信方式で扱われるファイル形式やデータに変換などするソフトウェアで構築されている。   As already described, the CF-type communication card 13 includes the infrared light emitting / receiving unit 13a, the IrDA communication circuit 61, the IrDA stack 62, the file transfer unit (IrOBEX) 63, the object transmission / reception unit 64, and the UARTs 33 and 34. The cellular phone 14 that transmits data to the CF-type communication card 13 by infrared communication has a similar communication layer structure, and includes an infrared light emitting / receiving unit 20, an IrDA communication circuit 121, an IrDA stack 122, a file transfer unit (IrOBEX) 123, and An application 124 is provided. The IrDA communication processing unit 120 includes drivers 71 and 72, a data transfer unit 73, and an IrDA profile processing unit 74. The IrDA profile processing unit 74 is constructed by software that converts data handled by the mobile phone 14 into a file format or data handled by another communication method.

一方、メモリカード読取り方式を実現する構成部分は、スロット通信部45eと画像データラスタ処理部76とメモリカードMCに記憶された画像データを選択するためのUI(ユーザインターフェイス)等を含む画像選択処理部(図示せず)などである。画像データラスタ処理部76は、JPEG画像データをラスタ処理する機能をもち、解凍器91とYCbCr/RGBコンバータ92などを有する。   On the other hand, the components for realizing the memory card reading method include an image selection process including a slot communication unit 45e, an image data raster processing unit 76, a UI (user interface) for selecting image data stored in the memory card MC, and the like. Part (not shown). The image data raster processing unit 76 has a function of raster processing JPEG image data, and includes a decompressor 91, a YCbCr / RGB converter 92, and the like.

また、ブルートゥース通信方式を実現する構成部分は、BT通信部45cとテキストデータラスタ処理部75と画像データラスタ処理部76である。BT通信部45cは、ブルートゥース通信回路(以下、BT通信回路と称す)(物理層)125、ブルートゥース通信プロトコルスタック(以下、BTスタックと称す)126、ファイル転送部(OBEX)127、BPP128及びBIP129(共にアプリケーション層)を備える。このBT通信部45cにデータを送信する携帯端末BCもほぼ同様の通信レイヤ構造をもち、BT通信回路(物理層)131、BTスタック132、ファイル転送部(OBEX)133、BPP134及びBIP135(共にアプリケーション層)を備えている。テキストデータラスタ処理部75は、XHTML形式のテキストデータをラスタ処理する機能をもち、解釈処理部90とキャラクタジェネレータ98などを有する。また、BT通信部45cで受信されたJPEG画像データは、画像データラスタ処理部76へ転送されてラスタ処理される。つまり、ブルートゥース通信方式とメモリカード読取り方式は、同じファイル形式の画像データを扱うことからそのラスタ処理には、画像データラスタ処理部76を共用している。   Further, the components that realize the Bluetooth communication system are a BT communication unit 45c, a text data raster processing unit 75, and an image data raster processing unit 76. The BT communication unit 45c includes a Bluetooth communication circuit (hereinafter referred to as BT communication circuit) (physical layer) 125, a Bluetooth communication protocol stack (hereinafter referred to as BT stack) 126, a file transfer unit (OBEX) 127, BPP128, and BIP129 ( Both have an application layer). The portable terminal BC that transmits data to the BT communication unit 45c also has a similar communication layer structure. The BT communication circuit (physical layer) 131, the BT stack 132, the file transfer unit (OBEX) 133, the BPP 134, and the BIP 135 (both applications) Layer). The text data raster processing unit 75 has a function of raster processing text data in XHTML format, and includes an interpretation processing unit 90 and a character generator 98. The JPEG image data received by the BT communication unit 45c is transferred to the image data raster processing unit 76 and subjected to raster processing. That is, since the Bluetooth communication method and the memory card reading method handle image data in the same file format, the image data raster processing unit 76 is shared for raster processing.

BT通信部45cのBPP128から送られてきたXHTMLデータは、解釈処理部90で解釈されることで、文字コードとレイアウトデータとが抽出される。そのうち文字コードはキャラクタジェネレータ98でドット構成の文字パターンへ変換され、またレイアウトデータは画像展開時に文字パターンの配置位置を決めるために使用される。   The XHTML data sent from the BPP 128 of the BT communication unit 45c is interpreted by the interpretation processing unit 90, whereby a character code and layout data are extracted. Among them, the character code is converted into a dot-structured character pattern by the character generator 98, and the layout data is used to determine the arrangement position of the character pattern when developing the image.

一方、IrDA通信処理部120のIrDAプロファイル処理部74は、vCard形式からXHTML形式へのデータ形式変換処理を主に行うテキストデータ処理部(vCrad処理部)141と、vNote形式からJPEG形式へのデータ形式変換処理を行う画像データ処理部(vNote処理部)142とを備える。テキストデータ処理部141は、件数判定部82、ノート解析部83、分割処理部84、テキストデータ形式変換部85及びテンプレート記憶部86を有する。一方、画像データ処理部142は、画像データデコード部87を有している。   On the other hand, the IrDA profile processing unit 74 of the IrDA communication processing unit 120 includes a text data processing unit (vCrad processing unit) 141 that mainly performs data format conversion processing from the vCard format to the XHTML format, and data from the vNote format to the JPEG format. An image data processing unit (vNote processing unit) 142 that performs format conversion processing. The text data processing unit 141 includes a number determination unit 82, a note analysis unit 83, a division processing unit 84, a text data format conversion unit 85, and a template storage unit 86. On the other hand, the image data processing unit 142 includes an image data decoding unit 87.

テキストデータ処理部141は、vCardテキストデータをテンプレート組込み記述形式のXHTMLテキストデータに変換する。つまり、テキストデータ処理部141は、携帯電話対応形式であるvCardテキストデータをブルートゥース対応形式であるXHTMLテキストデータに変換することで、ブルートゥース対応形式データ処理に用意されているテキストデータラスタ処理部75を利用する。また、画像データ処理部142はvNote添付形式のエンコード画像データをJPEG画像データに変換(デコード)する。つまり、画像データ処理部142は、携帯電話対応形式であるvNote添付形式のエンコード画像データをJPEG画像データに変換(デコード)することで、ブルートゥース対応形式及びメモリカード対応形式データ処理のために用意されている画像データラスタ処理部76を利用する。このように各ラスタ処理部75,76は、ブルートゥース対応形式と携帯電話対応形式の各データのラスタ処理に共用されている。   The text data processing unit 141 converts the vCard text data into XHTML text data in a template embedded description format. That is, the text data processing unit 141 converts the vCard text data, which is a cellular phone compatible format, into XHTML text data, which is a Bluetooth compatible format, so that the text data raster processing unit 75 prepared for the Bluetooth compatible format data processing is displayed. Use. The image data processing unit 142 converts (decodes) the encoded image data in the vNote attached format into JPEG image data. In other words, the image data processing unit 142 is prepared for processing data corresponding to the Bluetooth compatible format and the memory card compatible format by converting (decoding) the encoded image data in the vNote attached format which is a format compatible with the mobile phone into JPEG image data. The image data raster processing unit 76 is used. As described above, the raster processing units 75 and 76 are commonly used for raster processing of data in a Bluetooth compatible format and a mobile phone compatible format.

上記3つの通信方式のうちいずれで受信した画像データもラスタ処理後は、画像処理部46a及び印刷処理部46bで順次処理され、その画像データに基づく印刷データが生成される。また、上記3つの通信方式のうちいずれで受信したテキストデータもラスタ処理後は、画像処理部46a及び印刷処理部46bで順次処理され、そのテキストデータに基づく印刷データが生成される。そして、その印刷データに基づき印刷処理部46bにより印刷機構145が駆動制御される。   The image data received by any of the above three communication methods is sequentially processed by the image processing unit 46a and the print processing unit 46b after raster processing, and print data based on the image data is generated. Also, after raster processing of text data received by any of the three communication methods, the image processing unit 46a and the print processing unit 46b sequentially process the print data based on the text data. Then, the print mechanism 145 is driven and controlled by the print processing unit 46b based on the print data.

また、図7に示すように、プリンタ1には、認証コード記憶部151及び認証コード管理部152が備えられている。携帯端末BCや携帯電話14では個人情報など比較的秘匿性の高い情報をデータ送信しようと送信操作をすると、ディスプレイ18上で認証コードの入力を要求する機能が設けられている。その際、データ送信先の機器に登録されたものと同じ認証コードを入力すると、通信リンク確立の際に認証が行われてデータ送信が可能になる。プリンタ1においては、操作パネル8で認証コード登録メニューの選択状態で操作部10を操作して認証コードを入力すると、その認証コードは認証コード記憶部(本例ではEEPROM43の所定記録領域)151に記憶される。認証コード管理部152は、プリンタ1の電源投入時及び操作部10により認証コードが更新などのため入力される度に、その認証コードを認証コード記憶部151から読み出して管理するとともに、認証コードをBT通信部45cに送りBTスタック126に備えられた格納部153に格納する。また、認証コード管理部152は、プリンタ1の電源投入後はじめてCF型通信カード13が検知された時に、認証カードをCF型通信カード13内のオブジェクト送受信部64に送信しその格納部154に格納する。   As shown in FIG. 7, the printer 1 includes an authentication code storage unit 151 and an authentication code management unit 152. The mobile terminal BC or the mobile phone 14 has a function of requesting an input of an authentication code on the display 18 when a transmission operation is performed to transmit relatively confidential information such as personal information. At this time, if the same authentication code as that registered in the data transmission destination device is input, authentication is performed when the communication link is established, and data transmission becomes possible. In the printer 1, when an authentication code is input by operating the operation unit 10 while the authentication code registration menu is selected on the operation panel 8, the authentication code is stored in the authentication code storage unit (in this example, a predetermined recording area of the EEPROM 43) 151. Remembered. The authentication code management unit 152 reads and manages the authentication code from the authentication code storage unit 151 when the printer 1 is turned on and whenever the authentication code is input by the operation unit 10 for updating, and the authentication code is also stored. The data is sent to the BT communication unit 45c and stored in the storage unit 153 provided in the BT stack 126. The authentication code management unit 152 transmits the authentication card to the object transmission / reception unit 64 in the CF type communication card 13 and stores it in the storage unit 154 when the CF type communication card 13 is detected for the first time after the printer 1 is turned on. To do.

次に、携帯電話14とCF型通信カード13間で行われるIrDA通信について説明する。
図8は、ファイル転送時に用いられるOBEX仕様のデータ構造を示す。設定データDAは、オペコードOPとヘッダHDとデータボディDBとからなる。オペコードOPには通信に関する命令が記述される。命令には「Connect」「Disconnect」「PUT」「FPUT」「GET」「FGET」「Abort」「Response」が用意されている。
「Connect」は接続要求、「Disconnect」は切断要求をそれぞれ意味する。また、「PUT」はデータ受け取り要求、「FPUT」は最終データ受け取り要求(送信データ終了の意を含む)、「GET」はデータ取り出し要求、「FGET」は最終データ取り出し要求(受信データ終了の意を含む)をそれぞれ意味する。また、「Abort」は中断、「Response」は応答をそれぞれ意味する。
Next, IrDA communication performed between the mobile phone 14 and the CF type communication card 13 will be described.
FIG. 8 shows the data structure of the OBEX specification used at the time of file transfer. The setting data DA includes an operation code OP, a header HD, and a data body DB. The operation code OP describes a command related to communication. “Connect”, “Disconnect”, “PUT”, “FPUT”, “GET”, “FGET”, “Abort”, and “Response” are prepared as commands.
“Connect” means a connection request, and “Disconnect” means a disconnection request. “PUT” is a data reception request, “FPUT” is a final data reception request (including the end of transmission data), “GET” is a data extraction request, and “FGET” is a final data extraction request (indication of reception data end). Means). “Abort” means abort and “Response” means response.

ヘッダHDには、データボディDBに関する情報が記述される。データボディDBとは、送受信(転送)されるデータそのものであり、通常は所定サイズ以下のパケット(ブロック)に分割される。本例の場合では、携帯電話14からプリンタ1へ送信されるオブジェクトデータは、そのデータサイズが所定サイズを超えるときは複数分割されて転送されることになる。「Name」「Authentication」「filesize」「Bodylength」などが用意されている。「Name」はファイル名、「Authentication」は情報にアクセスする資格の検証、「filesize」はファイルサイズ、「Bodylength」はボディデータ長をそれぞれ意味する。「Name」には「ファイル名.拡張子」の形で記述されているので、「Name」の値を見ることでファイルの「拡張子」を取得することができる。また、「Authentication」には、情報にアクセスする資格が設定されている場合においてそれを検証できる認証コード(ピンコード)が記述される。携帯電話14では、電話帳機能に登録された個人情報の全件又は指定したグループ中の個人情報の全件を送信するときは、認証コードの入力を要求される設定となっている。このような全件データを送信するときには送信ボタン操作後にディスプレイ18上で要求される入力欄に認証コードを入力する。入力した認証コードはヘッダHDの「Authentication」に記述される。   In the header HD, information on the data body DB is described. The data body DB is data itself to be transmitted / received (transferred) and is usually divided into packets (blocks) having a predetermined size or less. In the case of this example, the object data transmitted from the mobile phone 14 to the printer 1 is divided into a plurality of parts and transferred when the data size exceeds a predetermined size. "Name", "Authentication", "filesize", "Bodylength", etc. are prepared. “Name” means a file name, “Authentication” means verification of qualification to access information, “filesize” means file size, and “Bodylength” means body data length. Since “Name” is described in the form of “file name.extension”, the “extension” of the file can be acquired by looking at the value of “Name”. Also, “Authentication” describes an authentication code (pin code) that can verify the qualification to access information when it is set. The mobile phone 14 is set to require the input of an authentication code when transmitting all items of personal information registered in the phone book function or all items of personal information in a specified group. When all such data is transmitted, an authentication code is input to an input field required on the display 18 after the transmission button is operated. The input authentication code is described in “Authentication” of the header HD.

既に図7で説明したように、プリンタ1には認証コード登録機能が備えられており、携帯電話14から全件データをプリンタ1に直接送信して印刷させたいときは、予め操作パネル8上の操作部10を操作してプリンタ1に認証コードを登録しておく。   As already described with reference to FIG. 7, the printer 1 has an authentication code registration function. When all data is directly transmitted from the mobile phone 14 to the printer 1 for printing, the printer 1 is previously set on the operation panel 8. An authentication code is registered in the printer 1 by operating the operation unit 10.

図9は、携帯電話→赤外線通信カード(CF型通信カード)→プリンタの流れでデータを転送する転送処理シーケンスを示す。
携帯電話14でデータ送信操作を行うと、まず物理層であるIrDA通信回路61,121間におけるIrDA接続(物理接続)が行われる。携帯電話14からIrDA接続要求が出され、これにCF型通信カード13が応答する形でIrDA接続が確立される。次にOBEX接続(論理接続)が行われる。携帯電話14から「Connect」をオペコードOPとするデータを送信することでOBEX接続(論理接続)を要求し、これにCF型通信カード13が「Response」をオペコードOPとするデータで応答する形でOBEX接続(論理接続)が確立される。
FIG. 9 shows a transfer processing sequence for transferring data in the flow of mobile phone → infrared communication card (CF type communication card) → printer.
When a data transmission operation is performed with the mobile phone 14, an IrDA connection (physical connection) is first performed between the IrDA communication circuits 61 and 121 which are physical layers. An IrDA connection request is issued from the mobile phone 14, and the IrDA connection is established in such a manner that the CF communication card 13 responds to the request. Next, OBEX connection (logical connection) is performed. The mobile phone 14 requests OBEX connection (logical connection) by transmitting data having “Connect” as the operation code OP, and the CF communication card 13 responds to this with data having “Response” as the operation code OP. An OBEX connection (logical connection) is established.

論理接続が確立されると、ファイル転送部123はファイルデータをボディDBの最大許容データ長以内のデータ長に分割し、その分割したブロック(フレーム)単位で複数回に分けて転送する。この際、「PUT」をオペコードOPとしボディBDにブロックを入れたデータDAを作成してこれを送信する。以後順次、「Response」をオペコードOPとするデータの受信を待ってから、「PUT」をオペコードOPとする次のデータDAを送信する。   When the logical connection is established, the file transfer unit 123 divides the file data into data lengths within the maximum allowable data length of the body DB, and transfers the divided data in multiple times in units of the divided blocks (frames). At this time, “PUT” is used as an operation code OP, and data DA in which a block is inserted in the body BD is created and transmitted. Thereafter, after waiting for reception of data having “Response” as the operation code OP, the next data DA having “PUT” as the operation code OP is transmitted.

CF型通信カード13側のファイル転送部(IrOBEX)63は、順次受信するブロックを組み立ててデータを復元し、復元されたデータはオブジェクト送受信部64に渡される。オブジェクト送受信部64は伝送制御手順(ベーシック手順)に従って所定データサイズ以内のブロック(フレーム)単位でプリンタ1へデータを送信する。この際、オブジェクト送受信部64は、ヘッダHDの「Name」から取得した「名前.拡張子」をデータと共に送信する。   The file transfer unit (IrOBEX) 63 on the CF-type communication card 13 side assembles sequentially received blocks to restore the data, and the restored data is transferred to the object transmitting / receiving unit 64. The object transmitting / receiving unit 64 transmits data to the printer 1 in units of blocks (frames) within a predetermined data size according to a transmission control procedure (basic procedure). At this time, the object transmitting / receiving unit 64 transmits “name.extension” acquired from “Name” of the header HD together with the data.

こうしてデータ転送処理が進み、携帯電話14から最後のブロック(データ)を転送する際は、そのオペコードOPに「FPUT」が記述されるので、ファイル転送部63は受信したデータのオペコードOPが「FPUT」であると、最後のブロックである、すなわちデータ受信完了の通知と認知する。これを契機に携帯電話14から「Disconnect」をオペコードOPとする切断要求が送られることでOBEX接続(論理接続)が切断され、次いでIrDA接続(物理接続)が切断されることにより、通信リンクが遮断される。その後、プリンタ1では受信データから印刷データが生成され、その印刷データに基づき印刷が実行される。   Thus, when the data transfer process proceeds and the last block (data) is transferred from the mobile phone 14, “FPUT” is described in the operation code OP, so the file transfer unit 63 sets the operation code OP of the received data to “FPUT ”Is recognized as the last block, that is, a data reception completion notification. In response to this, the disconnection request with “Disconnect” as the operation code OP is sent from the mobile phone 14 to disconnect the OBEX connection (logical connection), and then the IrDA connection (physical connection) to disconnect the communication link. Blocked. Thereafter, the printer 1 generates print data from the received data, and printing is executed based on the print data.

なお、データ送信中に携帯電話14を中断操作すると、「Abort」をオペコードOPとするデータがCF型通信カード13へ送信される。この場合も、同様の手順によりIrDA切断、OBEX切断の順序を経て通信リンクが遮断される。   Note that if the cellular phone 14 is interrupted during data transmission, data having the operation code OP of “Abort” is transmitted to the CF-type communication card 13. In this case as well, the communication link is cut off through the same sequence of IrDA disconnection and OBEX disconnection.

また、本例では、プリンタ1から携帯電話14へファイル転送する機能は備えていないが、携帯電話14から「GET」をオペコードOPとするデータがCF型通信カード13へ送られたときは、プリンタ1のメモリに格納されたファイルを携帯電話14へ転送する転送機能をプリンタ1に設けてもよい。   In this example, the file transfer function from the printer 1 to the mobile phone 14 is not provided. However, when data having the operation code OP of “GET” is sent from the mobile phone 14 to the CF type communication card 13, the printer The printer 1 may be provided with a transfer function for transferring a file stored in one memory to the mobile phone 14.

次に、データ受信状態を報知する表示部13bの点灯制御について詳しく説明する。CF型通信カード13の表示部13bは、携帯電話14からデータの受信状態をユーザに報知する。   Next, lighting control of the display unit 13b that notifies the data reception state will be described in detail. The display unit 13b of the CF type communication card 13 notifies the user of the data reception state from the mobile phone 14.

図10は表示部の表示制御装置を示し、図11は通信ステータスと表示態様(点灯態様)との関係を示す。
図10に示すように、表示制御装置158は、カード制御部31に内蔵されたCPU159及び点灯駆動制御回路160と、この点灯駆動制御回路160を介してCPU159に点灯制御(表示制御)される2つのLED161,162とを備える。2つのLED161,162はそれぞれ点灯色(表示色)が異なり、本例ではLED161が緑色、LED162が赤色にそれぞれ点灯可能である。
FIG. 10 shows the display control device of the display unit, and FIG. 11 shows the relationship between the communication status and the display mode (lighting mode).
As illustrated in FIG. 10, the display control device 158 includes a CPU 159 and a lighting drive control circuit 160 built in the card control unit 31, and lighting control (display control) 2 by the CPU 159 via the lighting drive control circuit 160 2. Two LEDs 161 and 162 are provided. The two LEDs 161 and 162 have different lighting colors (display colors), and in this example, the LED 161 can be lit green and the LED 162 can be lit red.

表示部13bの点灯制御はカード制御部31内のCPU159が司る。CPU159は、携帯電話14との間でやりとりされる通信コマンドと、CF型通信カード13内で自身が判定するデータチェック結果と、プリンタ1側で判定されたデータ受信状態を知らせてくる信号等とに基づいて現在どんな受信状態にあるかその通信ステータスを把握する。CPU159は、その把握した通信ステータス(ビットデータ)をレジスタ159aに書き込む。点灯駆動制御回路160は、CPU159から通信ステータに応じた信号Sを入力すると、この信号Sに基づき2つのLED161,162を点灯制御する。   The lighting control of the display unit 13b is controlled by the CPU 159 in the card control unit 31. The CPU 159 communicates with the mobile phone 14, the data check result determined by itself in the CF type communication card 13, a signal for informing the data reception state determined on the printer 1 side, and the like The communication status is grasped based on the current reception status. The CPU 159 writes the grasped communication status (bit data) in the register 159a. When the signal S corresponding to the communication stator is input from the CPU 159, the lighting drive control circuit 160 controls lighting of the two LEDs 161 and 162 based on the signal S.

図11に示すように、通信ステータスには、「受信不可」、「受信可能」、「受信中」、「受信完了」及び「エラー発生」の5種類がある。この通信ステータスと点灯制御内容の関係を示す設定データSDは、メモリ32の所定記憶領域に記憶されている。CPU159は、レジスタ159aに書き込んだ現在の通信ステータスに基づき設定データDAを参照しつつ2つのLED161,162を5種類の点灯態様のうちいずれか一つに点灯制御する。本例では、5種類の通信ステータスに応じた点灯態様として、「消灯」、「緑点灯」、「緑点滅」、「橙点灯」、「赤点滅」の5つが設定されている。橙色は、緑と赤の各LED161,162を同時に点灯させることで発色させている。   As shown in FIG. 11, there are five types of communication statuses: “reception not possible”, “reception possible”, “receiving”, “reception completed”, and “error occurred”. The setting data SD indicating the relationship between the communication status and the lighting control content is stored in a predetermined storage area of the memory 32. The CPU 159 controls lighting of the two LEDs 161 and 162 in any one of five lighting modes while referring to the setting data DA based on the current communication status written in the register 159a. In this example, five lighting modes of “off”, “green lighting”, “green flashing”, “orange lighting”, and “red flashing” are set as lighting modes corresponding to five types of communication statuses. The orange color is generated by lighting the green and red LEDs 161 and 162 simultaneously.

通信ステータスと点灯態様との関係は、「受信不可」のときに「消灯」、「受信可能」のときに「緑点灯」、「受信中」のときに「緑点滅」、「受信完了」のときに「橙点灯」、「エラー発生」のときに「赤点滅」となるよう点灯制御内容が設定されている。   The relationship between the communication status and lighting status is “off” when “reception not possible”, “green” when “reception is possible”, “blinking green” when “reception”, “reception complete” The lighting control details are set so that “Orange light” is sometimes displayed, and “Error occurrence” is “Red blinking”.

図12は、通信ステータスの遷移の仕方を説明するものである。同図に示すように通信ステータスが遷移することで表示部13b(LED161,162)の表示態様(点灯態様)が変化する。   FIG. 12 explains how the communication status changes. As shown in the figure, the display mode (lighting mode) of the display unit 13b (LEDs 161 and 162) changes due to the transition of the communication status.

まず図12に従って、「受信不可」〜「受信完了」までの通信ステータス遷移について説明する。カード制御部31のCPU159は、プリンタ1が初期化処理状態にあるとき又は赤外線通信にインターロックがかかっているときにUARTドライバ72から出力されるレディ(Rready)コマンドを受け取らない場合は、「受信不可」の通信ステータスAを設定する。つまりCPU159はレジスタ159aに「受信不可」のビットデータを書き込む。ここで、レディコマンドが出力されない場合は、CPU41がプリンタ1の電源投入直後に実施する初期化処理中にあるときと、他の通信方式によるデータ受信が先に行われたため赤外線通信方式によるデータ受信が禁止されるインターロック中とである。「受信不可」の通信ステータスAにあるときはLED161,162が全て消灯し、表示部13bは「消灯」の状態となる。   First, referring to FIG. 12, the transition of communication status from “reception impossible” to “reception completion” will be described. When the printer 159 of the card control unit 31 does not receive a ready command output from the UART driver 72 when the printer 1 is in the initialization processing state or when the infrared communication is interlocked, “Reception” is received. Communication status A of “impossible” is set. In other words, the CPU 159 writes the bit data “cannot be received” to the register 159a. Here, when the ready command is not output, when the CPU 41 is in the initialization process performed immediately after the printer 1 is turned on and when data reception by the other communication method is performed first, data reception by the infrared communication method is performed. Is during interlocking that is prohibited. When the communication status A is “unreceivable”, all the LEDs 161 and 162 are turned off, and the display unit 13b is turned off.

ここでCF型通信カード13がカードスロット12にセットされた状態でプリンタ1に電源が投入されたときは、プリンタ1の初期化処理時に検出されたCF型通信カード13に対しカードドライバ71は拡張子データをセットアップする。一方、プリンタ1の電源投入後にCF型通信カード13がカードスロット12にセットされたときは、そのセットにより電源投入後はじめてCF型通信カード13を検出できたときに、カードドライバ71はCF型通信カード13に拡張子データをセットアップする。この初期化処理およびセットアップ処理が共に終了してはじめてCPU41は最初のインターロック処理を開始する。インターロック処理の結果、CPU41がインターロックを解除したときUARTドライバ72はカード制御部31にレディ(Ready)コマンドを出力する。   Here, when the printer 1 is powered on with the CF type communication card 13 set in the card slot 12, the card driver 71 is expanded with respect to the CF type communication card 13 detected during the initialization process of the printer 1. Set up child data. On the other hand, when the CF type communication card 13 is set in the card slot 12 after the printer 1 is turned on, the card driver 71 detects the CF type communication card when the CF type communication card 13 can be detected for the first time after the power is turned on. Set up extension data in the card 13. The CPU 41 starts the first interlock process only after both the initialization process and the setup process are completed. As a result of the interlock process, when the CPU 41 releases the interlock, the UART driver 72 outputs a ready command to the card control unit 31.

こうしてプリンタ1側の受信準備完了後、UARTドライバ72からカード制御部31のCPU159がレディコマンドを受け付けると、レジスタ159aの値を「受信不可」から「受信可能」のビットデータに書き替える。プリンタ1の初期化処理が終了した時またはインターロックが解除された時に、「受信不可」の通信ステータスAから「受信可能」の通信ステータスBに移行する。「受信可能」の通信ステータスBにあるときは緑色のLED161のみが点灯し、表示部13bは「緑点灯」の状態となる。この表示部13bの緑点灯をもって、ユーザにCF型通信カード13が受信可能であることを報知する。   When the CPU 159 of the card control unit 31 accepts a ready command from the UART driver 72 after completion of reception preparation on the printer 1 side in this way, the value of the register 159a is rewritten from “unreceivable” to “receivable” bit data. When the initialization process of the printer 1 is completed or the interlock is released, the communication status A shifts from “reception impossible” communication status A to “reception possible” communication status B. When the communication status B is “receivable”, only the green LED 161 is lit, and the display unit 13b is in the “green lit” state. When the display unit 13b is lit green, the user is notified that the CF type communication card 13 is receivable.

CPU159はレディコマンドを入力している間、「受信可能」の通信ステータスBを維持する。そして、表示部13bが緑点灯しているときに、携帯電話14からPUT要求を受け付けると、論理接続(OBEX接続)を確立する。そして、CF型通信カード13がデータを受信し始めると、CPU159はレジスタ159aの値を「受信可能」から「受信中」のビットデータに書き替える。CPU159は、オブジェクトデータの受信及び転送処理を実行している間、「受信中」の通信ステータスCを維持する。   The CPU 159 maintains the communication status B of “receivable” while inputting the ready command. Then, when a PUT request is received from the mobile phone 14 while the display unit 13b is lit in green, a logical connection (OBEX connection) is established. When the CF communication card 13 starts to receive data, the CPU 159 rewrites the value of the register 159a from “receivable” to “receiving” bit data. The CPU 159 maintains the communication status C of “receiving” while executing the object data reception and transfer processing.

「受信中」の通信ステータスCに切り替わるタイミングとしては、物理接続(IrDA接続)された時か、論理接続(OBEX接続(Connect))された時か、データ送信(OBEXのPUT)が始まった時かのいずれかが挙げられる。「受信中」のステータスCにあるときは、緑色のLED161のみが点滅し、表示部13bは「緑点滅」の状態となる。   The timing of switching to the “receiving” communication status C is when a physical connection (IrDA connection), a logical connection (OBEX connection (Connect)), or a data transmission (OBEX PUT) starts. One of these. When the status C is “receiving”, only the green LED 161 blinks, and the display unit 13b enters the “green blinking” state.

CPU159は、携帯電話14からのオブジェクトデータの受信が完了したとき、レジスタ159aの値を「受信中」から「受信完了」のビットデータに書き替える。CF型通信カード13がデータを受信し終わると、この「受信完了」の通信ステータスDに移行する。この移行タイミングとしては、携帯電話14から最後のPUT(FPUT)を受信したときか、最後のPUT(FPUT)に対しその応答(Responce)を送信したときか、OBEX切断(Disconnect)(論理接続の切断)のデータを受信したときか、IrDA切断(物理接続の切断)を受信したときかのいずれかが挙げられる。「受信完了」の通信ステータスDにあるときは、緑と赤の2つのLED161,162が同時に点滅し、表示部13bは「橙点灯」の状態となる。   When the reception of the object data from the mobile phone 14 is completed, the CPU 159 rewrites the value of the register 159 a from “receiving” to “receiving complete” bit data. When the CF type communication card 13 finishes receiving data, the communication status D shifts to the “reception completed” communication status D. The transition timing includes when the last PUT (FPUT) is received from the mobile phone 14, when the response (Responce) is transmitted to the last PUT (FPUT), or when the OBEX is disconnected (logically connected). Either when receiving (disconnection) data or when receiving IrDA disconnection (disconnection of physical connection). When the communication status D is “reception completed”, the green and red LEDs 161 and 162 blink simultaneously, and the display unit 13b is in the “lit orange” state.

CPU159は、携帯電話14からデータを受信する通信状態にエラーが発生したことを検出すると、レジスタ159aの値を「エラー発生」のビットデータに書き替える。「エラー発生」の通信ステータスEにあるときは、赤色のLED162が点滅することで表示部13bは赤点滅する。   When the CPU 159 detects that an error has occurred in the communication state in which data is received from the mobile phone 14, the CPU 159 rewrites the value of the register 159a to the bit data of “error occurrence”. When the communication status E is “Error occurrence”, the red LED 162 blinks and the display unit 13b blinks red.

次に、各通信ステータスA,B,C,Dから「エラー発生」の通信ステータスEへ移行する場合のエラー内容について説明する。
まず「受信不可」の通信ステータスA→「エラー発生」の通信ステータスEへ移行する場合は、CF型通信カード13の初期化失敗の場合と、CF型通信カード13への初期化コマンド送信の失敗の場合とが挙げられる。この初期化コマンドとしては、「Configuration」,「Setup」,「Ready」が挙げられる。
Next, the error contents when the communication status A, B, C, D is shifted to the communication status E of “error occurrence” will be described.
First, when shifting from the communication status A of “unreceivable” to the communication status E of “error occurrence”, initialization failure of the CF communication card 13 and failure of transmission of the initialization command to the CF communication card 13 And the case of. Examples of the initialization command include “Configuration”, “Setup”, and “Ready”.

「受信可能」の通信ステータスB→「エラー発生」の通信ステータスEへ移行する場合は、物理接続又は論理接続の失敗の場合と、未対応ファイル受信(拡張子チェックエラー)の場合と、Setupコマンド失敗の場合とが挙げられる。   When transitioning from “Receivable” communication status B to “Error occurrence” communication status E, physical connection or logical connection failure, unsupported file reception (extension check error), Setup command And failure cases.

「受信中」の通信ステータスC→「エラー発生」の通信ステータスEへ移行する場合は、携帯電話14からCF型通信カード13へのファイル転送失敗(IrDA通信)の場合と、CF型通信カード13からプリンタ1へのオブジェクトデータ転送失敗(伝送制御手順)の場合とが挙げられる。さらに、対応ファイルのデータ異常時(ファイルデータチェックエラー)の場合と、他の通信部からの受信データの印刷処理中の場合(インターロックは解除されたが他のデータがまだ印刷処理中であった場合)とが挙げられる。例えばFPUTを受信することなくタイムアウトになったときには、CPU159(オブジェクト送受信部64)は携帯電話14との接続を切断する。プリンタ1側で次のパケットを受信することなくタイムアウトになったときは、エラーが発行され携帯電話14との接続が切断される。この接続が遮断された後は、携帯電話14側へエラーを通知する手立てがなくなるので、CF型通信カード13の表示部13bを赤点滅させることで、ユーザにデータ送信の失敗を報知する。   When transitioning from the communication status C of “receiving” to the communication status E of “error occurrence”, the file transfer from the mobile phone 14 to the CF type communication card 13 (IrDA communication) and the CF type communication card 13 And the case of object data transfer failure (transmission control procedure) from the printer to the printer 1. Furthermore, when the data of the corresponding file is abnormal (file data check error) and when receiving data from another communication unit is being printed (interlock has been released but other data is still being printed) ). For example, when a time-out occurs without receiving an FPUT, the CPU 159 (object transmission / reception unit 64) disconnects the connection with the mobile phone 14. When the printer 1 side times out without receiving the next packet, an error is issued and the connection with the mobile phone 14 is disconnected. After this connection is cut off, there is no way to notify the mobile phone 14 of the error, so the display unit 13b of the CF-type communication card 13 is flashed red to notify the user of data transmission failure.

「受信完了」の通信ステータスD→「エラー発生」の通信ステータスEへ移行する場合は、CF型通信カード13からプリンタ1へのデータ送信失敗(伝送制御手順)の場合と、対応ファイルのデータ異常時(ファイルデータチェックエラー)の場合とが挙げられる。通信ステータスEになるとその後所定時間(例えば3秒)経過すると、通信ステータスAへ移行する。従って、エラー発生時は表示部13bが3秒間だけ「赤点滅」した後、消灯する。なお、通信ステータスB→E、C→E、D→Eの移行時は、携帯電話14とCF型通信カード13が通信確立中におけるエラー発生であるので、そのエラー発生の旨は携帯電話14へ通知されそのディスプレイ18にエラー表示がなされる。なお、携帯電話14のディスプレイ18でエラー表示される場合は、あえて表示部13bによるエラー報知は必要ないとの前提で、通信ステータスAへ移行し表示部13bを消灯させ、「受信完了」の通信ステータスDでエラー発生が起きた場合に限り、表示部13bを赤点滅させる方法を採用できる。また、赤点滅の保持時間を設定せず、赤点滅しているステータスEにある間にインターロック処理を行い、インターロックが解除されるとステータスEからBへ移行し、赤点滅から緑点灯に変わる実施も可能である。   When shifting from the communication status D of “reception completed” to the communication status E of “error occurrence”, data transmission failure (transmission control procedure) from the CF type communication card 13 to the printer 1 and data error in the corresponding file Time (file data check error). When the communication status E is reached, when a predetermined time (for example, 3 seconds) elapses, the communication status A is entered. Therefore, when an error occurs, the display unit 13b “flashes red” for 3 seconds and then turns off. Note that when the communication status B → E, C → E, D → E transitions, an error has occurred while the mobile phone 14 and the CF-type communication card 13 are establishing communication. Notification is made and an error is displayed on the display 18. If an error is displayed on the display 18 of the mobile phone 14, it is assumed that the error notification by the display unit 13b is not necessary, and the communication status A is entered to turn off the display unit 13b. Only when an error occurs in status D, a method of blinking the display unit 13b in red can be adopted. Also, without setting the flashing time of red flashing, the interlock process is performed while status E is flashing red. When the interlock is released, the status E changes to B, and the red flashing turns green. Different implementations are possible.

携帯電話14で中止を選択操作すると、CF型通信カード13に「Abort(中断)」が送信される。この「Abort」を受信すると、その時点でデータの受信を中断するため、途中までのデータしかなく正しい印刷ができないので、それまで受信したデータを破棄する。この中断を受信したときは表示部13bを緑点滅から消灯させてもよいしエラーとして赤点滅させてもよい。   When the cancel operation is selected on the mobile phone 14, “Abort” is transmitted to the CF-type communication card 13. When this “Abort” is received, the reception of data is interrupted at that time, so that only halfway data exists and correct printing cannot be performed, so the data received so far is discarded. When this interruption is received, the display unit 13b may be turned off from blinking green, or may be blinked red as an error.

図13は、データ転送経路の予約処理とインターロック処理を概念モデルで示すブロック図である。
同図は、ホスト装置(携帯電話14、携帯端末BC、ホストコンピュータ(HC)から通信インターフェイス45の各通信部45b〜45eで受信されたデータが、最終的にプリントエンジン77に至るまでその後どの処理部を順次転送されるのかその転送経路を決める仕組みを模式的に示したブロック図である。同図においてストリームパイプ149は、CPU41が1つの転送経路を排他的に選択するスイッチング機能を実現するために用意されたモジュールである。各通信部45b〜45eで受信されたデータが、最終的にプリントエンジン77に至るまで順次転送される各処理部74〜76等の状態、例えばデータ処理の実行状態(RUN)、待機状態(WAIT)、レディ状態(READY)など各処理部74〜76等の現在の状態を管理する状態管理部150が用意されている。
FIG. 13 is a block diagram illustrating a data transfer path reservation process and an interlock process using a conceptual model.
The figure shows the processing after the data received by the communication units 45b to 45e of the communication interface 45 from the host device (mobile phone 14, mobile terminal BC, host computer (HC)) finally reaches the print engine 77. 2 is a block diagram schematically showing a mechanism for determining a transfer path for sequentially transferring the units, in which a stream pipe 149 realizes a switching function in which the CPU 41 exclusively selects one transfer path. The status of the processing units 74 to 76, etc., in which the data received by the communication units 45b to 45e is sequentially transferred until finally reaching the print engine 77, for example, the execution state of data processing (RUN), standby state (WAIT), ready state (READY), etc. The state of managing the current state of each processing unit 74-76, etc. Processing section 150 are provided.

ストリームパイプ149は、IrDAプロファイル処理部74をはじめとするその上流側(受信部側)の各種処理部のいずれかから転送要求を受け付けたときに、状態管理部150に管理されたその下流側(転送先側)に位置する各処理部75,76,プリントエンジン77の状態に基づいて転送経路を確保できるか否かを判断し、その判断結果に応じて転送経路の接続・切断をする2つのスイッチSW11,SW12を有する。スイッチSW11は、テキストデータラスタ処理部75へXHTMLデータを送るために用意された複数の転送経路のうち先に転送要求を受け付けた一つを選択し、一方、スイッチSW12は、画像データラスタ処理部76へJPEGデータを送るために用意された複数の転送経路のうち先に転送要求を受け付けた一つを選択する。但し、状態管理部150の管理内容を参照した際に、転送先であるラスタ処理部75又は76を含む下流側に位置する各種処理部75,76,プリントエンジン77がデータ処理の実行状態(RUN)(つまりデータ処理中)にある旨の情報を得たときは転送経路の接続はせずにそのまま待機し、そのデータ処理の実行状態(RUN)が終了した旨の情報を得た時点で転送経路を接続する。   When the stream pipe 149 receives a transfer request from any of various processing units on the upstream side (reception unit side) including the IrDA profile processing unit 74, the stream pipe 149 manages the downstream side ( It is determined whether or not the transfer path can be secured based on the state of each of the processing units 75 and 76 located on the transfer destination side) and the print engine 77, and the transfer path is connected or disconnected according to the determination result. Switches SW11 and SW12 are provided. The switch SW11 selects one of the plurality of transfer paths prepared for sending the XHTML data to the text data raster processing unit 75, which received the transfer request first, while the switch SW12 is the image data raster processing unit. One of the plurality of transfer paths prepared for sending JPEG data to 76 is first selected for receiving the transfer request. However, when referring to the management contents of the status management unit 150, the various processing units 75 and 76 and the print engine 77 located on the downstream side including the raster processing unit 75 or 76 that is the transfer destination perform the data processing execution state (RUN ) (In other words, data processing is in progress) When the information indicating that the data processing is in progress, it waits without connecting the transfer path, and transfers when the data processing execution status (RUN) has been acquired. Connect routes.

つまり本実施形態では、先行データがプリントエンジン77ですべて処理され終わってからでないと、原則として、次データの受信および転送を許可しないよう設定されている。このため、ストリームパイプ149がXHTMLデータの転送要求を受け付けたときは、その転送先であるテキストデータラスタ処理部75だけでなくプリントエンジン77に至るまでを判断対象とし、原則として、状態管理部150においてプリントエンジン77が先行データのすべての処理を終えた旨の情報が得られたときに限り、次データの転送経路を確保すべくスイッチSW11の接続を許可する。また、ストリームパイプ149がJPEGデータの転送要求を受け付けたときも同様に、その転送先である画像データラスタ処理部76だけでなくプリントエンジン77に至るまでを判断対象とし、原則として、状態管理部150においてプリントエンジン77が先行データのすべての処理を終えた旨の情報が得られたときに限り、次データの転送経路を確保するスイッチSW11の接続を許可する。但し、プリントエンジン77が処理の実行中であっても例外的にスイッチSW11又はSW12の接続を許可する例外処理が用意されている。この例外処理については後述する。   In other words, in the present embodiment, in principle, the setting is made such that the reception and transfer of the next data is not permitted unless the preceding data has been completely processed by the print engine 77. For this reason, when the stream pipe 149 accepts a transfer request for XHTML data, not only the text data raster processing unit 75 that is the transfer destination but also the print engine 77 is determined, and in principle, the status management unit 150 Only when information indicating that the print engine 77 has completed all the processing of the preceding data is obtained, the connection of the switch SW11 is permitted to secure the transfer path of the next data. Similarly, when the stream pipe 149 accepts a JPEG data transfer request, not only the image data raster processing unit 76 that is the transfer destination but also the print engine 77 is determined, and in principle, the status management unit Only when information indicating that the print engine 77 has completed all the processing of the preceding data is obtained at 150, connection of the switch SW11 that secures the transfer path of the next data is permitted. However, exceptional processing is provided that permits the connection of the switch SW11 or SW12 exceptionally even when the print engine 77 is executing the processing. This exception processing will be described later.

また、同図にスイッチSW21で示されるモジュールが用意されており、スイッチSW21は、各ラスタ処理部75,76での処理の結果得られた、あるいは外部から受信して得られたラスタデータをプリントエンジン77に転送する際の転送経路の選択(接続)を司る。スイッチSW21は、ストリームパイプ149の2つのスイッチSW11,SW12のいずれかが接続されたときには連動して起動し、スイッチSW11又はSW12の接続によりラスタ処理部75又は76への転送経路が確保されたデータをさらにプリントエンジン77まで転送できるようその転送経路を確保する切り換え処理(接続処理)を行う。またスイッチSW21は、パラレル通信部45bまたはHCRP156からラスタデータの転送要求を受け付けたときに、状態管理部150の管理内容に基づき転送経路の接続適否判断および接続処理を行うように構成されている。   In addition, a module indicated by a switch SW21 in the figure is prepared, and the switch SW21 prints raster data obtained as a result of processing in each of the raster processing units 75 and 76 or obtained from the outside. It controls the selection (connection) of the transfer path when transferring to the engine 77. The switch SW21 is activated when one of the two switches SW11 and SW12 of the stream pipe 149 is connected, and data in which a transfer path to the raster processing unit 75 or 76 is secured by the connection of the switch SW11 or SW12. Then, a switching process (connection process) is performed to secure the transfer path so that it can be transferred to the print engine 77. The switch SW21 is configured to perform transfer path connection suitability determination and connection processing based on the management contents of the state management unit 150 when a raster data transfer request is received from the parallel communication unit 45b or the HCRP 156.

ストリームパイプ149が行う先の例外処理は、スイッチSW21の接続状態を考慮して次のように行われる。なお、以下の説明では、ストリームパイプ149がJPEGデータの転送要求を受け付けた場合と、XHTMLデータの転送要求を受け付けた場合とで分けて説明する。まずJPEGデータの転送要求を受け付けた場合、ストリームパイプ149は、下流側に位置する2段目のスイッチSW21が、画像データラスタ処理部76からのラスタデータを転送可能な状態に接続されているか、つまり画像データラスタ処理部76からプリントエンジン77へ至る転送経路が接続されているか否かを判断する。そして、スイッチSW21が、画像データラスタ処理部76からのラスタデータを転送可能な状態に接続されているときは、画像データラスタ処理部76さえデータ処理を終えていれば(例えばレディ状態(READY))、たとえプリントエンジン77が処理実行中(RUN)であっても、例外的にスイッチSW12による次データの転送経路の接続を許可する。   The exception processing performed by the stream pipe 149 is performed as follows in consideration of the connection state of the switch SW21. In the following description, the case where the stream pipe 149 receives a transfer request for JPEG data and the case where a transfer request for XHTML data is received will be described separately. First, when a JPEG data transfer request is received, the stream pipe 149 determines whether the downstream switch SW21 located on the downstream side is connected to a state in which raster data from the image data raster processing unit 76 can be transferred. That is, it is determined whether or not a transfer path from the image data raster processing unit 76 to the print engine 77 is connected. When the switch SW21 is connected to a state in which raster data from the image data raster processing unit 76 can be transferred, only the image data raster processing unit 76 has finished data processing (for example, ready state (READY)). ) Even if the print engine 77 is executing (RUN), the switch SW12 is exceptionally permitted to connect the next data transfer path.

次にXHTMLデータの転送要求を受け付けた場合、ストリームパイプ149は、下流側に位置する2段目のスイッチSW21が、テキストデータラスタ処理部75からのラスタデータを転送可能な状態に接続されているか、つまりテキストデータラスタ処理部75からプリントエンジン77へ至る転送経路が接続されているか否かを判断する。そして、スイッチSW21が、テキストデータラスタ処理部75からのラスタデータを転送可能な状態に接続されているときは、テキストデータラスタ処理部75さえデータ処理を終えていれば(例えばレディ状態(READY))、たとえプリントエンジン77が処理実行中(RUN)であっても、例外的にスイッチSW11による次データの転送経路の接続を許可する。   Next, when an XHTML data transfer request is received, the stream pipe 149 is connected to a state where the downstream switch SW21 located on the downstream side is capable of transferring raster data from the text data raster processing unit 75. That is, it is determined whether or not a transfer path from the text data raster processing unit 75 to the print engine 77 is connected. When the switch SW21 is connected to a state in which raster data from the text data raster processing unit 75 can be transferred, even if the text data raster processing unit 75 has finished data processing (for example, ready state (READY)). ) Even if the print engine 77 is executing (RUN), the switch SW11 is exceptionally permitted to connect the next data transfer path.

こうしてストリームパイプ149は、IrDAプロファイル処理部74、BPP128、HCRP156およびOPP(Object Push Profile)157のいずれかからXHTMLデータの転送要求を受け付けると、状態管理部150におけるテキストデータラスタ処理部75およびプリントエンジン77の各管理内容がデータ処理中でなければスイッチSW11による転送経路を接続する。また、ストリームパイプ149は、IrDAプロファイル処理部74、BIP129およびOPP157のいずれかからJPEGデータの転送要求を受け付けると、状態管理部150における画像データラスタ処理部76およびプリントエンジン77の各管理内容がデータ処理中でなければスイッチSW12による転送経路を接続する。但し、この際、ストリームパイプ149は、状態管理部150においてスイッチSW21の接続状態も参照し、スイッチSW21がラスタ処理部75又は76からのラスタデータを転送可能状態に接続されていれば、ラスタ処理部75又は76の処理が終えていれば、たとえプリントエンジン77が処理実行中であっても、例外的にスイッチSW12を接続して次データの転送経路を確保する。   In this way, when the stream pipe 149 receives a transfer request for XHTML data from any one of the IrDA profile processing unit 74, BPP128, HCRP 156, and OPP (Object Push Profile) 157, the text data raster processing unit 75 and the print engine in the state management unit 150. If the management contents of 77 are not in the process of data, the transfer path by the switch SW11 is connected. When the stream pipe 149 receives a JPEG data transfer request from any one of the IrDA profile processing unit 74, the BIP 129, and the OPP 157, the management contents of the image data raster processing unit 76 and the print engine 77 in the state management unit 150 are data. If processing is not in progress, a transfer path by the switch SW12 is connected. However, at this time, the stream pipe 149 also refers to the connection state of the switch SW21 in the state management unit 150, and if the switch SW21 is connected to a state where the raster data from the raster processing unit 75 or 76 can be transferred, raster processing is performed. If the processing of the section 75 or 76 has been completed, the switch SW12 is exceptionally connected to secure a transfer path for the next data even if the print engine 77 is executing processing.

なお、「転送要求」はデータ受信時に転送経路を確保するために使用されるコマンドであるが、これに対し定期的に通信部45eからのデータ受信が可能な状態にあるか否かを判断するために、ストリームパイプ149に通信部45eからのデータの転送経路を確保可能な状態にあるか否かを投げかける際に使用する「要求コマンド」も別途用意されている。受信データの転送経路を確保できない場合はCF型通信カード13側で受信不可とするインターロックのためにプリンタ1側で実行される、後述するインターロック処理においてはこの要求コマンドが使用されるようになっている。   Note that the “transfer request” is a command used to secure a transfer path when receiving data. On the other hand, it is periodically determined whether or not the data can be received from the communication unit 45e. For this purpose, a “request command” is also prepared separately that is used when asking the stream pipe 149 whether or not the transfer path of the data from the communication unit 45e can be secured. When the transfer path of the received data cannot be secured, this request command is used in the interlock process described later, which is executed on the printer 1 side for the interlock that disables reception on the CF type communication card 13 side. It has become.

通信インターフェイス45の各通信部45a〜45dで受信されたデータは、その種類(vCard,vNote,XHTML,JPEG等)によって転送経路が一義的に決まる。例えばIrDA通信で受信の場合、vCardデータに対しては各処理部74,75,プリントエンジン77を順次通る転送経路が選択され、vNoteデータに対しては各処理部74,76,プリントエンジン77を順次通る転送経路が選択される。また、Bluetooth通信で受信の場合、XHTMLデータに対してはBPP128,処理部75,プリントエンジン77を順次通る転送経路が選択され、JPEGデータに対してはBIP129,処理部76,プリントエンジン77を順次通る転送経路が選択される。   The transfer path of data received by the communication units 45a to 45d of the communication interface 45 is uniquely determined by the type (vCard, vNote, XHTML, JPEG, etc.). For example, when receiving via IrDA communication, a transfer path that sequentially passes through the processing units 74 and 75 and the print engine 77 is selected for vCard data, and the processing units 74 and 76 and the print engine 77 are selected for vNote data. A transfer path that passes sequentially is selected. In the case of reception via Bluetooth communication, a transfer path that sequentially passes through BPP128, processing unit 75, and print engine 77 is selected for XHTML data, and BIP129, processing unit 76, and print engine 77 are sequentially selected for JPEG data. The transfer path through is selected.

まずデータ転送経路を確保する予約処理について説明する。
ストリームパイプ149は、通信部45b〜45eで受信されたデータが他のデータに妨げられずスムーズに処理を進めるために、データ受信開始時に印刷に至るまでの転送経路を予め確保(予約)する。
First, a reservation process for securing a data transfer path will be described.
The stream pipe 149 reserves (reserves) a transfer path up to printing at the start of data reception so that the data received by the communication units 45b to 45e can be processed smoothly without being interrupted by other data.

この転送経路の確保は、同図では複数種のデータに共用される処理部75,76,プリントエンジン77に至る経路を選択するスイッチSW11,SW12,SW21の接続として表される。但し、スイッチSW11,SW12,SW21は、CPU41が転送経路を確保するために用意されたプログラムを実行することで実現されるモジュールである。通信インターフェイス部45aは各通信部45b〜45eのいずれかがデータを受信すると、CPU41にその旨を通知してその応答としてCPU41から受信の許可を得るとその通信部のポートを開く。次にその通信部の上位層の処理部である、IrDAプロファイル処理部74、BIP129、BPP128、HCRP156のうちいずれかは、その受信部から受信したデータを解析して例えば拡張子からデータの種類(データ種)を特定し、その特定したデータ種をストリームパイプ149に通知する。ストリームパイプ149はその通知されたデータ種に合った転送経路を確保する。この転送経路の確保のルールは、スイッチSW11,SW12,SW21の切り換えで説明できる。なお、スイッチSW11,SW12,SW21は、データ受信開始時にそのデータの転送経路を確保するように接続され、そのデータの印刷が終了するまで原則その接続が遮断されることはない。このため、1つの転送経路があるデータに占有されていると、そのデータの印刷終了まで転送経路の占有が継続され、他のデータを仮に受信しても、原則、受信エラーとなる。なお、スイッチSW11,SW12,SW21は、転送経路を確保する必要があるときのみ接続され、転送経路を確保する必要がないときは切断されるようになっている。このため、スイッチSW11,SW12が共に切断状態にあるときは、通信部からデータを受信可能な状態にあると判断し得る。   The securing of the transfer path is represented as a connection of switches SW11, SW12, and SW21 for selecting a path to the processing units 75 and 76 and the print engine 77 shared by a plurality of types of data in FIG. However, the switches SW11, SW12, and SW21 are modules that are realized by the CPU 41 executing a program prepared for securing a transfer path. When any of the communication units 45b to 45e receives data, the communication interface unit 45a notifies the CPU 41 of the fact, and opens a port of the communication unit when receiving a permission for reception from the CPU 41 as a response. Next, any one of the upper-layer processing units of the communication unit, that is, the IrDA profile processing unit 74, BIP129, BPP128, or HCRP156, analyzes the data received from the receiving unit and, for example, determines the data type from the extension ( Data type) is specified, and the specified data type is notified to the stream pipe 149. The stream pipe 149 secures a transfer path that matches the notified data type. The rule for securing the transfer path can be explained by switching the switches SW11, SW12, and SW21. The switches SW11, SW12, and SW21 are connected so as to secure a data transfer path at the start of data reception, and the connection is not blocked in principle until the printing of the data is completed. For this reason, if one transfer path is occupied by a certain data, the transfer path is continuously occupied until the printing of the data is completed, and even if other data is temporarily received, a reception error is generated in principle. The switches SW11, SW12, and SW21 are connected only when it is necessary to secure a transfer path, and are disconnected when it is not necessary to secure a transfer path. For this reason, when both the switches SW11 and SW12 are in the disconnected state, it can be determined that the data can be received from the communication unit.

インターロック処理とは、先に受信したデータによって転送経路が占有されていて、仮に次のデータを受信しても転送経路を確保できないと判断される場合は受信を許可せず、次のデータの転送経路が確保できると判断される場合は受信を許可する処理である。このインターロック処理は、携帯電話14からエラーにならずデータをプリンタ1が受信できる状態かどうかを判定する処理で、IrDAプロファイル処理部74が定期的に実行する。IrDAプロファイル処理部74は、インターロック処理の結果、データを受信できない状態と判定したときはUARTドライバ72を介してCF型通信カード13にレディコマンドを出力せず、データを受信できる状態と判定したときはUARTドライバ72を介してCF型通信カード13にレディコマンドを出力する。CF型通信カード13は、レディコマンドの入力によってインターロック状態を解除して受信可能状態に移行するとともに表示部13bを緑点灯させて「受信可能」の旨を報知する。また、CF型通信カード13は、受信可能状態の下で携帯電話14から受信を開始したデータの受信を完了すると、この受信データのプリンタ1側への転送も終わったほぼ同時期にIrDAプロファイル処理部74からのレディコマンドの入力がなくなることから、インターロック状態に移行するとともに表示部13bを消灯させて「受信不可」の旨を報知する。このため、ユーザは例えば先行データの印刷が終了するまでの間は表示部13bが消灯中であることから携帯電話14からデータを送信できないと分かり、それゆえデータの送信を控えるので、送信したにもかかわらず受信エラーとなる頻度が減ることになる。CF型通信カード13においてインターロック状態の移行及び解除の制御はCPU159が実行する。   Interlock processing means that if the transfer path is occupied by the previously received data and it is determined that the transfer path cannot be secured even if the next data is received, reception is not permitted and the next data If it is determined that a transfer path can be secured, this is a process of permitting reception. This interlock process is a process for determining whether or not the printer 1 can receive data from the mobile phone 14 without causing an error, and is periodically executed by the IrDA profile processing unit 74. When the IrDA profile processing unit 74 determines that the data cannot be received as a result of the interlock processing, the IrDA profile processing unit 74 determines that the data can be received without outputting a ready command to the CF-type communication card 13 via the UART driver 72. At this time, a ready command is output to the CF type communication card 13 via the UART driver 72. The CF-type communication card 13 releases the interlock state by input of a ready command, shifts to a receivable state, and lights the display unit 13b in green to notify that “reception is possible”. Further, when the CF type communication card 13 completes the reception of the data started to be received from the mobile phone 14 in the receivable state, the IrDA profile process is performed almost simultaneously with the transfer of the received data to the printer 1 side. Since there is no longer any ready command input from the unit 74, the state shifts to the interlock state and the display unit 13b is turned off to notify that “reception is impossible”. For this reason, the user knows that the data cannot be transmitted from the mobile phone 14 because the display unit 13b is turned off until the printing of the preceding data is completed. Nevertheless, the frequency of receiving errors decreases. The CPU 159 executes control of transition and release of the interlock state in the CF type communication card 13.

ここで、転送経路の選択には次のルールがある。
(1)要求されたデータ種に応じた転送経路の確保は、CPU41(ストリームパイプ149を含む)のみが行う。通信部45b〜45eのうちどれか1つのポートが開かれると、その上位層の処理部74,BPP128,BIP129,HDRP156,OPP157のいずれかは、受信したファイルの拡張子からデータ種を特定し、そのデータ種を特定したデータに必要な処理を施すために、ストリームパイプ149に上位層の処理部75,76,プリントエンジン77への転送を要求する。ストリームパイプ149は転送を要求されたそのデータ種のデータを要求元の処理部から上位層の処理部へ転送するため、そのポートから受信されるデータの転送経路を確保する。図13では、スイッチSW11,SW12,SW21により各処理段階毎に経路が選択される。
Here, there are the following rules for selecting a transfer route.
(1) Only the CPU 41 (including the stream pipe 149) secures the transfer path according to the requested data type. When any one of the communication units 45b to 45e is opened, any of the upper layer processing unit 74, BPP128, BIP129, HDRP156, and OPP157 identifies the data type from the extension of the received file, In order to perform necessary processing on the data specifying the data type, the stream pipe 149 is requested to transfer to the upper layer processing units 75 and 76 and the print engine 77. The stream pipe 149 secures a transfer path for data received from the port in order to transfer the data of the data type requested to be transferred from the request processing unit to the upper layer processing unit. In FIG. 13, a path is selected for each processing stage by the switches SW11, SW12, and SW21.

(2)CPU41は転送経路を一旦確保したら、原則、そのデータの印刷終了までその経路を占有する。但し、その経路の接続と遮断は段階的に行われる。すなわち、CPU41は、接続時は、データが転送されるに連れて転送経路を、上流側(通信部側)から下流側(プリントエンジン側)に向かって段階的に接続する。まず第1段目のスイッチSW11又はSW12を接続し、次に第2段目のスイッチSW21を接続する。一方、転送経路を切断するときは、第2段目のスイッチSW21についてはプリントエンジン77での印刷終了を待って遮断する。この第2段目のスイッチSW21の接続の解除を待って、第1段目のスイッチSW11,SW12の接続が解除される。   (2) Once the CPU 41 secures the transfer path, in principle, the CPU 41 occupies the path until the end of printing the data. However, connection and disconnection of the route are performed in stages. That is, at the time of connection, the CPU 41 connects the transfer path in stages from the upstream side (communication unit side) to the downstream side (print engine side) as data is transferred. First, the first-stage switch SW11 or SW12 is connected, and then the second-stage switch SW21 is connected. On the other hand, when the transfer path is cut off, the second-stage switch SW21 is cut off after the print engine 77 finishes printing. Waiting for the release of the connection of the second-stage switch SW21, the connection of the first-stage switches SW11 and SW12 is released.

(3)第1段目のスイッチSW11,SW12については、そのスイッチの直ぐ下流側の処理部(次の処理部)が処理を終了し、且つ第2段目のスイッチSW21の接続を維持したまま次データの転送経路を確保できることを条件に切り替えを認める。つまり、この条件が成立しているときに限り、先のデータの印刷終了前であっても次のデータの転送経路を確保してその受信を許可する。   (3) For the first-stage switches SW11 and SW12, the processing section (next processing section) immediately downstream of the switches finishes the process, and the connection of the second-stage switch SW21 is maintained. Switching is permitted on condition that the transfer path of the next data can be secured. That is, only when this condition is established, the next data transfer path is secured and reception is permitted even before the end of printing of the previous data.

インターロック処理は次のルールに従って行われる。
インターロック処理は、IrDAプロファイル処理部74の判断部88が所定時間間隔(例えば数10m秒)毎に定期的に行う。判断部88は、1段上位層のラスタ処理部75,76と経路が繋がっているか否か、すなわちスイッチSW11,SW12のうち一方がどこかと接続されているか否かを判断する。スイッチSW11,SW12がどちらも接続されていない場合(つまり共に切断の場合)は、インターロックを解除すべきと判断する。一方、スイッチSW11,SW12のうち一方が接続されている場合は、さらに両ラスタ処理部75,76にラスタ処理中にあるか否かを尋ねる。そして、その応答を受け付けた結果、ラスタ処理部75,76が共にラスタ処理中でない場合は、インターロックを解除すべきと判断する。これ以外の場合はインターロックすべきと判断する。判断部88は、詳しくはストリームパイプ149に要求コマンドを投げかけることにより、IrDAプロファイル処理部74からの転送経路を接続できるか否かの判断結果を応答として得るようになっている。判断部88が転送経路を接続可能である旨の応答をストリームパイプ149から得たときにIrDAプロファイル処理部74はUARTドライバ72にレディコマンドを出力させる指示をし、一方、判断部88が転送経路を接続不能である旨の応答をストリームパイプ149から得たときにIrDAプロファイル処理部74はレディコマンドを出力させない指示をする設定となっている。判断部88は、その判断結果をデータトランスファ部73を介してUARTドライバ72に送る。UARTドライバ72は、IrDAプロファイル処理部74(判断部88)からインターロックすべき旨の通知(レディコマンド出力停止指示)を受け付けたときはレディコマンドを出力せずに、インターロックを解除すべき旨の通知を受けたときはレディコマンドを出力する。
The interlock process is performed according to the following rules.
The interlock process is periodically performed by the determination unit 88 of the IrDA profile processing unit 74 at predetermined time intervals (for example, several tens of milliseconds). The determination unit 88 determines whether or not the path is connected to the raster processing units 75 and 76 of the upper layer, that is, one of the switches SW11 and SW12 is connected to somewhere. When neither of the switches SW11 and SW12 is connected (that is, when both are disconnected), it is determined that the interlock should be released. On the other hand, when one of the switches SW11 and SW12 is connected, it further asks both the raster processing units 75 and 76 whether or not the raster processing is being performed. As a result of receiving the response, if neither of the raster processing units 75 and 76 is performing the raster processing, it is determined that the interlock should be released. In other cases, it is determined that the interlock should be performed. Specifically, the determination unit 88 sends a request command to the stream pipe 149 to obtain a determination result as to whether or not the transfer path from the IrDA profile processing unit 74 can be connected as a response. When the determination unit 88 obtains a response indicating that the transfer path can be connected from the stream pipe 149, the IrDA profile processing unit 74 instructs the UART driver 72 to output a ready command. The IrDA profile processing unit 74 is instructed not to output a ready command when a response indicating that the connection is not possible is obtained from the stream pipe 149. The determination unit 88 sends the determination result to the UART driver 72 via the data transfer unit 73. When the UART driver 72 receives a notification (ready command output stop instruction) indicating that it should be interlocked from the IrDA profile processing unit 74 (determination unit 88), the UART driver 72 should cancel the interlock without outputting a ready command. When a notification is received, a ready command is output.

但し、このようなルールに従って行われるインターロック処理であることから、ストリームパイプ149の監視対象外である、例えばホストコンピュータHCから通信部45bを通じて受信されたラスタデータの受信状況については監視していない。このため、例えばホストコンピュータHCから既にラスタデータを受信してデータ処理中にあったとしても、この旨は監視対象外であるためインターロックが解除される場合がある。この場合、表示部13bが緑点灯していることを根拠に携帯電話14からデータ送信をしてもプリンタ1側で受信エラーとなってしまう。このため、インターロック機能としては十分とは言えないが受信エラーはかなり減らせることになる。   However, since the interlock process is performed according to such a rule, the reception status of raster data that is not monitored by the stream pipe 149, for example, received from the host computer HC through the communication unit 45b is not monitored. . For this reason, for example, even if raster data has already been received from the host computer HC and data processing is in progress, the interlock may be released because this is not subject to monitoring. In this case, even if data is transmitted from the mobile phone 14 on the basis that the display unit 13b is lit in green, a reception error occurs on the printer 1 side. For this reason, it cannot be said that the interlock function is sufficient, but reception errors can be considerably reduced.

例えば先行データの印刷処理終了後のタイミングで判断部88の判断対象となる第1段目のスイッチSW11,SW12が共に切断されていても、その時点で既に他の通信部45bからの受信データが第2段目のスイッチSW21を切り換えて転送経路を既に占有している場合があり、この場合、インターロックは解除されるものの、転送経路を確保することはできない。また、判断部88の判断対象となる第1段目のスイッチSW11,SW12の一方が接続されていれば、第2段目のスイッチSW21も同じ経路を確保しうる側に接続され大抵はプリントエンジン77に至るまでの転送経路が確保されているはずである。しかし、仮に第1段目のスイッチSW11,SW12の一方が接続され且つラスタ処理部75,76のラスタ処理が終了している場合でも、プリントエンジン77の印刷処理まで既に終わっていれば、その時点で既に他のデータが先に新たな転送経路を確保して第2段目のスイッチSW21の接続を切り換えている場合がある。このときもインターロックは解除されるものの転送経路を確保することはできない。これらの場合、インターロックが解除されて表示部13bが緑点灯するが、ユーザがデータを送信すると受信エラーが発生する。これは、プリンタ1に元々備わったハードウェア(回路)およびソフトウェアに極力変更を加えることなくIrDA通信機能を付加する構成を採用したことにより、インターロック機能を従前の機能を流用することで構築したことに起因する。もちろんすべての通信方式を監視対象としたより漏れのないインターロック機能を実現した構成を採用することもできる。また、逆にインターロック処理をもっと簡素化し、例えば判断部88がスイッチSW11,SW12の一方が接続側にあるか否かを判断するだけのインターロック処理とすることも可能である。   For example, even if the first-stage switches SW11 and SW12 to be determined by the determination unit 88 are disconnected at the timing after the preceding data print processing is completed, the received data from the other communication unit 45b is already at that time. In some cases, the transfer path is already occupied by switching the second-stage switch SW21. In this case, although the interlock is released, the transfer path cannot be secured. If one of the first-stage switches SW11 and SW12 to be determined by the determination unit 88 is connected, the second-stage switch SW21 is also connected to the side that can secure the same path, and usually the print engine. The transfer route up to 77 should be secured. However, even if one of the switches SW11 and SW12 in the first stage is connected and the raster processing of the raster processing units 75 and 76 is completed, if the print processing of the print engine 77 has already been completed, In some cases, other data has already secured a new transfer path first and the connection of the switch SW21 at the second stage has been switched. Even at this time, the interlock is released, but the transfer path cannot be secured. In these cases, the interlock is released and the display unit 13b is lit green, but a reception error occurs when the user transmits data. This is constructed by diverting the interlock function to the previous function by adopting a configuration that adds the IrDA communication function without changing the hardware (circuit) and software originally provided in the printer 1 as much as possible. Due to that. Of course, it is also possible to adopt a configuration that realizes an interlock function with no leakage that targets all communication methods. Conversely, the interlock process can be further simplified, and for example, the determination unit 88 can be an interlock process that only determines whether one of the switches SW11 and SW12 is on the connection side.

本実施形態の転送経路確保のルールに従えば、先のデータの印刷終了前であっても、その先行データの転送経路を確保する第2段目のスイッチSW21の接続を維持したまま、第1段目のスイッチSW11,SW12を切り換えるのみで次データの転送経路を確保できる場合は、次データの受信が可能となる。例えば先に受信したvNoteデータの画像データラスタ処理部76におけるラスタ処理を終了してそのラスタデータがすべてバッファ(格納部)76aに格納されたとすると、その時点でインターロックは解除される。このインターロック解除により表示部13bが緑点灯した後、通信部45cからJPEGデータを受信すると、このとき、第1段目のスイッチSW11,SW12の一方が接続され且つラスタ処理が終了しており、さらに第2段目のスイッチSW21の接続を維持したまま次データの転送経路を確保できる条件を満たしているので、ストリームパイプ149はそのJPEGデータの受信を許可する。すなわち、そのJPEGデータの転送経路を確保する。従って、先のvNoteデータがラスタ処理後にバッファ(格納部)76aにバッファリングされただけの印刷終了前の段階であっても、次のJPEGデータの受信および処理が可能となる。このように先行データの印刷処理終了前に次データの受信および転送処理が可能になるデータ種の組み合わせは上記の例に限定されず、例えばvCardデータを受信した後、次にXHTMLデータを受信したときも同様であり、また、それら2つのデータの受信順序が逆であっても同様である。また、条件さえ揃えば先行データの印刷終了前に次データを順次複数受信することもでき、このとき受信できる次データの数はラスタ処理部75,76に対応する各バッファ75a,76aの記憶容量に依存し、その記憶容量以内でバッファリングできる限りにおいて複数のデータを受信できる。   According to the rule for securing the transfer path of the present embodiment, the first switch SW21 that secures the transfer path for the preceding data is maintained while the connection of the first switch is maintained even before the previous data is printed. When the next data transfer path can be ensured only by switching the switches SW11 and SW12 at the stage, the next data can be received. For example, when the raster processing in the image data raster processing unit 76 of the previously received vNote data is finished and all the raster data is stored in the buffer (storage unit) 76a, the interlock is released at that time. When the JPEG data is received from the communication unit 45c after the display unit 13b is lit in green by the interlock release, at this time, one of the switches SW11 and SW12 in the first stage is connected and the raster processing is completed. Furthermore, since the condition for securing the transfer path of the next data is satisfied while maintaining the connection of the switch SW21 at the second stage, the stream pipe 149 permits the reception of the JPEG data. That is, a transfer path for the JPEG data is secured. Therefore, the next JPEG data can be received and processed even before the end of printing, in which the previous vNote data is just buffered in the buffer (storage unit) 76a after the raster processing. In this way, the combination of data types that allows the next data to be received and transferred before the preceding data print process is completed is not limited to the above example. For example, after receiving vCard data, the next XHTML data is received. It is the same even when the reception order of these two data is reversed. Further, if the conditions are met, the next data can be sequentially received before the printing of the preceding data is completed. The number of the next data that can be received at this time is the storage capacity of each of the buffers 75a and 76a corresponding to the raster processing units 75 and 76. And can receive a plurality of data as long as it can be buffered within its storage capacity.

通常、ユーザは複数のデータを印刷したいときは、それら複数のデータを連続的に送信しようとするのが当然ではあるが、このプリンタ1では、プリントエンジン77のバッファリング容量が限られていることから、1件ずつの印刷しか原則認めておらず、CPU41は1件の印刷終了までは次データの受信を許可しない。しかし、例外的に先行データの印刷終了前でも次データの受信が許可される場合があるので、この例外的に受信が許可される場合の条件に合わせてインターロック処理内容(つまりストリームパイプ149の設定内容)を設定している。受信が確実に許可されない条件ではインターロックを解除させず、受信が許可される可能性のある条件ではインターロックを解除するようにしている。よって、表示部13bが緑点灯したにも拘わらず受信エラーとなることがありうるものの、前データの印刷終了前でも受信が許可されうるときには表示部13bを緑点灯させ、受信できるにも拘わらず表示部13bが消灯することを避けることで、受信の機会をできるだけ増やすようにしている。ユーザは表示部13bの緑点灯によって受信可能であることが分かると、次のデータを送信する。この際、先行データの印刷終了前であっても受信が許可されうる前データと次データの組み合わせは、vNoteとJPEG形式のうちから二者選択する3つの組合せと、vCardとXHTML形式のうちから二者選択する3つの組合せとの合計6種類の組合せがある。   Normally, when a user wants to print a plurality of data, it is natural that the plurality of data is continuously transmitted. However, in this printer 1, the buffering capacity of the print engine 77 is limited. Thus, in principle, only one print is permitted, and the CPU 41 does not permit the reception of the next data until the end of one print. However, since the reception of the next data may be permitted even before the printing of the preceding data is exceptional, the interlock processing content (that is, the stream pipe 149) is matched to the condition when the exceptional reception is permitted. Setting details) is set. The interlock is not released under conditions where reception is not permitted, and the interlock is released under conditions where reception is likely to be permitted. Therefore, although the display unit 13b may be lit in green, a reception error may occur. However, if reception can be permitted even before the previous data is printed, the display unit 13b is lit in green and can be received. By avoiding the display unit 13b from turning off, the number of reception opportunities is increased as much as possible. When the user knows that the signal can be received by the green lighting of the display unit 13b, the user transmits the next data. At this time, the combination of the previous data and the next data that can be permitted to be received even before the printing of the preceding data is completed is selected from three combinations selected from the vNote and JPEG formats, and the vCard and XHTML formats. There are a total of six types of combinations with three combinations selected by two parties.

ここで、通常は、プリンタ1が印刷を終了すれば次データを送信できるとユーザは知ることができるが、内部処理の都合で受信可能になった場合も、表示部13bの緑点灯により知ることができる。よって、表示部13bによる報知があるため、受信できるにもかかわらず印刷動作の終了を待つ事態を回避できる。   Here, normally, the user can know that the next data can be transmitted when the printer 1 finishes printing. However, even when the data can be received due to the internal processing, the user can know by the green lighting of the display unit 13b. Can do. Therefore, since there is a notification by the display unit 13b, it is possible to avoid a situation of waiting for the end of the printing operation although it can be received.

図14は、CF型通信カードをカードスロットに挿入(セット)した際に、プリンタ1側のCPU41が実行するプログラムを示すフローチャートである。以下、CPU41がCF型通信カード13を検出した時に実行する処理内容を説明する。   FIG. 14 is a flowchart showing a program executed by the CPU 41 on the printer 1 side when a CF type communication card is inserted (set) into the card slot. Hereinafter, the processing content executed when the CPU 41 detects the CF type communication card 13 will be described.

まず、ステップ(以下単に「S」と記す)10では、CF型通信カード13がカードスロット12に挿入されたか(つまりCF型通信カード13を検出できたか)どうかを判断する。CF型通信カード13がカードスロット12に挿入されたことを検知すればS20に進み、挿入されたことが検知されなければそのまま処理を終了する。   First, in step (hereinafter simply referred to as “S”) 10, it is determined whether or not the CF type communication card 13 has been inserted into the card slot 12 (that is, whether or not the CF type communication card 13 has been detected). If it is detected that the CF-type communication card 13 has been inserted into the card slot 12, the process proceeds to S20, and if it is not detected that the card has been inserted, the process is terminated.

S20では、挿入が検知されたカードが、CF型通信カード13であるかメモリカードMCであるかを判別する。CF型通信カード13であればS30に進み、メモリカードであればメモリカードであることを認識して処理を終了する。   In S20, it is determined whether the card whose insertion has been detected is the CF communication card 13 or the memory card MC. If it is the CF type communication card 13, the process proceeds to S30, and if it is a memory card, the memory card is recognized and the process is terminated.

S30では、CF型通信カード13のセットアップ処理を行う。すなわち、セットアップデータ記憶部71aから拡張子データ(参照データ)を読み出してオブジェクト送受信部64に送信するようカードドライバ71に指示を与える。この結果、カードドライバ71は拡張子データをオブジェクト送受信部64に送信し、それを受け付けたオブジェクト送受信部64はその拡張子データを記憶部64aに記憶する。   In S30, the CF type communication card 13 is set up. That is, the card driver 71 is instructed to read extension data (reference data) from the setup data storage unit 71 a and transmit it to the object transmission / reception unit 64. As a result, the card driver 71 transmits the extension data to the object transmission / reception unit 64, and the object transmission / reception unit 64 that has received the data stores the extension data in the storage unit 64a.

次にS40では、インターロック処理を行う。すなわち、先に図13を用いて説明した処理を実行する。
S50では、インターロックを解除してよいかどうかを判断する。インターロックを解除してよければS60に進み、解除できない場合は再びS40に戻る。
S40に戻った場合は、以後、インターロックを解除できるまでインターロック処理を所定時間毎に実行する。
Next, in S40, an interlock process is performed. That is, the process described above with reference to FIG. 13 is executed.
In S50, it is determined whether or not the interlock can be released. If it is OK to release the interlock, the process proceeds to S60. If the interlock cannot be released, the process returns to S40 again.
When the process returns to S40, the interlock process is executed every predetermined time until the interlock can be released.

S60では、インターロックを解除するレディコマンドを出力する。このレディコマンドを受け付けたカード制御部31(CPU159)は、「受信可能」の通信ステータスAを設定し、CF型通信カード13の表示部13bが緑点灯する。ユーザは表示部13bの緑点灯を見ることでCF型通信カード13がデータ受信可能な状態にあることを把握する。   In S60, a ready command for releasing the interlock is output. Upon receiving this ready command, the card control unit 31 (CPU 159) sets a communication status A of “Receivable”, and the display unit 13b of the CF type communication card 13 is lit in green. The user grasps that the CF type communication card 13 is in a state capable of receiving data by looking at the green lighting of the display unit 13b.

図15〜図19は、インターロック処理のシーケンスを示す一例である。なお、図15〜図17についてはCF型通信カードで行われる未対応データの受付禁止処理も合わせて説明している。   15 to 19 are examples showing a sequence of the interlock process. Note that FIGS. 15 to 17 also illustrate unacceptable data reception prohibition processing performed by the CF communication card.

なお、以下のインターロック処理の説明では、図16で説明した例外処理、すなわちプリントエンジン77が先行データの処理終了前であっても次データの受信を許可する例外処理については、XHTMLデータの転送要求時に起動するスイッチSW11側には適用せず、JPEGデータの転送要求時に起動するスイッチSW12側のみ適用した例で説明する。   In the following description of the interlock process, transfer of XHTML data is performed for the exception process described in FIG. 16, that is, for the exception process in which the print engine 77 permits the reception of the next data even before the process of the previous data is completed. An example will be described in which the present invention is not applied to the switch SW11 activated when requested, but only the switch SW12 activated when requested to transfer JPEG data.

このため、プリンタ1が先に受信したデータがvCardデータであるときと、vNoteデータ又はJPEGデータであるときとでは、次のデータの受信を許可するインターロック解除の方法が異なる。図15はvCardデータが先に送信された例、図16及び図17はvNoteデータ又はJPEGデータが先に送信された例である。図17は先のデータの印刷実行中であっても次のデータがvNoteデータ又はJPEGデータであれば受信可能となる例を示す。図18及び図19はその他のインターロック処理を説明する。   For this reason, when the data received first by the printer 1 is vCard data and when it is vNote data or JPEG data, the interlock release method for permitting reception of the next data is different. FIG. 15 is an example in which vCard data is transmitted first, and FIGS. 16 and 17 are examples in which vNote data or JPEG data is transmitted first. FIG. 17 shows an example in which reception is possible if the next data is vNote data or JPEG data even during printing of the previous data. 18 and 19 illustrate other interlock processing.

まず図15に基づいて、先にvCardデータを受信したときのインターロック処理及び未対応データの受付禁止処理について説明する。
まずプリンタ1に電源が投入されると、プリンタ1からCF型通信カード(赤外線通信カード)13に対応拡張子(拡張子データ)「vcf」「vnt」「jpeg」「jpg」がセットアップされる。その後、プリンタ1では、CF型通信カード13からの受信を許可してよいか否かを判断する処理(以下インターロック解除処理という)が行われ、受信を許可してよい(つまりインターロック状態を解除してよい)と判断すると、プリンタ1からCF型通信カード13へレディコマンドが出力される。CF型通信カード13はレディコマンドを入力するとインターロック状態を解除して受信可能状態になる。インターロック状態の解除によりそれまで消灯していた表示部13bは緑点灯する。
First, based on FIG. 15, an interlock process and an unsupported data acceptance prohibition process when vCard data is received first will be described.
First, when the printer 1 is powered on, extensions (extension data) “vcf”, “vnt”, “jpeg”, and “jpg” corresponding to the CF type communication card (infrared communication card) 13 are set up from the printer 1. Thereafter, the printer 1 performs a process for determining whether or not reception from the CF-type communication card 13 is permitted (hereinafter referred to as an interlock release process), and may permit the reception (that is, the interlock state is changed). If it is determined that it can be canceled, a ready command is output from the printer 1 to the CF-type communication card 13. When the CF type communication card 13 receives a ready command, the CF type communication card 13 is released from the interlock state and becomes ready for reception. The display unit 13b that has been extinguished until the interlock state is released lights up in green.

そして、携帯電話14から対応データとして「vcf」の拡張子を持つvCardデータを送信したとする。すると、これを受信したCF型通信カード13はそのデータの拡張子「vcf」とセットアップされた拡張子データ「vcf」「vnt」「jpeg」「jpg」とを参照比較する。両者が一致する組合せが存在するので、CF型通信カード13はそのデータを受信するとともにプリンタ1へ転送する。このデータ受信中は表示部13bが緑点滅する。数10秒〜1分程度かけてデータの受信が完了すると、表示部13bが橙点灯になり、受信完了の旨(受信完了信号)がCF型通信カード13から携帯電話14へ通知されるとともに、CF型通信カード13がインターロック状態になる。本例では、携帯電話14とCF型通信カード13間の通信と、CF型通信カード13とプリンタ1間の通信は非同期であるため、その後しばらくしてプリンタ1からCF型通信カード13に受信完了の旨が通知される。その後、プリンタ1では印刷が実行される。   Then, it is assumed that vCard data having an extension of “vcf” is transmitted from the mobile phone 14 as corresponding data. Then, the CF communication card 13 that has received this compares the extension “vcf” of the data with the set-up extension data “vcf” “vnt” “jpeg” “jpg”. Since there is a combination that matches both, the CF communication card 13 receives the data and transfers it to the printer 1. While this data is being received, the display unit 13b blinks in green. When the data reception is completed over several tens of seconds to one minute, the display unit 13b turns orange, and a notification of reception completion (reception completion signal) is sent from the CF type communication card 13 to the mobile phone 14. The CF type communication card 13 enters the interlock state. In this example, since communication between the mobile phone 14 and the CF communication card 13 and communication between the CF communication card 13 and the printer 1 are asynchronous, reception from the printer 1 to the CF communication card 13 is completed after a while. Is notified. Thereafter, the printer 1 performs printing.

プリンタ1はvCardデータを受信した場合は印刷終了後にレディコマンドを出力する。よって、プリンタ1が印刷実行中にあるときCF型通信カード13はインターロック状態にあるので、携帯電話14から対応データを送信しても、CF型通信カード13から携帯電話14へエラー信号が送信される。   When the printer 1 receives vCard data, the printer 1 outputs a ready command after printing. Therefore, since the CF type communication card 13 is in the interlock state when the printer 1 is executing printing, an error signal is transmitted from the CF type communication card 13 to the mobile phone 14 even if the corresponding data is sent from the mobile phone 14. Is done.

その後、印刷が終了してプリンタ1からCF型通信カード13へレディコマンドが出力されると、インターロック状態が解除される。そして、携帯電話14から「vcf」「vnt」「jpeg」「jpg」以外の拡張子を持つ未対応データを送信すると、これを受信したCF型通信カード13はそのデータの拡張子と拡張子データとを参照比較する。例えば「txt」「mpeg」等の未対応拡張子を持つ未対応データである場合、参照比較の結果、両者の組合せがすべて不一致となるので、未対応データは受信されずCF型通信カード13内で破棄されるとともに携帯電話14へエラー信号が送信される。このとき表示部13bは赤点滅する。このように未対応データはCF型通信カード13内で破棄され、プリンタ1へ転送されることがない。よって、プリンタ1へデータ転送する際に使用されるスロット通信部45eの通信ポートを未対応データが占有することがないので、他の通信方式の通信ポートにおけるデータ受信を妨げることが回避される。   Thereafter, when printing is completed and a ready command is output from the printer 1 to the CF type communication card 13, the interlock state is released. When unsupported data having an extension other than “vcf”, “vnt”, “jpeg”, and “jpg” is transmitted from the mobile phone 14, the CF type communication card 13 that has received the data transmits the extension and extension data of the data. Compare with reference. For example, in the case of unsupported data having unsupported extensions such as “txt” and “mpeg”, as a result of the reference comparison, all combinations of the two do not match. And an error signal is transmitted to the mobile phone 14. At this time, the display unit 13b blinks red. In this way, unsupported data is discarded in the CF type communication card 13 and is not transferred to the printer 1. Therefore, the unsupported data does not occupy the communication port of the slot communication unit 45e used when data is transferred to the printer 1, so that it is possible to avoid the reception of data at the communication port of another communication method.

次に図16に基づいて、先にvNote又はJPEGデータを受信したときのインターロック処理及び未対応データの受付禁止処理について説明する。
プリンタ1からCF型通信カード(赤外線通信カード)13に対応拡張子(拡張子データ)「vcf」「vnt」「jpeg」「jpg」がセットアップされた後、プリンタ1からレディコマンドを受け取るとCF型通信カード13はインターロック状態を解除して受信可能な状態になる。この結果、それまで消灯していた表示部13bが緑点灯する。
Next, based on FIG. 16, an interlock process and an unsupported data reception prohibition process when vNote or JPEG data is received first will be described.
Corresponding extensions (extension data) “vcf”, “vnt”, “jpeg”, and “jpg” are set up from the printer 1 to the CF type communication card (infrared communication card) 13. The communication card 13 is released from the interlock state and can be received. As a result, the display unit 13b that has been extinguished until then lights up in green.

そして、携帯電話14から対応データとして「vnt」「jpeg」「jpg」の拡張子を持つvNote又はJPEGデータを送信したとする。すると、これを受信したCF型通信カード13はそのデータの拡張子「vnt」(又は「jpeg」「jpg」)とセットアップされた拡張子データ「vcf」「vnt」「jpeg」「jpg」とを参照比較する。両者に一致する組合せがあるため、CF型通信カード13はそのデータを受信するとともにプリンタ1へ転送する。   Then, it is assumed that vNote or JPEG data having extensions “vnt”, “jpeg”, and “jpg” is transmitted from the mobile phone 14 as corresponding data. Then, the CF type communication card 13 that has received the data sets the extension “vnt” (or “jpeg” “jpg”) of the data and the extension data “vcf” “vnt” “jpg” “jpg” set up. Compare reference. Since there is a combination that matches both, the CF communication card 13 receives the data and transfers it to the printer 1.

このデータ受信中は表示部13bが緑点滅する。数10秒〜1分程度かけてデータの受信が完了すると、表示部13bが橙点灯になり、受信完了の旨(受信完了信号)がCF型通信カード13から携帯電話14へ通知されるとともに、CF型通信カード13がインターロック状態になる。その後しばらくしてプリンタ1からCF型通信カード13に受信完了の旨が通知される。プリンタ1は受信完了の旨を通知した後、拡張子「vnt」「jpeg」「jpg」のいずれかを持つvNote又はJPEGデータを受信した場合は、その対応データのラスタ処理が終了した時点でCF型通信カード13へレディコマンドを出力する。すなわち、図15で説明したvCardデータ送信時は印刷終了後にレディコマンドを出力したのに対し、vNote又はJPEGデータの送信時はラスタ処理終了時点でレディコマンド出力する。その後、プリンタ1では印刷が実行される。   While this data is being received, the display unit 13b blinks in green. When the data reception is completed over several tens of seconds to one minute, the display unit 13b turns orange, and a notification of reception completion (reception completion signal) is sent from the CF type communication card 13 to the mobile phone 14. The CF type communication card 13 enters the interlock state. After a while, the printer 1 notifies the CF type communication card 13 that the reception has been completed. If the printer 1 receives vNote or JPEG data having any of the extensions “vnt”, “jpeg”, or “jpg” after notifying that the reception is completed, the CF 1 is processed when the raster processing of the corresponding data is completed. A ready command is output to the communication card 13. That is, the ready command is output after the end of printing when vCard data described in FIG. 15 is transmitted, whereas the ready command is output at the end of raster processing when vNote or JPEG data is transmitted. Thereafter, the printer 1 performs printing.

よって、プリンタ1が印刷実行中にあるときはCF型通信カード13はインターロック状態が解除され通信可能状態にある。しかし、この印刷実行中に受信が許可されるのはvNote又はJPEGデータに限られる。例えば携帯電話14からvCardデータを送信した場合、これを受信したCF型通信カード13はそのデータの拡張子「vcf」と拡張子データとを参照比較する。参照比較の結果、両者が一致する組合せが存在するので、vCardデータは受信されプリンタ1へ転送される。vCardデータを受信したプリンタ1は、その拡張子「vcf」からvCardデータであることを認識すると、受付けられないデータ種であるのでCF型通信カード13へエラー信号を出力する。   Therefore, when the printer 1 is executing printing, the CF communication card 13 is released from the interlock state and is in a communicable state. However, only vNote or JPEG data is permitted to be received during execution of printing. For example, when vCard data is transmitted from the mobile phone 14, the CF type communication card 13 that receives the vCard data refers to and compares the extension “vcf” of the data with the extension data. As a result of the reference comparison, there is a combination in which both match, so the vCard data is received and transferred to the printer 1. When the printer 1 receiving the vCard data recognizes that it is vCard data from the extension “vcf”, it outputs an error signal to the CF type communication card 13 because it is an unacceptable data type.

これに対し、図17に示すように、この印刷実行中に拡張子「vnt」「jpeg」「jpg」のいずれかを持つvNote又はJPEGデータを受信した場合は、プリンタ1はこれを受信してそのデータ種に応じた処理を進める。vNote又はJPEGデータを受信し終わると、プリンタ1は受信完了の旨をCF型通信カード13へ送信し、その後、この受信したデータのラスタ処理が終わるとCF型通信カード13へレディコマンドを出力する。但し、プリンタ1でインターロック処理を行うIrDAプロファイル処理部74は、ラスタ処理部75,76で処理されるデータを受信する一部の通信部しか管理できないので、その他の通信部から受信されたデータが既にある場合はvNote又はJPEGデータであっても受付けられない場合がある。   On the other hand, as shown in FIG. 17, when vNote or JPEG data having any of the extensions “vnt”, “jpeg”, and “jpg” is received during the execution of printing, the printer 1 receives this. The process according to the data type is advanced. When receiving the vNote or JPEG data, the printer 1 transmits a reception completion message to the CF-type communication card 13, and then outputs a ready command to the CF-type communication card 13 when the raster processing of the received data is completed. . However, since the IrDA profile processing unit 74 that performs the interlock processing in the printer 1 can manage only a part of the communication units that receive the data processed by the raster processing units 75 and 76, the data received from the other communication units May already be accepted even if it is vNote or JPEG data.

CF型通信カード13からプリンタ1への通信が発生した場合、そのデータ受信を完了すればCF型通信カード13は自動的にインターロック状態に移行する。但し、CF型通信カード13とプリンタ1間での接続処理に失敗した場合は移行しない。以下、この種の例を図18に従って説明する。   When communication from the CF-type communication card 13 to the printer 1 occurs, the CF-type communication card 13 automatically shifts to the interlock state when the data reception is completed. However, if the connection process between the CF-type communication card 13 and the printer 1 fails, no transition is made. Hereinafter, this type of example will be described with reference to FIG.

図18に示すように、携帯電話14から対応データが送信された場合、CF型通信カード13はそのデータをプリンタ1にすべて転送し終えると、転送終了の制御コード「EOT」をプリンタ1に送信する。この「EOT」に応答してプリンタ1から肯定応答「DLE ACK0」を受信することによりデータリンクを開放するようになっている。同図のように「EOT」に対してプリンタ1から肯定応答「DLE ACK0」を受信することがないままタイムアウトになると、CF型通信カード13は携帯電話14にエラー信号を送信する。このようにタイムアウトによりデータリンクが正しく開放されなかった場合に限り、インターロック状態とはならず通信可能状態を維持する。よって、タイムアウトによってデータ受信が失敗した場合は、その後引き続き携帯電話14からデータを再送し直せばCF型通信カード13にデータは受信される。   As shown in FIG. 18, when the correspondence data is transmitted from the mobile phone 14, the CF communication card 13 transmits the transfer end control code “EOT” to the printer 1 when the data is completely transferred to the printer 1. To do. The data link is released by receiving an affirmative response “DLE ACK0” from the printer 1 in response to this “EOT”. If a time-out occurs without receiving an affirmative response “DLE ACK0” from the printer 1 for “EOT” as shown in the figure, the CF communication card 13 transmits an error signal to the mobile phone 14. Thus, only when the data link is not correctly released due to timeout, the communication state is maintained instead of the interlock state. Therefore, if data reception fails due to time-out, the data is received by the CF-type communication card 13 by subsequently retransmitting the data from the mobile phone 14.

これに対し、図19に示すように、転送終了の制御コード「EOT」に対する肯定応答「DLE ACK0」をプリンタ1から受信した場合は、通信終了(データリンク開放)後、CF型通信カード13はインターロック状態に移行する。   On the other hand, as shown in FIG. 19, when a positive response “DLE ACK0” to the transfer end control code “EOT” is received from the printer 1, after the communication is completed (data link is released), the CF type communication card 13 Transition to the interlock state.

図20(a)〜(c)は、プリンタ1の操作パネル8の画面9aに通信状態を表示する報知画像を示す。通信ステータスの情報は、CF型通信カード13の表示部13b以外に、操作パネル8の画面9aにも表示される。   20A to 20C show notification images for displaying the communication state on the screen 9a of the operation panel 8 of the printer 1. FIG. The communication status information is displayed on the screen 9 a of the operation panel 8 in addition to the display unit 13 b of the CF type communication card 13.

CPU41は、通信ステータスを管理しており、操作パネル8の画面9aにはその通信ステータスが表示される。ユーザはCF型通信カード13の表示部13bとプリンタ1の画面9aとのどちらでもデータ受信状態を確認できるようにしている。表示部13bで点灯制御によって報知される通信ステータスが、受信不可、受信可能、受信中、受信終了、受信エラーの5種類であるのに対し、文字表示可能な画面9aには、これらの文字情報の表示に加え、受信エラーについてはエラー内容(エラー原因別)まで区別して報知されるようになっている。   The CPU 41 manages the communication status, and the communication status is displayed on the screen 9 a of the operation panel 8. The user can check the data reception state on either the display unit 13b of the CF-type communication card 13 or the screen 9a of the printer 1. There are five types of communication statuses notified by the lighting control on the display unit 13b: reception is impossible, reception is possible, reception is in progress, reception is terminated, and reception errors. On the other hand, the character information is displayed on the screen 9a. In addition to the display, the reception error is notified in a manner that distinguishes up to the error contents (by error cause).

同図(a)の画面9aに示すように、「受信不可」の通信ステータスAにあるときは、CPU41は受信不可の旨を示す報知画像AG1を表示させる。報知画像AG1には、例えば「データ受信できません。」というテキストTX1が表示される。   As shown in the screen 9a of FIG. 9A, when the communication status A is “reception not possible”, the CPU 41 displays a notification image AG1 indicating that reception is impossible. In the notification image AG1, for example, a text TX1 “Data cannot be received” is displayed.

また、同図(b)の画面9aに示すように、「受信可能」の通信ステータスBにあるときは、CPU41は受信可能の旨を示す報知画像AG2を表示させる。
報知画像AG2には、例えば「データ受信できません。」というテキストTX2が表示される。
Further, as shown in the screen 9a of FIG. 9B, when the communication status B is “receivable”, the CPU 41 displays a notification image AG2 indicating that reception is possible.
In the notification image AG2, for example, a text TX2 “data cannot be received” is displayed.

また、同図(c)の画面9aに示すように、「受信中」の通信ステータスCにあるときは、CPU41は受信中の旨を示す報知画像AG3を表示させる。報知画像AG3には、データ受信中の旨を示す動画画像MG1と例えば「データ受信中」というテキストTX3が表示される。これらのテキストTX1〜TX3と動画画像MG1の各データは、EEPROM43に記憶されている。   Further, as shown in the screen 9a of FIG. 9C, when the communication status C is “receiving”, the CPU 41 displays a notification image AG3 indicating that it is being received. In the notification image AG3, a moving image MG1 indicating that data is being received and a text TX3 indicating “data is being received”, for example, are displayed. Each data of the texts TX1 to TX3 and the moving image MG1 is stored in the EEPROM 43.

また、通信ステータスが受信エラーであるときは、例えば図20に示す画面9aには、「この拡張子のデータは扱えません。」、「拡張子とデータが一致していません。」、「通信が途絶えました。」などのエラーの内容(原因)まで特定して報知する。また、CPU41は、印刷実行を開始すると、画面9aに「印刷中です。残り3枚。」などの印刷状況を報知するテキストを含む報知画像を表示させる。なお、CPU41が自身で通信ステータスを管理するのではなく、CF型通信カード13側のCPU159から受信した通信ステータスの情報に基づき画面9aに報知画像を表示する構成を採用することもできる。   Further, when the communication status is a reception error, for example, on the screen 9a shown in FIG. 20, “data with this extension cannot be handled.”, “Data does not match the extension”, “ Identify and notify the error content (cause) such as “Communication was interrupted”. In addition, when printing is started, the CPU 41 displays on the screen 9a a notification image that includes text for notifying the printing status such as “Printing in progress, the remaining three sheets”. Instead of managing the communication status by itself, the CPU 41 may employ a configuration in which a notification image is displayed on the screen 9a based on the communication status information received from the CPU 159 on the CF type communication card 13 side.

次に、CF型通信カード13からプリンタ1の本体2側に転送されたデータの処理について説明する。プリンタ側の処理には、主に、(A)データの種別に応じた振り分け処理、(B)個人情報データの単件か全件かの判定処理、(C)個人情報の全件データの分割送出処理、(D)個人情報データの名刺レイアウト印刷、(E)個人情報データの電話帳レイアウト印刷の各処理がある。   Next, processing of data transferred from the CF type communication card 13 to the main body 2 side of the printer 1 will be described. The processing on the printer side mainly includes (A) sorting processing according to the type of data, (B) processing for determining whether individual information data is single or all data, and (C) dividing all data of personal information. There are each processing of sending processing, (D) business card layout printing of personal information data, and (E) phone book layout printing of personal information data.

まず、受信したデータをASIC内等の処理回路が扱えるファイル形式に変換した後、指定のレイアウト付きのデータに生成するまでの処理について説明する。まずvCardファイルのデータ構造を説明する。   First, a process from conversion of received data into a file format that can be handled by a processing circuit such as an ASIC to generation of data with a designated layout will be described. First, the data structure of the vCard file will be described.

図21は、vCardファイル形式の個人情報データの一例を示す。
同図に示すように、vCard形式の単件データMD1は、まず「BEGIN:VCARD」で始まり、「END:VCARD」で終わる。その「BEGIN:VCARD」と「END:VCARD」の間には以下のような個人情報の各アイテムが、プロパティと値を使って「プロパティ:値」形式で記述されるようになっている。プロパティは項目を指し、値はその項目に入れるべき具体的な内容を指す。プロパティには、「N(名前)」、「SOUND(フリガナ)」、「TEL(電話番号)」、「EMAIL(電子メールアドレス)」、「ADR(住所)」、「NOTE(メモ)」などが用意されている(但し、括弧書きはプロパティの説明である)。
FIG. 21 shows an example of personal information data in the vCard file format.
As shown in the figure, the single data MD1 in the vCard format starts with “BEGIN: VCARD” and ends with “END: VCARD”. Each item of the following personal information is described in the “property: value” format between the “BEGIN: VCARD” and the “END: VCARD” using the property and the value. A property points to an item, and a value points to the specific content that should be placed in that item. Properties include “N (name)”, “SOUND (phonetic)”, “TEL (phone number)”, “EMAIL (email address)”, “ADR (address)”, “NOTE (memo)”, etc. Provided (however, parentheses are descriptions of properties).

まずプロパティ「N」の値には他人の氏名が記述される。例えばvCard対応の電話帳アプリケーション(新規登録)を起動させて画面に表示された名前の入力欄に「山田 太郎」と入力した場合、「N:山田 太郎」と記述される。同様にプロパティ「SOUND」の値には氏名のフリガナが記述される。   First, the name of another person is described in the value of the property “N”. For example, when starting a vCard compatible phone book application (new registration) and entering “Taro Yamada” in the name input field displayed on the screen, “N: Taro Yamada” is described. Similarly, the name of the name is described in the value of the property “SOUND”.

プロパティ「TEL」には電話番号が記述されるが、さらにコマンドを追加すること(以下TYPE指定することと称す)により以下に示すようなものが指定できる。「TEL;WORK;VOICE:」の値には勤務先電話番号、「TEL;WORK;FAX:」の値には勤務先FAX番号が記述される。「WORK」の部分を「HOME」に置換すると自宅用電話番号が記述される。「TEL;CELL:」の値には携帯電話番号が記述される。また、携帯電話番号の登録アイコンの選択によりさまざまなTYPE指定が可能であり、これによりさまざまな電話番号を指定することが可能である。図21の7行目の「TEL;X-ABC−MAIN;VOICE:」の値には「代表」の電話番号が記述される。その他、「学校」の電話番号が記述されるプロパティもある。その他、さまざまな識別TYPEコマンドが用意されている。   Although the telephone number is described in the property “TEL”, the following can be specified by adding a command (hereinafter referred to as TYPE designation). The office telephone number is described in the value of “TEL; WORK; VOICE:”, and the office FAX number is described in the value of “TEL; WORK; FAX:”. When “WORK” is replaced with “HOME”, a home phone number is described. A mobile phone number is described in the value of “TEL; CELL:”. In addition, various TYPE designations can be made by selecting a cellular phone number registration icon, and thus various telephone numbers can be designated. The telephone number of “representative” is described in the value of “TEL; X-ABC-MAIN; VOICE:” on the seventh line in FIG. There is also a property that describes the phone number of “School”. In addition, various identification TYPE commands are prepared.

プロパティ「EMAIL」の値には電子メールアドレスが記述される。「EMAIL」コマンドも「TEL」コマンドと同様に、「EMAIL」の後にTYPE指定することにより複数の電子メールアドレスが指定できる。図21の例で、「EMAIL;WORK:」の値には会社の電子メールアドレスが、「EMAIL;CELL:」の値には携帯電話の電子メールアドレスが、「EMAIL:INTERNET:」の値にはインターネットの電子メールアドレスが記述される。   An e-mail address is described in the value of the property “EMAIL”. Similarly to the “TEL” command, the “EMAIL” command can specify a plurality of e-mail addresses by specifying “TYPE” after “EMAIL”. In the example of FIG. 21, the value of “EMAIL; WORK:” is the company's e-mail address, the value of “EMAIL; CELL:” is the e-mail address of the mobile phone, and the value of “EMAIL: INTERNET:” is set. Is an Internet e-mail address.

プロパティ「ADR」の値には住所が記述される。「ADR」もその後に「WORK」、「HOME」等のTYPE指定することにより会社住所、自宅住所等を指定することができる。   An address is described in the value of the property “ADR”. “ADR” can also specify a company address, a home address, etc. by specifying TYPE such as “WORK” and “HOME”.

プロパティ「NOTE」の値にはメモの内容が記述される。本実施形態では、メモに指定文字を入力して「NOTE」の値に指定文字を記述することにより、プリンタ1に対し印刷レイアウトを設定する機能を設けている。   The value of the property “NOTE” describes the contents of the memo. In the present embodiment, a function for setting a print layout for the printer 1 is provided by inputting a designated character into a memo and describing the designated character in a “NOTE” value.

なお、vCardの全件データは、個人情報を複数件含み、個人情報は1件ずつ「BEGIN:VCARD」で始まり、「END:VCARD」で終わる。その「BEGIN:VCARD」と「END:VCARD」の間に1件分の個人情報を構成する各アイテムが、「プロパティ:値」形式で記述されている。従って、1件のデータが終了する毎に「END:VCARD」が記述されている。携帯電話14から個人情報データを送信するとき、ユーザは「単件」か「全件」かを選択できる。プリンタ1は受信したvCardファイルが「単件」か「全件」かによって適用する印刷レイアウトを決定する。本実施形態では、vCardファイルが「単件」か「全件」であるかを識別するために、個人情報データ中に必ず記述され、かつ1件につき1つしか記述されないコマンド又はプロパティを件数判別子として採用する。本実施形態の場合、件数判別子CSとして「END:VCARD」を採用する。IrDAプロファイル処理部74の件数判定部82は、個人情報データが単件であるのか全件(グループ指定の場合はグループの全件を含む)であるのかを判別する。詳しくは、CPU41がデータ中に含まれる件数判別子「END:VCARD」をカウンタにより計数し、その計数値に基づき受信したvCardファイルが「単件」か「全件」かを判断する。すなわちその計数値が「1」の場合は判定値(例えばフラグ)Nを「N=0」にリセットし、計数値が「2以上」の場合は判定値Nを「N=1」にセットする。   Note that all vCard data includes a plurality of pieces of personal information, and each piece of personal information starts with “BEGIN: VCARD” and ends with “END: VCARD”. Each item constituting one piece of personal information is described in the “property: value” format between “BEGIN: VCARD” and “END: VCARD”. Therefore, “END: VCARD” is described every time one piece of data ends. When transmitting personal information data from the mobile phone 14, the user can select “single” or “all”. The printer 1 determines a print layout to be applied depending on whether the received vCard file is “single” or “all”. In this embodiment, in order to identify whether a vCard file is “single” or “all”, the number of commands or properties that are always described in personal information data and only one is described for each case is determined. Adopt as a child. In the present embodiment, “END: VCARD” is adopted as the number discriminator CS. The number determination unit 82 of the IrDA profile processing unit 74 determines whether the personal information data is a single case or all cases (including all cases in the group in the case of group designation). Specifically, the CPU 41 counts the number discriminator “END: VCARD” included in the data by the counter, and determines whether the received vCard file is “single” or “all” based on the counted value. That is, when the count value is “1”, the determination value (for example, flag) N is reset to “N = 0”, and when the count value is “2 or more”, the determination value N is set to “N = 1”. .

また、全件ファイルである場合、IrDAプロファイル処理部74はデータをすべて受信してからテキストデータ形式変換部85へ送るのではなく、全件のうち所定件数分だけバッファリングされる度に、その所定件数分ずつ次処理部のテキストデータ形式変換部85へ送る。この処理は分割処理部84が行う。データ中の1件毎の区切りは区分識別子DSをみることで判断する。本例では、区分識別子DSとして「END:VCARD」を採用する。   In the case of all files, the IrDA profile processing unit 74 does not receive all the data and then sends it to the text data format conversion unit 85. The data is sent to the text data format conversion unit 85 of the next processing unit by a predetermined number. This processing is performed by the division processing unit 84. The delimiter for each item in the data is determined by looking at the category identifier DS. In this example, “END: VCARD” is adopted as the classification identifier DS.

データトランスファ部73が伝送制御手順73aにおいてデータが正しく受信されたかどうかチェックした後、CPU41はそのデータについて区分識別子DSである「END:VCARD」(本例で件数判別子CSに同じ)をカウンタにより計数し、その計数値から受信した個人情報の件数をカウントする。そして、所定件数分の個人情報がRAM44の受信バッファ44aにバッファリングされる度にCPU41は、受信バッファ44aのデータを次処理のテキストデータ形式変換部85へ送る。詳しくはCPU41が所定件数分のデータがバッファリングされる度にその所定件数分のデータに対し次のテキストデータ形式変換処理を実行する。なお、区分識別子DSは、1件毎の最後のプロパティでもよい。   After the data transfer unit 73 checks whether or not the data is correctly received in the transmission control procedure 73a, the CPU 41 uses the counter to determine “END: VCARD” (same as the number discriminator CS in this example), which is the segment identifier DS for the data. Count and count the number of personal information received from the count. Each time a predetermined number of pieces of personal information are buffered in the reception buffer 44a of the RAM 44, the CPU 41 sends the data in the reception buffer 44a to the text data format conversion unit 85 for the next process. Specifically, every time a predetermined number of pieces of data are buffered, the CPU 41 executes the next text data format conversion process on the predetermined number of pieces of data. The classification identifier DS may be the last property for each case.

図22は、個人情報データが印刷される際に適用される印刷レイアウトのテンプレートデータの一例を示す。
vCardファイルの印刷レイアウト(印刷フォーマット)は、プリンタ1内のEEPROM43(テンプレート記憶部86)に記憶されたテンプレートデータに依存する。テンプレートデータはXHTML形式で記述されたレイアウト用データである。XHTMLデータは、<body>と</body>の間が、1つの項目毎(同図では行毎)につき、フィールド、コメントタグ、プロパティの3つの領域に分かれている。
FIG. 22 shows an example of print layout template data applied when personal information data is printed.
The print layout (print format) of the vCard file depends on the template data stored in the EEPROM 43 (template storage unit 86) in the printer 1. The template data is layout data described in the XHTML format. The XHTML data is divided between the <body> and </ body> into three areas of fields, comment tags, and properties for each item (each line in the figure).

フィールドは、図22においては「名前」や「電話番号」など名刺の中にタイトルとして印刷される文字列などのデータ領域である。「名前」や「電話番号」など名刺に必要な規定のタイトルはテンプレートデータLTのフィールドに予め記述されている。   The field is a data area such as a character string printed as a title on a business card such as “name” and “phone number” in FIG. Prescribed titles necessary for business cards such as “name” and “telephone number” are described in advance in the field of the template data LT.

コメントタグは、vCard形式ファイルにおける各プロパティの値(例えばプロパティ「N」であればその値である「山田 太郎」)の印刷位置やフォント、文字サイズ等を指定する命令である。コメントタグ「<!-- -->」の直後に値は組み込まれる。また、コメントタグ「< >」を値で置換する方法もある。   The comment tag is an instruction for designating the print position, font, character size, etc. of each property value in the vCard format file (for example, if the property is “N”, that value is “Taro Yamada”). The value is embedded immediately after the comment tag "<!-->". There is also a method of replacing the comment tag “<>” with a value.

プロパティはvCard形式のデータで、TYPE指定したデータの印刷位置やフォント、文字サイズ等を指定する命令である。プロパティ「< >」の直後にTYPE指定したデータ、例えば「WORK」や「CELL」等の文字列が組み込まれる。従って、図21に示すように名前やフリガナのように、個人情報1件につき1つしかないTYPE指定の対象外のデータにおいてはコメントタグのみで構成されている。一方、電話番号や電子メールなどのTYPE指定できるデータが記述される領域ではコメントタグにプロパティが付加される。なお、図22におけるコメントタグ及びプロパティではフォント及び文字サイズ等は指定されていない。   The property is data in vCard format, and is an instruction for designating the print position, font, character size, etc. of the data designated by TYPE. Immediately after the property “<>”, data specified by TYPE, for example, a character string such as “WORK” or “CELL” is incorporated. Therefore, as shown in FIG. 21, only one comment is included in data that is not subject to TYPE designation, such as a name or reading, for each piece of personal information. On the other hand, a property is added to the comment tag in an area in which data that can be specified by TYPE such as a telephone number or an e-mail is described. Note that the font and character size are not specified in the comment tag and property in FIG.

図23は、図21の個人情報データを図22のテンプレートに当て嵌めた後のXHTMLデータを示す。図21の個人情報データ(携帯電話のディスプレイでは図4(b)にように表示される個人情報)は、そのうち指定の値(及びプロパティ)が図22のテンプレートに組み込まれ、図23に示すXHTMLデータからなるテンプレート書式データとなる。この個人情報データからテンプレート書式データへの変換処理は、テキストデータ形式変換部85が行う。テキストデータ形式変換部85で変換されたテンプレート書式データはテキストデータラスタ処理部75に送信される。CPU41は、テキストデータ形式変換処理を次のように行う。テンプレートデータLTを読み出すと、コメントタグの中に記述されたプロパティ(「Name」等)を手掛かりに、vCardファイル中からそのプロパティの値(「山田 太郎」等)を取り出し、テンプレートデータ中のそのコメントタグの直後にその取り出した値を組み込む。また、CPU41は、プロパティ中の「TYPE」直後のプロパティ(「TELNO1」等)を手掛かりに、vCardファイル中からそのプロパティのTYPE(「WORK」等)を取り出し、テンプレートデータLT中のそのプロパティの直後にその取り出したTYPEを組み込む。このルールに従った組込み処理は、CPU41がテキストデータ形式変換処理用プログラムを実行することにより行われる。こうして図23に示すテンプレート書式データが作成される。このように本実施形態では、レイアウト定義できないvCard形式からレイアウト定義できるXHTML形式に形式変換し、この形式変換の際に個人情報の値をテンプレートのレイアウト枠に流し込むことでレイアウトを割り付けている。   FIG. 23 shows the XHTML data after the personal information data of FIG. 21 is applied to the template of FIG. In the personal information data of FIG. 21 (personal information displayed as shown in FIG. 4B on the mobile phone display), specified values (and properties) are incorporated in the template of FIG. 22, and the XHTML shown in FIG. Template format data consisting of data. The conversion process from the personal information data to the template format data is performed by the text data format conversion unit 85. The template format data converted by the text data format conversion unit 85 is transmitted to the text data raster processing unit 75. The CPU 41 performs text data format conversion processing as follows. When the template data LT is read, the property value (“Name”, etc.) described in the comment tag is used as a clue, the property value (“Taro Yamada”, etc.) is extracted from the vCard file, and the comment in the template data is extracted. Incorporate the retrieved value immediately after the tag. Further, the CPU 41 takes the property immediately after “TYPE” in the property (such as “TELNO1”) as a clue, extracts the TYPE (such as “WORK”) from the vCard file, and immediately after that property in the template data LT. Incorporate the extracted TYPE. The embedding process according to this rule is performed by the CPU 41 executing a text data format conversion process program. In this way, template format data shown in FIG. 23 is created. As described above, in the present embodiment, the layout is assigned by converting the format from the vCard format where the layout cannot be defined to the XHTML format where the layout can be defined, and flowing the value of the personal information into the layout frame of the template at the time of the format conversion.

図24は、名刺形式の印刷レイアウトの一例を示す。同図はテンプレートデータLTにより指定される印刷レイアウトのテンプレートPL1を図示したものである。同図において四角枠で囲まれたレイアウト枠(割付領域)A1〜A9は、個人情報の各項目の値が配置される場所で、この場所の指定がテンプレートデータLT中のコメントタグにより指定されている。そして、コメントタグにより指定したレイアウト枠A1〜A9に、それぞれ対応する値が配置される。レイアウト枠A1〜A9内に付されているタイトルは、テンプレートデータLT中に予め記述されており、各タイトルの右横に値が配置される。同図において各レイアウト枠A1〜A9内に括弧で示されている(例えば「(ORG1)」等)のが、vCardデータ中のプロパティで、そのプロパティの値がそのレイアウト枠に配置されることを意味する。例えば図21におけるプロパティ「N」の値「山田 太郎」が図24におけるレイアウト枠A4内の「名前」の右横に配置される。なお、図22の名刺印刷テンプレートと図24の印刷レイアウトとは対応していないが、図25のテンプレートデータは説明を簡単にするため単純な記述内容のテンプレート例で示している。本例では、図24に示す名刺印刷レイアウトを指定できるXHTMLデータがテンプレートデータの一つとしてEEPROM43に記憶されている。この場合、個人情報には、会社名、部署、役職、会社電話番号、会社FAX番号、社用電子メールなど必要なデータを入力して使用する。   FIG. 24 shows an example of a business card format print layout. This figure shows a template PL1 of a print layout designated by the template data LT. In the figure, layout frames (allocation areas) A1 to A9 surrounded by a square frame are places where the values of each item of personal information are arranged, and the designation of these places is designated by a comment tag in the template data LT. Yes. Then, corresponding values are arranged in the layout frames A1 to A9 designated by the comment tags. The titles given in the layout frames A1 to A9 are described in advance in the template data LT, and values are arranged on the right side of each title. In the same figure, each of the layout frames A1 to A9 is shown in parentheses (for example, “(ORG1)” etc.) is a property in the vCard data, and the value of the property is arranged in the layout frame. means. For example, the value “Taro Yamada” of the property “N” in FIG. 21 is arranged on the right side of “Name” in the layout frame A4 in FIG. Note that the business card print template of FIG. 22 and the print layout of FIG. 24 do not correspond to each other, but the template data of FIG. 25 is shown as a template example of a simple description content for easy explanation. In this example, XHTML data that can specify the business card printing layout shown in FIG. 24 is stored in the EEPROM 43 as one of the template data. In this case, as personal information, necessary data such as a company name, a department, a title, a company telephone number, a company FAX number, and a company e-mail are input and used.

同図の各項目にはvCard形式のプロパティの値がテンプレートのレイアウト枠A1〜A9に挿入され、所定のフォントの種類、フォントサイズ及びフォントのスタイルなどで印刷されるようなXHTMLデータに変換される。例えば、会社名の場合、vCard形式では、プロパティ「ORG」には、値として具体的な会社名が記述され、その会社名がレイアウト枠A1に挿入される。   In each item in the figure, vCard format property values are inserted into the template layout frames A1 to A9, and converted into XHTML data that can be printed with a predetermined font type, font size, font style, and the like. . For example, in the case of a company name, in the vCard format, a specific company name is described as a value in the property “ORG”, and the company name is inserted into the layout frame A1.

図20は印刷レイアウトのテンプレートを示し、同図(a)〜(c)は名刺レイアウトのテンプレート例、同図(d)は電話帳レイアウトのテンプレート例である。なお、同図においては、各テンプレートPL1〜PL4,PL10をvCardファイルのプロパティの値(テキスト)を組み込んだ状態のレイアウト図として示している。テンプレートPL1〜PL4,PL10は、プロパティ毎にその値(テキスト)が組み込まれる割付位置とエリアサイズ(割付領域)を指定するためのタグが記述されたXHTMLデータからなる。図19及び図20(a)〜(c)に示すものを含む複数種の名刺レイアウトテンプレートデータ(XHTMLデータ)がEEPROM43には記憶されている。   20A and 20B show print layout templates. FIGS. 20A to 20C are business card layout template examples, and FIG. 20D is a phone book layout template example. In the figure, the templates PL1 to PL4 and PL10 are shown as a layout diagram in which the property value (text) of the vCard file is incorporated. Templates PL1 to PL4 and PL10 are composed of XHTML data in which tags for designating an allocation position and an area size (allocation area) in which the value (text) is incorporated for each property are described. A plurality of types of business card layout template data (XHTML data) including those shown in FIGS. 19 and 20A to 20C are stored in the EEPROM 43.

ここで、名刺レイアウトの種類を簡単に説明すると、図20(a)は文字サイズがすべて同一の横書きの名刺レイアウトのテンプレートPL2である。同図(b)は名前の文字サイズが他より大きく印刷される横書きの名刺レイアウトのテンプレートPL3、同図(c)は名前の文字サイズが他より大きく印刷される縦書きの名刺レイアウトのテンプレートPL4である。また、同図(d)は、全件の個人情報を印刷するときに使用される電話帳レイアウトのテンプレートPL10である。この電話帳レイアウトテンプレートデータ(XHTMLデータ)もEEPROM43に記憶されている。   Here, the types of business card layouts will be described briefly. FIG. 20A shows a horizontal business card layout template PL2 having the same character size. FIG. 4B shows a horizontal business card layout template PL3 in which the name character size is printed larger than the other, and FIG. 5C shows a vertical business card layout template PL4 in which the name character size is printed larger than the other. It is. FIG. 6D shows a telephone directory layout template PL10 used when printing all personal information. This telephone directory layout template data (XHTML data) is also stored in the EEPROM 43.

本実施形態では、個人情報が単件の場合は名刺レイアウトで印刷され、全件(複数件)の場合は電話帳レイアウトで印刷される。vCardファイルが個人情報を複数件含む「全件」の場合は、CPU41は図25(d)の電話帳レイアウトのテンプレートPL10を一義的に指定する。一方、vCardファイルが個人情報を1件のみ含む「単件」の場合は、ユーザが携帯電話14から名刺レイアウトを選択指定できるようになっている。   In the present embodiment, when the personal information is a single case, it is printed with a business card layout, and when it is all (a plurality of cases), it is printed with a phone book layout. When the vCard file is “all cases” including a plurality of pieces of personal information, the CPU 41 uniquely designates the phone book layout template PL10 of FIG. On the other hand, when the vCard file is “single case” containing only one piece of personal information, the user can select and specify a business card layout from the mobile phone 14.

次に、レイアウト枠にテキストを取り込む方法について説明する。ROM42には、日本語及び英語のフォント等のキャラクタ(テキストや記号等)のパターンを示すキャラクタジェネレータデータ(CGデータ)を備え、キャラクタコードをCGデータに変換するキャラクタジェネレータ98が記憶されている。キャラクタジェネレータ98は、その指定されたアドレスにテキストコードが与えられると、各種テキストのドット構成を示すテキストドットパターンのデータを読み出す。この読み出されたテキストドットパターンデータはRAM44のワークメモリ44bにおいて、レイアウト枠で指定されたアドレス領域に展開される。   Next, a method for importing text into the layout frame will be described. The ROM 42 includes character generator data (CG data) indicating a pattern of characters (text, symbols, etc.) such as Japanese and English fonts, and stores a character generator 98 that converts character codes into CG data. When a character code is given to the designated address, the character generator 98 reads data of a text dot pattern indicating a dot configuration of various texts. The read text dot pattern data is expanded in the address area designated by the layout frame in the work memory 44b of the RAM 44.

また、図2に示す操作パネル8の表示装置9と、複数の操作スイッチからなる操作部10とによって、フォント、テキストの位置情報およびテキストの色彩情報等を指定することもできる。指定しない場合は、予め設定されているデフォルトの値が設定される。   In addition, font, text position information, text color information, and the like can be designated by the display device 9 of the operation panel 8 shown in FIG. 2 and the operation unit 10 including a plurality of operation switches. If not specified, a preset default value is set.

XHTMLデータはテキスト情報とテンプレート情報を含むが、解釈処理部90(図9参照)は、XHTMLデータを解析してテキスト情報だけを抽出するとともにテンプレート情報を解析してレイアウト情報を割り出す。レイアウト情報は、ワークメモリ44bにおいて画像展開されるメモリ空間のアドレスとして割り出される。各レイアウト枠は画像展開されるメモリ空間のアドレスとして特定され、キャラクタジェネレータ98から読み出されたドットパターンデータはレイアウト情報によってアドレスにより指定されたレイアウト枠に流し込まれる。   Although the XHTML data includes text information and template information, the interpretation processing unit 90 (see FIG. 9) analyzes the XHTML data to extract only the text information and analyzes the template information to determine layout information. The layout information is determined as an address of a memory space where an image is developed in the work memory 44b. Each layout frame is specified as an address of a memory space where the image is developed, and the dot pattern data read from the character generator 98 is poured into the layout frame designated by the address by the layout information.

この展開された画像データ(ドットデータ)とテキストデータ(ドットパターンデータ)とを印刷時のドット形成順序に並び替える処理を施す。生成された印刷イメージはワークメモリ44bに記憶される。   The expanded image data (dot data) and text data (dot pattern data) are subjected to processing for rearranging them in the dot formation order at the time of printing. The generated print image is stored in the work memory 44b.

印刷処理部46bは、ワークメモリ44bに展開された印刷イメージを、イメージバンド毎に切り取ってコマンドが付されて印刷データが作成され、この印刷データに基づきプリントエンジン77によって所定の用紙に順次印刷される。   The print processing unit 46b cuts out the print image developed in the work memory 44b for each image band and attaches a command to create print data. The print engine 77 sequentially prints the print image on a predetermined sheet based on the print data. The

携帯電話14とプリンタ1側の操作パネル8との両方でレイアウトは指定できるが、携帯電話14側の指定が優先される。メモ領域にレイアウト指定の記述がないときは、プリンタ1側で指定されているレイアウトを有効とする。   Although the layout can be specified on both the mobile phone 14 and the operation panel 8 on the printer 1, the specification on the mobile phone 14 side has priority. When there is no layout designation description in the memo area, the layout designated on the printer 1 side is validated.

ユーザは携帯電話14のディスプレイ18に個人情報欄を表示させてその中のメモ欄に印刷レイアウト指定情報を入力する。例えばメモ欄に「1」「2」「3」などの数字(番号)を入力する。この印刷レイアウト指定情報として記述された数字は、vCardデータ中のプロパティ「NOTE」の値として記述される。このメモ欄に記述された数字は単件の個人情報を印刷する際の印刷レイアウトの指定番号として扱われる。例えばプリンタ1の取扱説明書には図24及び図25(a)〜(c)の各テンプレートPL1〜PL4等と、各テンプレートPL1〜PL4等の指定番号とが対応付けて記載され、ユーザは取扱説明書にある指定番号をメモ欄に入力することにより名刺レイアウトを指定する。   The user displays a personal information column on the display 18 of the mobile phone 14 and inputs print layout designation information in a memo column therein. For example, numbers (numbers) such as “1”, “2”, and “3” are entered in the memo field. The number described as the print layout designation information is described as the value of the property “NOTE” in the vCard data. The numbers described in the memo field are treated as print layout designation numbers when printing a single piece of personal information. For example, in the instruction manual of the printer 1, the templates PL1 to PL4 in FIG. 24 and FIGS. 25A to 25C and the designated numbers of the templates PL1 to PL4 are described in association with each other. Designate the business card layout by entering the designated number in the manual into the memo field.

例えば図4(b)の個人情報欄のようにメモ欄に「2」が入力されていると、図21のvCardファイル中のプロパティ「NOTE」に「2」が記述されている。携帯電話14からvCardファイルを受信すると、そのプロパティ「NOTE」の値として記述された文字列を読み出してそれを解析することにより指定番号を特定する。この解析処理はノート解析部83が行い、詳しくはCPU41がvCardファイル中の「NOTE」の値を解析することにより行われる。   For example, if “2” is entered in the memo field as in the personal information field in FIG. 4B, “2” is described in the property “NOTE” in the vCard file in FIG. When the vCard file is received from the mobile phone 14, the specified number is specified by reading the character string described as the value of the property “NOTE” and analyzing it. This analysis process is performed by the note analysis unit 83. Specifically, the CPU 41 analyzes the value of “NOTE” in the vCard file.

CPU41は指定番号を特定できると、その指定番号に対応する名刺レイアウトテンプレート(XHTML形式)をEEPROM43から読み出す。そして、CPU41は前述したテキストデータ形式変換処理を実行し、図21に示すようなvCardファイルと、図22に示すようなテンプレートデータLT1とに基づき、図23に示すようなテンプレート書式データを作成する。このテンプレート書式データはXHTMLデータである。   When the CPU 41 can identify the designated number, the business card layout template (XHTML format) corresponding to the designated number is read from the EEPROM 43. Then, the CPU 41 executes the above-described text data format conversion process, and creates template format data as shown in FIG. 23 based on the vCard file as shown in FIG. 21 and the template data LT1 as shown in FIG. . This template format data is XHTML data.

ここで、メモ欄には印刷レイアウトの指定番号ではなく、本来のメモとしての文字列や文章が入力されているのが普通である。CPU41がプロパティ「NOTE」の値を解析するとき、本来のメモとして記述された文字列や文章の中に数字が含まれていた場合、その数字を指定番号と間違えることが起こりうる。CPU41が解析処理で実行するプログラムは、指定番号以外の文字や文字列等が記述されている場合は、その記述データを本来のメモと判断し、たとえその中に指定番号として使える数字が存在していても、その数字を指定番号としては特定しないように設定されている。そして、このような本来のメモとしての使用と判断した場合とメモ欄が空欄の場合は指定番号の指定がないものと判断し、例えばデフォルトで設定された例えば名刺レイアウトのテンプレートPL2を指定する。   Here, it is normal that a character string or a sentence as an original memo is input in the memo column instead of a print layout designation number. When the CPU 41 analyzes the value of the property “NOTE”, if a number is included in a character string or sentence described as an original memo, the number may be mistaken for a designated number. The program executed by the CPU 41 in the analysis process determines that the description data is an original memo when a character or character string other than the designated number is described, and there is a number that can be used as the designated number. However, the number is set not to be specified as the designated number. Then, when it is determined that the original memo is used and when the memo field is blank, it is determined that the designated number is not designated, and for example, a template PL2 of a business card layout set by default is designated.

本実施形態では、印刷レイアウトの指定に指定番号(数字)を採用するが、数字には限定されることなく、例えばアルファベットやカタカナ、記号文字、文字、文字列などで指定することも可能である。但し、なるべく簡単に指定ができるように一情報の指定に1桁数字または1文字とするのがよく、また順序性の性質をもつ数字(番号)やアルファベットが好ましい。   In the present embodiment, a designation number (numeric) is used for designating the print layout. However, the designation is not limited to a numeral, and it is also possible to designate an alphabet, katakana, symbol character, character, character string, or the like. . However, in order to specify as easily as possible, it is preferable to designate one digit number or one character for designation of one information, and a number (number) or alphabet having a property of order is preferable.

図26は、IrDAプロファイル処理部74でのデータの処理を示すフローチャートである。データトランスファ部73で、伝送制御手順によりデータを正しく受信できた場合に、CPU41は図26のフローチャートで示されるプログラムを実行する。このプログラムをCPU41が実行することにより、図6における拡張子識別部81、件数判定部82、ノート解析部83、分割処理部84、テキストデータ形式変換部85及び画像データデコード部87の各機能が実現される。以下、CPU41が実行するこのプログラムについて説明する。なお、CF型通信カード13からプリンタ1へは拡張子とオブジェクトデータが転送されてくるようになっており、拡張子はデータの先頭に送られてくる。   FIG. 26 is a flowchart showing data processing in the IrDA profile processing unit 74. When the data transfer unit 73 can correctly receive the data by the transmission control procedure, the CPU 41 executes the program shown in the flowchart of FIG. When this program is executed by the CPU 41, the functions of the extension identification unit 81, the number determination unit 82, the note analysis unit 83, the division processing unit 84, the text data format conversion unit 85, and the image data decoding unit 87 in FIG. Realized. Hereinafter, this program executed by the CPU 41 will be described. An extension and object data are transferred from the CF type communication card 13 to the printer 1, and the extension is sent to the head of the data.

S200では、受信したデータの拡張子が何であるかを判断する。受信したデータの拡張子が「jpeg」または「JPG」の場合は、JPEG形式の画像データと判断してS230に進む。また、受信したデータの拡張子が「vnt」の場合は、vNote形式で作られた画像データ(以下、vNoteファイルという)であると判断し、S210へ進む。更に、受信したデータの拡張子が「vcf」の場合は、vCard形式で作られたテキストデータ(以下、vCardファイルという)であると判断し、S240へ進む。   In S200, it is determined what the extension of the received data is. If the extension of the received data is “jpeg” or “JPG”, it is determined as JPEG image data and the process proceeds to S230. If the extension of the received data is “vnt”, it is determined that the data is image data created in the vNote format (hereinafter referred to as vNote file), and the process proceeds to S210. Further, when the extension of the received data is “vcf”, it is determined that the data is text data created in the vCard format (hereinafter referred to as a vCard file), and the process proceeds to S240.

S210では、vNoteデータであることをチェック(解析)する。すなわち、vNoteデータの中身を解析してvNoteデータであることを確認する。仮にデータの中身がvNoteデータでない場合は、このデータを破棄して本フローチャートの処理を終了する。   In S210, it is checked (analyzed) that the data is vNote data. That is, the contents of vNote data are analyzed to confirm that it is vNote data. If the content of the data is not vNote data, this data is discarded and the processing of this flowchart is terminated.

S220では、vNoteファイルに添付されたエンコード画像データを、Base64と呼ばれるエンコード/デコード変換器によりJPEG形式の画像データにデコード(解凍)する。   In S220, the encoded image data attached to the vNote file is decoded (decompressed) into JPEG format image data by an encode / decode converter called Base64.

S230では、JPEG形式にされた画像データを、画像データラスタ処理部76へ転送する。
S240では、携帯電話14から送信された個人情報データの件数判定を行う。すなわち、vCardファイルが「単件」か「全件」かを判断する。本例では、vCardファイルデータ中にある識別子「END:VCARD」を計数することによって個人情報の件数を判定する。計数結果CがC=1であれば単件データと判定し、計数結果CがC≧2であれば全件データと判定する。例えば図21に示すようにvCardファイルが単件データの場合、識別子「END:VCARD」は1つだけなので計数結果CがC=1となり、「単件」と判定される。一方、vCardファイルが全件データの場合、「END:VCARD」が複数あってその計数結果CがC≧2を満たすので「全件」と判定される。個人情報を1件のみ含む「単件」と判定した場合はS250に進む。また、個人情報を複数件含む「全件」と判定した場合はS260に進む。
In S230, the image data in the JPEG format is transferred to the image data raster processing unit 76.
In S240, the number of personal information data transmitted from the mobile phone 14 is determined. That is, it is determined whether the vCard file is “single” or “all”. In this example, the number of personal information is determined by counting the identifier “END: VCARD” in the vCard file data. If the counting result C is C = 1, it is determined as single case data, and if the counting result C is C ≧ 2, it is determined as all case data. For example, as shown in FIG. 21, when the vCard file is single data, since there is only one identifier “END: VCARD”, the counting result C is C = 1, and it is determined as “single data”. On the other hand, if the vCard file is all data, since there are a plurality of “END: VCARD” and the counting result C satisfies C ≧ 2, it is determined as “all data”. If it is determined as “single case” including only one piece of personal information, the process proceeds to S250. If it is determined that “all cases” include a plurality of pieces of personal information, the process proceeds to S260.

S250では、Note領域の記述内容を解析して解析結果に応じたテンプレートを指定する。vCardファイルデータ中にあるプロパティ「NOTE」の値(記述内容)を解析し、その値の中からテンプレートの指定情報(本例では番号)を探し出す。例えば図4(b)に示すようにメモに「2」と記述されていれば、図21に示すようにそのvCardファイルデータ中のプロパティ「NOTE」の値には「2」が記述されているので、この番号「2」を解析結果として抽出する。そして、この番号「2」をテンプレート指定の情報としてRAM44に記憶する。   In S250, the description content of the Note area is analyzed and a template corresponding to the analysis result is designated. The value (description content) of the property “NOTE” in the vCard file data is analyzed, and the template designation information (number in this example) is found from the value. For example, if “2” is described in the memo as shown in FIG. 4B, “2” is described in the value of the property “NOTE” in the vCard file data as shown in FIG. Therefore, this number “2” is extracted as an analysis result. The number “2” is stored in the RAM 44 as template designation information.

S260では、「電話帳」のテンプレートを指定する。つまり、「全件」である場合は、常に「電話帳」のテンプレートを指定する。
S270では、vCardファイルの全件データを所定件数ずつの個人情報に分割しながら所定件数分ずつのデータを次処理へ送り出す。
In S260, a “phone book” template is designated. That is, in the case of “all cases”, the “phone book” template is always designated.
In S270, the data for the predetermined number of items is sent to the next process while dividing all the data of the vCard file into the predetermined number of personal information.

280では、vCardデータであることをチェック(解析)する。すなわち、vCardデータの中身を解析してvCardデータであることを確認する。
仮にデータの中身がvCardデータでない場合は、このデータを破棄して本フローチャートの処理を終了する。
In 280, it is checked (analyzed) that the data is vCard data. That is, the contents of vCard data are analyzed to confirm that it is vCard data.
If the content of the data is not vCard data, the data is discarded and the processing of this flowchart is terminated.

S290では、テンプレート記憶部86から指定されたテンプレートを読み出す。すなわち、「単件」の場合はS250で指定したノート領域の記述内容の解析結果から定まるテンプレート(名刺形式のレイアウト)を読み出し、「全件」の場合はS260で指定した「電話帳」のテンプレート(電話帳形式のレイアウト)を読み出す。   In S290, the designated template is read from the template storage unit 86. That is, in the case of “single case”, a template (name card layout) determined from the analysis result of the description contents of the note area designated in S250 is read, and in the case of “all cases”, the template of “phone book” designated in S260. Read (phone book layout).

S300では、vCardファイルの個人情報をテンプレート付きのXHTMLデータに変換する。つまり、テンプレートに当て嵌めるべき項目が指定された場所に個人情報のその項目(プロパティ)の内容(値)を当て嵌めることにより、テンプレート付きのXHTMLデータに変換する。例えば図21に示す単件のvCardファイルの場合、図22に示すようなXHTML形式データLDに変換される。   In S300, the personal information of the vCard file is converted into XHTML data with a template. That is, the content (value) of the item (property) of the personal information is applied to a place where the item to be applied to the template is specified, thereby converting the data into XHTML data with a template. For example, in the case of a single vCard file shown in FIG. 21, it is converted into XHTML format data LD as shown in FIG.

S310では、テンプレート付きのXHTMLデータを、テキストデータラスタ処理部75へ転送する。
なお、IrDAプロファイル処理部74内の拡張子識別部81、件数判定部82、ノート解析部83、分割処理部84は、それぞれS200、S240、S250、S270により実現されている。また、テキストデータ形式変換部85は、S280、S290、S300及びS310により実現されている。
In S310, the template-attached XHTML data is transferred to the text data raster processing unit 75.
Note that the extension identification unit 81, the number determination unit 82, the note analysis unit 83, and the division processing unit 84 in the IrDA profile processing unit 74 are realized by S200, S240, S250, and S270, respectively. The text data format conversion unit 85 is realized by S280, S290, S300, and S310.

こうしてテキストデータラスタ処理部75へ転送されたデータは、その後、各種処理が施されることにより印刷データに生成される。また、画像データラスタ処理部76へ転送されたデータは、その後、各種処理が施されることにより印刷データに生成される。そして、プリントエンジン77は印刷データに基づき印刷機構を駆動制御し、ロール紙P1にはvCardファイルで送信された個人情報が指定の印刷レイアウトで印刷されたり、vNoteファイルで送信された画像が印刷されたりする。例えば単件の個人情報を含むvCardファイルをプリンタ1に送信したときは、携帯電話14のメモ欄に入力した指定番号に対応する名刺レイアウトで個人情報が印刷される。   The data thus transferred to the text data raster processing unit 75 is generated as print data by performing various processes thereafter. Further, the data transferred to the image data raster processing unit 76 is generated as print data by performing various processes thereafter. The print engine 77 drives and controls the printing mechanism based on the print data. The personal information transmitted in the vCard file is printed on the roll paper P1 with the designated print layout, or the image transmitted in the vNote file is printed. Or For example, when a vCard file including a single piece of personal information is transmitted to the printer 1, the personal information is printed with a business card layout corresponding to the designated number entered in the memo field of the mobile phone 14.

そして、個人情報のデータが名刺レイアウトで印刷されたロール紙P1はその排紙の途中で、カッタモータM3の作動により名刺サイズにカットされる。なお、CPU41は、スロット通信部45eとCF型通信カード13との間の通信状態を監視し、通信異常を検出するとCF型通信カード13をリセットする。このため、CF型通信カード13で通信異常が発生してもそのトラブルは自動的に解消される。   The roll paper P1 on which personal information data is printed in the business card layout is cut into a business card size by the operation of the cutter motor M3 during the paper discharge. The CPU 41 monitors the communication state between the slot communication unit 45e and the CF communication card 13, and resets the CF communication card 13 when a communication abnormality is detected. For this reason, even if communication abnormality occurs in the CF type communication card 13, the trouble is automatically solved.

以下、第1の実施形態の効果を記載する。
(1)CF型通信カード13からデータ受信可能であるかどうかを、インターロック処理で判断する。そして、このインターロック処理により受信可能と判断したときにCF型通信カード13へレディコマンドを出力してインターロック状態を解除させ、CF型通信カード13へレディコマンドを出力しないときにインターロック状態を解除させない。よって、プリンタ1がCF型通信カード13を通じてデータ受信不可能なときにCF型通信カード13は携帯電話14とのIrDA接続(物理接続)を拒否する。特にプリンタ1は通信方式の異なる複数の通信部45b〜45eのうち1つのポートからしかデータ受信できないので、プリンタ1が受信不可状態にある機会が多い。しかし、プリンタ1が受信可能であることを表示部13bの緑点灯により知ることができるので、データ送信しても受信されないこの種の問題の発生頻度を効果的に抑えることができる。
Hereinafter, effects of the first embodiment will be described.
(1) Whether or not data can be received from the CF-type communication card 13 is determined by an interlock process. When it is determined that reception is possible by this interlock processing, a ready command is output to the CF type communication card 13 to release the interlock state, and when no ready command is output to the CF type communication card 13, the interlock state is set. Do not cancel. Therefore, when the printer 1 cannot receive data through the CF communication card 13, the CF communication card 13 rejects the IrDA connection (physical connection) with the mobile phone 14. In particular, since the printer 1 can receive data only from one port among a plurality of communication units 45b to 45e having different communication methods, the printer 1 is often in an unreceivable state. However, the fact that the printer 1 is receivable can be known by the green lighting of the display unit 13b, so that the frequency of occurrence of this type of problem that is not received even when data is transmitted can be effectively suppressed.

(2)カード制御部31(CPU159)はデータを本体2側へ転送し終わるとインターロック状態に移行し、表示部13bを消灯させて受信不可の状態をユーザに報知し、一方、レディコマンドを入力すると表示部13bを緑点灯させることで受信可能の状態をユーザに報知する。よって、ユーザは表示部13bが消灯しているときは受信不可と認知でき、表示部13bが緑点灯しているときは受信可能と認知できるので、プリンタ1側でデータ受信準備ができていないことが分からず、ユーザが何度も携帯電話14からデータを送信してもその度にエラーとなる不都合を回避できる。また、画面9aにも通信状態を表示させユーザに知らせるようにしたので、上記のような受信不可のときに送信する不都合を一層回避し易い。   (2) When the card control unit 31 (CPU 159) finishes transferring the data to the main body 2 side, the card control unit 31 shifts to the interlock state, turns off the display unit 13b, notifies the user of the reception disabled state, and sends a ready command. When the input is made, the display unit 13b is lit in green to notify the user of a receivable state. Therefore, the user can recognize that reception is not possible when the display unit 13b is turned off, and can recognize that reception is possible when the display unit 13b is lit in green, so that the printer 1 is not ready to receive data. However, even if the user transmits data from the mobile phone 14 many times, the inconvenience of an error each time can be avoided. Further, since the communication state is also displayed on the screen 9a to notify the user, it is easier to avoid the inconvenience of transmitting when reception is impossible as described above.

(3)IrDAプロファイル処理部74はプリントエンジン77内のメインのソフトウェア機能部分の管理内容(転送経路管理タスクの管理内容)を直接確認することができない。従って、CPU41が管理するストリームパイプ149の予約状況を直接確認できない。このため、IrDAプロファイル処理部74が処理中にあるかどうか、次の処理部である各ラスタ処理部75,76が処理中にあるかどうかを見ることで間接的に受信可能状態であるか否かを判断する。よって、IrDAプロファイル処理部74を含む赤外線通信機能部分をメインプログラム部分を変更することなく後付けしただけの構成ではあるが、受信可能状態を比較的正しく判断できる。   (3) The IrDA profile processing unit 74 cannot directly check the management contents of the main software function part in the print engine 77 (the management contents of the transfer path management task). Therefore, the reservation status of the stream pipe 149 managed by the CPU 41 cannot be directly confirmed. For this reason, whether or not the IrDA profile processing unit 74 is being processed and whether or not each raster processing unit 75 or 76, which is the next processing unit, is being processed are indirectly receivable. Determine whether. Therefore, although the infrared communication function part including the IrDA profile processing unit 74 is simply configured to be retrofitted without changing the main program part, the receivable state can be determined relatively correctly.

(4)また、ラスタ処理部76に複数件分のデータを蓄積できるだけの容量を持つバッファ76aを用意したので、先のデータの印刷処理終了前であっても転送経路管理タスクが受信を許容する条件を満たすときには次のデータを受信できる。このため、ユーザがデータ送信できる機会を増やすことができる。例えば先に送信したvNoteデータのラスタ処理が終わっていれば、その印刷終了前であっても次のvNote又はJPEGデータを受信することができる。   (4) In addition, since the raster processing unit 76 is provided with a buffer 76a having a capacity sufficient to store a plurality of data, the transfer path management task allows reception even before the previous data print processing is completed. When the condition is satisfied, the next data can be received. For this reason, the opportunity that a user can transmit data can be increased. For example, if the raster processing of the previously transmitted vNote data is completed, the next vNote or JPEG data can be received even before the end of printing.

(5)複数の通信部の一から受信したデータの印刷のための処理を優先させることと、複数の通信部の受信効率を高めることのために転送経路管理タスクはストリームパイプ149を所定の条件で確保する。このとき先のデータの途中以降の転送経路を維持したままであれば受信初期段階の転送経路の切り替えを許容する条件としている。そして、転送経路管理タスクに直接確認できないIrDAプロファイル処理部74は受信初期段階の転送経路の切り替えを許容する条件を満たしたときにはインターロック状態を解除して受信可能状態に切り替わるようにインターロック処理内容を設定している。すなわち、選択としては、受信初期段階の転送経路の切り替えを許容する条件を満たしたときに受信エラーになることを承知のうえで受信可能の機会を増やす選択と、受信エラーを招いてまでも受信可能の機会を増やさない選択とがある。このうち前者の選択をとって、IrDAプロファイル処理部74の判断部88は、次のラスタ処理部76の処理が終了して既に処理後のデータをバッファ76aにすべて蓄積し終わっていれば、インターロック状態を解除させるようにした。これは、受信エラーとなる頻度を最小限としかつ受信可能となる頻度を少しでも増やせる設定条件である。このため、受信エラーの頻度を最小限にしつつ受信可能の頻度を高めることができる。ユーザは複数件連続印刷させたいときはデータも複数件連続的に送信したい要求があり、条件次第では受信できる可能性がある場合は、インターロック状態を解除することでユーザのこの種の要求を少しでも満たすことができる。   (5) In order to prioritize processing for printing data received from one of the plurality of communication units and to improve the reception efficiency of the plurality of communication units, the transfer path management task sets the stream pipe 149 to a predetermined condition. Secure with. At this time, if the transfer path after the middle of the previous data is maintained, the transfer path is switched at the initial reception stage. The IrDA profile processing unit 74, which cannot be directly confirmed by the transfer path management task, cancels the interlock state and switches to the receivable state when the condition for permitting switching of the transfer path at the initial reception stage is satisfied. Is set. In other words, the selection is to increase the chances of receiving after knowing that a reception error will occur when the conditions for permitting switching of the transfer path at the initial stage of reception are satisfied, and to receive even if a reception error occurs. There are choices that do not increase the opportunity. Of these, taking the former selection, if the determination unit 88 of the IrDA profile processing unit 74 has completed the processing of the next raster processing unit 76 and has already accumulated all the processed data in the buffer 76a, the determination unit 88 The lock state was released. This is a setting condition for minimizing the frequency of receiving errors and increasing the frequency of receiving errors as much as possible. For this reason, it is possible to increase the frequency of reception while minimizing the frequency of reception errors. When the user wants to print multiple items continuously, there is a request to send multiple items of data continuously, and if there is a possibility that the data can be received depending on the conditions, this type of user request can be made by releasing the interlock state. I can satisfy even a little.

(6)画像データラスタ処理部76のバッファ76aを容量を多くし複数件のvNoteデータを蓄積できるようにした。テキストデータと画像データを比べると画像データの方がデータサイズがかなり大きく、携帯電話14からの送信所要時間及び印刷所要時間がより長くかかる。しかし、画像データを複数件送信して印刷させたい場合、1件ずつ印刷終了を待たなくてもほぼ連続的に複数件の画像データを送信できる。これに対しテキストデータの場合、携帯電話14からの送信所要時間及び印刷所要時間も比較的短く複数件送信して印刷させたい場合も、画像データに比べれば待ち時間が短くユーザも苦にならない。このため、限られたバッファ容量を画像データラスタ処理用にかなりの割合確保した。   (6) The capacity of the buffer 76a of the image data raster processing unit 76 is increased so that a plurality of vNote data can be stored. Comparing text data and image data, the image data has a considerably larger data size, and the time required for transmission from the mobile phone 14 and the time required for printing are longer. However, when a plurality of image data are to be transmitted and printed, a plurality of image data can be transmitted almost continuously without waiting for completion of printing one by one. On the other hand, in the case of text data, the time required for transmission from the mobile phone 14 and the time required for printing are relatively short, and even when it is desired to transmit a plurality of items for printing, the waiting time is shorter than that of image data and the user does not suffer. For this reason, a limited amount of buffer capacity is secured for image data raster processing.

(7)携帯電話14とCF型通信カード13との通信リンクが切断された後、例えばプリンタ1側でエラーが発生したときは、携帯電話14にそのエラーを通知する手だてがなくなる。しかし、プリンタ1と通信できるCF型通信カード13の表示部13bを赤点滅させるので、この種のエラー発生の旨をユーザに知らせることができる。従って、ユーザは携帯電話14とCF型通信カード13との通信遮断後に発生したエラーをも知ることができる。よって、通信リンクの切断後にエラーが発生し、データ送信が成功したと思っているユーザが、データ送信後になかなか印刷が開始されず苛立ちを覚える事態を回避できる。   (7) After the communication link between the mobile phone 14 and the CF type communication card 13 is disconnected, for example, when an error occurs on the printer 1 side, there is no way to notify the mobile phone 14 of the error. However, since the display portion 13b of the CF type communication card 13 that can communicate with the printer 1 blinks in red, it is possible to notify the user that this type of error has occurred. Therefore, the user can also know the error that occurred after the communication between the mobile phone 14 and the CF type communication card 13 is cut off. Therefore, it is possible to avoid a situation in which an error occurs after the communication link is disconnected and the user who thinks that the data transmission is successful is not frustrated after the data transmission and feels frustrated.

(8)画面9aに通信状態を表示させる場合、エラーについてはその内容まで分かるように文字情報で知らせるので、ユーザは何が原因でエラーが発生したかを知ることができる。このため、エラー発生原因が分からず、繰り返し送信エラーを発生させる事態を回避できる。   (8) When the communication state is displayed on the screen 9a, the error is informed by text information so that the contents can be understood, so that the user can know what caused the error. For this reason, it is possible to avoid a situation in which the cause of the error is not known and a transmission error is repeatedly generated.

(9)CF型通信カード13は携帯電話14との通信が完了すると表示部13bを橙点灯させるが、一旦橙点灯になってからそれ以後、赤点滅になった場合はプリンタ1側で起きたエラーであると分かる。よって、仮にエラー内容まで表示しない構成としても、表示部13bの点灯色の変化の仕方からエラー原因をある程度特定できる。例えばユーザから修理を依頼されたメンテナンス時の原因特定に役立つ。   (9) When the communication with the mobile phone 14 is completed, the CF-type communication card 13 turns on the display unit 13b in orange, but once it turns on in orange and then flashes red, it occurred on the printer 1 side. It turns out to be an error. Therefore, even if the error content is not displayed, the cause of the error can be specified to some extent from the way the lighting color of the display unit 13b is changed. For example, it is useful for identifying the cause at the time of maintenance requested by the user.

(10)本実施形態では、赤外線通信方式の導入に当たり、他の通信方式のラスタ処理部75,76を利用(共用)できるように、データ形式を変換するIrDAプロファイル処理部74を設けている。すなわち、vNoteファイル添付形式の画像データ(エンコード画像データ)はBase64デコードによってJPEG画像データにデコードし、vCardファイル形式の個人情報データ(テキストデータ)はテンプレート組込み記述形式のXHTMLデータに変換した。よって、その形式変換後は他の通信方式と共用のデータ処理経路を通ることで印刷データに変換することができる。従って、赤外線通信方式をプリンタ1に導入するに当たり、追加すべき回路及びソフトウェアをできるだけ簡素に済ませることができる。   (10) In this embodiment, when the infrared communication system is introduced, the IrDA profile processing unit 74 for converting the data format is provided so that the raster processing units 75 and 76 of other communication systems can be used (shared). That is, the image data (encoded image data) in the vNote file attachment format was decoded into JPEG image data by Base64 decoding, and the personal information data (text data) in the vCard file format was converted to XHTML data in the template embedded description format. Therefore, after the format conversion, it can be converted into print data through a data processing path shared with other communication methods. Therefore, when introducing the infrared communication system into the printer 1, the circuit and software to be added can be simplified as much as possible.

(11)IrDA通信モジュールをカードに内蔵したCF型通信カード13とし、メモリカード用のカードスロット12にセットするだけで赤外線通信機能をプリンタ1に実装できるようにしたので、プリンタ1の筐体を変更することなくそのまま使用することができる。従って、プリンタ1の筐体を形状変更する必要がないので、筐体の設計変更や製造金型変更が不要である。このことは赤外線通信方式導入によるプリンタ1の製造コスト増大を抑制できる。   (11) Since the infrared communication function can be mounted on the printer 1 simply by setting the IrDA communication module to the CF type communication card 13 with the card built in the card slot 12 for the memory card, the housing of the printer 1 It can be used as it is without being changed. Therefore, since it is not necessary to change the shape of the housing of the printer 1, it is not necessary to change the design of the housing or change the manufacturing mold. This can suppress an increase in manufacturing cost of the printer 1 due to the introduction of the infrared communication method.

(12)vCard形式(個人情報データ形式)の一つのコマンドを件数判別子CS(区分識別子DS)として検索(検出)する手段を設けたことにより、携帯電話14から送信された個人情報データが単件データであるか、全件データであるのかを自動的に認識できる。   (12) By providing means for searching (detecting) one command in the vCard format (personal information data format) as the number discriminator CS (classification identifier DS), the personal information data transmitted from the mobile phone 14 is simply Whether it is case data or all case data can be automatically recognized.

(13)携帯電話14の個人情報データはレイアウト定義できないvCard形式であり、所定のレイアウトに割り付けてデータを直接印刷することはできない。しかし、レイアウト定義できないvCard形式ファイルデータを、レイアウト定義できるXHTML形式のデータに変換する手段を設けたことにより所定のレイアウトに割り付けてしかも必要なデータのみを印刷させることができる。   (13) The personal information data of the mobile phone 14 is in the vCard format where the layout cannot be defined, and the data cannot be directly printed by being assigned to a predetermined layout. However, by providing means for converting vCard format file data that cannot be layout-defined into XHTML format data that can be layout-defined, it is possible to assign only a necessary layout and print only necessary data.

(14)個人情報データが単件か全件かを区別できることにより、単件の場合は名刺テンプレート形式のデータに変換でき、全件の場合には電話帳テンプレート形式のデータに変換できる。すなわち、個人情報データが単件、全件を区別するだけで、自動的に適切な印刷レイアウトを決定することができる。そして、個人情報データの単件か全件(複数件)かに応じた適切なレイアウトをそのデータに割り付けて印刷させることができる。   (14) By distinguishing whether the personal information data is single or all, it can be converted into data in the business card template format in the case of a single case, and can be converted into data in the phone book template format in the case of all cases. That is, it is possible to automatically determine an appropriate print layout only by distinguishing between single and all personal information data. Then, an appropriate layout according to whether the personal information data is single or all (multiple) can be assigned to the data and printed.

(15)区分識別子DSを検索する手段を設けたことにより、全件データを受信する際に受信された個人情報データ(件別データ)の件数を計数し、所定件数(本例では1件)受信し終わる度にそこまで受信した所定件数(1件)分のデータを分割して次処理へ送出できる。よって、次の処理部へデータを送出するまでの間、その受信したデータを一時蓄積しておくバッファの容量を少なく済ませることができる。また、次の処理部における処理開始時期を早めることができ、ひいては印刷開始時期を早めプリンタ1のスループット向上に寄与する。   (15) By providing means for searching for the category identifier DS, the number of personal information data (data by case) received when receiving all case data is counted, and a predetermined number (one in this example) Every time reception is completed, the data for a predetermined number (one) received can be divided and sent to the next processing. Therefore, the capacity of the buffer for temporarily storing the received data can be reduced until the data is sent to the next processing unit. In addition, the processing start time in the next processing unit can be advanced, and as a result, the printing start time is advanced and contributes to the improvement of the throughput of the printer 1.

(16)携帯電話14から受信したデータをプリンタ1が印刷可能なデータに適宜変換するので、携帯電話14から直接プリンタ1にデータを送信して印刷することができる。よって、パーソナルコンピュータ(パソコン)にデータを送り、パソコンのデータをメモリカード等の記憶媒体に記憶させ、プリンタ1に読み込んで印刷するよりも容易に素早く印刷することができる。   (16) Since the data received from the mobile phone 14 is appropriately converted into data that can be printed by the printer 1, the data can be transmitted directly from the mobile phone 14 to the printer 1 for printing. Therefore, it is possible to print data more easily and quickly than sending data to a personal computer (personal computer), storing the data of the personal computer in a storage medium such as a memory card, reading the data into the printer 1, and printing.

実施の形態は、上記に限定されず以下のように変更できる。
(変形例1)前記実施形態では、ラスタ処理部76に複数件分のデータを蓄積できるだけの容量を持つバッファ76aを用意したが、ラスタ処理部75,76の両方のバッファ75a,76aに複数件分のデータをそれぞれ蓄積できる構成としてもよい。この場合、vCardデータをプリンタ1が受信したときでもラスタ処理を終了すればレディコマンドを出力する。その後、例えば印刷実行中に対応データを受信した場合は、印刷中のデータがvCardの場合はvCardデータのみ受信を許可し、印刷中のデータがvNote又はJPEGの場合はvNote又はJPEGデータのみ受信を許可する。
The embodiment is not limited to the above and can be modified as follows.
(Modification 1) In the above embodiment, the buffer 76a having a capacity sufficient to store a plurality of data in the raster processing unit 76 is prepared. However, a plurality of data is stored in both the buffers 75a and 76a of the raster processing units 75 and 76. It is good also as a structure which can accumulate | store each minute data. In this case, even when the vCard data is received by the printer 1, a ready command is output if the raster processing is completed. After that, for example, when corresponding data is received during printing, reception of only vCard data is permitted when the data being printed is vCard, and reception of only vNote or JPEG data is permitted when the data being printed is vNote or JPEG. to approve.

(変形例2)前記実施形態では、赤外線通信機能部分をメインプログラム部分を変更せずアドインさせた構成をとるが、メインプログラム部分を変更して赤外線通信機能部分を追加する構成も採用できる。この場合、IrDAプロファイル処理部74がメインプログラム部分(転送経路管理タスク等)と直接アクセスできるようにし、現在確保されているストリームパイプ149を確認して受信可能かどうかを判断する構成を採用する。この場合、受信エラーの頻度は大幅に抑制される。   (Modification 2) In the above embodiment, the infrared communication function part is added in without changing the main program part. However, a structure in which the main program part is changed and the infrared communication function part is added can also be adopted. In this case, a configuration is adopted in which the IrDA profile processing unit 74 is allowed to directly access the main program part (transfer route management task or the like), and the stream pipe 149 currently secured is checked to determine whether or not reception is possible. In this case, the frequency of reception errors is greatly suppressed.

(変形例3)前記実施形態では、ラスタ処理部76の処理終了後のデータがバッファ76aに蓄積された状態にあれば、受信可能と判断してインターロック状態を解除させるレディコマンドを出力する構成を採用した。これに対し、IrDAプロファイル処理部74が処理を終了していればインターロック状態を解除する構成も採用できる。この場合、受信エラーとなる機会は多少増えるものの受信可能となる機会は前記実施形態と同様に増やすことができるうえ、ラスタ処理部75,76への処理状況の確認の処理を省いた簡素な処理内容とすることもできる。   (Modification 3) In the above-described embodiment, if the data after the end of the processing of the raster processing unit 76 is in the state of being stored in the buffer 76a, the ready command for determining that the data can be received and releasing the interlock state is output. It was adopted. On the other hand, if the IrDA profile processing unit 74 has finished processing, a configuration in which the interlock state is released can also be employed. In this case, although the chances of receiving errors increase somewhat, the chances of receiving can be increased in the same manner as in the above-described embodiment, and simple processing without the processing status confirmation processing to the raster processing units 75 and 76 is omitted. It can also be content.

(変形例4)前記実施形態では、表示による報知としているが、表示と共に音による報知を行ってもよい。例えば受信不可状態から受信可能状態に移行したときに音を発するようにする。受信可能状態になったときに音を発すれば先のデータの処理待ちが終わってデータを送信してよいことが直ぐ分かる。この場合、例えば「データ送信できます」などの合成音声を発するようにしてもよい。   (Modification 4) In the said embodiment, although it is set as alerting | reporting by a display, you may alert | report by a sound with a display. For example, a sound is emitted when the state is changed from the reception disabled state to the reception enabled state. If a sound is emitted when the reception becomes possible, it is immediately understood that the processing of the previous data is finished and the data may be transmitted. In this case, for example, a synthesized voice such as “data can be transmitted” may be emitted.

(変形例5)受信データを複数件蓄積可能な容量の受信バッファを用意し、データを複数件までは蓄積できる構成を採用することもできる。この場合、IrDAプロファイル処理部74のインターロック解除処理は、受信バッファに少なくとも1件相当分の空き容量(1件の平均データサイズ(テキストデータと画像データでそれぞれ個々に値を設定))があれば受信可能と判断してレディコマンドを出力する。プリンタ1がデータを受信したときはヘッダ中のデータサイズを調べ受信バッファに蓄積可能か否かを判断し、蓄積可能な場合は受信し、蓄積不可能な場合は受信エラーとする。   (Modification 5) It is also possible to prepare a reception buffer having a capacity capable of storing a plurality of pieces of received data and adopt a configuration capable of storing a plurality of pieces of data. In this case, the interlock release processing of the IrDA profile processing unit 74 requires that the reception buffer has a free space equivalent to at least one case (average data size of one case (values are individually set for text data and image data)). If it is received, the ready command is output. When the printer 1 receives the data, the data size in the header is checked to determine whether or not the data can be stored in the reception buffer. If the data can be stored, the data is received.

(変形例6)前記実施形態では、インターロック状態への移行はカード制御部31が行い、インターロック状態の解除はプリンタ1からのレディコマンドに基づき行う構成であった。これに対し、インターロック状態への移行及び解除共にプリンタ1からの信号に基づき行う構成も採用できる。   (Modification 6) In the embodiment described above, the card control unit 31 performs the transition to the interlock state, and the interlock state is released based on the ready command from the printer 1. On the other hand, it is possible to adopt a configuration in which both the shift to the interlock state and the release are performed based on a signal from the printer 1.

(変形例7)各通信ポートのひとつでデータが受信され、出力処理が進行している間に、この出力処理よりも先に出力したいデータを受信できるようにし、大量の受信データの印刷を終了するまで待たなくても、割込み処理によって先に印刷することができるようにしてもよい。このとき、出力処理が中断されたデータは、メモリに記憶されるようになっており、廃棄されることなくなく割込み処理された印刷が終了次第、メモリからデータを読み出して残りの出力処理を継続して印刷する構成とする。例えばヘッダ中に優先コード等を組み込んで、優先して出力処理すべきデータ(優先データ)である旨をプリンタ1に知らせられる方法を採用する。インターロック処理により通信ポートからのデータ受信を禁止している間に、優先データの受信要求を受け付けて新たに受信を許可されたことをCPU41(判断手段)が判断した場合は、出力処理での既に受信しているデータの処理を中断して、新たに受信を許可されたデータの出力処理を割込み処理で優先的に実行する。もちろん、ヘッダ中のコードを用いた方法に限定されず、データと別々に送信される信号またはコマンド、ヘッダ中のコマンド等により優先的に出力処理すべきデータである旨をプリンタ(CPU41)に知らせる方法も採用できる。図15、図16および図17での対応拡張子のセットアップに対するインターロック状態を除く、他の通常のインターロック状態では、新たに受信を許可されたことを信号またはコマンド等によってCPU41(判断手段)が判断した場合は、CPU41がインターロック状態を解除して、その優先して出力処理させたい新たなデータを受信することができる。この構成によれば、先行データの出力処理に割り込んで次データの出力処理を割込み処理で優先的に行うので、ユーザの使い勝手が向上する。   (Modification 7) While data is received at one of the communication ports and the output process is in progress, the data to be output can be received prior to the output process, and printing of a large amount of received data is completed. Even if it does not wait until it is done, it may be possible to print first by interruption processing. At this time, the data whose output processing has been interrupted is stored in the memory, and as soon as the interrupted printing is completed without being discarded, the data is read from the memory and the remaining output processing is continued. And printing. For example, a method is adopted in which a priority code or the like is incorporated in the header so that the printer 1 is informed that the data should be preferentially output processed (priority data). When the CPU 41 (determination means) determines that a reception request for priority data is accepted and reception is newly permitted while the reception of data from the communication port is prohibited by the interlock process, Processing of data that has already been received is interrupted, and output processing of data that is newly permitted to receive is preferentially executed by interrupt processing. Of course, the method is not limited to the method using the code in the header, and informs the printer (CPU 41) that the data is to be preferentially output by a signal or command transmitted separately from the data, a command in the header, or the like. A method can also be adopted. CPU 41 (determination means) by a signal or a command or the like that the reception is newly permitted in other normal interlock states except the interlock state for the setup of the corresponding extension in FIG. 15, FIG. 16 and FIG. Is determined, the CPU 41 can release the interlock state and receive new data to be preferentially output processed. According to this configuration, since the output process of the next data is preferentially performed by the interrupt process by interrupting the output process of the preceding data, the user convenience is improved.

(変形例8)前記実施形態では、無線通信器としてのCF型通信カード13を介してデータを受信する構成であったが、IrDA通信モジュールを本体に組付けたプリンタにおいてインターロック機能を付加する構成で実施することもできる。   (Modification 8) In the embodiment, the data is received via the CF type communication card 13 as a wireless communication device. However, an interlock function is added to a printer in which the IrDA communication module is assembled to the main body. It can also be implemented in a configuration.

(変形例9)前記実施形態では出力装置としてプリンタに適用したが、出力装置は表示装置でもよい。例えば携帯電話から送信したデータの内容を画面に表示させるカラー液晶モニタなどの表示装置や、データの内容をスクリーンに投写するプロジェクタなどの表示装置に適用することもできる。   (Modification 9) In the embodiment, the output device is applied to a printer. However, the output device may be a display device. For example, the present invention can be applied to a display device such as a color liquid crystal monitor that displays the content of data transmitted from a mobile phone on a screen, or a display device such as a projector that projects the content of data on a screen.

前記実施形態及び変形例から把握される技術的思想を以下に記載する。
(1)請求項2に記載において、前記インターロック手段は、前記第1処理部がデータ処理中でないと判断された場合に前記受信部からの受信を許可し、一方、前記第1処理部がデータ処理中であると判断した場合に該受信部からの受信を禁止させ、その後、前記第1処理部から次の第2処理部へデータを送り終えて前記第1処理部がデータ処理中でないと判断されると前記受信部からの受信を許可することを特徴とする。
The technical idea grasped from the embodiment and the modifications will be described below.
(1) In Claim 2, the interlock means permits reception from the receiving unit when it is determined that the first processing unit is not processing data, while the first processing unit When it is determined that data processing is in progress, reception from the receiving unit is prohibited, and after that, data has been sent from the first processing unit to the next second processing unit, and the first processing unit is not processing data. If it is determined, reception from the receiving unit is permitted.

(2)請求項2〜6のいずれか一項において、前記受信したデータのデータ種に応じて前記第1処理部及び前記第2処理部は複数ずつ備えられており、受信したデータのデータ種を識別してその識別したデータ種に応じた処理部にデータを振り分ける振分手段を備えている。   (2) In any one of claims 2 to 6, a plurality of the first processing units and a plurality of the second processing units are provided according to the data type of the received data, and the data type of the received data And assigning means for distributing the data to the processing unit corresponding to the identified data type.

(3)前記技術的思想(2)において、前記第1処理部及び前記第2処理部はテキストデータを処理するテキスト処理系と画像データを処理する画像データ処理系の2つずつを少なくとも含む。   (3) In the technical idea (2), the first processing unit and the second processing unit include at least two each of a text processing system that processes text data and an image data processing system that processes image data.

(4)前記技術的思想(3)において、前記第1処理部と前記第2処理部の少なくとも一方は、処理前と処理後の少なくとも一方のデータを蓄積するバッファを備えている。
(5)前記技術的思想(4)において、前記バッファは複数件のデータを蓄積可能な容量を有している。
(4) In the technical idea (3), at least one of the first processing unit and the second processing unit includes a buffer for storing at least one data before processing and after processing.
(5) In the technical idea (4), the buffer has a capacity capable of storing a plurality of data.

(6)前記技術的思想(4)又は(5)において、テキスト処理系と画像処理系のうち少なくとも画像処理系のバッファが複数件のデータを蓄積可能な容量を有している。
(7)携帯端末等からのデータを受信する通信ポートと、該通信ポートを介して受信したデータに基づき出力処理を行う出力手段とを備えた出力装置において、優先して出力処理を行うべきデータであるか否かを判定する判定手段(41)と、前記判定手段により優先して出力処理を行うべきデータであると判定されると、当該データを前記通信ポートから受信するとともに、前記通信ポートから既に受信された先のデータの前記出力処理の終了前であれば、当該出力処理での既に受信しているデータの処理を中断して、前記新たに受信したデータの出力処理を施す割込み手段(41)とを備えたことを特徴とする出力装置。この構成によれば、現在出力処理をしている先行データの処理を中断して、後(次)のデータを先に出力させることができる。
(6) In the technical idea (4) or (5), at least the buffer of the image processing system of the text processing system and the image processing system has a capacity capable of storing a plurality of data.
(7) Data to be preferentially subjected to output processing in an output device including a communication port for receiving data from a portable terminal or the like and output means for performing output processing based on data received via the communication port A determination means (41) for determining whether or not the data is to be preferentially output processing by the determination means, the data is received from the communication port, and the communication port Interrupt means for interrupting the processing of the data already received in the output processing and performing the output processing of the newly received data, if the output processing of the previous data already received from is not completed (41). An output device comprising: According to this configuration, it is possible to interrupt the processing of the preceding data currently being output and output the subsequent (next) data first.

一実施形態におけるプリンタの斜視図。1 is a perspective view of a printer according to an embodiment. 操作パネルの主要部を示す平面図。The top view which shows the principal part of an operation panel. CF型通信カード(赤外線通信カード)の斜視図。The perspective view of CF type | mold communication card (infrared communication card). (a)携帯電話の平面図、(b)携帯電話に表示された個人情報の一例を示す画面図。(A) The top view of a mobile phone, (b) The screen figure which shows an example of the personal information displayed on the mobile phone. 携帯電話、赤外線通信カード及びプリンタの電気的構成を示す電気ブロック図。FIG. 2 is an electrical block diagram showing an electrical configuration of a mobile phone, an infrared communication card and a printer. 携帯電話、赤外線通信カード及びプリンタの機能的構成を示すブロック図。The block diagram which shows the functional structure of a mobile telephone, an infrared communication card, and a printer. プリンタの共有化構造を示すブロック図。FIG. 2 is a block diagram showing a printer sharing structure. OBEX転送におけるデータの構造図。FIG. 6 is a data structure diagram in OBEX transfer. 携帯電話からプリンタへのデータ送信のシーケンス図。The sequence diagram of the data transmission from a mobile telephone to a printer. 表示部の表示制御装置を示すブロック図。The block diagram which shows the display control apparatus of a display part. 通信ステータスと点灯態様との関係を示す対応図。The correspondence figure which shows the relationship between a communication status and a lighting mode. 通信ステータスの遷移図。Transition diagram of communication status. インターロック処理を説明するブロック図。The block diagram explaining an interlock process. カード認識時の初期処理を示すフローチャート。The flowchart which shows the initial process at the time of card | curd recognition. インターロック解除処理を説明するシーケンス図。The sequence diagram explaining an interlock release process. インターロック解除処理を説明するシーケンス図。The sequence diagram explaining an interlock release process. インターロック解除処理を説明するシーケンス図。The sequence diagram explaining an interlock release process. インターロック解除処理を説明するシーケンス図。The sequence diagram explaining an interlock release process. インターロック解除処理を説明するシーケンス図。The sequence diagram explaining an interlock release process. (a)〜(c)はデータ受信状態を報知する画面図。(A)-(c) is a screen figure which alert | reports a data reception state. 単件のvCardファイルのデータ図。Data diagram of a single vCard file. 名刺レイアウトテンプレートのデータ図。Business card layout template data diagram. テンプレート書式データのデータ図。Data diagram of template format data. 名刺レイアウトテンプレートのレイアウト図。Layout diagram of business card layout template. (a)〜(c)は名刺レイアウトテンプレートのレイアウト図、(d)は電話帳レイアウトテンプレートのレイアウト図。(A)-(c) is a layout figure of a business card layout template, (d) is a layout figure of a telephone directory layout template. IrDAプロファイル部の処理を示すフローチャート。The flowchart which shows the process of an IrDA profile part.

符号の説明Explanation of symbols

1…出力装置及び印刷装置としてのプリンタ、2…出力装置本体としての本体、12…スロットとしてのカードスロット、13…無線通信器としてのCFカード型赤外線通信カード(赤外線通信カード)、13a…赤外線受発光部(CF型通信カード側の通信ポート)、13b…報知手段を構成する表示部、14…携帯端末としての携帯電話、18…携帯電話のディスプレイ、20…赤外線受発光部(携帯電話側の通信ポート)、31…インターロック手段を構成するとともに及び制御部及び報知制御部としてのカード制御部、41…予約手段及び割込み手段としてのCPU、45b〜45c…通信部、45e…通知手段、通信部及び検出手段としてのスロット通信部、46…出力手段を構成するASIC、64…インターロック手段及び判断手段を構成するオブジェクト送受信部、72…受信部を構成するIrDA・UARTドライバ、73…受信部を構成するデータトランスファ部、71…検出手段及びリセット手段を構成するカードドライバ、74…判断手段、インターロック手段及び第1処理部としてのIrDAプロファイル処理部、76…第2処理部としての画像データラスタ処理部、85…第1処理部を構成するテキストデータ形式変換部、87…第1処理部を構成する画像データデコード部、88…判断手段を構成する判断部、149…インターロック手段及び判断手段を構成するストリームパイプ、150…インターロック手段を構成する状態管理部、BC…携帯端末、DA…データ。   DESCRIPTION OF SYMBOLS 1 ... Printer as output device and printing device, 2 ... Main body as output device main body, 12 ... Card slot as slot, 13 ... CF card type infrared communication card (infrared communication card) as wireless communication device, 13a ... Infrared ray Light receiving / emitting section (communication port on the CF type communication card side), 13b... Display section constituting notification means, 14... Mobile phone as a mobile terminal, 18 ... Mobile phone display, 20. Communication port), 31... Interlock means and a card control section as a control section and notification control section, 41... CPU as reservation means and interrupt means, 45 b to 45 c... Communication section, 45 e. Slot communication section as communication section and detection means, 46... ASIC constituting output means, 64... Interlock means and determination means Object transmission / reception unit constituting means, 72... IrDA / UART driver constituting reception unit, 73... Data transfer unit constituting reception unit, 71... Card driver constituting detection means and reset means, 74. An IrDA profile processing unit as a lock unit and a first processing unit, 76... An image data raster processing unit as a second processing unit, 85... A text data format conversion unit constituting the first processing unit, and 87. Image data decoding unit constituting, 88... Judging unit constituting the judging unit, 149... Interlocking unit and stream pipe constituting the judging unit, 150... State management unit constituting the interlocking unit, BC. data.

Claims (13)

携帯端末からのデータを受信する受信部と、該受信部を介して受信したデータに基づき出力処理を行う出力手段とを備えた出力装置において、
前記受信部からデータを受信して前記出力処理を行うことが可能か否かを判断する判断手段と、
前記判断手段により前記出力処理を行うことが不能と判断された場合は前記受信部からのデータ受信を禁止し、一方、前記出力処理を行うことが可能と判断された場合は前記受信部からのデータ受信を許可するインターロック手段と
を備えたことを特徴とする出力装置。
In an output device including a receiving unit that receives data from a portable terminal, and an output unit that performs output processing based on the data received via the receiving unit,
Determining means for determining whether it is possible to receive the data from the receiving unit and perform the output processing;
When it is determined by the determining means that the output process cannot be performed, data reception from the receiving unit is prohibited. On the other hand, when it is determined that the output process can be performed, the receiving unit receives data from the receiving unit. An output device comprising an interlock means for permitting data reception.
請求項1に記載の出力装置において、
前記受信部から受信したデータに前記出力処理に含まれる複数の処理を順次施す複数の処理部を備え、
前記判断手段は、前記処理部がデータ処理中であるか否かを判断し、
前記インターロック手段は、前記複数の処理部のうち受信部から受信したデータに最初の処理を施す第1処理部がデータ処理中である場合は前記受信部からのデータ受信を禁止し、一方、前記第1処理部が次の第2処理部へデータを受け渡し済みである場合は前記受信部からのデータ受信を許可することを特徴とする出力装置。
The output device according to claim 1,
A plurality of processing units for sequentially performing a plurality of processes included in the output processing on the data received from the receiving unit;
The determination means determines whether the processing unit is processing data,
The interlock means prohibits data reception from the receiving unit when a first processing unit that performs initial processing on data received from the receiving unit among the plurality of processing units is processing data, The output device, wherein when the first processing unit has passed the data to the next second processing unit, data reception from the receiving unit is permitted.
請求項2に記載の出力装置において、
前記判断手段は、第1処理部から第2処理部へデータを送るデータ経路が使用中であるか否かを判断するものであって、前記インターロック手段は、前記データ経路が使用中と判断されたときは前記受信部からのデータの受信を禁止し、一方、前記データ経路が使用中でないと判断されたときは前記受信部からの受信を許可することを特徴とする出力装置。
The output device according to claim 2,
The determining means determines whether a data path for sending data from the first processing section to the second processing section is in use, and the interlock means determines that the data path is in use. The output apparatus prohibits reception of data from the receiving unit when it is performed, and permits reception from the receiving unit when it is determined that the data path is not in use.
請求項2又は3に記載の出力装置において、
前記判断手段は、前記第1処理部から第2処理部へデータを送り終えたと判断したときは、さらに第2処理部における処理が終了したか否かを判断し、
前記インターロック手段は、前記第2処理部がデータ処理中である場合は、前記受信部からの受信を禁止し、前記第2処理部が処理を終了している場合は、前記受信部からの受信を許可することを特徴とする出力装置。
The output device according to claim 2 or 3,
When the determination unit determines that the data has been sent from the first processing unit to the second processing unit, the determination unit further determines whether the processing in the second processing unit is completed,
The interlock means prohibits reception from the receiving unit when the second processing unit is processing data, and from the receiving unit when the second processing unit ends processing. An output device that permits reception.
請求項1〜4のいずれか一項に記載の出力装置において、
前記受信部がデータを受信したことを通知する通知手段と、
前記通知手段からの通知に基づいて前記受信部から受信されたデータが前記出力処理の終了までに複数の処理部を転送する転送経路を予め確保する予約手段を備えることを特徴とする出力装置。
In the output device according to any one of claims 1 to 4,
Notification means for notifying that the receiving unit has received data;
An output device comprising: reservation means for preliminarily securing a transfer path for transferring data received from the receiving section based on a notification from the notifying means to a plurality of processing sections before the end of the output processing.
請求項1〜5のいずれか一項に記載の出力装置において、
前記受信部は、出力装置本体に着脱可能に取着される無線通信器を介してデータ受信可能に構成されており、
前記無線通信器は受信したデータを前記出力装置本体の前記受信部に転送するとインターロック状態に移行する制御部を有し、
前記インターロック手段は、前記受信部からのデータ受信を許可する場合はインターロックを解除する解除信号を前記無線通信器に送信し、前記受信部からのデータ受信を禁止するときは前記無線通信器に前記解除信号を送信しないことを特徴とする出力装置。
In the output device according to any one of claims 1 to 5,
The receiving unit is configured to be able to receive data via a wireless communication device that is detachably attached to the output device body,
The wireless communication device has a control unit that shifts to an interlock state when the received data is transferred to the receiving unit of the output device main body,
The interlock means transmits a release signal for releasing the interlock to the wireless communication device when permitting data reception from the receiving unit, and the wireless communication device when prohibiting data reception from the receiving unit. The output device is characterized in that the release signal is not transmitted to the output device.
請求項1〜6のいずれか一項に記載の出力装置において、
前記受信部からの受信が許可されるか禁止されるかを報知する報知手段と、
前記インターロック手段からの入力信号に基づき報知手段を制御する報知制御部とを備え、
前記インターロック手段は、前記受信部からの受信を許可するときに前記報知制御部に受信許可信号を出力し、前記受信部からの受信を禁止するときには前記報知制御部に受信禁止信号を出力し、
前記報知制御部は、前記受信許可信号に基づいて前記報知手段に受信可能な旨を報知させ、前記受信禁止信号に基づいて前記報知手段に受信不能な旨を報知させることを特徴とする出力装置。
In the output device according to any one of claims 1 to 6,
Informing means for informing whether reception from the receiving unit is permitted or prohibited,
A notification control unit that controls the notification unit based on an input signal from the interlock unit;
The interlock means outputs a reception permission signal to the notification control unit when permitting reception from the reception unit, and outputs a reception prohibition signal to the notification control unit when prohibiting reception from the reception unit. ,
The output control unit causes the notification means to notify that reception is possible based on the reception permission signal, and causes the notification means to notify that reception is not possible based on the reception prohibition signal. .
請求項6に記載の出力装置において、
前記受信部からの受信が許可されるか禁止されるかを報知する報知手段と、
前記制御部は、インターロック状態に移行すると前記報知手段に受信不能の旨を報知させ、前記インターロック手段から前記受信部を介して解除信号を受信すると前記報知手段に受信可能の旨を報知させることを特徴とする出力装置。
The output device according to claim 6.
Informing means for informing whether reception from the receiving unit is permitted or prohibited,
When the control unit shifts to the interlock state, the notification unit notifies the notification unit that reception is impossible, and when a release signal is received from the interlock unit via the reception unit, the notification unit notifies the notification unit that reception is possible. An output device characterized by that.
請求項6又は8に記載の出力装置において、
前記制御部は携帯端末との間で第1転送処理を行うとともに前記受信部との間で第2転送処理を行うものであって、
前記無線通信器内の前記制御部の通信異常を前記受信部を介して検出する検出手段と、
前記検出手段により通信異常が検出されると前記無線通信器内の制御部をリセットするリセット手段とを備えたことを特徴とする出力装置。
The output device according to claim 6 or 8,
The control unit performs a first transfer process with the portable terminal and performs a second transfer process with the receiving unit,
Detecting means for detecting communication abnormality of the control unit in the wireless communication device via the receiving unit;
An output device comprising: a reset unit that resets a control unit in the wireless communication device when a communication abnormality is detected by the detection unit.
携帯端末等からのデータを受信する通信ポートと、該通信ポートを介して受信したデータに基づき出力処理を行う出力手段とを備えた出力装置において、
前記通信ポートからデータを受信して前記出力処理を行うことが可能か否かを判断する判断手段と、
前記判断手段により前記出力処理を行うことが不能と判断された場合は前記通信ポートからのデータ受信を禁止し、一方、前記出力処理を行うことが可能と判断された場合は前記通信ポートからのデータ受信を許可するインターロック手段と、
前記インターロック手段により前記通信ポートからのデータ受信を禁止している間に、新たに受信を許可されたことを前記判断手段が判断した場合は、前記出力処理での既に受信しているデータの処理を中断して、前記新たに受信を許可されたデータの出力処理を施す割込み手段と
を備えたことを特徴とする出力装置。
In an output device comprising a communication port for receiving data from a portable terminal or the like, and an output means for performing output processing based on the data received via the communication port,
Determining means for determining whether it is possible to receive the data from the communication port and perform the output processing;
When the determination means determines that the output process cannot be performed, data reception from the communication port is prohibited. On the other hand, when it is determined that the output process can be performed, the communication port An interlock means for allowing data reception;
When the determination means determines that the reception is newly permitted while the interlock means prohibits data reception from the communication port, the data already received in the output process An output device comprising: interrupt means for interrupting processing and performing output processing of the newly permitted data.
請求項6、8〜10のいずれか一項に記載の出力装置の出力装置本体に着脱可能に取着される無線通信器であって、
前記無線通信器が受信したデータを前記受信部に転送し終えるとインターロック状態に移行し、一方、前記インターロック手段から前記受信部を介して解除信号を受信するとインターロック状態を解除する前記制御部と、
前記制御部により制御される前記報知手段としての表示部と
を備えたことを特徴とする無線通信器。
A wireless communication device detachably attached to the output device main body of the output device according to any one of claims 6 and 8-10,
When the data received by the wireless communicator has been transferred to the receiving unit, the control shifts to an interlock state. On the other hand, when the release signal is received from the interlock means via the receiving unit, the control cancels the interlock state. And
A wireless communication device comprising: a display unit as the notification unit controlled by the control unit.
請求項11に記載の無線通信器であって、
前記制御部は前記リセット手段からのリセット信号を入力することでリセットされることを特徴とする無線通信器。
The wireless communication device according to claim 11, wherein
The wireless communication device, wherein the control unit is reset by inputting a reset signal from the reset means.
請求項1〜9のいずれか一項に記載の出力装置と、請求項10〜12に記載の無線通信器とを備え、前記無線通信器は出力装置本体に着脱可能に取着される出力処理システム。 Output processing comprising the output device according to any one of claims 1 to 9 and the wireless communication device according to claims 10 to 12, wherein the wireless communication device is detachably attached to the output device body. system.
JP2004034190A 2003-07-17 2004-02-10 Output unit, radio communication unit, and output processing system Pending JP2005047254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004034190A JP2005047254A (en) 2003-07-17 2004-02-10 Output unit, radio communication unit, and output processing system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003302055 2003-07-17
JP2004034190A JP2005047254A (en) 2003-07-17 2004-02-10 Output unit, radio communication unit, and output processing system

Publications (1)

Publication Number Publication Date
JP2005047254A true JP2005047254A (en) 2005-02-24

Family

ID=34277626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004034190A Pending JP2005047254A (en) 2003-07-17 2004-02-10 Output unit, radio communication unit, and output processing system

Country Status (1)

Country Link
JP (1) JP2005047254A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006295505A (en) * 2005-04-08 2006-10-26 Canon Inc Radio communications apparatus, radio apparatus and method for processing information

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6361358A (en) * 1986-09-01 1988-03-17 Nec Corp Data processor
JPH02158826A (en) * 1988-12-12 1990-06-19 Ricoh Co Ltd Signal input/output device
JPH08300772A (en) * 1995-05-15 1996-11-19 Asahi Optical Co Ltd Data communication display device and printer
JPH08317104A (en) * 1995-05-22 1996-11-29 Canon Inc Image processing unit
JPH1145137A (en) * 1997-07-28 1999-02-16 Canon Inc Unit and method for interface control and printer
JPH11320977A (en) * 1998-05-08 1999-11-24 Canon Inc Printer, portable telephone and printer system
JP2001058449A (en) * 1999-08-23 2001-03-06 Toshiba Tec Corp Printer
JP2001154819A (en) * 1998-12-24 2001-06-08 Canon Inc Device and method for controlling print and recording medium for storing print control program and print control program product
JP2002073306A (en) * 2000-08-29 2002-03-12 Canon Inc Printer system, printer control device, method and storage medium
JP2002086851A (en) * 2000-09-11 2002-03-26 Ricoh Co Ltd Printer and printing system
JP2003127472A (en) * 2001-10-22 2003-05-08 Canon Inc Recorder and its controlling method and program

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6361358A (en) * 1986-09-01 1988-03-17 Nec Corp Data processor
JPH02158826A (en) * 1988-12-12 1990-06-19 Ricoh Co Ltd Signal input/output device
JPH08300772A (en) * 1995-05-15 1996-11-19 Asahi Optical Co Ltd Data communication display device and printer
JPH08317104A (en) * 1995-05-22 1996-11-29 Canon Inc Image processing unit
JPH1145137A (en) * 1997-07-28 1999-02-16 Canon Inc Unit and method for interface control and printer
JPH11320977A (en) * 1998-05-08 1999-11-24 Canon Inc Printer, portable telephone and printer system
JP2001154819A (en) * 1998-12-24 2001-06-08 Canon Inc Device and method for controlling print and recording medium for storing print control program and print control program product
JP2001058449A (en) * 1999-08-23 2001-03-06 Toshiba Tec Corp Printer
JP2002073306A (en) * 2000-08-29 2002-03-12 Canon Inc Printer system, printer control device, method and storage medium
JP2002086851A (en) * 2000-09-11 2002-03-26 Ricoh Co Ltd Printer and printing system
JP2003127472A (en) * 2001-10-22 2003-05-08 Canon Inc Recorder and its controlling method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006295505A (en) * 2005-04-08 2006-10-26 Canon Inc Radio communications apparatus, radio apparatus and method for processing information
JP4594153B2 (en) * 2005-04-08 2010-12-08 キヤノン株式会社 Wireless communication apparatus, control method, program, and storage medium

Similar Documents

Publication Publication Date Title
JP2005254793A (en) Output device and radio communication device
JP2000196787A (en) Communication system and facsimile equipment
WO2006013979A1 (en) Transmitter, receiver, communication system, communication method, and communication program
JP4479263B2 (en) Output device and output processing system
JP4363218B2 (en) mobile phone
JP2005047254A (en) Output unit, radio communication unit, and output processing system
JP2005050300A (en) Output device
JP2005102118A (en) Portable telephone and printing apparatus
JP2005047256A (en) Output unit, radio communication unit, and output processing unit
JP4622757B2 (en) Printing system, printing method and printing apparatus
JP2005047255A (en) Output unit and output processing system
JP2005050299A (en) Output device, wireless communication device and output processing unit
JP2005047252A (en) Output unit, radio communication unit, and output processing unit
JP2007069539A (en) Printing system, printing method, and printer
JP2005051737A (en) Output device
JP4474213B2 (en) Image processing apparatus and program
JP2007083691A (en) Printing system, printing method, and printer
CN1910888B (en) Transmitter, receiver, communication system and communication method
JP2008109479A (en) Communication device
KR200322490Y1 (en) Apparatus For Outputting A Facsimile Document Choicely
JP3562907B2 (en) Facsimile machine
JPH08204966A (en) Facsimile equipment
KR20040093540A (en) Apparatus For Outputting A Facsimile Document Choicely
JP2002101238A (en) Method of controlling image processor and image processing system
JPH09200366A (en) Communication terminal equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091208

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100208

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100518