JP2017073015A - Pos system and printer setting method thereof - Google Patents

Pos system and printer setting method thereof Download PDF

Info

Publication number
JP2017073015A
JP2017073015A JP2015199982A JP2015199982A JP2017073015A JP 2017073015 A JP2017073015 A JP 2017073015A JP 2015199982 A JP2015199982 A JP 2015199982A JP 2015199982 A JP2015199982 A JP 2015199982A JP 2017073015 A JP2017073015 A JP 2017073015A
Authority
JP
Japan
Prior art keywords
printer
network
communication
name
communication adapter
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
Application number
JP2015199982A
Other languages
Japanese (ja)
Inventor
高章 谷口
Takaaki Taniguchi
高章 谷口
智史 鈴木
Tomohito Suzuki
智史 鈴木
洋幸 長澤
Hiroyuki Nagasawa
洋幸 長澤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2015199982A priority Critical patent/JP2017073015A/en
Publication of JP2017073015A publication Critical patent/JP2017073015A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a POS system configured to prevent increase in network traffic, in establishing a communication again between a specific printer on a network and a host device.SOLUTION: A POS system 1 includes a POS server 2, a network 5, and a plurality of printers 4. The network 5 includes a first network 11 and a second network 12. The POS server 2 includes a first communication adapter 15 connected to the first network 11, and a second communication adapter 16 connected to the second network 12. The POS server 2 includes: a name notification instruction transmission unit 35 which broadcasts a name notification instruction to the network 5; and a printer name acquisition unit 36 which stores a printer name received via the first communication adapter 15 in association with the first communication adapter 15, and stores a printer name received via the second communication adapter 16 in association with the second communication adapter 16.SELECTED DRAWING: Figure 2

Description

本発明は、ホスト装置と複数のプリンターとがネットワークを介して接続されたPOSシステムおよびPOSシステムの制御方法に関する。   The present invention relates to a POS system in which a host device and a plurality of printers are connected via a network, and a control method for the POS system.

ホスト装置と情報機器がネットワークを介して接続されたネットワークシステムは特許文献1に記載されている。同文献では、ホスト装置は第1通信アダプターおよび第2通信アダプターを介してネットワークに接続されている。   A network system in which a host device and an information device are connected via a network is described in Patent Document 1. In this document, the host device is connected to a network via a first communication adapter and a second communication adapter.

特開2005−332085号公報JP 2005-332085 A

POSシステムの中には、POSサーバーと、複数のPOS端末と、複数のプリンターがネットワークを介して接続されているものがある。このようなPOSシステムでは、顧客の購入した商品などの会計情報が各POS端末に入力される。POS端末は入力された会計情報を、ネットワークを介してPOSサーバーに送信する。POSサーバーはPOS端末からの会計情報に基づいて決済処理を行う。また、POSサーバーは、決済処理が終了するとレシートを発行するための印刷データを生成する。そして、POSサーバーは、生成した印刷データを、POS端末と同じレジカウンターに設置されたプリンターにネットワークを介して送信して、当該プリンターからレシートを発行する。POSサーバーは複数の通信アダプターを搭載しており、各通信アダプターを介してネットワークに接続されている。   Some POS systems include a POS server, a plurality of POS terminals, and a plurality of printers connected via a network. In such a POS system, accounting information such as merchandise purchased by a customer is input to each POS terminal. The POS terminal transmits the input accounting information to the POS server via the network. The POS server performs settlement processing based on the accounting information from the POS terminal. Further, the POS server generates print data for issuing a receipt when the settlement process is completed. Then, the POS server transmits the generated print data to a printer installed at the same register counter as the POS terminal via the network, and issues a receipt from the printer. The POS server is equipped with a plurality of communication adapters, and is connected to the network via each communication adapter.

ここで、ネットワーク上の各機器のアドレスは動的に割り当てられている。従って、誤操作などによってプリンターの電源が切断され、その後、再び電源が投入された場合には、電源が再投入されたプリンターのネットワーク上のアドレスが変化し、POSサーバーと電源が再投入されたプリンターとの間で通信ができないことがある。   Here, the address of each device on the network is dynamically assigned. Therefore, when the printer is turned off due to an erroneous operation, and then turned on again, the network address of the printer that is turned on again changes, and the POS server and the printer that is turned on again. May not be able to communicate with.

このような場合に、POSサーバーが通信不能となったプリンターからレシートを発行するためには、電源が再投入されたプリンターをネットワーク上で検索して、当該プリンターとの間で通信を再確立しなければならない。すなわち、POSサーバーは、ネットワークに対して各プリンターにプリンター名を通知させる名前通知命令をブロードキャストして各プリンターのプリンター名を取得して、通信不能となったプリンターがネットワークに接続されていることを確認しなければならない。また、POSサーバーは、通信不能となったプリンターのプリンター名を送信したプリンターのネットワーク上のアドレスを取得するなどして、POSサーバーとプリンターとの間の通信設定を行わなければならない。   In such a case, in order to issue a receipt from a printer whose POS server has become unable to communicate, search the network for a printer that has been turned on again, and re-establish communication with the printer. There must be. In other words, the POS server broadcasts a name notification command for notifying each printer of the printer name to the network, acquires the printer name of each printer, and confirms that the printer that has become unable to communicate is connected to the network. Must be confirmed. In addition, the POS server must perform communication settings between the POS server and the printer, for example, by acquiring an address on the network of the printer that has transmitted the printer name of the printer that has become unable to communicate.

しかし、POSサーバーと1台のプリンターとの接続を行うために、ネットワークの全体に対してプリンター名を通知させる名前通知命令をブロードキャストして、各プリンターからプリンター名を通知させるのでは、ネットワークトラフィックが増大してしまい、ネットワーク帯域を有効に利用できなくなるという問題がある。   However, in order to connect the POS server to a single printer, a name notification command for notifying the printer name to the entire network is broadcast and the printer name is notified from each printer. There is a problem that the network bandwidth cannot be effectively used due to the increase.

本発明の課題は、ネットワーク上の特定のプリンターとホスト装置との間で通信を再確立する際に、ネットワークトラフィックの増大を抑制できるPOSシステムを提供することにある。   An object of the present invention is to provide a POS system capable of suppressing an increase in network traffic when reestablishing communication between a specific printer on a network and a host device.

上記の課題を解決するために、本発明のPOSシステムは、ホスト装置と、第1ネットワークと第2ネットワークとを含むネットワークを介して前記ホスト装置に接続された複数のプリンターと、を有し、前記ホスト装置は、前記第1ネットワークに接続された第1通信アダプターと、前記第2ネットワークに接続された第2通信アダプターと、記憶部と、前記第1通信アダプターおよび前記第2通信アダプターを介して前記ネットワークにプリンター名を通知させる名前通知命令をブロードキャストする名前通知命令送信部と、前記第1通信アダプターを介して通知されたプリンター名と当該第1通信アダプターを特定する第1情報とを対応付けて前記記憶部に記憶するとともに、前記第2通信アダプターを介して通知されたプリンター名と当該第2通信アダプターを特定する第2情報とを対応付けて前記記憶部に記憶するプリンター名取得部と、前記プリンター名取得部が取得したプリンター名に基づいて、前記ネットワークに接続されている各プリンターとの通信を確立する通信確立部と、を備えることを特徴とする。   In order to solve the above problems, a POS system of the present invention includes a host device and a plurality of printers connected to the host device via a network including a first network and a second network, The host device includes a first communication adapter connected to the first network, a second communication adapter connected to the second network, a storage unit, the first communication adapter, and the second communication adapter. A name notification command transmission unit that broadcasts a name notification command for notifying the network of the printer name, and a printer name notified through the first communication adapter and first information for identifying the first communication adapter And the name of the printer notified through the second communication adapter. A printer name acquisition unit that associates and stores the second information that identifies the second communication adapter in the storage unit, and each printer connected to the network based on the printer name acquired by the printer name acquisition unit A communication establishment unit for establishing communication with the printer.

本発明によれば、ホスト装置は、ネットワークに接続されたプリンターのプリンター名を通信アダプターの情報と関連付けて記憶保持する。従って、ホスト装置は、ネットワークに接続された各プリンターが、ネットワークを構成する第1ネットワークおよび第2ネットワークのうちのいずれに接続されているかを把握できる。よって、例えば、通信が一旦確立された後に通信不能となっているプリンターがネットワークに接続されていることを検出する場合などに、ホスト装置は検出対象のプリンターのプリンター名に対応付けられた通信アダプターを介して第1ネットワークおよび第2ネットワークの一方のみに名前通知命令をブロードキャストすればよい。よって、ネットワーク全体に名前通知命令をブロードキャストしてプリンターが接続されていることを検出する場合と比較して、ネットワークトラフィックの増大を抑制できる。これにより、ネットワーク帯域の有効活用が可能となる。   According to the present invention, the host device stores and holds the printer name of the printer connected to the network in association with the information of the communication adapter. Therefore, the host device can grasp which printer connected to the network is connected to which of the first network and the second network constituting the network. Therefore, for example, when it is detected that a printer that cannot communicate after communication is established is connected to the network, the host device uses a communication adapter associated with the printer name of the printer to be detected. It is only necessary to broadcast the name notification command to only one of the first network and the second network via the network. Therefore, an increase in network traffic can be suppressed as compared with a case where a name notification command is broadcast to the entire network to detect that a printer is connected. Thereby, the network bandwidth can be effectively used.

本発明において、前記ホスト装置は、前記ネットワークに接続された特定のプリンターとの通信が確立されているか否かを確認する通信確認部と、前記特定のプリンターの通信が確立されていないときに前記記憶部を参照し、前記特定のプリンターの前記プリンター名と前記第1情報が対応付けられている場合には前記第1通信アダプターを介して前記第1ネットワークに前記名前通知命令をブロードキャストし、前記特定のプリンターの前記プリンター名に前記第2情報が対応付けられている場合には前記第2通信アダプターを介して前記第2ネットワークに前記名前通知命令をブロードキャストし、前記名前通知命令に対する返信によって前記特定のプリンターが前記ネットワークに接続されていることを検出するプリンター検索部と、前記特定のプリンターの接続が検出されると、前記特定のプリンターのプリンター名に基づいて当該特定のプリンターとの通信を再確立する通信再確立部と、を備えることを特徴とする。このようにすれば、ネットワークのトラフィックの増大を抑制しながら、特定のプリンターがネットワークに接続されていることを検出できる。   In the present invention, the host device is configured to check whether communication with a specific printer connected to the network has been established, and when communication with the specific printer has not been established, Refer to the storage unit, and if the printer name of the specific printer and the first information are associated with each other, broadcast the name notification command to the first network via the first communication adapter, When the second information is associated with the printer name of a specific printer, the name notification command is broadcast to the second network via the second communication adapter, and the response to the name notification command returns the name notification command. A printer search unit for detecting that a specific printer is connected to the network; When the serial connection of a particular printer is detected, characterized in that it comprises a communication re-establishment unit configured to re-establish communication with the specific printer based on the printer name of the specific printer. In this way, it is possible to detect that a specific printer is connected to the network while suppressing an increase in network traffic.

本発明において、前記第1情報は、前記第1通信アダプターのMACアドレスであり、前記第2情報は、前記第2通信アダプターのMACアドレスであることが望ましい。このようにすれば、第1情報および第2情報により各通信アダプターを特定できる。   In the present invention, it is preferable that the first information is a MAC address of the first communication adapter, and the second information is a MAC address of the second communication adapter. If it does in this way, each communication adapter can be specified by the 1st information and the 2nd information.

次に、本発明は、ホスト装置と、第1ネットワークと第2ネットワークとを含むネットワークを介して前記ホスト装置に接続された複数のプリンターと、を有し、前記ホスト装置は、前記第1ネットワークに接続された第1通信アダプターと、前記第2ネットワークに接続された第2通信アダプターと、を備えるPOSシステムのプリンター接続方法において、前記ホスト装置では、前記第1通信アダプターおよび前記第2通信アダプターを介して前記ネットワークにプリンター名を通知させる名前通知命令をブロードキャストし、前記第1通信アダプターを介して通知されたプリンター名と当該第1通信アダプターを特定する第1情報とを対応付けて記憶保持するとともに、前記第2通信アダプターを介して通知されたプリンター名と当該第2通信アダプターを特定する第2情報とを対応付けて記憶保持し、取得したプリンター名に基づいて、前記ネットワークに接続されている各プリンターとの通信を確立することを特徴とする。   Next, the present invention includes a host device and a plurality of printers connected to the host device via a network including a first network and a second network, and the host device includes the first network. In the printer connection method of the POS system, comprising: a first communication adapter connected to the second network; and a second communication adapter connected to the second network. In the host device, the first communication adapter and the second communication adapter Broadcasts a name notification command for notifying the network of the printer name via the network, and stores and holds the printer name notified via the first communication adapter and the first information identifying the first communication adapter in association with each other And the name of the printer notified via the second communication adapter 2 communications adapter in association with the second information to identify and store data based on the obtained printer name, and establishes a communication with each printer connected to the network.

本発明によれば、ホスト装置は、ネットワークに接続されたプリンターのプリンター名を通信アダプターの情報と関連付けて記憶保持する。従って、ホスト装置は、ネットワークに接続された各プリンターが、ネットワークを構成する第1ネットワークおよび第2ネットワークのうちのいずれに接続されているかを把握できる。よって、例えば、通信が一旦確立された後に通信不能となっているプリンターがネットワークに接続されていることを検出する場合などに、ホスト装置は検出対象のプリンターのプリンター名に対応付けられた通信アダプターを介して第1ネットワークおよび第2ネットワークの一方のみに名前通知命令をブロードキャストすればよい。よって、ネットワーク全体に名前通知命令をブロードキャストしてプリンターが接続されていることを検出する場合と比較して、ネットワークトラフィックの増大を抑制できる。これにより、ネットワーク帯域の有効活用が可能となる。   According to the present invention, the host device stores and holds the printer name of the printer connected to the network in association with the information of the communication adapter. Therefore, the host device can grasp which printer connected to the network is connected to which of the first network and the second network constituting the network. Therefore, for example, when it is detected that a printer that cannot communicate after communication is established is connected to the network, the host device uses a communication adapter associated with the printer name of the printer to be detected. It is only necessary to broadcast the name notification command to only one of the first network and the second network via the network. Therefore, an increase in network traffic can be suppressed as compared with a case where a name notification command is broadcast to the entire network to detect that a printer is connected. Thereby, the network bandwidth can be effectively used.

本発明において、前記ホスト装置では、前記ネットワークに接続された特定のプリンターとの通信が確立されているか否かを確認し、前記特定のプリンターの通信が確立されていないときに、前記特定のプリンターの前記プリンター名と前記第1情報が対応付けられて記憶保持されている場合には、前記第1通信アダプターを介して前記名前通知命令をブロードキャストし、前記特定のプリンターの前記プリンター名に前記第2情報が対応付けられて記憶保持されている場合には前記第2通信アダプターを介して前記名前通知命令をブロードキャストし、前記名前通知命令に対する返信によって前記特定のプリンターが前記ネットワークに接続されていることを検出し、取得したプリンター名に基づいて、前記特定のプリンターとの通信を確立することを特徴とする。このようにすれば、ネットワークのトラフィックの増大を抑制しながら、特定のプリンターがネットワークに接続されていることを検出できる。   In the present invention, the host device checks whether or not communication with a specific printer connected to the network is established, and when communication with the specific printer is not established, the specific printer When the printer name and the first information are stored in association with each other, the name notification command is broadcast via the first communication adapter, and the printer name of the specific printer is added to the printer name. When the two pieces of information are stored in association with each other, the name notification command is broadcast via the second communication adapter, and the specific printer is connected to the network by replying to the name notification command. And confirm communication with the specific printer based on the acquired printer name. Characterized in that it. In this way, it is possible to detect that a specific printer is connected to the network while suppressing an increase in network traffic.

POSシステムの概略システム構成図である。1 is a schematic system configuration diagram of a POS system. POSシステムの制御系のブロック図である。It is a block diagram of the control system of a POS system. POSサーバーとプリンターの通信設定動作のフローチャートである。It is a flowchart of the communication setting operation | movement of a POS server and a printer. POSサーバーとプリンターの通信再設定動作のフローチャートである。6 is a flowchart of a communication resetting operation between a POS server and a printer.

以下に図面を参照しながら本発明を適用したPOSシステムの実施形態を説明する。   Embodiments of a POS system to which the present invention is applied will be described below with reference to the drawings.

(POSシステム)
図1はPOSシステムの概略システム構成図である。POSシステム1は店舗に設置されて顧客が購入した商品などの決済処理を行う。図1に示すように、POSシステム1は、POSサーバー(ホスト装置)2と、複数のPOS端末3と、複数のプリンター4と、これらを接続するネットワーク5を有する。店舗には複数のレジカウンターが設けられており、各レジカウンターにはPOS端末3とプリンター4がセットで1台ずつ設置されている。POSサーバー2は、装置本体7と、装置本体7に接続されたディスプレイ8と、装置本体7に接続されたキーボードなどの入力装置9を備える。
(POS system)
FIG. 1 is a schematic system configuration diagram of a POS system. The POS system 1 is installed in a store and performs settlement processing for products purchased by customers. As shown in FIG. 1, the POS system 1 includes a POS server (host device) 2, a plurality of POS terminals 3, a plurality of printers 4, and a network 5 connecting them. A plurality of cashier counters are provided in the store, and one POS terminal 3 and one printer 4 are installed in each cashier counter as a set. The POS server 2 includes an apparatus main body 7, a display 8 connected to the apparatus main body 7, and an input device 9 such as a keyboard connected to the apparatus main body 7.

POS端末3には顧客の購入した商品などの会計情報が入力される。POS端末3は入力された会計情報を、ネットワーク5を介してPOSサーバー2に送信する。POSサーバー2はPOS端末3から受信した会計情報に基づいて決済処理を行う。また、POSサーバー2は、決済処理が終了するとレシートを発行するための印刷データを生成する。そして、POSサーバー2はPOS端末3と同じレジカウンターに設置されたプリンター4に送信する。これによりPOSサーバー2はPOS端末3と同じレジカウンターに設置されたプリンター4にレシートを発行させる。   The POS terminal 3 receives accounting information such as products purchased by the customer. The POS terminal 3 transmits the input accounting information to the POS server 2 via the network 5. The POS server 2 performs settlement processing based on the transaction information received from the POS terminal 3. Further, the POS server 2 generates print data for issuing a receipt when the settlement process is completed. Then, the POS server 2 transmits to the printer 4 installed at the same register counter as the POS terminal 3. As a result, the POS server 2 causes the printer 4 installed at the same register counter as the POS terminal 3 to issue a receipt.

ここで、ネットワーク5は、店舗の1階に設けられたレジカウンターに設置されたPOS端末3およびプリンター4が接続された第1ネットワーク11と、店舗の2階に設けられたレジカウンターに設置されたPOS端末3およびプリンター4が接続された第2ネットワーク12を備える。POSサーバー2は、第1ネットワーク11に接続された第1通信アダプター15と、第2ネットワーク12に接続された第2通信アダプター16を備える。ネットワーク5では、DHCPにより、当該ネットワーク5に接続された各POS端末3および各プリンター4に対してIPアドレスが動的に割り当てられている。   Here, the network 5 is installed in the first network 11 connected to the POS terminal 3 and the printer 4 installed in the cashier counter provided on the first floor of the store, and in the cashier counter provided on the second floor of the store. And a second network 12 to which the POS terminal 3 and the printer 4 are connected. The POS server 2 includes a first communication adapter 15 connected to the first network 11 and a second communication adapter 16 connected to the second network 12. In the network 5, IP addresses are dynamically assigned to the POS terminals 3 and the printers 4 connected to the network 5 by DHCP.

(制御系)
図2はPOSシステム1の制御系の概略ブロック図である。図2に示すように、POS端末3の制御系は、CPUやRAMを備える端末制御部21を中心に構成されている。端末制御部21の入力側にはキーボード22が接続されている。また、端末制御部21には端末通信部23が接続されている。端末通信部23は、通信インターフェースを備えており、POS端末3とPOSサーバー2の間の通信を可能とする。端末制御部21は、キーボード22から入力される情報を会計情報として取得し、端末通信部23を介してPOSサーバー2に送信する。
(Control system)
FIG. 2 is a schematic block diagram of the control system of the POS system 1. As shown in FIG. 2, the control system of the POS terminal 3 is mainly configured by a terminal control unit 21 including a CPU and a RAM. A keyboard 22 is connected to the input side of the terminal control unit 21. A terminal communication unit 23 is connected to the terminal control unit 21. The terminal communication unit 23 includes a communication interface, and enables communication between the POS terminal 3 and the POS server 2. The terminal control unit 21 acquires information input from the keyboard 22 as accounting information, and transmits it to the POS server 2 via the terminal communication unit 23.

POSサーバー2の制御系は、CPUやRAMを備える制御部25を中心に構成されている。制御部25には、第1通信アダプター15、第2通信アダプター16、および、記憶部26が接続されている。記憶部26は、書き換え可能な不揮発性メモリーである。   The control system of the POS server 2 is mainly configured by a control unit 25 including a CPU and a RAM. A first communication adapter 15, a second communication adapter 16, and a storage unit 26 are connected to the control unit 25. The storage unit 26 is a rewritable nonvolatile memory.

制御部25は、決済処理を司る決済処理制御部28と、POSサーバー2と各プリンター4との間の通信設定を行う第1通信設定制御部29を備える。また、制御部25は、POSサーバー2と各POS端末3との間の通信設定を行う第2通信設定制御部30を備える。   The control unit 25 includes a payment processing control unit 28 that controls payment processing, and a first communication setting control unit 29 that performs communication settings between the POS server 2 and each printer 4. In addition, the control unit 25 includes a second communication setting control unit 30 that performs communication settings between the POS server 2 and each POS terminal 3.

決済処理制御部28は、決済処理部31とプリンタードライバー部32を備える。決済処理部31は、POS端末3からの会計情報に基づいて決済処理を行う。また、決済処理部31は、決済処理の処理結果である決済情報に基づいてレシートを印刷するための印刷データを生成する。そして、決済処理部31は、印刷データをプリンタードライバー部32に供給する。   The payment processing control unit 28 includes a payment processing unit 31 and a printer driver unit 32. The settlement processing unit 31 performs settlement processing based on the accounting information from the POS terminal 3. Further, the settlement processing unit 31 generates print data for printing a receipt based on the settlement information that is the processing result of the settlement process. Then, the settlement processing unit 31 supplies the print data to the printer driver unit 32.

プリンタードライバー部32は、印刷データをPOS端末3と同じレジカウンターに設置されたプリンター4にネットワーク5を介して送信する。すなわち、プリンタードライバー部32は、同一のレジカウンターに設置されたPOS端末3の端末名とプリンター4のプリンター名を対応付けた対応テーブル33を記憶部26に記憶保持しており、印刷データが供給されると、対応テーブル33を参照して、決済処理を行った会計情報を送信したPOS端末3の端末名に対応付けられたプリンター名のプリンター4を選択する。そして、プリンタードライバー部32は、ブリンター名に基づいてアドレス管理テーブル43を参照して、当該プリンター名のプリンターに印刷データを送信する。アドレス管理テーブル43の詳細は後述する。   The printer driver unit 32 transmits the print data to the printer 4 installed at the same register counter as the POS terminal 3 via the network 5. That is, the printer driver unit 32 stores the correspondence table 33 in which the terminal name of the POS terminal 3 and the printer name of the printer 4 installed at the same register counter are associated with each other in the storage unit 26, and print data is supplied. Then, referring to the correspondence table 33, the printer 4 having the printer name associated with the terminal name of the POS terminal 3 that has transmitted the transaction information for which the settlement processing has been performed is selected. Then, the printer driver unit 32 refers to the address management table 43 based on the printer name, and transmits print data to the printer having the printer name. Details of the address management table 43 will be described later.

第1通信設定制御部29は、名前通知命令送信部35、プリンター名取得部36、通信確認部37、通信確立部38、プリンター検出部39、および、通信再確立部40を有する。   The first communication setting control unit 29 includes a name notification command transmission unit 35, a printer name acquisition unit 36, a communication confirmation unit 37, a communication establishment unit 38, a printer detection unit 39, and a communication re-establishment unit 40.

名前通知命令送信部35は、第1通信アダプター15および第2通信アダプター16を介してネットワーク5にプリンター名を通知させる名前通知命令をブロードキャストする。より具体的には、名前通知命令送信部35はUDP(UserDatagramProtocol)で名前通知命令をブロードキャストする。   The name notification command transmission unit 35 broadcasts a name notification command for notifying the network 5 of the printer name via the first communication adapter 15 and the second communication adapter 16. More specifically, the name notification command transmission unit 35 broadcasts a name notification command using UDP (User Datagram Protocol).

プリンター名取得部36は、名前通知命令に対する返信として、ネットワーク5上の各プリンター4からプリンター名が通知されるのを待つ。そして、プリンター名取得部36は、第1通信アダプター15を介して通知されたプリンター名と当該第1通信アダプター15を特定する第1情報とを対応付けて記憶する。また、プリンター名取得部36は、第2通信アダプター16を介して通知されたプリンター名と当該第2通信アダプター16を特定する第2情報とを対応付けて記憶する。ここで、第1情報は第1通信アダプター15のMACアドレスであり、第2情報は第2通信アダプター16のMACアドレスである。従って、第1情報および第2情報により、通信アダプターを特定できる。   The printer name acquisition unit 36 waits for a printer name to be notified from each printer 4 on the network 5 as a reply to the name notification command. Then, the printer name acquisition unit 36 stores the printer name notified via the first communication adapter 15 and the first information for specifying the first communication adapter 15 in association with each other. In addition, the printer name acquisition unit 36 stores the printer name notified via the second communication adapter 16 and second information for specifying the second communication adapter 16 in association with each other. Here, the first information is the MAC address of the first communication adapter 15, and the second information is the MAC address of the second communication adapter 16. Therefore, the communication adapter can be specified by the first information and the second information.

通信確立部38は、プリンター名取得部36が取得したプリンター名に基づいて、ネットワーク5に接続されている各プリンター4との通信を確立する。すなわち、ネットワーク5に接続されている各プリンター4のプリンター名(ホスト名)が取得されると、通信確立部38は、プリンター名宛てに情報取得コマンドや通信設定コマンドを送信することが可能となる。従って、通信確立部38は、取得したプリンター名に基づいて各プリンター4に問い合わせを行い、各プリンター4のIPアドレスを取得する。そして、通信確立部38は、プリンター名およびIPアドレスにより特定される送信先に通信設定コマンドを送信して、POSサーバー2とプリンター4との間の通信設定を行う。通信設定が終了すると、通信確立部38は、プリンター名と、IPアドレスと、プリンター名取得部36がプリンター名と対応付けて記憶していた通信アダプターの情報(第1情報または第2情報)を対応付けて、これらを記憶部26のアドレス管理テーブル43に登録する。   The communication establishment unit 38 establishes communication with each printer 4 connected to the network 5 based on the printer name acquired by the printer name acquisition unit 36. That is, when the printer name (host name) of each printer 4 connected to the network 5 is acquired, the communication establishment unit 38 can transmit an information acquisition command and a communication setting command to the printer name. . Therefore, the communication establishment unit 38 makes an inquiry to each printer 4 based on the acquired printer name, and acquires the IP address of each printer 4. Then, the communication establishment unit 38 transmits a communication setting command to the transmission destination specified by the printer name and the IP address, and performs communication setting between the POS server 2 and the printer 4. When the communication setting is completed, the communication establishment unit 38 stores the printer name, the IP address, and the communication adapter information (first information or second information) stored in the printer name acquisition unit 36 in association with the printer name. These are registered in the address management table 43 of the storage unit 26 in association with each other.

通信確認部37は、POSサーバー2とネットワーク5に接続された特定のプリンター4との間で通信が確立されているか否かを確認する。本例では、特定のプリンター4は、決済処理制御部28が印刷データを送信する宛先のプリンター4である。通信確認部37は、特定のプリンター4のプリンター名に基づいて、ユニキャストのUDPで通信確認コマンドを送信し、その返信により通信が確立されているか否かを確認する。   The communication confirmation unit 37 confirms whether communication is established between the POS server 2 and a specific printer 4 connected to the network 5. In this example, the specific printer 4 is a destination printer 4 to which the payment processing control unit 28 transmits print data. The communication confirmation unit 37 transmits a communication confirmation command by unicast UDP based on the printer name of the specific printer 4 and confirms whether or not communication is established by returning the communication confirmation command.

プリンター検出部39は、特定のプリンター4の通信が確立されていないときに、ネットワーク5上で特定のプリンター4を検索する。すなわち、プリンター検出部39は、特定のプリンター4の通信が確立されていないときに、記憶部26のアドレス管理テーブル43を参照して、特定のプリンター4のプリンター名と第1情報が対応付けられている場合には第1通信アダプター15を介して名前通知命令を第1ネットワーク11にブロードキャストする。また、プリンター検出部39は特定のプリンター4のプリンター名に第2情報が対応付けられている場合には第2通信アダプター16を介して名前通知命令を第2ネットワーク12にブロードキャストする。そして、プリンター検出部39は、名前通知命令に対する返信によって特定のプリンター4がネットワーク5に接続されていることを検出する。   The printer detection unit 39 searches for the specific printer 4 on the network 5 when the communication of the specific printer 4 is not established. That is, when the communication of the specific printer 4 is not established, the printer detection unit 39 refers to the address management table 43 of the storage unit 26 and associates the printer name of the specific printer 4 with the first information. If so, a name notification command is broadcast to the first network 11 via the first communication adapter 15. Further, when the second information is associated with the printer name of the specific printer 4, the printer detection unit 39 broadcasts a name notification command to the second network 12 via the second communication adapter 16. The printer detection unit 39 detects that the specific printer 4 is connected to the network 5 by replying to the name notification command.

通信再確立部40は、プリンター検出部39によって特定のプリンター4の接続が検出されると、特定のプリンター4のプリンター名に基づいて当該特定のプリンター4との通信を再確立する。すなわち、通信再確立部40は、特定のプリンター4のプリンター名に基づいて当該特定のプリンター4に問い合わせを行い、IPアドレスを取得する。そして、通信再確立部40は、プリンター名およびIPアドレスにより特定される送信先に通信設定コマンドを送信して、POSサーバー2と特定のプリンター4との間の通信設定を行う。通信設定が終了すると、通信再確立部40は、アドレス管理テーブル43を更新する。すなわち、通信再確立部40は、プリンター名と、IPアドレスと、プリンター名に対応付けられていた通信アダプターの情報(第1情報または第2情報)とを対応付けて、これらをアドレス管理テーブル43に登録する。   When the printer detection unit 39 detects the connection of the specific printer 4, the communication re-establishment unit 40 re-establishes communication with the specific printer 4 based on the printer name of the specific printer 4. That is, the communication re-establishment unit 40 makes an inquiry to the specific printer 4 based on the printer name of the specific printer 4 and acquires an IP address. Then, the communication re-establishing unit 40 transmits a communication setting command to the transmission destination specified by the printer name and the IP address, and performs communication setting between the POS server 2 and the specific printer 4. When the communication setting is completed, the communication re-establishing unit 40 updates the address management table 43. That is, the communication re-establishing unit 40 associates the printer name, the IP address, and the information (first information or second information) of the communication adapter associated with the printer name, and associates them with the address management table 43. Register with.

第2通信設定制御部30は、POS端末3装置の端末名に基づいて、POSサーバー2と各POS端末3装置との間の通信を確立する。すなわち、第2通信設定制御部30は、第1通信アダプター15および第2通信アダプター16を介してネットワーク5に端末名を通知させる名前通知命令をブロードキャストする。そして、第2通信設定制御部30は、ネットワーク5に接続されている各POS端末3の端末名(ホスト名)が取得されると、端末名宛てに情報取得コマンドを送信して、各POS端末3のIPアドレスを取得する。また、第2通信設定制御部30は、端末名およびIPアドレスにより特定される送信先に通信設定コマンドを送信して、POSサーバー2とPOS端末3との間の通信設定を行う。   The second communication setting control unit 30 establishes communication between the POS server 2 and each POS terminal 3 device based on the terminal name of the POS terminal 3 device. That is, the second communication setting control unit 30 broadcasts a name notification command for notifying the network 5 of the terminal name via the first communication adapter 15 and the second communication adapter 16. Then, when the terminal name (host name) of each POS terminal 3 connected to the network 5 is acquired, the second communication setting control unit 30 transmits an information acquisition command to the terminal name, and each POS terminal 3 3 IP address is acquired. Further, the second communication setting control unit 30 transmits a communication setting command to the transmission destination specified by the terminal name and the IP address, and performs communication setting between the POS server 2 and the POS terminal 3.

次に、プリンター4の制御系は、CPUやRAMを備えるプリンター制御部45を中心に構成されている。プリンター制御部45の入力側にはプリンター通信部46が接続されている。プリンター制御部45の出力側には、印刷ヘッド47や、レシート用紙を搬送するための搬送モーター48が接続されている。プリンター通信部46は、通信アダプターを備えており、プリンター4とPOSサーバー2の間の通信を可能とする。プリンター制御部45は、POSサーバー2からの印刷データをプリンター通信部46を介して受け取ると、印刷ヘッド47および搬送モーター48を駆動制御して印刷データを印刷し、これによりレシートを発行する。   Next, the control system of the printer 4 is mainly configured by a printer control unit 45 including a CPU and a RAM. A printer communication unit 46 is connected to the input side of the printer control unit 45. A print head 47 and a transport motor 48 for transporting receipt paper are connected to the output side of the printer controller 45. The printer communication unit 46 includes a communication adapter, and enables communication between the printer 4 and the POS server 2. When the printer control unit 45 receives print data from the POS server 2 via the printer communication unit 46, the printer control unit 45 drives and controls the print head 47 and the conveyance motor 48 to print the print data, thereby issuing a receipt.

(通信設定動作)
図3はPOSサーバー2と各プリンター4との間の通信設定を行う通信設定動作のフローチャートである。POSサーバー2と各プリンター4との間で通信を確立する際には、POSサーバー2は、まず、第1通信アダプター15および第2通信アダプター16を介してネットワーク5に名前通知命令をブロードキャストする(ステップST1)。
(Communication setting operation)
FIG. 3 is a flowchart of a communication setting operation for setting communication between the POS server 2 and each printer 4. When establishing communication between the POS server 2 and each printer 4, the POS server 2 first broadcasts a name notification command to the network 5 via the first communication adapter 15 and the second communication adapter 16 ( Step ST1).

ここで、名前通知命令に対する返信が各プリンター4からPOSサーバー2に届くと、POSサーバー2は、第1通信アダプター15を介して通知されたプリンター名と第1情報(第1通信アダプター15のMACアドレス)とを対応付けて記憶するとともに、第2通信アダプター16を介して通知されたプリンター名と第2情報(第2通信アダプター16のMACアドレス)を対応付けて記憶する(ステップST2)。   Here, when a reply to the name notification command is received from each printer 4 to the POS server 2, the POS server 2 transmits the printer name and first information notified via the first communication adapter 15 (the MAC of the first communication adapter 15). Address) is stored in association with each other, and the printer name notified through the second communication adapter 16 and the second information (MAC address of the second communication adapter 16) are stored in association with each other (step ST2).

そして、POSサーバー2は、取得したプリンター名に基づいて、ネットワーク5に接続されている各プリンター4との間で通信設定を行い、通信を確立する。すなわち、通信再確立部40は、特定のプリンター4のプリンター名に基づいて当該特定のプリンター4に問い合わせを行い、IPアドレスを取得する。そして、通信再確立部40は、プリンター名およびIPアドレスにより特定される送信先に通信設定コマンドを送信して、POSサーバー2と特定のプリンター4との間の通信設定を行う。そして、通信設定が終了すると、POSサーバー2は、プリンター名と、IPアドレスと、プリンター名と対応付けて記憶していた通信アダプターの情報(第1情報または第2情報)を対応付けて、これらをアドレス管理テーブル43に登録する(ステップST3)。   Then, the POS server 2 sets communication with each printer 4 connected to the network 5 based on the acquired printer name, and establishes communication. That is, the communication re-establishment unit 40 makes an inquiry to the specific printer 4 based on the printer name of the specific printer 4 and acquires an IP address. Then, the communication re-establishing unit 40 transmits a communication setting command to the transmission destination specified by the printer name and the IP address, and performs communication setting between the POS server 2 and the specific printer 4. When the communication setting is completed, the POS server 2 associates the information (first information or second information) of the communication adapter stored in association with the printer name, the IP address, and the printer name. Is registered in the address management table 43 (step ST3).

なお、POSサーバー2では、各プリンター4との間で通信設定を行う際に、ネットワーク5を介して取得したプリンター名の一覧をディスプレイ8に表示し、入力装置9から通信を確立したいプリンター名を選択し、選択したプリンター4について、そのプリンター名、IPアドレスと、プリンター名と対応付けて記憶していた通信アダプターの情報(第1情報または第2情報)をアドレス管理テーブル43に登録するようにすることもできる。   The POS server 2 displays a list of printer names acquired via the network 5 on the display 8 when setting communication with each printer 4, and selects the name of the printer for which communication is to be established from the input device 9. For the selected printer 4, the printer name, IP address, and communication adapter information (first information or second information) stored in association with the printer name are registered in the address management table 43. You can also

ここで、ネットワーク5上の各機器のアドレスは動的に割り当てられている。従って、誤操作などによってプリンター4の電源が切断され、その後、再び電源が投入された場合には、電源が再投入されたプリンター4のネットワーク5上のIPアドレスが変化してしまい、POSサーバー2と電源が再投入されたプリンター4との間で通信ができなくなることがある。例えば、印刷データを送信する宛先となっている特定のプリンター4とPOSサーバー2とが通信ができなくなることがある。   Here, the address of each device on the network 5 is dynamically assigned. Accordingly, when the power of the printer 4 is turned off due to an erroneous operation or the like and then turned on again, the IP address on the network 5 of the printer 4 that is turned on again changes, and the POS server 2 and Communication with the printer 4 whose power is turned on again may become impossible. For example, communication between the specific printer 4 that is the destination to which the print data is transmitted and the POS server 2 may become impossible.

このような場合には、POSサーバー2は、この特定のプリンター4をネットワーク5上で検索して、当該特定のプリンター4との間で通信を再確立する。図4はPOSサーバー2と特定のプリンター4との間の通信再設定動作のフローチャートである。   In such a case, the POS server 2 searches for this specific printer 4 on the network 5 and re-establishes communication with the specific printer 4. FIG. 4 is a flowchart of the communication resetting operation between the POS server 2 and the specific printer 4.

図4に示すように、特定のプリンター4とPOSサーバー2との通信が確立されていない場合には(ステップST11)、POSサーバー2は、ネットワーク5に特定にプリンター4が接続されているか否かを検出する。すなわち、POSサーバー2は、記憶部26のアドレス管理テーブル43を参照して、特定のプリンター4のプリンター名と対応付けられている通信アダプターの情報を取得する。そして、プリンター名に第1情報が対応付けられている場合には、第1通信アダプター15を介して名前通知命令を第1ネットワーク11にブロードキャストする。一方、特定のプリンター4のプリンター名に第2情報が対応付けられている場合には、第2通信アダプター16を介して名前通知命令をブロードキャストする(ステップST12)。   As shown in FIG. 4, when communication between the specific printer 4 and the POS server 2 is not established (step ST11), the POS server 2 determines whether the printer 4 is specifically connected to the network 5. Is detected. That is, the POS server 2 refers to the address management table 43 in the storage unit 26 and acquires information on the communication adapter associated with the printer name of the specific printer 4. If the first information is associated with the printer name, a name notification command is broadcast to the first network 11 via the first communication adapter 15. On the other hand, if the second information is associated with the printer name of the specific printer 4, a name notification command is broadcast via the second communication adapter 16 (step ST12).

そして、POSサーバー2が特定のプリンター4のプリンター名を取得すると(特定のプリンター4を検出すると)、POSサーバー2は、特定のプリンター4のプリンター名に基づいて、特定のプリンター4との通信を再確立する。すなわち、通信再確立部40は、特定のプリンター4のプリンター名に基づいて当該特定のプリンター4に問い合わせを行い、IPアドレスを取得する。そして、通信再確立部40は、プリンター名およびIPアドレスにより特定される送信先に通信設定コマンドを送信して、POSサーバー2と特定のプリンター4との間の通信設定を行う。通信設定が終了すると、通信再確立部40は、アドレス管理テーブル43を更新する(ステップST13)。   When the POS server 2 acquires the printer name of the specific printer 4 (detects the specific printer 4), the POS server 2 communicates with the specific printer 4 based on the printer name of the specific printer 4. Re-establish. That is, the communication re-establishment unit 40 makes an inquiry to the specific printer 4 based on the printer name of the specific printer 4 and acquires an IP address. Then, the communication re-establishing unit 40 transmits a communication setting command to the transmission destination specified by the printer name and the IP address, and performs communication setting between the POS server 2 and the specific printer 4. When the communication setting is completed, the communication re-establishment unit 40 updates the address management table 43 (step ST13).

本例によれば、POSサーバー2とネットワーク5に接続されたプリンター4との間で通信を確立する際に、当該プリンター4のプリンター名と、通信アダプター15、16の情報が関連付けて記憶保持される。従って、各プリンター4との間の通信を確立する際には、プリンター名に関連付けられた通信アダプター15、16を介して第1ネットワーク11または第2ネットワーク12に名前通知命令をブロードキャストすればよい。従って、ネットワーク5の全体に対して名前通知命令をブロードキャストする場合と比較して、ネットワークトラフィックの増大を抑制できる。   According to this example, when establishing communication between the POS server 2 and the printer 4 connected to the network 5, the printer name of the printer 4 and the information of the communication adapters 15 and 16 are stored in association with each other. The Therefore, when establishing communication with each printer 4, a name notification command may be broadcast to the first network 11 or the second network 12 via the communication adapters 15 and 16 associated with the printer name. Therefore, an increase in network traffic can be suppressed as compared with the case where the name notification command is broadcast to the entire network 5.

(その他の実施の形態)
上記の例では、POSサーバー2は通信アダプターを2つ備えるが、以上の通信アダプターを備えてもよい。この場合、プリンター名取得部36は、各通信アダプターを介して通知されたプリンター名と当該通信アダプターを特定する情報とを対応付けて記憶するものとすることができる。また、プリンター検出部39は、ネットワーク5上で特定のプリンター4を検索する際に、特定のプリンター4のプリンター名と対応付けられた情報により特定される通信アダプターを介して名前通知命令をブロードキャストするものとすることができる。
(Other embodiments)
In the above example, the POS server 2 includes two communication adapters, but may include the above communication adapters. In this case, the printer name acquisition unit 36 may store the printer name notified via each communication adapter and information specifying the communication adapter in association with each other. Further, when searching for a specific printer 4 on the network 5, the printer detection unit 39 broadcasts a name notification command via a communication adapter specified by information associated with the printer name of the specific printer 4. Can be.

1…POSシステム、2…POSサーバー(ホスト装置)、3…POS端末、4…プリンター、5…ネットワーク、7…装置本体、8…ディスプレイ、9…入力装置、11…第1ネットワーク、12…第2ネットワーク、15…第1通信アダプター、16…第2通信アダプター、21…端末制御部、22…キーボード、23…端末通信部、25…制御部、26…記憶部、28…決済処理制御部、29…第1通信設定制御部、30…第2通信設定制御部、31…決済処理部、32…プリンタードライバー部、33…対応テーブル、35…名前通知命令送信部、36…プリンター名取得部、37…通信確認部、38…通信確立部、39…プリンター検出部、40…通信再確立部、42…不揮発性メモリー、43…アドレス管理テーブル、45…プリンター制御部、46…プリンター通信部、47…印刷ヘッド、48…搬送モーター。 DESCRIPTION OF SYMBOLS 1 ... POS system, 2 ... POS server (host device), 3 ... POS terminal, 4 ... Printer, 5 ... Network, 7 ... Device main body, 8 ... Display, 9 ... Input device, 11 ... First network, 12 ... First 2 network, 15 ... 1st communication adapter, 16 ... 2nd communication adapter, 21 ... terminal control part, 22 ... keyboard, 23 ... terminal communication part, 25 ... control part, 26 ... memory | storage part, 28 ... payment process control part, DESCRIPTION OF SYMBOLS 29 ... 1st communication setting control part, 30 ... 2nd communication setting control part, 31 ... Settlement processing part, 32 ... Printer driver part, 33 ... Correspondence table, 35 ... Name notification command transmission part, 36 ... Printer name acquisition part, 37 ... Communication confirmation unit, 38 ... Communication establishment unit, 39 ... Printer detection unit, 40 ... Communication re-establishment unit, 42 ... Non-volatile memory, 43 ... Address management table, 45 ... Centers controller, 46 ... printer communication unit, 47 ... print head, 48 ... transport motor.

Claims (5)

ホスト装置と、
第1ネットワークと第2ネットワークとを含むネットワークを介して前記ホスト装置に接続された複数のプリンターと、を有し、
前記ホスト装置は、
前記第1ネットワークに接続された第1通信アダプターと、
前記第2ネットワークに接続された第2通信アダプターと、
記憶部と、
前記第1通信アダプターおよび前記第2通信アダプターを介して前記ネットワークにプリンター名を通知させる名前通知命令をブロードキャストする名前通知命令送信部と、
前記第1通信アダプターを介して通知されたプリンター名と当該第1通信アダプターを特定する第1情報とを対応付けて前記記憶部に記憶するとともに、前記第2通信アダプターを介して通知されたプリンター名と当該第2通信アダプターを特定する第2情報とを対応付けて前記記憶部に記憶するプリンター名取得部と、
前記プリンター名取得部が取得したプリンター名に基づいて、前記ネットワークに接続されている各プリンターとの通信を確立する通信確立部と、
を備えることを特徴とするPOSシステム。
A host device;
A plurality of printers connected to the host device via a network including a first network and a second network;
The host device is
A first communication adapter connected to the first network;
A second communication adapter connected to the second network;
A storage unit;
A name notification command transmitter for broadcasting a name notification command for notifying the network of the printer name via the first communication adapter and the second communication adapter;
The printer name notified via the first communication adapter and the first information specifying the first communication adapter are stored in the storage unit in association with each other, and the printer notified via the second communication adapter A printer name acquisition unit that associates a name with second information for identifying the second communication adapter and stores the name in the storage unit;
A communication establishment unit that establishes communication with each printer connected to the network based on the printer name acquired by the printer name acquisition unit;
A POS system comprising:
請求項1において、
前記ホスト装置は、
前記ネットワークに接続された特定のプリンターとの通信が確立されているか否かを確認する通信確認部と、
前記特定のプリンターの通信が確立されていないときに前記記憶部を参照し、前記特定のプリンターの前記プリンター名と前記第1情報が対応付けられている場合には前記第1通信アダプターを介して前記第1ネットワークに前記名前通知命令をブロードキャストし、前記特定のプリンターの前記プリンター名に前記第2情報が対応付けられている場合には前記第2通信アダプターを介して前記第2ネットワークに前記名前通知命令をブロードキャストし、前記名前通知命令に対する返信によって前記特定のプリンターが前記ネットワークに接続されていることを検出するプリンター検索部と、
前記特定のプリンターの接続が検出されると、前記特定のプリンターのプリンター名に基づいて当該特定のプリンターとの通信を再確立する通信再確立部と、
を備えることを特徴とするPOSシステム。
In claim 1,
The host device is
A communication confirmation unit for confirming whether communication with a specific printer connected to the network is established;
When the communication of the specific printer is not established, the storage unit is referred to, and when the printer name of the specific printer and the first information are associated with each other via the first communication adapter The name notification command is broadcast to the first network, and when the second information is associated with the printer name of the specific printer, the name is transmitted to the second network via the second communication adapter. A printer search unit that broadcasts a notification command and detects that the specific printer is connected to the network by a reply to the name notification command;
When the connection of the specific printer is detected, a communication re-establishment unit that re-establishes communication with the specific printer based on the printer name of the specific printer;
A POS system comprising:
請求項1または2において、
前記第1情報は、前記第1通信アダプターのMACアドレスであり、
前記第2情報は、前記第2通信アダプターのMACアドレスであることを特徴とするPOSシステム。
In claim 1 or 2,
The first information is a MAC address of the first communication adapter;
The POS system, wherein the second information is a MAC address of the second communication adapter.
ホスト装置と、第1ネットワークと第2ネットワークとを含むネットワークを介して前記ホスト装置に接続された複数のプリンターと、を有し、前記ホスト装置は、前記第1ネットワークに接続された第1通信アダプターと、前記第2ネットワークに接続された第2通信アダプターと、を備えるPOSシステムのプリンター接続方法において、
前記ホスト装置では、
前記第1通信アダプターおよび前記第2通信アダプターを介して前記ネットワークにプリンター名を通知させる名前通知命令をブロードキャストし、
前記第1通信アダプターを介して通知されたプリンター名と当該第1通信アダプターを特定する第1情報とを対応付けて記憶保持するとともに、前記第2通信アダプターを介して通知されたプリンター名と当該第2通信アダプターを特定する第2情報とを対応付けて記憶保持し、
取得したプリンター名に基づいて、前記ネットワークに接続されている各プリンターとの通信を確立することを特徴とするPOSシステムのプリンター接続方法。
A host device, and a plurality of printers connected to the host device via a network including a first network and a second network, wherein the host device is connected to the first network. In a printer connection method of a POS system comprising an adapter and a second communication adapter connected to the second network,
In the host device,
Broadcasting a name notification command for notifying the network of the printer name via the first communication adapter and the second communication adapter;
The printer name notified via the first communication adapter and the first information specifying the first communication adapter are stored in association with each other, and the printer name notified via the second communication adapter and the first information The second information specifying the second communication adapter is stored in association with the second information,
A printer connection method for a POS system, wherein communication with each printer connected to the network is established based on an acquired printer name.
請求項4において、
前記ホスト装置では、
前記ネットワークに接続された特定のプリンターとの通信が確立されているか否かを確認し、
前記特定のプリンターの通信が確立されていないときに、前記特定のプリンターの前記プリンター名と前記第1情報が対応付けられて記憶保持されている場合には、前記第1通信アダプターを介して前記名前通知命令をブロードキャストし、前記特定のプリンターの前記プリンター名に前記第2情報が対応付けられて記憶保持されている場合には前記第2通信アダプターを介して前記名前通知命令をブロードキャストし、
前記名前通知命令に対する返信によって前記特定のプリンターが前記ネットワークに接続されていることを検出し、
取得したプリンター名に基づいて、前記特定のプリンターとの通信を確立することを特徴とするPOSシステムのプリンター接続方法。
In claim 4,
In the host device,
Check whether communication with a specific printer connected to the network is established,
When the communication of the specific printer is not established and the printer name of the specific printer and the first information are stored in association with each other, the communication is performed via the first communication adapter. Broadcast a name notification command, and when the second information is stored in association with the printer name of the specific printer, broadcast the name notification command via the second communication adapter,
Detecting that the specific printer is connected to the network by replying to the name notification command;
A printer connection method of a POS system, characterized in that communication with the specific printer is established based on the acquired printer name.
JP2015199982A 2015-10-08 2015-10-08 Pos system and printer setting method thereof Pending JP2017073015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015199982A JP2017073015A (en) 2015-10-08 2015-10-08 Pos system and printer setting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015199982A JP2017073015A (en) 2015-10-08 2015-10-08 Pos system and printer setting method thereof

Publications (1)

Publication Number Publication Date
JP2017073015A true JP2017073015A (en) 2017-04-13

Family

ID=58537774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015199982A Pending JP2017073015A (en) 2015-10-08 2015-10-08 Pos system and printer setting method thereof

Country Status (1)

Country Link
JP (1) JP2017073015A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11119715B2 (en) 2019-03-27 2021-09-14 Brother Kogyo Kabushiki Kaisha Printing apparatus
CN114124899A (en) * 2021-10-28 2022-03-01 北京三快在线科技有限公司 Bill printing equipment management method and device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11119715B2 (en) 2019-03-27 2021-09-14 Brother Kogyo Kabushiki Kaisha Printing apparatus
CN114124899A (en) * 2021-10-28 2022-03-01 北京三快在线科技有限公司 Bill printing equipment management method and device and electronic equipment

Similar Documents

Publication Publication Date Title
JP5312308B2 (en) Information processing apparatus and control method having a plurality of communication interfaces
WO2015156014A1 (en) Control system for information processing device using portable terminal, portable terminal, and control method and control program for information processing device
CN101114912B (en) Communication control apparatus, data processing apparatus, and control method therefor
US9948823B2 (en) Device discovery using broadcast technology
US20110138081A1 (en) Network-connected apparatus and network connection method
JP6381211B2 (en) Image forming apparatus and control method thereof
CN104391664A (en) Self-service print system for realizing cross-segment communication between printer and print server
US10019702B2 (en) Techniques for retail printing
CN102170484B (en) A detection method and a detection device of IP address conflict
JP2020039104A (en) Terminal device, communication system, and program
JP2017073015A (en) Pos system and printer setting method thereof
JP4666039B2 (en) Sales data processing apparatus, store printer system, and program
JP6206291B2 (en) Image processing system, relay device, and program
JP4826646B2 (en) Image forming apparatus
JP6459251B2 (en) COMMUNICATION TERMINAL DEVICE, COMMUNICATION SYSTEM, PROGRAM, AND COMMUNICATION TERMINAL DEVICE CONTROL METHOD
CN102790722A (en) DHCP (dynamic host configuration protocol) message forwarding method and wireless access control equipment
JP6009776B2 (en) Order data management system
CN104580547A (en) IP (internet protocol) configuration method and device for Linux operation system
JP2008217211A (en) Printer information setting system, terminal device, printer information setting method and program
JP2009253309A (en) Field communication apparatus
US20180039454A1 (en) Information processing apparatus and method of controlling information processing apparatus
JP5460829B2 (en) Method of acquiring data from point-of-sale (POS) system by electronic label system, electronic label system and POS label management system
JP6477108B2 (en) Image forming apparatus, image forming system, and program
CN110198240B (en) Method and device for adding printer to merchant management equipment
JP6273972B2 (en) Information processing apparatus, transmission / reception apparatus, and control method for information processing apparatus

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20180905