Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6402982B2 - Recording apparatus, control system, and information processing method for recording apparatus - Google Patents
[go: Go Back, main page]

JP6402982B2 - Recording apparatus, control system, and information processing method for recording apparatus - Google Patents

Recording apparatus, control system, and information processing method for recording apparatus Download PDF

Info

Publication number
JP6402982B2
JP6402982B2 JP2014172393A JP2014172393A JP6402982B2 JP 6402982 B2 JP6402982 B2 JP 6402982B2 JP 2014172393 A JP2014172393 A JP 2014172393A JP 2014172393 A JP2014172393 A JP 2014172393A JP 6402982 B2 JP6402982 B2 JP 6402982B2
Authority
JP
Japan
Prior art keywords
information
identification information
type
recording apparatus
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2014172393A
Other languages
Japanese (ja)
Other versions
JP2016048411A (en
JP2016048411A5 (en
Inventor
崇 河森
崇 河森
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 JP2014172393A priority Critical patent/JP6402982B2/en
Publication of JP2016048411A publication Critical patent/JP2016048411A/en
Publication of JP2016048411A5 publication Critical patent/JP2016048411A5/en
Application granted granted Critical
Publication of JP6402982B2 publication Critical patent/JP6402982B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Description

本発明は、記録装置、制御システム、及び、記録装置の情報処理方法に関する。

The present invention relates to a recording apparatus, a control system, and an information processing method for the recording apparatus .

特許文献1では、電子機器に、デバイスを接続する技術について開示されている(例えば、特許文献1参照)。
また、従来、POS端末等の制御装置と、記録装置とを接続し、制御装置の制御で記録装置がレシートを発行するPOSシステムが知られている。POSシステムでは、記録装置に、特許文献1に記載された技術のようにデバイスとしてのバーコードリーダー等の読取装置を接続し、読取装置による読取結果を記録装置が制御装置に送信し、制御装置が読取結果に基づく処理を行うシステムがある。
Patent Document 1 discloses a technique for connecting a device to an electronic device (see, for example, Patent Document 1).
Conventionally, a POS system in which a control device such as a POS terminal and a recording device are connected and the recording device issues a receipt under the control of the control device is known. In the POS system, a reader such as a barcode reader as a device is connected to the recording device as in the technique described in Patent Document 1, and the recording device transmits a result of reading by the reader to the control device. There is a system that performs processing based on the reading result.

特開2011−59987号公報JP2011-59987A

上述したシステムのように、記録装置が、自身に接続されたデバイスから入力されたデータを、制御装置等の外部装置に送信し、外部装置がデータに基づく処理を実行するシステムでは、外部装置がデバイスの種類に対応した処理を実行できるように、外部装置に、データの出力元のデバイスの種類を認識させる必要がある。そして、外部装置に、データの出力元のデバイスの種類を認識させる際に、できるだけユーザーが行う作業を減らしたいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、デバイスから入力されたデータを外部装置に送信する記録装置について、ユーザーが行う作業を低減しつつ、外部装置にデータの出力元のデバイスの種類を認識させることができるようにすることを目的とする。
As in the system described above, in a system in which a recording device transmits data input from a device connected to itself to an external device such as a control device, and the external device executes processing based on the data, the external device It is necessary for the external device to recognize the type of device from which data is output so that processing corresponding to the type of device can be executed. There is a need to reduce the work performed by the user as much as possible when making the external device recognize the type of device from which data is output.
The present invention has been made in view of the above-described circumstances, and for a recording apparatus that transmits data input from a device to an external device, a device that outputs data to the external device while reducing work performed by a user. The purpose is to make it possible to recognize the type of the.

上記目的を達成するために、本発明の記録装置は、デバイスが接続された場合、前記デバイスの接続情報を取得し、取得した前記接続情報に基づいて、前記デバイスの種類を判別し、判別した前記デバイスの種類に応じた識別情報を付与して前記接続情報と対応付けて登録し、前記デバイスから入力されたデータに、登録した前記識別情報を付加して外部装置に送信する制御部を有することを特徴とする。
本発明の構成によれば、ユーザーが行う作業を低減しつつ、外部装置にデータの出力元のデバイスの種類を認識させることができる。
In order to achieve the above object, the recording apparatus of the present invention acquires the connection information of the device when the device is connected, determines the type of the device based on the acquired connection information, and determines A control unit that adds identification information according to the type of the device, registers the information in association with the connection information, adds the registered identification information to data input from the device, and transmits the data to an external apparatus. It is characterized by that.
According to the configuration of the present invention, it is possible to cause the external device to recognize the type of data output source device while reducing the work performed by the user.

また、本発明の記録装置は、前記制御部は、前記デバイスが接続された場合、前記デバイスの種類に応じた制御プログラムを判別し、判別した前記制御プログラムを示す情報と、前記識別情報とを対応付けて登録することを特徴とする。
本発明の構成によれば、ユーザーの作業を低減しつつ、デバイスが接続された場合に、接続されたデバイスの識別情報と、当該デバイスの種類に応じた制御プログラムを示す情報とを対応付けて登録できる。
In the recording apparatus of the present invention, when the device is connected, the control unit determines a control program according to the type of the device, and includes information indicating the determined control program and the identification information. It is characterized by registering in association.
According to the configuration of the present invention, when a device is connected while reducing the user's work, the identification information of the connected device is associated with the information indicating the control program according to the type of the device. You can register.

また、本発明の記録装置は、前記制御部は、同一種類の前記デバイスが、複数、接続された場合、所定のルールに従って前記識別情報の値を変更して、各前記デバイスに前記識別情報を付与することを特徴とする。
本発明の構成によれば、同一種類のデバイスが、複数、記録装置に接続された場合であっても、各デバイスに、デバイスの種類に対応し、かつ、ルールに従った値のデバイス識別情報を付与できる。
In the recording apparatus of the present invention, when a plurality of the same type of devices are connected, the control unit changes the value of the identification information according to a predetermined rule, and assigns the identification information to each device. It is characterized by giving.
According to the configuration of the present invention, even when a plurality of devices of the same type are connected to the recording apparatus, the device identification information corresponding to the device type and the value according to the rule is assigned to each device. Can be granted.

また、本発明の記録装置は、前記制御部は、前記デバイスの接続が解除された場合、前記識別情報と前記接続情報との登録を削除することを特徴とする。
本発明の構成によれば、実際に記録装置に接続された状態にあるデバイスについて、識別情報と接続情報とが登録された状態を維持できる。
In the recording apparatus of the present invention, the control unit deletes registration of the identification information and the connection information when the connection of the device is released.
According to the configuration of the present invention, it is possible to maintain a state in which identification information and connection information are registered for a device that is actually connected to the recording apparatus.

また、本発明の記録装置は、前記制御部は、複数の前記デバイスが接続された場合、複数の前記デバイスについて、前記識別情報と前記接続情報とを対応付けて登録することを特徴とする。
本発明の構成によれば、登録された情報に基づいて、複数のデバイスを管理できる。
In the recording apparatus of the present invention, when the plurality of devices are connected, the control unit registers the identification information and the connection information in association with each other for the plurality of devices.
According to the configuration of the present invention, a plurality of devices can be managed based on registered information.

また、上記目的を達成するために、本発明の制御システムは、デバイスが接続された場合、前記デバイスの接続情報を取得し、取得した前記接続情報に基づいて、前記デバイスの種類を判別し、判別した前記デバイスの種類に応じた識別情報を付与して前記接続情報と対応付けて登録し、前記デバイスから入力されたデータに、登録した前記識別情報を付加して送信する制御部を有する記録装置と、前記記録装置から、前記識別情報が付加された前記データを受信し、前記識別情報が示す前記デバイスの種類に基づいて、前記データを処理する制御装置制御部を有する制御装置と、を備えることを特徴とする。
本発明の構成によれば、ユーザーが行う作業を低減しつつ、外部装置にデータの出力元のデバイスの種類を認識させることができる。
In order to achieve the above object, the control system of the present invention acquires the connection information of the device when the device is connected, determines the type of the device based on the acquired connection information, A record having a control unit that adds identification information according to the determined type of the device, registers the information in association with the connection information, adds the registered identification information to the data input from the device, and transmits the data. A control device having a control device controller that receives the data to which the identification information is added from the recording device and processes the data based on the type of the device indicated by the identification information; It is characterized by providing.
According to the configuration of the present invention, it is possible to cause the external device to recognize the type of data output source device while reducing the work performed by the user.

また、上記目的を達成するために、本発明の情報処理方法は、デバイスが接続された場合、前記デバイスの接続情報を取得し、取得した前記接続情報に基づいて、前記デバイスの種類を判別し、判別した前記デバイスの種類に応じた識別情報を付与して前記接続情報と対応付けて登録し、前記デバイスから入力されたデータに、登録した前記識別情報を付加して外部装置に送信することを特徴とする。
本発明の構成によれば、ユーザーが行う作業を低減しつつ、外部装置にデータの出力元のデバイスの種類を認識させることができる。
In order to achieve the above object, the information processing method of the present invention acquires the connection information of the device when the device is connected, and determines the type of the device based on the acquired connection information. Adding identification information corresponding to the determined type of the device, registering it in association with the connection information, adding the registered identification information to the data input from the device, and transmitting the data to an external device It is characterized by.
According to the configuration of the present invention, it is possible to cause the external device to recognize the type of data output source device while reducing the work performed by the user.

本実施形態に係るPOSシステムを示す図。The figure which shows the POS system which concerns on this embodiment. POSシステムを構成する各装置の機能的構成を示すブロック図。The block diagram which shows the functional structure of each apparatus which comprises a POS system. 記録装置、タブレット端末の要部の機能ブロック図。The functional block diagram of the principal part of a recording device and a tablet terminal. 記録装置の動作を示すフローチャート。6 is a flowchart showing the operation of the recording apparatus. 接続デバイスリストに登録される情報を示す図。The figure which shows the information registered into a connection device list. 記録装置の動作を示すフローチャート。6 is a flowchart showing the operation of the recording apparatus. 専用ユーザーインターフェースを示す図。The figure which shows a dedicated user interface. POSシステムを構成する各装置の動作を示すフローチャート。The flowchart which shows operation | movement of each apparatus which comprises a POS system.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係るPOS(Point of Sales)システム1(制御システム)を示す図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram showing a POS (Point of Sales) system 1 (control system) according to the present embodiment.

POSシステム1は、ショッピングセンターや、百貨店、コンビニエンスストア等の小売店や、レストランや、喫茶店、居酒屋等の飲食店等の店舗に適用されるシステムである。
POSシステム1は、店舗における商品の販売状況、商品の在庫の状況、売上の状況等を管理する機能や、店舗に設けられたレジカウンターLにおいて、顧客が購入した商品に応じた会計を行う機能、会計に応じてレシートを発行する機能等を備える。
POSシステム1が適用される店舗には、顧客が会計を行なうレジカウンターLが設けられる。1つのレジカウンターLには、1台の記録装置11と、当該1台の記録装置11と無線通信可能に接続された1台のタブレット端末10(制御装置)とが設けられる。
The POS system 1 is a system applied to a store such as a shopping center, a retail store such as a department store, a convenience store, a restaurant, a restaurant such as a coffee shop, and a tavern.
The POS system 1 has a function for managing the sales status of products at a store, the status of product inventory, the status of sales, and the like, and a function for performing accounting according to products purchased by customers at a cashier counter L provided in the store. It has a function to issue a receipt according to the accounting.
A store to which the POS system 1 is applied is provided with a cashier counter L for a customer to check out. One register counter L is provided with one recording device 11 and one tablet terminal 10 (control device) connected to the one recording device 11 so as to be capable of wireless communication.

タブレット端末10は、タブレット型(板状)のコンピューターである。タブレット端末10は、図7に示すように、前面にタッチパネル28が設けられ、タッチパネル28に対するタッチ操作によって各種入力が可能である。
タブレット端末10は、レジカウンターLにおいて、会計を担当するレジ担当者が使用する端末である。タブレット端末10は、後述するように、レジカウンターLにおける会計に際し、レジ担当者に所定のユーザーインターフェースを提供する。レジ担当者は、ユーザーインターフェースに、会計に対応する入力を行い、また、ユーザーインターフェースに表示された会計に関する情報を参照する。タブレット端末10は、レジカウンターLで行われる会計に応じて、記録装置11を制御して、レシートを発行させる。記録装置11により発行されたレシートは、顧客に引き渡される。
The tablet terminal 10 is a tablet (plate-shaped) computer. As shown in FIG. 7, the tablet terminal 10 is provided with a touch panel 28 on the front surface, and various inputs can be performed by touch operations on the touch panel 28.
The tablet terminal 10 is a terminal used by a cashier in charge of accounting at the cashier counter L. As will be described later, the tablet terminal 10 provides a predetermined user interface to the cashier in charge at the cashier counter L. The cashier person makes an input corresponding to the transaction on the user interface, and refers to information on the transaction displayed on the user interface. The tablet terminal 10 controls the recording device 11 according to the transaction performed at the checkout counter L, and issues a receipt. The receipt issued by the recording device 11 is delivered to the customer.

図2は、POSシステム1を構成するタブレット端末10、記録装置11、及び、POSサーバー17の機能的構成を示すブロック図である。   FIG. 2 is a block diagram showing functional configurations of the tablet terminal 10, the recording device 11, and the POS server 17 constituting the POS system 1.

記録装置11は、サーマルヘッドによって感熱紙にドットを形成して画像を記録するサーマルプリンターである。
図2に示すように記録装置11は、制御部20と、プリンターユニット21と、記憶部22と、通信部23と、デバイス通信部24と、を備える。
The recording device 11 is a thermal printer that records dots by forming dots on thermal paper using a thermal head.
As illustrated in FIG. 2, the recording apparatus 11 includes a control unit 20, a printer unit 21, a storage unit 22, a communication unit 23, and a device communication unit 24.

制御部20は、CPUや、ROM、RAM、その他周辺回路等を備え、記録装置11の各部を制御する。   The control unit 20 includes a CPU, ROM, RAM, and other peripheral circuits, and controls each unit of the recording apparatus 11.

プリンターユニット21は、記録装置11の筐体に収容されたロール紙を搬送する搬送機構や、サーマルヘッドによってロール紙にドットを形成して画像を記録する記録機構、ロール紙を所定の位置で切断する切断機構等のロール紙への記録に関する各種機構を備える。プリンターユニット21は、制御部20の制御で、搬送機構によりロール紙を搬送しつつ、記録機構によりロール紙にレシートに係る画像を記録し、切断機構により所定の位置でロール紙を切断して、レシートを発行する。
プリンターユニット21には、キャッシュドロワー14が、所定のシリアル通信の規格に従って信号線を介して接続される。プリンターユニット21は、制御部20の制御で、キャッシュドロワー14に信号を出力し、キャッシュドロワー14に設けられた引き出しを開状態とする。
The printer unit 21 includes a transport mechanism that transports roll paper accommodated in the casing of the recording apparatus 11, a recording mechanism that records dots by forming dots on the roll paper using a thermal head, and cuts the roll paper at a predetermined position. Various mechanisms relating to recording on roll paper, such as a cutting mechanism to perform. Under the control of the control unit 20, the printer unit 21 records an image relating to the receipt on the roll paper by the recording mechanism while conveying the roll paper by the conveyance mechanism, and cuts the roll paper at a predetermined position by the cutting mechanism. Issue a receipt.
The cash drawer 14 is connected to the printer unit 21 via a signal line in accordance with a predetermined serial communication standard. The printer unit 21 outputs a signal to the cash drawer 14 under the control of the control unit 20 to open the drawer provided in the cash drawer 14.

記憶部22は、EPROM等の不揮発性メモリーを備え、各種データを記憶する。   The storage unit 22 includes a nonvolatile memory such as an EPROM and stores various data.

通信部23は、制御部20の制御で、所定の無線通信の規格に従って、タブレット端末10と無線通信する。   The communication unit 23 wirelessly communicates with the tablet terminal 10 according to a predetermined wireless communication standard under the control of the control unit 20.

デバイス通信部24は、USBの規格に従ったポートを有するインターフェースボード等を備え、バーコードスキャナー12(デバイス)、及び、カードリーダー13(デバイス)との間でUSBのプロトコルに従って通信する。
バーコードスキャナー12は、商品や、商品の包装等に付されたバーコードを読み取り、読取結果を示すデータをデバイス通信部24に出力する。デバイス通信部24は、バーコードスキャナー12から入力されたデータを、制御部20に出力する。
カードリーダー13は、磁気カードに記録された磁気情報を読み取り、読取結果を示すデータをデバイス通信部24に出力する。デバイス通信部24は、カードリーダー13から入力されたデータを、制御部20に出力する。
The device communication unit 24 includes an interface board having a port according to the USB standard, and communicates with the barcode scanner 12 (device) and the card reader 13 (device) according to the USB protocol.
The barcode scanner 12 reads a barcode attached to a product, product packaging, and the like, and outputs data indicating the read result to the device communication unit 24. The device communication unit 24 outputs the data input from the barcode scanner 12 to the control unit 20.
The card reader 13 reads magnetic information recorded on the magnetic card and outputs data indicating the read result to the device communication unit 24. The device communication unit 24 outputs the data input from the card reader 13 to the control unit 20.

図2に示すように、タブレット端末10は、端末制御部26(制御装置制御部)と、端末通信部27と、タッチパネル28と、端末記憶部29と、を備える。   As shown in FIG. 2, the tablet terminal 10 includes a terminal control unit 26 (control device control unit), a terminal communication unit 27, a touch panel 28, and a terminal storage unit 29.

端末制御部26は、CPUや、ROM、RAM、その他周辺回路等を備え、タブレット端末10の各部を制御する。タブレット端末10には、ウェブブラウザーがインストールされる。端末制御部26は、ウェブブラウザーを読み出して実行することにより、ブラウザー実行部261として機能する。   The terminal control unit 26 includes a CPU, ROM, RAM, other peripheral circuits, and the like, and controls each unit of the tablet terminal 10. A web browser is installed in the tablet terminal 10. The terminal control unit 26 functions as the browser execution unit 261 by reading and executing the web browser.

端末通信部27は、端末制御部26の制御で、所定の無線通信の規格に従って、記録装置11、及び、POSサーバー17と通信する。   The terminal communication unit 27 communicates with the recording device 11 and the POS server 17 according to a predetermined wireless communication standard under the control of the terminal control unit 26.

タッチパネル28は、液晶表示パネル等の表示パネルと、液晶表示パネルに重ねて設けられたタッチセンサーとを備える。表示パネルは、端末制御部26の制御で、各種画像を表示する。タッチセンサーは、タッチ操作を検出し、端末制御部26に出力する。   The touch panel 28 includes a display panel such as a liquid crystal display panel, and a touch sensor provided to overlap the liquid crystal display panel. The display panel displays various images under the control of the terminal control unit 26. The touch sensor detects a touch operation and outputs it to the terminal control unit 26.

端末記憶部29は、EEPROM等の不揮発性メモリーを備え、各種データを記憶する。   The terminal storage unit 29 includes a nonvolatile memory such as an EEPROM and stores various data.

図2に示すように、POSサーバー17は、サーバー制御部30と、サーバー記憶部31と、サーバー通信部32と、を備える。
サーバー制御部30は、CPUや、ROM、RAM、その他周辺回路等を備え、POSサーバー17を制御する。POSサーバー17には、POSアプリケーションがインストールされる。サーバー制御部30は、POSアプリケーションを読み出して実行することにより、アプリケーション実行部301として機能する。
As illustrated in FIG. 2, the POS server 17 includes a server control unit 30, a server storage unit 31, and a server communication unit 32.
The server control unit 30 includes a CPU, ROM, RAM, and other peripheral circuits, and controls the POS server 17. A POS application is installed in the POS server 17. The server control unit 30 functions as the application execution unit 301 by reading and executing the POS application.

サーバー記憶部31は、ハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを記憶する。サーバー記憶部31は、商品に関する情報を格納したデータベース、売り上げを管理するデータベース、在庫を管理するデータベース等を記憶する。サーバー制御部30は、サーバー記憶部31が記憶する各種データベースを利用して、POSシステム1を管理する。   The server storage unit 31 includes a hard disk and a nonvolatile memory such as an EEPROM, and stores various data. The server storage unit 31 stores a database that stores information on products, a database that manages sales, a database that manages inventory, and the like. The server control unit 30 manages the POS system 1 using various databases stored in the server storage unit 31.

サーバー通信部32は、サーバー制御部30の制御で、所定の無線通信規格に従って、タブレット端末10と通信する。   The server communication unit 32 communicates with the tablet terminal 10 according to a predetermined wireless communication standard under the control of the server control unit 30.

図3は、記録装置11、及び、タブレット端末10の要部のより詳細な機能ブロック図である。   FIG. 3 is a more detailed functional block diagram of the main parts of the recording device 11 and the tablet terminal 10.

図3に示すように、記録装置11の制御部20は、機能ブロックとして、通信制御部201と、デバイス制御部202と、プリンターユニット制御部203とを備える。デバイス制御部202は、機能ブロックとして、バーコードスキャナー制御部2021と、カードリーダー制御部2022と、を備える。各機能ブロックの処理については後述する。   As shown in FIG. 3, the control unit 20 of the recording apparatus 11 includes a communication control unit 201, a device control unit 202, and a printer unit control unit 203 as functional blocks. The device control unit 202 includes a barcode scanner control unit 2021 and a card reader control unit 2022 as functional blocks. The processing of each functional block will be described later.

ところで、記録装置11には、デバイスとして、少なくとも、バーコードスキャナー12、及び、カードリーダー13が接続可能である。後述するように、これらデバイスにより読み取りが行われると、デバイスは、読取結果を示すデータ(以下、「読取結果データ」という。)を記録装置11に出力する。記録装置11は、デバイスから入力された読取結果データを、タブレット端末10に送信する。タブレット端末10は、受信した読取結果データに基づいて、読取結果データの出力元のデバイスの種類に応じた処理を実行する。
ここで、タブレット端末10が、読取結果データの出力元のデバイスの種類に応じた処理を実行するためには、タブレット端末10が、読取結果データの出力元のデバイスの種類を認識する必要がある。これを踏まえ、POSシステム1を構成する各装置は、以下の処理を実行する。
Incidentally, at least a barcode scanner 12 and a card reader 13 can be connected to the recording apparatus 11 as devices. As will be described later, when reading is performed by these devices, the devices output data indicating the reading results (hereinafter referred to as “reading result data”) to the recording apparatus 11. The recording apparatus 11 transmits the reading result data input from the device to the tablet terminal 10. Based on the received reading result data, the tablet terminal 10 executes processing according to the type of device from which the reading result data is output.
Here, in order for the tablet terminal 10 to execute processing according to the type of the device from which the read result data is output, the tablet terminal 10 needs to recognize the type of the device from which the read result data is output. . Based on this, each device constituting the POS system 1 executes the following processing.

なお、以下の説明において、記録装置11が備える通信制御部201、デバイス制御部202、プリンターユニット制御部203の各機能ブロックの機能は、例えば、以下のようにして実現される。
例えば、これら機能ブロックは、オブジェクトである。オブジェクトとは、オブジェクト指向プログラミングで生成されるインスタンス、すなわち、データ、及び、メソッドの集合として定義された機能ブロックである。そして、これら機能ブロックの機能は、オブジェクトに実装されたメソッドが呼び出されることによって実現される。
また例えば、これら機能ブロックの機能は、アプリケーションがCPU等のハードウェアによって読み出され実行されることによって実現される。1つのアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。また、1つのアプリケーションにより複数の機能ブロックの機能が実現される構成であってもよい。また、複数のアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。
すなわち、各機能ブロックは、機能をブロックとして便宜的に表現したものであり、特定のアプリケーションや、ハードウェア等を意味するものではない。
In the following description, the functions of the functional blocks of the communication control unit 201, the device control unit 202, and the printer unit control unit 203 included in the recording apparatus 11 are realized as follows, for example.
For example, these functional blocks are objects. An object is a function block defined as a set of instances, that is, data and methods generated by object-oriented programming. The functions of these functional blocks are realized by calling a method implemented in the object.
Further, for example, the functions of these functional blocks are realized by an application being read and executed by hardware such as a CPU. A configuration in which the function of one functional block is realized by one application may be employed. Moreover, the structure by which the function of a some functional block is implement | achieved by one application may be sufficient. Moreover, the structure by which the function of one functional block is implement | achieved by several applications may be sufficient.
That is, each functional block expresses a function as a block for convenience, and does not mean a specific application, hardware, or the like.

図4は、記録装置11にデバイス(本実施形態では、バーコードスキャナー12、又は、カードリーダー13)が物理的に接続されたときの、記録装置11の動作を示すフローチャートである。
図4に示すように、記録装置11の制御部20のデバイス制御部202は、記録装置11にデバイスが新たに接続されたか否かを監視する(ステップSA1)。本実施形態では、デバイス通信部24は、デバイスが新たに接続された場合、USBの規格に従ってそのことを検出し、デバイスが新たに接続された旨と共にデバイスが接続されたポートのポート番号を示すデータをデバイス制御部202に出力する。デバイス制御部202は、当該データがデバイス通信部24から入力された場合、記録装置11に新たにデバイスが接続されたと判別する。
FIG. 4 is a flowchart showing the operation of the recording apparatus 11 when a device (in this embodiment, the barcode scanner 12 or the card reader 13) is physically connected to the recording apparatus 11.
As shown in FIG. 4, the device control unit 202 of the control unit 20 of the recording apparatus 11 monitors whether or not a device is newly connected to the recording apparatus 11 (step SA1). In the present embodiment, when a device is newly connected, the device communication unit 24 detects that according to the USB standard, and indicates the port number of the port to which the device is connected together with the fact that the device has been newly connected. Data is output to the device control unit 202. When the data is input from the device communication unit 24, the device control unit 202 determines that a new device is connected to the recording apparatus 11.

以下の説明では、記録装置11に新たに接続されたデバイスを、「新デバイス」と表現する。   In the following description, a device newly connected to the recording apparatus 11 is expressed as “new device”.

記録装置11に新デバイスが接続された場合(ステップSA1:YES)、デバイス制御部202は、新デバイスと通信し、新デバイスの接続情報を取得する(ステップSA2)。本実施形態では、接続情報は、USB機器に付与されるベンダーIDと、プロダクトIDとの組み合わせである。   When a new device is connected to the recording apparatus 11 (step SA1: YES), the device control unit 202 communicates with the new device and acquires connection information of the new device (step SA2). In this embodiment, the connection information is a combination of a vendor ID assigned to a USB device and a product ID.

次いで、デバイス制御部202は、ステップSA2で取得した接続情報に基づいて、新デバイスが、記録装置11がサポートするデバイスであるか否かを判別する(ステップSA3)。記録装置11がサポートするデバイスとは、対応するデバイスドライバーがインストールされており、デバイスドライバーの機能によって正常に制御可能なデバイスのことである。記憶部22には、サポートするデバイスの接続情報を示す情報が記憶されており、デバイス制御部202は、当該情報に基づいて、新デバイスが、記録装置11がサポートするデバイスであるか否かを判別する。   Next, the device control unit 202 determines whether or not the new device is a device supported by the recording apparatus 11 based on the connection information acquired in Step SA2 (Step SA3). A device supported by the recording apparatus 11 is a device in which a corresponding device driver is installed and can be normally controlled by the function of the device driver. The storage unit 22 stores information indicating connection information of devices to be supported, and the device control unit 202 determines whether or not the new device is a device supported by the recording apparatus 11 based on the information. Determine.

新デバイスが、記録装置11がサポートしないデバイスの場合(ステップSA3:NO)、デバイス制御部202は、処理を終了する。その際、新デバイスが、記録装置11がサポートしないデバイスであることに対応する処理を実行してもよい。例えば、デバイス制御部202は、タブレット端末10にその旨のデータを送信し、タブレット端末10で、接続されたデバイスがサポートされない旨の情報をタッチパネル28に表示して、ユーザーにその旨表示する等の処理を行ってもよい。   When the new device is a device that the recording apparatus 11 does not support (step SA3: NO), the device control unit 202 ends the process. At that time, processing corresponding to the new device being a device that the recording apparatus 11 does not support may be executed. For example, the device control unit 202 transmits data indicating the fact to the tablet terminal 10, displays information indicating that the connected device is not supported on the touch panel 28, and displays the information to the user. You may perform the process of.

新デバイスが、記録装置11がサポートするデバイスの場合(ステップSA3:YES)、デバイス制御部202は、新デバイスのデバイス種類を判別し、取得する(ステップSA4)。デバイス種類とは、デバイスの種類であり、本実施形態で例示する「バーコードスキャナー」や、「カードリーダー」のほか、例えば、「キーボード」や、「カスタマーディスプレー」等がある。記憶部22には、接続情報と、デバイス種類との関係を示す情報が記憶されており、デバイス制御部202は、当該情報に基づいて、新デバイスのデバイス種類を判別し、取得する。   If the new device is a device supported by the recording apparatus 11 (step SA3: YES), the device control unit 202 determines and acquires the device type of the new device (step SA4). The device type is the type of device, and includes “barcode scanner” and “card reader” exemplified in the present embodiment, for example, “keyboard” and “customer display”. The storage unit 22 stores information indicating the relationship between the connection information and the device type, and the device control unit 202 determines and acquires the device type of the new device based on the information.

次いで、デバイス制御部202は、記憶部22が記憶する接続デバイスリストLSを参照し、ステップSA4で取得したデバイス種類と同一のデバイス種類のデバイスに関する情報が既に登録された状態にあるか否かを判別する。さらに、デバイス制御部202は、ステップSA4で判別したデバイス種類と同一のデバイス種類のデバイスに関する情報が既に登録された状態にある場合は、登録された情報の個数を判別する(ステップSA5)。   Next, the device control unit 202 refers to the connected device list LS stored in the storage unit 22, and determines whether or not information related to a device of the same device type as that acquired in step SA4 is already registered. Determine. Furthermore, when the information related to the device of the same device type as that determined in step SA4 is already registered, the device control unit 202 determines the number of registered information (step SA5).

図5は、接続デバイスリストLSに登録される情報を模式的に示す図である。接続デバイスリストLSは、記録装置11に接続中のデバイスについて、接続情報と、デバイス種類と、デバイス識別情報(識別情報)と、デバイスドライバー名とを対応付けた情報(以下、「接続デバイス情報」という。)が登録されたリストである。デバイス識別情報、及び、デバイスドライバー名については後述する。
ステップSA5において、デバイス制御部202は、接続デバイスリストLSを参照し、当該リストに、ステップSA4で取得したデバイス種類と同一のデバイス種類を有する接続デバイス情報(以下、「対応接続デバイス情報」という。)が登録された状態にあるか否かを判別する。対応接続デバイス情報が接続デバイスリストLSに登録された状態にあるということは、新デバイスの接続時に、既に、新デバイスのデバイス種類と同一のデバイス種類のデバイスが記録装置11に接続された状態にあるということである。
対応接続デバイス情報が登録された状態にある場合、デバイス制御部202は、登録された状態にある対応接続デバイス情報の個数を判別する。ここで判別した対応接続デバイス情報の個数は、新デバイスの接続時に既に記録装置11に接続された状態にある、新デバイスのデバイス種類と同一のデバイス種類のデバイスの個数である。
FIG. 5 is a diagram schematically showing information registered in the connected device list LS. The connected device list LS is information (hereinafter referred to as “connected device information”) that associates connection information, device types, device identification information (identification information), and device driver names with respect to devices connected to the recording apparatus 11. Is a registered list. The device identification information and device driver name will be described later.
In step SA5, the device control unit 202 refers to the connection device list LS, and the list includes connection device information (hereinafter referred to as “corresponding connection device information”) having the same device type as the device type acquired in step SA4. ) Is in a registered state. The fact that the corresponding connected device information is registered in the connected device list LS means that a device of the same device type as that of the new device is already connected to the recording apparatus 11 when the new device is connected. That is.
When the corresponding connection device information is in a registered state, the device control unit 202 determines the number of corresponding connection device information in the registered state. The number of corresponding connected device information determined here is the number of devices of the same device type as the device type of the new device that is already connected to the recording apparatus 11 when the new device is connected.

ステップSA5の処理後、デバイス制御部202は、ステップSA5の判別結果に基づいて、デバイス識別情報を新デバイスに付与する(ステップSA6)。
デバイス識別情報とは、1台の記録装置11に接続されたデバイスを識別する識別情報である。従って、1台の記録装置11に複数のデバイスが接続された状態にある場合、各デバイスには、異なる値のデバイス識別情報が付与される。
また、後に明らかとなる通り、デバイス識別情報の値は、当該情報に基づいてタブレット端末10が、対応するデバイス種類を特定(認識)できる値とされる。タブレット端末10は、デバイス識別情報に基づいて、デバイス種類を特定し、デバイス種類に応じた処理を実行する。
また、後に明らかとなる通り、同じ店舗に設けられた1の記録装置11と、他の記録装置11のそれぞれに、1のデバイス種類のデバイスを接続した場合、当該1の記録装置11によって付与されるデバイス識別情報の値と、当該他の記録装置11によって付与されるデバイス識別情報の値とは、同一となる。さらに、この状態で、当該1のデバイス種類のデバイスを当該1の記録装置11に2台目のデバイスとして接続し、当該1のデバイス種類のデバイスを当該他の記録装置11に2台目のデバイスとして接続した場合、各記録装置11に接続された2台目のデバイスに、各記録装置11によって付与されるデバイス識別情報の値も同一となる。
以下、ステップSA6の処理について、ステップSA5において対応接続デバイス情報が登録された状態にないと判別した場合と、当該情報が登録された状態にあると判別した場合とに場合分けして詳細に説明する。
After the process of step SA5, the device control unit 202 assigns device identification information to the new device based on the determination result of step SA5 (step SA6).
The device identification information is identification information for identifying a device connected to one recording apparatus 11. Accordingly, when a plurality of devices are connected to one recording apparatus 11, different values of device identification information are assigned to each device.
Further, as will be apparent later, the value of the device identification information is a value that allows the tablet terminal 10 to identify (recognize) the corresponding device type based on the information. The tablet terminal 10 specifies the device type based on the device identification information, and executes processing according to the device type.
Further, as will become clear later, when a device of one device type is connected to each of one recording apparatus 11 and another recording apparatus 11 provided in the same store, the one recording apparatus 11 gives the same. The value of the device identification information and the value of the device identification information given by the other recording device 11 are the same. Further, in this state, the device of the one device type is connected to the first recording apparatus 11 as the second device, and the device of the first device type is connected to the other recording apparatus 11 as the second device. , The device identification information value given by each recording device 11 to the second device connected to each recording device 11 is also the same.
Hereinafter, the processing in step SA6 will be described in detail depending on the case where it is determined in step SA5 that the corresponding connected device information is not registered and the case where it is determined that the information is registered. To do.

<対応接続デバイス情報が登録された状態にないと判別した場合のステップSA6の処理>
ステップSA5で対応接続デバイス情報が登録された状態にないと判別した場合、デバイス制御部202は、以下のようにしてデバイス識別情報を付与する。
すなわち、記憶部22には、デバイス種類ごとに、デバイス種類と、デバイス識別情報とを対応付けたテーブル(以下、「識別情報テーブル」という。)が記憶される。例えば、識別情報テーブルでは、デバイス種類「バーコードスキャナー」と、デバイス識別情報「local_scanner」とが対応付けられる。また例えば、識別情報テーブルでは、デバイス種類「カードリーダー」と、デバイス識別情報「local_cardreader」とが対応付けられる。
ステップSA6で、デバイス制御部202は、識別情報テーブルを参照し、当該テーブルにおいてステップSA4で取得したデバイス種類と対応付けられたデバイス識別情報を取得する。そして、デバイス制御部202は、取得したデバイス識別情報を、新デバイスに付与する。
なお、同一の店舗に設けられた記録装置11が記憶する識別情報テーブルにおけるデバイス種類ごとの、デバイス識別情報の値は同一とされる。例えば、1の記録装置11で、識別情報テーブルにおいて、デバイス種類「バーコードスキャナー」とデバイス識別情報「local_scanner」とが対応付けられた状態にある場合、同一の店舗に設けられた他の記録装置11の識別情報テーブルにおいてもデバイス種類「バーコードスキャナー」とデバイス識別情報「local_scanner」とが対応付けられる。このことによるメリットについては後述する。
<Processing of Step SA6 when it is determined that the corresponding connected device information is not registered>
If it is determined in step SA5 that the corresponding connected device information is not registered, the device control unit 202 assigns device identification information as follows.
That is, the storage unit 22 stores a table in which device types and device identification information are associated with each device type (hereinafter referred to as “identification information table”). For example, in the identification information table, the device type “barcode scanner” and the device identification information “local_scanner” are associated with each other. For example, in the identification information table, the device type “card reader” and the device identification information “local_cardreader” are associated with each other.
In step SA6, the device control unit 202 refers to the identification information table, and acquires device identification information associated with the device type acquired in step SA4 in the table. Then, the device control unit 202 gives the acquired device identification information to the new device.
Note that the value of the device identification information for each device type in the identification information table stored in the recording device 11 provided in the same store is the same. For example, when one recording apparatus 11 is in a state where the device type “barcode scanner” and the device identification information “local_scanner” are associated with each other in the identification information table, another recording apparatus provided in the same store In the 11 identification information table, the device type “barcode scanner” and the device identification information “local_scanner” are associated with each other. The merit of this will be described later.

<対応接続デバイス情報が登録された状態にあると判別した場合のステップSA6の処理>
ステップSA5で対応接続デバイス情報が登録された状態にあると判別した場合、デバイス制御部202は、以下のようにしてデバイス識別情報を付与する。
デバイス制御部202は、上述した識別情報テーブルを参照し、当該テーブルにおいてステップSA4で取得したデバイス種類と対応付けられたデバイス識別情報を取得する。
次いで、デバイス制御部202は、取得したデバイス識別情報の値を、既に登録された状態にある対応接続デバイス情報の個数(=既に記録装置11に接続された状態にある新デバイスのデバイス種類と同一のデバイス種類のデバイスの個数)に応じて、所定のルールに従って、変更する。
具体的には、デバイス制御部202は、付与するデバイス識別情報の値を、「(識別情報テーブルに基づいて取得したデバイス識別情報の値)_(n+1)」とする(ただし、nは、登録されている対応接続デバイス情報の個数を示す正の整数)。例えば、識別情報テーブルに基づいて取得したデバイス識別情報の値が「local_scanner」であり、登録された状態にある対応接続デバイス情報の個数が「1」である場合、デバイス制御部202は、デバイス識別情報の値を「local_scanner_2」とする。また例えば、識別情報テーブルに基づいて取得したデバイス識別情報の値が「local_scanner」であり、登録された状態にある対応接続デバイス情報の個数が「3」である場合、デバイス制御部202は、デバイス識別情報の値を「local_scanner_4」とし、当該値のデバイス識別情報を新デバイスに付与する。
<Processing of Step SA6 when it is determined that the corresponding connected device information is registered>
If it is determined in step SA5 that the corresponding connection device information is registered, the device control unit 202 assigns device identification information as follows.
The device control unit 202 refers to the above-described identification information table, and acquires device identification information associated with the device type acquired in step SA4 in the table.
Next, the device control unit 202 sets the value of the acquired device identification information to be the same as the number of the corresponding connected device information already registered (= the device type of the new device already connected to the recording apparatus 11). The number of devices of the device type is changed according to a predetermined rule.
Specifically, the device control unit 202 sets the value of the device identification information to be assigned to “(value of device identification information acquired based on the identification information table) _ (n + 1)” (where n is a registered value) Positive integer indicating the number of supported connected device information). For example, when the value of the device identification information acquired based on the identification information table is “local_scanner” and the number of corresponding connected device information in the registered state is “1”, the device control unit 202 performs device identification. The value of the information is “local_scanner_2”. For example, when the value of the device identification information acquired based on the identification information table is “local_scanner” and the number of corresponding connection device information in the registered state is “3”, the device control unit 202 The value of the identification information is “local_scanner_4”, and the device identification information of the value is given to the new device.

なお、デバイス制御部202は、デバイス識別情報の値を生成する際、上述したルールで生成される値のデバイス識別情報を有する対応接続デバイス情報が既に登録されている場合、既に存在する対応接続デバイス情報のデバイス識別情報の値と、生成するデバイス識別情報の値が異なるように、生成するデバイス識別情報の値を調整する。調整に際し、デバイス制御部20は、デバイス識別情報の値を、上述したルールに従って生成される値であって、既に生成された登録されたデバイス識別情報の値と重複せず、最も小さい値とする。
例えば、上述したルールで生成されるデバイス識別情報の値が、「local_scanner_3」である場合であって、「local_scanner_3」のデバイス識別情報を有する対応接続デバイス情報が既に登録されているとする。この場合において、「local_scanner_2」のデバイス識別情報を有する対応接続デバイス情報が登録されており、「local_scanner」のデバイス識別情報を有する対応接続デバイス情報が登録されていない場合、デバイス制御部202は、デバイス識別情報の値を、「local_scanner」とする。
このように、デバイス制御部202により、デバイス識別情報の値が調整されることにより、重複した値のデバイス識別情報を有する接続デバイス情報が登録されることが防止される。
In addition, when the device control unit 202 generates the value of the device identification information, if the corresponding connection device information having the device identification information of the value generated by the above-described rule has already been registered, the corresponding connection device that already exists The value of the device identification information to be generated is adjusted so that the value of the device identification information in the information is different from the value of the device identification information to be generated. At the time of adjustment, the device control unit 20 sets the value of the device identification information to the smallest value that is generated according to the above-described rules and does not overlap with the value of the already generated registered device identification information. .
For example, it is assumed that the value of the device identification information generated by the above-described rule is “local_scanner_3”, and the corresponding connection device information having the device identification information “local_scanner_3” has already been registered. In this case, when the corresponding connection device information having the device identification information “local_scanner_2” is registered, and the corresponding connection device information having the device identification information “local_scanner” is not registered, the device control unit 202 The value of the identification information is “local_scanner”.
As described above, the device control unit 202 adjusts the value of the device identification information, thereby preventing connection device information having overlapping device identification information from being registered.

次いで、デバイス制御部202は、ステップSA2で取得した接続情報に基づいて、新デバイスを制御するデバイスドライバー(制御プログラム)を判別し、判別したデバイスドライバーのデバイスドライバー名(制御プログラムを示す情報)を取得する(ステップSA7)。デバイスドライバーのデバイスドライバー名は、デバイスドライバーのプログラムファイルのファイル名であり、特に、デバイスドライバーがスクリプトである場合スクリプトのファイル名である。
記憶部22には、接続情報と、デバイスドライバーのデバイスドライバー名との関係を示す情報が記憶されており、デバイス制御部202は、当該情報に基づいて、デバイスドライバー名を取得する。ここで取得したデバイスドライバー名のデバイスドライバーは、デバイスの種類に応じた制御プログラムである。
Next, the device control unit 202 determines a device driver (control program) that controls the new device based on the connection information acquired in step SA2, and the device driver name (information indicating the control program) of the determined device driver. Obtain (step SA7). The device driver name of the device driver is the file name of the program file of the device driver, and particularly the file name of the script when the device driver is a script.
The storage unit 22 stores information indicating the relationship between the connection information and the device driver name of the device driver, and the device control unit 202 acquires the device driver name based on the information. The device driver with the device driver name acquired here is a control program corresponding to the type of device.

ここで、図3に示すように、デバイス制御部202は、バーコードスキャナー制御部2021と、カードリーダー制御部2022と、を備える。これら機能ブロックは、それぞれ、新デバイスとして接続されたデバイスを制御するデバイスドライバーの機能により実現される機能ブロックである。   Here, as shown in FIG. 3, the device control unit 202 includes a barcode scanner control unit 2021 and a card reader control unit 2022. Each of these functional blocks is a functional block realized by a function of a device driver that controls a device connected as a new device.

次いで、デバイス制御部202は、接続デバイスリストLSに新デバイスの接続デバイス情報を登録する(ステップSA8)。詳述すると、デバイス制御部202は、ステップSA2で取得した接続情報と、ステップSA4で取得したデバイス種類と、ステップSA6で付与したデバイス識別情報と、ステップSA7で取得したデバイスドライバー名とを対応付ける接続デバイス情報を、接続デバイスリストLSに登録する。   Next, the device control unit 202 registers the connected device information of the new device in the connected device list LS (step SA8). More specifically, the device control unit 202 associates the connection information acquired in step SA2, the device type acquired in step SA4, the device identification information provided in step SA6, and the device driver name acquired in step SA7. Register the device information in the connected device list LS.

新デバイスの接続デバイス情報の接続デバイスリストLSへの登録後、新デバイスは、接続デバイスリストLSに基づいて制御される。
すなわち、新デバイスとの間の通信は、新デバイスの接続デバイス情報が有するデバイスドライバー名のデバイスドライバーの機能により実現される機能ブロックが実行する。
例えば、新デバイスが図3のバーコードスキャナー12であり、機能ブロックが図3のバーコードスキャナー制御部2021である場合、バーコードスキャナー制御部2021は、以下の処理を行う。バーコードスキャナー制御部2021は、バーコードスキャナー12が接続されたポートのポート番号を管理し、当該ポートを介してバーコードスキャナー12と通信する。例えば、バーコードスキャナー12が接続されたポートから入力されたデータは、バーコードスキャナー制御部2021に出力され、バーコードスキャナー制御部2021が処理する。
また、バーコードスキャナー制御部2021は、バーコードスキャナー12からデータが入力された場合、データの出力元のデバイス(本例では、バーコードスキャナー12)の接続情報を取得する。ここで、記憶部22が記憶する所定のテーブルで、各ポートについて、ポート番号と、ポートに接続されたデバイスの接続情報とが対応付けて管理される。デバイス制御部202は、当該所定のテーブルに基づいて、データの出力元のデバイスの接続情報を取得する。そして、バーコードスキャナー制御部2021は、接続デバイスリストLSにおいて、取得した接続情報と対応付けられたデバイス識別情報を、データの出力元のデバイスのデバイス識別情報として取得する。
After the connection information of the new device is registered in the connection device list LS, the new device is controlled based on the connection device list LS.
That is, the communication with the new device is executed by a function block realized by the function of the device driver having the device driver name included in the connection device information of the new device.
For example, when the new device is the barcode scanner 12 of FIG. 3 and the functional block is the barcode scanner control unit 2021 of FIG. 3, the barcode scanner control unit 2021 performs the following processing. The barcode scanner control unit 2021 manages the port number of the port to which the barcode scanner 12 is connected, and communicates with the barcode scanner 12 via the port. For example, data input from a port to which the barcode scanner 12 is connected is output to the barcode scanner control unit 2021 and processed by the barcode scanner control unit 2021.
Further, when data is input from the barcode scanner 12, the barcode scanner control unit 2021 acquires connection information of a data output source device (in this example, the barcode scanner 12). Here, in the predetermined table stored in the storage unit 22, for each port, the port number and the connection information of the device connected to the port are managed in association with each other. The device control unit 202 acquires connection information of the device from which the data is output based on the predetermined table. Then, the barcode scanner control unit 2021 acquires the device identification information associated with the acquired connection information in the connection device list LS as the device identification information of the data output source device.

このように、本実施形態では、新デバイスが接続されたときに、記録装置11の制御部20は、自動で、新デバイスの接続デバイス情報を、接続デバイスリストLSに登録する。ここで、従来は、接続デバイスリストLSへの接続デバイス情報の登録は以下のようにして行われていた。すなわち、ユーザーは、新デバイスを記録装置11に接続したときに、専用のソフトウェアルールがインストールされた専用の端末を記録装置11に接続する。ユーザーは、ソフトウェアツールの機能により提供されるユーザーインターフェースに、接続した新デバイスの接続情報、デバイス種類、デバイス識別情報、及び、デバイスドライバー名を入力する。専用の端末は、ソフトウェアツールの機能により、入力された各情報を記録装置11に送信する。記録装置11の制御部20は、受信した情報に基づいて、接続デバイスリストLSに接続デバイス情報を登録する。一方で、本実施形態によれば、接続デバイス情報の接続デバイスリストLSへの登録に際し、上述したユーザーの作業が必要ないため、ユーザーが行う作業が低減する。   As described above, in this embodiment, when a new device is connected, the control unit 20 of the recording apparatus 11 automatically registers the connected device information of the new device in the connected device list LS. Here, conventionally, the connection device information is registered in the connection device list LS as follows. That is, when a user connects a new device to the recording apparatus 11, the user connects a dedicated terminal in which a dedicated software rule is installed to the recording apparatus 11. The user inputs the connection information, device type, device identification information, and device driver name of the connected new device in the user interface provided by the function of the software tool. The dedicated terminal transmits each input information to the recording device 11 by the function of the software tool. The control unit 20 of the recording device 11 registers the connected device information in the connected device list LS based on the received information. On the other hand, according to the present embodiment, when the connection device information is registered in the connection device list LS, the above-described user operation is not required, so that the user's operation is reduced.

次に、記録装置11に接続されたデバイスについて、接続が解除された場合の記録装置11の動作について説明する。
図6は、デバイスの接続が解除された場合の記録装置11の動作を示すフローチャートである。
Next, the operation of the recording apparatus 11 when the connection is released for the device connected to the recording apparatus 11 will be described.
FIG. 6 is a flowchart showing the operation of the recording apparatus 11 when the connection of the device is released.

図6に示すように、記録装置11の制御部20のデバイス制御部202は、記録装置11に接続されたデバイスについて、接続が解除されたか否かを監視する(ステップSB1)。本実施形態では、デバイス通信部24は、デバイスの接続が解除された場合、USBの規格に従ってそのことを検出し、接続が解除された旨と共に接続が解除されたポートのポート番号を示すデータをデバイス制御部202に出力する。デバイス制御部202は、当該データがデバイス通信部24から入力された場合、デバイスの接続が解除されたと判別する。   As shown in FIG. 6, the device control unit 202 of the control unit 20 of the recording apparatus 11 monitors whether or not the connection of the device connected to the recording apparatus 11 has been released (step SB1). In the present embodiment, when the device connection is released, the device communication unit 24 detects that in accordance with the USB standard, and indicates data indicating the connection release and the port number of the released port. Output to the device control unit 202. When the data is input from the device communication unit 24, the device control unit 202 determines that the device connection is released.

デバイスの接続が解除されたことを検出した場合(ステップSB1:YES)、デバイス制御部202は、接続デバイスリストLSを参照し、接続が解除されたデバイスの接続デバイス情報が、接続デバイスリストLSに登録された状態にあるか否かを判別する(ステップSB2)。ステップSB2で、デバイス制御部202は、ポート番号と、デバイスの接続情報とが対応付けられた所定のテーブルに基づいて、接続が解除されたデバイスの接続情報を取得する。そして、デバイス制御部202は、取得した接続情報を有する接続デバイス情報が、接続デバイスリストLSに登録された状態にあるか否かを判別する。   When it is detected that the connection of the device has been released (step SB1: YES), the device control unit 202 refers to the connection device list LS, and the connection device information of the device that has been disconnected is displayed in the connection device list LS. It is determined whether or not it is in a registered state (step SB2). In step SB2, the device control unit 202 acquires connection information of a device that has been disconnected based on a predetermined table in which port numbers and device connection information are associated with each other. Then, the device control unit 202 determines whether or not the connected device information including the acquired connection information is registered in the connected device list LS.

接続が解除されたデバイスの接続デバイス情報が、接続デバイスリストLSに登録された状態にない場合(ステップSB2:NO)、デバイス制御部202は、処理を終了する。例えば、デバイスの接続が正常に行われていなかった場合や、デバイスがサポート外であった場合、接続デバイスリストLSに登録された状態にない場合があり得る。   If the connected device information of the device that has been disconnected is not registered in the connected device list LS (step SB2: NO), the device control unit 202 ends the process. For example, when the connection of the device is not normally performed or when the device is not supported, the device may not be registered in the connected device list LS.

接続が解除されたデバイスの接続デバイス情報が、接続デバイスリストLSに登録された状態にある場合(ステップSB2:YES)、デバイス制御部202は、接続デバイスリストLSから、当該接続デバイス情報を削除する(ステップSB3)。
ステップSB3の処理により、接続が解除されたデバイスの接続デバイス情報を削除した後の接続デバイスリストLSには、実際に接続された状態にあるデバイスの接続デバイス情報だけが登録された状態を維持できる。これにより、デバイス制御部202により、新デバイスが接続されたときに、新デバイスのデバイス種類と同一のデバイス種類のデバイスが既に接続された状態であると判別されることが防止され、新デバイスに適切な値のデバイス識別情報が付与される。
When the connection device information of the device that has been disconnected is registered in the connection device list LS (step SB2: YES), the device control unit 202 deletes the connection device information from the connection device list LS. (Step SB3).
In the connection device list LS after deleting the connection device information of the device that has been disconnected by the processing of step SB3, it is possible to maintain a state in which only the connection device information of the device that is actually connected is registered. . This prevents the device control unit 202 from determining that a device of the same device type as the device type of the new device is already connected when the new device is connected. Appropriate value of device identification information is given.

次に、レジカウンターLで行われる会計時のPOSシステム1の各装置の動作について説明する。   Next, the operation of each device of the POS system 1 at the time of payment performed at the checkout counter L will be described.

ここで、会計が行われる前に、タブレット端末10は、以下の処理を実行する。
すなわち、レジの担当者は、タブレット端末10のブラウザーを立ち上げ、タッチパネル28への専用ユーザーインターフェースUIの表示を指示する。当該指示に応じて、端末制御部26のブラウザー実行部261は、POSサーバー17の所定のアドレスにアクセスし、HTMLファイル等の描画ファイルを取得し、当該描画ファイルに基づいて専用ユーザーインターフェースUIを表示する。POSサーバー17において、描画ファイルの生成、送信は、アプリケーション実行部301が実行する。描画ファイルには、POSサーバー17のアプリケーション実行部301と協働して会計に係る各種処理を実行する機能を有するスクリプトが、所定のスクリプト言語によって実装される。
Here, before the accounting is performed, the tablet terminal 10 performs the following processing.
That is, the cashier person starts up the browser of the tablet terminal 10 and instructs the touch panel 28 to display the dedicated user interface UI. In response to the instruction, the browser execution unit 261 of the terminal control unit 26 accesses a predetermined address of the POS server 17, acquires a drawing file such as an HTML file, and displays a dedicated user interface UI based on the drawing file. To do. In the POS server 17, the application execution unit 301 executes generation and transmission of a drawing file. In the drawing file, a script having a function of executing various processes related to accounting in cooperation with the application execution unit 301 of the POS server 17 is implemented in a predetermined script language.

図7は、タッチパネル28に表示された専用ユーザーインターフェースUIの一例を示す図である。
図7の専用ユーザーインターフェースUIにおいて、左上部には、顧客が購入した商品の名称、商品の単価、及び、商品の数量が一覧表示される一覧表示エリア39が設けられる。一覧表示エリア39の右方には、顧客が購入した商品の合計金額、会計に際して顧客から預かった金銭の金額、及び、顧客に渡すべきお釣りの金額が表示される金額表示エリア40が設けられる。
一覧表示エリア39の下方には、バーコードスキャナー12によって読み取られたバーコードの情報(以下、「バーコード情報」という。)が表示されるバーコード情報表示エリア41が設けられる。バーコード情報は、基本的には、商品に割り当てられた商品コードである。
バーコード情報表示エリア41の下方には、カードリーダー13によって顧客の会員カードが読み取られた場合に、当該読み取りによって取得される会員番号が表示される会員番号表示エリア42が設けられる。
バーコード情報表示エリア41、及び、会員番号表示エリア42の右方には、ソフトウェアテンキー43が設けられる。
FIG. 7 is a diagram illustrating an example of the dedicated user interface UI displayed on the touch panel 28.
In the dedicated user interface UI of FIG. 7, a list display area 39 for displaying a list of product names, product unit prices, and product quantities purchased by the customer is provided in the upper left part. On the right side of the list display area 39, there is provided an amount display area 40 for displaying the total amount of products purchased by the customer, the amount of money deposited from the customer at the time of accounting, and the amount of change to be given to the customer.
Below the list display area 39, there is provided a barcode information display area 41 for displaying barcode information read by the barcode scanner 12 (hereinafter referred to as "barcode information"). Bar code information is basically a product code assigned to a product.
Below the barcode information display area 41 is provided a member number display area 42 for displaying the member number acquired by the card reader 13 when the customer's member card is read.
A software numeric keypad 43 is provided on the right side of the bar code information display area 41 and the member number display area 42.

図8は、会計時のPOSシステム1の各装置の動作を示すフローチャートである。特に、図8では、顧客がある1つの商品を購入する場合のPOSシステム1の各装置の動作を示す。(A)は記録装置11の動作を示し、(B)はタブレット端末10の動作を示し、(C)はPOSサーバー17の動作を示す。   FIG. 8 is a flowchart showing the operation of each device of the POS system 1 at the time of accounting. In particular, FIG. 8 shows the operation of each device of the POS system 1 when a customer purchases one product. (A) shows the operation of the recording device 11, (B) shows the operation of the tablet terminal 10, and (C) shows the operation of the POS server 17.

なお、図8のフローチャートの開始時点では、図4のフローチャートが示す処理が記録装置11により実行され、接続されたバーコードスキャナー12の接続デバイス情報が、接続デバイスリストLSに登録された状態である。また、バーコードスキャナー制御部2021は、バーコードスキャナー12を制御するデバイスドライバーの機能により実現される機能ブロックである。   At the start of the flowchart of FIG. 8, the processing shown in the flowchart of FIG. 4 is executed by the recording apparatus 11, and the connection device information of the connected barcode scanner 12 is registered in the connection device list LS. . The barcode scanner control unit 2021 is a functional block realized by the function of a device driver that controls the barcode scanner 12.

図8(A)に示すように、レジカウンターLで、レジの担当者は、バーコードスキャナー12によって、顧客が購入する1の商品又は商品の包装に付されたバーコードを読み取る(ステップSX1)。
バーコードスキャナー12は、読取結果に基づく読取結果データを、バーコードスキャナー12が接続されたポートを介して、記録装置11に出力する。
As shown in FIG. 8A, at the register counter L, the person in charge of the register reads, by means of the barcode scanner 12, one item purchased by the customer or a barcode attached to the product packaging (step SX1). .
The barcode scanner 12 outputs reading result data based on the reading result to the recording apparatus 11 via a port to which the barcode scanner 12 is connected.

図8(A)に示すように、記録装置11の制御部20のデバイス制御部202のバーコードスキャナー制御部2021は、バーコードスキャナー12が出力した読取結果データを取得する(ステップSC1)。   As shown in FIG. 8A, the barcode scanner control unit 2021 of the device control unit 202 of the control unit 20 of the recording apparatus 11 acquires the reading result data output from the barcode scanner 12 (step SC1).

次いで、バーコードスキャナー制御部2021は、ポート番号と、デバイスの接続情報とが対応付けられた所定のテーブルに基づいて、バーコードスキャナー12の接続情報を取得する(ステップSC2)。   Next, the barcode scanner control unit 2021 acquires the connection information of the barcode scanner 12 based on a predetermined table in which the port number is associated with the device connection information (step SC2).

次いで、バーコードスキャナー制御部2021は、接続デバイスリストLSを参照し(ステップSC3)、接続デバイスリストLSにおいて、ステップSC2で取得した接続情報と対応付けられたデバイス識別情報を取得する(ステップSC4)。   Next, the barcode scanner control unit 2021 refers to the connection device list LS (step SC3), and acquires device identification information associated with the connection information acquired in step SC2 in the connection device list LS (step SC4). .

次いで、バーコードスキャナー制御部2021は、ステップSC1で取得した読取結果データに、ステップSC4で取得したデバイス識別情報を付加する(ステップSC5)。ここで、読取結果データはヘッダーを有し、ヘッダーには、制御情報を格納可能なエリアを有する。ステップSC5で、バーコードスキャナー制御部2021は、ヘッダーの適切なエリアに、デバイス識別情報を書き込むことにより、読取結果データにデバイス識別情報を付加する。   Next, the barcode scanner control unit 2021 adds the device identification information acquired in step SC4 to the reading result data acquired in step SC1 (step SC5). Here, the read result data has a header, and the header has an area where control information can be stored. In step SC5, the barcode scanner control unit 2021 adds the device identification information to the read result data by writing the device identification information in an appropriate area of the header.

次いで、バーコードスキャナー制御部2021は、デバイス識別情報が付加された読取結果データを、通信制御部201に出力する(ステップSC6)。   Next, the barcode scanner control unit 2021 outputs the reading result data to which the device identification information is added to the communication control unit 201 (step SC6).

通信制御部201は、通信部23を制御して、デバイス識別情報が付加された読取結果データを、タブレット端末10に送信する(ステップSC7)。ここで、通信制御部201は、対応するタブレット端末10(記録装置11と同じレジカウンターLに設けられたタブレット端末10)のアドレスや、対応可能な通信規格等、タブレット端末10と通信するために必要な情報を管理する。ステップSC7で、通信制御部201は、管理する情報に基づいて、タブレット端末10と所定の通信規格に従ったコネクションを確立し、確立したコネクションで、デバイス識別情報が付加された読取結果データを送信する。   The communication control unit 201 controls the communication unit 23 to transmit the read result data with the device identification information added to the tablet terminal 10 (step SC7). Here, the communication control unit 201 communicates with the tablet terminal 10 such as the address of the corresponding tablet terminal 10 (tablet terminal 10 provided in the same register counter L as the recording device 11), a compatible communication standard, and the like. Manage the information you need. In step SC7, the communication control unit 201 establishes a connection according to a predetermined communication standard with the tablet terminal 10 based on information to be managed, and transmits reading result data to which device identification information is added through the established connection. To do.

図8(B)に示すように、タブレット端末10の端末制御部26のブラウザー実行部261は、端末通信部27を制御して、デバイス識別情報が付加された読取結果データを受信し、取得する(ステップSD1)。   As shown in FIG. 8B, the browser execution unit 261 of the terminal control unit 26 of the tablet terminal 10 controls the terminal communication unit 27 to receive and acquire the read result data to which the device identification information is added. (Step SD1).

次いで、ブラウザー実行部261は、デバイス識別情報が付加された読取結果データから、デバイス識別情報を取得する(ステップSD2)。   Next, the browser execution unit 261 acquires device identification information from the read result data to which the device identification information is added (step SD2).

次いで、ブラウザー実行部261は、ステップSD2で取得したデバイス識別情報に基づいて、読取結果データの出力元のデバイス(本例では、バーコードスキャナー12)のデバイス種類を取得する(ステップSD3)。
詳述すると、ブラウザー実行部261は、デバイス識別情報、及び、記録装置11に同一のデバイス種類のデバイスを複数接続する場合に付与されるデバイス識別情報の変化のルールと、デバイス種類との対応関係を管理する。ここで、上述したように、記録装置11に接続されたデバイスには、デバイス種類に対応するデバイス識別情報が付与される。特に、同一の店舗に設けられた各記録装置11は、1のデバイス種類のデバイスが接続された場合、1台目の場合は同一の値のデバイス識別情報を付与し、2台目以降の場合は同一のルールの従って値を変化させたデバイス識別情報を付与する。従って、ブラウザー実行部261は、デバイス識別情報、及び、同一のデバイス種類のデバイスが複数接続されるときのデバイス識別情報の値の変化のルールと、デバイス種類との対応関係を管理することにより、ステップSD2で取得したデバイス識別情報に基づいて、データの出力元のデバイスのデバイス種類を取得できる。
ここで、本実施形態では、同一の店舗内に設けられた各記録装置11は、同一のデバイス種類のデバイスに対して、同一の値の、又は、同一のルールに従って変化させた値のデバイス識別情報を付与する。このため、同一の店舗内に設けられるタブレット端末10のそれぞれは、デバイス識別情報とデバイス種類との対応関係に関し、同一の内容の情報を管理すればよい。すなわち、タブレット端末10は、自身に対応する記録装置11(同一のレジカウンターLに設けられた記録装置11)に応じて、デバイス識別情報とデバイス種類との対応関係の内容を変化させる必要がない。
Next, the browser execution unit 261 acquires the device type of the device (barcode scanner 12 in this example) that is the output source of the read result data based on the device identification information acquired in step SD2 (step SD3).
More specifically, the browser execution unit 261 corresponds to the device identification information, a rule for changing the device identification information given when a plurality of devices of the same device type are connected to the recording apparatus 11, and the device type. Manage. Here, as described above, device identification information corresponding to the device type is given to the device connected to the recording apparatus 11. In particular, each recording device 11 provided in the same store, when a device of one device type is connected, gives device identification information of the same value in the case of the first device, and in the case of the second device or later Gives device identification information whose value is changed according to the same rule. Therefore, the browser execution unit 261 manages the correspondence between the device identification information and the rule of change in the value of the device identification information when a plurality of devices of the same device type are connected, and the device type. Based on the device identification information acquired in step SD2, the device type of the data output source device can be acquired.
Here, in the present embodiment, each recording device 11 provided in the same store has a device identification of the same value or a value changed according to the same rule with respect to a device of the same device type. Give information. For this reason, each tablet terminal 10 provided in the same store may manage information of the same content regarding the correspondence between the device identification information and the device type. That is, the tablet terminal 10 does not need to change the content of the correspondence relationship between the device identification information and the device type according to the recording device 11 corresponding to itself (the recording device 11 provided in the same register counter L). .

なお、異なる店舗に設けられる記録装置11について、同一のデバイス種類のデバイスに付与するデバイス識別情報を同一とし、また、同一のルールで値を変化させる構成としてもよいことは勿論である。   Of course, the recording devices 11 provided in different stores may have the same device identification information given to devices of the same device type, and the value may be changed according to the same rule.

データの出力元のデバイスのデバイス種類を取得した後、ブラウザー実行部261は、取得したデバイス種類に応じて、読取結果データに基づく処理を実行する(ステップSD4、ステップSD5、ステップSD6)。本例では、ステップSD3で取得されるデバイス種類は、「バーコードスキャナー」であるため、ステップSD4〜ステップSD6で、ブラウザー実行部261は、デバイス種類「バーコードスキャナー」に応じた処理を実行する。以下詳述する。   After acquiring the device type of the data output source device, the browser execution unit 261 executes processing based on the read result data in accordance with the acquired device type (step SD4, step SD5, step SD6). In this example, since the device type acquired in step SD3 is “barcode scanner”, in steps SD4 to SD6, the browser execution unit 261 executes processing corresponding to the device type “barcode scanner”. . This will be described in detail below.

ブラウザー実行部261は、読取結果データの出力元のデバイスのデバイス種類が「バーコードスキャナー」であるので、読取結果データが示す情報が、バーコード情報(本例では、商品コード)であることを認識する。当該認識に基づいて、ブラウザー実行部261は、読取結果データに基づいて商品コードを取得する。次いで、ブラウザー実行部261は、専用ユーザーインターフェースUIのバーコード情報表示エリア41に、取得した商品コードを表示する(ステップSD4)。   The browser execution unit 261 determines that the information indicated by the read result data is bar code information (product code in this example) because the device type of the device from which the read result data is output is “bar code scanner”. recognize. Based on the recognition, the browser execution unit 261 acquires a product code based on the read result data. Next, the browser execution unit 261 displays the acquired product code in the barcode information display area 41 of the dedicated user interface UI (Step SD4).

次いで、ブラウザー実行部261は、POSサーバー17のサーバー制御部30のアプリケーション実行部301と通信し、商品コードに対応する商品の名称、商品の単価を問い合わせる(ステップSD5)。アプリケーション実行部301は、問い合わせに応じて、適切なデータベースから適切な情報を取得し、商品の名称、及び、商品の単価を応答する(ステップSE1)。   Next, the browser execution unit 261 communicates with the application execution unit 301 of the server control unit 30 of the POS server 17, and inquires about the name of the product corresponding to the product code and the unit price of the product (step SD5). In response to the inquiry, the application execution unit 301 acquires appropriate information from an appropriate database, and responds with the name of the product and the unit price of the product (step SE1).

ブラウザー実行部261は、応答された商品の名称、及び、商品の単価を取得し、商品の名称、商品の単価、及び、商品の数量を一覧表示エリア39に表示する。さらに、ブラウザー実行部261は、金額表示エリア40の所定の欄に、顧客が購入した商品の合計金額を表示する(ステップSD6)。   The browser execution unit 261 acquires the name of the responded product and the unit price of the product, and displays the name of the product, the unit price of the product, and the quantity of the product in the list display area 39. Further, the browser execution unit 261 displays the total price of the products purchased by the customer in a predetermined column of the price display area 40 (Step SD6).

次いで、レジの担当者によって、ソフトウェアテンキー43を介して、会計すべき商品を確定する旨の操作が行われると、レジ担当者によって、顧客からの代金の預かり、及び、お釣りの返却が行われる。ブラウザー実行部261は、適宜、アプリケーション実行部301と通信し、これら作業に応じて、金額表示エリア40の適切な欄に適切な情報を表示する(ステップSD7)。   Next, when the cashier person performs an operation for confirming the product to be checked through the software numeric keypad 43, the cashier person takes care of the price from the customer and returns the change. . The browser execution unit 261 appropriately communicates with the application execution unit 301, and displays appropriate information in an appropriate column of the money amount display area 40 according to these operations (step SD7).

次いで、ブラウザー実行部261は、プリンターユニット21に発行させるレシートに関する情報が含まれた記録データを生成する(ステップSD8)。本実施形態では、記録データは、XMLドキュメントであり、記録データには、XMLに係るフォーマットに従って、レシートに記録すべき文字や画像の情報等、レシートを発行するのに必要な情報が含まれる。   Next, the browser execution unit 261 generates recording data including information relating to a receipt to be issued to the printer unit 21 (step SD8). In this embodiment, the recording data is an XML document, and the recording data includes information necessary for issuing a receipt, such as information on characters and images to be recorded on the receipt, in accordance with the format related to XML.

次いで、ブラウザー実行部261は、端末通信部27を制御して、生成した記録データを、記録装置11に送信する(ステップSD9)。   Next, the browser execution unit 261 controls the terminal communication unit 27 to transmit the generated recording data to the recording device 11 (step SD9).

図8(A)に示すように、ブラウザー実行部261による記録データの送信に応じて、記録装置11の通信制御部201は、通信部23を制御して、記録データを受信する(ステップSC8)   As shown in FIG. 8A, the communication control unit 201 of the recording apparatus 11 controls the communication unit 23 to receive the recording data in response to the transmission of the recording data by the browser execution unit 261 (step SC8).

次いで、通信制御部201は、受信した記録データを、プリンターユニット制御部203に出力する(ステップSC9)。   Next, the communication control unit 201 outputs the received recording data to the printer unit control unit 203 (step SC9).

プリンターユニット制御部203は、入力された記録データに基づいて、プリンターユニット21のコマンド体系に従った制御コマンドであって、プリンターユニット21にレシートの発行に係る各種処理を行わせる制御コマンドを生成し、プリンターユニット21に出力する(ステップSC10)。   The printer unit control unit 203 generates a control command according to the command system of the printer unit 21 based on the input recording data, and causes the printer unit 21 to perform various processes related to receipt issuance. And output to the printer unit 21 (step SC10).

プリンターユニット21の制御回路は、制御コマンドに基づいて、各種機構を制御し、レシートを発行する(ステップSC11)。   Based on the control command, the control circuit of the printer unit 21 controls various mechanisms and issues a receipt (step SC11).

なお、図8のフローチャートを用いた説明では、主に、バーコードスキャナー12の読み取りが行われた場合のブラウザー実行部261の処理を説明したが、カードリーダー13による読み取りが行われた場合も、同様の処理が行われる。すなわち、ブラウザー実行部261は、受信した読取結果データに付加されたデバイス識別情報に基づいて、データの出力元のデバイスのデバイス種類が「カードリーダー」であることを認識する。そいて、ブラウザー実行部261は、当該認識に基づいて、デバイス種類「カードリーダー」に基づく処理を実行する。例えば、ブラウザー実行部261は、読取結果データに基づいて会員番号を取得し、専用ユーザーインターフェースUIの会員番号表示エリア42に表示する。   In the description using the flowchart of FIG. 8, the processing of the browser execution unit 261 when the barcode scanner 12 is read is mainly described. However, when the reading by the card reader 13 is performed, Similar processing is performed. That is, the browser execution unit 261 recognizes that the device type of the device from which the data is output is “card reader” based on the device identification information added to the received reading result data. The browser execution unit 261 executes processing based on the device type “card reader” based on the recognition. For example, the browser execution unit 261 acquires a member number based on the read result data and displays it in the member number display area 42 of the dedicated user interface UI.

以上説明したように、本実施形態に係る記録装置11の制御部20は、デバイスが接続された場合、デバイスの接続情報を取得し、取得した接続情報に基づいて、デバイスの種類を判別し、判別したデバイスの種類に応じたデバイス識別情報(識別情報)を付与して接続情報と対応付けて登録し、デバイスから入力されたデータに、登録した識別情報を付加してタブレット端末10(外部装置)に送信する。
この構成によれば、ユーザーが、記録装置11にデバイスを接続するときに、接続情報や、デバイス識別情報を入力する作業を行うことなく、自動で、デバイスの種類に対応する識別情報と接続情報とが対応付けて記憶される。そして、デバイスから入力されたデータを外部装置としてのタブレット端末10に送信する際は、データに、デバイスの種類に対応するデバイス識別情報が付加される。このため、ユーザーが行う作業を低減しつつ、外部装置にデータの出力元のデバイスの種類を認識させることができる。
As described above, when the device is connected, the control unit 20 of the recording apparatus 11 according to the present embodiment acquires the connection information of the device, determines the type of the device based on the acquired connection information, Device identification information (identification information) corresponding to the determined device type is assigned and registered in association with the connection information, and the registered identification information is added to the data input from the device, and the tablet terminal 10 (external device) ).
According to this configuration, when the user connects the device to the recording apparatus 11, the identification information and the connection information corresponding to the type of the device are automatically acquired without performing the operation of inputting the connection information or the device identification information. Are stored in association with each other. When data input from a device is transmitted to the tablet terminal 10 as an external device, device identification information corresponding to the type of device is added to the data. For this reason, it is possible to make the external device recognize the type of data output source device while reducing the work performed by the user.

また、本実施形態では、制御部20は、デバイスが接続された場合、デバイスの種類に応じたデバイスドライバー(制御プログラム)を判別し、判別したデバイスドライバーのデバイスドライバー名(制御プログラムを示す情報)と、デバイス識別情報とを対応付けて登録する。
この構成によれば、ユーザーの作業を伴うことなく、デバイスが接続された場合に、接続されたデバイスのデバイス識別情報と、当該デバイスを制御するデバイスドライバーのデバイスドライバー名とを対応付けて登録できる。
In the present embodiment, when a device is connected, the control unit 20 determines a device driver (control program) corresponding to the type of device, and the device driver name of the determined device driver (information indicating the control program). And device identification information are registered in association with each other.
According to this configuration, when a device is connected without any user work, the device identification information of the connected device and the device driver name of the device driver that controls the device can be registered in association with each other. .

また、本実施形態では、制御部20は、同一種類のデバイスが、複数、接続された場合、所定のルールに従ってデバイス識別情報の値を変更して、各デバイスにデバイス識別情報を付与する。
この構成によれば、同一種類のデバイスが、複数、記録装置11に接続された場合であっても、各デバイスに、デバイス種類に対応し、かつ、ルールに従った値のデバイス識別情報を付与できる。このため、タブレット端末10で、デバイス識別情報と、デバイス種類との対応関係を管理するときに、管理しやすい。
In the present embodiment, when a plurality of devices of the same type are connected, the control unit 20 changes the value of the device identification information according to a predetermined rule, and gives the device identification information to each device.
According to this configuration, even when a plurality of devices of the same type are connected to the recording apparatus 11, device identification information corresponding to the device type and having a value according to the rule is assigned to each device. it can. For this reason, when managing the correspondence relationship between the device identification information and the device type in the tablet terminal 10, it is easy to manage.

また、本実施形態では、制御部20は、デバイスの接続が解除された場合、接続デバイス情報の登録を削除する。
この構成によれば、接続デバイスリストLSに、実際に接続された状態にあるデバイスの接続デバイス情報が登録された状態を維持できる。これにより、デバイス制御部202により、新デバイスが接続されたときに、新デバイスのデバイス種類と同一のデバイス種類のデバイスが既に接続された状態であると判別されることが防止され、新デバイスに適切な値のデバイス識別情報が付与される。
In this embodiment, the control unit 20 deletes the registration of the connected device information when the device connection is released.
According to this configuration, it is possible to maintain a state in which connected device information of devices that are actually connected is registered in the connected device list LS. This prevents the device control unit 202 from determining that a device of the same device type as the device type of the new device is already connected when the new device is connected. Appropriate value of device identification information is given.

また、本実施形態では、制御部20は、複数のデバイスが接続された場合、複数のデバイスについて、接続デバイスリストLSに接続デバイス情報を登録できる。
この構成によれば、複数のデバイスが接続された場合、複数のデバイスについて、1の接続デバイスリストLSに基づいて管理できる。
In the present embodiment, when a plurality of devices are connected, the control unit 20 can register connection device information in the connection device list LS for the plurality of devices.
According to this configuration, when a plurality of devices are connected, the plurality of devices can be managed based on one connection device list LS.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
本実施形態では、記録装置11に接続されるデバイスとして、バーコードスキャナー12、及び、カードリーダー13を例示したが、デバイスは例示したものに限られない。
また、上述した実施形態では、記録装置11のプリント方式は、サーマル方式であった。しかしながら、プリント方式は、サーマル方式に限定されない。
また、図2、3に示す各機能ブロックはハードウェアとソフトウェアにより任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
In the present embodiment, the barcode scanner 12 and the card reader 13 are illustrated as devices connected to the recording apparatus 11, but the devices are not limited to those illustrated.
In the above-described embodiment, the printing method of the recording apparatus 11 is the thermal method. However, the printing method is not limited to the thermal method.
2 and 3 can be realized arbitrarily by hardware and software, and does not suggest a specific hardware configuration.

1…POSシステム(制御システム)、10…タブレット端末(制御装置、外部装置)、11…記録装置、12…バーコードスキャナー(デバイス)、13…カードリーダー(デバイス)、20…制御部、26…端末制御部(制御装置制御部)。   DESCRIPTION OF SYMBOLS 1 ... POS system (control system), 10 ... Tablet terminal (control apparatus, external device), 11 ... Recording apparatus, 12 ... Bar code scanner (device), 13 ... Card reader (device), 20 ... Control part, 26 ... Terminal control unit (control device control unit).

Claims (7)

デバイスが接続されると、前記デバイスに付与されている接続情報を取得するデバイス通信部と、
デバイスの種類に応じた制御プログラムがインストールされており、前記接続情報と前記デバイスの種類、制御プログラムを示す情報とを対応付けて記憶する記憶部と、
前記接続情報に基づき前記記憶部を参照して前記デバイスの種類を取得し、取得した前記デバイスの種類に応じた識別情報を生成し前記接続情報と対応付けて前記記憶部に記憶させ、前記接続情報に基づき前記記憶部を参照して前記制御プログラムを示す情報を取得し、取得した前記制御プログラムを示す情報に対応する前記制御プログラムに基づき前記デバイス通信部により前記デバイスからデータを受信すると、前記記憶部を参照し前記接続情報に対応する前記識別情報を取得して前記データに付加する制御部と、
外部装置と通信可能であって、前記識別情報が付加された前記データを前記外部装置に送信する通信部と、
前記外部装置が前記識別情報と前記データに基づき生成し送信した記録データを前記通信部により受信し、受信した前記記録データに基づき紙に画像を記録する記録機構を有することを特徴とする記録装置。
When a device is connected, a device communication unit that acquires connection information given to the device;
A control program corresponding to the type of device is installed, and a storage unit that stores the connection information, the type of device, and information indicating the control program in association with each other;
Based on the connection information, the type of the device is acquired with reference to the storage unit, identification information corresponding to the acquired type of the device is generated, stored in the storage unit in association with the connection information, and the connection Obtaining information indicating the control program with reference to the storage unit based on information, and receiving data from the device by the device communication unit based on the control program corresponding to the acquired information indicating the control program, A control unit that refers to a storage unit to acquire the identification information corresponding to the connection information and adds the identification information to the data;
A communication unit capable of communicating with an external device and transmitting the data to which the identification information is added to the external device;
A recording apparatus comprising: a recording mechanism configured to receive recording data generated and transmitted by the external apparatus based on the identification information and the data, and to record an image on paper based on the received recording data. .
前記制御部は、
前記デバイス通信部に前記デバイスが接続された場合であって、同一種類の前記デバイスが前記記憶部に記憶されていた場合、同一の値の、又は、同一のルールに従って前記識別情報の値を変更して、前記識別情報を付与し前記記憶部に記憶させることを特徴とする請求項1に記載の記録装置。
The controller is
When the device is connected to the device communication unit and the same type of device is stored in the storage unit, the value of the identification information is changed according to the same value or the same rule. The recording apparatus according to claim 1, wherein the identification information is given and stored in the storage unit.
前記制御部は、
前記デバイス通信部に前記デバイスが接続された場合であって、同一種類の前記デバイスが前記記憶部に記憶されていた場合、所定のルールに従って前記識別情報の値を変更して、前記識別情報を付与し前記記憶部に記憶させることを特徴とする請求項1に記載の記録装置。
The controller is
When the device is connected to the device communication unit and the same type of device is stored in the storage unit, the value of the identification information is changed according to a predetermined rule, and the identification information is The recording apparatus according to claim 1, wherein the recording apparatus is provided and stored in the storage unit.
前記制御部は、
前記デバイス通信部から前記デバイスの接続が解除された場合、解除された前記デバイスに係る前記識別情報を前記記憶部から削除することを特徴とする請求項1乃至3のいずれか1項に記載の記録装置。
The controller is
4. The device according to claim 1, wherein when the connection of the device is released from the device communication unit, the identification information related to the released device is deleted from the storage unit. 5. Recording device.
前記制御部は、
前記デバイス通信部に複数の前記デバイスが接続された場合、複数の前記デバイスについて、前記識別情報と前記接続情報とを対応付けて前記記憶部に記憶させることを特徴とする請求項1乃至4のいずれか1項に記載の記録装置。
The controller is
5. When a plurality of the devices are connected to the device communication unit, the identification information and the connection information are associated with each other and stored in the storage unit for the plurality of devices. The recording apparatus according to any one of the above.
記録機構と、デバイスの種類に応じた制御プログラムがインストールされており、デバイスに付与されている接続情報と前記デバイスの種類、制御プログラムを示す情報とを対応付けて記憶する記憶部と、前記デバイスが接続された場合、前記接続情報を取得し、取得した前記接続情報に対応する前記デバイスの種類を判別し、判別した前記デバイスの種類に応じた識別情報を生成して前記接続情報と対応付けて前記記憶部に登録し、取得した前記接続情報に対応する前記制御プログラムを示す情報を取得し、取得した前記制御プログラムを示す情報に対応する前記制御プログラムに基づき前記デバイスからデータを受信すると、前記接続情報に対応する前記識別情報を付加して送信する制御をする制御部を有する記録装置と、
前記記録装置から、前記識別情報が付加された前記データを受信し、前記識別情報が示す前記デバイスの種類に基づいて、前記データを処理して記録データを生成し、前記記録装置に送信して紙に画像を記録させる制御をする制御装置制御部を有する制御装置と、
を備えることを特徴とする制御システム。
A storage unit in which a recording program and a control program according to the type of the device are installed, and connection information given to the device and information indicating the type of the device and the control program are stored in association with each other; and the device Is connected, the connection information is acquired, the type of the device corresponding to the acquired connection information is determined, identification information corresponding to the determined type of the device is generated and associated with the connection information Registering in the storage unit, obtaining information indicating the control program corresponding to the acquired connection information, and receiving data from the device based on the control program corresponding to the information indicating the acquired control program, A recording apparatus having a control unit that performs control to add and transmit the identification information corresponding to the connection information;
Receiving the data to which the identification information is added from the recording apparatus, processing the data based on the type of the device indicated by the identification information to generate recording data, and transmitting the data to the recording apparatus; A control device having a control device controller for controlling the recording of an image on paper;
A control system comprising:
デバイスと外部装置に通信可能であり、デバイスの種類に応じた制御プログラムがインストールされており、前記デバイスに付与されている接続情報と前記デバイスの種類、制御プログラムを示す情報とを対応付けて記憶する記録装置の情報処理方法であって、
前記記録装置は、前記デバイスが接続された場合、前記デバイスに付与されている前記接続情報を取得し、取得した前記接続情報に対応する前記デバイスの種類を判別し、判別した前記デバイスの種類に応じた識別情報を生成して前記接続情報と対応付けて登録し、取得した前記接続情報に対応する前記制御プログラムを示す情報を取得し、取得した前記制御プログラムを示す情報に対応する前記制御プログラムに基づき前記デバイスからデータを受信すると、前記接続情報と対応する前記識別情報を付加して前記外部装置に送信し、前記外部装置が前記識別情報と前記データに基づき生成し送信した記録データを信し、受信した前記記録データに基づき紙に画像を記録することを特徴とする記録装置の情報処理方法。
The device can communicate with the external device, and a control program corresponding to the device type is installed, and the connection information given to the device is stored in association with the device type and information indicating the control program. An information processing method for a recording device
When the device is connected, the recording apparatus acquires the connection information given to the device, determines the type of the device corresponding to the acquired connection information, and determines the determined device type. Corresponding identification information is generated and registered in association with the connection information, information indicating the control program corresponding to the acquired connection information is acquired, and the control program corresponding to the information indicating the acquired control program When the data is received from the device, the identification information corresponding to the connection information is added and transmitted to the external device, and the recording data generated and transmitted by the external device based on the identification information and the data is received. An information processing method for a recording apparatus, wherein an image is recorded on paper based on the received and received recording data.
JP2014172393A 2014-08-27 2014-08-27 Recording apparatus, control system, and information processing method for recording apparatus Expired - Fee Related JP6402982B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014172393A JP6402982B2 (en) 2014-08-27 2014-08-27 Recording apparatus, control system, and information processing method for recording apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014172393A JP6402982B2 (en) 2014-08-27 2014-08-27 Recording apparatus, control system, and information processing method for recording apparatus

Publications (3)

Publication Number Publication Date
JP2016048411A JP2016048411A (en) 2016-04-07
JP2016048411A5 JP2016048411A5 (en) 2017-08-31
JP6402982B2 true JP6402982B2 (en) 2018-10-10

Family

ID=55649297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014172393A Expired - Fee Related JP6402982B2 (en) 2014-08-27 2014-08-27 Recording apparatus, control system, and information processing method for recording apparatus

Country Status (1)

Country Link
JP (1) JP6402982B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001144769A (en) * 1999-11-11 2001-05-25 Sankyo Seiki Mfg Co Ltd Device adaptable to usb and its communication control method
JP2003196224A (en) * 2001-12-28 2003-07-11 Star Micronics Co Ltd USB port driver and port name assignment method
JP2004062347A (en) * 2002-07-25 2004-02-26 Matsushita Electric Ind Co Ltd USB device and USB system
US6931456B2 (en) * 2003-09-09 2005-08-16 Transact Technologies Incorporated Standard configurable universal serial bus (USB) device identifier
JP2006134093A (en) * 2004-11-05 2006-05-25 Toshiba Tec Corp USB device and USB system
JP5479177B2 (en) * 2010-03-19 2014-04-23 株式会社Pfu Information processing apparatus, consumable management method, and program
JP5935400B2 (en) * 2012-03-05 2016-06-15 セイコーエプソン株式会社 Control system, control method of control system, and printer
JP6182880B2 (en) * 2013-01-30 2017-08-23 セイコーエプソン株式会社 Control system and control system control method

Also Published As

Publication number Publication date
JP2016048411A (en) 2016-04-07

Similar Documents

Publication Publication Date Title
JP7074916B2 (en) Mobile information terminals and their programs
CN104756164B (en) Pos system and printer
JP5601159B2 (en) POS system
CN112700311A (en) Commodity sales processing system and commodity sales processing apparatus
JP6266542B2 (en) Product sales processing system
JP6230550B2 (en) Electronic receipt server, its control program, and electronic receipt system
JPWO2014076930A1 (en) POS system and printing apparatus
JP2014081818A (en) Merchandise sales data processor and portable terminal
JP6674011B2 (en) A system for linking the product data input system with the electronic receipt system
JP6402982B2 (en) Recording apparatus, control system, and information processing method for recording apparatus
JP6344152B2 (en) Recording apparatus and method for controlling recording apparatus
JP5790856B2 (en) POS system, registration device and settlement device
JP6453432B2 (en) Product sales processing system
JP2016049723A (en) Recording device, control method of the same and recording system
JP6125060B2 (en) Merchandise sales data processing apparatus and control program thereof, and electronic receipt management system
JP5882983B2 (en) Product sales data processing apparatus and electronic receipt management system
JP6537674B2 (en) Commodity sales data processing device, its control program, and electronic receipt management system
JP6351785B2 (en) Merchandise sales data processing apparatus and control program thereof, and electronic receipt management system
JP6048611B2 (en) POS system and program
JP2020095745A (en) Commodity sales processing system, data processing method, processing device and control program therefor
JP2020115360A (en) Checkout system, registration device and control program
JP2016051273A (en) Recording apparatus and method for controlling recording apparatus
JP2015191454A (en) Control system, control system control method, information processing apparatus, and information processing apparatus control method

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20160623

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170718

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170718

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180418

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180424

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180605

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180626

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180803

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180830

R150 Certificate of patent or registration of utility model

Ref document number: 6402982

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees