JP2006172120A - Printer system, printing method, recording medium and program for the method - Google Patents

Printer system, printing method, recording medium and program for the method Download PDF

Info

Publication number
JP2006172120A
JP2006172120A JP2004363377A JP2004363377A JP2006172120A JP 2006172120 A JP2006172120 A JP 2006172120A JP 2004363377 A JP2004363377 A JP 2004363377A JP 2004363377 A JP2004363377 A JP 2004363377A JP 2006172120 A JP2006172120 A JP 2006172120A
Authority
JP
Japan
Prior art keywords
printer
host
communication
program
registered
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.)
Granted
Application number
JP2004363377A
Other languages
Japanese (ja)
Other versions
JP4314187B2 (en
Inventor
Tomonari Sumida
知成 炭田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2004363377A priority Critical patent/JP4314187B2/en
Priority to US11/282,770 priority patent/US8064081B2/en
Priority to EP05257255A priority patent/EP1679836A3/en
Publication of JP2006172120A publication Critical patent/JP2006172120A/en
Application granted granted Critical
Publication of JP4314187B2 publication Critical patent/JP4314187B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer system, a printing method, and a recording medium and a program for the method which have high convenience in communication between a printer and a host PC. <P>SOLUTION: The printer system performing printing by transmitting print data by radio communication to the printer from the host PC, is characterized in that the host PC side determines whether two-way communication by radio communication is available and transmits information to the printer, notifying that the two-way communication is available when available, and the printer side registers the identification information of the host PC which has transmitted the information notifying that the two-way communication is available. The printing method and the like are also provided. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、無線通信により印刷データを送信するプリンタシステム、印刷方法、その記録媒体及びプログラムに関する。   The present invention relates to a printer system, a printing method, a recording medium, and a program for transmitting print data by wireless communication.

従来、無線によるデータ通信の1つとして周波数2.4GHz帯においてスペクトラム拡散方式を適用したBluetooth通信が利用されている。Bluetooth通信装置には固有の48ビットBluetoothデバイス・アドレス(以降BD_ADDR)が割り当てられており、接続時にはこのBD_ADDRを知らせリンク接続が行われる。   Conventionally, Bluetooth communication using a spread spectrum method in a frequency of 2.4 GHz band is used as one of wireless data communication. A unique 48-bit Bluetooth device address (hereinafter referred to as BD_ADDR) is assigned to the Bluetooth communication apparatus, and this BD_ADDR is notified at the time of connection, and link connection is performed.

Bluetooth通信では個々のユースケースに応じたプロファイルが定められており、そのプロファイルに従って通信制御が行われている。プロファイルの1つであるHardcopy Cable Replacement Profile(以下HCRP)ではホストPCとプリンタ装置やスキャナ装置との通信に関する方法が詳細に規定されており、BluetoothのLogical Link Control and Adaptation Protocol(以下L2CAP)層を通して通信が行われる。HCRPではL2CAP層に2つのチャネルが設けられており、データチャネルで通信データを送信し、コントロールチャネルによって各種制御が行われる。データチャネルにおけるデータフロー制御はコントロールチャネルによって自機器が受信可能なデータバイト数をクレジットとして相手機器に与えることによって、相手機器は与えられたクレジット数を超えない範囲でデータチャネルを通して通信データを送信する。またコントロールチャネルにはプリンタ装置のデバイスIDを受信することが可能な構成となっている。   In Bluetooth communication, a profile corresponding to each use case is defined, and communication control is performed according to the profile. One of the profiles, Hardcopy Cable Replacement Profile (hereinafter referred to as HCRP), stipulates in detail a method related to communication between a host PC and a printer device or scanner device. Communication takes place. In HCRP, two channels are provided in the L2CAP layer, communication data is transmitted through the data channel, and various controls are performed through the control channel. Data flow control in the data channel gives the partner device the number of data bytes that can be received by the control device via the control channel as a credit, and the partner device transmits communication data through the data channel within a range not exceeding the given credit number. . The control channel is configured to receive the device ID of the printer apparatus.

次に従来のホストPCとプリンタ装置間における従来のステータス情報の通信方法について説明する。プリンタ装置とホストPCがHCRPで接続されている場合には、プリンタ装置の現在の状態をホストPC側で表示するために、プリンタ装置からデータチャネルを通してステータス情報を送信することが可能となっている。しかしながら、ホストPC側が搭載し利用しているプロトコルスタックソフトウェアの仕様の違いによっては正常にプリンタ装置のステータス情報を受け取ることが出来ない機器が存在する。   Next, a conventional status information communication method between the conventional host PC and the printer will be described. When the printer device and the host PC are connected by HCRP, status information can be transmitted from the printer device through the data channel in order to display the current state of the printer device on the host PC side. . However, there are devices that cannot normally receive the status information of the printer device depending on the difference in the specifications of the protocol stack software installed and used on the host PC side.

ホストPC側にインストールされたプリンタドライバでは、利用するプロトコルスタックがプリンタ装置のステータス情報を受け取ることが可能であるかどうかを判断し、受け取ることが可能であると判断した場合にはプリンタ装置に対してデータチャネルを通じてステータス情報コマンドを送信し、プリンタ装置側に送信して欲しいステータス情報を登録する。プリンタ装置側では受け取ったステータス情報コマンドによって、自機器の現在の状態をチェックし、登録されたステータス情報に基づき自機器のエラー情報やインク残量、バッテリ残量などの状態を所定のフォーマットによりデータチャネルにより送信する。ホストPC側では送信されたステータス情報を元にホストPCに付随するモニタなどの表示装置に表示し、ユーザーにプリンタ装置の状態を知らせることが可能となる。   The printer driver installed on the host PC side determines whether the protocol stack to be used can receive the status information of the printer device, and if it is determined that it can be received, The status information command is transmitted through the data channel, and the status information desired to be transmitted to the printer apparatus side is registered. The printer device checks the current status of its own device based on the received status information command. Based on the registered status information, the status information of its own device such as error information, ink remaining amount, battery remaining amount, etc. is stored in a predetermined format. Transmit by channel. On the host PC side, the status information transmitted can be displayed on a display device such as a monitor attached to the host PC to inform the user of the status of the printer device.

一方、ホストPCで利用するプロトコルスタックがプリンタ装置のステータス情報を受け取ることが出来ないとプリンタドライバが判断した場合には、プリンタドライバはステータス情報コマンドを送信せずに、プリンタ機器からのステータス情報を受け取らない。   On the other hand, if the printer driver determines that the protocol stack used by the host PC cannot receive the status information of the printer device, the printer driver does not send the status information command and receives the status information from the printer device. Can not accept.

前述のように接続相手のホストPCにより双方向通信が出来ない機器が存在し、双方向通信できない機器に対してプリンタ装置側から不用意にステータス情報を送信すると、接続相手機器において不具合が発生することが考えられる。   As described above, there are devices that cannot perform two-way communication with the host PC of the connection partner, and if status information is inadvertently transmitted from the printer device to a device that is not capable of two-way communication, a problem occurs in the connection partner device. It is possible.

そのため双方向通信が可能なホストPCにおいては、毎回リンク接続の度にステータス情報コマンドを送信し、双方向通信を行っていた。常にプリンタ装置の状態を確認し、かつプリンタ装置を他の機器にも利用できる状態に開放することを実現するためには、一定時間毎にリンク接続を発生させ、リンク接続中にステータス情報コマンドを送信し、ステータス情報データを受信するというプロセスが発生する。   Therefore, in the host PC capable of bidirectional communication, a status information command is transmitted every time a link is connected, and bidirectional communication is performed. In order to always check the status of the printer device and to release the printer device so that it can be used for other devices, a link connection is generated at regular intervals, and a status information command is issued during the link connection. The process of sending and receiving status information data occurs.

複数のインターフェースを持ち、ホストPCからのデータ通信によりインターフェースの占有状態が切り替わるプリンタ装置において、接続の度にホストPCからのデータ通信を発生させると占有状態が一時的に切り替わるという不便な状況が発生していた。   In a printer device that has multiple interfaces and the occupation state of the interface is switched by data communication from the host PC, if the data communication from the host PC occurs every time the connection is made, an inconvenient situation occurs in which the occupation state is temporarily switched. Was.

本発明は、上述した事情を考慮してなされたもので、プリンタ装置とホストPCの通信において利便性の高いプリンタシステム、印刷方法、その記録媒体及びプログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a printer system, a printing method, a recording medium, and a program that are highly convenient for communication between a printer apparatus and a host PC.

この発明は、上述した課題を解決すべくなされたもので、本発明のプリンタシステムにおいては、無線通信によりホストPCからプリンタ装置に印刷データを送信し印刷を行うプリンタシステムであって、ホストPC側で無線通信による双方向通信が可能であるかどうかを判断し、可能である場合にはプリンタ装置に対して双方向通信が可能であることを送信し、プリンタ装置側では双方向通信可能であることを送信したホストPCの識別情報を登録することを特徴とする。   The present invention has been made to solve the above-described problems, and in the printer system of the present invention, a printer system that performs printing by transmitting print data from a host PC to a printer device by wireless communication, the host PC side To determine whether bi-directional communication by wireless communication is possible, and if possible, transmits to the printer device that bi-directional communication is possible, and the bi-directional communication is possible on the printer device side. The identification information of the host PC that transmitted the message is registered.

また、本発明による撮像方法においては、無線通信によりホストPCからプリンタ装置に印刷データを送信し印刷を行う印刷方法であって、ホストPC側で無線通信による双方向通信が可能であるかどうかを判断する工程と、可能である場合にはプリンタ装置に対して双方向通信が可能であることを送信する工程と、プリンタ装置側では双方向通信可能であることを送信したホストPCの識別情報を登録する工程とを備えたことを特徴とする。   The imaging method according to the present invention is a printing method in which print data is transmitted from a host PC to a printer device by wireless communication and printing is performed, and whether or not bidirectional communication by wireless communication is possible on the host PC side. The step of determining, the step of transmitting that bi-directional communication is possible to the printer device if possible, and the identification information of the host PC that has transmitted that bi-directional communication is possible on the printer device side. And a step of registering.

また、本発明による記録媒体においては、請求項6記載の印刷方法の各工程をコンピュータに実行させるためのプログラムを記録したコンピュータ読取可能な記録媒体である。   The recording medium according to the present invention is a computer-readable recording medium on which a program for causing a computer to execute each step of the printing method according to claim 6 is recorded.

また、本発明によるプログラムは、請求項6記載の印刷方法の各工程をコンピュータに実行させるためのプログラムである。   A program according to the present invention is a program for causing a computer to execute each step of the printing method according to claim 6.

本発明によれば、プリンタ装置に双方向通信が可能である機器を登録しておくことにより、データ送信の回数を減らし利便性の高いプリンタシステムを提供することが可能となる。   According to the present invention, it is possible to provide a highly convenient printer system by reducing the number of data transmissions by registering a device capable of bidirectional communication in the printer device.

以下添付図面を参照して本発明をプリンタ装置に適用した実施形態について詳細に説明する。図1は本発明をプリンタ装置1に適用した実施形態の構成の概略を示す図である。図1においてプリンタ装置1はプリンタ制御部105、CPU101、Flash ROM103、RAM104、無線通信I/F制御部102、ベースバンド部106、RF部107、アンテナ108を備えている。   Embodiments in which the present invention is applied to a printer apparatus will be described in detail below with reference to the accompanying drawings. FIG. 1 is a diagram showing an outline of the configuration of an embodiment in which the present invention is applied to a printer apparatus 1. In FIG. 1, the printer apparatus 1 includes a printer control unit 105, a CPU 101, a flash ROM 103, a RAM 104, a wireless communication I / F control unit 102, a baseband unit 106, an RF unit 107, and an antenna 108.

Flash ROM103は、CPU101によってプリンタ装置1を制御動作させるためのプログラムや各種動作テーブルなどが書きこまれている。Flash ROMを使用せずに、ROMとEEPROMなどの不揮発性メモリを同時に具備することによっても本実施例の目的は達成可能である。RAM104には各種変数や制御テーブル、一時的に利用するデータ、パケット受信用の送受信バッファ等が格納利用されている。   The flash ROM 103 stores a program for causing the CPU 101 to control the printer apparatus 1 and various operation tables. The object of the present embodiment can also be achieved by simultaneously providing a non-volatile memory such as a ROM and an EEPROM without using a flash ROM. The RAM 104 stores and uses various variables, control tables, temporarily used data, transmission / reception buffers for packet reception, and the like.

アンテナ108を通して受信された信号はRF部107により復調処理されベースバンド部106に出力される。ベースバンド部106は復調されたデータの誤り訂正処理をおこない、処理結果に応じて正常に受信されたデータを無線通信I/F制御部102に出力し、誤りが発見されたデータに対しては再送要求を行う。更にセキュリティモードの設定によって相手機器に認証の要求や暗号化処理をおこなう。ベースバンド部106と無線通信I/F制御部102との間の各種制御、イベント処理やデータ通信方法は規格で定められているホストコントローラーインターフェース(以下HCI)に沿ってパケット単位で送受信が行われる。   The signal received through the antenna 108 is demodulated by the RF unit 107 and output to the baseband unit 106. The baseband unit 106 performs an error correction process on the demodulated data, and outputs normally received data according to the processing result to the wireless communication I / F control unit 102. Request retransmission. Further, the authentication request or encryption processing is performed on the counterpart device according to the security mode setting. Various controls, event processing, and data communication methods between the baseband unit 106 and the wireless communication I / F control unit 102 are transmitted and received in packet units in accordance with a host controller interface (hereinafter referred to as HCI) defined in the standard. .

無線通信I/F制御部102から送信するHCIデータはベースバンド部106に転送され、出力データに誤り訂正符合等を付加し所定のデータフォーマットに変換されRF部107に出力される。RF部107は出力されたデータを変調し、アンテナ108により他の無線通信機器に送信する。   The HCI data transmitted from the wireless communication I / F control unit 102 is transferred to the baseband unit 106, added with an error correction code or the like to the output data, converted into a predetermined data format, and output to the RF unit 107. The RF unit 107 modulates the output data and transmits the data to another wireless communication device via the antenna 108.

データは無線通信I/F制御部102はベースバンド部106から出力されたパケットデータを解析し、リンク接続交渉、サービス検索応答、各プロトコル階層における接続交渉、データ転送、フローコントロール等に対しての制御処理を行う。   As for the data, the wireless communication I / F control unit 102 analyzes the packet data output from the baseband unit 106, and responds to link connection negotiation, service search response, connection negotiation in each protocol layer, data transfer, flow control, etc. Perform control processing.

接続相手側の無線機器2でも同様にCPU201、無線通信I/F制御部202、ROM203、RAM204、アンテナ205を備えており、各種印刷データや制御データを無線通信I/F制御部202を通じてプリンタ装置1と無線通信により接続を行い、印刷データを送信することにより印刷を行う。無線機器2は表示装置(不図示)を備えておりプリンタ装置1から受信したステータス情報データを解析し、プリンタ装置の状態を表示することが可能な構成となっている。   Similarly, the wireless device 2 on the connection partner side is also provided with a CPU 201, a wireless communication I / F control unit 202, a ROM 203, a RAM 204, and an antenna 205. Various print data and control data are transmitted through the wireless communication I / F control unit 202 to the printer device. 1 is connected by wireless communication, and printing is performed by transmitting print data. The wireless device 2 includes a display device (not shown), and is configured to analyze the status information data received from the printer device 1 and display the status of the printer device.

プリンタ装置1におけるHCRP接続時の動作について図2のフローチャートを用いて詳細に説明する。図2はプリンタ装置に無線機器2からHCRP接続が行われた場合のデバイスIDの返却値における登録済みフラグや、プリンタ装置に記録できる最大数に達した場合にセットされる登録フルフラグの設定を更新する処理のフローチャートを示している。プリンタ装置1にはHCRPによる双方向通信が可能である機器のBD_ADDR等による識別情報が不揮発性メモリやRAMなどに記録保存されている。HCRP接続が行われると(S201)、プリンタ装置1に接続された無線機器の識別情報によりその機器が登録されているかによって(S202)、登録されている場合には登録済みフラグをセットする(S203)。登録されていない場合には登録済みフラグをリセットしておく(S204)。次にプリンタ装置1に記録できる最大数に達しているかどうかを確認し(S205)、最大数に達していた場合登録フルフラグをセットし(S206)、超えていない場合にはリセットする(S207)。このようにデバイスIDの一部の情報をHCRPの接続時に更新しておく。   The operation at the time of HCRP connection in the printer apparatus 1 will be described in detail with reference to the flowchart of FIG. 2 updates the registered flag in the return value of the device ID when the HCRP connection is made from the wireless device 2 to the printer device, and the registration full flag setting that is set when the maximum number that can be recorded in the printer device is reached. The flowchart of the process to perform is shown. In the printer apparatus 1, identification information by BD_ADDR or the like of a device capable of bidirectional communication by HCRP is recorded and stored in a nonvolatile memory or RAM. When the HCRP connection is made (S201), the registered flag is set (S203) depending on whether the device is registered based on the identification information of the wireless device connected to the printer apparatus 1 (S202). ). If not registered, the registered flag is reset (S204). Next, it is confirmed whether or not the maximum number that can be recorded in the printer apparatus 1 has been reached (S205). If the maximum number has been reached, a registration full flag is set (S206), and if it has not exceeded, it is reset (S207). In this way, a part of the device ID information is updated when the HCRP is connected.

無線機器2からHCRPのコントロールチャネルを通してデバイスIDの要求があった場合には、この設定された登録情報のほかにデバイス名や製造業者名などを含んだデバイスIDの値が返却される。   When the device ID is requested from the wireless device 2 through the HCRP control channel, the device ID value including the device name and the manufacturer name is returned in addition to the set registration information.

次にプリンタ装置1においての双方向通信が可能である機器の登録方法について図3のフローチャートを用いて詳細に説明する。図3のフローチャートは無線機器2からHCRP接続中に双方向通信可能コマンドが送信された場合のプリンタ装置1の処理を示している。コマンドを受信した場合(S301)、プリンタ装置1ではその無線機器の識別情報が既に登録されているかどうかを確認する(S302)。既に識別情報が登録されている場合にはそのまま処理を終了する(S308)。登録されていない場合には、プリンタ装置1の記録領域が全て埋まっていて最大登録数に達しているかどうかを確認する(S303)。最大登録数に達している場合には、領域を確保するために既存の登録を1つ削除する(S304)。この登録を削除する方法については古い情報を削除する方法のほかに、接続された回数などの優先順位を設けて優先順位の低いものから削除するという方法も考えられる。このように登録領域を確保し、接続してきた登録されていないデバイスの識別情報を登録する(S305)。その後最大登録数に達しているかどうかを判断し(S306)、最大登録数に達している場合には、登録フルフラグを更新し(S307)、処理を終了する(S308)。以上のように無線機器2から双方向可能コマンドを受信した場合には、その機器の識別情報がプリンタ装置1に登録される。   Next, a device registration method capable of bidirectional communication in the printer apparatus 1 will be described in detail with reference to the flowchart of FIG. The flowchart of FIG. 3 shows the processing of the printer apparatus 1 when a bidirectional communication enable command is transmitted from the wireless device 2 during HCRP connection. When the command is received (S301), the printer apparatus 1 checks whether the identification information of the wireless device has already been registered (S302). If the identification information has already been registered, the process is terminated as it is (S308). If it is not registered, it is confirmed whether or not the recording area of the printer 1 is all filled and the maximum number of registrations has been reached (S303). If the maximum number of registrations has been reached, one existing registration is deleted to secure the area (S304). As a method of deleting this registration, in addition to a method of deleting old information, a method of providing a priority order such as the number of times of connection and deleting from a lower priority order is also conceivable. In this way, the registration area is secured, and identification information of the connected unregistered device is registered (S305). Thereafter, it is determined whether or not the maximum number of registrations has been reached (S306). If the maximum number of registrations has been reached, the registration full flag is updated (S307), and the process ends (S308). As described above, when a bidirectional command is received from the wireless device 2, the identification information of the device is registered in the printer apparatus 1.

次に無線機器2におけるプリンタドライバの構成について説明する。プリンタドライバは無線機器2の中でアプリケーションとして動作するソフトウェアであり、プリンタ装置に対して印刷データを送信することが可能な構成となっている。またプリンタ装置1から受信したステータス情報データを解析し無線機器2の表示装置にプリンタ装置1の状態を表示する。更にプリンタドライバは無線機器2の印刷ポート情報や搭載されているプロトコルスタックの情報等により、無線機器2が双方向通信することが出来るかどうかが判断できる構成となっている。   Next, the configuration of the printer driver in the wireless device 2 will be described. The printer driver is software that operates as an application in the wireless device 2 and has a configuration capable of transmitting print data to the printer apparatus. Further, the status information data received from the printer device 1 is analyzed, and the status of the printer device 1 is displayed on the display device of the wireless device 2. Further, the printer driver is configured to determine whether or not the wireless device 2 can perform two-way communication based on the print port information of the wireless device 2 and the information of the installed protocol stack.

次に無線機器2におけるプリンタドライバの動作について図4のフローチャートを用いて詳細に説明する。プリンタドライバはユーザーによる印刷処理やプリンタの状態確認処理により起動され、プリンタ装置に対して接続時処理を行う(S401)。最初にプリンタ装置1に対してリンク接続、HCRP接続の手順により接続を行う(S402)。次にHCRPコントロールチャネルによってプリンタ装置1に対してデバイスIDを要求しデバイスIDを取得する(S403)。次にプリンタドライバでは無線機器2に搭載されているBluetooth通信用のアプリケーションにおいて双方向通信が可能であるかどうかを確認し(S404)双方向通信が不可能であれば何も処理をせずに処理を終了する(S408)。双方向通信が可能と判断された場合には、既に取得してあるデバイスIDの情報の中から登録済みフラグを確認し、プリンタ装置1に自機器が既に登録されているかどうかを判断する(S405)。既に登録されていなかった場合にはプリンタ装置1に対して双方向可能コマンドを送信する(S406)。その後プリンタ装置1から送信されてくるステータス情報を受信して(S407)、処理を終了する(S408)。ステータス情報を受信できた場合には、その情報を解析してプリンタ装置の状態を無線機器2の表示装置に表示しユーザーにプリンタの状態を通知する。   Next, the operation of the printer driver in the wireless device 2 will be described in detail with reference to the flowchart of FIG. The printer driver is activated by a printing process by the user or a printer status confirmation process, and performs a connection process for the printer apparatus (S401). First, connection is made to the printer apparatus 1 by the procedure of link connection and HCRP connection (S402). Next, a device ID is requested from the printer apparatus 1 through the HCRP control channel to obtain the device ID (S403). Next, the printer driver confirms whether or not bidirectional communication is possible in the Bluetooth communication application installed in the wireless device 2 (S404). If bidirectional communication is impossible, no processing is performed. The process ends (S408). If it is determined that bi-directional communication is possible, the registered flag is confirmed from the device ID information that has already been acquired, and it is determined whether or not the device is already registered in the printer apparatus 1 (S405). ). If it has not been registered, a bidirectionally enabled command is transmitted to the printer apparatus 1 (S406). Thereafter, the status information transmitted from the printer apparatus 1 is received (S407), and the process is terminated (S408). When the status information can be received, the information is analyzed and the status of the printer device is displayed on the display device of the wireless device 2 to notify the user of the status of the printer.

次にプリンタ装置1と登録済みの無線機器2との通信の流れについて図5のタイムチャートを用いて詳細に説明する。   Next, the flow of communication between the printer apparatus 1 and the registered wireless device 2 will be described in detail with reference to the time chart of FIG.

無線機器からユーザー操作等によって印刷命令が発行されると、無線機器2はプリンタ装置に対してリンク接続を要求する(S501)。プリンタ装置はリンク接続に肯定応答する(S502)ことでリンク接続が確立される。次にL2CAP層においてHCRPのコントロールチャネルの接続を要求し(S503)、プリンタ装置側が肯定応答を返却する(S504)ことによりコントロールチャネルの接続が確立する。L2CAP層ではそれぞれの接続に対して双方の交渉が必要であるため、コントロールチャネルにおいて転送されるパラメータについて交渉が行われる。最初に無線機器側からコントロールチャネルに対する交渉を要求し(S505)、これにプリンタ装置側が肯定応答する(S506)ことで無線機器側の交渉が完了する。同様にプリンタ装置側からも自身におけるパラメータを交渉するために交渉要求を行い(S507)、肯定応答されることにより(S508)交渉が完了する。データチャネルについても同様に接続要求、交渉要求を行い(S509〜S514)データチャネルにおけるパラメータの交渉が終了する。   When a print command is issued by a user operation or the like from the wireless device, the wireless device 2 requests a link connection to the printer device (S501). The printer device acknowledges the link connection (S502), so that the link connection is established. Next, the L2CAP layer requests connection of the HCRP control channel (S503), and the printer device returns an affirmative response (S504), thereby establishing the control channel connection. Since the L2CAP layer needs to negotiate with each other for each connection, the parameters transferred in the control channel are negotiated. First, a negotiation for the control channel is requested from the wireless device side (S505), and the printer device side acknowledges this (S506), thereby completing the negotiation on the wireless device side. Similarly, a negotiation request is also made from the printer device side to negotiate its own parameters (S507), and when an affirmative response is made (S508), the negotiation is completed. Similarly, a connection request and a negotiation request are made for the data channel (S509 to S514), and the parameter negotiation in the data channel ends.

次に無線機器2はコントロールチャネルを利用してプリンタ装置に対してデバイスIDの要求を行い(S515)、プリンタ装置1はデバイスIDに登録されていることを示す登録済みフラグをセットした状態でデバイスIDを送信する(S516)。まだ登録されていない場合には、無線機器2からデータチャネルを通して双方向通信可能コマンドを送信することにより図3の手順で登録が行われる。このように未登録の場合には無線機器2からプリンタ装置1へのデータチャネルによるデータ通信が発生する。   Next, the wireless device 2 uses the control channel to request a device ID from the printer device (S515), and the printer device 1 sets the registered flag indicating that it is registered in the device ID. The ID is transmitted (S516). If not registered yet, registration is performed in the procedure of FIG. 3 by transmitting a bidirectional communicable command from the wireless device 2 through the data channel. As described above, when the data is not registered, data communication from the wireless device 2 to the printer device 1 using the data channel occurs.

無線機器2は自機器がプリンタ装置1に双方向通信が可能であると登録されていることを確認して、プリンタ装置1に対して自機器が受信可能な値のバイト数のクレジットをプリンタ装置1に与え(S517)、プリンタ装置1は肯定応答により答えることにより(S518)クレジットが与えられる。プリンタ装置1は現在のプリンタの状態をステータス情報データによりデータチャネルを通して送信を行う(S519)。無線機器2では受信したステータス情報データを解析してプリンタの状態を表示することが可能となる。
無線機器2において、常にプリンタ装置の状態を検出するような場合には、1度プリンタ装置に登録されていれば、無線機器2側からデータチャネルによるデータ通信が発生せずにプリンタ装置の状態を検出することが可能となる。
The wireless device 2 confirms that its own device is registered in the printer device 1 as being capable of bidirectional communication, and gives the printer device 1 a credit for the number of bytes of a value that the own device can receive. 1 (S517), the printer apparatus 1 responds with an affirmative response (S518), and credits are given. The printer device 1 transmits the current printer status through the data channel using status information data (S519). The wireless device 2 can display the status of the printer by analyzing the received status information data.
In the case where the wireless device 2 always detects the state of the printer device, if the wireless device 2 is registered in the printer device once, the state of the printer device is changed without data communication through the data channel from the wireless device 2 side. It becomes possible to detect.

また、上述した実施形態において図2〜4に示した各処理は、各処理の機能を実現する為のプログラムをメモリから読み出してCPU(中央演算装置)が実行することによりその機能を実現させるものである。   In the above-described embodiment, each process shown in FIGS. 2 to 4 is realized by reading a program for realizing the function of each process from the memory and executing it by a CPU (Central Processing Unit). It is.

また、上述した構成に限定さるものではなく、図2〜4に示した各処理の全部または一部の機能を専用のハードウェアにより実現してもよい。また、上述したメモリは、HDD、光磁気ディスク装置、フラッシュメモリ等の不揮発性のメモリや、CD−ROM等の読み出しのみが可能な記録媒体、RAM以外の揮発性のメモリ、あるいはこれらの組合せによるコンピュータ読み取り、書き込み可能な記録媒体より構成されてもよい。   Further, the present invention is not limited to the above-described configuration, and all or some of the functions shown in FIGS. 2 to 4 may be realized by dedicated hardware. The above-mentioned memory is based on a nonvolatile memory such as an HDD, a magneto-optical disk device, or a flash memory, a recording medium such as a CD-ROM that can only be read, a volatile memory other than a RAM, or a combination thereof. You may comprise from a computer-readable and writable recording medium.

また、図2〜4に示した各処理の機能を実現する為のプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することにより各処理を行っても良い。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。具体的には、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書きこまれた後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含む。   2 to 4 are recorded on a computer-readable recording medium, and the program recorded on the recording medium is read into a computer system and executed. Each process may be performed. Here, the “computer system” includes an OS and hardware such as peripheral devices. Specifically, a program read from a recording medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, and then the program is read based on the instructions of the program. It includes the case where the CPU of the function expansion board or function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記録装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発メモリ(RAM)のように、一定時間プログラムを保持しているものも含むものとする。   The “computer-readable recording medium” refers to a recording medium such as a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a hard disk built in a computer system. Further, the “computer-readable recording medium” refers to a volatile memory (RAM) in a computer system that becomes a server or a client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. In addition, those holding a program for a certain period of time are also included.

また、上記プログラムは、このプログラムを記録装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現する為のものであっても良い。さらに、前述した機能をコンピュータシステムに既に記録されているプログラムとの組合せで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
The program may be transmitted from a computer system storing the program in a recording device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

また、上記のプログラムを記録したコンピュータ読み取り可能な記録媒体等のプログラムプロダクトも本発明の実施形態として適用することができる。上記のプログラム、記録媒体、伝送媒体およびプログラムプロダクトは、本発明の範疇に含まれる。
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。
Further, a program product such as a computer-readable recording medium in which the above program is recorded can also be applied as an embodiment of the present invention. The above program, recording medium, transmission medium, and program product are included in the scope of the present invention.
The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes designs and the like that do not depart from the gist of the present invention.

実施例で説明する実施形態の全体構成の概略を示す図である。It is a figure which shows the outline of the whole structure of embodiment described in an Example. 実施例で説明するフローチャートである。It is a flowchart demonstrated in an Example. 実施例で説明するフローチャートである。It is a flowchart demonstrated in an Example. 実施例で説明するフローチャートである。It is a flowchart demonstrated in an Example. 実施例で説明するシーケンスチャートである。It is a sequence chart demonstrated in an Example.

符号の説明Explanation of symbols

1 プリンタ装置
2 無線機器
101 CPU
102 無線通信I/F制御部
103 Flash ROM
104 RAM
105 プリンタ制御部
106 ベースバンド部
107 RF部
108 アンテナ
201 CPU
202 無線通信I/F制御部
203 ROM
204 RAM
205 アンテナ
1 Printer device 2 Wireless device 101 CPU
102 Wireless communication I / F control unit 103 Flash ROM
104 RAM
105 Printer Control Unit 106 Baseband Unit 107 RF Unit 108 Antenna 201 CPU
202 Wireless communication I / F control unit 203 ROM
204 RAM
205 Antenna

Claims (8)

無線通信によりホストPCからプリンタ装置に印刷データを送信し印刷を行うプリンタシステムであって、
ホストPC側で無線通信による双方向通信が可能であるかどうかを判断する手段と、
可能である場合にはプリンタ装置に対して双方向通信が可能であることを送信する手段と、
プリンタ装置側では双方向通信可能であることを送信したホストPCの識別情報を登録する手段とを備えたことを特徴とするプリンタシステム。
A printer system that performs printing by transmitting print data from a host PC to a printer device by wireless communication,
Means for determining whether bidirectional communication by wireless communication is possible on the host PC side;
Means for transmitting that bi-directional communication is possible to the printer device if possible;
A printer system comprising: means for registering identification information of a host PC that has transmitted that bidirectional communication is possible on the printer device side.
前記プリンタ装置に接続したホストPCに対して、当該ホストPCに対する識別情報がプリンタ装置側に登録されているかどうかをデバイスID情報に付加することによって、ホストPC側に通知することを特徴とする請求項1に記載のプリンタシステム。   The host PC connected to the printer apparatus is notified to the host PC side by adding to the device ID information whether or not identification information for the host PC is registered on the printer apparatus side. Item 2. The printer system according to Item 1. 前記プリンタ装置に登録されている識別情報により双方向通信が可能であるホストPCからの接続であると判断された場合、プリンタ装置の状態情報を双方向通信により自動的にホストPCに対して送信することを特徴とする請求項1に記載のプリンタシステム。   When it is determined that the connection is from a host PC capable of bidirectional communication based on the identification information registered in the printer apparatus, the status information of the printer apparatus is automatically transmitted to the host PC by bidirectional communication. The printer system according to claim 1. 前記ホストPC側で無線通信による双方向通信が可能であると判断した場合でも、最初にプリンタ装置からデバイスID情報を受け取り、受け取ったデバイスID情報にプリンタ装置側に識別情報が登録されていることを確認した場合には双方向通信が可能であることを送信しないことを特徴とする請求項1に記載のプリンタシステム。   Even when it is determined that wireless communication is possible on the host PC side, device ID information is first received from the printer device, and identification information is registered on the printer device side in the received device ID information. 2. The printer system according to claim 1, wherein if it is confirmed, the fact that bidirectional communication is possible is not transmitted. 前記プリンタ装置に登録可能なホストPCの識別情報の最大個数を記録している場合に、登録が不可能であることを示すことをデバイスID情報に含めることを特徴とする請求項1に記載のプリンタシステム。   2. The device ID information includes indicating that registration is impossible when the maximum number of identification information of a host PC that can be registered in the printer apparatus is recorded. Printer system. 無線通信によりホストPCからプリンタ装置に印刷データを送信し印刷を行う印刷方法であって、
ホストPC側で無線通信による双方向通信が可能であるかどうかを判断する工程と、
可能である場合にはプリンタ装置に対して双方向通信が可能であることを送信する工程と、
プリンタ装置側では双方向通信可能であることを送信したホストPCの識別情報を登録する工程とを備えたことを特徴とする印刷方法。
A printing method for performing printing by transmitting print data from a host PC to a printer device by wireless communication,
Determining whether or not bidirectional communication by wireless communication is possible on the host PC side;
If possible, sending to the printer device that bi-directional communication is possible; and
And a step of registering identification information of the host PC that has transmitted that bi-directional communication is possible on the printer device side.
請求項6記載の印刷方法の各工程をコンピュータに実行させるためのプログラムを記録したコンピュータ読取可能な記録媒体。   A computer-readable recording medium recording a program for causing a computer to execute each step of the printing method according to claim 6. 請求項6記載の印刷方法の各工程をコンピュータに実行させるためのプログラム。   The program for making a computer perform each process of the printing method of Claim 6.
JP2004363377A 2004-11-26 2004-12-15 Printer system, printing method, host PC, information processing method, and program Expired - Fee Related JP4314187B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2004363377A JP4314187B2 (en) 2004-12-15 2004-12-15 Printer system, printing method, host PC, information processing method, and program
US11/282,770 US8064081B2 (en) 2004-11-26 2005-11-21 Print system and printing method for transmitting print data from a host device to an image forming apparatus by radio communication and performing printing
EP05257255A EP1679836A3 (en) 2004-11-26 2005-11-25 Print system and printing method using Bluetooth HCRP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004363377A JP4314187B2 (en) 2004-12-15 2004-12-15 Printer system, printing method, host PC, information processing method, and program

Publications (2)

Publication Number Publication Date
JP2006172120A true JP2006172120A (en) 2006-06-29
JP4314187B2 JP4314187B2 (en) 2009-08-12

Family

ID=36672814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004363377A Expired - Fee Related JP4314187B2 (en) 2004-11-26 2004-12-15 Printer system, printing method, host PC, information processing method, and program

Country Status (1)

Country Link
JP (1) JP4314187B2 (en)

Also Published As

Publication number Publication date
JP4314187B2 (en) 2009-08-12

Similar Documents

Publication Publication Date Title
EP2648461B1 (en) Wireless communication device, wireless communication system, method and computer readable medium to perform wireless relay communication
US8416432B2 (en) Method and apparatus for automatically establishing connection in wireless communication network and wireless communication network using the same
US8064081B2 (en) Print system and printing method for transmitting print data from a host device to an image forming apparatus by radio communication and performing printing
JP5962564B2 (en) Communication control program and communication device
JP5838988B2 (en) Communication program and communication device
US8446838B2 (en) Wireless communication device and computer program
US9204477B2 (en) Memory device and wireless communication control method of the same
JP6503968B2 (en) Communication device and computer program for communication device
US9274734B2 (en) Recording system, non-transitory storage medium storing instructions executable by mobile terminal, and image recording apparatus
CN106126455B (en) Memory system capable of controlling wireless communication function
JP4792251B2 (en) Network storage access terminal and remote data storage system using the same
CN100394377C (en) Print system and printing method
JP4227451B2 (en) Communication method for wireless communication device and wireless communication device
JP6769204B2 (en) Image forming device, program, and image forming system
US10560534B2 (en) Information processing apparatus, communication terminal, and communication system for enabling a disconnect of communication between the information processing apparatus and the communication terminal
JP2006054577A (en) Wireless network system, wireless communication apparatus, and connection setting method
JP6620450B2 (en) Information processing system, information processing apparatus, program, and communication method
JP4314187B2 (en) Printer system, printing method, host PC, information processing method, and program
JP2007079924A (en) Wireless printer
US8270005B2 (en) Wireless communication device, computer readable medium storing wireless communication program, wireless communication system, image formation device, and computer readable medium storing control program for image formation device
JP2022078092A (en) Information processing apparatus, method for controlling the same, and program
JP6844641B2 (en) Communication equipment and computer programs for communication equipment
JP2005218035A (en) Wireless network system
JP2009034868A (en) Communicating apparatus, printer and program
JP2005217656A (en) Communication apparatus and communication method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090217

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090403

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

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

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

Free format text: PAYMENT UNTIL: 20120522

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120522

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130522

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140522

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees