Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4363218B2 - mobile phone - Google Patents
[go: Go Back, main page]

JP4363218B2 - mobile phone - Google Patents

mobile phone Download PDF

Info

Publication number
JP4363218B2
JP4363218B2 JP2004044965A JP2004044965A JP4363218B2 JP 4363218 B2 JP4363218 B2 JP 4363218B2 JP 2004044965 A JP2004044965 A JP 2004044965A JP 2004044965 A JP2004044965 A JP 2004044965A JP 4363218 B2 JP4363218 B2 JP 4363218B2
Authority
JP
Japan
Prior art keywords
data
unit
communication
processing
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004044965A
Other languages
Japanese (ja)
Other versions
JP2005102122A (en
JP2005102122A5 (en
Inventor
裕隆 赤松
潔 橋本
晃仁 谷本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2004044965A priority Critical patent/JP4363218B2/en
Publication of JP2005102122A publication Critical patent/JP2005102122A/en
Publication of JP2005102122A5 publication Critical patent/JP2005102122A5/ja
Application granted granted Critical
Publication of JP4363218B2 publication Critical patent/JP4363218B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a cellular phone that can be adapted to call incoming in transmitting data by radio communication. <P>SOLUTION: In the body 2 of a printer 1, a card slot 12 is provided at a lower portion at the right side of its front. A CF-type communication card 13 is removably inserted to the card slot 12. The CF-type communication card 13 incorporates an IrDA-compliant infrared communication module. Data can be transmitted from a cellular phone 14 to the CF-type communication card 13 by infrared communication so as to be printed. The cellular phone 14 is capable of responding to call incoming which uses a call function during data transmission using an infrared communication function by using a parallel processing function. Namely, when call processing interrupts the cellular phone 14 during data transmission to the printer 1, the cellular phone 14 parallel executes data transmission processing and call processing. <P>COPYRIGHT: (C)2005,JPO&amp;NCIPI

Description

出力処理を行う出力装置に無線通信でデータを送信する携帯電話に係り、詳しくはデータ送信の際における処理技術に関する。   The present invention relates to a mobile phone that transmits data to an output device that performs output processing by wireless communication, and more particularly to a processing technique in data transmission.

近年、携帯電話には赤外線通信ポートが標準装備されているものが多い。使用方法として、携帯電話に保存されている電話番号等を、他の携帯電話に赤外線通信を用いて送信することが可能である。また、携帯電話には、電話帳機能やカメラ機能を備えるものがある。電話帳機能で作成された個人情報やカメラ機能で撮影された画像データは、独自のファイル形式で保存される。例えば個人情報はvCardファイル形式、画像データはvNoteファイル形式である。これらのファイル形式で保存されたデータは、携帯電話に備えられた専用の表示アプリケーションプログラム側でレイアウトは決められる。   In recent years, many mobile phones are equipped with an infrared communication port as standard. As a usage method, a telephone number or the like stored in a mobile phone can be transmitted to another mobile phone using infrared communication. Some mobile phones have a phone book function and a camera function. Personal information created by the phone book function and image data taken by the camera function are stored in a unique file format. For example, personal information is in a vCard file format, and image data is in a vNote file format. The layout of data stored in these file formats is determined by the dedicated display application program provided in the mobile phone.

ユーザは、携帯電話の赤外線通信ポートとパソコン等の赤外線通信ポートとを通信可能に対向させ、携帯電話を操作する。携帯電話は、ユーザの操作により記憶した個人情報や画像データを例えばパソコンに送信する。パソコンは、ユーザの操作に応答して受信した個人情報や画像データをプリンタにて印刷する。   The user operates the mobile phone with the infrared communication port of the mobile phone facing the infrared communication port of a personal computer or the like so as to be communicable. The mobile phone transmits personal information and image data stored by the user's operation to, for example, a personal computer. The personal computer prints personal information and image data received in response to a user's operation using a printer.

ところで、携帯電話の赤外線通信ポートによるデータ送信の処理速度は比較的遅く、データ送信に数10秒〜1分程度を要する。このため、データの送信中に着信があると、ユーザはデータ送信を継続するか着信に応答するかを選択しなければならない。データ送信の継続を選択すると、着信相手を待たせることになる。着信に対する応答を選択すると、データ送信を再度行わなければならない。このデータ送信を再度行うには上記の時間を要するため、その間に再び着信する可能性があり、データ送信をなかなか完了させることができなくなるおそれがあった。   By the way, the processing speed of data transmission by the infrared communication port of a cellular phone is relatively slow, and it takes about several tens of seconds to one minute for data transmission. For this reason, if there is an incoming call during data transmission, the user must select whether to continue the data transmission or respond to the incoming call. If you choose to continue sending data, you will have the other party wait. If the response to the incoming call is selected, the data transmission must be performed again. Since the above time is required to perform this data transmission again, there is a possibility that it will be received again during that time, and there is a possibility that the data transmission cannot be completed easily.

本発明においては、無線通信でデータを送信する際における着信に適応することができる携帯電話及び出力処理システムを提供することにある。   An object of the present invention is to provide a mobile phone and an output processing system that can adapt to incoming calls when data is transmitted by wireless communication.

本発明では、携帯電話であって、他の電話との通話手段と、データを記憶する記憶手段と、印刷装置に前記データを送信する近距離無線通信手段と、前記近距離無線通信手段による前記印刷装置への前記データの送信処理と前記通話のための処理との優先度を設定する設定手段と、前記データの送信処理中に前記通話手段により通話の着信があったと判断した場合には、前記設定された優先度に基づく一つの処理を優先実行する優先処理手段と、を備えたことを要旨とする。この構成によれば、優先処理手段は、近距離無線通信による印刷装置へのデータの送信処理中に通手段により通話の着信があったと判断した場合には、設定手段により設定された優先度に基づく一つの処理を優先実行する。よって、携帯電話の通話を優先するユーザと、携帯電話から印刷装置への近距離無線通信によるデータ送信を優先するユーザと、の何れにも対応することができ、印刷装置へのデータ送信時における着信にユーザの嗜好に応じて容易に対応することができる。
また、本発明の携帯電話では、前記優先処理手段は、前記優先実行した前記一つの処理を終了した後に、当該一つの処理よりも優先度の低い方の処理を実行することを要旨とする。
本発明の携帯電話では、前記データの送信処理中に前記通話手段により通話の着信があったときには前記データの送信処理前記通話のための処理とを並列処理する並列処理手段を更に備え、前記データの送信処理中に前記通話手段により通話の着信があったときには前記並列処理手段が前記データの送信処理前記通のための処理とを並列処理するモードと、前記優先処理手段が前記設定手段により設定された優先度に基づく一つの処理を優先実行するモードとを備え、前記設定手段は、前記複数のモードのうちの何れか一つを実行するモードとして設定するものであることを要旨とする。
さらに、本発明の携帯電話では、前記データの送信処理中に前記通話手段により通話の着信があったときには該通話処理を実行し、前記送信処理の状態を表示するモードを更に備え、前記設定手段は、前記複数のモードのうちの何れか一つを実行するモードとして設定するものであることを要旨とする。
In the present invention, the mobile phone is a communication means with another telephone, a storage means for storing data, a short-range wireless communication means for transmitting the data to a printing apparatus, and the short-range wireless communication means. setting means for setting the priority of the process for the transmission processing of the data to the printing device and the call, if it is determined that there is an incoming call by the pre-Symbol call means during the transmission process of the data And a priority processing unit that preferentially executes one process based on the set priority. According to this configuration, the priority processing unit, when it is determined that there is an incoming call by passing talk means during transmission processing of data to the printing apparatus by short-distance wireless communication, the priority set by the setting means One process based on the above is preferentially executed. Therefore, it is possible to cope with both a user who gives priority to a mobile phone call and a user who gives priority to data transmission by short-range wireless communication from the mobile phone to the printing apparatus. Incoming calls can be easily handled according to user preferences.
Further, in the portable telephone of the present invention, the priority processing unit, after completion of the preferential execution by said one processing is summarized in that executing the processing in low other hand priority than the one processing .
In the mobile phone of the present invention, the can and call incoming Tsu there by the call means during the transmission process of the data further parallel processing means for parallel processing and processing for the call and transmission processing of the data comprising, a mode can incoming call there was Tsu by the call means during the transmission process of the data which is the parallel processing unit for parallel processing processes and for the through talking to the transmission processing of the data, the priority processing means and a mode in which priority execution of one process based on the set by the priority by said setting means, the setting means, sets as one mode for executing one of the plurality of modes The gist is to do.
Further, in the portable telephone of the present invention, the can and call incoming Tsu there by the call means during the transmission process of the data executes the vent talk process, further comprising a mode for displaying the status of the transmission process, The gist of the invention is that the setting means sets a mode for executing any one of the plurality of modes.

本発明では、前記近距離無線通信手段はブルートゥースであることを要旨とする。   The gist of the present invention is that the short-range wireless communication means is Bluetooth.

本発明では、前記データの送信処理中に前記通話手段により着信があるときには前記並列処理手段が前記データの送信と該通話とを並列処理するモードと、前記データの送信処理と前記通話のための処理とが共存すると判断した場合には設定された優先度に基づく一つの処理を優先実行するモードと、前記データの送信処理中に前記通話手段により着信があるときには該通話処理を実行し、前記送信処理の状態を表示するモードと、のうち前記並列処理手段が並列処理を行うモードを含む少なくとも2つを備え、前記複数のモードのうちの何れか一つを実行するモードとして設定する設定手段と、を備えたことを要旨とする。この構成によれば、データ通信と通話とを並列処理するモードと、データ通信と通話の何れを優先するかを設定するモードと、通話を行いデータ通信の状態を表示するモードとを備え、選択したモードを記憶することで、ユーザの各種要望に容易に応じることができる。   In the present invention, when there is an incoming call by the call means during the data transmission process, the parallel processing means performs a mode in which the data transmission and the call are processed in parallel, and the data transmission process and the call A mode in which one process based on a set priority is preferentially executed when it is determined that the process coexists, and when there is an incoming call by the call means during the data transmission process, the call process is executed, Setting means for setting as a mode for executing any one of the plurality of modes, including at least two modes including a mode for displaying a state of transmission processing and a mode in which the parallel processing means performs parallel processing And the gist of the above. According to this configuration, the mode includes a mode for processing data communication and a call in parallel, a mode for setting which of data communication and a call is prioritized, and a mode for performing a call and displaying the status of the data communication. By storing the selected mode, it is possible to easily meet various user requests.

本発明では、前記出力装置は、前記携帯電話からデータを受信する受信部と、前記受信部が受信したデータのデータ種が所定のデータ種であるかどうかを識別する識別手段と、レイアウトデータを記憶する記憶部と、前記識別手段が前記所定のデータ種であると識別した場合は、当該データ種に対応する前記レイアウトデータを前記記憶部から読み出し、前記レイアウトデータを用いて前記データをレイアウト付きデータに変換する変換処理部と、前記レイアウト付きデータに基づく出力処理を行って前記データの内容を前記データ種に応じたレイアウトで出力する出力手段とを備えたことを要旨とする。この構成によれば、携帯電話からデータを送信して出力装置にデータ種に応じたレイアウトでデータ内容を出力させるときに、データを出力装置に送信する時間が長く、その送信中に着信がある可能性が高くなるような場合にも、着信に容易に対応することができる。   In the present invention, the output device includes a receiving unit that receives data from the mobile phone, an identification unit that identifies whether the data type of the data received by the receiving unit is a predetermined data type, and layout data. When the storage unit for storing and the identifying unit identify the predetermined data type, the layout data corresponding to the data type is read from the storage unit, and the layout data is added to the layout data. The gist of the invention is that it includes a conversion processing unit that converts data into data, and an output unit that performs output processing based on the data with layout and outputs the contents of the data in a layout according to the data type. According to this configuration, when transmitting data from a mobile phone and causing the output device to output data contents in a layout according to the data type, the time for transmitting the data to the output device is long, and there is an incoming call during the transmission Even when the possibility increases, it is possible to easily deal with incoming calls.

本発明では、前記近距離無線通信手段から送信される前記データは、前記携帯電話の操作部を操作して入力された指定情報が記述されるとともにレイアウト定義できないデータ種のデータであり、前記出力装置は、前記携帯電話からデータを受信する受信部と、前記受信部が受信したデータに含まれる指定情報を取得する取得手段と、指定情報に対応するレイアウトデータを記憶する記憶部と、前記取得手段が取得した指定情報に対応するレイアウトデータを前記記憶部から読み出し、該レイアウトデータを用いて前記データをレイアウト定義できるデータ種のレイアウト付きデータに変換する変換処理部と、前記レイアウト付きデータに基づき出力処理を行って前記データの内容を前記指定情報に応じたレイアウトで出力する出力手段とを備えたことを要旨とする。
本発明では、前記受信部は、前記携帯電話から受信したデータのデータ種からデータの適否を判定する判定部と、前記判定部により前記データ種が適切と判定した場合は該データを受け付け、前記データ種が不適切と判定した場合は該データを破棄する受付部とを備え、さらに前記出力装置は、前記受付部において前記データを受け付けて該データの送信処理中にあるときにその旨を報知し、前記受付部において前記データを破棄したときは該データの送信処理を中止した旨を報知する報知部を備えることが好ましい。
さらに本発明では、前記受信部は、前記判定部が前記データ種の適否の判定のために参照すべき参照データを携帯電話から予め受信して記憶部に書き込むセットアップ手段を更に備えることが好ましい。
また、本発明は、出力処理システムであって、上記発明の前記携帯電話と、前記出力装置とを備えたことを要旨とする。
In the present invention, the data transmitted from the short-range wireless communication means is data of a data type in which designation information input by operating the operation unit of the mobile phone is described and a layout cannot be defined, and the output The apparatus includes: a receiving unit that receives data from the mobile phone; an acquisition unit that acquires designation information included in the data received by the reception unit; a storage unit that stores layout data corresponding to the designation information; and the acquisition Based on the data with layout, a conversion processing unit that reads out layout data corresponding to the designation information acquired by the means from the storage unit, and converts the data into data with a layout of a data type that can define the layout using the layout data. Output means for performing output processing and outputting the content of the data in a layout according to the specified information; And the spirit that was example.
In the present invention, the receiving unit determines whether the data is appropriate from the data type of the data received from the mobile phone, and receives the data when the data type is determined to be appropriate by the determining unit, A reception unit that discards the data when it is determined that the data type is inappropriate, and the output device receives the data at the reception unit and notifies the user when the data is being transmitted. In addition, it is preferable to provide a notifying unit for notifying that the data transmission process is stopped when the receiving unit discards the data.
Furthermore, in the present invention, it is preferable that the receiving unit further includes a setup unit that receives in advance from the mobile phone reference data to be referred to by the determination unit for determining whether the data type is appropriate and writes the reference data in the storage unit.
Moreover, this invention is an output processing system, Comprising: The said mobile telephone of the said invention and the said output apparatus are provided, and it makes it a summary.

(第一の実施形態)
以下、本発明を具体化した第一の実施形態を図面に従って説明する。
図1は、プリンタ1の斜視図を示す。図1において、出力装置としてのプリンタ1は、インクジェット式プリンタであって、その本体2の背面側には自動給紙装置3のシートフィーダ4及びロール紙支持部5が設けられている。シートフィーダ4には、単票紙(図示せず)がセットされ、本体2内部に給紙される。また、ロール紙支持部5には、ロール紙P1がセットされ、本体2内部に給紙される。本体2の中央には、カバー6が設けられ、そのカバー6内には印刷機構が配設され、その印刷機構の作動により印刷された印刷媒体としての用紙P(単票紙又はロール紙)が前側下部の排紙口7から排出される。また、本体2の上面右側には、操作パネル8が設けられている。
(First embodiment)
Hereinafter, a first embodiment of the present 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 printed sheets, 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 contents on the display screen 9a when the printing is not being performed. 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 pressed 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から受信したデータを取り込んでそのデータに基づく印刷処理を行う。なお、CF型通信カード13の本体ケースによって通信器本体が構成される。   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®) type card (infrared communication card) (hereinafter referred to as 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 the data received from the mobile phone 14 by the CF communication card 13 and performs a printing process based on the data. The main body case of the CF type communication card 13 constitutes a communication device main body.

携帯電話14は、通話機能、赤外線通信機能、電話番号等を含む個人情報を登録管理できる電話帳機能、他の携帯電話との間で電子メールを送受信する電子メール機能、静止画又は動画を撮影するデータ生成手段としてのカメラ機能、通話及びデータ送信を同時に行う並列処理機能など、多くの機能を備えている。   The mobile phone 14 has a telephone function, an infrared communication function, a telephone book function capable of registering and managing personal information including a telephone number, an e-mail function for sending and receiving e-mails with other mobile phones, and taking still images or moving images. It has many functions such as a camera function as a data generation means to perform, a parallel processing function for simultaneously performing a call and data transmission.

携帯電話14は、電話帳機能で扱う個人情報データ(テキストデータ)と、カメラ機能で扱う画像データとを、赤外線通信対応のファイル形式でそれぞれ管理している。詳しくは、個人情報データはvCard(TM)ファイル形式で管理され、画像データはvNote(TM)ファイル形式で管理されている。よって、携帯電話14に管理されているvCardファイル形式の個人情報データ又はvNoteファイル形式の画像データは、カードスロット12にセットされたCF型通信カード13を通じてプリンタ1に受信される。また、携帯電話14は、他の携帯電話やパソコン等との間で携帯電話網を通じて電子メールや画像データを送受信できる。   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. In addition, 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.

プリンが1は、カードスロット12にデジタルカメラ用のCF型メモリカードをセットすれば、デジタルカメラで撮影した画像データをCF型メモリカードから読み込んで印刷させることもできる。   If the print 1 is a CF-type memory card for a digital camera set in the card slot 12, the image data captured by the digital camera can be read from the CF-type memory card 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 receiving / emitting unit 13a includes a light receiving element and a light emitting element. The light emitting element emits infrared light composed of a pulse signal modulated by a pulse phase 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 including a bit signal 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分程度の間、その状態を保持する必要がある。このため、ユーザはデータ送信先の赤外線受発光部13aを見ながら送信操作することになる。ユーザは赤外線受発光部13aから最大通信距離以内の距離に近づけた位置に携帯電話14を保持し、赤外線受発光部13aを見ながら携帯電話14の姿勢を保ったまま例えば数10秒〜1分程度保持する。このとき、表示部13bは、赤外線受発光部13aを見ながら携帯電話14を操作又は保持するユーザ(操作者)の視野内に入る。また、データ送信中は点灯する表示部13bに自然と視線が向き、送信先もその視線方向に自然と向きやすいが、赤外線受発光部20を最大通信距離の1/2の距離だけ離れた位置から、仮に表示部13bに向けてデータ送信したとしても、その送信データが赤外線受発光部13aに受信されうるものとなっている。例えば、最大通信距離L(cm)、受信可能な拡がり角θ(°)とすると、表示部13bの位置は、赤外線受発光部13aに対し半径(L/2)・tanθ(cm)の範囲以内にあれば、上記条件は満たすことになる。   As shown in FIG. 1, the infrared light emitting / receiving unit 13 a and the display unit 13 b provided on the front surface of the CF type communication card 13 are in positions 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 (hereinafter referred to as the maximum communication distance) between the infrared light receiving and emitting units 13a and 20 is a value within 10 to 50 cm, for example. Since infrared light 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. For this reason, the user performs a transmission operation while looking at the infrared light receiving / emitting unit 13a of the data transmission destination. The user holds the mobile phone 14 at a position close to the distance within the maximum communication distance from the infrared light emitting / receiving unit 13a, and keeps the posture of the mobile phone 14 while watching the infrared receiving / emitting unit 13a, for example, several tens of seconds to 1 minute. Hold the degree. At this time, the display unit 13b enters the field of view of the user (operator) who operates or holds the mobile phone 14 while looking at the infrared light emitting / receiving unit 13a. In addition, while the data is being transmitted, the line of sight is naturally directed to the display unit 13b that is lit, and the transmission destination is also naturally directed to the line of sight. Therefore, even if data is transmitted toward the display unit 13b, the transmission data can be received by the infrared light receiving / emitting unit 13a. For example, assuming that the maximum communication distance L (cm) and the receivable spread angle θ (°), the position of the display unit 13b is within the range of radius (L / 2) · tan θ (cm) with respect to the infrared light receiving and emitting unit 13a. If so, the above condition is satisfied.

なお、視野とは、一般に視野角で片目につき、鼻側60度、耳側100度、上側60度、下側75度である。赤外線受発光部13aに対する表示部13bの位置は、視野の範囲であればよいが、単に視野に入るだけでは表示部13bを確認するために視線を赤外線受発光部13aからそらす必要も生じるため、そのようなことがないように上記視野角の1/3以内の範囲が好ましい。さらには上記視野角の1/4の範囲が適切である。具体的に本体2の表面上における位置関係では、視野角だけでみると最大通信距離によって変化するが、表示部13bが赤外線受発光部13aに対し半径20センチメートルの範囲内が好ましく、特によい範囲は半径10センチメートルの範囲内である。   The field of view is generally a viewing angle of 60 degrees on the nose side, 100 degrees on the ear side, 60 degrees on the upper side, and 75 degrees on the lower side for one eye. The position of the display unit 13b relative to the infrared light receiving / emitting unit 13a may be within the range of the field of view, but simply entering the field of view also necessitates diverting the line of sight from the infrared light receiving / emitting unit 13a to confirm the display unit 13b. A range within 1/3 of the viewing angle is preferable to prevent such a situation. Furthermore, a range of 1/4 of the viewing angle is appropriate. Specifically, the positional relationship on the surface of the main body 2 varies depending on the maximum communication distance when viewed only from the viewing angle, but the display unit 13b is preferably within a range of a radius of 20 centimeters relative to the infrared light emitting / receiving unit 13a, and particularly good. The range is within a radius of 10 centimeters.

また、プリンタ1に設けられた画面9aにも受信状態が表示されるが、画面は上向きに設けられているため、例えばプリンタ1の前側から携帯電話14を持った手を伸ばして送信操作するユーザにとっては、画面9aの表示内容を視認できない。そのため、このプリンタ1では、表示部13bは、操作パネル8の画面9aが設けられている本体2の上面とは異なる前面に赤外線受発光部13aと同じ面に設けられている。つまり、画面9aとこのような位置関係となるようにカードスロット12を位置設定している。もちろん、赤外線受発光部13a及び表示部13bが本体2の前面ではなく側面に共に位置する構成も可能である。   Although the reception status is also displayed on the screen 9a provided in the printer 1, since the screen is provided upward, for example, a user who extends the hand holding the mobile phone 14 from the front side of the printer 1 and performs a transmission operation. Therefore, the display content of the screen 9a cannot be visually recognized. Therefore, in this printer 1, the display unit 13b is provided on the same surface as the infrared light receiving and emitting unit 13a on the front surface different from the upper surface of the main body 2 on which the screen 9a of the operation panel 8 is provided. That is, the position of the card slot 12 is set so as to have such a positional relationship with the screen 9a. Of course, a configuration in which the infrared light emitting / receiving unit 13a and the display unit 13b are positioned on the side surface of the main body 2 instead of the front surface is also possible.

また、赤外線受発光部13aがプリンタ1の底面から10cm以内の高さに配置されるように位置設定されている。これは、携帯電話14をプリンタ1と同じ載置面(机や台など)に置いたままデータ送信可能とするためである。携帯電話14には赤外線受発光部20が側面に設けられている機種(側面機種と称す)と、背面(操作ボタンと反対側の面)に設けられている機種(背面機種と称す)とがある。側面機種では側面で机上に立たせて横向きに置いたとき、背面機種では携帯電話14を平坦に寝かせて置いたときの赤外線受発光部20の通信エリア内にプリンタ1側の赤外線受発光部13aが位置するように配置されている。携帯電話14をプリンタ1が載置された机上に置く場合は、最大通信距離より近づけて置くのが普通なので、例えば最大通信距離の半分の距離を隔てて赤外線受発光部20が赤外線受発光部13aに真正面で対向するように位置させて携帯電話14を机上に置いたとする。このときプリンタ1の前面における赤外線受発光部13aの通信エリア域内に表示部13bが位置する設定としている。例えば最大通信距離が20cm、通信可能拡がり角度60°とすると、赤外線受発光部13aと表示部13bは、互いに相手側を中心に半径11cmのエリア内に位置している。背面機種の携帯電話14を寝かせたときは赤外線受発光部20の高さは約5〜20mmの範囲、側面機種の携帯電話14を横向きに立てたときは赤外線受発光部20の高さは約15〜40mmの範囲になる。本実施形態では、赤外線受発光部13aの高さがプリンタ1の底面から10cm以内の高さにあり、側面機種と背面機種のどちらでも携帯電話14をプリンタ1と同じ机や台の上に置いたままデータ送信ができるように位置設定されている。また、プリンタ1の前面中央部には排紙口7があり、これを避けた位置にしか赤外線受発光部13aは配置できない。よって、本実施形態では、プリンタ1の前面において、排紙口7の両側の下側位置に10cm以内の高さで通信ポートである赤外線受発光部13aを配置している。これにより、携帯電話14をプリンタ1と同じ机上に置いたままでのデータ送信が可能となるうえ、排紙口7から排出される用紙により通信が遮断されることがまずない。なお、本実施形態の赤外線受発光部13aは、プリンタ1の底面から10cm以内の高さのうち特に2〜5cmの範囲内の高さに位置している。   Further, the infrared light emitting / receiving unit 13a is set to be positioned at a height within 10 cm from the bottom surface of the printer 1. This is to enable data transmission while the mobile phone 14 is placed on the same mounting surface (desk or table) as the printer 1. The cellular phone 14 includes a model in which the infrared light emitting / receiving unit 20 is provided on the side surface (referred to as a side model) and a model provided on the back surface (the surface opposite to the operation button) (referred to as a back model). is there. In the case of the side model, the infrared light receiving / emitting part 13a on the printer 1 side is located in the communication area of the infrared light receiving / emitting part 20 when the mobile phone 14 is placed flat on the side model while standing on the side. It is arranged to be located. When the mobile phone 14 is placed on a desk on which the printer 1 is placed, it is usually placed closer to the maximum communication distance. For example, the infrared light receiving / emitting unit 20 is separated from the infrared communication unit by a distance of half the maximum communication distance. It is assumed that the mobile phone 14 is placed on the desk so as to face the front 13a. At this time, the display unit 13b is set to be located in the communication area of the infrared light emitting / receiving unit 13a on the front surface of the printer 1. For example, if the maximum communication distance is 20 cm and the communicable spread angle is 60 °, the infrared light receiving / emitting unit 13a and the display unit 13b are located in an area having a radius of 11 cm centering on the other side. When the mobile phone 14 of the rear model is laid down, the height of the infrared light emitting / receiving unit 20 is in the range of about 5 to 20 mm. When the mobile phone 14 of the side model is stood sideways, the height of the infrared light receiving / emitting unit 20 is about It becomes the range of 15-40 mm. In this embodiment, the height of the infrared light receiving / emitting unit 13a is within 10 cm from the bottom surface of the printer 1, and the mobile phone 14 is placed on the same desk or table as the printer 1 for both the side model and the rear model. The position is set so that data can be transmitted as it is. In addition, there is a paper discharge port 7 in the center of the front surface of the printer 1, and the infrared light receiving / emitting unit 13a can be arranged only at a position avoiding this. Therefore, in the present embodiment, the infrared light receiving and emitting unit 13a that is a communication port is disposed at a height within 10 cm on the lower side of both sides of the paper discharge port 7 on the front surface of the printer 1. As a result, data can be transmitted while the mobile phone 14 is placed on the same desk as the printer 1, and communication is hardly interrupted by the paper discharged from the paper discharge port 7. In addition, the infrared light receiving / emitting unit 13a of the present embodiment is located at a height within a range of 2 to 5 cm among heights within 10 cm from the bottom surface of the printer 1.

図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.), an earpiece 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は、その画像データを印刷する場合、JPEGデータを赤外線通信対応のファイル形式の1つであるvNote(TM)形式にて送信する。このvNote形式では、Base64と呼ばれるエンコード/デコード変換器でJPEGデータがエンコード(圧縮)され、エンコードされたJPEG画像データとして保存される。また、携帯電話14は、電話帳機能を使って、操作ボタン15aを操作してディスプレイ18上に作成した個人情報を登録することができる。   In the present embodiment, the mobile phone 14 stores image data (still image data) taken by the camera function as JPEG data. Then, when printing the image data, the mobile phone 14 transmits the JPEG data in the vNote (TM) format, which is one of the file formats compatible with infrared communication. In this vNote format, JPEG data is encoded (compressed) by an encode / decode converter called Base64 and stored as encoded JPEG image data. In addition, the mobile 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 phone book function, the personal information creation program built in the mobile phone 14 is activated. . On the display 18, each item 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 the 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と同様の赤外線通信方式の受発行が可能な受光素子と発光素子とを有している。   Furthermore, the mobile phone 14 has an infrared light receiving / emitting unit 20 (shown in FIG. 1) for performing infrared communication with the CF type communication card 13 as an infrared communication function compliant with IrDA (Infrared Data Association). I have. 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.

更にまた、携帯電話14は、並列処理機能によって、赤外線機能によるデータ送信中に通話機能による着信に応答することが可能である。即ち、携帯電話14は、プリンタ1へのデータ送信処理中に該携帯電話14に通話処理が入ると、データ送信処理と通話処理とを並列実行する。これにより、データ通信中に着信があっても、ユーザはその着信に気軽に応答し、相手との通話を楽しむことができる。また、着信に応答してもデータ転送が継続されるため、データの再送信を行わなくとも印刷結果が得られる。即ち、従来に比べて短時間で印刷物を得ることができる。   Furthermore, the mobile phone 14 can respond to an incoming call by the call function during data transmission by the infrared function by the parallel processing function. That is, when a call process is entered into the mobile phone 14 during a data transmission process to the printer 1, the mobile phone 14 executes the data transmission process and the call process in parallel. Thereby, even if there is an incoming call during data communication, the user can easily respond to the incoming call and enjoy a call with the other party. In addition, since data transfer is continued even in response to an incoming call, a print result can be obtained without retransmitting data. That is, a printed matter can be obtained in a shorter time than in the past.

次に、上記のように構成した、プリンタ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 cellular phone 14 includes a control unit 21, a memory 22 as a storage unit, a transmission / reception unit 23 as a call unit, 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 as a communication 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の操作に基づいて実行する。   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 of data, and storage based on the operation of the operation button 15.

制御部21は、前記したCCD撮像装置19で撮像した画像データの表示及び保存のための処理を操作ボタン15の操作に基づいて実行する。このとき、メモリ22に保存される画像データは、制御部21によってJPEGデータ形式で保存される。   The control unit 21 executes a process for displaying and storing the image data captured by the CCD imaging device 19 based on the operation of the operation button 15. At this time, the image data stored in the memory 22 is stored in the JPEG data format by the control unit 21.

制御部21は、個人情報の作成及び保存のため処理を操作ボタン15の操作に基づいて実行する。このとき、メモリ22に保存される個人情報データ(テキストデータ)は、制御部21によって名刺データ形式(本例ではvCard形式)で保存される。   The control unit 21 executes processing for creating and storing personal information based on the operation of the operation button 15. At this time, 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 or 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.

更にまた、制御部21は、並列処理機能を提供する並列処理手段として動作する。即ち、制御部21は、ユーザの操作に基づいて保存された画像データ・個人情報データの送信中に送受信部23から通話が着信した旨を受け取ると、その旨をディスプレイ18に表示する。そして、ユーザが着信に応答するべく操作ボタン15を操作する(通話ボタンを押下する)と、制御部21は送受信部23に応答を許可し、送受信部23は相手の電話との間にチャネルを確立し、該チャネルを利用して音声信号の送受信を行う。そして、制御部21は、送受信部23から受け取る音声信号をスピーカ25に出力し、ユーザの音声をマイク24にて変換した信号を送受信部23に出力する。これにより、該携帯電話14を所有するユーザと、該ユーザに対して発呼した電話を所有するユーザ(通話相手)との間における通話を可能にする。   Furthermore, the control unit 21 operates as a parallel processing unit that provides a parallel processing function. That is, when the control unit 21 receives that a call has arrived from the transmission / reception unit 23 during transmission of image data / personal information data stored based on the user's operation, the control unit 21 displays that fact on the display 18. When the user operates the operation button 15 to respond to the incoming call (presses the call button), the control unit 21 permits the transmission / reception unit 23 to respond, and the transmission / reception unit 23 establishes a channel between the other party's phone. Establish and transmit and receive audio signals using the channel. And the control part 21 outputs the audio | voice signal received from the transmission / reception part 23 to the speaker 25, and outputs the signal which converted the user's audio | voice with the microphone 24 to the transmission / reception part 23. FIG. This enables a call between the user who owns the mobile phone 14 and the user (calling party) who owns the phone called to the user.

次に、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側の通信インターフェイス(I/F)45により制御される。プリンタ側UART34は、カード側UART33からオブジェクトデータを受信し始めると、プリンタ1側にデータの読込みを要求すべく割込信号を出力する。この割込信号を受信したプリンタ1側で入力ポートを開くことでオブジェクトデータのプリンタ1への読み込みが開始される。この際、プリンタ側UART34は、カード側UART33から受信したシリアルのビットストリームをパラレルなバイトデータに変換しつつそのオブジェクトデータをプリンタ1側へ出力する。   The printer-side UART 34 has a communication interface (I / F) 45 on the printer 1 side via a bus 35 that is connected when both connectors are electrically connected in a state where the CF-type communication card 13 is set in the card slot 12. Controlled by 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 information on the communication status to the mobile phone 14 via the infrared light emitting / receiving unit 13a, and the data reception state on the printer 1 side is displayed on the display 18 of the mobile phone 14 by character information or the like. Is done.

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

通信インターフェイス45は、通信インターフェイス部45a、パラレル通信部45b、ブルートゥース(Bluetooth (TM))(以下、BTと記す)通信部45c、USB(Universal Serial Bus)通信部45d、スロット通信部45e及びシリアル通信部(図示せず)を備えている。各通信部45b〜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 45 includes a communication interface unit 45a, a parallel communication unit 45b, a Bluetooth (TM) (hereinafter referred to as BT) communication unit 45c, a USB (Universal Serial Bus) communication unit 45d, a slot communication unit 45e, and serial communication. Part (not shown). Each of the communication units 45b to 45e has a communication port (input / output port). Each of the communication units 45b to 45e has a communication port (input / output port), and the communication interface unit 45a includes, 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, it notifies the CPU 41 that manages the priority of communication (data reception). The CPU 41 determines whether or not the data can be received based on the information indicating the reception 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 end of taking in data. 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 the 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 And the communication port being received.

パラレル通信部45bは、ホストコンピュータ(パーソナルコンピュータ)HCから通信ケーブルを介してデータをパラレル通信で受信することが可能である。BT通信部45cは、BT対応携帯端末BCから所定通信プロトコルに従って所定規格周波数帯域の電波による近距離無線通信でデータを受信することが可能である。USB通信部45dは、USB対応機器(図示せず)から所定通信プロトコルに従ってデータを受信することが可能である。スロット通信部45eは、CFカードスロット12に挿着されたCF型通信カード13又はCFカード(メモリカード)からデータを受信することが可能である。なお、各通信部45b,45c,45d,45eは、ホスト装置との通信上必要な情報やプリンタ1の状態を通知する信号など所定の信号又はデータを送信可能となっている。   The parallel communication unit 45b can receive data from the host computer (personal computer) HC through a communication cable via parallel communication. The BT communication unit 45c can receive data from the BT 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 a predetermined signal or data such as information necessary for communication with the host device or a signal for notifying the state of the printer 1.

CPU41は、ROM42に記憶された制御プログラム及びEEPROM43に記憶された各種アプリケーションプログラムなどに基づいて、通信インターフェイス(I/F)45、ASIC46及びドライバ47a〜47cを統括制御する。CPU41は、ASIC46に対して印刷機構の一部を作動させる指令信号を出力し、ASIC46とRAM44間及びASIC46の内部の各種処理回路間におけるデータの転送処理を指示する。CPU41は転送処理のため例えばDMAコントローラを内蔵する。また、CPU41は、ドライバ47a〜47cを介して紙送りモータM1、キャリッジモータM2、ロール紙の印刷後の部分を所定のサイズに切断するカッタ装置のカッタモータM3を駆動制御する。   The CPU 41 controls the communication interface (I / F) 45, the ASIC 46, and the drivers 47 a to 47 c 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 causes the display screen 9a to display 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 specifying one or a plurality of images inputted 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 of 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 inputs 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 when the CPU in the CF type communication card 13 executes 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 packets sent after being divided into packets at the time of file transfer into an original file 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 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 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 is capable of printing 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 reference comparison 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. If 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 a communication protocol program. The IrDA profile processing unit 74, the text data raster processing unit 75, and the image data raster processing unit 76 are functional parts that are realized by the CPU 41 executing an 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〜45dからデータ受信中であるビジー状態でない限り入力ポートを開きデータの取り込みを開始する。   The UART driver 72 controls the communication operation of the printer side UART 34 built in the CF type communication card 13, and controls the printer side UART 34 based on instructions from the CPU 41 and the card driver 71, for example. 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 take in data unless the printer 1 is busy receiving data from the other communication units 45b to 45d.

また、カードドライバ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 mode of the display unit 13b.

データトランスファ部73は、CF型通信カード13のオブジェクト送受信部64から送られてきたオブジェクトデータとファイル拡張子データを受け取ると、ファイル拡張子データをIrDAプロファイル処理部74に送るとともに、オブジェクトデータについてはそれを正しく受信できたかどうかを判断する。この判断は、オブジェクトデータが正しく受信できたかどうかを検証する手順がプログラムされた伝送制御手順に従って判定される。伝送制御手順としては、ベーシック手順と、HDLC(ハイレベルデータリンク手順)とが挙げられる。本例ではベーシック手順を簡素化した伝送制御手順を採用する。   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 correctly received is programmed. The transmission control procedure 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.

ここで、本例における伝送制御手順について簡単に説明する。オブジェクト送受信部64が電文を転送する制御局、データトランスファ部73が電文を受信する従局となる。この伝送制御手順では、電文を転送する制御局は <ENQ>を発行し、従局からの<DLE><ACK0> 応答を確認することでデータリンクを確立する。データリンクを確立すると、次に制御局は電文を送出し、従局からの<DLE><ACK0/ACK1>応答を確認する。従局からデータエラーを確認した場合は、 <NAK>応答を行って、制御局に再送依頼を行う。正常に電文転送した場合は、制御局は <EOT>を発行し終了する。電文構造は、「 <DLE><STX>電文本体(テキスト) <DLE><ETX><CRC>」形式であり、電文本体が例えば1024文字を超える場合は、1024文字単位で分割し、「<DLE><STX>電文分割ブロック<DLE><ETB><CRC> 」でフレーミングを行い、最後の電文を「<DLE><STX>電文分割ブロック<DLE><ETX><CRC> 」とする。CRC(巡回冗長符号)の計算は、<STX> の次のデータから<DLE><ETX>又は<DLE><ETB>までのデータを逐次、巡回冗長符号計算を行い、2バイトのCRCを<ETX> 又は<ETB> の直後に送信する。<CRC> を精査し、計算が合致すれば、<DLE><ACK0/ACK1>を返送し電文転送を終結し、それ以外は<NAK> を返送し、再送要求を行う。なお、エラー制御に採用するエラー検出方式は、CRC検出方式に限らず、パリティチェック方式、チェックサム、ハミング符号によるものでもよい。   Here, the transmission control procedure in this example will be briefly described. The object transmission / reception unit 64 serves as a control station that transfers a message, and the data transfer unit 73 serves as a slave station that receives a message. In this transmission control procedure, the control station that transfers the message issues <ENQ> and establishes the data link by confirming the <DLE> <ACK0> response from the slave station. Once the data link is established, the control station then sends a message and confirms the <DLE> <ACK0 / ACK1> response from the slave station. If a data error is confirmed from the slave station, a <NAK> response is sent and a retransmission request is sent to the control station. If the message is transferred normally, the control station issues <EOT> and terminates. The message structure is in the format of “<DLE> <STX> message body (text) <DLE> <ETX> <CRC>”. If the message body exceeds 1024 characters, for example, the message structure is divided into 1024 characters. Framing is performed with the DLE> <STX> message division block <DLE> <ETB> <CRC> and the last message is set to “<DLE> <STX> message division block <DLE> <ETX> <CRC>”. CRC (Cyclic Redundancy Code) is calculated by performing cyclic redundancy code calculation sequentially from the data following <STX> to <DLE> <ETX> or <DLE> <ETB>. Send immediately after ETX> or <ETB>. Examine <CRC> and if the calculation matches, return <DLE> <ACK0 / ACK1> to terminate the message transfer, otherwise return <NAK> and make a retransmission request. 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. 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 then distributes the processing path of the object data sent from the data transfer unit 73 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. Here, uppercase and lowercase letters are not distinguished in the extension data.

件数判定部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”, “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 a 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 for using numbers 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 specified character information M (for example, numbers 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 the data 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 vCard file format data 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 attached JPEG image data 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 receives a vNote file of a type including text data described by the memo pad function, the text data format conversion unit 85 receives 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 defined to a layout format (XHTML) so that it can be printed with a predetermined layout at the time of 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に転送する。そして、予め用意されたデコード用プログラム(Base64)を起動させて、エンコード画像データをJPEG画像データにデコードする。このように画像データデコード部87は、拡張子が「vnt」であるけれどもデータの中身までも正しくvNote形式であるかどうかを事前に解析及び検証する。画像データデコード部87は、デコード後のJPEG画像データを、画像データラスタ処理部76に送出する。   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, it is confirmed whether or not there is a property or the like that should be provided in the case of vNote file format data. 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 the text data described by the memo pad function is analyzed, the text data is transferred to the text data format conversion unit 85. To do. Then, a decoding program (Base 64) prepared in advance is activated to decode the encoded image data into JPEG image data. In this way, 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言語(タグ)で記述された内容(レイアウトテンプレート情報のXHTML言語(タグ)を解析して個人情報テキスト(各プロパティの値)の割付領域を演算し、演算した各割付領域の位置座標データ(アドレスデータ)を取得する。レイアウト設定処理では、個人情報テキストの文字コードをキャラクタデータに変換するとともに、得られたキャラクタデータをテンプレートで指定された割付領域から決まるアドレスに所定の文字サイズのドットデータとして展開する。この展開されたドットデータに色変換処理及び2値化処理を施した後、その2値化データに印刷時のドット形成順序に並び替える処理を施す。なお、XHTML解析処理の結果、XHTMLデータが画像を含む(アドレス指定のみ)場合は、その画像のアドレスデータを指定して携帯電話14に画像データを転送させる転送要求を出し、この転送要求に応答して携帯電話14から画像データが転送されると、その画像とテキストを併せた全体についてレイアウト設定処理を行う。よって、テキストと画像を含む場合は、テキストと画像が所定位置に配置されたレイアウトが決定される。ここで、vCardデータに画像が含まれる場合、エンコードされた画像データのデコード処理(Base64)が必要であるが、本実施形態では、携帯電話14から取得した画像データを画像データデコード部87に一旦送り、画像データデコード部87においてデコード処理された後のJPEGデータをテキストデータラスタ処理部75へ戻すことで間接的にデコード処理を行うようにしている。このようにvCardデータが画像を含む場合、本実施形態のようにvCardデータに画像のアドレスデータのみ埋め込まれた構成でもよいし、vCardデータに画像データが最初から埋め込まれている構成でもよい。この後者の構成の場合は、画像データのみを後から転送させる転送処理を不要にすることができる。   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 contents described in the XHTML language (tag) (the XHTML language (tag) of the layout template information is analyzed to calculate the allocation area of the personal information text (value of each property), and the calculated position coordinates of each allocation area In the layout setting process, the character code of the personal information text is converted into character data, and the obtained character data is assigned to an address determined from the allocation area specified by the template. The data is expanded as dot data, and after color conversion processing and binarization processing are performed on the expanded dot data, processing for rearranging the binarized data in the dot formation order at the time of printing is performed. As a result, if the XHTML data includes an image (address specification only), the image A transfer request is made to transfer the image data to the mobile phone 14 by designating the address data. When the image data is transferred from the mobile phone 14 in response to the transfer request, the layout is set for the entire image and text together. Therefore, when the text and the image are included, the layout in which the text and the image are arranged at a predetermined position is determined.Here, when the vCard data includes the image, the encoded image data is decoded. (Base 64) is necessary, but in this embodiment, the image data acquired from the mobile phone 14 is once sent to the image data decoding unit 87, and the JPEG data after being decoded by the image data decoding unit 87 is converted into a text data raster. The decoding process is indirectly performed by returning to the processing unit 75. As described above, when vCard data includes an image, only the address data of the image may be embedded in the vCard data as in this embodiment, or the image data may be embedded in the vCard data from the beginning. In the case of the configuration, it is possible to eliminate the transfer process for transferring only the image data later.

画像データラスタ処理部76は、JPEG画像データにラスタ処理を施す。但し、ラスタ処理の前に、画像データデコード部87を経由せず直接送られてきたJPEGデータについては、データの中身を解析してJPEGファイル形式のデータであるか否かを検証する。例えばJPEGファイル形式のデータであれば備えているはずの情報の有無を確認する。JPEGファイル形式のデータでなければデータを破棄する。一方、JPEGファイル形式のデータであれば、ラスタ処理に移行する。このように画像データラスタ処理部76は、拡張子が「jpeg」であるけれどもデータの中身までも正しくJPEG形式であるかどうかを事前に解析及び検証する。   The image data raster processing unit 76 performs raster processing on the JPEG image data. However, before the raster processing, JPEG data sent directly without going through the image data decoding unit 87 is analyzed to verify whether it is JPEG file format data. 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 JPEG file format, the data is discarded. On the other hand, if the data is in the JPEG file format, the process proceeds to raster processing. In this way, 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)を使って表現する表色系)の多値画像データをさらにRGB表色系の多値画像データに変換する。そして、レイアウト設定処理では、RGB表色系の多値画像データを用紙上に割り付ける割付領域を演算し、演算した割付領域から決まるワークメモリ(イメージバッファ)44b上のアドレスにその画像を所定サイズのドットデータとして展開する。この展開された画像データ(ドットデータ)に色変換処理及び2値化処理を施した後、その2値化データに印刷時のドット形成順序に並び替える処理を施す。先に説明したテキストデータラスタ処理部75におけるレイアウト設定処理後のJPEG画像のラスタ処理についても同様の処理が行われる。また、vNoteデータにテキストが含まれる場合は、画像データラスタ処理部76がテキストと画像の全体についてレイアウト設定処理を行うようになっている。   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, it is first decompressed into uncompressed image data. The multi-valued image data of the YCbCr color system (color system expressed using luminance (Y), blue color difference (Cb), and red color difference (Cr)) obtained by decompression is further converted to RGB color system. Convert to 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.

プリントエンジン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は、BT対応携帯端末BCで扱われるファイル形式(XHTML形式とJPEG形式)のデータでも印刷できるように、プリンタ1にCF型通信カード受信方式の採用前から備えられた既存のものである。本例では、CF型通信カード13を介して受信した携帯電話対応形式のファイルデータでも印刷できるように追加が必要な機能部分についてこの既存部分を流用することによりその最小化を図っている。つまり、携帯電話対応形式(vCard形式とvNote形式)のデータをBT対応形式へ形式変換する機能部分をIrDAプロファイル処理部74に追加することにより、形式変換後のデータ処理については各ラスタ処理部75,76を流用するようにしている。   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 BT compatible portable terminal BC can be printed. It is an existing one that was provided before the method was adopted. In this example, minimization is achieved by diverting the existing part of 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) to a BT compatible format, each raster processing unit 75 is used for data processing after format conversion. , 76 is diverted.

図6は、2つのラスタ処理部とプリントエンジンの一部とにより構成され、XHTML形式及びJPEG形式の各データから印刷データを生成する画像処理装置の概略構成を示す。この画像処理装置は、主にCPU41、ASIC46、ROM42、EEPROM43及びRAM44から構成される。但し、処理の一部についてはCPU41がプログラムを実行するソフトウェアにより実現している。もちろん、大部分の処理をハードウェア回路で実現するのではなく、半分以上の処理をソフトウェアにより実現することもできる。   FIG. 6 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 performs image processing for developing dot data including at least one of character data and image data on the work memory 44b and rearranging the pixel order of the developed dot data to the raster scan order. .

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

<XHTMLデータのラスタ処理>
まず、XHTMLデータにラスタ処理を施すテキストデータラスタ処理部75の処理について説明する。なお、テキストデータラスタ処理部75は、解釈処理部90、メモリコントローラ93、キャラクタジェネレータ98及び第1バッファ75aなどにより構成される。
<Raster processing of XHTML data>
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データに変換するキャラクタジェネレータ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 a character generator 98 for converting the character code (character code) into CG data. Has been built. 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に転送される。XHTMLデータは、個人情報が記述された本文であるキャラクタデータと、個人情報の本文がレイアウトされるべき場所を記述するテンプレートタグとを含む。   The XHTML data sent to the text data raster processing unit 75 is first transferred to the interpretation processing unit 90. The XHTML data includes character data that is a text in which personal information is described, and a template tag that describes a place where the text 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, layout data (address (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) of 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. Then, the memory controller 93 rearranges the developed pixel order into the raster scan order, stores it in the first buffer 75a, and then 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画像データのラスタ処理>
次にJPEG画像データにラスタ処理を施す画像データラスタ処理部76の処理について説明する。なお、画像データラスタ処理部76は、JPEG解凍器91、YCbCr/RGBコンバータ92、メモリコントローラ93及び第2バッファ76aなどにより構成される。
<Raster processing of JPEG image data>
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多値画像データに色変換する回路である。この色変換には以下の変換式が使用される。   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
メモリコントローラ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メガバイト)。
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に送られる。色変換処理部94は、RGB多値画像データをCMYK多値画像データに色変換する回路である。さらに2値化処理部95は、そのCMYK多値画像データをCMYK2値画像データに2値化する回路である。   The RGB multilevel image data transferred to the image processing unit 46 a is sent to the color conversion processing unit 94. 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. It should be noted 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.

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

本実施形態のプリンタ1は、ホストコンピュータ内のプリンタドライバから受信した印刷データを扱う印刷処理機能と、メモリカードから読み取った画像データ(JPEG)を処理する印刷処理機能と、BT通信方式で受信したXHTMLデータを処理する印刷処理機能とを備える。そして、本実施形態では、赤外線通信方式の採用に当たり、メモリカード用に元々備えられたカードスロット12を利用して、IrDA通信モジュールをCF型通信カード13の形で提供しカード形式で実装できるようにしている。従って、プリンタ1の筐体(本体ケース)などの形状設計変更が不要で、プリンタ1の筐体は赤外線通信方式の導入前後で共通のものを使用できるので、その設計変更や製造金型変更の必要もない。また、プリンタ1の内部的にはIrDA通信プロトコル及びアプリケーションなどソフトウェアの追加・変更のみで済ませている。これにより、既存の回路などには手を加えず既存のものを共用する形で、IrDA通信機能を追加するようにしている。   The printer 1 of this 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 BT 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 printer 1 casing can be used before and after the introduction of the infrared communication system. 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 way that the existing circuit is shared and the existing circuit is shared.

以下、図8を用いて、赤外線通信方式を導入するに当たり既存の構成の共用によって簡素な構成の追加のみで済ませたプリンタの特徴的構成について説明する。
赤外線通信方式の導入に当たり追加されたのは、カードスロット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 an infrared communication method is introduced 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画像データをラスタ処理する機能をもち、図7で既に説明したように解凍器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 and a YCbCr / RGB converter 92 as already described with reference to FIG.

また、BT通信方式を実現する構成部分は、BT通信部45cとテキストデータラスタ処理部75と画像データラスタ処理部76である。BT通信部45cは、BT通信回路(物理層)125、BT通信プロトコルスタック(以下、BTスタックと称す)126、ファイル転送部(OBEX)127、BPP128及びBIP129(共にアプリケーション層)を備える。このBT通信部45cにデータを送信するBT対応携帯端末BCもほぼ同様の通信レイヤ構造をもち、BT通信回路(物理層)131、BTスタック132、ファイル転送部(OBEX)133、BPP134及びBIP135(共にアプリケーション層)を備えている。テキストデータラスタ処理部75は、XHTML形式のテキストデータをラスタ処理する機能をもち、図7で既に説明したように解釈処理部90とキャラクタジェネレータ98などを有する。また、BT通信部45cで受信されたJPEG画像データは、画像データラスタ処理部76へ転送されてラスタ処理される。つまり、BT通信方式とメモリカード読取り方式は、同じファイル形式の画像データを扱うことからそのラスタ処理には、画像データラスタ処理部76を共用している。   Further, the components that realize the BT communication method 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 BT communication circuit (physical layer) 125, a BT communication protocol stack (hereinafter referred to as BT stack) 126, a file transfer unit (OBEX) 127, BPP128, and BIP129 (both application layers). The BT compatible mobile terminal BC that transmits data to the BT communication unit 45c also has a substantially similar communication layer structure, and includes a BT communication circuit (physical layer) 131, a BT stack 132, a file transfer unit (OBEX) 133, a BPP 134, and a BIP 135 ( Both have an application layer). The text data raster processing unit 75 has a function of raster processing text data in XHTML format, and has an interpretation processing unit 90 and a character generator 98 as already described with reference to FIG. 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 BT 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 the 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. Of these, the character code is converted into a dot-pattern character pattern by the character generator 98. The converted 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を有している。テキストデータ処理部141は、vCardテキストデータをテンプレート組込み記述形式のXHTMLテキストデータに変換する。つまり、テキストデータ処理部141は、携帯電話対応形式であるvCardテキストデータをBT対応形式であるXHTMLテキストデータに変換することで、BT対応形式データ処理に用意されているテキストデータラスタ処理部75を利用する。また、画像データ処理部142はvNote添付形式のエンコード画像データをJPEG画像データに変換(デコード)する。つまり、画像データ処理部142は、携帯電話対応形式であるvNote添付形式のエンコード画像データをJPEG画像データに変換(デコード)することで、BT対応形式及びメモリカード対応形式データ処理のために用意されている画像データラスタ処理部76を利用する。このように各ラスタ処理部75,76は、BT対応形式と携帯電話対応形式の各データのラスタ処理に共用されている。   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. The text data processing unit 141 converts the vCard text data into XHTML text data in a template embedded description format. In other words, the text data processing unit 141 converts the vCard text data that is a mobile phone compatible format into XHTML text data that is a BT compatible format, so that the text data raster processing unit 75 prepared for the BT 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 BT 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 each data in the BT compatible format and the 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. In addition, after raster processing of text data received by any of the above 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.

また、図8に示すように、プリンタ1には、認証コード記憶部151及び認証コード管理部152が備えられている。BT対応携帯端末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. 8, the printer 1 includes an authentication code storage unit 151 and an authentication code management unit 152. The BT compatible mobile terminal BC and the mobile phone 14 are provided with a function for 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 the authentication code is input by operating the operation unit 10 in the selected state of the authentication code registration menu 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 45 c 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 communication card 13 and stores it in the storage unit 154 when the CF communication card 13 is detected for the first time after the printer 1 is turned on. To do.

<OBEXデータ構造>
次に、携帯電話14とCF型通信カード13間で行われるIrDA通信について説明する。
<OBEX data structure>
Next, IrDA communication performed between the mobile phone 14 and the CF type communication card 13 will be described.

図9は、ファイル転送時に用いられるOBEX仕様のデータ構造を示す。データDAは、オペコードOPとヘッダHDとデータボディDBとからなる。オペコードOPには通信に関する命令が記述される。命令には「Connect 」「Disconnect」「PUT 」「FPUT」「GET 」「FGET」「Abort 」「Response」等が用意されている。   FIG. 9 shows the data structure of the OBEX specification used at the time of file transfer. The 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”, “Response”, and the like are prepared as commands.

「Connect 」は接続要求、「Disconnect」は切断要求をそれぞれ意味する。また、「PUT 」はデータ受け取り要求、「FPUT」は最終データ受け取り要求(送信データ終了の意を含む)、「GET 」はデータ取り出し要求、「FGET」は最終データ取り出し要求(受信データ終了の意を含む)をそれぞれ意味する。また、「Abort 」は中断、「Response」は応答をそれぞれ意味する。   “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”. In “Authentication”, an authentication code (pin code) that can verify the qualification to access information is described. 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.

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

図10は、携帯電話→赤外線通信カード(CF型通信カード)→プリンタの流れでデータを転送する転送処理シーケンスを示す。
携帯電話14でデータ送信操作を行うと、まず物理層であるIrDA通信回路61,121間におけるIrDA接続(物理接続)が行われる。携帯電話14からIrDA接続要求が出され、これにCF型通信カード13が応答する形でIrDA接続が確立される。次にOBEX接続(論理接続)が行われる。携帯電話14から「Connect 」をオペコードOPとするデータを送信することでOBEX接続(論理接続)を要求し、これにCF型通信カード13が「Response」をオペコードOPとするデータで応答する形でOBEX接続(論理接続)が確立される。
FIG. 10 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 transmits data having “Connect” as the operation code OP to request OBEX connection (logical connection), 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としデータボディDBにブロックを入れたデータDAを作成してこれを送信する。以後順次、「Response」をオペコードOPとするデータの受信を待ってから、「PUT」をオペコードOPとする次のデータDAを送信する。   When the logical connection is established, the file transfer unit 123 divides the file data into data lengths that are within the maximum allowable data length of the data body DB, and transfers the data in multiple 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 data body DB 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 the “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, a disconnection request with OP code OP as “Disconnect” 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切断の順序を経て通信リンクが遮断される。また、本例では、プリンタ1から携帯電話14へファイル転送する機能は備えていないが、携帯電話14から「GET 」をオペコードOPとするデータがCF型通信カード13へ送られたときは、プリンタ1のメモリに格納されたファイルを携帯電話14へ転送する転送機能をプリンタ1に設けてもよい。   Note that if the mobile phone 14 is interrupted during data transmission, data having an operation code OP of “Abort” is transmitted to the CF type communication card 13. Also in this case, the communication link is cut off through the same sequence of IrDA disconnection and OBEX disconnection. In this example, the file transfer function from the printer 1 to the mobile phone 14 is not provided. However, when data having an 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.

<認証コードの共有化>
このようにIrDA通信では、通信のはじめにIrDA接続(物理接続)とOBEX接続(論理接続)が確立されるが、そのうち先の認証コードはOBEX接続時に要求される。一方、BT対応携帯端末BCでも、通信のはじめに物理接続と論理接続が確立されるが、そのうち先の認証コードは物理接続時に要求される。この2つの通信方式で必要になる認証コードは、プリンタ1の認証コード登録機能を使って予め登録されたものをCF型通信カード13とBT通信部45cとで共通に使用する。
<Sharing of authentication code>
As described above, in IrDA communication, an IrDA connection (physical connection) and an OBEX connection (logical connection) are established at the beginning of the communication, and an earlier authentication code is requested at the time of the OBEX connection. On the other hand, in the BT-compatible mobile terminal BC, the physical connection and the logical connection are established at the beginning of communication, but the earlier authentication code is requested at the time of the physical connection. The authentication code required for the two communication methods is pre-registered using the authentication code registration function of the printer 1 and is used in common by the CF communication card 13 and the BT communication unit 45c.

以下、2つの通信方式で共有される認証コード登録機能について詳しく説明する。まず認証コードを登録する際、画面9aに表示されたメニューの中から「認証コード登録」を選択する。その認証コード登録が選択されたことを認知したCPU41は、その画面9aに入力欄を表示させて認証コードの入力をユーザに促す。操作部10を操作して認証コードが入力されると、CPU41はその認証コードをEEPROM43の所定記憶領域(図8における認証コード記憶部151)に記憶する。   Hereinafter, the authentication code registration function shared by the two communication methods will be described in detail. First, when registering an authentication code, “authentication code registration” is selected from the menu displayed on the screen 9a. Recognizing that the authentication code registration has been selected, the CPU 41 displays an input field on the screen 9a to prompt the user to input the authentication code. When the authentication code is input by operating the operation unit 10, the CPU 41 stores the authentication code in a predetermined storage area of the EEPROM 43 (authentication code storage unit 151 in FIG. 8).

図8に示す認証コード管理部152は、CPU41がプリンタ電源投入時の初期化処理においてROM42に記憶された認証コード管理プログラムを実行することにより起動される。認証コード管理部152は、認証コード記憶部151から認証コードを読み出し、その認証コードを例えばレジスタに格納して管理する。認証コード管理部152は、BT通信部45cとCF型通信カード13のいずれかからコード要求を受け付けると、その要求元に認証コードを送信する。BT通信部45cはプリンタ1の初期化処理時にコード要求を出力し、CF型通信カード13はプリンタ1の電源投入後はじめて電気的に接続された際にコード要求を出力する。また、認証コード管理部152は、操作部10が操作されて認証コードが追加・消去など更新された旨の通知を受ける度に、更新後の認証コードを認証コード記憶部151から読み出してBT通信部45cとCF型通信カード13に送信する。   The authentication code management unit 152 shown in FIG. 8 is activated when the CPU 41 executes the authentication code management program stored in the ROM 42 in the initialization process when the printer power is turned on. The authentication code management unit 152 reads the authentication code from the authentication code storage unit 151 and stores the authentication code in a register, for example, for management. Upon receiving a code request from either the BT communication unit 45c or the CF type communication card 13, the authentication code management unit 152 transmits an authentication code to the request source. The BT communication unit 45c outputs a code request when the printer 1 is initialized, and the CF communication card 13 outputs a code request when it is electrically connected for the first time after the printer 1 is turned on. The authentication code management unit 152 reads the updated authentication code from the authentication code storage unit 151 and performs BT communication every time the operation unit 10 is operated to receive notification that the authentication code has been updated such as addition / deletion. To the unit 45c and the CF-type communication card 13.

BT通信部45cとCF型通信カード13には、通信時に認証コードが必要になる通信レイヤと同層又はその上位層に、認証コードの格納部153,154が設けられている。物理接続時に認証コードが必要になるBT通信部45cでは、例えばBTスタック126に格納部153が備えられている。また、論理接続時に認証コードが必要になるCF型通信カード13では、例えばオブジェクト送受信部64に格納部154が備えられている。   The BT communication unit 45c and the CF-type communication card 13 are provided with authentication code storage units 153 and 154 in the same layer as the communication layer that requires an authentication code during communication or in an upper layer thereof. In the BT communication unit 45c that requires an authentication code at the time of physical connection, for example, a storage unit 153 is provided in the BT stack 126. In the CF type communication card 13 that requires an authentication code at the time of logical connection, for example, the object transmission / reception unit 64 includes a storage unit 154.

BT通信回路125は、物理接続時に認証コードが必要になった場合、BTスタック126に認証コード要求を行い、BTスタック126は認証コードをBT通信回路125に送信する。BT通信回路125は、受信した認証コードと格納部153から読み出した認証コードとを照合する。一方、IrDA通信回路61は、論理接続時に受信したデータ中のヘッダHDの「Authentication」に認証コードが付されていると、格納部154から認証コードを読み出して両認証コードを照合する。照合の結果、両認証コードが一致する場合はデータの受信を許可し、両認証コードが不一致である場合はそのデータの受信を拒否する。このようにBT通信部45cとCF型通信カード13のどちらも認証コードを認証コード管理部152から取得しており、認証コード登録機能についてもBT通信とIrDA通信で共有化が図られている。   The BT communication circuit 125 makes an authentication code request to the BT stack 126 when an authentication code is required during physical connection, and the BT stack 126 transmits the authentication code to the BT communication circuit 125. The BT communication circuit 125 collates the received authentication code with the authentication code read from the storage unit 153. On the other hand, if an authentication code is added to “Authentication” of the header HD in the data received at the time of logical connection, the IrDA communication circuit 61 reads the authentication code from the storage unit 154 and collates both authentication codes. As a result of the verification, if the two authentication codes match, the reception of data is permitted, and if the two authentication codes do not match, the reception of the data is rejected. As described above, both the BT communication unit 45c and the CF-type communication card 13 acquire the authentication code from the authentication code management unit 152, and the authentication code registration function is also shared by BT communication and IrDA communication.

<CF型通信カードの表示部点灯制御>
次に、データ受信状態を報知する表示部13bの点灯制御について詳しく説明する。CF型通信カード13の表示部13bは、携帯電話14からデータの受信状態をユーザに報知する。
<Control of lighting of display part of CF type communication card>
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.

図11は表示部の表示制御装置を示し、図12は通信ステータスと表示態様(点灯態様)との関係を示す。
図11に示すように、表示制御装置158は、カード制御部31に内蔵されたCPU159及び点灯駆動制御回路160と、この点灯駆動制御回路160を介してCPU159に点灯制御(表示制御)される2つのLED161,162とを備える。2つのLED161,162はそれぞれ点灯色(表示色)が異なり、本例ではLED161が緑色、LED162が赤色にそれぞれ点灯可能である。
FIG. 11 shows the display control device of the display unit, and FIG. 12 shows the relationship between the communication status and the display mode (lighting mode).
As shown in FIG. 11, 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 through 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 the lighting of the two LEDs 161 and 162 based on the signal S.

図12に示すように、通信ステータスには、「受信不可」、「受信可能」、「受信中」、「受信完了」及び「エラー発生」の5種類がある。この通信ステータスと点灯制御内容の関係を示す設定データSDは、メモリ32の所定記憶領域に記憶されている。CPU159は、レジスタ159aに書き込んだ現在の通信ステータスに基づきデータDAを参照しつつ2つのLED161,162を5種類の点灯態様のうちいずれか一つに点灯制御する。本例では、5種類の通信ステータスに応じた点灯態様として、「消灯」、「緑点灯」、「緑点滅」、「橙点灯」、「赤点滅」の5つが設定されている。橙色は、緑と赤の各LED161,162を同時に点灯させることで発色させている。   As shown in FIG. 12, 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 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”.

図13及び図14は、通信ステータスの遷移の仕方を説明するもので、2つの遷移例を示す。図13と図14の違いは、「受信完了」時と「エラー発生」時の遷移先ステータスが異なるのみで、「受信不可」→「受信可能」→「受信中」→「受信完了」→「エラー発生」の遷移の仕方は同様である。図13は、エラー発生時は常に「エラー発生」ステータスに遷移し、表示部13bを赤点滅(エラー表示)させる例である。一方、図14は、携帯電話14のディスプレイ18にエラー表示される場合は表示部13bにエラー表示はせず、携帯電話14のディスプレイ18にエラー表示されない場合のみ表示部13bにエラー表示する例である。同図に示すように通信ステータスが遷移することで表示部13b(LED161,162)の表示態様(点灯態様)が変化する。尚、図13,図14の「3秒経過後」の3秒という期間は、ユーザが認識できる目安であるため、必ず3秒である必要はない。   FIG. 13 and FIG. 14 explain how the communication status transitions, and show two transition examples. The only difference between FIG. 13 and FIG. 14 is that the transition destination status at the time of “reception completed” and “error occurrence” is different, “reception impossible” → “reception possible” → “receiving” → “reception completed” → “ The method of transition of “error occurrence” is the same. FIG. 13 shows an example in which an error always occurs when an error occurs, and the display unit 13b blinks red (error display). On the other hand, FIG. 14 shows an example in which no error is displayed on the display unit 13b when an error is displayed on the display 18 of the mobile phone 14, and an error is displayed on the display unit 13b only when no error is displayed on the display 18 of the mobile phone 14. is there. 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. Note that the period of 3 seconds “after 3 seconds” in FIGS. 13 and 14 is a guideline that can be recognized by the user, and is not necessarily 3 seconds.

まず図13及び図14に共通な「受信不可」〜「受信完了」までの通信ステータス遷移について説明する。カード制御部31のCPU159は、プリンタ1が初期化処理状態にあるとき又は赤外線通信にインターロックがかかっているときにUARTドライバ72から出力されるレディ(Ready)コマンドを受け取らない場合は、「受信不可」の通信ステータスを設定する。つまりCPU159はレジスタ159aに「受信不可」のビットデータを書き込む。ここで、レディコマンドが出力されない場合は、CPU41がプリンタ1の電源投入直後に実施する初期化処理中にあるときと、他の通信方式によるデータ受信が先に行われたため赤外線通信方式によるデータ受信が禁止されるインターロック中である。「受信不可」の通信ステータスにあるときはLED161,162が全て消灯し、表示部13bは「消灯」の状態となる。   First, a description will be given of the communication status transition from “cannot be received” to “reception completed” common to FIGS. 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” Set the communication status to “Not possible”. That is, 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 that is performed immediately after the printer 1 is turned on and when the data reception by the other communication method is performed first, the data reception by the infrared communication method is performed. Is forbidden interlock. When the communication status 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 the initialization process and the setup process are completed. As a result of the interlock process, the UART driver 72 outputs a Ready command to the card control unit 31 when the CPU 41 permits the release of the interlock.

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

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

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

CPU159は、携帯電話14からのオブジェクトデータの受信が完了したとき、レジスタ159aの値を「受信中」から「受信完了」のビットデータに書き替える。CF型通信カード13がデータを受信し終わると、この「受信完了」の通信ステータスに移行する。この移行タイミングとしては、携帯電話14から最後のPUT(FPUT)を受信したときか、最後のPUT(FPUT)に対しその応答(Response)を送信したときか、OBEX切断(Disconnect)(論理接続の切断)のデータを受信したときか、IrDA切断(物理接続の切断)を受信したときかのいずれかが挙げられる。「受信完了」の通信ステータスにあるときは、緑と赤の2つのLED162,163が同時に点灯し、表示部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 shifts to the “reception completed” communication status. This transition timing includes when the last PUT (FPUT) is received from the mobile phone 14, when the response (Response) is transmitted to the last PUT (FPUT), or when OBEX disconnection (Disconnect) (logical connection (Disconnection) data is received, or IrDA disconnection (disconnection of physical connection) is received. When the communication status is “reception completed”, the two LEDs 162 and 163 of green and red are turned on simultaneously, and the display unit 13b is in the “lighting of orange” state.

CPU159は、携帯電話14からデータを受信する通信状態にエラーが発生したことを検出すると、レジスタ159aの値を「エラー発生」のビットデータに書き替える。「エラー発生」の通信ステータスにあるときは、LED163が点滅することで表示部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 with the bit data of “error occurrence”. When the communication status is “Error occurrence”, the LED 163 blinks and the display unit 13b blinks red.

エラー発生をユーザに表示部13bの点灯制御によって報知する方法には、図13及び図14に示す2つのケースが挙げられる。
以下、それぞれのケースについて通信ステータスの状態遷移を説明する。
There are two cases shown in FIGS. 13 and 14 as a method of notifying the user of the occurrence of an error by controlling the lighting of the display unit 13b.
Hereinafter, the state transition of the communication status will be described for each case.

図13に示すように、例えばプリンタ1の電源投入後にCF型通信カード13をカードスロット12に挿着すると初期化処理が開始され、この初期化処理状態下では、「受信不可」の通信ステータスAとなる。この初期化処理が終了すると、プリンタ1が受信可能状態になってレディコマンドがCF型通信カード13へ出力され、「受信可」の通信ステータスBとなる。次に携帯電話14からデータを送信すると、データ送信開始時のコマンドが確認されて「受信中」の通信ステータスCとなる。そして、データ送信が完了すると、データ送信完了時のコマンドが確認されて「送信完了」の通信ステータスDとなる。通信ステータスDになるとその後所定時間(例えば3秒)経過すると、通信ステータスAへ移行する。従って、データ送信完了時は表示部13bが3秒間だけ「橙点灯」した後、消灯する。   As shown in FIG. 13, for example, when the CF-type communication card 13 is inserted into the card slot 12 after the printer 1 is turned on, the initialization process is started. It becomes. When this initialization process is completed, the printer 1 is ready for reception and a ready command is output to the CF-type communication card 13, resulting in a communication status B of “Receivable”. Next, when data is transmitted from the mobile phone 14, the command at the start of data transmission is confirmed, and the communication status C becomes “receiving”. When the data transmission is completed, the command at the completion of the data transmission is confirmed, and the communication status D becomes “transmission complete”. When the communication status D is reached, when a predetermined time (for example, 3 seconds) elapses thereafter, the communication status A is entered. Therefore, when the data transmission is completed, the display unit 13b is "lit orange" for 3 seconds and then turned off.

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

通信ステータスB→Eへ移行する場合は、物理接続又は論理接続の失敗の場合と、未対応ファイル受信(拡張子チェックエラー)の場合と、 Setupコマンド失敗の場合とが挙げられる。   The transition from communication status B to E includes the case of failure of physical connection or logical connection, the case of unsupported file reception (extension check error), and the case of failure of the Setup command.

通信ステータスC→Eへ移行する場合は、携帯電話14からCF型通信カード13へのファイル転送失敗(IrDA通信)の場合と、CF型通信カード13からプリンタ1へのオブジェクトデータ転送失敗(伝送制御手順)の場合とが挙げられる。さらに、対応ファイルのデータ異常時(ファイルデータチェックエラー)の場合と、他の通信部からの受信データの印刷処理中の場合(インターロックは解除されたが他のデータがまだ印刷処理中であった場合)とが挙げられる。例えばFPUTを受信することなくタイムアウトになったときには、CPU159(オブジェクト送受信部64)は携帯電話14との接続を切断する。プリンタ1側で次のパケットを受信することなくタイムアウトになったときは、エラーが発行され携帯電話14との接続が切断される。この接続が遮断された後は、携帯電話14側へエラーを通知する手立てがなくなるので、CF型通信カード13の表示部13bを赤点滅させることで、ユーザにデータ送信の失敗を報知する。   When the communication status changes from C to E, the file transfer from the mobile phone 14 to the CF communication card 13 (IrDA communication) fails, and the object data transfer from the CF communication card 13 to the printer 1 fails (transmission control). Procedure). 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 in 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にエラー表示がなされる。   The transition from the communication status D to E includes the case of data transmission failure from the CF type communication card 13 to the printer 1 (transmission control procedure) and the case of data error in the corresponding file (file data check error). It is done. 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 occurs while communication between the mobile phone 14 and the CF-type communication card 13 is established. Notification is made and an error is displayed on the display 18.

次に、図14に示すケースでは、通信ステータスA→B→C→D→Eの遷移については図13の場合と同様である。各通信ステータスB,C,Dにおいてエラーが発生した場合は、そのエラー内容が携帯電話14のディスプレイ18にエラー表示されるものであるときは、通信ステータスEへは移行せずそのまま通信ステータスAへ移行する。従って、携帯電話14のディスプレイ18でエラー表示される場合は、あえて表示部13bによるエラー報知は必要ないとの前提で、通信ステータスAへ移行し表示部13bは消灯する。但し、「受信完了」の通信ステータスDでエラー発生が起きた場合、既に通信リンクが遮断された携帯電話14のディスプレイ18にはそのエラー発生の旨が表示されないので、この場合は通信ステータスDからEへ移行し、表示部13bを赤点滅させることによりユーザにエラー発生を報知する。そして、このケースにおいても、通信ステータスEになるとその後所定時間(例えば3秒)経過すると、通信ステータスAへ移行する。従って、エラー発生時は表示部13bが3秒間だけ「赤点滅」した後、消灯する。なお、同図13及び図14においては、「エラー発生」の通信ステータスEでは3秒間赤点滅させたが、赤点滅の保持時間を設定せず、赤点滅しているステータスEにある間にインターロック処理を行い、インターロックが解除されるとステータスEからBへ移行し、赤点滅から緑点灯に変わる実施も可能である。   Next, in the case shown in FIG. 14, the transition of the communication status A → B → C → D → E is the same as that in FIG. If an error occurs in each of the communication statuses B, C, D, if the error content is displayed as an error on the display 18 of the mobile phone 14, the communication status E is not transferred to the communication status A as it is. Transition. Therefore, when an error is displayed on the display 18 of the mobile phone 14, the communication status A is entered and the display unit 13b is extinguished on the assumption that no error notification is required by the display unit 13b. However, when an error occurs in the communication status D of “reception completed”, the fact that the error has occurred is not displayed on the display 18 of the mobile phone 14 whose communication link has already been interrupted. The process proceeds to E, and the error is notified to the user by blinking the display unit 13b in red. Also in this case, when the communication status E is reached, after a predetermined time (for example, 3 seconds) has elapsed, the communication status A is entered. Therefore, when an error occurs, the display unit 13b “flashes red” for 3 seconds and then turns off. In FIG. 13 and FIG. 14, the communication status E of “error occurrence” flashes red for 3 seconds. However, the holding time of red flashing is not set, and the status E that is flashing red is displayed. When the lock process is performed and the interlock is released, the status E changes to B, and the flashing from red flashing to green lighting is also 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.

<インターロック機能>
図15は、データ転送経路の予約処理とインターロック処理を概念モデルで示すブロック図である。
<Interlock function>
FIG. 15 is a block diagram illustrating a data transfer path reservation process and an interlock process using a conceptual model.

同図は、ホスト装置(携帯電話14、携帯端末BC、ホストコンピュータ(HC)から通信インターフェイス45の各通信部45b〜45eで受信されたデータが、最終的にプリントエンジン77に至るまでその後どの処理部を順次転送されるのかその転送経路を決める仕組みを模式的に示したブロック図である。同図においてストリームパイプ149は、CPU41が1つの転送経路を排他的に選択するスイッチング機能を実現するために用意されたモジュールである。各通信部45b〜45eで受信されたデータが、最終的にプリントエンジン77に至るまで順次転送される各処理部74〜76等の状態、例えばデータ処理の実行状態(RUN )、待機状態(WAIT)、レディ状態(READY )など各処理部74〜76等の現在の状態を管理する状態管理部150が用意されている。   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), and the like to manage the current state of each processing unit 74-76, etc. Management unit 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. It has switches SW11 and SW12. 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 has 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 reception and transfer of the next data is not permitted unless all the preceding data has been 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 state management unit Only when information indicating that the print engine 77 has completed all the processing of the preceding data is obtained at 150, the connection of the switch SW11 that secures the transfer path of the next data is permitted. However, an exception process that exceptionally permits connection of the switch SW11 or SW12 is prepared even when the print engine 77 is executing the process. 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の管理内容に基づき転送経路の接続適否判断および接続処理を行うように構成されている。   Further, 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 received 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 transfer request for raster data 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 JPEG data transfer request and the case where the stream pipe 149 receives a XHTML data transfer request are described separately. First, when a JPEG data transfer request is received, the stream pipe 149 determines whether the second-stage 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, at least 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 the 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, at least the text data raster processing unit 75 has finished data processing (for example, ready state (READY )) Even if the print engine 77 is executing processing (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を接続して次データの転送経路を確保する。   When the stream pipe 149 receives a transfer request for XHTML data from any 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 are received. 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. At this time, however, the stream pipe 149 also refers to the connection state of the switch SW21 in the state management unit 150. If the switch SW21 is connected to a state in which raster data from the raster processing unit 75 or 76 can be transferred, at least the raster pipe If the processing unit 75 or 76 has finished processing, even if the print engine 77 is executing processing, the switch SW12 is exceptionally connected to secure a transfer path for the next data.

なお、「転送要求」はデータ受信時に転送経路を確保するために使用されるコマンドであるが、これに対し定期的に通信部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の各通信部45b〜45eで受信されたデータは、その種類(vCard,vNote,XHTML,JPEG等)によって転送経路が一義的に決まる。例えばIrDA通信で受信の場合、vCardデータに対してはIrDAプロファイル処理部74,テキストデータラスタ処理部75,プリントエンジン77を順次通る転送経路が選択される。vNoteデータに対してはIrDAプロファイル処理部74,画像データラスタ処理部76,プリントエンジン77を順次通る転送経路が選択される。また、BT通信で受信の場合、XHTMLデータに対してはBPP128,テキストデータラスタ処理部75,プリントエンジン77を順次通る転送経路が選択される。JPEGデータに対してはBIP129,画像データラスタ処理部76,プリントエンジン77を順次通る転送経路が選択される。   The transfer path of data received by each of the communication units 45b to 45e of the communication interface 45 is uniquely determined depending on the type (vCard, vNote, XHTML, JPEG, etc.). For example, in the case of reception through IrDA communication, a transfer path that sequentially passes through the IrDA profile processing unit 74, the text data raster processing unit 75, and the print engine 77 is selected for vCard data. For vNote data, a transfer path that sequentially passes through the IrDA profile processing unit 74, the image data raster processing unit 76, and the print engine 77 is selected. In the case of reception by BT communication, a transfer path that sequentially passes through the BPP 128, the text data raster processing unit 75, and the print engine 77 is selected for XHTML data. For JPEG data, a transfer path that sequentially passes through the BIP 129, the image data raster processing unit 76, and the print engine 77 is selected.

まずデータ転送経路を確保する予約処理について説明する。
ストリームパイプ149は、通信部45b〜45eで受信されたデータが他のデータに妨げられずスムーズに処理を進めるために、データ受信開始時に印刷に至るまでの転送経路(ストリームパイプ)を予め確保(予約)する。
First, a reservation process for securing a data transfer path will be described.
The stream pipe 149 secures a transfer path (stream pipe) 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 ( make a reservation.

この転送経路の確保は、同図では複数種のデータに共用される処理部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 that select 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, SW21. The switches SW11, SW12, and SW21 are connected so as to secure the 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 of 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にレディコマンドを出力する。   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.

CF型通信カード13は、レディコマンドの入力によってインターロック状態を解除して受信可能状態に移行するとともに表示部13bを緑点灯させて「受信可能」の旨を報知する。また、CF型通信カード13は、受信可能状態の下で携帯電話14から受信を開始したデータの受信が完了すると、この受信データのプリンタ1側への転送も終わったほぼ同時期にIrDAプロファイル処理部74からのレディコマンドの入力がなくなることから、インターロック状態に移行するとともに表示部13bを消灯させて「受信不可」の旨を報知する。このため、ユーザは例えば先行データの印刷が終了するまでの間は表示部13bが消灯中であることから携帯電話14からデータを送信できないと分かり、それゆえデータの送信を控えるので、送信したにもかかわらず受信エラーとなる頻度が減ることになる。CF型通信カード13においてインターロック状態の移行及び解除の制御はCPU159が実行する。   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 communication card 13 completes reception of data started to be received from the mobile phone 14 in a receivable state, the IrDA profile processing is performed almost at the same time when transfer of the received data to the printer 1 side is completed. 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,HCRP156,OPP157のいずれかは、受信したファイルの拡張子からデータ種を特定し、そのデータ種を特定したデータに必要な処理を施すために、ストリームパイプ149に上位層の処理部75,76,プリントエンジン77への転送を要求する。ストリームパイプ149は転送を要求されたそのデータ種のデータを要求元の処理部から上位層の処理部へ転送するため、そのポートから受信されるデータの転送経路を確保する。図15では、スイッチ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 a transfer path according to the requested data type. When any one of the communication units 45b to 45e is opened, one of the upper layer processing unit 74, BPP128, BIP129, HCRP156, and OPP157 identifies the data type from the received file extension, 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. 15, 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. The connection of the first-stage switches SW11 and SW12 is released after the connection of the second-stage switch SW21 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 ends 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 in the upper layer, that is, whether 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. The UART driver 72 does not output a ready command when it receives a notification (ready command output stop instruction) indicating that it should be interlocked from the IrDA profile processing unit 74 (determination unit 88), while it should release the interlock. When a notice to that effect (ready command output instruction) 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 both disconnected at the timing after the print processing of the preceding data is completed, the received data from the other communication unit 45b is already at that time. There are cases where the switch SW21 in the second stage is switched to occupy the transfer path. In this case, the interlock is released, but 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 is usually a 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 switched the connection of the switch SW21 in the second stage. 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 in which only one of the switches SW11 and SW12 is determined 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 transfer path of the next data can be secured only by switching the switches SW11 and SW12 at the stage, the next data can be received. For example, if 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 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 this 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 while maintaining the connection of the switch SW21 at the second stage is satisfied, the stream pipe 149 permits the reception of the JPEG data. That is, a transfer path for the JPEG data is secured. Therefore, even when the previous vNote data is just buffered in the buffer 76a after the raster processing, the next JPEG data can be received and processed even before printing. 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, it is possible to receive a plurality of next data sequentially before the printing of the preceding data is completed, and the number of next data that can be received at this time is the storage capacity 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の設定内容)を設定している。   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.

受信が確実に許可されない条件ではインターロックを解除させず、受信が許可される可能性のある条件ではインターロックを解除するようにしている。よって、表示部13bが緑点灯したにも拘わらず受信エラーとなることがありうるものの、前データの印刷終了前でも受信が許可されうるときには表示部13bを緑点灯させ、受信できるにも拘わらず表示部13bが消灯することを避けることで、受信の機会をできるだけ増やすようにしている。ユーザは表示部13bの緑点灯によって受信可能であることが分かると、次のデータを送信する。この際、先行データの印刷終了前であっても受信が許可されうる前データと次データの組み合わせは、vNoteとJPEG形式のうちから二者選択する3つの組合せと、vCardとXHTML形式のうちから二者選択する3つの組合せとの合計6種類の組合せがある。   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.

図16は、CF型通信カードをカードスロットに挿入(セット)した際に、プリンタ1側のCPU41が実行するプログラムを示すフローチャートである。以下、CPU41がCF型通信カード13を検出した時に実行する処理内容を説明する。   FIG. 16 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では、インターロック処理を行う。すなわち、先に図15を用いて説明した処理を実行する。
S50では、インターロックを解除してよいかどうかを判断する。インターロックを解除してよければS60に進み、解除できない場合は再びS40に戻る。S40に戻った場合は、以後、インターロックを解除できるまでインターロック処理を所定時間毎に実行する。
Next, in S40, an interlock process is performed. That is, the processing described above with reference to FIG. 15 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.

<CF型通信カードでの未対応データ受付禁止処理>
図17は、未対応データの受付禁止処理のプログラムを示すフローチャートである。カード制御部31内のCPU159が、このフローチャートで示されるプログラムを実行することによりオブジェクト送受信部64のこの機能が実現される。
<Unsupported data reception prohibition process with CF type communication card>
FIG. 17 is a flowchart showing a program for prohibiting reception of unsupported data. This function of the object transmitting / receiving unit 64 is realized by the CPU 159 in the card control unit 31 executing the program shown in this flowchart.

S110では、携帯電話14からデータを受信する。
S120では、受信したデータから拡張子を取り出す。すなわち、受信したデータDA(図10参照)のヘッダHD中の「Name」にあるファイル名から拡張子を取り出す。
In S110, data is received from the mobile phone 14.
In S120, the extension is extracted from the received data. That is, the extension is extracted from the file name in “Name” in the header HD of the received data DA (see FIG. 10).

S130では、記憶部64a(図6に示す)に記憶(セットアップ)された対応拡張子(拡張子データ)を読み出す。対応拡張子とは、プリンタ1が印刷対応可能なデータ(対応データ)の拡張子である。   In S130, the corresponding extension (extension data) stored (setup) in the storage unit 64a (shown in FIG. 6) is read. The corresponding extension is an extension of data (corresponding data) that can be printed by the printer 1.

S140では、受信データが対応データか否かを判定する。すなわち、S120で受信データから取得した拡張子と、S130で記憶部64aから読み出した対応拡張子とを比較判定する。本実施形態では、対応拡張子として設定された「vcf」「vnt」「jpeg」「jpg」と、受信データから取り出した拡張子とを比較処理し、両者が一致すれば受信データが対応データであると判定し、両者が不一致の場合、受信データが未対応データであると判定する。判定の結果、受信データが対応データである場合(拡張子が対応拡張子に一致の場合)はS150へ進み、一方、受信データが未対応データである場合(拡張子が対応拡張子に不一致の場合)は、S160へ進む。   In S140, it is determined whether the received data is corresponding data. That is, the extension acquired from the received data in S120 is compared with the corresponding extension read from the storage unit 64a in S130. In the present embodiment, “vcf”, “vnt”, “jpeg”, “jpg” set as corresponding extensions are compared with the extensions extracted from the received data, and if the two match, the received data is the corresponding data. If it is determined that there is no match, it is determined that the received data is unsupported data. As a result of the determination, if the received data is corresponding data (if the extension matches the corresponding extension), the process proceeds to S150. On the other hand, if the received data is unsupported data (the extension does not match the corresponding extension). In the case), the process proceeds to S160.

S150では、プリンタ1へ受信データを転送する。
S160では、表示部13bのLED162(図11に示す)を点滅制御してエラー発生を報知する。すなわち、表示部13bを赤点滅させる。
In S150, the received data is transferred to the printer 1.
In S160, the LED 162 (shown in FIG. 11) of the display unit 13b is controlled to blink to notify the occurrence of an error. That is, the display unit 13b blinks red.

S170では、受信データが対応できない旨のエラーメッセージを携帯電話14に送信する。この結果、携帯電話14のディスプレイ18に受信エラーの旨が表示される。
図18〜図22は、インターロック処理のシーケンスを示す一例である。なお、図18〜図20についてはCF型通信カードで行われる未対応データの受付禁止処理も合わせて説明している。なお、以下のインターロック処理の説明では、図16で説明した例外処理、すなわちプリントエンジン77が先行データの処理終了前であっても次データの受信を許可する例外処理については、XHTMLデータの転送要求時に起動するスイッチSW11側には適用せず、JPEGデータの転送要求時に起動するスイッチSW12側のみ適用した例で説明する。
In S170, an error message indicating that the received data cannot be handled is transmitted to the mobile phone 14. As a result, a message indicating a reception error is displayed on the display 18 of the mobile phone 14.
18 to 22 are examples illustrating a sequence of the interlock process. Note that FIGS. 18 to 20 also illustrate unacceptable data reception prohibition processing performed by the CF communication card. 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 that is activated when requested, but is applied only to the switch SW12 that is activated when a JPEG data transfer is requested.

プリンタ1が先に受信したデータがvCardデータであるときと、vNoteデータ又はJPEGデータであるときとでは、次のデータの受信を許可するインターロック解除の方法が異なる。図18はvCardデータが先に送信された例、図19及び図20はvNoteデータ又はJPEGデータが先に送信された例である。図20は先のデータの印刷実行中であっても次のデータがvNoteデータ又はJPEGデータであれば受信可能となる例を示す。図21及び図22はその他のインターロック処理を説明する。   The method of releasing the interlock that permits reception of the next data differs depending on whether the data received first by the printer 1 is vCard data or vNote data or JPEG data. 18 is an example in which vCard data is transmitted first, and FIGS. 19 and 20 are examples in which vNote data or JPEG data is transmitted first. FIG. 20 shows an example in which reception is possible if the next data is vNote data or JPEG data even while the previous data is being printed. 21 and 22 illustrate other interlock processing.

まず図18に基づいて、先にvCardデータを受信したときのインターロック処理及び未対応データの受付禁止処理について説明する。
まずプリンタ1に電源が投入されると、プリンタ1からCF型通信カード(赤外線通信カード)13に対応拡張子(拡張子データ)「vcf」「vnt」「jpeg」「jpg」がセットアップされる。その後、プリンタ1では、CF型通信カード13からの受信を許可してよいか否かを判断する処理(以下インターロック解除処理という)が行われ、受信を許可してよい(つまりインターロック状態を解除してよい)と判断すると、プリンタ1からCF型通信カード13へレディコマンドが出力される。CF型通信カード13はレディコマンドを入力するとインターロック状態を解除して受信可能状態になる。インターロック状態の解除によりそれまで消灯していた表示部13bは緑点灯する。
First, based on FIG. 18, an interlock process and an unsupported data reception 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 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 interlocked 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.

次に図19に基づいて、先にvNote又はJPEGデータを受信したときのインターロック処理及び未対応データの受付禁止処理について説明する。
プリンタ1からCF型通信カード(赤外線通信カード)13に対応拡張子(拡張子データ)「vcf」「vnt」「jpeg」「jpg」がセットアップされた後、プリンタ1からレディコマンドを受け取るとCF型通信カード13はインターロック状態を解除して受信可能な状態になる。この結果、それまで消灯していた表示部13bが緑点灯する。
Next, based on FIG. 19, 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へ転送する。このデータ受信中は表示部13bが緑点滅する。数10秒〜1分程度かけてデータの受信が完了すると、表示部13bが橙点灯になり、受信完了の旨(受信完了信号)がCF型通信カード13から携帯電話14へ通知されるとともに、CF型通信カード13がインターロック状態になる。その後しばらくしてプリンタ1からCF型通信カード13に受信完了の旨が通知される。プリンタ1は受信完了の旨を通知した後、拡張子「vnt」「jpeg」「jpg」のいずれかを持つvNote又はJPEGデータを受信した場合は、その対応データのラスタ処理が終了した時点でCF型通信カード13へレディコマンドを出力する。すなわち、図18で説明したvCardデータ送信時は印刷終了後にレディコマンドを出力したのに対し、vNote又はJPEGデータの送信時はラスタ処理終了時点でレディコマンドを出力する。その後、プリンタ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. While this data is being received, the display unit 13b blinks in green. When 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 the vCard data described in FIG. 18 is transmitted, whereas the ready command is output at the end of the raster process 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.

これに対し、図20に示すように、この印刷実行中に拡張子「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. 20, when vNote or JPEG data having any of the extensions “vnt”, “jpeg”, or “jpg” is received during the 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間での接続処理に失敗した場合は移行しない。以下、この種の例を図21に従って説明する。   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.

図21に示すように、携帯電話14から対応データが送信された場合、CF型通信カード13はそのデータをプリンタ1にすべて転送し終えると、転送終了の制御コード<EOT> をプリンタ1に送信する。この<EOT> に応答してプリンタ1から肯定応答<DLE><ACK0> を受信することによりデータリンクを開放する。同図のように<EOT> に対してプリンタ1から肯定応答<DLE><ACK0> を受信することがないままタイムアウトになると、CF型通信カード13は携帯電話14にエラー信号を送信する。このようにタイムアウトによりデータリンクが正しく開放されなかった場合に限り、インターロック状態とはならず通信可能状態を維持する。よって、タイムアウトによってデータ受信が失敗した場合は、その後引き続き携帯電話14からデータを送信し直せばCF型通信カード13にデータは受信される。   As shown in FIG. 21, when the corresponding 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 all the data has been transferred to the printer 1. To do. In response to this <EOT>, the data link is released by receiving an affirmative response <DLE> <ACK0> from the printer 1. If a time-out occurs without receiving an affirmative response <DLE> <ACK0> from the printer 1 to <EOT> as shown in the figure, the CF-type 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 if the data is subsequently transmitted again from the mobile phone 14.

これに対し、図22に示すように、転送終了の制御コード<EOT> に対する肯定応答<DLE><ACK0> をプリンタ1から受信した場合は、通信終了(データリンク開放)後、CF型通信カード13はインターロック状態に移行する。   On the other hand, as shown in FIG. 22, when an affirmative 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 shifts to an interlock state.

<IrDAとBT通信時の競合回避処理>
次に、CF型通信カード13による赤外線通信方式と、他の通信方式との間で通信の競合を回避する競合回避処理について説明する。
<Conflict avoidance process during IrDA and BT communication>
Next, a conflict avoidance process for avoiding communication conflict between the infrared communication method using the CF communication card 13 and another communication method will be described.

図23は、他の通信方式との競合回避処理の一例を示すシーケンスである。この図では、赤外線通信によるデータ受信と、BT通信方式によるデータ受信との競合を回避する例を示すが、その他の通信方式との競合を回避する場合も基本的に同じである。   FIG. 23 is a sequence illustrating an example of a conflict avoidance process with another communication method. In this figure, an example of avoiding a conflict between data reception by infrared communication and data reception by the BT communication method is shown, but the same is basically true when a conflict with other communication methods is avoided.

ところで、カードスロット12は、詳しくは、CF型メモリカードとはサイズ形状の異なる他の形式(例えばSD(TM)型)のメモリカードであれば同時に挿入可能な開口形状を有している。このため、CF型通信カード13がセットされた状態でも、CF型以外の形式のメモリカードをカードスロット12に同時に挿入可能となっている。この場合、メモリカードがセットされていても、CF型通信カード13の受信を有効にする。つまり、CPU41は、CF型通信カード13とメモリカードを共に検出した場合、CF型通信カード13の受信も有効とする。但し、メモリカードからのデータ読み込み中は、CF型通信カード13の受信を無効にする。この点は、他の通信方式の通信部とデータ受信が競合した場合も基本的に行われる処理は同じである。   By the way, the card slot 12 has an opening shape that can be inserted simultaneously if it is a memory card of another type (for example, SD (TM) type) different in size from the CF type memory card. For this reason, even when the CF communication card 13 is set, a memory card of a format other than the CF type can be simultaneously inserted into the card slot 12. In this case, reception of the CF type communication card 13 is validated even if a memory card is set. That is, when the CPU 41 detects both the CF communication card 13 and the memory card, the CPU 41 also enables reception of the CF communication card 13. However, reception of the CF type communication card 13 is invalidated while data is being read from the memory card. In this respect, the processing basically performed is the same when data reception competes with a communication unit of another communication method.

他の通信方式との競合回避処理の一例として、赤外線通信方式とBT通信方式とのデータ受信の競合を回避する処理について説明する。
図23では、まず携帯電話14から赤外線通信カード(CF型通信カード)13にデータが送信されたとする。CF型通信カード13は受信したデータをプリンタ1に転送する。プリンタ1は必要な所定時間(例えば数10秒〜1分程度)をかけてこのデータを受信し、データの受信が完了すると、CF型通信カード13に受信完了の旨を通知する。CF型通信カード13はその受信完了の旨を携帯電話14に通知する。携帯電話14には受信完了の旨が表示され、ユーザはデータがプリンタ1に送信されたことを確認できる。
As an example of contention avoidance processing with other communication methods, processing for avoiding data reception contention between the infrared communication method and the BT communication method will be described.
In FIG. 23, it is assumed that data is first transmitted from the mobile phone 14 to the infrared communication card (CF type communication card) 13. The CF type communication card 13 transfers the received data to the printer 1. The printer 1 receives this data over a necessary predetermined time (for example, several tens of seconds to 1 minute). When the data reception is completed, the printer 1 notifies the CF type communication card 13 that the reception has been completed. The CF type communication card 13 notifies the mobile phone 14 that the reception has been completed. The mobile phone 14 displays the completion of reception, and the user can confirm that the data has been transmitted to the printer 1.

プリンタ1は、携帯電話14からの受信データを印刷データに変換処理し、印刷を実行する。受信データをすべて印刷データに変換した後、印刷が開始され、すべてプリントアウトされると印刷終了となる。   The printer 1 converts the data received from the mobile phone 14 into print data, and executes printing. After all the received data is converted into print data, printing is started, and when all the data is printed out, the printing ends.

一方、右側のBT通信機能を有している携帯端末BCからも携帯電話14よりも遅れてBT通信部45cにデータを送信している。この場合、プリンタ1側のIrDA通信用のポートは開かれ、その他のBT通信部45c、USB通信部45d及びパラレル通信部45bがビジー状態になってしまうのでデータを受け付けない。このとき、BT通信部45cから受信拒否の通知が携帯端末BCに送信される。その受信拒否の旨は携帯端末BCに表示され、ユーザはデータの送信の失敗を認識することができる。   On the other hand, the mobile terminal BC having the BT communication function on the right side transmits data to the BT communication unit 45c later than the mobile phone 14. In this case, the IrDA communication port on the printer 1 side is opened, and the other BT communication unit 45c, USB communication unit 45d, and parallel communication unit 45b are in a busy state, so data is not accepted. At this time, a reception rejection notification is transmitted from the BT communication unit 45c to the portable terminal BC. The reception refusal is displayed on the portable terminal BC, and the user can recognize the failure of data transmission.

携帯電話14からの受信データの印刷が終了した後、再び携帯端末BCからBT通信部45cにデータを送信すると、プリンタ1内の通信インターフェイス部45aはBT通信部45cのポートを開き、その他の通信ポートをビジー状態にする。従って、携帯端末BCからのデータを受信中のプリンタ1に、携帯電話14から赤外線通信でデータを送信しても、受信拒否の旨が携帯電話14に通知されることになる。携帯端末BCからの受信データはプリンタ1内で処理され、そのデータの内容が印刷される。   After the printing of the received data from the mobile phone 14 is completed, when the data is transmitted again from the mobile terminal BC to the BT communication unit 45c, the communication interface unit 45a in the printer 1 opens the port of the BT communication unit 45c and performs other communication. Make the port busy. Therefore, even if data is transmitted by infrared communication from the mobile phone 14 to the printer 1 that is receiving data from the mobile terminal BC, the mobile phone 14 is notified of the reception refusal. Data received from the portable terminal BC is processed in the printer 1 and the contents of the data are printed.

なお、パラレル通信部45b、USB通信部45d及びシリアル通信部(図示せず)などの他の通信方式によるデータ受信と、スロット通信部45eにおけるメモリカードからのデータ読込みと競合した時も、基本的に同様のシーケンスで処理される。   Basically, when data reception by another communication method such as the parallel communication unit 45b, the USB communication unit 45d, and the serial communication unit (not shown) competes with the data reading from the memory card in the slot communication unit 45e. Are processed in the same sequence.

図24(a)は、プリンタ1の操作パネル8の画面9aに通信状態を表示する報知画像を示す。また、同図(b)は動画画像を構成する4コマの画像を示す。データ受信状態にあるときは、CF型通信カード13の表示部13b以外に、操作パネル8の画面にも表示される。   FIG. 24A shows a notification image that displays the communication state on the screen 9 a of the operation panel 8 of the printer 1. FIG. 2B shows four frames constituting a moving image. When in the data receiving state, it is also displayed on the screen of the operation panel 8 in addition to the display unit 13 b of the CF type communication card 13.

CPU41は、通信ステータスを管理しており、操作パネル8の画面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. 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 completed, and reception errors. On the character displayable screen 9a, these character strings In addition to the display, a reception error is notified by distinguishing up to the error content (by error cause).

同図(a)の画面9aに示すように、データ受信中にあるときは、データ受信中の旨を示す動画画像MG1とテキストTX1が表示される。これらの動画画像MG1とテキストTX1のデータは、EEPROM43に記憶されている。テキストTX1は例えば「データ受信中です。」と表示される。   As shown in the screen 9a in FIG. 9A, when data is being received, a moving image MG1 and text TX1 indicating that data is being received are displayed. The data of the moving image MG1 and the text TX1 is stored in the EEPROM 43. The text TX1 is displayed, for example, “Data is being received”.

図24(b)に示すように、動画画像MGは、4コマの画像G1〜G4からなり、CPU41はこれらの各画像G1〜G4を所定時間間隔で順次表示させることで動画画像MGを生成する。   As shown in FIG. 24B, the moving image MG includes four frames G1 to G4, and the CPU 41 generates the moving image MG by sequentially displaying the images G1 to G4 at predetermined time intervals. .

CPU41は、IrDAプロファイル処理部74に到達した時点でデータ受信を確認することが可能となっており、データ受信を確認すると、画面9aに図24(a)の動画画像MG1とテキストTX1を表示させて、データ受信状態をユーザに報知する。ユーザはCF型通信カード13の表示部13bとプリンタ1の画面9aとのどちらでもデータ受信状態を確認できるようにしている。   The CPU 41 can confirm the data reception when it reaches the IrDA profile processing unit 74. When the data reception is confirmed, the CPU 41 displays the moving image MG1 and the text TX1 in FIG. 24A on the screen 9a. To notify the user of the data reception state. 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.

また、通信ステータスが受信エラーであるときは、例えば図24に示す画面9aには、「データ受信中です」に替え、「この拡張子のデータは扱えません」「拡張子とデータが一致していません」「通信が途絶えました」などのエラーの種類まで特定して報知する。   In addition, when the communication status is a reception error, for example, the screen 9a shown in FIG. 24 is changed to “Data is being received” instead of “Data of this extension cannot be handled” “Extension and data match. Notify "and specify the type of error, such as" Communication has been lost ".

また、CF型通信カード13側のCPU159から通信ステータスの情報をプリンタ1側のCPU41に転送し、通信ステータスに応じた報知画像を画面9aに表示させることもできる。もちろん、CPU41が通信ステータスを管理し、報知用の動画画像MGやテキストTXを画面9aに表示させることもできる。この場合、データ受信状態の旨を示す動画画像MG1とテキストTX1が表示される。   Further, the communication status information can be transferred from the CPU 159 on the CF type communication card 13 side to the CPU 41 on the printer 1 side, and a notification image corresponding to the communication status can be displayed on the screen 9a. Of course, the CPU 41 can manage the communication status and display the notification moving image MG and text TX on the screen 9a. In this case, a moving image MG1 and text TX1 indicating the data reception state are displayed.

また、CPU41は、印刷実行を開始すると、同図(c)の画面9aに示す報知画像AG2を表示する。この報知画像AG2には、動画画像MG2とテキストTX2が表示される。   Further, when printing is started, the CPU 41 displays a notification image AG2 shown on the screen 9a in FIG. In the notification image AG2, a moving image MG2 and a text TX2 are displayed.

<プリンタ側のデータ処理>
次に、CF型通信カード13からプリンタ1の本体2側に転送されたデータの処理について説明する。プリンタ側の処理には、主に、(A)データの種別に応じた振り分け処理、(B)個人情報データの単件か全件かの判定処理、(C)個人情報の全件データの分割送出処理、(D)個人情報データの名刺レイアウト印刷、(E)個人情報データの電話帳レイアウト印刷の各処理がある。
<Data processing on the printer side>
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) a distribution process according to the type of data, (B) a determination process for single or all cases of personal information data, and (C) a division of all case data for personal information. There are a transmission process, (D) business card layout printing of personal information data, and (E) telephone 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.

<vCardの単件データ>
図25、図26及び図27は、vCardファイル形式の個人情報データの一例を示す。ここで、図25及び図26はvCardの単件データを示し、図25は個人情報(テキスト)のみのデータで、図26は画像付きデータである。図27はvCardの全件データを示す。
<Single data of vCard>
25, 26 and 27 show an example of personal information data in the vCard file format. Here, FIG. 25 and FIG. 26 show single data of vCard, FIG. 25 is data of only personal information (text), and FIG. 26 is data with an image. FIG. 27 shows all vCard data.

図25に示すように、vCard形式の単件データMD1は、まず「BEGIN:VCARD」で始まり、「END:VCARD」で終わる。その「BEGIN:VCARD」と「END:VCARD」の間には以下のような個人情報の各アイテムが、プロパティと値を使って「プロパティ:値」形式で記述される。プロパティは項目を指し、値はその項目に入れるべき具体的な内容を指す。プロパティには、「N(名前)」、「SOUND(フリガナ)」、「TEL(電話番号)」、「EMAIL(電子メールアドレス)」、「ADR(住所)」、「NOTE(メモ)」などが用意されている(但し、括弧書きはプロパティの説明である)。   As shown in FIG. 25, the single data MD1 in the vCard format starts with “BEGIN: VCARD” and ends with “END: VCARD”. Each item of personal information as described below is described in the “property: value” format between the “BEGIN: VCARD” and “END: VCARD” using properties and values. 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指定が可能であり、これによりさまざまな電話番号を指定することが可能である。図25の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. In the value of “TEL; X-ABC-MAIN; VOICE:” on the seventh line in FIG. 25, the telephone number of “representative” is described. 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指定することにより複数の電子メールアドレスが指定できる。図25の例で、「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. 25, 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の全件データ>
図27に示すように、vCardの全件データADは、個人情報を複数件含み、個人情報は1件ずつ「BEGIN:VCARD」で始まり、「END:VCARD」で終わる。その「BEGIN:VCARD」と「END:VCARD」の間に1件分の個人情報を構成する各アイテムが、「プロパティ:値」形式で記述されている。
<All data of vCard>
As shown in FIG. 27, the vCard all case data AD 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”.

従って、同図からも分かるように、1件のデータが終了する毎に「END:VCARD」が記述されている。携帯電話14から個人情報データを送信するとき、ユーザは「単件」か「全件」かを選択できる。プリンタ1は受信したvCardファイルが「単件」か「全件」かによって適用する印刷レイアウトを決定する。本実施形態では、vCardファイルが「単件」か「全件」であるかを識別するために、個人情報データ中に必ず記述され、かつ1件につき1つしか記述されないコマンド又はプロパティを、件数判別子CSとして採用する。もちろん、1件毎に決まった数ずつ記述されているコマンド又はプロパティなどでもよい。例えば「VCARD」は1件につき2つずつ記述されているので、その計数値が「2」であれば単件、計数値が「4以上」であれば「全件」と判断する方法を採用することもできる。   Therefore, as can be seen from the figure, “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 the present embodiment, in order to identify whether the vCard file is “single case” or “all cases”, a command or property that is always described in the personal information data and that is described only once per case is represented by the number of cases. Adopt as discriminator CS. Of course, a command or property described in a fixed number for each case may be used. For example, since “VCARD” is described twice for each case, a single case is adopted if the count value is “2”, and “all cases” is judged if the count value is “4 or more”. You can also

本実施形態の場合、件数判別子CSとして「END:VCARD」を採用する。IrDAプロファイル処理部74の件数判定部82は、個人情報データが単件であるのか全件(グループ指定の場合はグループの全件を含む)であるのかを判別する。詳しくは、CPU41がデータ中に含まれる件数判別子「END:VCARD」をカウンタにより計数し、その計数値に基づき受信したvCardファイルが「単件」か「全件」かを判断する。すなわちその計数値が「1」の場合は判定値(例えばフラグ)Nを「N=0」にリセットし、計数値が「2以上」の場合は判定値Nを「N=1」にセットする。   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件毎の最後のプロパティでもよい。   Specifically, after the data transfer unit 73 checks whether or not the data is correctly received in the transmission control procedure 73a, the CPU 41 determines “END: VCARD” which is the segment identifier DS for the data (same as the number discriminator CS in this example). Is counted by a counter, and the number of received personal information is counted from the counted value. 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, the CPU 41 executes the next text data format conversion process every time a predetermined number of pieces of data are buffered. The classification identifier DS may be the last property for each case.

<名刺印刷のテンプレート>
図28は、個人情報データが印刷される際に適用される印刷レイアウトのテンプレート書式データの一例を示す。
<Business card printing template>
FIG. 28 shows an example of template format data of a print layout applied when personal information data is printed.

vCardファイルの印刷レイアウト(印刷フォーマット)は、プリンタ1内のEEPROM43に記憶されたテンプレート書式データに依存する。テンプレート書式データはXHTML形式で記述された印刷レイアウト用データである。XHTMLデータは、<body>と</body >の間が、1つの項目毎(同図では行毎)につき、フィールド、コメントタグ、プロパティの3つの領域に分かれている。   The print layout (print format) of the vCard file depends on the template format data stored in the EEPROM 43 in the printer 1. The template format data is print layout data described in the XHTML format. The XHTML data is divided into three areas, field, comment tag, and property, for each item (each line in the figure) between <body> and </ body>.

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

コメントタグは、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」等の文字列が組み込まれる。従って、図25に示すように名前やフリガナのように、個人情報1件につき1つしかないTYPE指定の対象外のデータにおいてはコメントタグのみで構成されている。一方、電話番号や電子メールなどのTYPE指定できるデータが記述される領域ではコメントタグにプロパティが付加される。なお、図27におけるコメントタグ及びプロパティではフォント及び文字サイズ等は指定されていない。   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. 25, only one comment tag is included in data that is not subject to TYPE designation, such as name or reading, for each piece of personal information. On the other hand, a property is added to a comment tag in an area in which data that can be specified by TYPE such as a telephone number or an electronic mail is described. Note that fonts and character sizes are not specified in the comment tags and properties in FIG.

<テンプレート書式への形式変換>
図30は、図25の個人情報データを図28の名刺印刷用のテンプレート書式データLT1に当て嵌めた後のテンプレート書式データLDを示す。図25の個人情報データ(携帯電話のディスプレイでは図4(b)にように表示される個人情報)は、そのうち指定の値(及びプロパティ)が図28の名刺印刷用のテンプレート書式データLT1に組み込まれ、図30に示すXHTMLデータからなるテンプレート書式データLDとなる。この個人情報データからテンプレート書式データLDへの変換処理は、テキストデータ形式変換部85が行う。テキストデータ形式変換部85で変換されたテンプレート書式データLDはテキストデータラスタ処理部75に送信される。
<Format conversion to template format>
FIG. 30 shows template format data LD after the personal information data of FIG. 25 is applied to the template format data LT1 for business card printing of FIG. In the personal information data of FIG. 25 (personal information displayed as shown in FIG. 4B on the display of the mobile phone), the specified value (and property) is incorporated in the template format data LT1 for business card printing in FIG. Thus, template format data LD composed of XHTML data shown in FIG. 30 is obtained. The text data format conversion unit 85 performs the conversion process from the personal information data to the template format data LD. The template format data LD converted by the text data format conversion unit 85 is transmitted to the text data raster processing unit 75.

CPU41は、テキストデータ形式変換処理を次のように行う。プロパティを有していないテンプレート書式データLT1を読み出すと、コメントタグの中に記述されたプロパティ(「Name」等)を手掛かりに、vCardファイル中からそのプロパティの値(「山田 太郎」等)を取り出し、テンプレート書式データLT1中のそのコメントタグの直後にその取り出した値を組み込む。また、CPU41は、プロパティ中の「TYPE」直後のプロパティ(「TELNO1」等)を手掛かりに、vCardファイル中からそのプロパティのTYPE(「WORK」等)を取り出し、テンプレート書式データLT1中のそのプロパティの直後にその取り出したTYPEを組み込む。このルールに従った組込み処理は、CPU41がテキストデータ形式変換処理用プログラムを実行することにより行われる。こうして図30に示すテンプレート書式データLDが作成される。   The CPU 41 performs text data format conversion processing as follows. When template format data LT1 having no property is read, the property value (“Taro Yamada”, etc.) is extracted from the vCard file using the property (“Name”, etc.) described in the comment tag as a clue. The extracted value is incorporated immediately after the comment tag in the template format data LT1. 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”) of the property from the vCard file, and extracts the property in the template format data LT1. Immediately after that, the extracted TYPE is incorporated. 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 LD shown in FIG. 30 is created.

<印刷用のテンプレート例>
図31は、名刺形式の印刷レイアウトの一例を示す。同図はテンプレート書式データLT1により指定される印刷レイアウトのテンプレートPL1を図示したものである。同図において四角枠で囲まれた配置領域A1〜A9は、個人情報の各項目の値が配置される場所で、この場所の指定がテンプレート書式データLT1中のコメントタグにより指定されている。そして、コメントタグにより指定した配置領域A1〜A9に、そのコメントタグで位置指定される値が配置される。配置領域A1〜A9内に付されているタイトルは、テンプレート書式データLT1中に予め記述されており、各タイトルの右横に値が配置される。同図において各配置領域A1〜A9内に括弧で示されている(例えば「(ORG1)」等)のが、vCardデータ中のプロパティで、そのプロパティの値がその配置領域に配置されることを意味する。例えば図25におけるプロパティ「N」の値「山田 太郎」が図31における配置領域A4内の「名前」の右横に配置される。なお、図27の名刺印刷テンプレートと図31の印刷レイアウトの例とには相違があるが、図28のテンプレート書式データはシンプルなテンプレート例で示している。本例では、図31に示す名刺印刷レイアウトを指定できるXHTMLデータがテンプレート書式データの一つとしてEEPROM43に記憶されている。この場合、個人情報には、会社名、部署、役職、会社電話番号、会社FAX番号、社用電子メールなど必要なデータを入力して使用する。
<Example template for printing>
FIG. 31 shows an example of a business card format print layout. This figure shows a template PL1 of a print layout designated by the template format data LT1. In the drawing, arrangement areas A1 to A9 surrounded by a square frame are places where values of individual items of personal information are arranged, and the designation of the places is designated by a comment tag in the template format data LT1. Then, the value specified by the comment tag is arranged in the arrangement areas A1 to A9 designated by the comment tag. The titles given in the placement areas A1 to A9 are described in advance in the template format data LT1, and values are placed on the right side of each title. In the drawing, each of the placement areas A1 to A9 is shown in parentheses (for example, “(ORG1)”) is a property in the vCard data, and the value of the property is placed in the placement area. means. For example, the value “Taro Yamada” of the property “N” in FIG. 25 is arranged on the right side of the “name” in the arrangement area A4 in FIG. Although there is a difference between the business card print template of FIG. 27 and the print layout example of FIG. 31, the template format data of FIG. 28 is shown as a simple template example. In this example, XHTML data that can specify the business card printing layout shown in FIG. 31 is stored in the EEPROM 43 as one of the template format 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.

同図の各項目にはXHTML形式のデータがテンプレート書式データLT1に従って挿入され、所定のフォントの種類、フォントサイズ及びフォントのスタイルなどにより印刷されるデータに変換される。例えば、会社名の場合、vCard形式では、プロパティ「ORG」には、値として具体的な会社名が記述され、まず、上記に示したようにvCardがXHTML形式に変換される。変換後、そのデータはテンプレート書式となり、最終的に本図のようにプロパティ「ORG」の値が挿入される。   XHTML format data is inserted into each item in the figure according to the template format data LT1, and converted into data to be printed according to a predetermined font type, font size, font style, and the like. For example, in the case of a company name, in the vCard format, the property “ORG” describes a specific company name as a value, and first, vCard is converted into the XHTML format as described above. After the conversion, the data becomes a template format, and finally the value of the property “ORG” is inserted as shown in the figure.

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

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

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

図33(a),(b)は、名刺に画像を組み込んだ画像付き名刺を印刷する印刷レイアウトを示す。CPU41は、図26に示したような画像データを添付できる形式のvCardファイル(図22参照)であることを認識すると、図29に示す画像付き名刺印刷の印刷テンプレートLT2を使用する。例えば顔写真の画像をvCardファイル中に添付することによって顔写真付き名刺を印刷できる。   FIGS. 33A and 33B show a print layout for printing a business card with an image in which an image is incorporated into the business card. When the CPU 41 recognizes that the vCard file (see FIG. 22) has a format to which image data can be attached as shown in FIG. 26, the CPU 41 uses the printing template LT2 for business card printing with images shown in FIG. For example, a business card with a face photo can be printed by attaching an image of the face photo to the vCard file.

図33(a)は、縦向きの名刺の左上付近に画像(顔写真)が配置され、個人情報のテキストが縦書きにレイアウトされた印刷テンプレート例である。名刺において各プロパティの値(テキスト)又は画像が割付けられる位置及びサイズは、割付位置及びエリアサイズをXHTML形式のタグで記述して特定されたレイアウト枠(レイアウトエリア)によって指定されている。同図(a)のテンプレートPL8では、画像のレイアウト枠(割付け領域)G1は名刺の左上付近の所定位置に設定されている。名刺に必要なプロパティ毎のテキストを流し込むレイアウト枠T1〜T6は、名刺の各項目に適した位置に設定されている。また、テキスト用のレイアウト枠T1〜T6には流し込まれるテキストのフォント、フォントサイズ及び文字色が指定されている。レイアウト枠T1〜T6の長さ及び幅は、テキストの文字数(文字列長)に応じてレイアウト枠の右上隅T1aを基点として矢印方向へ自動的にサイズ調整されるようになっている。   FIG. 33A shows an example of a print template in which an image (face photo) is arranged near the upper left of a vertically oriented business card and the text of personal information is laid out vertically. The position and size at which each property value (text) or image is assigned in the business card is specified by a layout frame (layout area) that is specified by describing the assigned position and area size with tags in the XHTML format. In the template PL8 in FIG. 5A, the image layout frame (allocation area) G1 is set at a predetermined position near the upper left of the business card. Layout frames T1 to T6 into which text for each property necessary for the business card is poured are set at positions suitable for each item of the business card. The text layout frames T1 to T6 specify the font, font size, and character color of the text to be inserted. The lengths and widths of the layout frames T1 to T6 are automatically adjusted in the direction of the arrow in accordance with the number of characters of the text (character string length) with the upper right corner T1a of the layout frame as a base point.

図33(b)は、横向きの名刺の右上付近に画像(顔写真)が配置されるとともに上下方向中心部付近にデザインとして横線が付され、テキストが横書きにレイアウトされる印刷レイアウトのテンプレート例である。同図(b)のテンプレートPL9は、縦書き名刺を印刷する印刷レイアウトのテンプレートPL8と同様に、画像のレイアウト枠G2及びテキストのレイアウト枠T10〜T16が設定される他、中心部付近に横線のレイアウト枠G3が設定されたXHTMLデータからなる。テキスト用のレイアウト枠T10〜T16の長さ及び幅は、テキストの文字数(文字列長)に応じてレイアウト枠の左上隅T10aを基点として矢印方向へ自動的にサイズ調整されるようになっている。これらXHTML形式で記述された名刺を印刷する印刷レイアウトのテンプレートPL8,PL9の各データは、EEPROM43(図5参照)に例えば番号と対応付けて記憶されている。   FIG. 33B shows an example of a print layout template in which an image (face photo) is arranged near the upper right of a business card in landscape orientation, a horizontal line is added as a design near the center in the vertical direction, and text is laid out horizontally. is there. In the same way as the template PL9 of the print layout for printing vertical business cards, the template PL9 in FIG. 5B is set with an image layout frame G2 and text layout frames T10 to T16, and has a horizontal line near the center. It consists of XHTML data in which a layout frame G3 is set. The lengths and widths of the text layout frames T10 to T16 are automatically adjusted in the direction of the arrow in accordance with the number of characters of the text (character string length) with the upper left corner T10a of the layout frame as a base point. . Each data of the print layout templates PL8 and PL9 for printing business cards described in the XHTML format is stored in the EEPROM 43 (see FIG. 5) in association with numbers, for example.

図34(a)〜(f)及び図35(a)〜(f)は、名刺を印刷するレイアウト以外に用意された印刷レイアウトのテンプレート例を示す。図34(a)〜(f)は、画像データとテキストデータをレイアウトして印刷するための印刷レイアウト用テンプレートである。   FIGS. 34A to 34F and FIGS. 35A to 35F show examples of print layout templates prepared in addition to the layout for printing business cards. 34A to 34F are print layout templates for laying out and printing image data and text data.

図34(a)〜(e)のテンプレートPL21〜PL25では、それぞれ左上隅、右上隅、左下隅、右下隅、中央に1つずつ画像用のレイアウト枠G21〜G25が配置され、その他の部分にテキスト用のレイアウト枠T21〜T25が配置されている。図34(f)は、画像用のレイアウト枠G16,G17とテキスト用のレイアウト枠T26,T27を2つずつ備え、それぞれ画像同士とテキスト同士が対角に配置されるように位置設定されている。   In templates PL21 to PL25 of FIGS. 34 (a) to 34 (e), layout frames G21 to G25 for images are arranged at the upper left corner, the upper right corner, the lower left corner, the lower right corner, and the center, respectively, and other portions are arranged. Text layout frames T21 to T25 are arranged. FIG. 34 (f) includes two layout frames G16 and G17 for images and two layout frames T26 and T27 for text, and the positions are set so that the images and the texts are diagonally arranged. .

次に、図35(a)〜(f)は、他の印刷のレイアウト用テンプレート図を示す。図35(a)は、テキスト1のレイアウト枠中にテキスト2のレイアウト枠を配置した例である。図35(b)は、テキスト1のレイアウト枠、テキスト2のレイアウト枠およびテキスト3のレイアウト枠を並べて配置した例である。図35(c)は、テキスト1のレイアウト枠と枠線付きのレイアウト枠のテキスト2を上下に配置した例である。図35(d)は、画像1のレイアウト枠中に画像2のレイアウト枠を配置した例である。図35(e)は、画像1のレイアウト枠と画像2のレイアウトとを並べて配置した例である。図35(f)は、画像1のレイアウト枠と画像2の枠線付きレイアウト枠を配置した例である。   Next, FIGS. 35A to 35F show other print layout template diagrams. FIG. 35A shows an example in which the layout frame of text 2 is arranged in the layout frame of text 1. FIG. 35B shows an example in which the layout frame of text 1, the layout frame of text 2, and the layout frame of text 3 are arranged side by side. FIG. 35C shows an example in which the layout frame of text 1 and the text 2 of the layout frame with a frame line are arranged vertically. FIG. 35D shows an example in which the layout frame of image 2 is arranged in the layout frame of image 1. FIG. 35E shows an example in which the layout frame of image 1 and the layout of image 2 are arranged side by side. FIG. 35F shows an example in which the layout frame of image 1 and the layout frame with a frame line of image 2 are arranged.

レイアウト枠に画像を取り込む方法について説明する。
画像のサイズ(大きさ)及び画質(粗いまたは細かい)は、使用された携帯電話14によって異なっている。また、印刷される用紙のサイズも幾種類かある。そこで、印刷レイアウトとして、図33(a)の全体が用紙サイズとして、用紙の幅を100%として、レイアウト枠L1の横幅を0(ゼロ)%〜100%の任意の値に設定する。また、用紙の長さを100%として、レイアウト枠L1の長さを0(ゼロ)%〜100%の任意の値に設定する。設定されているレイアウト枠L1に画像を取り込む際は、携帯電話14の画像の縦・横のどちらか大きい一方または携帯電話14の画像が正方形の場合は一方を選択し、選択された一方がレイアウト枠L1の縦または横と等しくなるようにメモリコントローラ93で画像サイズを変換させて取り込む。ここまでのデータは、ワークメモリ44bに記憶させておく。
A method for capturing an image in the layout frame will be described.
The size (size) and image quality (rough or fine) of the image vary depending on the mobile phone 14 used. There are also several types of paper to be printed. Therefore, as the print layout, the entire paper size in FIG. 33A is set as the paper size, the paper width is set to 100%, and the horizontal width of the layout frame L1 is set to an arbitrary value from 0 (zero)% to 100%. Further, the length of the sheet is set to 100%, and the length of the layout frame L1 is set to an arbitrary value from 0 (zero)% to 100%. When capturing an image in the set layout frame L1, select either the larger one of the image of the mobile phone 14 in the vertical or horizontal direction, or one when the image of the mobile phone 14 is a square, and the selected one is the layout. The image size is converted by the memory controller 93 so as to be equal to the length or width of the frame L1. The data so far are stored in the work memory 44b.

次に、レイアウト枠L2にテキストを取り込む方法について説明する。ROM42には、日本語及び英語のフォント等のキャラクタ(テキストや記号等)のパターンを示すキャラクタジェネレータデータ(CGデータ)を備え、キャラクタコードをCGデータに変換するキャラクタジェネレータ98が記憶されている。キャラクタジェネレータ98は、その指定されたアドレスにテキストコードが与えられると、各種テキストのドット構成を示すテキストドットパターンのデータを読み出す。ドットパターンはビットデータであり、シフトレジスタのような回路によってシリアルに出力する。すなわち、キャラクタジェネレータ98は、各種のフォントとサイズ及び色からなるテキストや記号のデータをメモリコントローラ93に提供する役割を有する。   Next, a method for importing text into the layout frame L2 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 dot pattern is bit data and is serially output by a circuit such as a shift register. That is, the character generator 98 has a role of providing the memory controller 93 with text and symbol data having various fonts, sizes and colors.

また、図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(図7参照)は、XHTMLデータを解析してテキスト情報だけを抽出するとともにテンプレート情報を解析してレイアウト情報を割り出す。レイアウト情報は、ワークメモリ44bにおいて画像展開されるメモリ空間のアドレスとして割り出される。各レイアウト枠は画像展開されるメモリ空間のアドレスとして特定され、キャラクタジェネレータ98から読み出されたドットパターンデータはレイアウト情報によってアドレスにより指定されたレイアウト枠に流し込まれる。   The XHTML data includes text information and template information, but the interpretation processing unit 90 (see FIG. 7) 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.

図2に示す操作パネル8の表示画面9aに表示されているメニューの中から、上スイッチ10f、下スイッチ10gを押下して、用紙のサイズと印刷枚数等を選択して決定する。次に、レイアウトを選択し、決定スイッチ10hを押下する。すると、表示画面9aには、図31〜図35に対応するテンプレート図が表示される。上スイッチ10f、下スイッチ10gを押下して、所望のレイアウトを決定し、決定スイッチ10hを押下する。そして、さらに操作部10を操作して携帯電話14からの印刷時に指定レイアウトを有効にする旨をプリンタ1に登録する。   From the menu displayed on the display screen 9a of the operation panel 8 shown in FIG. 2, the upper switch 10f and the lower switch 10g are pressed to select and determine the paper size, the number of printed sheets, and the like. Next, a layout is selected and the determination switch 10h is pressed. Then, template diagrams corresponding to FIGS. 31 to 35 are displayed on the display screen 9a. The upper switch 10f and the lower switch 10g are pressed to determine a desired layout, and the determination switch 10h is pressed. Then, the operation unit 10 is further operated to register in the printer 1 that the designated layout is valid when printing from the mobile phone 14.

<メモ領域で印刷レイアウト指定>
ユーザは携帯電話14のディスプレイ18に個人情報欄を表示させてその中のメモ欄に印刷レイアウト指定情報を入力する。例えばメモ欄に「1」「2」「3」などの数字(番号)を入力する。この印刷レイアウト指定情報として記述された数字は、vCardデータ中のプロパティ「NOTE」の値として記述される。このメモ欄に記述された数字は単件の個人情報を印刷する際の印刷レイアウトの指定番号として扱われる。例えばプリンタ1の取扱説明書には図31及び図32(a)〜(c)の各テンプレートPL1〜PL4等と、各テンプレートPL1〜PL4等の指定番号とが対応付けて記載され、ユーザは取扱説明書にある指定番号をメモ欄に入力することにより名刺レイアウトを指定する。
<Specify print layout in the memo area>
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. 31 and FIGS. 32A to 32C 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」が入力されていると、図25のvCardファイル中のプロパティ「NOTE」に「2」が記述されている。携帯電話14からvCardファイルを受信すると、そのプロパティ「NOTE」の値として記述された文字列を読み出してそれを解析することにより指定番号を特定する。この解析処理はノート解析部83が行い、詳しくはCPU41がvCardファイル中の「NOTE」の値を解析することにより行われる。CPU41は指定番号を特定できると、その指定番号に対応する名刺レイアウトテンプレート(XHTML形式)をEEPROM43から読み出す。そして、CPU41は前述したテキストデータ形式変換処理を実行し、図25に示すようなvCardファイルと、図28に示すようなテンプレート書式データLT1とに基づき、図30に示すようなテンプレート書式データLDを作成する。このテンプレート書式データLDはXHTMLデータである。   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. 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 generates template format data LD as shown in FIG. 30 based on the vCard file as shown in FIG. 25 and the template format data LT1 as shown in FIG. create. This template format data LD 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.

<IrDAプロファイル部の処理>
図36は、IrDAプロファイル処理部74でのデータの処理を示すフローチャートである。データトランスファ部73で、伝送制御手順によりデータを正しく受信できた場合に、CPU41は図36のフローチャートで示されるプログラムを実行する。このプログラムをCPU41が実行することにより、図6における拡張子識別部81、件数判定部82、ノート解析部83、分割処理部84、テキストデータ形式変換部85及び画像データデコード部87の各機能が実現される。以下、CPU41が実行するこのプログラムについて説明する。なお、CF型通信カード13からプリンタ1へは拡張子とオブジェクトデータが転送されてくるようになっており、拡張子はデータの先頭に送られてくる。
<Processing of IrDA Profile Unit>
FIG. 36 is a flowchart showing data processing in the IrDA profile processing unit 74. When the data transfer unit 73 has received data correctly according to 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形式の画像データと判断してS220に進む。また、受信したデータの拡張子が「vnt」の場合は、vNote形式で作られた画像データ(以下、vNoteファイルという)であると判断し、S210へ進む。更に、受信したデータの拡張子が「vcf」の場合は、vCard形式で作られたテキストデータ(以下、vCardファイルという)であると判断し、S130へ進む。   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 image data in JPEG format and the process proceeds to S220. 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, if 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 S130.

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

S220では、JPEG形式にされた画像データを、画像データラスタ処理部76へ転送する。
S230では、携帯電話14から送信された個人情報データの件数判定を行う。すなわち、vCardファイルが「単件」か「全件」かを判断する。本例では、vCardファイルデータ中にある識別子「END:VCARD」を計数することによって個人情報の件数を判定する。計数結果CがC=1であれば単件データと判定し、計数結果CがC≧2であれば全件データと判定する。例えば図25に示すようにvCardファイルが単件データの場合、識別子「END:VCARD」は1つだけなので計数結果CがC=1となり、「単件」と判定される。一方、図25に示すようにvCardファイルが全件データの場合、「END:VCARD」が複数あってその計数結果CがC≧2を満たすので「全件」と判定される。個人情報を1件のみ含む「単件」と判定した場合はS240に進む。また、個人情報を複数件含む「全件」と判定した場合はS250に進む。別の判定方法としてデータのファイル名で判断することもできる。
In S220, the image data in JPEG format is transferred to the image data raster processing unit 76.
In S230, 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. 25, when the vCard file is single data, since there is only one identifier “END: VCARD”, the count result C is C = 1 and it is determined as “single data”. On the other hand, as shown in FIG. 25, when 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 S240. On the other hand, if it is determined that “all cases” include a plurality of pieces of personal information, the process proceeds to S250. As another determination method, it is possible to determine by the file name of data.

S240では、Note領域の記述内容を解析して解析結果に応じたテンプレートを指定する。vCardファイルデータ中にあるプロパティ「NOTE」の値(記述内容)を解析し、その値の中からテンプレートの指定情報(本例では番号)を探し出す。例えば図4(b)に示すようにメモに「2」と記述されていれば、図25に示すようにそのvCardファイルデータ中のプロパティ「NOTE」の値には「2」が記述されているので、この番号「2」を解析結果として抽出する。そして、この番号「2」をテンプレート指定の情報としてRAM44に記憶する。   In S240, 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.

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

S270では、テンプレート記憶部86から指定されたテンプレートを読み出す。すなわち、「単件」の場合はS240で指定したノート領域の記述内容の解析結果から定まるテンプレート(名刺形式のレイアウト)を読み出し、「全件」の場合はS250で指定した「電話帳」のテンプレート(電話帳形式のレイアウト)を読み出す。   In S270, the specified 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 S240 is read, and in the case of “all cases”, the template of “phone book” designated in S250. Read (phone book layout).

S280では、vCardファイルの個人情報をテンプレート付きのXHTMLデータに変換する。つまり、テンプレートに当て嵌めるべき項目が指定された場所に個人情報のその項目(プロパティ)の内容(値)を当て嵌めることにより、テンプレート付きのXHTMLデータに変換する。例えば図25に示す単件のvCardファイルの場合、図30に示すようなXHTML形式データに変換される。また、図26に示す画像付きのvCardファイルの場合、図29に示すようなXHTML形式の画像付きの印刷テンプレートLT2にvCardデータを構成する個人情報が組み込まれたXHTML形式データに変換される。   In S280, 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. 25, it is converted into XHTML format data as shown in FIG. In addition, in the case of the vCard file with an image shown in FIG. 26, it is converted into XHTML format data in which personal information constituting the vCard data is incorporated into a print template LT2 with an image in the XHTML format as shown in FIG.

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

こうしてテキストデータラスタ処理部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.

以下、本実施形態におけるIrDA方式による赤外線無線通信インターフェイスの特徴点を記載する。
CF型通信カード13と本体2にIrDA通信インターフェイス部を分離配置し、受信データのチェックを、CF型通信カード13内で対応データであるかどうかをみる第1チェックと、本体2側に正しく転送されたかどうかをみる第2チェックとに分担させている。プリンタ1はその本体2にCF型通信カード13と異なる通信方式の複数の通信部45b〜45dを備えており、CF型通信カード13とその他の通信部45b〜45dのうちいずれか一つのポートからしかデータ受信ができない構成である。この場合、CF型通信カード13内のオブジェクト送受信部64(CPU159)において、対応データか未対応データかをCF型通信カード13内で判定させて未対応データであれば破棄するので、その破棄されるべき未対応データがプリンタ1の本体2側へ転送されることがない。仮に、このような破棄されるべきデータが徒にCF型通信カード13から本体2側へ転送されてそのポートが占有されてしまうと、他の通信部45b〜45dからの受信がその間停滞してしまう。しかし、この実施形態では、未対応データは本体2側へ転送されないようにCF型通信カード13内で破棄されるので、他の通信部45b〜45dを不要に妨げない効率のよい通信の実現が可能となる。
The characteristic points of the infrared wireless communication interface based on the IrDA system in this embodiment will be described below.
The IrDA communication interface unit is placed separately on the CF type communication card 13 and the main body 2, and the received data check is first transferred to the main body 2 side for the first check to see if it is corresponding data in the CF type communication card 13. It is shared with the second check to see if it was done. The printer 1 includes a plurality of communication units 45 b to 45 d having a communication method different from that of the CF type communication card 13 in the main body 2, and any one of the CF type communication card 13 and the other communication units 45 b to 45 d is connected. It is a configuration that can only receive data. In this case, the object transmission / reception unit 64 (CPU 159) in the CF-type communication card 13 determines whether the corresponding data or unsupported data is in the CF-type communication card 13 and discards the unsupported data. Unsupported data to be transferred is not transferred to the main body 2 side of the printer 1. If such data to be discarded is transferred from the CF type communication card 13 to the main body 2 side and the port is occupied, reception from the other communication units 45b to 45d is suspended during that time. End up. However, in this embodiment, unsupported data is discarded in the CF type communication card 13 so as not to be transferred to the main body 2 side, so that efficient communication that does not unnecessarily disturb the other communication units 45b to 45d can be realized. It becomes possible.

また、未対応データは受信上流側のCF型通信カード13内で受信開始時に検出し、直ちに表示部13bにエラーを表示するので、携帯電話14からデータ送信を開始したユーザに素早く受信エラーを知らせるようにしている。   Incompatible data is detected at the start of reception in the CF-type communication card 13 on the upstream side of reception, and an error is immediately displayed on the display unit 13b, so that a user who has started data transmission from the mobile phone 14 is notified of the reception error quickly. I am doing so.

また、対応データか未対応データであるかを判断する際に使う拡張子データ(参照データ)を、プリンタ1の本体2側からCF型通信カード13にセットアップするようにしている。これにより、参照データとして本体2側に登録されたものを使用できる。すなわち、プリンタ1の機種が異なることで対応データが異なる場合もあり、このような場合、機種に応じた参照データがセットアップされることになるので、複数の機種あるいは新旧の機種間でCF型通信カード13を共用することが可能となっている。   Further, extension data (reference data) used when determining whether the data is compatible data or non-compatible data is set up in the CF type communication card 13 from the main body 2 side of the printer 1. Thereby, the data registered on the main body 2 side as reference data can be used. In other words, the corresponding data may differ depending on the model of the printer 1, and in such a case, reference data corresponding to the model is set up, so CF type communication between multiple models or old and new models The card 13 can be shared.

以下、本実施形態の効果を記載する。
(1)携帯電話14は、並列処理機能によって、赤外線機能によるデータ送信中に通話機能による着信に応答することが可能である。即ち、携帯電話14は、プリンタ1へのデータ送信処理中に該携帯電話14に通話処理が入ると、データ送信処理と通話処理とを並列実行する。これにより、データ通信中に着信があっても、ユーザはその着信に気軽に応答し、相手との通話を楽しむことができる。また、着信に応答してもデータ転送が継続されるため、データの再送信を行わなくとも印刷結果が得られる。即ち、従来に比べて短時間で印刷物を得ることができる。
Hereinafter, effects of the present embodiment will be described.
(1) The mobile phone 14 can respond to an incoming call by the call function during data transmission by the infrared function by the parallel processing function. That is, when the mobile phone 14 enters a call process during the data transmission process to the printer 1, the mobile phone 14 executes the data transmission process and the call process in parallel. Thereby, even if there is an incoming call during data communication, the user can easily respond to the incoming call and enjoy a call with the other party. In addition, since data transfer is continued even when an incoming call is answered, a print result can be obtained without retransmitting data. That is, a printed matter can be obtained in a shorter time than in the past.

(2)携帯電話14から指向性の高い赤外線を用いてデータ送信する場合、携帯電話14の赤外線受発光部(通信ポート)20をプリンタ1側の赤外線受発光部(通信ポート)13aに向けてその送信先に位置する赤外線受発光部13aを見ながらデータ送信が行われる。このとき、ユーザが見ている赤外線受発光部13aの近傍で表示部13bが通信状態を報知するので、データ送信中に受信状態を容易に視認できる。   (2) When data is transmitted from the mobile phone 14 using infrared rays with high directivity, the infrared light receiving / emitting unit (communication port) 20 of the mobile phone 14 is directed toward the infrared light receiving / emitting unit (communication port) 13a on the printer 1 side. Data transmission is performed while looking at the infrared light emitting / receiving unit 13a located at the transmission destination. At this time, since the display unit 13b notifies the communication state in the vicinity of the infrared light emitting / receiving unit 13a that the user is viewing, the reception state can be easily visually recognized during data transmission.

(3)本体2の前面に設けられたカードスロット12にCF型通信カード13をセットする構成としたので、表示部13bが本体2の前面に位置し、ユーザ(操作者)から視認し易い。操作パネル8の画面9aはプリンタ1の本体2の上面に上向きに設けられているので、例えばプリンタ1の前側から手を伸ばして携帯電話14を通信可能域内に入れてデータ送信するユーザからは、操作パネル8の画面9aが見えにくい。しかし、通信ポートである赤外線受発光部13aと同じ本体2の前面に表示部13bが配置されているので、このような姿勢でデータ送信するユーザからも表示部13bがよく見えデータ受信状態を確認しやすい。   (3) Since the CF type communication card 13 is set in the card slot 12 provided on the front surface of the main body 2, the display unit 13 b is located on the front surface of the main body 2 and is easily visible to the user (operator). Since the screen 9a of the operation panel 8 is provided upward on the upper surface of the main body 2 of the printer 1, for example, a user who extends his / her hand from the front side of the printer 1 and puts the mobile phone 14 within the communicable area transmits data. The screen 9a of the operation panel 8 is difficult to see. However, since the display unit 13b is arranged on the front surface of the main body 2 which is the same as the infrared light receiving / emitting unit 13a which is a communication port, the display unit 13b can be seen well from the user who transmits data in such an attitude and the data reception state is confirmed. It's easy to do.

(4)プリンタ1が比較的高い場所に設置されていると、本体2の上面に位置する操作パネル8の画面9aが上向きとなりユーザがその画面9aを確認することができないが、表示部13bが本体2の前面(正面)で点灯するので、データ送信するユーザ(操作者)からよく視認できる。なお、カードスロット12が例えば本体2の側面に設けられた構成においても、同様の効果が得られる。   (4) If the printer 1 is installed at a relatively high place, the screen 9a of the operation panel 8 located on the upper surface of the main body 2 faces upward, and the user cannot check the screen 9a. Since it lights on the front surface (front surface) of the main body 2, it can be seen well from the user (operator) who transmits data. The same effect can be obtained even in a configuration in which the card slot 12 is provided on the side surface of the main body 2, for example.

(5)データ受信状態が表示部13bの表示色で報知されるので、受信状態を判別し易い。また、データ受信状態が良好なときは、「受信可能」、「受信中」のいずれも点灯色を同色(緑色)とし、エラー時は赤色点灯としたので、点灯色から受信状態が良好か否かも判別できる。さらに、データ受信状態を操作パネル8の画面9aにも表示させるので、受信状態が画面に文字又は画像の少なくとも一方を用いて報知されるので、ストレートに分かり易い。   (5) Since the data reception state is notified by the display color of the display unit 13b, it is easy to determine the reception state. In addition, when the data reception status is good, the lighting color is the same color (green) for both “Receivable” and “Receiving”, and when the error occurs, the lighting color is red. It can also be determined. Furthermore, since the data reception state is also displayed on the screen 9a of the operation panel 8, the reception state is notified using at least one of characters or images on the screen, so that it is straightforward and easy to understand.

(6)プリンタ1は複数の通信方式によりデータ受信が可能であるが、これらのうち1つのポートからしかデータ受信できないので、CF型通信カード13からデータ受信可能であるかどうかを、インターロック処理で判断する。そして、インターロック機能により受信可能と判断されたときのみ表示部13bに受信可能の旨を知らせる緑点灯の表示をし、受信不可と判断されたときは表示部13bを消灯する。このため、プリンタ1側でデータ受信準備ができていないことが分からず、ユーザが何度もデータを送信してもその度にエラーとなる事態を回避できる。   (6) Although the printer 1 can receive data by a plurality of communication methods, since it can only receive data from one of these ports, an interlock process is performed to determine whether or not data can be received from the CF-type communication card 13. Judge with. Only when it is determined that reception is possible by the interlock function, the display unit 13b is lit in green to notify that reception is possible, and when it is determined that reception is impossible, the display unit 13b is turned off. Therefore, it is not known that the printer 1 is not ready to receive data, and it is possible to avoid a situation where an error occurs each time the user transmits data many times.

(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, it is possible to notify the user that an error has occurred by blinking red the display unit 13b of the CF type communication card 13 that can communicate with the printer 1. 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)プリンタ1の本体2の上面に上側を向いて設けられた画面9aにもデータ受信状態を表示させるようにしたので、プリンタ1より高い目線の位置からデータ送信するユーザにとっても、通信状態を知ることができる。   (8) Since the data reception state is also displayed on the screen 9a provided on the upper surface of the main body 2 of the printer 1 so as to face upward, it is also possible for the user who transmits data from a position with a higher eye level than the printer 1 to communicate. Can know.

(9)本実施形態では、赤外線通信方式の導入に当たり、他の通信方式のラスタ処理部を利用(共用)できるように、データ形式を変換するIrDAプロファイル処理部74を設けている。すなわち、vNoteファイル添付形式の画像データ(エンコード画像データ)はBase64デコードによってJPEG画像データにデコードし、vCardファイル形式の個人情報データ(テキストデータ)はテンプレート組込み記述形式のXHTMLデータに変換した。よって、その形式変換後は他の通信方式と共用のデータ処理経路を通ることで印刷データに変換することができる。従って、赤外線通信方式をプリンタ1に導入するに当たり、追加すべき回路及びソフトウェアをできるだけ簡素に済ませることができる。   (9) In this embodiment, the IrDA profile processing unit 74 for converting the data format is provided so that the raster processing unit of another communication method can be used (shared) when the infrared communication method is introduced. 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.

(10)IrDA通信モジュールをカードに内蔵したCF型通信カード13とし、メモリカード用のカードスロット12にセットするだけでプリンタ1に実装できるようにしたので、プリンタ1の筐体を変更することなくそのまま使用することができる。従って、プリンタ1の筐体を形状変更する必要がないので、筐体の設計変更や製造金型変更が不要である。このことは赤外線通信方式導入によるプリンタ1の製造コスト増大を抑制できる。   (10) Since the IrDA communication module is a CF-type communication card 13 built in the card and can be mounted on the printer 1 simply by being set in the card slot 12 for the memory card, the housing of the printer 1 is not changed. It can be used as it is. 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.

(11)携帯電話14の個人情報データはvCard形式であり、直接データを印刷することはできないが、vCard形式ファイルデータをXHTML形式のデータに変換する手段を設けたことにより印刷可能なデータにすることができる。   (11) The personal information data of the mobile phone 14 is in vCard format, and data cannot be printed directly, but it is made printable data by providing a means for converting vCard format file data into XHTML format data. be able to.

(12)データの単件、全件の区別がつくことにより、単件の場合は名刺テンプレート形式のデータに変換され、全件の場合には電話帳テンプレート形式のデータに変換されるようにすることができる。   (12) By distinguishing between single cases and all cases, data is converted into business card template format data for single cases, and converted to phone book template format data for all cases. be able to.

(13)データが単件、全件を区別するだけで、自動的に印刷レイアウトを決定することもできる。
(14)vCardのデータの種類により、名刺レイアウトを変更することができる。例えば、会社に関連するデータのみが入っている場合は、会社用名刺レイアウト、私的情報のみが入っている場合は、個人用名刺レイアウトで印刷することができる。
(13) The print layout can be automatically determined by simply distinguishing between single and all data.
(14) The business card layout can be changed according to the type of vCard data. For example, when only the data related to the company is included, it can be printed with the business card layout for the company, and when only the private information is included, it can be printed with the personal business card layout.

(15)vCardのデータを取捨選択することにより、会社用名刺レイアウト、個人用名刺レイアウトあるいは電話帳レイアウトが選択できる。
(16)オブジェクトのうちメモ領域の記述情報に応じた指定内容で印刷できる。すなわち、ユーザは携帯電話14の個人情報欄を表示させてその中のメモ欄に「a」「b」「c」などの文字情報を書き込む。この記述された文字情報は個人情報データのうちメモ領域格納される。このメモ領域に記述された数字はレイアウトを指定する文字として扱われる。携帯電話14から送信された個人情報データを受信すると、そのメモ領域に格納された数字を識別してその文字に応じたレイアウトを決定する。個人情報をメモ領域で指定したレイアウトで印刷できる。
(15) By selecting vCard data, a company business card layout, a personal business card layout, or a telephone directory layout can be selected.
(16) The object can be printed with the specified content corresponding to the description information of the memo area. That is, the user displays the personal information column of the mobile phone 14 and writes character information such as “a”, “b”, and “c” in the memo column therein. The written character information is stored in the memo area of the personal information data. The numbers described in this memo area are treated as characters that specify the layout. When the personal information data transmitted from the mobile phone 14 is received, the number stored in the memo area is identified and the layout corresponding to the character is determined. Personal information can be printed in the layout specified in the memo area.

(17)携帯電話14で作成されたデータがプリンタ1に送信され、プリンタ単独で名刺印刷を容易にすることができる。手持ちの名刺がなくなった場合に、携帯電話14のデータをプリンタ1に送るだけで、容易に必要な枚数の名刺を印刷することができる。しかも、携帯電話14で元々個人情報を管理するデータを利用するので、名刺の記載内容を改めて入力する手間もいらない。さらに携帯電話14で扱われるレイアウト定義できないvCard形式のデータをレイアウト定義できるXHTML形式のデータに形式変換するので、一般の名刺どおりのレイアウトで印刷できる。また、名刺テンプレートも複数種用意されているので、所望のレイアウトの名刺を印刷できる。   (17) Data created by the mobile phone 14 is transmitted to the printer 1, and business card printing can be facilitated by the printer alone. When there are no business cards on hand, the necessary number of business cards can be printed easily by simply sending the data of the mobile phone 14 to the printer 1. In addition, since the mobile phone 14 originally uses data for managing personal information, there is no need to input the contents of the business card. Further, the vCard format data that cannot be defined by the mobile phone 14 is converted into the XHTML format data that can be layout defined, so that it can be printed in the layout as a general business card. In addition, since a plurality of business card templates are prepared, a business card having a desired layout can be printed.

(18)携帯電話14から受信したデータを基に、これらのデータをプリンタ1が適宜変換して直接印刷することができる。よって、パーソナルコンピュータ(PC)にデータを送り、PCのデータをメモリカード等の記憶媒体に記憶させ、プリンタ1に読み込んで印刷するよりも容易に素早く印刷することができる。   (18) Based on the data received from the mobile phone 14, the printer 1 can appropriately convert these data and print them directly. Therefore, data can be sent to a personal computer (PC) and stored in a storage medium such as a memory card, and can be printed more easily and quickly than when it is read into the printer 1 and printed.

(第二の実施形態)
以下、本発明を具体化した第二の実施形態を図面に従って説明する。尚、第一の実施形態と同じ部材については同じ符号を付して詳細な説明を省略する。
(Second embodiment)
Hereinafter, a second embodiment of the present invention will be described with reference to the drawings. In addition, about the same member as 1st embodiment, the same code | symbol is attached | subjected and detailed description is abbreviate | omitted.

本実施形態の携帯電話14aは、通話機能、ブルートゥース(Bluetooth(TM) )(以下、BTと記す)通信機能、電話番号等を含む個人情報を登録管理できる電話帳機能、他の携帯電話との間で電子メールを送受信する電子メール機能、静止画又は動画を撮影するデータ生成手段としてのカメラ機能、通話及びデータ送信を同時に行う並列処理機能など、多くの機能を備えている。   The cellular phone 14a of the present embodiment includes a telephone function, a Bluetooth (TM) (hereinafter referred to as BT) communication function, a telephone book function capable of registering and managing personal information including a telephone number, and other cellular phones. It has many functions, such as an e-mail function for sending and receiving e-mail between them, a camera function as a data generation means for taking a still image or a moving image, and a parallel processing function for simultaneously performing a call and data transmission.

携帯電話14aは、電話帳機能で扱う個人情報データ(テキストデータ)と、カメラ機能で扱う画像データとを、無線通信対応のファイル形式でそれぞれ管理している。詳しくは、個人情報データはvCard(TM)ファイル形式で管理され、画像データはJPEGデータとして管理されている。携帯電話14aは、BT通信機能を介してvCardファイル形式の個人情報データ又は画像データを送信し、プリンタ1は、通信インターフェイス45のBT通信部45cを介してそれを受信する。また、携帯電話14aは、他の携帯電話やパソコン等との間で携帯電話網を通じて電子メールや画像データを送受信できる。   The mobile phone 14a 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 wireless communication. Specifically, personal information data is managed in a vCard (TM) file format, and image data is managed as JPEG data. The cellular phone 14a transmits personal information data or image data in the vCard file format via the BT communication function, and the printer 1 receives it via the BT communication unit 45c of the communication interface 45. The mobile phone 14a can send and receive e-mails and image data to and from other mobile phones and personal computers through the mobile phone network.

詳述すると、図37に示すように、携帯電話14aは、制御部21、記憶手段としてのメモリ22、通話手段としての送受信部23、マイク24、スピーカ25、操作ボタン15、ディスプレイ18、CCD撮像装置19、通信手段としてのブルートゥース通信部(以下、BT通信部)26を有している。   More specifically, as shown in FIG. 37, the mobile phone 14a includes a control unit 21, a memory 22 as a storage unit, a transmission / reception unit 23 as a call unit, a microphone 24, a speaker 25, an operation button 15, a display 18, and CCD imaging. The apparatus 19 includes a Bluetooth communication unit (hereinafter referred to as a BT communication unit) 26 as a communication unit.

BT通信部26は、所定通信プロトコルに従って所定規格周波数帯域の電波による近距離無線通信で、通信可能な範囲内に存在する他のBT通信機にデータを送信することが可能である。   The BT communication unit 26 can transmit data to other BT communication devices existing within a communicable range by short-range wireless communication using radio waves in a predetermined standard frequency band according to a predetermined communication protocol.

制御部21は前記保存した個人情報データや画像データをBT通信部26を介して送信するための処理動作を操作ボタン15の操作に基づいて実行する。制御部21からBT通信部45cに送信される際は、個人情報データはvCardファイル形式で、また画像データ(エンコードされたJPEGデータ)はvNoteファイル形式で送信される。   The control unit 21 executes a processing operation for transmitting the stored personal information data and image data via the BT communication unit 26 based on the operation of the operation button 15. When transmitted from the control unit 21 to the BT communication unit 45c, the personal information data is transmitted in the vCard file format, and the image data (encoded JPEG data) is transmitted in the vNote file format.

また、制御部21は、並列処理機能を提供する並列処理手段として動作する。即ち、制御部21は、ユーザの操作に基づいて保存された画像データ・個人情報データの送信中に送受信部23から通話が着信した旨を受け取ると、その旨をディスプレイ18に表示する。そして、ユーザが着信に応答するべく操作ボタン15を操作する(通話ボタンを押下する)と、制御部21は送受信部23に応答を許可し、送受信部23は相手の電話との間にチャネルを確立し、該チャネルを利用して音声信号の送受信を行う。そして、制御部21は、送受信部23から受け取る音声信号をスピーカ25に出力し、ユーザの音声をマイク24にて変換した信号を送受信部23に出力する。これにより、該携帯電話14aを所有するユーザと、該ユーザに対して発呼した電話を所有するユーザ(通話相手)との間における通話を可能にする。   The control unit 21 operates as a parallel processing unit that provides a parallel processing function. That is, when the control unit 21 receives that a call has arrived from the transmission / reception unit 23 during transmission of image data / personal information data stored based on the user's operation, the control unit 21 displays that fact on the display 18. When the user operates the operation button 15 to respond to the incoming call (presses the call button), the control unit 21 permits the transmission / reception unit 23 to respond, and the transmission / reception unit 23 establishes a channel between the other party's phone. Establish and transmit and receive audio signals using the channel. And the control part 21 outputs the audio | voice signal received from the transmission / reception part 23 to the speaker 25, and outputs the signal which converted the user's audio | voice with the microphone 24 to the transmission / reception part 23. FIG. This enables a call between the user who owns the mobile phone 14a and the user (calling party) who owns the phone called to the user.

プリンタ1に対する画像データ・個人データの送信は、携帯電話14aのBT通信部26とプリンタ1のBT通信部45cとの間で所定帯域の電波にて行われる。従って、この通信は、携帯電話14aがプリンタ1から所定距離(両BT通信部26,45cの電気的特性により決定される距離)の範囲内に存在すれば継続される。このため、ユーザは、データの送信中に携帯電話14aをその範囲内で移動させることができる、即ち携帯電話14aをプリンタ1に近づけていればデータの送信が可能であるため、赤外線通信にてデータを送信する場合のように携帯電話14aの赤外線発光部がプリンタ1の赤外線受光部に向くように保持する必要がなく、姿勢等の点から容易にデータ送信を行うことができる。また、携帯電話14aの赤外線発光部がプリンタ1の赤外線受光部に向くように保持する必要がないので、ユーザは、着信があった場合にデータの送信中であっても携帯電話14aを頭部に近づけることができるので、携帯電話14aのスピーカ25を耳の近くに配置して相手の声を良く聞き取ることや、自分の声が確実に携帯電話14aのマイク24にて集音することができ、通話を確実に行うことができる。   Transmission of image data / personal data to the printer 1 is performed by radio waves in a predetermined band between the BT communication unit 26 of the mobile phone 14 a and the BT communication unit 45 c of the printer 1. Accordingly, this communication is continued if the mobile phone 14a is within a predetermined distance from the printer 1 (a distance determined by the electrical characteristics of both the BT communication units 26 and 45c). For this reason, the user can move the mobile phone 14a within the range during data transmission, that is, if the mobile phone 14a is close to the printer 1, data transmission is possible. Unlike the case of transmitting data, it is not necessary to hold the infrared light emitting unit of the mobile phone 14a so as to face the infrared light receiving unit of the printer 1, and data transmission can be easily performed from the viewpoint of the posture and the like. Further, since it is not necessary to hold the infrared light emitting portion of the mobile phone 14a so as to face the infrared light receiving portion of the printer 1, the user can hold the mobile phone 14a on the head even when data is being transmitted when there is an incoming call. Since the speaker 25 of the mobile phone 14a is placed close to the ear, the voice of the other party can be heard well, and the user's voice can be reliably collected by the microphone 24 of the mobile phone 14a. , Can make a call reliably.

以下、本実施形態の効果を記載する。
(1)携帯電話14aはBT通信部26を有し、制御部21は、BT通信部26を介してデータをプリンタ1に送信中に着信があった場合には並列処理機能によってデータ通信と着信に応答する通話を同時に行うようにした。BT通信部26によるデータ通信は、赤外線通信に比べて携帯電話14aを正しくプリンタ1のCF型通信カード13に向ける必要がないので、通常の通話時と同様に携帯電話を頭部に近づけて確実に通話を行うことができる。
Hereinafter, effects of the present embodiment will be described.
(1) The mobile phone 14a has a BT communication unit 26, and when the control unit 21 receives an incoming call while transmitting data to the printer 1 via the BT communication unit 26, the parallel processing function performs data communication and incoming call. Calls that respond to were made at the same time. The data communication by the BT communication unit 26 does not require the mobile phone 14a to be correctly directed to the CF type communication card 13 of the printer 1 as compared with the infrared communication. You can make a call.

以下、前記実施形態に対する変形例を記載する。
(変形例1)上記第二実施形態において、携帯電話14aから送信されたデータを印刷するプリンタは上記構成に限定されない。例えば、図38に示すように、外部接続ユニットとしてBT通信ユニットBUを接続するプリンタ1aでもよい。このBT通信ユニットBUは、USB通信部45fにコネクタを介して接続される。USB通信部45fは、USBホストとしての機能を有し、BT通信ユニットBUはUSBデバイスとしての機能を有している。従って、USB通信部45fは、BT通信ユニットBUからUSBを介してデータを受信し、プリンタ1aはそのデータに基づく印刷処理を行う。このように構成されたプリンタ1aにおいて、携帯電話14aにて撮影された画像データを容易に印刷することができる。
Hereinafter, modifications to the embodiment will be described.
(Modification 1) In the second embodiment, the printer for printing the data transmitted from the mobile phone 14a is not limited to the above configuration. For example, as shown in FIG. 38, a printer 1a connecting a BT communication unit BU as an external connection unit may be used. The BT communication unit BU is connected to the USB communication unit 45f via a connector. The USB communication unit 45f has a function as a USB host, and the BT communication unit BU has a function as a USB device. Accordingly, the USB communication unit 45f receives data from the BT communication unit BU via the USB, and the printer 1a performs a printing process based on the data. In the printer 1a configured as described above, image data captured by the mobile phone 14a can be easily printed.

(変形例2)携帯電話14において、データ送信と通話の何れかを優先させるように構成してもよい。即ち、携帯電話14において、制御部21は、該携帯電話14の各種機能を設定するモードにおいて、上記データ通信と通話との優先度を設定させるべくディスプレイ18に表示し、ユーザの操作ボタン15の操作に応じて設定された優先度をメモリ22に記憶する。そして、プリンタ1に対するデータ送信の処理と着信に応答する処理とを同時に行わなければならなくなった時(データ送信の処理中に着信があった場合)、制御部21は、メモリ22に記憶した優先度に基づいて、優先度の高い処理を実行し、それよりも優先度の低い処理を先の処理の終了後に実行する。即ち、この変形例では、制御部21,メモリ22,操作ボタン15は優先度を設定する設定手段として機能し、制御部21は処理の同時実行を判断する判断手段として機能する。更に、制御部21は、設定された優先度に基づいて優先度の高い処理を実行する優先処理手段として機能する。このように構成すれば、通話を優先するユーザと、データ送信を優先するユーザと、の何れにも対応することができ、データ送信時における着信にユーザの嗜好に応じて容易に対応することができる。   (Modification 2) The mobile phone 14 may be configured to give priority to either data transmission or telephone call. That is, in the mobile phone 14, the control unit 21 displays on the display 18 in order to set the priority between the data communication and the call in the mode for setting various functions of the mobile phone 14. The priority set according to the operation is stored in the memory 22. When it is necessary to simultaneously perform data transmission processing for the printer 1 and processing for responding to an incoming call (when there is an incoming call during the data transmission processing), the control unit 21 stores the priority stored in the memory 22. A process with a higher priority is executed based on the degree, and a process with a lower priority than that is executed after the end of the previous process. That is, in this modified example, the control unit 21, the memory 22, and the operation button 15 function as a setting unit that sets priority, and the control unit 21 functions as a determination unit that determines simultaneous execution of processing. Furthermore, the control unit 21 functions as a priority processing unit that executes high priority processing based on the set priority. If comprised in this way, it can respond to both the user who gives priority to a telephone call, and the user who gives priority to data transmission, and can respond easily to the incoming call at the time of data transmission according to a user preference. it can.

(変形例3)携帯電話14において、プリンタ1にデータを送信する処理中に該携帯電話14に着信があった場合に、その着信に対する応答を処理してデータ送信を中止するように構成しても良い。この場合、携帯電話14の制御部21は、表示部としてのディスプレイ18に送信エラーの旨を表示させる。即ち、制御部21は、表示部にエラーの旨を表示させる表示手段として機能する。このように構成された携帯電話では、着信した通話を確実に楽しむことができるとともに、データ通信の状態をディスプレイ18にて容易に確認することができる。   (Modification 3) In the mobile phone 14, when there is an incoming call to the mobile phone 14 during the process of sending data to the printer 1, a response to the incoming call is processed to stop data transmission. Also good. In this case, the control unit 21 of the mobile phone 14 displays a message indicating a transmission error on the display 18 serving as a display unit. That is, the control unit 21 functions as a display unit that displays an error message on the display unit. In the mobile phone configured as described above, the incoming call can be surely enjoyed and the state of data communication can be easily confirmed on the display 18.

(変形例4)携帯電話14を、前記実施形態、上記変形例1,2を適宜変更可能に構成してもよい。即ち、携帯電話は、データ通信と通話とを同時に行うモード、データ通信と通話の何れかを優先させるモード、データ通信中に着信があった場合にはその着信に基づく通話を行い表示部にエラーを表示するモード、を備え、各モードの変更を操作ボタン15の操作に基づいてメモリ22に記憶する。このように構成すれば、ユーザの嗜好に適してデータ通信及び通話を行うことができる。   (Modification 4) The mobile phone 14 may be configured so that the embodiment and the modifications 1 and 2 can be appropriately changed. In other words, the mobile phone is a mode in which data communication and a call are performed simultaneously, a mode in which either data communication or a call is prioritized, and if there is an incoming call during data communication, a call based on the incoming call is made and an error occurs in the display unit. And a change in each mode is stored in the memory 22 based on the operation of the operation button 15. If comprised in this way, a data communication and a telephone call can be performed suitable for a user preference.

(変形例5)前記各形態では、携帯電話14とプリンタ1との間のデータ送信を赤外線通信にて行うようにしたが、BT通信,UWB(超広帯域無線通信)等の無線通信を用いてデータ通信を行うようにしてもよい。また、携帯電話14とプリンタ1とをケーブルにて接続した有線通信にてデータ通信を行うようにしてもよい。   (Modification 5) In each of the above embodiments, data transmission between the mobile phone 14 and the printer 1 is performed by infrared communication. However, wireless communication such as BT communication, UWB (ultra-wide band wireless communication) or the like is used. Data communication may be performed. Further, data communication may be performed by wired communication in which the mobile phone 14 and the printer 1 are connected by a cable.

(変形例6)上記各形態では、制御部21が並列処理機能を提供するように構成されたが、携帯電話14全体として並列処理機能を提供するように構成されていてもよい。即ち、保存したデータをプリンタ1に送信するデータ送信制御部と、通話機能を制御する通話制御部とを備えることとしてもよい。このように構成すれば、各制御部における負荷が少なくなり、より高品質な通話の提供等を行うことができる。尚、送受信部23にマイク24及びスピーカ25を接続し、通話制御の機能を送受信部23が受け持つようにしてもよい。   (Modification 6) In each of the above embodiments, the control unit 21 is configured to provide a parallel processing function, but the mobile phone 14 as a whole may be configured to provide a parallel processing function. That is, a data transmission control unit that transmits stored data to the printer 1 and a call control unit that controls a call function may be provided. If comprised in this way, the load in each control part will decrease and provision of a higher quality telephone call etc. can be performed. Note that the microphone 24 and the speaker 25 may be connected to the transmission / reception unit 23 so that the transmission / reception unit 23 takes charge of the call control function.

(変形例7)前記実施形態では、表示による報知としているが、表示と共に音による報知を行ってもよい。例えばデータ受信中、受信エラー時及び受信完了時のいずれか一つの時期に音を発するようにする。データ送信中に音を発すればデータ受信が巧くいっていることが分かり、受信エラー時に音を発すればデータ受信が失敗したことが分かり、さらに受信完了時に音を発すればデータ受信完了が分かる。   (Modification 7) In the above-described embodiment, notification by display is used, but notification by sound may be performed together with display. For example, during data reception, a sound is emitted at any one time of reception error and reception completion. If you make a sound during data transmission, you know that the data reception is skillful. If you make a sound when there is a reception error, you know that the data reception has failed. I understand.

(変形例8)表示部はCF型通信カード13ではなく、本体2に設けることもできる。プリンタ1の前面において排紙口を挟んだ両側のうち少なくとも一方側において、本体底面側から10cm以内の箇所に通信ポートを設けている。   (Modification 8) The display unit can be provided not on the CF type communication card 13 but on the main body 2. A communication port is provided at a position within 10 cm from the bottom surface side of the main body on at least one side of both sides of the front surface of the printer 1 across the paper discharge port.

(変形例9)無線通信器であるCF型通信カード13に通信インターフェイス部の一部又は全部が組み込まれてもよい。例えばカードドライバ71、データトランスファ部73がカード側に内蔵されてもよい。また、例えば赤外線受発光部13aとIrDA通信回路61がカード側で、ファイル転送部63及びオブジェクト送受信部64が出力装置本体側に配置されてもよい。   (Modification 9) A part or all of the communication interface unit may be incorporated in the CF type communication card 13 which is a wireless communication device. For example, the card driver 71 and the data transfer unit 73 may be built in the card side. Further, for example, the infrared light emitting / receiving unit 13a and the IrDA communication circuit 61 may be arranged on the card side, and the file transfer unit 63 and the object transmission / reception unit 64 may be arranged on the output device main body side.

(変形例10)前記実施形態では、名刺で説明したが、テレフォンカード、銀行カード、社員カード等のカード状のものであれば同様に印刷できる。実施形態では、顔写真で説明したが、会社のロゴマーク、または、活動を象徴するマーク、または、写真等の画像データであってもよい。   (Modification 10) Although the business card has been described in the above embodiment, it can be printed in the same manner as long as it is in the form of a card such as a telephone card, a bank card, and an employee card. In the embodiment, the face photograph is described, but it may be a company logo mark, a mark symbolizing an activity, or image data such as a photograph.

(変形例11)ロール紙を選択して、名刺レイアウトあるいは電話帳レイアウトで印刷処理をしたとき、その印刷のレイアウト形態に合わせて自動的にロール紙をカットする指定を、メモ領域の記述情報に基づいて行えるようにしてもよい。   (Modification 11) When a roll paper is selected and a printing process is performed with a business card layout or a phone book layout, the designation to automatically cut the roll paper according to the printing layout form is included in the description information of the memo area. It may be possible to perform based on this.

第一の実施形態におけるプリンタの斜視図。FIG. 3 is a perspective view of the printer according to the first 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 a 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. データ変換処理にかかる電気構成を示すブロック図。The block diagram which shows the electric constitution concerning a data conversion process. プリンタの共有化構造を示すブロック図。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. 図13と異なる通信ステータスの遷移図。FIG. 14 is a transition diagram of communication status different from FIG. インターロック処理を説明するブロック図。The block diagram explaining an interlock process. カード認識時の初期処理を示すフローチャート。The flowchart which shows the initial process at the time of card | curd recognition. データ適否判定処理を示すフローチャート。The flowchart which shows a data suitability determination 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. インターロック解除処理を説明するシーケンス図。The sequence diagram explaining an interlock release process. 赤外線通信と電波通信との競合回避処理を示すシーケンス図。The sequence diagram which shows the competition avoidance process with infrared communication and electromagnetic wave communication. (a)はデータ受信状態を報知する画面図、(b)は動画画像のコマ毎の画像図、(c)は印刷中を報知する画像図。(A) is a screen diagram for informing the data reception state, (b) is an image diagram for each frame of the moving image, and (c) is an image diagram for informing printing. 単件のvCardファイルのデータ図。Data diagram of a single vCard file. 単件の画像付きvCardファイルのデータ図。Data diagram of a single vCard file with images. 全件のvCardファイルのデータ図。Data diagram of all vCard files. 名刺レイアウトテンプレートのデータ図。Business card layout template data diagram. 画像付き名刺レイアウトテンプレートのデータ図。Data diagram of business card layout template with images. テンプレート書式データのデータ図。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. (a),(b)は画像データを取り込んだ名刺レイアウト図。(A), (b) is a business card layout diagram incorporating image data. (a)〜(f)は画像データとテキストデータを組み合わせた印刷レイアウト図。(A)-(f) is the printing layout figure which combined image data and text data. (a)〜(c)は複数のテキストを含む印刷レイアウト図、(d)〜(f)は複数の画像を含む印刷レイアウト図。(A)-(c) is a print layout figure containing a some text, (d)-(f) is a print layout figure containing a some image. IrDAプロファイル部の処理を示すフローチャート。The flowchart which shows the process of an IrDA profile part. 第二の実施形態の携帯電話及びプリンタの電気的構成を示すブロック図。The block diagram which shows the electric constitution of the mobile telephone and printer of 2nd embodiment. 別の携帯電話及びプリンタの電気的構成を示すブロック図。The block diagram which shows the electric constitution of another mobile telephone and a printer.

符号の説明Explanation of symbols

1…出力装置及び印刷装置としてのプリンタ、12…スロットとしてのカードスロット、13…無線通信インターフェイスを構成するとともに無線通信器としてのCFカード型赤外線通信カード(赤外線通信カード)、14…携帯電話、18…携帯電話のディスプレイ、20…赤外線受発光部(携帯電話側の通信ポート)。   DESCRIPTION OF SYMBOLS 1 ... Printer as output device and printing device, 12 ... Card slot as slot, 13 ... CF card type infrared communication card (infrared communication card) as wireless communication interface and wireless communication device, 14 ... Mobile phone, 18 ... Mobile phone display, 20 ... Infrared light emitting and receiving unit (communication port on the mobile phone side).

Claims (6)

他の電話との通話手段と、
データを記憶する記憶手段と、
印刷装置に前記データを送信する近距離無線通信手段と、
前記近距離無線通信手段による前記印刷装置への前記データの送信処理と前記通話のための処理との優先度を設定する設定手段と、
前記データの送信処理中に前記通話手段により通話の着信があったと判断した場合には、前記設定された優先度に基づく一つの処理を優先実行する優先処理手段と、
を備えたことを特徴とする携帯電話。
A means of communicating with other phones,
Storage means for storing data;
Short-range wireless communication means for transmitting the data to a printing device;
Setting means for setting a priority between the data transmission process to the printing apparatus and the call process by the short-range wireless communication unit;
If it is determined that there is an incoming call by the pre-Symbol call means during the transmission process of the data, a priority processing unit that preferentially executing one of the processing based on the set priority,
A mobile phone characterized by comprising:
前記優先処理手段は、前記優先実行した前記一つの処理を終了した後に、当該一つの処理よりも優先度の低い方の処理を実行することを特徴とする請求項1に記載の携帯電話。 The priority processing unit, said after finishing the one processing priority execution, the mobile phone according to claim 1, characterized in that executing the processing of low other hand priority than the one processing. 前記データの送信処理中に前記通話手段により通話の着信があったときには前記データの送信処理と通話のための処理とを並列処理する並列処理手段を更に備え、
前記データの送信処理中に前記通話手段により通話の着信があったときには前記並列処理手段が前記データの送信処理前記通のための処理とを並列処理するモードと、前記優先処理手段が前記設定手段により設定された優先度に基づく一つの処理を優先実行するモードとを備え、
前記設定手段は、前記複数のモードのうちの何れか一つを実行するモードとして設定するものであることを特徴とする請求項2に記載の携帯電話。
The can and call incoming there was Tsu by the call means during the transmission process of the data further comprising parallel processing means for parallel processing and processing for a call and the transmission processing of the data,
Kiniwa a call incoming there was Tsu by the call means during the transmission process of the data, a mode in which the parallel processing means for parallel processing and processing for the through talking to the transmission processing of the data, the priority processing means and a mode in which priority execution of one process based on the set by the priority by said setting means,
The mobile phone according to claim 2, wherein the setting unit sets a mode for executing any one of the plurality of modes.
前記データの送信処理中に前記通話手段により通話の着信があったときには該通話処理を実行し、前記送信処理の状態を表示部に表示するモードを更に備え、
前記設定手段は、前記複数のモードのうちの何れか一つを実行するモードとして設定するものであることを特徴とする請求項3に記載の携帯電話。
To come incoming call there was Tsu by the call means during the transmission process of the data executes the vent talk process, further comprising a mode for displaying the status of the transmission processing to the display unit,
The mobile phone according to claim 3, wherein the setting unit sets a mode for executing any one of the plurality of modes.
前記近距離無線通信手段はブルートゥースであることを特徴とする請求項1〜4のうち何れか一項に記載の携帯電話。  The mobile phone according to any one of claims 1 to 4, wherein the short-range wireless communication means is Bluetooth. 請求項1〜5のうち何れか一項に記載の前記携帯電話と、前記印刷装置とを備えたことを特徴とする印刷処理システム。  A print processing system comprising the mobile phone according to claim 1 and the printing apparatus.
JP2004044965A 2003-08-29 2004-02-20 mobile phone Expired - Fee Related JP4363218B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004044965A JP4363218B2 (en) 2003-08-29 2004-02-20 mobile phone

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2003307845 2003-08-29
JP2004044965A JP4363218B2 (en) 2003-08-29 2004-02-20 mobile phone

Publications (3)

Publication Number Publication Date
JP2005102122A JP2005102122A (en) 2005-04-14
JP2005102122A5 JP2005102122A5 (en) 2007-04-05
JP4363218B2 true JP4363218B2 (en) 2009-11-11

Family

ID=34467431

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004044965A Expired - Fee Related JP4363218B2 (en) 2003-08-29 2004-02-20 mobile phone

Country Status (1)

Country Link
JP (1) JP4363218B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007214972A (en) * 2006-02-10 2007-08-23 Sharp Corp Mobile communication terminal device
KR100765782B1 (en) * 2006-04-13 2007-10-12 삼성전자주식회사 Method and apparatus for generating HTGML-PC data
KR100823266B1 (en) * 2006-04-13 2008-04-21 삼성전자주식회사 Method and apparatus for generating HTGML-PC data
JP4862520B2 (en) * 2006-06-30 2012-01-25 富士ゼロックス株式会社 Image processing apparatus and network communication method of image processing apparatus
CN101668067A (en) * 2009-08-19 2010-03-10 宇龙计算机通信科技(深圳)有限公司 Method for transmitting data in conversation and mobile terminal
US11477626B2 (en) * 2020-12-22 2022-10-18 Google Llc Method and system for segmenting and transmiting data between computing devices and vehicle head units

Also Published As

Publication number Publication date
JP2005102122A (en) 2005-04-14

Similar Documents

Publication Publication Date Title
JP2005254793A (en) Output device and wireless communication device
US8036244B2 (en) Transmitter, receiver, communication system, communication method, non-transitory computer readable medium
JP2018207529A (en) Communications system
JP4363218B2 (en) mobile phone
US9552086B2 (en) Image processing device and image processing system
US9467591B2 (en) Image processing apparatus capable of communicating with a mobile terminal
JP4479263B2 (en) Output device and output processing system
US8228529B2 (en) Adapter for communicating with image supply device and printing device and method of controlling the same
US5557662A (en) Communication apparatus capable of utilizing portable device
JP2005102118A (en) Mobile phone and printing device
JP2005050300A (en) Output device
JPH03198459A (en) Communication device
US7653403B1 (en) Cordless and wireless facsimile and method
JP2005047254A (en) Output device, wireless communication device, and output processing system
JP2005047255A (en) Output device and output processing system
JP2005047256A (en) Output device, wireless communication device, and output processing unit
JP2005047252A (en) Output device, wireless communication device, and output processing unit
JP2005051737A (en) Output device
JP2005050299A (en) Output device, wireless communication device, and output processing unit
JP4622757B2 (en) Printing system, printing method and printing apparatus
JPH0220168A (en) Facsimile equipment
JP2007069539A (en) Printing system, printing method and printing apparatus
JP2007083691A (en) Printing system, printing method and printing apparatus
JPS63211860A (en) fax machine
JP2002101238A (en) Image processing apparatus and control method for image processing system

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070220

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080715

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080912

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090310

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090430

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090728

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090810

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120828

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4363218

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130828

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees