JP2013156916A - Data processing device, printing system, and printing control program - Google Patents
Data processing device, printing system, and printing control program Download PDFInfo
- Publication number
- JP2013156916A JP2013156916A JP2012018441A JP2012018441A JP2013156916A JP 2013156916 A JP2013156916 A JP 2013156916A JP 2012018441 A JP2012018441 A JP 2012018441A JP 2012018441 A JP2012018441 A JP 2012018441A JP 2013156916 A JP2013156916 A JP 2013156916A
- Authority
- JP
- Japan
- Prior art keywords
- setting
- communication
- wireless communication
- storage unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
Description
本発明は、外部機器と無線通信を実行可能なデータ処理装置、外部機器とプリンタとの間で無線通信を行う印刷システム、および、外部機器と無線通信を実行するデータ処理装置に用いられる印刷制御プログラムに関する。 The present invention relates to a data processing apparatus capable of performing wireless communication with an external device, a printing system for performing wireless communication between the external device and a printer, and a print control used for a data processing apparatus for performing wireless communication with the external device. Regarding the program.
従来、パーソナルコンピュータ(PC)などの端末装置と無線LAN通信を実行可能なプリンタが知られている。さらに、インフラストラクチャモードで無線通信を行う手段と、アドホックモードで無線通信を行う手段との両方を備えたプリンタ装置が知られている(例えば、特許文献1参照)。 Conventionally, printers capable of performing wireless LAN communication with a terminal device such as a personal computer (PC) are known. Furthermore, a printer apparatus that includes both a unit that performs wireless communication in an infrastructure mode and a unit that performs wireless communication in an ad hoc mode is known (see, for example, Patent Document 1).
特許文献1に開示のプリンタ装置のように、インフラストラクチャモードの無線通信と、アドホックモードの無線通信を同時に作動させる場合、プリンタ装置の消費電力が大きくなるとともに、通信モードの混在によって通信品質が劣化するおそれがあった。
When the infrastructure mode wireless communication and the ad hoc mode wireless communication are operated simultaneously as in the printer device disclosed in
本発明は、最適なタイミングでアドホックモードの無線通信を実行可能なデータ処理装置、印刷システム、および印刷制御プログラムを提供することを目的とする。 An object of the present invention is to provide a data processing device, a printing system, and a printing control program that can execute wireless communication in an ad hoc mode at an optimal timing.
本発明の第一態様に係るデータ処理装置は、外部機器と無線通信を実行可能なデータ処理装置であって、前記外部機器との無線通信に使用されるネットワークの通信設定を記憶する設定記憶手段と、前記設定記憶手段に記憶されている前記通信設定に基づいて、インフラストラクチャモードおよびアドホックモードのいずれかの通信モードによって、前記外部機器と無線通信を実行する無線通信手段と、所定のイベントが生じた場合に、前記設定記憶手段に記憶されている前記通信設定を、特定の前記外部機器と前記アドホックモードの無線通信を行う前記ネットワークである特定ネットワークの前記通信設定に変更する設定変更手段とを備える。 A data processing apparatus according to a first aspect of the present invention is a data processing apparatus capable of performing wireless communication with an external device, and stores a communication setting of a network used for wireless communication with the external device And, based on the communication settings stored in the setting storage means, a wireless communication means for performing wireless communication with the external device in one of the communication modes of the infrastructure mode and the ad hoc mode, and a predetermined event A setting changing means for changing the communication setting stored in the setting storage means to the communication setting of the specific network, which is the network that performs wireless communication in the ad hoc mode with the specific external device, Is provided.
本発明の第二態様に係る印刷システムは、前記データ処理装置と、前記特定の外部機器であるプリンタとが無線通信で接続可能な印刷システムであって、前記プリンタは、前記データ処理装置と前記アドホックモードの無線通信を実行することを特徴とする。 A printing system according to a second aspect of the present invention is a printing system in which the data processing apparatus and a printer that is the specific external device can be connected by wireless communication, and the printer includes the data processing apparatus and the printer. An ad hoc mode wireless communication is performed.
本発明の第三態様に係る印刷制御プログラムは、外部機器との無線通信に使用されるネットワークの通信設定を記憶する設定記憶手段と、前記設定記憶手段に記憶されている前記通信設定に基づいて、インフラストラクチャモードおよびアドホックモードのいずれかの通信モードによって、前記外部機器と無線通信を実行する無線通信手段と、を備えたデータ処理装置であるコンピュータに、所定のイベントが生じた場合に、前記設定記憶手段に記憶されている前記通信設定を、特定の前記外部機器であるプリンタと前記アドホックモードの無線通信を行う前記ネットワークである特定ネットワークの前記通信設定に変更する設定変更ステップを実行させることを特徴とする。 A print control program according to the third aspect of the present invention is based on a setting storage unit that stores communication settings of a network used for wireless communication with an external device, and the communication settings stored in the setting storage unit. When a predetermined event occurs in a computer, which is a data processing device including a wireless communication unit that performs wireless communication with the external device, in any one of the communication modes of the infrastructure mode and the ad hoc mode, Executing a setting change step of changing the communication setting stored in the setting storage unit to the communication setting of the specific network that is the network that performs wireless communication in the ad hoc mode with a printer that is the specific external device. It is characterized by.
上記第一〜第三態様によれば、所定のイベントが生じた場合に、外部機器との無線通信に使用されるネットワークの通信設定が、特定の外部機器(第二態様では、プリンタ)とアドホックモードの無線通信を行う特定ネットワークの通信設定に変更される。したがって、所定のイベントが生じると、データ処理装置と特定の外部機器との間でアドホックモードの無線通信が自動的に実行されるため、最適なタイミングでアドホックモードの無線通信を実行することができる。 According to the first to third aspects, when a predetermined event occurs, the communication setting of the network used for wireless communication with the external device is set to a specific external device (a printer in the second aspect) and ad hoc. It is changed to the communication setting of the specific network that performs the mode wireless communication. Therefore, when a predetermined event occurs, ad-hoc mode wireless communication is automatically executed between the data processing apparatus and a specific external device, so that the ad-hoc mode wireless communication can be executed at an optimal timing. .
本発明を具体化した実施の形態について、図面を参照して説明する。なお、参照する図面は、本発明が採用しうる技術的特徴を説明するために用いられるものであり、記載されている装置の構成などは、それのみに限定する趣旨ではなく、単なる説明例である。 Embodiments of the present invention will be described with reference to the drawings. Note that the drawings to be referred to are used for explaining the technical features that can be adopted by the present invention, and the configuration of the described apparatus is not intended to be limited thereto, but is merely an illustrative example. is there.
本発明の第一実施形態について説明する。図1を参照して、本実施形態に係る印刷システム1について説明する。印刷システム1では、プリンタ2およびパーソナルコンピュータ(PC)3が無線LAN通信で接続可能である。プリンタ2は、長尺状の印刷媒体であるテープにキャラクタ(文字、記号、図形など)を印刷して、貼り付け可能なラベルを作成する小型のラベルプリンタである。本実施形態のPC3は、印刷データ作成装置として機能して、プリンタ2がラベルを作成するために必要なデータ(以下、印刷データという。)を作成する。
A first embodiment of the present invention will be described. A
PC3では、ユーザがラベルの画像を編集すると、その編集内容の印刷を制御する印刷データが生成されて、プリンタ2に無線LAN通信で送信される。プリンタ2では、PC3から受信した印刷データに基づいて、テープへの印刷処理が行われて、ラベルが作成される。従って、ユーザはPC3を操作することで、プリンタ2でラベルを作成することができる。
In the PC 3, when the user edits the label image, print data for controlling printing of the edited content is generated and transmitted to the
本実施形態の印刷システム1では、IEEE802.11bの規格に基づく無線LAN通信が実行される場合を例示する。IEEE802.11b系の無線通信では、インフラストラクチャモードおよびアドホックモードの各通信モードを制御可能である。インフラストラクチャモードの無線通信では、PC3が基地局であるアクセスポイント(AP)4を経由してネットワークに接続し、そのネットワーク上に存在するプリンタ2に印刷データを出力可能である。アドホックモードの無線通信では、PC3がプリンタ2に直接接続して、印刷データを出力可能である。
In the
図2を参照して、PC3の電気的構成について説明する。PC3は、PC3の制御を行うCPU301を備えている。CPU301は、ハードディスクドライブ(HDD)302、RAM303、無線通信部304、入力回路305、および出力回路306と接続している。HDD302には、CPU301が実行する各種プログラムが記憶される。OS(Operating System)、後述のアプリケーション、デバイスドライバなども、HDD302に記憶されている。
The electrical configuration of the
RAM303は、種々の一時データを記憶する。RAM303には、PC3が外部機器と無線通信を行うための情報である通信設定値(後述のSSID等)を記憶する通信設定記憶部が設けられている。通信設定記憶部には、無線通信部304を介して外部端末から受信した通信設定値のうちで、PC3が実際に接続したアクセスポイントの通信設定値が、リスト状に管理されている。ユーザが任意に設定したアクセスポイントの通信設定値も、通信設定記憶部に登録される。通信設定値は、SSID(Service Set Identifier)、ネットワーク認証方式、セキュリティパスワードなどを、アクセスポイントごとに含んでいる。PC3は、通信設定記憶部に記憶されているアクセスポイントのうち、接続対象として指定された1つのアクセスポイントとの間で無線通信が実行される。
The
無線通信部304は、外部機器と無線LAN通信を行うためのインターフェイス(例えば、無線LANアダプタ)である。CPU301は、無線通信部304を介して外部機器と無線LAN通信を実行可能である。入力回路305は、CPU301へ入力部307(例えば、マウス、キーボード、タッチパネルなど)からの指示を送る制御を行う。出力回路306は、CPU301からの指示に応じてディスプレイ308に画像を表示する制御を行う。
The
プリンタ2の電気的構成について説明する。プリンタ2は、プリンタ2の制御を行うCPU201を備えている。CPU201は、ROM202、フラッシュメモリ203、RAM204、CGROM205、無線通信部206、入力部207、および駆動回路209〜211に接続されている。
The electrical configuration of the
ROM202には、CPU201が実行する各種プログラムが記憶される。フラッシュメモリ203には、種々の設定用データが記憶される。RAM204には、種々の一時データが記憶される。CGROM205には、種々のキャラクタ(文字、数字、図形など)をテープに印刷するための印刷用のドットパターンデータが記憶されている。無線通信部206は、外部機器と無線LAN通信を行うためのインターフェイス(例えば、無線LANアダプタ)である。入力部207は、プリンタ2に対して入力操作を行うためのボタンである。
Various programs executed by the
駆動回路209は、テープに印刷を行うサーマルヘッド213を駆動する。駆動回路210は、テープを搬送するためのテープ送りモータ214を駆動する。駆動回路211は、印刷済みのテープを切断してカッターモータ215を駆動する。CPU201は、これらの駆動回路209〜211を制御することで、搬送されるテープに印刷を行ったのち、印刷済みのテープを切断してラベルを作成する。
The
本実施形態では、PC3の無線通信部304は、RAM303の通信設定記憶部に記憶されている通信設定値に応じて、インフラストラクチャモードおよびアドホックモードを選択的に用いて、外部機器と無線通信を実行可能である。一方、プリンタ2の無線通信部206は、あらかじめ定められた通信設定値に応じて、アドホックモードのみを用いて外部機器と無線通信を実行可能である。
In the present embodiment, the
図3を参照して、PC3において印刷制御に関するプログラムの論理的構成について説明する。PC3は、アプリケーション31、GDI(Graphics Device Interface)32、プリントシステム39およびネットワークシステム37を備える。プリントシステム39は、プリンタドライバ33、スプーラ34、プリントモニタ38を備える。プリントモニタ38は、ランゲージモニタ35およびポートモニタ36を備える。これらのソフトウェアは、OSによって管理される。
With reference to FIG. 3, a logical configuration of a program related to print control in the
アプリケーション31は、例えば、ワードプロセッサのような文書や図形の作成・編集、写真画像を編集する機能や、作成・編集したアプリケーションデータに基づく印刷指示を行う機能を備え、本実施形態ではラベル編集用に特化されている。アプリケーション31は、プリンタ設定値を設定する機能を備える。プリンタ設定値の内容の一例としては、用紙サイズ、用紙の種類、コピー枚数、両面印刷するか否か、などが挙げられる。
The
GDI32は、OSに搭載されたプログラムの一つであり、プリンタ2やディスプレイ308をコントロールするプログラムである。GDI32は、具体的には、アプリケーション31からの描画命令に応じて、グラフィカルオブジェクトをビットマップ画像データとして描画し、プリンタドライバ33などの出力デバイスのデバイスドライバへの橋渡しを行う。
The
プリンタドライバ33は、アプリケーション31から渡されたプリンタ設定値を元に、プリンタ2で用いられる印刷データを生成する。印刷データは、画像データおよびプリンタコマンドを含んでいる。画像データは、プリンタ言語で記述された描画データをページ画像データに変換した、イメージデータである。プリンタコマンドは、プリンタ2が解釈できるように変換された印刷命令である。プリンタドライバ33で生成された印刷データは、スプーラ34に渡される。
The
スプーラ34は、発生したジョブ情報を一時的にHDD302に保存し、順次実行していくキュー処理を行う。ジョブ情報の一例としては、プリンタドライバ33から渡される印刷データや、印刷処理を行うプリンタを特定するプリンタ名などが挙げられる。
The
ランゲージモニタ35は、印刷データをスプーラ34から受け取り、ポートモニタ36を経由してプリンタ2に送信する。このとき、ランゲージモニタ35は、プリンタ2のステータス情報を受信することで、プリンタ2の印刷状況に合わせて印刷データを送信する。
The language monitor 35 receives print data from the
ポートモニタ36は、ネットワークシステム37を用いて、プリンタ2との実際の通信を行う。ポートモニタ36は、プリンタ2からステータス情報を受信した場合には、ランゲージモニタ35に出力する。ネットワークシステム37は、印刷データやステータス情報などの通信を行う。
The port monitor 36 performs actual communication with the
図4を参照して、PC3の通信設定例を説明する。例えば、PC3でユーザがアプリケーション31を起動して所定の操作を行うと、ユーザが印刷設定を入力するための画面(印刷設定画面)が、ディスプレイ308に表示される。図4に例示する印刷設定画面50は、先述のプリンタ設定値(用紙サイズ、用紙の種類、コピー枚数、両面印刷するか否か等)の入力欄を表示するレイアウトタブ51と、PC3の印刷実行時における通信設定の入力欄を表示する通信設定タブ52を含む。
A communication setting example of the
通信設定タブ52が選択された状態では、印刷設定画面50で設定変更チェックボックス53を選択または解除することができる。設定変更チェックボックス53が解除された状態では、PC3での印刷実行時も通常時(非印刷時)と同様に、RAM303の通信設定記憶部に記憶されている通信設定値に応じて、インフラストラクチャモードまたはアドホックモードで外部機器と無線通信が実行される。なお、アプリケーション31の初期状態(デフォルト状態)では、設定変更チェックボックス53は解除されている。
When the
一方、設定変更チェックボックス53が選択されると、印刷設定画面50でネットワーク名54およびセキュリティ設定55を入力可能となる。ネットワーク名54には、アドホックモードで通信する対象となるプリンタ2(以下、印刷対象プリンタ2)のSSID(Service Set Identifier)が入力される。セキュリティ設定55には、印刷対象プリンタ2との無線通信時に使用するネットワーク認証方式やセキュリティパスワードが入力される。
On the other hand, when the setting
つまり、ネットワーク名54およびセキュリティ設定55には、印刷対象プリンタ2と共通のSSIDやネットワーク認証方式等が、ユーザによって入力される。PC3は、設定変更チェックボックス53が選択された状態で印刷実行されると、ネットワーク名54に設定されたネットワーク(つまり、印刷対象プリンタ2)に接続して、セキュリティ設定55に設定された認証方式およびパスワードを使用したアドホックモードの無線通信を実行する。
That is, the
図5〜図8を参照して、第一実施形態のPC3で実行される印刷処理について説明する。以下の説明では、PC3で実行される印刷処理のうち、本発明に関連する処理(アプリケーション処理、StartDoc処理、EndDoc処理)のみを説明する。
With reference to FIGS. 5-8, the printing process performed by PC3 of 1st embodiment is demonstrated. In the following description, only processing (application processing, StartDoc processing, EndDoc processing) related to the present invention will be described among printing processing executed by the
PC3で印字開始が指示されると、CPU301が制御するアプリケーション31は、OSが提供するAPI(Application Program Interface)を用いてアプリケーション処理(図5参照)を実行する。なお、以下の説明では、PC3において、印刷設定画面50(図4参照)で設定変更チェックボックス53が選択され、且つ、ネットワーク名54およびセキュリティ設定55に印刷対象プリンタ2の通信設定値が入力されているものとする。
When the
図5に示すように、アプリケーション処理では、OpenPrinterを呼び出して、プリンタハンドルを取得する(S1)。StartDocを呼び出して、通信設定および印刷の準備をプリンタドライバ33へ通知する(S3)。StartPageを呼び出して、新しい対象ページをプリンタドライバ33へ通知する(S5)。描画命令を呼び出して、対象ページの印刷データをプリンタドライバ33が描画し、スプーラ34へスプールさせる(S7)。対象ページの印刷データが描画完了するまで、ステップS7が繰り返し実行される。
As shown in FIG. 5, in the application process, OpenPrinter is called to obtain a printer handle (S1). Call StartDoc to notify the
対象ページの印刷データが描画完了すると、EndPageを呼び出して、対象ページの書き込み終了をプリンタドライバ33へ通知する(S9)。印刷ジョブに含まれる全てのページ数分、ステップS5〜S9が繰り返し実行される。その後、EndDocを呼び出して、印刷の準備が終了して、印刷の開始をプリンタドライバ33へ通知する(S11)。ClosePrinterを呼び出して、プリンタハンドルを解放する(S13)。これにより、アプリケーション処理(図5)が終了する。
When drawing of the print data of the target page is completed, EndPage is called to notify the
CPU301が制御するプリンタドライバ33は、ステップS3でStartDocが呼び出されるとStartDoc処理(図6参照)を実行し、ステップS11でEndDocが呼び出されるとEndDoc処理(図7参照)を実行する。
The
図6に示すように、StartDoc処理では、RAM303の通信設定記憶部に記憶されている現在の通信設定値が取得される(S21)。ステップS21で取得された通信設定値は、RAM303の所定記憶エリアに一時保存される。RAM303の通信設定記憶部に記憶されている通信設定値が、印刷対象プリンタ2の通信設定値に変更される(S23)。具体的には、RAM303の通信設定記憶部において、ネットワーク名54およびセキュリティ設定55に入力されている通信設定値が、接続対象の通信設定値として設定される。次いで、印刷の準備を開始する(S25)。ステップS25の処理内容は、StartDocに応じてプリンタドライバ33が実行する公知の処理であるため、詳細は省略する。これにより、StartDoc処理(図6参照)が終了する。
As shown in FIG. 6, in the StartDoc process, the current communication setting value stored in the communication setting storage unit of the
図7に示すように、EndDoc処理では、印刷の準備を終了する(S41)。ステップS41の処理内容は、EndDocに応じてプリンタドライバ33が実行する公知の処理であるため、詳細は省略する。次いで、RAM303の通信設定記憶部に記憶されている通信設定値が、ステップS23で変更される前の通信設定値に戻される(S43)。具体的には、RAM303の通信設定記憶部において、ステップS21でRAM303の所定記憶エリアに一時保存された通信設定値が再設定される。これにより、EndDoc処理(図7参照)が終了する。
As shown in FIG. 7, in the EndDoc process, the preparation for printing ends (S41). Since the processing content of step S41 is a well-known processing executed by the
図5〜図7に示す処理によって、図8に示すようにPC3で通信設定が切り替わる。すなわち、OpenPrinterで起動されたプリンタドライバ33は、StartDocによって印刷の準備(つまり、印刷データの生成)を開始する。印刷データの生成が開始されると、RAM303の通信設定記憶部では、印刷設定画面50で設定された通信設定値が切り替わる。さらに、StartPage、描画命令、EndPageによって、スプーラ34に印刷データがスプールされる。PC3と印刷対象プリンタ2とは、設定された通信設定値に基づいてアドホックモードで無線通信が実行され、印刷データやステータス情報などをアドホックモードの無線通信によって送受信する。印刷対象プリンタ2は、PC3からアドホックモードの無線通信で印刷データを受信して、印刷を実行する。
Through the processing shown in FIGS. 5 to 7, the communication settings are switched in the
その後、プリンタドライバ33は、EndDocによって印刷の準備(つまり、印刷データの生成)を終了する。印刷データの生成が終了されると、RAM303の通信設定記憶部では、印刷設定画面50で設定された通信設定値が変更前のものに復帰する。プリンタドライバ33は、ClosePrinterによって動作を終了する。これにより、PC3での印刷処理が終了したのちは、印刷処理が開始される前に設定されていた接続対象の通信設定値に基づいて、インフラストラクチャモードまたはアドホックモードで外部機器と無線通信が実行される。
Thereafter, the
以上説明したように、第一実施形態によれば、印刷データの生成をプリンタドライバ33に開始させる印刷開始指示(StartDoc)が生じた場合に、外部機器との無線通信に使用されるネットワークの通信設定が、印刷対象プリンタ2とアドホックモードの無線通信を行う特定ネットワークの通信設定に変更される。したがって、StartDocが生じると、PC3と印刷対象プリンタ2との間でアドホックモードの無線通信が自動的に実行されるため、最適なタイミングでアドホックモードの無線通信を実行することができる。
As described above, according to the first embodiment, when a print start instruction (StartDoc) that causes the
印刷データの生成をプリンタドライバ33に終了させる印刷終了指示(EndDoc)が生じた場合、外部機器との無線通信に使用されるネットワークの通信設定が、変更される前の通信設定に戻される。したがって、EndDocが生じると、PC3は印刷開始前と同様の無線通信を実行できるため、最適なタイミングでアドホックモードの無線通信を解除することができる。
When a print end instruction (EndDoc) for causing the
その結果、PC3で印刷対象プリンタ2の通信設定値を一度設定するだけで、無線通信環境にない外出先でプリンタ2をPC3に自動的に接続および切断させることができ、つまりアドホックモードの無線通信による印刷を容易に実現できる。
As a result, it is possible to automatically connect and disconnect the
本発明の第二実施形態について説明する。第二実施形態は、PC3で実行される印刷処理の詳細が、第一実施形態と異なる。以下では、第一実施形態と異なる点のみを説明する。
A second embodiment of the present invention will be described. The second embodiment differs from the first embodiment in the details of the printing process executed by the
図9〜図11を参照して、第二実施形態のPC3で実行される印刷処理について説明する。以下の説明では、PC3で実行される印刷処理のうち、本発明に関連する処理(スプーラ処理、StartDocPort処理、EndDocPort処理)のみを説明する。
With reference to FIGS. 9 to 11, the printing process executed by the
PC3で印字開始が指示されると、CPU301が制御するスプーラ34は、OSが提供するAPIを用いてスプーラ処理(図9参照)を実行する。なお、以下の説明では、PC3において、印刷設定画面50(図4参照)で設定変更チェックボックス53が選択され、且つ、ネットワーク名54およびセキュリティ設定55に印刷対象プリンタ2の通信設定値が入力されているものとする。
When the
図9に示すように、スプーラ処理では、OpenPortを呼び出して、プリントモニタ38を開く(S101)。StartDocPortを呼び出して、印刷データの出力開始をプリントモニタ38に通知する(S103)。WritePortを呼び出して、プリントモニタ38に印刷データを書き込む(S105)。印刷データの書き込みが完了するまで、ステップS105が繰り返し実行される。印刷データの書き込みが完了すると、EndDocPortを呼び出して、印刷データの出力終了をプリントモニタ38に通知する(S107)。ClosePortを呼び出して、プリントモニタ38を閉じる(S109)。これにより、スプーラ処理(図9)が終了する。 As shown in FIG. 9, in the spooler process, OpenPort is called to open the print monitor 38 (S101). Call StartDocPort to notify the print monitor 38 of the start of print data output (S103). WritePort is called and print data is written to the print monitor 38 (S105). Step S105 is repeatedly executed until the writing of the print data is completed. When writing of the print data is completed, EndDocPort is called to notify the print monitor 38 of the end of print data output (S107). Call ClosePort to close the print monitor 38 (S109). Thereby, the spooler process (FIG. 9) is completed.
CPU301が制御するプリントモニタ38(より詳細には、ポートモニタ36)は、ステップS103でStartDocPortが呼び出されるとStartDocPort処理(図10参照)を実行し、ステップS107でEndDocPortが呼び出されるとEndDocPort処理(図11参照)を実行する。
The print monitor 38 (more specifically, the port monitor 36) controlled by the
図10に示すように、StartDocPort処理では、第一実施形態で説明するステップS21、S23と同様に、現在の通信設定値が取得され(S121)、印刷対象プリンタ2の通信設定値に変更される(S123)。次いで、印刷対象プリンタ2に対する印刷データの出力を開始する(S125)。ステップS125の処理内容は、StartDocPortに応じてプリントモニタ38が実行する公知の処理であるため、詳細は省略する。これにより、StartDocPort処理(図10参照)が終了する。
As shown in FIG. 10, in the StartDocPort process, the current communication setting value is acquired (S121) and changed to the communication setting value of the
図11に示すように、EndDocPort処理では、印刷対象プリンタ2に対する印刷データの出力を終了する(S141)。ステップS141の処理内容は、EndDocPortに応じてプリントモニタ38が実行する公知の処理であるため、詳細は省略する。次いで、ステップS43と同様に、RAM303の通信設定記憶部に記憶されている通信設定値が、ステップS123で変更される前の通信設定値に戻される(S143)。これにより、EndDocPort処理(図11参照)が終了する。
As shown in FIG. 11, in the EndDocPort process, the output of print data to the
以上説明したように、第二実施形態によれば、印刷データの出力をプリントモニタ38に開始させる出力開始指示(StartDocPort)が生じた場合に、外部機器との無線通信に使用されるネットワークの通信設定が、印刷対象プリンタ2とアドホックモードの無線通信を行う特定ネットワークの通信設定に変更される。したがって、StartDocPortが生じると、PC3と印刷対象プリンタ2との間でアドホックモードの無線通信が自動的に実行されるため、最適なタイミングでアドホックモードの無線通信を実行することができる。
As described above, according to the second embodiment, when an output start instruction (StartDocPort) that causes the print monitor 38 to start outputting print data is generated, network communication used for wireless communication with an external device. The setting is changed to the communication setting of a specific network that performs the ad hoc mode wireless communication with the
印刷データの出力をプリントモニタ38に終了させる出力終了指示(EndDocPort)が生じた場合に、外部機器との無線通信に使用されるネットワークの通信設定が、変更される前の通信設定に戻される。したがって、EndDocPortが生じると、PC3は印刷開始前と同様の無線通信を実行できるため、最適なタイミングでアドホックモードの無線通信を解除することができる。
When an output end instruction (EndDocPort) that causes the print monitor 38 to finish outputting the print data is generated, the communication setting of the network used for wireless communication with the external device is returned to the communication setting before the change. Therefore, when EndDocPort is generated, the
その結果、PC3で印刷対象プリンタ2の通信設定値を一度設定するだけで、無線通信環境にない外出先でプリンタ2をPC3に自動的に接続および切断させることができ、つまりアドホックモードの無線通信による印刷を容易に実現できる。
As a result, it is possible to automatically connect and disconnect the
上記実施形態において、プリンタ2が、本発明の「外部機器」に相当する。PC3が、本発明の「データ処理装置」に相当する。RAM303が、本発明の「設定記憶手段」に相当する。無線通信部304が、本発明の「無線通信手段」に相当する。ステップS23またはステップS123を実行するCPU301が、本発明の「設定変更手段」に相当する。ステップS43またはステップS143を実行するCPU301が、本発明の「設定復帰手段」に相当する。
In the above embodiment, the
プリンタドライバ33またはプリントモニタ38が、本発明の「印刷制御プログラム」に相当する。ステップS23またはステップS123が、本発明の「設定変更ステップ」に相当する。ステップS43またはステップS143が、本発明の「設定復帰ステップ」に相当する。StartDoc処理(図6)が、本発明の「印刷開始ステップ」に相当する。EndDoc処理(図7)が、本発明の「印刷終了ステップ」に相当する。StartDocPort処理(図10)が、本発明の「出力開始ステップ」に相当する。EndDocPort処理(図11)が、本発明の「出力終了ステップ」に相当する。
The
本発明は上記実施形態に限定されるものではなく、種々の変更が可能である。図13および図14を参照して、本発明の変形例について説明する。本変形例では、第二実施形態に係るPC3が、SSID監視プログラムをHDD302に記憶している。SSID監視プログラムは、PC3の電源投入中は常時動作して、RAM303の通信設定記憶部を監視する。
The present invention is not limited to the above embodiment, and various modifications can be made. A modification of the present invention will be described with reference to FIGS. In this modification, the
PC3に電源が投入されると、SSID監視プログラムがCPU301によって起動されて、図13に示すSSID監視処理が実行される。まず、印刷対象プリンタ2のSSIDが、無線通信部304を介して外部機器から受信中であるか否かが判断される(S201)。具体的には、無線通信部304を介して外部機器から現在受信しているSSID(つまり、PC3で現在認識されている外部機器)に、印刷設定画面50のネットワーク名54に入力されている印刷対象プリンタ2のSSIDが含まれているか否かが判断される。
When the
印刷対象プリンタ2のSSIDを受信中でない場合(S201:NO)、PC3は印刷対象プリンタ2を認識していない。この場合、PC3は印刷対象プリンタ2に接続できないから、処理はステップS201に戻る。一方、印刷対象プリンタ2のSSIDを受信中である場合(S201:YES)、PC3は印刷対象プリンタ2を認識している。この場合、PC3は印刷対象プリンタ2に接続できるから、プリンタ2に対する印刷ジョブが再開されて(S203)、処理はステップS201に戻る。
When the SSID of the
具体的に、図14(a)に示す例では、RAM303の通信設定記憶部に、印刷対象プリンタ2とは異なる2つのネットワークの通信設定値として、「SSID1」、「SSID2」が登録されている。このうち、図中で下線が引かれた「SSID1」が、接続対象のネットワークとして設定されている。この状態でPC3が印刷対象プリンタ2を認識していない場合には(S201:NO)、プリントモニタ38は、印刷ジョブリスト(プリントキュー)に登録されている印刷ジョブを外部機器に出力できない状態を検知する。印刷ジョブリストは、RAM303において印刷ジョブが管理される記憶エリアであり、スプーラ34によって制御される。
Specifically, in the example illustrated in FIG. 14A, “SSID1” and “SSID2” are registered in the communication setting storage unit of the
この場合、PC3が印刷ジョブに基づく印刷処理を実行できないから、スプーラ34は印刷ジョブリストに登録された印刷ジョブを、「一時中止」や「エラー」に設定して、印刷の進行を留保する。したがって、プリントモニタ38では、StartDocPort処理(図10)は実行されず、ひいては印刷対象プリンタ2の通信設定値への変更(S123)は実行されない。
In this case, since the
この状態で、図14(b)に示すように、PC3が印刷対象プリンタ2のSSID(図中で下線が引かれた「プリンタのSSID」)を受信した場合(201:YES)、スプーラ34は、RAM303の印刷ジョブリストに登録されている印刷ジョブに基づく印刷の進行を再開する(S203)。これにより、プリントモニタ38では、StartDocPort処理(図10)が実行され、ひいては印刷対象プリンタ2の通信設定値への変更(S123)が実行される。印刷終了後は、第2実施形態と同様に、EndDocPort処理(図11)の実行時に、接続対象のネットワークが元の「SSID1」に復帰する(S143)。
In this state, as shown in FIG. 14B, when the
本変形例によれば、印刷対象プリンタ2のSSIDを受信していると判断され、且つ、StartDocPortが生じた場合に、印刷対象プリンタ2とアドホックモードの無線通信を行う特定ネットワークの通信設定に変更される。例えば、印刷対象プリンタ2の電源が入っていない場合や、印刷対象プリンタ2がPC3の近傍に存在しない場合などには、PC3は印刷対象プリンタ2のSSIDを受信できない。この状態でPC3の印刷処理の進行が留保されても、PC3で印刷対象プリンタ2のSSIDが受信された時点で印刷が自動再開されるため、ユーザの操作負担を軽減することができる。また、印刷処理の進行が留保されている状態でも通信設定が変更されていないため、他のネットワーク処理は継続処理が可能である。
According to this modification, when it is determined that the SSID of the
上記変形例では、第二実施形態にSSID監視処理(図13)を適用した場合を例示したが、同様にして第一実施形態にSSID監視処理(図13)を適用してもよい。なお、上記変形例において、ステップS201を実行するCPU301が、本発明の「設定判断手段」に相当する。ステップS201が、本発明の「設定判断ステップ」に相当する。
In the above modification, the case where the SSID monitoring process (FIG. 13) is applied to the second embodiment is illustrated, but the SSID monitoring process (FIG. 13) may be applied to the first embodiment in the same manner. In the above modification, the
1 印刷システム
2 プリンタ
3 PC
31 アプリケーション
33 プリンタドライバ
34 スプーラ
38 プリントモニタ
301 CPU
303 RAM
304 無線通信部
1
31
303 RAM
304 wireless communication unit
Claims (9)
前記外部機器との無線通信に使用されるネットワークの通信設定を記憶する設定記憶手段と、
前記設定記憶手段に記憶されている前記通信設定に基づいて、インフラストラクチャモードおよびアドホックモードのいずれかの通信モードによって、前記外部機器と無線通信を実行する無線通信手段と、
所定のイベントが生じた場合に、前記設定記憶手段に記憶されている前記通信設定を、特定の前記外部機器と前記アドホックモードの無線通信を行う前記ネットワークである特定ネットワークの前記通信設定に変更する設定変更手段と
を備えたことを特徴とするデータ処理装置。 A data processing apparatus capable of performing wireless communication with an external device,
Setting storage means for storing communication settings of a network used for wireless communication with the external device;
Based on the communication settings stored in the setting storage means, wireless communication means for performing wireless communication with the external device in any one of the infrastructure mode and the ad hoc mode,
When a predetermined event occurs, the communication setting stored in the setting storage unit is changed to the communication setting of a specific network that is the network that performs wireless communication in the ad hoc mode with the specific external device. A data processing apparatus comprising: a setting change unit.
前記設定変更手段は、前記印刷データの生成を前記プリンタドライバに開始させる印刷開始指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記特定ネットワークの前記通信設定に変更し、
さらに、前記印刷データの生成を前記プリンタドライバに終了させる印刷終了指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記設定変更手段によって変更される前の前記通信設定に戻す設定復帰手段を備えたことを特徴とする請求項1に記載のデータ処理装置。 It has a printer driver that can generate print data,
The setting change unit changes the communication setting stored in the setting storage unit to the communication setting of the specific network when a print start instruction is generated to cause the printer driver to start generating the print data. ,
Further, when a print end instruction for causing the printer driver to end the generation of the print data is generated, the communication setting stored in the setting storage unit is changed to the communication setting before being changed by the setting change unit. The data processing apparatus according to claim 1, further comprising setting return means for returning.
前記設定変更手段は、前記印刷データの出力を前記プリントモニタに開始させる出力開始指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記特定ネットワークの前記通信設定に変更し、
さらに、前記印刷データの出力を前記プリントモニタに終了させる出力終了指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記設定変更手段によって変更される前の前記通信設定に戻す設定復帰手段を備えたことを特徴とする請求項1に記載のデータ処理装置。 A print monitor for controlling output of print data to the external device by the wireless communication means;
The setting changing unit changes the communication setting stored in the setting storage unit to the communication setting of the specific network when an output start instruction for starting the output of the print data to the print monitor is generated. ,
Further, when an output end instruction for causing the print monitor to end the output of the print data is generated, the communication setting stored in the setting storage unit is changed to the communication setting before being changed by the setting change unit. The data processing apparatus according to claim 1, further comprising setting return means for returning.
前記設定変更手段は、前記設定判断手段によって前記特定ネットワークの前記通信設定を受信していると判断され、且つ、前記所定のイベントが生じた場合に、前記設定記憶手段に記憶されている前記通信設定の変更を実行することを特徴とする請求項2または3に記載のデータ処理装置。 Setting determination means for determining whether or not the communication setting of the specific network is received via the wireless communication means;
The setting change unit is configured to store the communication stored in the setting storage unit when the setting determining unit determines that the communication setting of the specific network is received and the predetermined event occurs. 4. The data processing apparatus according to claim 2, wherein a setting change is executed.
前記印刷装置は、前記データ処理装置と前記アドホックモードの無線通信を実行することを特徴とする印刷システム。 A printing system in which the data processing device according to any one of claims 1 to 4 and the printing device that is the specific external device can be connected by wireless communication,
The printing system performs wireless communication in the ad hoc mode with the data processing device.
所定のイベントが生じた場合に、前記設定記憶手段に記憶されている前記通信設定を、特定の前記外部機器である印刷装置と前記アドホックモードの無線通信を行う前記ネットワークである特定ネットワークの前記通信設定に変更する設定変更ステップを実行させることを特徴とする印刷制御プログラム。 A setting storage unit that stores communication settings of a network used for wireless communication with an external device, and a communication mode of either an infrastructure mode or an ad hoc mode based on the communication settings stored in the setting storage unit By means of a computer that is a data processing device comprising a wireless communication means for performing wireless communication with the external device,
When a predetermined event occurs, the communication setting stored in the setting storage unit is used for the communication of a specific network that is a network that performs wireless communication in the ad hoc mode with a printing apparatus that is the specific external device. A print control program for executing a setting change step for changing to a setting.
前記印刷データの生成を終了させる印刷終了指示に応じて、前記印刷データの生成を終了する印刷終了ステップとを実行させ、
前記設定変更ステップは、前記印刷開始指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記特定ネットワークの前記通信設定に変更し、
さらに、前記印刷終了指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記設定変更ステップによって変更される前の前記通信設定に戻す設定復帰ステップを実行させることを特徴とする請求項6に記載の印刷制御プログラム。 A print start step for starting generation of the print data in response to a print start instruction for starting generation of print data;
In response to a print end instruction for ending generation of the print data, a print end step for ending generation of the print data is executed,
In the setting change step, when the print start instruction is generated, the communication setting stored in the setting storage unit is changed to the communication setting of the specific network,
Furthermore, when the print end instruction is generated, a setting return step is executed to return the communication setting stored in the setting storage means to the communication setting before being changed by the setting changing step. A printing control program according to claim 6.
前記印刷データの出力を終了させる出力終了指示に応じて、前記無線通信手段による前記印刷データの出力を終了する出力終了ステップとを実行させ、
前記設定変更ステップは、前記出力開始指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記特定ネットワークの前記通信設定に変更し、
さらに、前記出力終了指示が生じた場合、前記設定記憶手段に記憶されている前記通信設定を、前記設定変更ステップによって変更される前の前記通信設定に戻す設定復帰ステップを実行させることを特徴とする請求項6に記載の印刷制御プログラム。 In response to an output start instruction for starting output of print data, an output start step for starting output of the print data by the wireless communication means;
In response to an output end instruction for ending the output of the print data, an output end step for ending the output of the print data by the wireless communication unit is executed,
The setting change step changes the communication setting stored in the setting storage unit to the communication setting of the specific network when the output start instruction is generated,
Further, when the output end instruction is generated, a setting return step for returning the communication setting stored in the setting storage means to the communication setting before being changed by the setting changing step is performed. A printing control program according to claim 6.
前記設定変更ステップは、前記設定判断ステップによって前記特定ネットワークの前記通信設定を受信していると判断され、且つ、前記所定のイベントが生じた場合に、前記設定記憶手段に記憶されている前記通信設定の変更を実行することを特徴とする請求項7または8に記載の印刷制御プログラム。 Executing a setting determination step for determining whether the communication setting received from the external terminal via the wireless communication means is the communication setting of the specific network;
In the setting change step, it is determined that the communication setting of the specific network is received by the setting determination step, and the communication stored in the setting storage unit when the predetermined event occurs. The print control program according to claim 7, wherein the setting is changed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012018441A JP2013156916A (en) | 2012-01-31 | 2012-01-31 | Data processing device, printing system, and printing control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012018441A JP2013156916A (en) | 2012-01-31 | 2012-01-31 | Data processing device, printing system, and printing control program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013156916A true JP2013156916A (en) | 2013-08-15 |
Family
ID=49052012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012018441A Pending JP2013156916A (en) | 2012-01-31 | 2012-01-31 | Data processing device, printing system, and printing control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013156916A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108646988A (en) * | 2018-03-20 | 2018-10-12 | 北京明朝万达科技股份有限公司 | Document printing method and system |
-
2012
- 2012-01-31 JP JP2012018441A patent/JP2013156916A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108646988A (en) * | 2018-03-20 | 2018-10-12 | 北京明朝万达科技股份有限公司 | Document printing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3720740B2 (en) | Distributed printing system, distributed printing control method, storage medium, and program | |
JP4945479B2 (en) | Print processing apparatus, print processing method, print processing program, and recording medium | |
JP5072676B2 (en) | Information processing apparatus, information processing method, and printing system | |
JP7355147B2 (en) | application program | |
JP5621793B2 (en) | Printing system, printing control apparatus, and printing control program | |
JP5704834B2 (en) | Information processing apparatus, control method, and program | |
JP5235695B2 (en) | Printing control apparatus and control method thereof | |
CN111251732B (en) | Control method and storage medium | |
JP5100195B2 (en) | Information processing apparatus and job management method | |
JP2006338411A (en) | Printing system, control method for printing system, and program | |
JP2010026769A (en) | Information processing apparatus, information processing method, and program | |
JP2009211382A (en) | Information processing apparatus, information processing program, and recording medium | |
US20230102837A1 (en) | Non-transitory computer-readable medium storing support program | |
JP2013156916A (en) | Data processing device, printing system, and printing control program | |
JP5929374B2 (en) | Program and information processing apparatus | |
JP2019053403A (en) | Program and printing system | |
JP2005202723A (en) | Printing system | |
JP2010277257A (en) | Program for starting printer | |
JP2009269179A (en) | Printer, program and recording medium | |
JP2011237850A (en) | Image processor, program, and image processing method | |
JP6412467B2 (en) | Information processing apparatus and printing system | |
JP5551532B2 (en) | Print setting device | |
JP5526863B2 (en) | Printer driver and print control apparatus | |
JP2006178767A (en) | Printing reservation system and its control method | |
JP6977574B2 (en) | Programs and information processing equipment |