JP2697980B2 - Wireless printer server - Google Patents
Wireless printer serverInfo
- Publication number
- JP2697980B2 JP2697980B2 JP3307412A JP30741291A JP2697980B2 JP 2697980 B2 JP2697980 B2 JP 2697980B2 JP 3307412 A JP3307412 A JP 3307412A JP 30741291 A JP30741291 A JP 30741291A JP 2697980 B2 JP2697980 B2 JP 2697980B2
- Authority
- JP
- Japan
- Prior art keywords
- control information
- format control
- printer
- information processing
- data
- 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
Links
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数の情報処理装置が
1台のプリンタを無線回線を介して共有するワイヤレス
プリンタサーバに関し、特に、複数の情報処理装置から
の出力がほぼ同時の場合にも誤った書式での印字を防止
できる受信アダプタ構成に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a wireless printer server in which a plurality of information processing apparatuses share one printer via a wireless line, and more particularly, to a case where outputs from a plurality of information processing apparatuses are substantially simultaneous. This also relates to a receiving adapter configuration that can prevent printing in an incorrect format.
【0002】[0002]
【従来の技術】プリンタを有効利用するため、複数の情
報処理装置が1台のプリンタを無線回線を介して共有す
るワイヤレスプリンタサーバシステムが実現されてい
る。2. Description of the Related Art In order to effectively use a printer, a wireless printer server system has been realized in which a plurality of information processing apparatuses share one printer via a wireless line.
【0003】図2は、このようなワイヤレスプリンタサ
ーバシステムの全体構成を示すものである。図2におい
て、複数の情報処理装置11〜1nはそれぞれ送信アダ
プタ21〜2nを有し、プリンタ1に与えようとするデ
ータをこの送信アダプタ21〜2nに出力する。各送信
アダプタ21〜2nは、与えられたデータを変調したり
電力増幅したりして送信アンテナ31〜3nから放射さ
せる。放射電波は、受信アンテナ3で捕捉されて受信ア
ダプタ2に与えられる。受信アダプタ2は、受信信号に
対して復調処理等を行ない、情報処理装置11、…、1
nが出力した状態のデータに戻してプリンタ1に与え
る。これにより、プリンタ1は印字を行なう。FIG. 2 shows the overall configuration of such a wireless printer server system. In FIG. 2, a plurality of information processing apparatuses 11 to 1n have transmission adapters 21 to 2n, respectively, and output data to be given to the printer 1 to the transmission adapters 21 to 2n. Each of the transmission adapters 21 to 2n modulates or amplifies power of given data and radiates the data from the transmission antennas 31 to 3n. The radiated radio waves are captured by the receiving antenna 3 and provided to the receiving adapter 2. The reception adapter 2 performs demodulation processing and the like on the received signal, and processes the information processing devices 11,.
The data is returned to the output state of n and given to the printer 1. Thus, the printer 1 performs printing.
【0004】実際上、複数の情報処理装置がほぼ同時に
データを出力しようとすることがある。今、3台の情報
処理装置11、12、13がそれぞれデータファイル
「イロハニホヘトチリヌ」、「アイウエオカキクケ
コ」、「アカサタナハマヤラワ」をプリンタ1に伝送し
ようとする。ここで、各情報処理装置11、12、13
のデータ編集プログラム、いわゆるアプリケーションプ
ログラムの処理速度がデータファイルの出力処理速度が
間に合わなくなって、データファイルの全てを一度に出
力できないこともある。このような場合、頁の切れ目等
でデータの出力を停止する。すなわち、1個のデータフ
ァイルが複数の電文ブロックに分れて送出される。通
常、先着優先制御を行なっているため、ある情報処理装
置の出力動作がとぎれると、他の情報処理装置が割り込
んでくる。In practice, a plurality of information processing apparatuses may output data almost simultaneously. Now, the three information processing apparatuses 11, 12, and 13 try to transmit the data files “Irohanihohettilinu”, “Aueokakikukeko”, and “Akasatanahamayarawa” to the printer 1, respectively. Here, each of the information processing apparatuses 11, 12, 13
In some cases, the processing speed of the data editing program, so-called application program, cannot keep up with the output processing speed of the data file, so that all of the data file cannot be output at once. In such a case, output of data is stopped at a page break or the like. That is, one data file is divided into a plurality of message blocks and transmitted. Normally, first-come-first-served control is performed, so that when an output operation of one information processing device is interrupted, another information processing device interrupts.
【0005】図3はこのような印字データの送出フロー
例を示している。上述した編集処理速度と出力処理速度
との相違によって、情報処理装置12が一部の印字デー
タ「アイウエオ」を含む電文ブロックM1を送出して出
力を停止したとする。このとき、送信要求を次に発生し
ていた情報処理装置11が選択されてその一部の印字デ
ータ「イロハニホ」の電文ブロックM2が受信アダプタ
2で受信される。以下、同様にして、情報処理装置13
が印字データ「アカサタナ」の電文ブロックM3を、情
報処理装置12が印字データ「カキクケコ」の電文ブロ
ックM4を、情報処理装置13が印字データ「ハマヤラ
ワ」の電文ブロックM5を、情報処理装置11が印字デ
ータ「ヘトチリヌ」の電文ブロックM6をこの順番で出
力した場合を示している。なお、図3にも示すように、
各情報処理装置11、12、13は、データファイルに
係る最初の電文ブロックの先頭には、いわゆるヘッダと
称する印字データ以外のプリンタ1への指示コードを付
加して送信している。FIG. 3 shows an example of such a print data transmission flow. It is assumed that the information processing device 12 stops sending by sending out the message block M1 including a part of the print data “Iueo” due to the difference between the editing processing speed and the output processing speed described above. At this time, the information processing apparatus 11 which has generated the transmission request next is selected, and the reception adapter 2 receives a part of the data block M2 of the print data “Irohaniho”. Hereinafter, similarly, the information processing apparatus 13
Is the message block M3 of the print data "Akasatana", the information processing device 12 prints the message block M4 of the print data "Kakikukeko", the information processing device 13 prints the message block M5 of the print data "Hamayawa", and the information processing device 11 prints. The figure shows a case where the message block M6 of the data "hettilinu" is output in this order. In addition, as also shown in FIG.
Each of the information processing apparatuses 11, 12, and 13 adds an instruction code to the printer 1 other than print data called a header at the head of the first message block relating to the data file and transmits the header.
【0006】このヘッダには、プリンタ1への文字種
(カタカナ、漢字、英字、ひらがな)、改行ピッチ、文
字間ピッチ、拡大指示、縮小指示等のいわゆる書式制御
情報も含まれている。すなわち、各情報処理装置11、
12、13は、自装置が意図した書式で印字させるため
にこの書式制御情報を送信してプリンタ1を制御する。
一般的には、1個のデータファイルに対しては全体を通
して同一の書式が適用させることが多く、このような場
合には先頭ブロックだけに書式制御情報が含まれる。The header also includes so-called format control information such as character types (Katakana, Kanji, English characters, Hiragana) to the printer 1, line feed pitch, character pitch, enlargement instruction, reduction instruction, and the like. That is, each information processing device 11,
The printers 12 and 13 transmit the format control information to control the printer 1 in order to print in the format intended by the own device.
In general, the same format is often applied to one data file throughout, and in such a case, only the first block contains format control information.
【0007】図4は、図3の印字データブロックに基づ
いてプリンタ1が印字した例を示すものである。プリン
タ1は、電文ブロックの受信順に印字を行なうので、そ
の送信元の情報処理装置の種類に関係なく、図4に示す
ような順番で印字データの印字を行なう。FIG. 4 shows an example in which the printer 1 prints based on the print data block shown in FIG. Since the printer 1 performs printing in the order in which the message blocks are received, the printer 1 performs printing of the print data in the order shown in FIG. 4 regardless of the type of the information processing apparatus of the transmission source.
【0008】[0008]
【発明が解決しようとする課題】しかしながら、従来の
ワイヤレスプリンタサーバにおいては、複数の情報処理
装置からの印字データの送出がほぼ平行して行われる場
合に、誤った書式での印字が生じるという問題があっ
た。However, in the conventional wireless printer server, when print data is sent from a plurality of information processing devices almost in parallel, printing in an incorrect format occurs. was there.
【0009】かかる問題を図5及び図6を用いて具体的
に説明する。受信アダプタ2はプリンタ1に対して、書
式制御情報を含む電文ブロックを受信したときにだけ書
式制御情報をプリンタ1に送出し、プリンタ1は新たな
書式制御情報が与えられるまで、その書式制御情報に従
った書式で印字を行なう。The above problem will be specifically described with reference to FIGS. The receiving adapter 2 sends format control information to the printer 1 only when receiving a message block including the format control information, and the printer 1 sends the format control information until new format control information is given. Print in the format according to.
【0010】今、情報処理装置11が文字種がカタカナ
のデータファイル「イロハニホヘトチリヌ」に係る印字
データを出力し、情報処理装置12が文字種が漢字のデ
ータファイル「日本東京都豊島区池袋」に係る印字デー
タを出力し、情報処理装置13が文字種が英字のデータ
ファイル「ABCDEFGHIJ」に係る印字データを
出力しようとしているとする。この場合も、情報処理装
置における編集処理速度と出力処理速度との相違によっ
て、各情報処理装置がデータファイルを分割して印字デ
ータを送信するとし、結局、「日本東京都」、「イロハ
ニホ」、「ABCDE」、「豊島区池袋」、「FGHI
J」、「ヘトチリヌ」の印字データを含む電文ブロック
の順に送出が行われたとする。この場合、情報処理装置
12は印字データが「日本東京都」の電文ブロックでは
文字種が漢字であることを明らかにし、印字データが
「豊島区池袋」の電文ブロックでは文字種を明らかにす
る情報を含めていない。同様に、情報処理装置11は印
字データが「イロハニホ」の最初の電文ブロックだけで
文字種がカタカナであることを明らかし、情報処理装置
13は印字データが「ABCDE」の最初の電文ブロッ
クだけで文字種が英字であることを明らかにする。Now, the information processing apparatus 11 outputs print data relating to a data file “Irohanihohetchirinu” whose character type is katakana, and the information processing apparatus 12 relates to a data file “Ikebukuro, Toshima-ku, Tokyo, Japan” whose character type is kanji. It is assumed that the print data is output and the information processing apparatus 13 is going to output the print data relating to the data file “ABCDEFGHIJ” whose character type is English. Also in this case, it is assumed that each information processing device divides the data file and transmits the print data due to the difference between the editing processing speed and the output processing speed in the information processing device, and eventually "Japan Tokyo", "Irohaniho""ABCDE","Ikebukuro,Toshima-ku","FGHI
Suppose that the transmission was performed in the order of the message blocks including the print data of “J” and “hettilinu”. In this case, the information processing device 12 clarifies that the character type is kanji in the message block of the print data “Tokyo, Japan”, and includes information that clarifies the character type in the message block of the print data “Ikebukuro, Toshima-ku”. Not. Similarly, the information processing device 11 clarifies that the print data is only the first message block of “Irohaniho” and the character type is katakana, and the information processing device 13 is that the print data is only the first message block of “ABCDE” and the character type is Clarify that is an alphabetic character.
【0011】従って、プリンタ1は、印字データ「日本
東京都」は漢字であるとして印字し、印字データ「イロ
ハニホ」はカタカナであるとして印字し、印字データ
「ABCDE」は英字であるとして印字する。しかし、
書式の文字種が英字に制御されている状態で与えられる
印字データ「豊島区池袋」は本来漢字であるので文字化
けして誤った印字を行ない、その後の印字データ「FG
HIJ」は正しく印字し、印字データ「ヘトチリヌ」は
本来カタカナであるので文字化けして誤った印字を行な
う。Accordingly, the printer 1 prints the print data "Tokyo, Japan" as a Chinese character, prints the print data "Irohaniho" as katakana, and prints the print data "ABCDE" as English characters. But,
The print data "Ikebukuro, Toshima-ku" given in a state in which the character type of the format is controlled to English characters is originally a kanji character, so it is garbled and erroneously printed, and the subsequent print data "FG
HIJ "is printed correctly, and the print data" Hetchirinu "is originally katakana, and is garbled and erroneously printed.
【0012】以上、文字化けする問題を説明するが、複
数の情報処理装置が出力した文字間ピッチや改行ピッチ
が異なる場合には、一部の情報処理装置から出力された
印字データは意図しない文字間ピッチや改行ピッチで印
字されてしまう。As described above, the problem of garbled characters will be described. If the pitch between characters and the line feed pitch output by a plurality of information processing apparatuses are different, print data output from some of the information processing apparatuses is Printing is performed at the interval pitch or line feed pitch.
【0013】このような誤った書式での印字を防ごうと
すると、ほぼ同時にプリンタ1を起動する複数の情報処
理装置の書式が揃っている必要があり、言い換えると、
同種のアプリケーションプログラムが走行する情報処理
装置を含むようにしかワイヤレスプリンタサーバを実現
できないことになる。In order to prevent printing in such an erroneous format, it is necessary that the formats of a plurality of information processing apparatuses that start up the printer 1 almost at the same time be aligned.
The wireless printer server can be realized only by including the information processing device on which the same type of application program runs.
【0014】本発明は、以上の点を考慮してなされたも
のであり、情報処理装置間の書式制御情報の統一を計る
ことなく、複数の情報処理装置からの出力がほぼ並行し
た場合にも、誤った書式による印字を防ぐことができる
ワイヤレスプリンタサーバを提供しようとするものであ
る。The present invention has been made in consideration of the above points, and can be used even when outputs from a plurality of information processing apparatuses are almost parallel without unifying format control information among the information processing apparatuses. Another object of the present invention is to provide a wireless printer server capable of preventing printing in an incorrect format.
【0015】[0015]
【課題を解決するための手段】かかる課題を解決するた
め、本発明においては、複数の情報処理装置が1台のプ
リンタを無線回線を介して共有するワイヤレスプリンタ
サーバの受信アダプタに、以下の手段を設けた。According to the present invention, a receiving adapter of a wireless printer server in which a plurality of information processing apparatuses share one printer via a wireless line is provided by the present invention. Was provided.
【0016】すなわち、受信電文を監視して受信電文の
ヘッダ又は印字データ領域内に含まれている書式制御情
報を抽出する書式制御情報抽出手段と、抽出された書式
制御情報を各情報処理装置に対応付けて格納する書式制
御情報格納手段と、プリンタに電文を送出する際に、そ
の送出電文に係る情報処理装置に対応付けて書式制御情
報格納手段に格納されている最新の書式制御情報を再生
する書式制御情報再生手段と、再生された書式制御情報
を、受信電文から各情報処理装置の識別情報を除いたデ
ータブロックに前置してプリンタに送出する書式制御情
報送出手段とを設けた。That is, the received message is monitored and the
Format control information extracting means for extracting format control information contained in the header or print data area ; format control information storing means for storing the extracted format control information in association with each information processing apparatus; when sending a message, its
Each information and formatting information reproducing means for reproducing the latest formatting control information, the formatting information reproduced from the received message in association with the information processing apparatus according to the delivery message stored in the format control information storage means A format control information sending means for sending the data to the printer in front of the data block excluding the identification information of the processing device is provided.
【0017】本発明において、書式制御情報抽出手段
は、いずれかの情報処理装置から与えられた受信電文を
監視して受信電文のヘッダ又は印字データ領域内に含ま
れている書式制御情報を抽出する。書式制御情報格納手
段は、このようにして抽出された書式制御情報を各情報
処理装置に対応付けて格納する。書式制御情報再生手段
は、プリンタに電文を送出する際に、その送出電文に係
る情報処理装置に対応付けて書式制御情報格納手段に格
納されている最新の書式制御情報を再生する。そして、
書式制御情報送出手段は、再生された書式制御情報を、
受信電文から各情報処理装置の識別情報を除いたデータ
ブロックに前置してプリンタに送出する。In the present invention, the format control information extracting means monitors a received message provided from any one of the information processing devices, and extracts the format control information contained in the header or print data area of the received message. . The format control information storage unit stores the format control information extracted in this way in association with each information processing device. When sending a message to the printer, the format control information reproducing means relates to the sent message.
Reproducing the latest format control information stored in the format control information storage means in association with the information processing apparatus . And
The format control information sending means outputs the reproduced format control information
The message is sent to the printer in front of a data block obtained by removing the identification information of each information processing apparatus from the received message .
【0018】これにより、プリンタに与えられる全ての
電文ブロックには書式制御情報が含まれることになる。As a result, all the message blocks provided to the printer include the format control information.
【0019】[0019]
【実施例】以下、本発明の一実施例を図面を参照しなが
ら詳述する。この実施例の場合、情報処理装置、送信ア
ダプタ、送信アンテナ、受信アンテナ及びプリンタは従
来と同様な構成であり、受信アダプタの構成だけが従来
とは異なる。そこで、受信アダプタの構成及び処理を中
心に説明を行なう。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. In this embodiment, the information processing device, the transmission adapter, the transmission antenna, the reception antenna, and the printer have the same configuration as the conventional one, and only the configuration of the reception adapter is different from the conventional one. Therefore, description will be made focusing on the configuration and processing of the receiving adapter.
【0020】図7は、この実施例に係る受信アダプタの
詳細構成を示すものである。図7において、この受信ア
ダプタ40は、無線受信部41、メインプロセッサ4
2、データ分解部43、データメモリ44、プログラム
メモリ45及びプリンタ駆動部46から構成されてい
る。FIG. 7 shows a detailed configuration of the receiving adapter according to this embodiment. In FIG. 7, the receiving adapter 40 includes a wireless receiving unit 41, a main processor 4
2. It is composed of a data decomposing unit 43, a data memory 44, a program memory 45, and a printer driving unit 46.
【0021】無線受信部41は、受信アンテナ3からの
受信信号に対して復調処理してデジタルデータに戻すも
のである。The radio receiving section 41 demodulates the received signal from the receiving antenna 3 and returns it to digital data.
【0022】このようなデジタルデータに対して、メイ
ンプロセッサ42がプログラムメモリ45に格納されて
いるプログラム(図1参照)に従い、適宜データメモリ
44を利用しながら処理を行なう。The main processor 42 processes such digital data in accordance with the program (see FIG. 1) stored in the program memory 45 while using the data memory 44 as appropriate.
【0023】データ分解部43は、メインプロセッサ4
2の制御下で、無線受信部41が復調して得たデータ
を、送信元情報処理装置を表すIDデータ、ヘッダ(書
式制御情報を含む)及び印字データに分解する。この実
施例の場合、データメモリ44には、最新の書式制御情
報を格納する各情報処理装置毎の書式制御情報テーブル
FMTBLと、印字データを格納する各情報処理装置毎
の印字データバッファエリアDTARが設けられてお
り、分解されたIDデータで定まる書式制御情報テーブ
ルFMTBL及び印字データバッファエリアDTAR
に、分解されて得られた書式制御情報及び印字データが
格納される。The data decomposing unit 43 includes the main processor 4
Under the control of 2, the data obtained by demodulation by the wireless receiving unit 41 is decomposed into ID data indicating the source information processing apparatus, a header (including format control information), and print data. In the case of this embodiment, the data memory 44 stores a format control information table FMTBL for each information processing device that stores the latest format control information and a print data buffer area DTAR for each information processing device that stores print data. The format control information table FMTBL and the print data buffer area DTAR which are provided and are determined by the decomposed ID data
The format control information and the print data obtained by the disassembly are stored.
【0024】メインプロセッサ42は、このように格納
された書式制御情報及び印字データから電文ブロックを
再構成してプリンタ駆動部46に与え、プリンタ駆動部
46はこれをプリンタ1に出力する。データメモリ44
には、電文ブロックを再構成する際に用いられるバッフ
ァエリアとして、書式制御情報の組立てバッファエリア
BUF1と、JIS(日本工業規格)コードバッファエ
リアBUF2とが設けられている。The main processor 42 reconstructs an electronic message block from the format control information and the print data stored as described above and supplies the electronic message block to the printer driving unit 46, and the printer driving unit 46 outputs this to the printer 1. Data memory 44
Has a buffer area BUF1 for assembling format control information and a JIS (Japanese Industrial Standard) code buffer area BUF2 as buffer areas used when reconstructing a message block.
【0025】ここで、この実施例の場合、再構成された
電文ブロックは、後述するように、情報処理装置から与
えられた電文ブロックに書式制御情報が含まれていない
ものであっても書式制御情報を含んでいる。Here, in the case of this embodiment, as will be described later, the reconstructed message block is not subjected to format control even if the message block provided from the information processing apparatus does not include format control information. Contains information.
【0026】図1は、メインプロセッサ42が実行する
処理(プログラムメモリ45に格納されている)を示す
フローチャートである。以下、この図1を参照してメイ
ンプロセッサ42の処理を説明する。FIG. 1 is a flowchart showing the processing executed by the main processor 42 (stored in the program memory 45). Hereinafter, the processing of the main processor 42 will be described with reference to FIG.
【0027】メインプロセッサ42は当該受信アダプタ
40の電源が投入されると図1の処理を開始し、データ
分解部43からIDコードが与えられることを待ち受け
る(ステップ100)。IDコードを受信すると、この
IDコードに対応した書式制御情報テーブルFMTBL
をオープンする(ステップ101)。そして、この書式
制御情報テーブルFMTBLに格納されている書式制御
情報に従い、プリンタ1に与えるJISコード化された
書式制御情報(出力電文ブロックのヘッダ)を形成して
プリンタ1に送出する(ステップ102)。なお、この
ステップ102の詳細については図1(B)に示してお
り、後述する。When the power of the receiving adapter 40 is turned on, the main processor 42 starts the processing shown in FIG. 1 and waits for an ID code from the data decomposing unit 43 (step 100). When receiving the ID code, the format control information table FMTBL corresponding to the ID code is received.
Is opened (step 101). Then, in accordance with the format control information stored in this format control information table FMTBL, JIS-coded format control information (header of an output message block) to be given to the printer 1 is formed and sent to the printer 1 (step 102). . The details of step 102 are shown in FIG. 1B and will be described later.
【0028】その後、メインプロセッサ42はIDコー
ドに続くデータの受信を待ち受け、受信があると、その
データが書式制御情報か印字データかを判別する(ステ
ップ103、104)。Thereafter, the main processor 42 waits for reception of data following the ID code, and upon reception, determines whether the data is format control information or print data (steps 103 and 104).
【0029】受信データが書式制御情報であると、オー
プン状態の書式制御情報テーブルFMTBLの内容の全
て又は一部を受信した書式制御情報に更新し、その後、
受信した書式制御情報をプリンタ1に送出する(ステッ
プ105、106)。他方、受信データが印字データで
あると、直ちに、その印字データをプリンタ1に送出す
る(ステップ107)。If the received data is the format control information, all or part of the contents of the open format control information table FMTBL is updated to the received format control information.
The received format control information is sent to the printer 1 (steps 105 and 106). On the other hand, if the received data is print data, the print data is immediately sent to the printer 1 (step 107).
【0030】このような受信データの種別に応じた処理
を現在対象となっている情報処理装置からのデータが終
了していないことを確認して繰返し、受信データが終了
したときにアイドル状態に戻る(ステップ108)。The processing according to the type of the received data is repeated after confirming that the data from the information processing apparatus currently targeted is not completed, and returns to the idle state when the received data is completed. (Step 108).
【0031】以上の処理で書式制御情報が格納されたり
読み出されたりする、ある情報処理装置についての書式
制御情報テーブルFMTBLは、図8に示す構成を有す
る。すなわち、アドレスは、書式制御情報の要素(文字
種指示、改行ピッチ、文字間ピッチ、拡大指示、縮小指
示等)毎に用意されており、そこには、その要素の内容
を記述するJISコード(キャラクタコード又は制御コ
ードで表している)列におけるパラメータxの値が格納
される。なお、図8において、格納するパラメータxの
データは、JISコードのキャラクタではなくJISコ
ードの16進表記で表している。より詳しく述べると、
書式制御情報を構成する各要素は、書式制御情報の要素
であることを表す2個の制御コード「ESC,%」と、
その要素種類(文字種指示、改行ピッチ、文字間ピッ
チ、拡大指示、縮小指示等)を表すキャラクタと、その
要素種類の内容を特定するパラメータたるキャラクタx
とからなっており、このパラメータxの内容が格納され
る。図8は、文字種が英字、改行ピッチが1/6イン
チ、文字間ピッチが24/180インチ、拡大指示が等
倍、縮小指示が等倍、…を意味している。The format control information table FMTBL for a certain information processing device in which the format control information is stored or read out by the above processing has the configuration shown in FIG. That is, an address is prepared for each element of the format control information (character type instruction, line feed pitch, character pitch, enlargement instruction, reduction instruction, etc.), and a JIS code (character) describing the contents of the element is provided therein. The value of the parameter x in the column (represented by a code or control code) is stored. In FIG. 8, the data of the parameter x to be stored is represented not by JIS code characters but by JIS code hexadecimal notation. More specifically,
Each element constituting the format control information includes two control codes “ESC,%” indicating that the elements are elements of the format control information.
A character representing the element type (character type instruction, line feed pitch, inter-character pitch, enlargement instruction, reduction instruction, etc.) and a character x as a parameter for specifying the content of the element type
The content of the parameter x is stored. FIG. 8 means that the character type is English, the line feed pitch is 1/6 inch, the pitch between characters is 24/180 inch, the enlargement instruction is the same magnification, the reduction instruction is the same magnification, and so on.
【0032】次に、このような書式制御情報テーブルF
MTBLの格納内容を利用してプリンタ1に与えるJI
Sコード化された書式制御情報を形成してプリンタ1に
送出するステップ102の処理の詳細を、図1(B)を
用いて詳述する。Next, such a format control information table F
JI given to printer 1 using the contents stored in MTBL
Details of the processing in step 102 in which the S-coded format control information is formed and transmitted to the printer 1 will be described in detail with reference to FIG.
【0033】この処理を開始すると、メインプロセッサ
42は、現在対象の情報処理装置に係る書式制御情報テ
ーブルFMTBLの先頭アドレスをセットし、そのアド
レスのデータを取り出す(ステップ120、121)。
書式制御情報は、上述したように、文字種、改行ピッ
チ、文字間ピッチ、拡大指示、縮小指示等からなり、書
式制御情報テーブルFMTBLの1個のアドレスはこれ
らの書式制御情報の各要素に対応している。このように
して取り出された要素データは組立てバッファエリアB
UF1の所定エリアに格納され、その後、JISコード
に変換されてJISコードバッファエリアBUF2に格
納される(ステップ122、123)。その後、書式制
御情報テーブルFMTBLのアドレスを1インクリメン
トし、全ての要素データに対する処理が終了しているか
否かを判断する(ステップ124、125)。ここで、
否定結果を得ると、上述したステップ121に戻って次
の要素データの取り出しに戻る。他方、肯定結果を得る
と、JISコードバッファエリアBUF2に格納されて
いる書式制御情報をプリンタ1に送出して図1(A)に
示すメインルーチンに戻る(ステップ126)。When this process is started, the main processor 42 sets the head address of the format control information table FMTBL related to the current target information processing device, and extracts the data of that address (steps 120 and 121).
As described above, the format control information includes a character type, a line feed pitch, a character pitch, an enlargement instruction, a reduction instruction, and the like. One address of the format control information table FMTBL corresponds to each element of the format control information. ing. The element data thus taken out is stored in the assembling buffer area B.
It is stored in a predetermined area of UF1, then converted into JIS code and stored in JIS code buffer area BUF2 (steps 122 and 123). Thereafter, the address of the format control information table FMTBL is incremented by one, and it is determined whether or not the processing for all the element data has been completed (steps 124 and 125). here,
If a negative result is obtained, the process returns to step 121 and returns to the retrieval of the next element data. On the other hand, if a positive result is obtained, the format control information stored in the JIS code buffer area BUF2 is sent to the printer 1 and the process returns to the main routine shown in FIG. 1A (step 126).
【0034】図9は、かかる処理における書式制御情報
テーブルFMTBLと、組立てバッファエリアBUF1
と、JISコードバッファエリアBUF2との格納内容
の一例を示している。FIG. 9 shows the format control information table FMTBL and the assembly buffer area BUF1 in this processing.
And JIS code buffer area BUF2.
【0035】次に、図10に示すデータストリーム(電
文ブロック列)が、ある情報処理装置から与えられたと
して上述の処理を具体的に説明する。すなわち、図10
に示すように、1個のデータファイルがそれぞれにID
コードが付与されたn個の電文ブロックによって送信さ
れると共に、第1の電文ブロックはその先頭に書式制御
情報を含むヘッダが付加されて送信されている場合を説
明する。なお、この例の場合、第1及び第2ブロックに
斜線部EL1、EL2で示すように、印字データの途中
において書式制御情報の一部要素だけが変更されてい
る。なお、このようなことは実際上多く生じている。Next, the above-described processing will be specifically described assuming that the data stream (telegram block sequence) shown in FIG. 10 is given from a certain information processing apparatus. That is, FIG.
As shown in the figure, one data file has ID
A case will be described in which a message is transmitted by n number of message blocks to which a code is added, and the first message block is transmitted with a header including format control information added to the head thereof. In the case of this example, only some elements of the format control information are changed in the middle of the print data, as shown by hatched portions EL1 and EL2 in the first and second blocks. It should be noted that such a thing has actually occurred many times.
【0036】図11は、図10における第1ブロックの
詳細構成例を示すものであり、第1行はデータが有する
意味内容を示し、第2行はそのデータをJISコードで
のキャラクタ(制御コードを含む)で表示し、第3行は
そのデータをJISコードの16進表記で示したもので
ある。FIG. 11 shows an example of the detailed structure of the first block in FIG. 10. The first line shows the meaning of the data, and the second line shows the data in JIS code characters (control codes). And the third line shows the data in hexadecimal notation of JIS code.
【0037】ヘッダは、通信制御用の2個の同期用制御
コード「SYN」、IDコード、文字種指示、改行ピッ
チ、文字間ピッチ、拡大指示、縮小指示等からなる。そ
して、これに印字データ「ABCD」が続いている。図
11に示すヘッダの例の場合、文字種が英字、改行ピッ
チが1/6インチ、文字間ピッチが24/180イン
チ、拡大指示が等倍、縮小指示が等倍、…を意味してい
る。The header includes two control codes "SYN" for communication control, an ID code, a character type instruction, a line feed pitch, an inter-character pitch, an enlargement instruction, a reduction instruction, and the like. This is followed by the print data “ABCD”. In the example of the header shown in FIG. 11, the character type is English, the line feed pitch is 1/6 inch, the pitch between characters is 24/180 inch, the enlargement instruction means the same size, the reduction instruction means the same size, and so on.
【0038】なお、当該受信アダプタ40の電源投入時
においては、全ての情報処理装置に対する書式制御情報
テーブルFMTBLは初期化されるようになされてお
り、この実施例の場合、文字種がカタカナ、改行ピッチ
が1/3インチ、文字間ピッチが24/180インチ、
拡大指示が等倍、縮小指示が等倍、…に初期設定される
ようになされている。図10のデータストリームを出力
する情報処理装置はこれ以前には出力を行なっておら
ず、図10における時点t0では書式制御情報テーブル
FMTBLは初期設定状態にあるとする。When the power of the receiving adapter 40 is turned on, the format control information tables FMTBL for all the information processing apparatuses are initialized. In this embodiment, the character type is katakana, Is 1/3 inch, character pitch is 24/180 inch,
The enlargement instruction is initially set to the same magnification, the reduction instruction is initially set to the same magnification, and so on. It is assumed that the information processing apparatus that outputs the data stream in FIG. 10 has not performed the output before this, and the format control information table FMTBL is in the initial setting state at time t0 in FIG.
【0039】図12は、このようなデータストリームの
受信時における書式制御情報テーブルFMTBLの格納
内容の変化を示すものである。上述した受信前の時点t
0の内容は、図12(A)に示すように初期設定された
内容である。また、図13は、受信アダプタ40に与え
られたデータ(図10と同一内容であるが繰返し示して
いる)と、受信アダプタ40から出力されたデータとを
示すものである。FIG. 12 shows a change in the storage contents of the format control information table FMTBL when such a data stream is received. Time point t before reception as described above
The content of 0 is the content initialized as shown in FIG. FIG. 13 shows data supplied to the reception adapter 40 (having the same contents as in FIG. 10 but shown repeatedly) and data output from the reception adapter 40.
【0040】アイドル状態において、第1ブロックのI
Dコードを受信すると、メインプロセッサ42はこのI
Dコードに係る図12に示す書式制御情報テーブルFM
TBLをオープンとする。このときの格納内容は、図1
2(A)に示す初期状態であるので、これをJISに従
うヘッダHD1に組み立ててプリンタ1に出力する。続
いて第1ブロックのヘッダHDR1を受信すると、これ
に応じて図12(B)に示すように書式制御情報テーブ
ルFMTBLの内容を更新すると共に、これをそのまま
プリンタ1に出力する。第1ブロックの前半の印字デー
タを受信すると、これをそのままプリンタ1に出力す
る。文字種をカタカナにする、印字データに挾まれた書
式制御情報の要素EL1を受信すると、これに応じて図
12(C)に示すように書式制御情報テーブルFMTB
Lの内容を更新すると共に、これをそのままプリンタ1
に出力する。後半の印字データを受信するとこれをその
ままプリンタ1に出力する。In the idle state, the first block I
Upon receiving the D code, the main processor 42
Format control information table FM for D code shown in FIG.
Open TBL. The contents stored at this time are shown in FIG.
Since this is the initial state shown in FIG. 2A, it is assembled into a header HD1 according to JIS and output to the printer 1. Subsequently, when the header HDR1 of the first block is received, the contents of the format control information table FMTBL are updated as shown in FIG. When the print data of the first half of the first block is received, it is output to the printer 1 as it is. When the element EL1 of the format control information sandwiched between the print data in which the character type is katakana is received, the format control information table FMTB as shown in FIG.
L and update the contents of the
Output to When the latter half of the print data is received, it is output to the printer 1 as it is.
【0041】この後多少時間を置いて第2ブロックのI
Dコードを受信すると、図12(C)に示すこのときの
書式制御情報テーブルFMTBLの格納内容に応じてJ
ISに従うヘッダHD2に組み立ててプリンタ1に出力
する。第2ブロックの前半の印字データを受信すると、
これをそのままプリンタ1に出力する。文字種を英字に
する、印字データに挾まれた書式制御情報の要素EL2
を受信すると、これに応じて図12(D)に示すように
書式制御情報テーブルFMTBLの内容を更新すると共
に、これをそのままプリンタ1に出力する。後半の印字
データを受信するとこれをそのままプリンタ1に出力す
る。After a while, the I in the second block is
When the D code is received, J is determined according to the contents stored in the format control information table FMTBL at this time shown in FIG.
It is assembled into a header HD2 according to IS and output to the printer 1. When the print data of the first half of the second block is received,
This is output to the printer 1 as it is. Element EL2 of format control information sandwiched between print data, with the character type being alphabetic
Is received, the contents of the format control information table FMTBL are updated as shown in FIG. When the latter half of the print data is received, it is output to the printer 1 as it is.
【0042】以下、同様にして、受信したブロックデー
タにおけるIDコードを除いた部分に、IDコード受信
時の書式制御情報テーブルFMTBLの格納内容に応じ
て作成したヘッダHD3、…、HDnを付与した電文ブ
ロックをプリンタ1に出力する。また、受信したブロッ
クデータ内に書式制御情報の1要素でもあればこれに応
じて書式制御情報テーブルFMTBLの格納内容を更新
する。Similarly, a message in which headers HD3,..., HDn created in accordance with the contents stored in the format control information table FMTBL at the time of receiving the ID code are added to the portion of the received block data excluding the ID code. The block is output to the printer 1. If the received block data contains only one element of the format control information, the content stored in the format control information table FMTBL is updated accordingly.
【0043】かくして、受信アダプタ40は、図13
(A)に示す電文ブロック列を受信した場合には、図1
3(B)に示す電文ブロック列をプリンタ1に出力す
る。Thus, the receiving adapter 40 is configured as shown in FIG.
When the message block sequence shown in FIG.
3B is output to the printer 1.
【0044】以上、1個の情報処理装置からの電文ブロ
ックの受信時の処理を示したが、複数の情報処理装置か
らほぼ並行して電文ブロックを受信した場合にも受信ア
ダプタは同様に動作する。Although the processing at the time of receiving a message block from one information processing apparatus has been described above, the reception adapter operates similarly when message blocks are received from a plurality of information processing apparatuses almost in parallel. .
【0045】従って、上述した実施例によれば、受信ア
ダプタ40はプリンタ1に対して常に書式制御情報を含
む電文ブロックを出力するようにしたので、複数の情報
処理装置からの電文ブロックが混在して受信アダプタ4
0に与えられた場合にも、各情報処理装置が意図した書
式によって印字を行なうことができる。すなわち、文字
化けや誤った改行ピッチ等が生じることはない。Therefore, according to the above-described embodiment, the receiving adapter 40 always outputs a message block including format control information to the printer 1, so that message blocks from a plurality of information processing apparatuses are mixed. Receiving adapter 4
Even when 0 is given, printing can be performed in the format intended by each information processing device. That is, garbled characters, incorrect line feed pitch, and the like do not occur.
【0046】その結果、当該ワイヤレスプリンタサーバ
における複数の情報処理装置のデータ編集プログラムが
同一書式を採用するように統一させる必要がなくなり、
このシステムの使用環境が格段的に向上する。As a result, there is no need to unify the data editing programs of a plurality of information processing apparatuses in the wireless printer server so as to adopt the same format.
The use environment of this system is significantly improved.
【0047】なお、上記実施例は漢字をも印字対象とし
ているプリンタを有するワイヤレスプリンタサーバの場
合を説明したが、印字可能な文字種が上記実施例以外の
プリンタを有するワイヤレスプリンタサーバにも本発明
を当然に適用することができる。Although the above embodiment has been described with reference to a wireless printer server having a printer that also prints kanji, the present invention can be applied to a wireless printer server having a printer whose printable character type is other than the above embodiment. Naturally can be applied.
【0048】また、上記実施例においては、JISに従
うデータを送受信する場合を示したが、これ以外のコー
ド系を採用しているものにも本発明を適用できる。In the above embodiment, the case of transmitting and receiving data in accordance with JIS has been described. However, the present invention can be applied to those adopting other code systems.
【0049】[0049]
【発明の効果】以上のように、本発明によれば、プリン
タに与える電文ブロックの先頭には必ず書式制御情報を
含むようにしたので、情報処理装置間の書式制御情報の
統一を計ることなく、複数の情報処理装置からの出力が
ほぼ並行した場合にも誤った書式による印字を防ぐこと
ができる。As described above, according to the present invention, the format control information is always included at the head of the message block given to the printer, so that the format control information among the information processing devices is not unified. In addition, even when outputs from a plurality of information processing devices are substantially parallel, printing in an incorrect format can be prevented.
【図1】実施例の受信アダプタの処理を示すフローチャ
ートである。FIG. 1 is a flowchart illustrating processing of a reception adapter according to an embodiment.
【図2】ワイヤレスプリンタサーバのシステム構成を示
すブロック図である。FIG. 2 is a block diagram illustrating a system configuration of a wireless printer server.
【図3】複数の情報処理装置からの電文ブロックが混在
して送信される様子を示す説明図である。FIG. 3 is an explanatory diagram illustrating a state in which message blocks from a plurality of information processing apparatuses are mixed and transmitted;
【図4】図3の場合における印字例を示す説明図であ
る。FIG. 4 is an explanatory diagram showing a printing example in the case of FIG. 3;
【図5】従来のワイヤレスプリンタサーバで文字化けが
生じる電文ブロックの送出例を示す説明図である。FIG. 5 is an explanatory diagram showing an example of sending a message block in which a garbled character occurs in a conventional wireless printer server.
【図6】従来のワイヤレスプリンタサーバによる文字化
け印字の例を示す説明図である。FIG. 6 is an explanatory diagram showing an example of garbled printing by a conventional wireless printer server.
【図7】実施例の受信アダプタ構成を示すブロック図で
ある。FIG. 7 is a block diagram illustrating a configuration of a receiving adapter according to the embodiment;
【図8】実施例の書式制御情報テーブルの構成例を示す
説明図である。FIG. 8 is an explanatory diagram illustrating a configuration example of a format control information table according to the embodiment;
【図9】実施例の書式制御情報の再構成時のテーブルや
バッファエリアの格納内容を示す説明図である。FIG. 9 is an explanatory diagram illustrating the contents stored in a table and a buffer area when reconstructing the format control information according to the embodiment.
【図10】ある情報処理装置が出力した電文ブロック列
の一例を示す説明図である。FIG. 10 is an explanatory diagram illustrating an example of a message block string output by a certain information processing apparatus.
【図11】その第1ブロックの詳細内容を示す説明図で
ある。FIG. 11 is an explanatory diagram showing details of the first block.
【図12】図10の電文ブロック列の受信時における書
式制御情報テーブルの格納内容の変化を示す説明図であ
る。FIG. 12 is an explanatory diagram showing a change in the storage content of a format control information table when the message block sequence shown in FIG. 10 is received.
【図13】実施例の情報処理装置から受信アダプタへの
電文ブロックと、それに対応した受信アダプタからプリ
ンタへの電文ブロックとを示す説明図である。FIG. 13 is an explanatory diagram showing a message block from the information processing apparatus to the reception adapter and a message block from the reception adapter to the printer corresponding to the message block;
1…プリンタ、40…受信アダプタ、41…無線受信
部、42…メインプロセッサ、43…データ分解部、4
4…データメモリ、45…プログラムメモリ、46…プ
リンタ駆動部。DESCRIPTION OF SYMBOLS 1 ... Printer, 40 ... Receiving adapter, 41 ... Wireless receiving part, 42 ... Main processor, 43 ... Data decomposing part, 4
4 Data memory, 45 Program memory, 46 Printer drive unit.
フロントページの続き (72)発明者 根岸 清隆 東京都港区虎ノ門1丁目7番12号 沖電 気工業株式会社内 (56)参考文献 特開 平2−113323(JP,A) 特開 平2−128882(JP,A) 特開 昭63−288317(JP,A) 特開 平2−89676(JP,A)Continuation of front page (72) Inventor Kiyotaka Negishi 1-7-12 Toranomon, Minato-ku, Tokyo Oki Electric Industry Co., Ltd. (56) References JP-A-2-113323 (JP, A) JP-A-2- 128882 (JP, A) JP-A-63-288317 (JP, A) JP-A-2-89676 (JP, A)
Claims (1)
無線回線を介して共有するワイヤレスプリンタサーバに
おいて、 プリンタの前段に設けられている受信アダプタが、 受信電文を監視して受信電文のヘッダ又は印字データ領
域内に含まれている書式制御情報を抽出する書式制御情
報抽出手段と、 抽出された書式制御情報を上記各情報処理装置に対応付
けて格納する書式制御情報格納手段と、 プリンタに電文を送出する際に、その送出電文に係る上
記情報処理装置に対応付けて上記書式制御情報格納手段
に格納されている最新の書式制御情報を再生する書式制
御情報再生手段と、 再生された書式制御情報を、受信電文から上記各情報処
理装置の識別情報を除いたデータブロックに前置してプ
リンタに送出する書式制御情報送出手段とを備えたこと
を特徴とするワイヤレスプリンタサーバ。In a wireless printer server in which a plurality of information processing apparatuses share a single printer via a wireless line, a receiving adapter provided in a preceding stage of the printer monitors a received message and headers the received message . Or print data area
Format control information extracting means for extracting format control information included in the area, format control information storing means for storing the extracted format control information in association with each of the information processing apparatuses, and sending a message to a printer when, on according to the sending message
Serial and format control information reproduction means for reproducing the latest formatting information in association with the information processing apparatus is stored in said format control information storage unit, the formatting information reproduced, the respective information processing from a received message
A format control information transmitting means for transmitting to a printer a data block preceding the data block excluding the identification information of the processing device .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3307412A JP2697980B2 (en) | 1991-11-22 | 1991-11-22 | Wireless printer server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3307412A JP2697980B2 (en) | 1991-11-22 | 1991-11-22 | Wireless printer server |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH05143254A JPH05143254A (en) | 1993-06-11 |
JP2697980B2 true JP2697980B2 (en) | 1998-01-19 |
Family
ID=17968746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3307412A Expired - Fee Related JP2697980B2 (en) | 1991-11-22 | 1991-11-22 | Wireless printer server |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2697980B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3791489B2 (en) | 2002-12-13 | 2006-06-28 | ソニー株式会社 | Portable server |
JP2004206340A (en) | 2002-12-25 | 2004-07-22 | Sony Corp | Portable server and portable server system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63288317A (en) * | 1987-05-20 | 1988-11-25 | Nec Corp | Printer |
JPH0289676A (en) * | 1988-09-27 | 1990-03-29 | O G Joho Syst Soken:Kk | Printer changeover controller |
JP2770351B2 (en) * | 1988-10-21 | 1998-07-02 | ミノルタ株式会社 | Printer |
JPH02128882A (en) * | 1988-11-08 | 1990-05-17 | Nec Off Syst Ltd | Printer system |
-
1991
- 1991-11-22 JP JP3307412A patent/JP2697980B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH05143254A (en) | 1993-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS63185274A (en) | Terminal equipment | |
EP0208852B1 (en) | Communication terminal device | |
US6559965B1 (en) | Method and apparatus for establishing two-way communication with a remote printer | |
US5010514A (en) | Structured fields at a data stream boundary for delimiting files | |
JP2861404B2 (en) | Printing device | |
JP2697980B2 (en) | Wireless printer server | |
US7746506B2 (en) | Image production using enhanced eye-marks | |
JPH0535620A (en) | File transferring device | |
JPS59223054A (en) | Facsimile input character recognizing device | |
JP4329203B2 (en) | Printing apparatus and method | |
CN114003184B (en) | Cross-system sharing printing method and system | |
US7362460B1 (en) | Techniques for managing automatic folding functionality in facsimile protocol | |
US6246753B1 (en) | Automatic message filing system | |
JPH04282934A (en) | Electronic mail system | |
JP4591087B2 (en) | Printing apparatus, printing support apparatus, printing method, and printing support method | |
JP2002091716A (en) | Device and method for controlling printing | |
JPH1139117A (en) | Printer controller | |
JPH10207670A (en) | Print system, print data receiving terminal, and control method for the same | |
JPH01183730A (en) | Printer device | |
JPH1198303A (en) | Picture communication equipment and data processing method and storage medium for storing program | |
JPH08286853A (en) | Print processing method and system | |
JP3147077B2 (en) | Data copying apparatus and data copying method | |
JP2003008876A (en) | Facsimile equipment | |
JPS62226221A (en) | Printer error processing system | |
JPS61193875A (en) | Printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
LAPS | Cancellation because of no payment of annual fees |