JP2004193733A - Method for establishing link between master unit and slave unit, printer, and handy terminal - Google Patents
Method for establishing link between master unit and slave unit, printer, and handy terminal Download PDFInfo
- Publication number
- JP2004193733A JP2004193733A JP2002356525A JP2002356525A JP2004193733A JP 2004193733 A JP2004193733 A JP 2004193733A JP 2002356525 A JP2002356525 A JP 2002356525A JP 2002356525 A JP2002356525 A JP 2002356525A JP 2004193733 A JP2004193733 A JP 2004193733A
- Authority
- JP
- Japan
- Prior art keywords
- address
- wireless communication
- link
- printer
- establishing
- 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
【0001】
【発明の属する技術分野】
本発明は、マスタ機器とスレーブ機器とのリンク確立方法、ハンディターミナル等のホスト機と対で用いられるプリンタ及びハンディターミナルに関する。
【0002】
【従来の技術】
近年、例えば宅配便の集配担当者等の便宜を図るために、ベルト等に取り付けて携帯可能な小型構造のポータブルプリンタが普及している。このようなポータブルプリンタでは、ハンディターミナル等のホスト機から送信される必要なデータを受信してラベル等の印刷物を発行するようにしている。この場合、ポータブルプリンタとホスト機とは、無線インタフェースにより接続される(例えば、特許文献1参照)。
【0003】
ところで、この種のポータブルプリンタはその用途からして無線通信に関して免許を逐一必要とするのは適当でないため、免許を必要としない微弱無線とするのが通常である。近年、このような免許を必要としない微弱無線として、Bluetooth(登録商標)という無線データ通信仕様が規格化されている。このBluetoothによれば、10m以内の近距離であれば、通信機器の間に障害物(例えば、隣の部屋など)があるような場合であっても通信が可能になっている。この点で、機器同士のポートを向かい合わせないと通信できず、ちょっとでも機器の位置がずれると通信が途絶えてしまう赤外線を利用したIrDA(Infrared Data Association)よりも優れたものになっている。
【0004】
また、Bluetoothの特徴としては、複数の機器に対して同報通信が行えるピコネットがある。Bluetoothのネットワークは通信範囲内の最初のデバイスが「マスタ」として機能し、その後からマスタへのリンクを確立したデバイスが「スレーブ」として参加するという形で構成される。マスタはデータ送受信の周波数のホッピングパターンを決定する権利を持ち、スレーブはマスタとリンクを確立することで他のスレーブとデータの送受信を行う。こうしてBluetoothデバイスで構成されるネットワークは「ピコネット」と呼ばれ、最大7台までのBluetoothデバイスが参加できる。
【0005】
したがって、このようなBluetoothによれば1対nでのデータ通信が可能になっているため、1対1で機器同士を接続したい場合には、「マスタ」となる機器の周囲にあるBluetooth対応機器を探し出し、この探索結果の中から接続したいBluetooth対応機器を選択して「スレーブ」とする、という手順を採るようにしている。
【0006】
【特許文献1】
特開平10−084077号公報
【0007】
【発明が解決しようとする課題】
ところが、宅配便の集配担当者等が携帯するポータブルプリンタにBluetoothデバイスを搭載した場合、本格的な実用化に向けて解決されねばならない課題が存在する。
【0008】
宅配便の集配担当者は、多数のポータブルプリンタの中から携帯するポータブルプリンタを選択する。そして、例えば、ハンディターミナル等のホスト機を「マスタ」として機能させ、選択したポータブルプリンタを「スレーブ」として機能させることになる。この場合、「マスタ」となるハンディターミナルの周囲にあるBluetooth対応機器であるポータブルプリンタを探し出し、この探索結果の中から接続したいポータブルプリンタを選択して「スレーブ」とする、という手順を採ることになるが、探索に10秒程度を要するため、探索時間の短縮化が望まれている。加えて、探索結果としてBluetooth対応機器であるポータブルプリンタが多数探索されてしまうため、実際に手にしたポータブルプリンタを多数のポータブルプリンタの中から見つけ出すのは容易ではなかった。
【0009】
本発明は、スレーブ機器とマスタ機器とのリンクを迅速に確立することを目的とする。
【0010】
【課題を解決するための手段】
本発明は、通信対象となるスレーブ機器を特定した後に当該スレーブ機器とのリンクを確立して無線通信を行う無線通信手段をそれぞれ有するマスタ機器とスレーブ機器とのリンク確立方法であって、リンク確立に先立ち、前記スレーブ機器の前記無線通信手段に割り当てられているデバイスアドレスを報知するアドレス報知ステップと、このアドレス報知ステップにより報知された前記スレーブ機器の前記無線通信手段に割り当てられているデバイスアドレスを前記マスタ機器に入力するアドレス入力ステップと、このアドレス入力ステップにより入力された前記デバイスアドレスを前記マスタ機器で記憶するアドレス記憶ステップと、このアドレス記憶ステップにより記憶した前記スレーブ機器の前記デバイスアドレスに基づき、当該デバイスアドレスが割り当てられている前記無線通信手段を有する前記スレーブ機器と前記マスタ機器とのリンクを確立するリンク確立ステップと、を含む。
【0011】
【発明の実施の形態】
本発明の第一の実施の形態を図1ないし図12に基づいて説明する。本実施の形態は、ホスト機としてのハンディターミナルとプリンタとしてのポータブルプリンタとによって構築されたプリントシステムへの適用例である。
【0012】
ここで、図1はプリントシステムAの構成を示す斜視図である。このプリントシステムAは、ポータブルプリンタ1とハンディターミナルHTとによって構築され、例えば、ラベル5b(図2参照)の印刷発行という物流の分野で利用される。
【0013】
まず、ポータブルプリンタ1について説明する。図2はポータブルプリンタ1をラベル排出側から示す外観斜視図、図3はポータブルプリンタ1をオペレータ装着側から示す外観斜視図、図4はポータブルプリンタ1の内部構造を示す水平断面図である。
【0014】
図2ないし図4に示すように、ポータブルプリンタ1のプリンタ本体1aは、一面が開放されたケース2と、このケース2の開放された面を開閉するカバー3とより構成されている。カバー3は、ケース2に設けられた支点軸4により回動自在に支持されている。そして、ケース2には、カバー3を閉じた状態で、印字媒体であってロール状に巻回された長尺状の記録紙5を転動自在に収納するホッパ6が形成されている。なお、本実施の形態においては、記録紙5として台紙5aに多数のラベル5bを等間隔で貼付したものを用いているが、他の記録紙を用いても良い。
【0015】
このようなケース2には、ホッパ6の底部からカバー3側に向けて延出する用紙ガイド7が設けられており、この用紙ガイド7のカバー3に近い部分には、回転自在のプラテン8と、このプラテン8の長手方向に沿うラベル剥離体9とが配設されている。
【0016】
図4に示すように、カバー3の内面(ホッパ6側)には、サーマルヘッド12を備えたヘッド支持体11が支軸11aを中心に回動自在に設けられている。このヘッド支持体11は板ばね13により一方向に付勢されており、サーマルヘッド12はカバー3を閉じた状態でプラテン8に当接することになる。すなわち、プラテン8とサーマルヘッド12とにより印字部14が形成されている。
【0017】
また、カバー3の自由端側の両側には、スプリング15の付勢力によりプラテン8に圧接されたピンチローラ16が回転自在に設けられている。さらに、カバー3には、サーマルヘッド12とピンチローラ16との間に配置されてラベル5bを排出させるラベル排出口17と、ホッパ6内の記録紙5の浮きを押える紙押え18とが形成されている。ケース2にはカバー3の自由端との間で台紙5aを排出させる台紙排出口19が形成されている。
【0018】
ケース2の上面には、バッテリ10(図4参照)からの電力供給を切断する旨を宣言する電源スイッチ20、ラベル5bに印字を行わせるフィードスイッチ21、蓋部22、赤外線を受光する受光窓23が設けられている。蓋部22は、詳細は後述するが、ケース2に設けられたバッテリ収納部30(図4参照)に対してバッテリ10を着脱する場合に開閉するものである。さらに、カバー3の両側には係止爪24がスライド自在に設けられている(図2参照)。これらの係止爪24は外側に向けて付勢されてケース2に係止され、カバー3を開放するときに係止爪24を矢印マークで示すように内方スライドさせてケース2との係止状態を解除する。
【0019】
加えて、ケース2の上面には、LED56が配設されている。本実施の形態のポータブルプリンタ1は、このLED56を点灯させたり点滅させることにより、ポータブルプリンタ1の動作状態をオペレータに対して報知することができるようになっている。
【0020】
さらに、図3に示すように、プリンタ本体1aのカバー3とは反対側の一面には、オペレータの腰のあたりに密着される弧面25が形成され、この弧面25にはオペレータの衣服に対して滑りを少なくするための滑り止め26と、この滑り止め26に対向してオペレータのベルトに引っ掛けられるベルト掛け27とが形成されている。
【0021】
このような構成により、バッテリ10がバッテリ収納部30へと正しく収納された場合には、バッテリ収納部30の端子とバッテリ10の端子とが接触して電気的に接続された状態となり、バッテリ10から電力供給を必要とするサーマルヘッド12等の各部へと電力が供給されることになる。
【0022】
次に、ポータブルプリンタ1の各部の制御系の接続について図5を参照しつつ説明する。ポータブルプリンタ1は、各部を集中的に制御するCPU(Central Processing Unit)41を備えており、このCPU41には、CPU41が実行するプログラム等の固定データが書き込まれているROM(Read Only Memory)42と、ワークデータ等の可変データを更新自在に書き込むRAM(Random Access Memory)43と、各種情報を登録するフラッシュメモリ44とがバスライン45を介して接続されている。そして、サーマルヘッド12を駆動するサーマルヘッドドライバ46、プラテン8が連結されたモータ47を駆動するモータドライバ48、各種センサ49が接続されたセンサ回路50、カバー3の開閉によりオン、オフするカバーオープンスイッチ51と電源スイッチ20とフィードスイッチ21とインタフェース切替スイッチ53とが接続されたスイッチ回路54、赤外線インタフェース55a及び無線インタフェース55b、LED56が接続された点灯制御回路57が、CPU41に接続されている。このように、図5に示す回路はプリンタ本体1aの内部に設けられた基板(図示せず)上に形成されている。なお、赤外線インタフェース55aは、前述した受光窓23の内方に配置されている。インタフェースは図ではI/Fと記す。
【0023】
ここで、無線通信手段である無線インタフェース55bについて説明する。本実施の形態の無線インタフェース55bは、Bluetooth(登録商標)である。このBluetoothによれば、10m以内の近距離であれば、通信機器の間に障害物(例えば、隣の部屋など)があるような場合であっても通信が可能になっている。また、Bluetoothの特徴としては、複数の機器に対して同報通信が行えるピコネットがある。Bluetoothのネットワークは通信範囲内の最初のデバイスが「マスタ」として機能し、その後からマスタへのリンクを確立したデバイスが「スレーブ」として参加するという形で構成される。マスタはデータ送受信の周波数のホッピングパターンを決定する権利を持ち、スレーブはマスタとリンクを確立することで他のスレーブとデータの送受信を行う。
【0024】
データ送受信の周波数のホッピングパターンは、機器固有のアドレスとクロックの値からプロトコルで規定される計算式によって算出される。Bluetooth搭載機器には、48bitのBluetoothデバイスアドレスと呼ばれるアドレスが与えられる。また、各Bluetooth搭載機器は、タイムスロットの半分の長さである312.5μsec毎に28bitのクロック値を出力するBluetoothクロックを持つ。この機器固有のBluetoothデバイスアドレスとクロック値を入力して規定された計算を行うことにより擬似乱数列を発生させて、他のBluetooth搭載機器と重なることのないホッピングパターンを得ることができる。
【0025】
したがって、通信を行う際には、マスタのBluetoothデバイスアドレスとクロック値を使用することによりホッピングパターンを算出し、周波数の同期を行うことになる。つまり、通信の開始段階でスレーブにマスタのBluetoothデバイスアドレスとクロック値を伝えてホッピングパターンの同期をとり、マスタとスレーブとのリンクを確立するのである。
【0026】
このようなポータブルプリンタ1は、記録紙5をセットする場合にカバー3を開放し、ロール状に巻回された記録紙5をプリンタ本体1aのホッパ6に収納し、カバー3が開放されている状態で記録紙5の先端をプラテン8及びラベル剥離体9を覆う位置まで引き出し、カバー3を閉塞する。これにより、図4に示すように、記録紙5の台紙5aの先端部分が、サーマルヘッド12とピンチローラ16とによりプラテン8上に圧接され、また、ラベル剥離体9により台紙5aの引き出し経路が鋭角に折曲され、ホッパ6の底面からの記録紙5の浮きが紙押え18により阻止される。記録紙5をセットしたプリンタ本体1aは、机上に置いて使用することも可能であるが、通常はオペレータの腰に装着した状態で使用する。そして、電源スイッチ20をオンにし、ハンディターミナルHT(図1参照)から印字データを入力して印字を行う。
【0027】
次に、ハンディターミナルHTについて説明する。図6はハンディターミナルHTを示す外観斜視図、図7は裏返しにしたハンディターミナルHTを示す外観斜視図である。図6または図7に示すように、本体ケース71の上面には、液晶ディスプレイ(LCD:Liquid Crystal Display)72と、ファンクションキーやテンキーを含むキーボード73とが順に設けられている。このキーボード73には、ここでは図示しないが、後述するコマンド送信キーも備えられている。また、本体ケース71の下面の先端部には、コード読取装置であるバーコード読取装置74(図8参照)を内蔵してバーコードを読み取るバーコード読取窓75が形成されている。ここで、バーコード読取装置74は、LED(Light EmittingDiode)アレイを光源とし、この光源によって照らされたバーコードをCCD(Charge Coupled Device )で受光して読み取るものである。また、本体ケース71の下面の略中央には、ここでは図示しないポータブルプリンタ1と各種データを通信するための赤外線インタフェース76を内蔵する赤外線通信部77が配設されている。赤外線インタフェース76はLEDと受光素子とで構成されていて、その表面にはLEDから発光される光のみを受け付けるフィルタが取り付けられている。また、本実施の形態のハンディターミナルHTは、無線通信手段である無線インタフェース78(図8参照)も備えている。この無線インタフェース78は、Bluetoothである。加えて、本体ケース71の側縁部の略中央には、バーコード読取装置74の駆動スイッチ79が設けられている。
【0028】
次に、ハンディターミナルHTの各部の制御系の接続について図8を参照しつつ説明する。ハンディターミナルHTは、各部を集中的に制御するCPU81を備えており、このCPU81には、CPU81が実行するプログラム等の固定データが書き込まれているROM82と、ワークデータ等の可変データを更新自在に書き込むRAM83とがバスライン84を介して接続されている。そして、液晶ディスプレイ72を駆動する表示コントローラ85、キーボード73からの信号を出力するキーボードコントローラ86、バーコード読取装置を駆動する読取コントローラ87、駆動スイッチ79とインタフェース切替スイッチ88とが接続されたスイッチ回路89、それぞれ接続手段である赤外線インタフェース76及び無線インタフェース78が、CPU81に接続されている。
【0029】
続いて、本実施の形態のプリントシステムAが備える特長的な機能について以下において詳細に説明する。なお、従来から行われている処理と同様の処理についてはその説明を省略する。ここでは、本実施の形態のプリントシステムAが備える特長的な機能を実現するBluetoothのネットワークにおけるリンク確立処理について、ポータブルプリンタ1のCPU41がROM42に格納された制御プログラムに従って実行する処理、及び、ハンディターミナルHTのCPU81がROM82に格納された制御プログラムに従って実行する処理について説明する。
【0030】
なお、本実施の形態のBluetoothのネットワークは、ハンディターミナルHTが「マスタ」として機能し、その後からハンディターミナルHTへのリンクを確立したポータブルプリンタ1が「スレーブ」として参加するという形で構成される。
【0031】
ここで、図9はポータブルプリンタ1のCPU41がROM42に格納された制御プログラムに従って実行する処理のうち、自己診断レポートの印字発行処理の流れを示すフローチャートである。Bluetoothのネットワークのリンク確立に先立ち、ポータブルプリンタ1側では、図9に示すように、フィードスイッチ21を押しながら電源スイッチ20を操作することにより自己診断モードになった場合に(ステップS1のY)、サーマルヘッド12やモータ47を駆動し、自己診断レポートをラベル5bに印字して発行する(ステップS2)。
【0032】
ここで、図10は発行された自己診断レポートRの一例を示す平面図である。図10に示すように、自己診断レポートRは、プリンタの設定や状態をユーザに知らせるためのものであって、本実施の形態においては、ポータブルプリンタ1の無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAもコードシンボル化されたバーコードBC及びキャラクタCで印字される。
【0033】
ここに、無線通信手段である無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを印字媒体である記録紙5のラベル5bに印字して発行することで、無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを報知するアドレス報知手段の機能が実行される。
【0034】
このようにして発行された自己診断レポートRに印字されているポータブルプリンタ1のBluetoothデバイスアドレスDAは、ハンディターミナルHTに入力されることで、「マスタ」として機能するハンディターミナルHTへのリンクの確立を行うデバイスのBluetoothデバイスアドレスとされる。すなわち、自己診断レポートを印字発行したポータブルプリンタ1が、「マスタ」であるハンディターミナルHTに対する「スレーブ」として機能することになる。
【0035】
ここで、図11はハンディターミナルHTのCPU81がROM82に格納された制御プログラムに従って実行する処理のうち、ハンディターミナルHTとポータブルプリンタ1とのリンクを確立するリンク確立処理の流れを示すフローチャートである。ハンディターミナルHT側では、図11に示すように、自己診断レポートRに印字されているポータブルプリンタ1のBluetoothデバイスアドレスDAの入力に待機する(ステップS11)。なお、BluetoothデバイスアドレスDAの入力は、バーコード読取装置74によって自己診断レポートRのバーコードBCを読み取ることによる入力、または、自己診断レポートRのキャラクタCに基づいてキーボード73のキー操作による入力の何れかによる。ここに、アドレス入力手段の機能が実行される。
【0036】
ポータブルプリンタ1のBluetoothデバイスアドレスDAの入力が有ったと判断すると(ステップS11のY)、入力されたポータブルプリンタ1のBluetoothデバイスアドレスDAをRAM83に記憶する(ステップS12)。ここに、アドレス記憶手段の機能が実行される。
【0037】
続いて、ステップS13に進み、ハンディターミナルHTとポータブルプリンタ1とのリンクを確立する。より具体的には、RAM83に記憶したBluetoothデバイスアドレスDAに基づき、ハンディターミナルHTのBluetoothデバイスアドレスとクロック値をポータブルプリンタ1に送信し、ホッピングパターンの同期をとることでハンディターミナルHTとポータブルプリンタ1とのリンクを確立する。ここに、リンク確立手段の機能が実行される。
【0038】
このように本実施の形態においては、リンク確立に先立ち、スレーブ機器であるポータブルプリンタ1の無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを無線インタフェース55bを用いずに報知させ、報知されたポータブルプリンタ1の無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAをマスタ機器であるハンディターミナルHTに入力して記憶した後、BluetoothデバイスアドレスDAに基づき、当該BluetoothデバイスアドレスDAが割り当てられている無線インタフェース55bを有するスレーブ機器であるポータブルプリンタ1とマスタ機器であるハンディターミナルHTとのリンクを確立する。これにより、運用時においては、マスタ機器であるハンディターミナルHTは探索処理を行わずに、所望のポータブルプリンタ1を直接呼び出すことができるので、スレーブ機器であるポータブルプリンタ1とマスタ機器であるハンディターミナルHTとのリンクを迅速に確立することができる。
【0039】
また、本実施の形態においては、BluetoothデバイスアドレスDAをコードシンボル化して印字媒体である記録紙5のラベル5bに印字して発行することで、BluetoothデバイスアドレスDAを誤入力することがないので、より迅速かつ確実にスレーブ機器であるポータブルプリンタ1とマスタ機器であるハンディターミナルHTとのリンクを確立することができる。
【0040】
なお、本実施の形態においては、Bluetoothのネットワークのリンク確立に先立ち、ポータブルプリンタ1側で自己診断レポートRを印字発行するようにしたが、この自己診断レポートRをリンク確立の度に発行せずに、図12に示すように、バーコードBC及びキャラクタCでラベル5bに印字されたBluetoothデバイスアドレスDAをポータブルプリンタ1に貼り付けておくようにしても良い。これにより、リンク確立の度に自己診断レポートRを印字する手間を省くことができる。なお、自己診断レポートRの際には、ポータブルプリンタ1の無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを逐次取得することになるので、修理などによってポータブルプリンタ1の無線インタフェース55bが交換されてBluetoothデバイスアドレスDAが変わった場合には、再度自己診断レポートRを印字し、ポータブルプリンタ1に貼り付けるようにすれば良い。
【0041】
ここに、無線通信手段である無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAをプリンタ本体1aに視認可能な態様で付すことで、無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを報知するアドレス報知手段が実現されている。
【0042】
なお、本実施の形態においては、BluetoothデバイスアドレスDAをコードシンボル化したものとしてバーコードBCを用いたが、これに限るものではなく、二次元コードを適用しても良い。また、キャラクタCをOCRコードとして用いても良い。但し、その場合、ハンディターミナルHTのコード読取装置は、それぞれのコードシンボルの読み取りに対応することは言うまでもない。
【0043】
次に、本発明の第二の実施の形態を図13に基づいて説明する。なお、本発明の第一の実施の形態において説明した部分と同一部分については同一符号を用い、説明も省略する。本実施の形態は、前述した第一の実施の形態とは、ハンディターミナルHTにおけるポータブルプリンタ1の無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAの取得方法が異なるものである。
【0044】
ここで、図13はハンディターミナルHTにおける処理の流れとポータブルプリンタ1における処理の流れとを示すフローチャートである。図13に示すように、Bluetoothのネットワークのリンク確立に先立ち、ハンディターミナルHT側では、キーボード73のコマンド送信キーを操作することにより、赤外線インタフェース76を介し、ポータブルプリンタ1に対してBluetoothデバイスアドレスの取得コマンドを送信する(ステップS21)。
【0045】
ポータブルプリンタ1側では、ハンディターミナルHTからのBluetoothデバイスアドレスの取得コマンドを受信すると(ステップS31のY)、赤外線インタフェース55aを介し、ハンディターミナルHTに対してポータブルプリンタ1の無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを送信する(ステップS32)。
【0046】
ここに、無線通信手段である無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを無線インタフェース55bとは異なる通信手段である赤外線インタフェース55aを使用してホスト機であるハンディターミナルHTに対して通知することで、無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを報知するアドレス報知手段が実現されている。
【0047】
ポータブルプリンタ1の無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを受信したハンディターミナルHTは(ステップS22のY)、受信したポータブルプリンタ1のBluetoothデバイスアドレスDAをRAM83に記憶する(ステップS23)。ここに、アドレス入力手段の機能及びアドレス記憶手段の機能が実行される。
【0048】
続いて、ハンディターミナルHTとポータブルプリンタ1とのリンクを確立する(ステップS24、ステップS33)。より具体的には、RAM83に記憶したBluetoothデバイスアドレスDAに基づき、ハンディターミナルHTのBluetoothデバイスアドレスとクロック値をハンディターミナルHTからポータブルプリンタ1に送信し、ホッピングパターンの同期をとることでハンディターミナルHTとポータブルプリンタ1とのリンクを確立する。ここに、リンク確立手段の機能が実行される。
【0049】
このように本実施の形態においては、無線通信手段である無線インタフェース55bに割り当てられているBluetoothデバイスアドレスDAを無線インタフェース55bとは異なる通信手段である赤外線インタフェース55aを使用してホスト機であるハンディターミナルHTに対して通知することにより、BluetoothデバイスアドレスDAを誤入力することがないので、より迅速かつ確実にスレーブ機器であるポータブルプリンタ1とマスタ機器であるハンディターミナルHTとのリンクを確立することができる。
【0050】
なお、本実施の形態においては、赤外線インタフェースを用いてBluetoothデバイスアドレスの取得コマンドやBluetoothデバイスアドレスを通信するようにしたが、これに限るものではなく、Bluetooth以外の通信手段であれば良い。また、無線通信に限るものではなく、有線通信であっても良い。
【0051】
なお、各実施の形態においては、「マスタ」となるハンディターミナルHTの周囲にあるBluetooth対応機器であるポータブルプリンタ1を探し出し、この探索結果の中から接続したいポータブルプリンタ1を選択して「スレーブ」とする、という手順を省略する運用を基本としているが、ポータブルプリンタ1においてこのような探索(すなわち、Bluetoothを備える他の機器からの通信対象となる機器を特定するためのアクセス)に対する応答を行わないような設定にしても良い。これにより、本来接続したいハンディターミナルHT以外の機器に接続されることを防止することができる。また、ポータブルプリンタ1は、探索監視を行わずに呼び出し監視のみを行うことになるため、結果として、呼び出しコマンドがハンディターミナルHTから発行されてからハンディターミナルHTとポータブルプリンタ1とのリンクが確立されるまでの時間を短縮することができる。
【0052】
【発明の効果】
本発明によれば、マスタ機器は探索処理を行わずに、所望のスレーブ機器を直接呼び出すことができるので、スレーブ機器とマスタ機器とのリンクを迅速に確立することができる。
【図面の簡単な説明】
【図1】本発明の第一の実施の形態のプリントシステムの構成を示す斜視図である。
【図2】ポータブルプリンタをラベル排出側から示す外観斜視図である。
【図3】ポータブルプリンタをオペレータ装着側から示す外観斜視図である。
【図4】ポータブルプリンタの内部構造を示す水平断面図である。
【図5】ポータブルプリンタの各部の制御系の接続を示すブロック図である。
【図6】ハンディターミナルを示す外観斜視図である。
【図7】裏返しにしたハンディターミナルを示す外観斜視図である。
【図8】ハンディターミナルの各部の制御系の接続を示すブロック図である。
【図9】ポータブルプリンタの自己診断レポートの印字発行処理の流れを示すフローチャートである。
【図10】発行された自己診断レポートの一例を示す平面図である。
【図11】ハンディターミナルのリンク確立処理の流れを示すフローチャートである。
【図12】印字されたBluetoothデバイスアドレスをポータブルプリンタに貼り付けた状態を示す外観斜視図である。
【図13】本発明の第二の実施の形態のハンディターミナルにおける処理の流れとポータブルプリンタにおける処理の流れとを示すフローチャートである。
【符号の説明】
1…プリンタ,スレーブ機器、5…印字媒体、55a…無線通信手段とは異なる通信手段、55b…無線通信手段、78…無線通信手段、HT…ハンディターミナル,マスタ機器[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a method for establishing a link between a master device and a slave device, a printer used in pairs with a host device such as a handy terminal, and a handy terminal.
[0002]
[Prior art]
2. Description of the Related Art In recent years, portable printers with a small structure that can be attached to a belt or the like and are portable have been widely used, for example, for the convenience of a person in charge of collection and delivery of home delivery. In such a portable printer, necessary data transmitted from a host device such as a handy terminal is received and printed matter such as a label is issued. In this case, the portable printer and the host machine are connected by a wireless interface (for example, see Patent Document 1).
[0003]
By the way, it is not appropriate for this kind of portable printer to require a license for wireless communication one by one in view of its application, and therefore, it is usual to use a weak radio which does not require a license. In recent years, a wireless data communication specification called Bluetooth (registered trademark) has been standardized as a weak radio that does not require such a license. According to this Bluetooth, if the distance is within 10 m, communication is possible even when there is an obstacle (for example, an adjacent room) between the communication devices. In this regard, communication is not possible unless the ports of the devices face each other, and even if the position of the device is slightly displaced, communication is interrupted. IrDA (Infrared Data Association) using infrared rays is superior to this.
[0004]
Also, as a feature of Bluetooth, there is a piconet capable of broadcasting to a plurality of devices. A Bluetooth network is configured in such a way that the first device in the communication range functions as a “master” and then the device that has established a link to the master participates as a “slave”. The master has the right to determine the hopping pattern of the data transmission / reception frequency, and the slave transmits / receives data to / from another slave by establishing a link with the master. A network composed of Bluetooth devices is called a "piconet", and up to seven Bluetooth devices can participate.
[0005]
Therefore, according to such Bluetooth, one-to-n data communication is possible. Therefore, when one-to-one connection between devices is desired, a Bluetooth-compatible device located around the “master” device. Is searched, and a Bluetooth-compatible device to be connected is selected from the search results and is set as a “slave”.
[0006]
[Patent Document 1]
JP-A-10-084077
[0007]
[Problems to be solved by the invention]
However, when a Bluetooth device is mounted on a portable printer carried by a person in charge of home delivery and collection, there is a problem that must be solved for full-scale practical use.
[0008]
The courier collection / delivery staff selects a portable printer to carry from among a large number of portable printers. Then, for example, a host device such as a handy terminal functions as a “master”, and the selected portable printer functions as a “slave”. In this case, a procedure of searching for a portable printer that is a Bluetooth-compatible device around the handy terminal to be the “master”, selecting a portable printer to be connected from the search results, and setting it as the “slave” is adopted. However, since the search takes about 10 seconds, it is desired to reduce the search time. In addition, since a large number of portable printers that are Bluetooth-compatible devices are searched as a search result, it is not easy to find a portable printer actually obtained from a large number of portable printers.
[0009]
An object of the present invention is to quickly establish a link between a slave device and a master device.
[0010]
[Means for Solving the Problems]
The present invention relates to a method for establishing a link between a master device and a slave device each having a wireless communication unit for performing wireless communication by establishing a link with the slave device after specifying a slave device to be communicated. Prior to, an address notification step of notifying a device address assigned to the wireless communication means of the slave device, and a device address assigned to the wireless communication means of the slave device notified by the address notification step An address inputting step for inputting to the master device, an address storing step for storing the device address input in the address inputting step in the master device, and a device address of the slave device stored in the address storing step. , Including a link establishing step of establishing a link with the slave device and the master device having the wireless communication means chair addresses are assigned, the.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
A first embodiment of the present invention will be described with reference to FIGS. The present embodiment is an example of application to a print system constructed by a handy terminal as a host machine and a portable printer as a printer.
[0012]
Here, FIG. 1 is a perspective view showing the configuration of the print system A. The print system A is constructed by the
[0013]
First, the
[0014]
As shown in FIGS. 2 to 4, the printer main body 1a of the
[0015]
The
[0016]
As shown in FIG. 4, a
[0017]
A
[0018]
On the upper surface of the
[0019]
In addition, an
[0020]
Further, as shown in FIG. 3, an
[0021]
With such a configuration, when the
[0022]
Next, connection of the control system of each unit of the
[0023]
Here, the
[0024]
The hopping pattern of the data transmission / reception frequency is calculated from a device-specific address and a clock value by a calculation formula defined by a protocol. The Bluetooth-equipped device is given an address called a 48-bit Bluetooth device address. Each Bluetooth-equipped device has a Bluetooth clock that outputs a 28-bit clock value every 312.5 μsec, which is half the length of a time slot. By inputting this device-specific Bluetooth device address and clock value and performing a prescribed calculation, a pseudo-random number sequence is generated, and a hopping pattern that does not overlap with other Bluetooth-equipped devices can be obtained.
[0025]
Therefore, when performing communication, the hopping pattern is calculated by using the master Bluetooth device address and the clock value, and the frequency is synchronized. That is, at the start of communication, the Bluetooth device address and the clock value of the master are transmitted to the slave to synchronize the hopping patterns, and the link between the master and the slave is established.
[0026]
In such a
[0027]
Next, the handy terminal HT will be described. FIG. 6 is an external perspective view showing the handy terminal HT, and FIG. 7 is an external perspective view showing the handy terminal HT turned upside down. As shown in FIG. 6 or 7, a liquid crystal display (LCD: Liquid Crystal Display) 72 and a
[0028]
Next, connection of the control system of each part of the handy terminal HT will be described with reference to FIG. The handy terminal HT includes a
[0029]
Next, characteristic functions of the print system A according to the present embodiment will be described in detail below. The description of the same processing as that performed conventionally is omitted. Here, a process for the
[0030]
Note that the Bluetooth network according to the present embodiment is configured in such a manner that the handy terminal HT functions as a “master”, and thereafter, the
[0031]
Here, FIG. 9 is a flowchart showing a flow of a self-diagnosis report print issuance process among the processes executed by the
[0032]
Here, FIG. 10 is a plan view showing an example of the issued self-diagnosis report R. As shown in FIG. 10, the self-diagnosis report R is for notifying the user of the settings and status of the printer, and in the present embodiment, the Bluetooth device assigned to the
[0033]
Here, the Bluetooth device address DA assigned to the
[0034]
The Bluetooth device address DA of the
[0035]
Here, FIG. 11 is a flowchart showing a flow of a link establishment process for establishing a link between the handy terminal HT and the
[0036]
When it is determined that the Bluetooth device address DA of the
[0037]
Then, the process proceeds to step S13 to establish a link between the handy terminal HT and the
[0038]
As described above, in the present embodiment, prior to link establishment, the Bluetooth device address DA assigned to the
[0039]
Further, in the present embodiment, the Bluetooth device address DA is converted into a code symbol and printed on the
[0040]
In the present embodiment, the self-diagnosis report R is printed and issued by the
[0041]
Here, the Bluetooth device address DA assigned to the
[0042]
In the present embodiment, the barcode BC is used as a code symbol of the Bluetooth device address DA. However, the present invention is not limited to this, and a two-dimensional code may be applied. Further, the character C may be used as the OCR code. However, in this case, it goes without saying that the code reading device of the handy terminal HT corresponds to reading of each code symbol.
[0043]
Next, a second embodiment of the present invention will be described with reference to FIG. The same parts as those described in the first embodiment of the present invention are denoted by the same reference numerals, and description thereof will be omitted. This embodiment is different from the above-described first embodiment in the method of acquiring the Bluetooth device address DA assigned to the
[0044]
Here, FIG. 13 is a flowchart showing a processing flow in the handy terminal HT and a processing flow in the
[0045]
When the
[0046]
Here, the Bluetooth device address DA assigned to the
[0047]
Upon receiving the Bluetooth device address DA assigned to the
[0048]
Subsequently, a link between the handy terminal HT and the
[0049]
As described above, in the present embodiment, the Bluetooth device address DA assigned to the
[0050]
In the present embodiment, a command for acquiring a Bluetooth device address and a Bluetooth device address are communicated using the infrared interface. However, the present invention is not limited to this, and any communication means other than Bluetooth may be used. Further, the present invention is not limited to wireless communication, but may be wired communication.
[0051]
In each of the embodiments, the
[0052]
【The invention's effect】
According to the present invention, since the master device can directly call a desired slave device without performing the search process, a link between the slave device and the master device can be quickly established.
[Brief description of the drawings]
FIG. 1 is a perspective view illustrating a configuration of a print system according to a first embodiment of the present invention.
FIG. 2 is an external perspective view showing the portable printer from a label discharging side.
FIG. 3 is an external perspective view showing the portable printer as viewed from an operator mounting side.
FIG. 4 is a horizontal sectional view showing the internal structure of the portable printer.
FIG. 5 is a block diagram illustrating connection of control systems of various units of the portable printer.
FIG. 6 is an external perspective view showing a handy terminal.
FIG. 7 is an external perspective view showing the handy terminal turned upside down.
FIG. 8 is a block diagram showing connection of a control system of each unit of the handy terminal.
FIG. 9 is a flowchart illustrating a flow of a self-diagnosis report print issuing process of the portable printer.
FIG. 10 is a plan view showing an example of an issued self-diagnosis report.
FIG. 11 is a flowchart showing a flow of a link establishment process of the handy terminal.
FIG. 12 is an external perspective view showing a state in which a printed Bluetooth device address is attached to a portable printer.
FIG. 13 is a flowchart showing a processing flow in the handy terminal and a processing flow in the portable printer according to the second embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF
Claims (6)
リンク確立に先立ち、前記スレーブ機器の前記無線通信手段に割り当てられているデバイスアドレスを報知するアドレス報知ステップと、
このアドレス報知ステップにより報知された前記スレーブ機器の前記無線通信手段に割り当てられているデバイスアドレスを前記マスタ機器に入力するアドレス入力ステップと、
このアドレス入力ステップにより入力された前記デバイスアドレスを前記マスタ機器で記憶するアドレス記憶ステップと、
このアドレス記憶ステップにより記憶した前記スレーブ機器の前記デバイスアドレスに基づき、当該デバイスアドレスが割り当てられている前記無線通信手段を有する前記スレーブ機器と前記マスタ機器とのリンクを確立するリンク確立ステップと、
を含むことを特徴とするマスタ機器とスレーブ機器とのリンク確立方法。A method for establishing a link between a master device and a slave device each having a wireless communication unit that performs wireless communication by establishing a link with the slave device after specifying a slave device to be communicated,
Prior to link establishment, an address notification step of notifying a device address assigned to the wireless communication unit of the slave device,
An address inputting step of inputting, to the master device, a device address assigned to the wireless communication means of the slave device notified by the address notifying step,
An address storage step of storing the device address input by the address input step in the master device;
A link establishing step of establishing a link between the master device and the slave device having the wireless communication unit to which the device address is assigned, based on the device address of the slave device stored in the address storing step;
A method for establishing a link between a master device and a slave device.
リンク確立に先立ち、前記無線通信手段に割り当てられているデバイスアドレスを報知するアドレス報知手段を備えることを特徴とするプリンタ。It has wireless communication means for establishing a link with the equipment after specifying the equipment to be communicated and performing wireless communication, receiving data transmitted from the host machine via the wireless communication means and printing it on a print medium. For printers that print and issue,
A printer comprising an address notifying unit for notifying a device address assigned to the wireless communication unit before establishing a link.
前記プリンタが備えるアドレス報知手段により報知された当該プリンタの無線通信手段に割り当てられているデバイスアドレスを入力するアドレス入力手段と、
このアドレス入力手段により入力された前記デバイスアドレスを記憶するアドレス記憶手段と、
このアドレス記憶手段により記憶した前記デバイスアドレスに基づき、当該デバイスアドレスが割り当てられている前記無線通信手段を有する前記プリンタとのリンクを確立するリンク確立手段と、
を備えることを特徴とするハンディターミナル。A handy terminal that is a host machine for the printer according to any one of claims 2 to 5, further comprising a wireless communication unit that establishes a link with the device after the device to be communicated is identified and performs wireless communication.
Address input means for inputting a device address assigned to the wireless communication means of the printer notified by the address notifying means provided in the printer,
Address storage means for storing the device address input by the address input means,
Link establishment means for establishing a link with the printer having the wireless communication means to which the device address is assigned, based on the device address stored by the address storage means;
A handy terminal comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002356525A JP2004193733A (en) | 2002-12-09 | 2002-12-09 | Method for establishing link between master unit and slave unit, printer, and handy terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002356525A JP2004193733A (en) | 2002-12-09 | 2002-12-09 | Method for establishing link between master unit and slave unit, printer, and handy terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004193733A true JP2004193733A (en) | 2004-07-08 |
Family
ID=32756844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002356525A Pending JP2004193733A (en) | 2002-12-09 | 2002-12-09 | Method for establishing link between master unit and slave unit, printer, and handy terminal |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004193733A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010541307A (en) * | 2007-09-14 | 2010-12-24 | ソニー エリクソン モバイル コミュニケーションズ, エービー | Automatic reconnection of previously lost connections in frequency hopping communication systems |
JP2011138285A (en) * | 2009-12-28 | 2011-07-14 | Teraoka Seiko Co Ltd | Merchandise sales processing system and repeater system for merchandise sales processing system |
-
2002
- 2002-12-09 JP JP2002356525A patent/JP2004193733A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010541307A (en) * | 2007-09-14 | 2010-12-24 | ソニー エリクソン モバイル コミュニケーションズ, エービー | Automatic reconnection of previously lost connections in frequency hopping communication systems |
JP2011138285A (en) * | 2009-12-28 | 2011-07-14 | Teraoka Seiko Co Ltd | Merchandise sales processing system and repeater system for merchandise sales processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6467688B1 (en) | Sheet fed printer for a hand held terminal | |
JP5347536B2 (en) | Information processing device | |
WO2006100870A1 (en) | Tape cassette and tape printer | |
US20200201583A1 (en) | Image processing system and portable information processing apparatus | |
CN106210385A (en) | Image processing system and the method for setting device | |
JP2002305521A (en) | Device compatible with wireless communication, information terminal compatible with wireless communication, and communication control program | |
JP6672869B2 (en) | PRINTING APPARATUS AND CONTROL METHOD OF PRINTING APPARATUS | |
US5548417A (en) | Facsimile apparatus including a supporting frame member and image holding member and image holding member formed as a detachable unit | |
JP2004193733A (en) | Method for establishing link between master unit and slave unit, printer, and handy terminal | |
EP3680803B1 (en) | Data storage device and data storage method | |
KR100729651B1 (en) | Pager with built-in printer | |
JP2019059111A (en) | Printer | |
JP2005215958A (en) | Radio tag communication device | |
JPH10209924A (en) | Printer | |
JP3720652B2 (en) | Download method and portable printer used in this download method | |
JPH11277853A (en) | Portable printer | |
JP2001315403A (en) | Portable printer | |
JP2024044354A (en) | Electronics | |
WO2005073900A1 (en) | Radio tag communication apparatus and stamp producing apparatus | |
US20200285435A1 (en) | Printer and printer search system | |
US20210144267A1 (en) | Image forming apparatus capable of wireless communication with portable terminal | |
JP2017144669A (en) | Printing device and method for controlling printing device | |
JP3803247B2 (en) | Portable printer | |
JP2003025682A (en) | Printer | |
JP2922658B2 (en) | Electronics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050113 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050118 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050517 |