JP2011154549A - Universal serial bus host device and program - Google Patents

Universal serial bus host device and program Download PDF

Info

Publication number
JP2011154549A
JP2011154549A JP2010015872A JP2010015872A JP2011154549A JP 2011154549 A JP2011154549 A JP 2011154549A JP 2010015872 A JP2010015872 A JP 2010015872A JP 2010015872 A JP2010015872 A JP 2010015872A JP 2011154549 A JP2011154549 A JP 2011154549A
Authority
JP
Japan
Prior art keywords
usb
recognition signal
serial bus
universal serial
host device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010015872A
Other languages
Japanese (ja)
Other versions
JP5214641B2 (en
Inventor
Takashi Hirose
崇史 廣瀬
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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2010015872A priority Critical patent/JP5214641B2/en
Publication of JP2011154549A publication Critical patent/JP2011154549A/en
Application granted granted Critical
Publication of JP5214641B2 publication Critical patent/JP5214641B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a USB host device and a program for allowing a USB host device to recognize a USB device with a simpler configuration. <P>SOLUTION: When an abnormal recognition signal (USB+, USB-) is detected by a USB host controller 24n as a recognition signal detection part, and supply of power (VCC) is interrupted, a CPU 24a as a switching control part resumes the supply of power (VCC). A POS terminal 22 as a host device for a plurality of USB devices 26 is provided with a restoration mechanism, so that it is simpler than when each of the USB devices 26 is provided with the restoration mechanism. Therefore, cost reduction is achieved. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、ユニバーサルシリアルバスホスト装置およびプログラムに関する。   The present invention relates to a universal serial bus host device and a program.

従来、ユニバーサルシリアルバス(Universal Serial Bus:以下USBと記す)機器がUSBホスト装置に接続されたシステムで、何らかの異常でUSBホスト装置がUSB機器を認識できなくなった場合に、コネクタを抜き差ししたりコンピュータを再起動したりすることなく、USBホスト装置によるUSB機器の認識を復旧することができるシステムが知られている(例えば特許文献1)。   Conventionally, in a system in which a universal serial bus (hereinafter referred to as USB) device is connected to a USB host device, if the USB host device cannot recognize the USB device due to some abnormality, a connector can be connected or disconnected. There is known a system that can recover the recognition of a USB device by a USB host device without restarting (for example, Patent Document 1).

しかしながら、上記特許文献1では、USB機器の認識を復旧させる復旧機構が、USB機器に装備されている。このため、例えばPOS(Point Of Sales)システムのように、USBホスト装置に複数のUSB機器が接続されるシステムでは、複数のUSB機器のそれぞれに上記復旧機構が設けられるため、システムの構成が複雑化し、コスト増大の一因となる虞があった。   However, in Patent Document 1, a recovery mechanism for recovering recognition of a USB device is equipped in the USB device. For this reason, in a system in which a plurality of USB devices are connected to a USB host device, such as a POS (Point Of Sales) system, the above-described recovery mechanism is provided in each of the plurality of USB devices, resulting in a complicated system configuration. And there is a risk that the cost may increase.

そこで、本発明は、より簡素な構成でUSBホスト装置によるUSB機器の認識の復旧を図ることが可能なUSBホスト装置およびプログラムを得ることを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides a USB host device and a program capable of recovering recognition of a USB device by the USB host device with a simpler configuration.

本発明は、接続されたユニバーサルシリアルバス機器からの認識信号を検出する認識信号検出部と、接続された前記ユニバーサルシリアルバス機器に対して電力の供給および遮断を切り替える切替制御部と、を備え、前記切替制御部は、前記認識信号検出部によって前記認識信号の異常が検出され、前記電力の供給が遮断されたときには、前記電力の供給を再開することを特徴の一つとする。   The present invention includes a recognition signal detection unit that detects a recognition signal from a connected universal serial bus device, and a switching control unit that switches between supply and cut-off of power to the connected universal serial bus device, The switching control unit restarts the power supply when the recognition signal abnormality is detected by the recognition signal detection unit and the power supply is cut off.

本発明によれば、より簡素な構成でUSBホスト装置によるUSB機器の認識の復旧を図ることが可能なUSBホスト装置およびプログラムを得ることができる。   According to the present invention, it is possible to obtain a USB host device and program capable of recovering recognition of a USB device by the USB host device with a simpler configuration.

図1は、本発明の一実施形態にかかる情報処理システムとしての商品販売システムの概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of a commodity sales system as an information processing system according to an embodiment of the present invention. 図2は、USBホスト装置としてのPOS端末の概略構成を示す図である。FIG. 2 is a diagram showing a schematic configuration of a POS terminal as a USB host device. 図3は、POS端末のCPUの概略構成を示す図である。FIG. 3 is a diagram showing a schematic configuration of the CPU of the POS terminal. 図4は、POS端末およびPOS端末の一部を示す概略構成図である。FIG. 4 is a schematic configuration diagram showing a POS terminal and a part of the POS terminal. 図5は、図4の各部における信号の波形を示す図である。FIG. 5 is a diagram showing the waveform of the signal in each part of FIG.

以下、添付図面を参照して、本発明にかかる情報処理システムの一実施形態について詳細に説明する。   Hereinafter, an embodiment of an information processing system according to the present invention will be described in detail with reference to the accompanying drawings.

図1に示すように、本実施形態にかかる情報処理システムとしての商品販売システム1は、店舗システム2を含んでいる。店舗システム2は、公衆網やインターネットVPN(Virtual Private Network)等の電気通信回線4を介して、他の装置(例えばPOS(Point Of Sales)の本部システム(図示せず)など)に接続されている。   As shown in FIG. 1, a product sales system 1 as an information processing system according to the present embodiment includes a store system 2. The store system 2 is connected to another device (for example, a POS (Point Of Sales) headquarters system (not shown)) via a telecommunication line 4 such as a public network or the Internet VPN (Virtual Private Network). Yes.

店舗システム2は、システムの中枢を担うコンピュータとしてのストアサーバ21と、商品販売端末装置としてのPOS端末22とを備えている。ストアサーバ21とPOS端末22とは、LAN(Local Area Network)等の電気通信回線23を介して接続されている。   The store system 2 includes a store server 21 as a computer that plays a central role in the system, and a POS terminal 22 as a product sales terminal device. The store server 21 and the POS terminal 22 are connected via a telecommunication line 23 such as a LAN (Local Area Network).

図2に示すように、USBホスト装置としてのPOS端末22は、CPU(Central Processing Unit)24a、ROM(Read Only Memory)24b、RAM(Random Access Memory)24c、時計部24d、I/O(Input/Output)ポート24e、ネットワークインタフェース24f、キーボードコントローラ24g、タッチパネルコントローラ24h、ディスプレイコントローラ24i、プリンタコントローラ24j、スキャナコントローラ24k、ハードディスク(HDD)コントローラ24m、およびUSBホストコントローラ24nを備えている。図2に示すように、これらは、アドレスバス、データバス等のバスライン24pを介して接続されている。   As shown in FIG. 2, a POS terminal 22 as a USB host device includes a CPU (Central Processing Unit) 24a, a ROM (Read Only Memory) 24b, a RAM (Random Access Memory) 24c, a clock unit 24d, and an I / O (Input / Output). / Output) port 24e, network interface 24f, keyboard controller 24g, touch panel controller 24h, display controller 24i, printer controller 24j, scanner controller 24k, hard disk (HDD) controller 24m, and USB host controller 24n. As shown in FIG. 2, they are connected via a bus line 24p such as an address bus or a data bus.

CPU24aは、ROM24bに記憶されたコンピュータ読み取り可能な各種プログラムを実行することにより、POS端末22を制御する。ROM24bは、CPU24aが実行する各種プログラム(アプリケーションプログラム、デバイスドライバプログラム等)や各種データを記憶する。RAM24cは、CPU24aが各種プログラムを実行する際に一時的にデータやプログラムを記憶する。本実施形態では、POS端末22用のプログラムに、販売登録を行うモジュールや、電子決済を行うモジュール、通信制御を行うモジュール、USBデバイスへの電力の供給の切り替えを制御するモジュール、USBデバイスへの電力の供給を遮断した後再開する時間間隔を可変設定するモジュール等が含まれている。よって、このプログラムにしたがって、POS端末22のCPU24aは、図3に示すように、販売登録部41や、電子決済部42、通信制御部43、切替制御部44、時間設定制御部45等として動作する。   The CPU 24a controls the POS terminal 22 by executing various computer-readable programs stored in the ROM 24b. The ROM 24b stores various programs (application program, device driver program, etc.) and various data executed by the CPU 24a. The RAM 24c temporarily stores data and programs when the CPU 24a executes various programs. In the present embodiment, the program for the POS terminal 22 includes a module for performing sales registration, a module for performing electronic settlement, a module for performing communication control, a module for controlling switching of power supply to the USB device, and a USB device. A module for variably setting a time interval for restarting after the power supply is cut off is included. Therefore, according to this program, the CPU 24a of the POS terminal 22 operates as a sales registration unit 41, an electronic settlement unit 42, a communication control unit 43, a switching control unit 44, a time setting control unit 45, etc., as shown in FIG. To do.

また、図2に示す時計部24dは、現在の日時を計時する。ネットワークインタフェース24fは、電気通信回線23,4等を通じて接続される他の装置とのデータ通信を制御する。I/Oポート24eは、モードスイッチ25aからのモード選択信号を入力するとともにドロワ(図示せず)の引出しを自動開放させるドロワ開放装置25bに駆動信号を出力する。キーボードコントローラ24gは、キーボード25cから操作キーに対応したキー信号を取込んでCPU24aに通知する。タッチパネルコントローラ24hは、客用のタッチパネル付きディスプレイ25eを制御してCPU24aから供給される表示データに対応した文字等をカラー表示させるとともに、ディスプレイ25eの画面に取り付けられたタッチパネルセンサ25dからの信号を取込んでCPU24aに通知する。ディスプレイコントローラ24iは、オペレータ用のディスプレイ25fを制御してCPU24aから与えられる表示データに対応した文字等をカラー表示させる。プリンタコントローラ24jは、R/Jプリンタ25gの駆動を制御してCPU24aから供給される印字データをもとにレシート印字及びジャーナル印字を行わせる。スキャナコントローラ24kは、スキャナ25hで読み取られたデータの信号を取込んでCPU24aに送る。   Further, the clock unit 24d shown in FIG. 2 measures the current date and time. The network interface 24f controls data communication with other devices connected through the telecommunication lines 23, 4 and the like. The I / O port 24e inputs a mode selection signal from the mode switch 25a and outputs a drive signal to a drawer opening device 25b that automatically opens a drawer (not shown). The keyboard controller 24g captures a key signal corresponding to the operation key from the keyboard 25c and notifies the CPU 24a of the key signal. The touch panel controller 24h controls the customer display 25e with a touch panel to display characters corresponding to the display data supplied from the CPU 24a in color, and receives signals from the touch panel sensor 25d attached to the screen of the display 25e. And notifies the CPU 24a. The display controller 24i controls the operator display 25f to display characters corresponding to the display data provided from the CPU 24a in color. The printer controller 24j controls the driving of the R / J printer 25g to perform receipt printing and journal printing based on print data supplied from the CPU 24a. The scanner controller 24k takes in a signal of data read by the scanner 25h and sends it to the CPU 24a.

また、ハードディスクコントローラ24mは、CPU24aからの指示信号に基づいてハードディスク25iに対するデータの書き込みおよび読み出しを制御する。ハードディスク25iは、システムに関わる諸データの他、USBデバイス26への電力の供給を遮断した後再開する再開時間を示すデータ等の記憶領域を有する。   The hard disk controller 24m controls writing and reading of data to and from the hard disk 25i based on an instruction signal from the CPU 24a. The hard disk 25i has a storage area for data related to the system, as well as data indicating a restart time for restarting after the power supply to the USB device 26 is shut off.

また、USBホストコントローラ24nは、CPU24aからの指示信号を受信して、USBデバイス(USB機器)26を制御する。具体的には、CPU24aとUSBデバイス26との間の通信、すなわちCPU24aとUSBデバイス26との間でのデータの授受を制御する。   Further, the USB host controller 24n receives the instruction signal from the CPU 24a and controls the USB device (USB device) 26. Specifically, the communication between the CPU 24 a and the USB device 26, that is, the exchange of data between the CPU 24 a and the USB device 26 is controlled.

ここで、図4,5を参照して、本実施形態にかかるPOS端末22およびUSBデバイス26におけるUSB通信についてより詳細に説明する。   Here, with reference to FIGS. 4 and 5, USB communication in the POS terminal 22 and the USB device 26 according to the present embodiment will be described in more detail.

図4に示すように、POS端末22は、USB通信に関わる部分として、CPU24aならびにUSBホストコントローラ24nの他、電源としての定電圧電源28や、電源供給切替回路29等を備える。また、POS端末22には、コネクタ27f,27m(27)を介してUSBデバイス26が接続されている。   As shown in FIG. 4, the POS terminal 22 includes a CPU 24a and a USB host controller 24n, a constant voltage power supply 28 as a power supply, a power supply switching circuit 29, and the like as parts related to USB communication. The USB device 26 is connected to the POS terminal 22 via connectors 27f and 27m (27).

電力は、定電圧電源28から、電源供給切替回路29、およびコネクタ27を介してUSBデバイス26に供給される。電源供給切替回路29には、スイッチ29aが内蔵されている。スイッチ29aのオンおよびオフは、切替制御部44(図3参照)として動作するCPU24aからの切替制御信号(CTRL)によって制御することができる。なお、CPU24aからの切替制御信号(CTRL)は、例えば、コントローラ等の回路(図示せず)を介して電源供給切替回路29に供給されることができる。本実施形態では、図5に示すように、切替制御信号(CTRL)がハイレベル(H)のときに、電源供給ラインの電位(VCC)がハイレベル(H)となって電力が供給される。なお、本実施形態では、コネクタ27を介してPOS端末22およびUSBデバイス26のグラウンドライン同士が接続され、グラウンド電位(GND)が共通となっている。   Power is supplied from the constant voltage power supply 28 to the USB device 26 via the power supply switching circuit 29 and the connector 27. The power supply switching circuit 29 includes a switch 29a. Switching on and off of the switch 29a can be controlled by a switching control signal (CTRL) from the CPU 24a that operates as the switching control unit 44 (see FIG. 3). Note that the switching control signal (CTRL) from the CPU 24a can be supplied to the power supply switching circuit 29 via a circuit (not shown) such as a controller, for example. In the present embodiment, as shown in FIG. 5, when the switching control signal (CTRL) is at a high level (H), the potential (VCC) of the power supply line is at a high level (H) and power is supplied. . In the present embodiment, the ground lines of the POS terminal 22 and the USB device 26 are connected through the connector 27, and the ground potential (GND) is common.

また、電力の供給を受けたUSBデバイス26は、認識信号(USB+,USB−)を生成する回路を有している。図5に示すように、認識信号(USB+,USB−)は、相互に逆位相となる一対の信号であり、いずれの信号でも、ハイレベル(H)とローレベル(L)とが一定の周期Tで交互に反復している。すなわち、認識信号USB+がハイレベル(H)のときは、ペアをなすもう一方の認識信号USB−は、ローレベル(L)であり、逆に、認識信号USB+がローレベル(L)のときは、ペアをなすもう一方の認識信号USB−は、ハイレベル(H)である。USBデバイス26は、例えば、プルアップ電源(図示せず)およびグラウンドを内蔵し、ペアをなす認識信号(USB+,USB−)のラインを交互に一定周期でプルアップ電源に接続することで、かかる認識信号(USB+,USB−)を生成することができる。   In addition, the USB device 26 to which power is supplied has a circuit that generates a recognition signal (USB +, USB−). As shown in FIG. 5, the recognition signals (USB +, USB−) are a pair of signals having opposite phases to each other, and in either signal, the high level (H) and the low level (L) have a constant cycle. It repeats alternately at T. That is, when the recognition signal USB + is at a high level (H), the other recognition signal USB− that makes a pair is at a low level (L), and conversely, when the recognition signal USB + is at a low level (L). The other recognition signal USB- that makes a pair is at a high level (H). The USB device 26 includes, for example, a pull-up power source (not shown) and a ground, and is connected by alternately connecting a pair of recognition signal (USB +, USB−) lines to the pull-up power source at regular intervals. Recognition signals (USB +, USB-) can be generated.

そして、本実施形態では、USBホストコントローラ24nが、認識信号(USB+,USB−)を検出する機能を有している。具体的には、例えば、USBホストコントローラ24nは、認識信号(USB+,USB−)のレベルを検出する回路や、内蔵あるいは外部のタイマ回路(図示せず)からのクロック等を利用して認識信号(USB+,USB−)のレベルの継続時間を計測する回路、継続時間と閾値時間Tt(例えばT+δt、δt=許容時間)とを比較する回路(いずれも図示せず)等を有している。そして、継続時間が閾値時間Ttに到達したあるいは超えた場合にあっても認識信号(USB+,USB−)のレベルが変化しなかった場合には、USBホストコントローラ24nは、CPU24aに対して異常検出信号(DET)を送ることができる。この場合、CPU24aは、切替制御部44として動作し、図5に示すように、電源供給切替回路29に切替制御信号(CTRLのローレベル(L))を送り、電源供給切替回路29のスイッチ29aをオフする。すなわち、本実施形態では、認識信号(USB+,USB−)の異常が検出された場合に、POS端末22からUSBデバイス26への電力の供給を遮断し、USBデバイス26の機能を停止させる。したがって、異常時にUSBデバイス26が動作を継続することによってUSBデバイス26の回路等に不都合な事態が生じるのを、回避することができる。本実施形態では、USBホストコントローラ24nが、認識信号検出部に相当する。   In this embodiment, the USB host controller 24n has a function of detecting a recognition signal (USB +, USB−). Specifically, for example, the USB host controller 24n uses a circuit that detects the level of the recognition signal (USB +, USB−), a clock from an internal or external timer circuit (not shown), and the like. It has a circuit for measuring the duration time of the level of (USB +, USB−), a circuit for comparing the duration time and a threshold time Tt (for example, T + δt, δt = allowable time) (both not shown) and the like. If the level of the recognition signal (USB +, USB−) does not change even when the duration time reaches or exceeds the threshold time Tt, the USB host controller 24n detects an abnormality with respect to the CPU 24a. A signal (DET) can be sent. In this case, the CPU 24a operates as the switching control unit 44, and sends a switching control signal (CTRL low level (L)) to the power supply switching circuit 29, as shown in FIG. Turn off. That is, in this embodiment, when an abnormality of the recognition signal (USB +, USB−) is detected, the supply of power from the POS terminal 22 to the USB device 26 is cut off, and the function of the USB device 26 is stopped. Therefore, it is possible to avoid an inconvenient situation in the circuit or the like of the USB device 26 due to the operation of the USB device 26 continuing during an abnormality. In the present embodiment, the USB host controller 24n corresponds to a recognition signal detection unit.

また、切替制御部44として動作するCPU24aは、図5に示すように、認識信号(USB+,USB−)の異常が検出されてから一定時間(Tr:再開時間)が経過した時点で、電源供給切替回路29に切替制御信号(CTRLのハイレベル(H))を送り、スイッチ29aをオンして、定電圧電源28からUSBデバイス26への電力の供給を再開させる。本実施形態では、このような制御により、何らかの異常が生じてUSBホスト装置としてのPOS端末22が、USB機器としてのUSBデバイス26を認識できなくなった場合にあっても、USBデバイス26への電力の供給が遮断された後、電力の供給が再開されることにより、USBデバイス26が再起動するため、コネクタ27を抜き差ししたりPOS端末22を再起動したりすることなく、POS端末22によるUSBデバイス26の認識を復旧することができる。   Further, as shown in FIG. 5, the CPU 24a operating as the switching control unit 44 supplies power when a certain time (Tr: restart time) elapses after the abnormality of the recognition signal (USB +, USB−) is detected. A switching control signal (CTRL high level (H)) is sent to the switching circuit 29, the switch 29a is turned on, and the supply of power from the constant voltage power supply 28 to the USB device 26 is resumed. In the present embodiment, even if some abnormality occurs due to such control and the POS terminal 22 as the USB host device cannot recognize the USB device 26 as the USB device, the power to the USB device 26 is lost. Since the USB device 26 is restarted by restarting the supply of power after the supply of power is interrupted, the USB by the POS terminal 22 is not required without connecting or disconnecting the connector 27 or restarting the POS terminal 22. Recognition of the device 26 can be restored.

また、USBホストコントローラ24nは、USBデバイス26がPOS端末22に接続されていることを検出することができる。接続の可否は、具体的には、例えば、ペアをなす認識信号(USB+,USB−)のうちいずれか一方がハイレベル(H)であることによって、検出することができる。ちなみに、USBデバイス26がPOS端末22に接続されていない場合には、ペアをなす認識信号(USB+,USB−)の双方がローレベル(L)となる。そして、USBホストコントローラ24nは、認識信号(USB+,USB−)に異常が検出された場合、USBデバイス26がPOS端末22に接続されている場合にのみ、CPU24aに向けて異常検出信号(DET)を送ることができる。本実施形態では、このような制御により、USBデバイス26が接続された状態で異常が生じて復旧の必要がある場合と、USBデバイス26が取り外された場合とを区別することができる。本実施形態では、USBホストコントローラ24nは、USBデバイス26の接続の可否を検出する接続検出部に相当する。なお、USBホストコントローラ24nは、異常検出信号(DET)とは別に、CPU24aに向けて、接続の可否を区別する接続可否信号を送ってもよい。この場合は、USBホストコントローラ24nで異常が検出された場合には、接続の可否に関わらず、USBホストコントローラ24nからCPU24aに向けて異常検出信号(DET)が送られる。そして、切替制御部44として動作するCPU24aが、切替制御回路29に向けて切替制御信号(CTRL)を送るか否かを判断する。   Further, the USB host controller 24n can detect that the USB device 26 is connected to the POS terminal 22. Specifically, whether or not connection is possible can be detected, for example, when one of the paired recognition signals (USB +, USB−) is at a high level (H). Incidentally, when the USB device 26 is not connected to the POS terminal 22, both of the paired recognition signals (USB +, USB−) are at a low level (L). Then, when an abnormality is detected in the recognition signal (USB +, USB−), the USB host controller 24n detects an abnormality detection signal (DET) toward the CPU 24a only when the USB device 26 is connected to the POS terminal 22. Can send. In the present embodiment, such control makes it possible to distinguish between a case where an abnormality occurs in a state where the USB device 26 is connected and a recovery is necessary, and a case where the USB device 26 is removed. In the present embodiment, the USB host controller 24n corresponds to a connection detection unit that detects whether or not the USB device 26 can be connected. The USB host controller 24n may send a connection enable / disable signal to the CPU 24a separately from the abnormality detection signal (DET). In this case, when an abnormality is detected by the USB host controller 24n, an abnormality detection signal (DET) is sent from the USB host controller 24n to the CPU 24a regardless of whether connection is possible. Then, the CPU 24 a operating as the switching control unit 44 determines whether or not to send a switching control signal (CTRL) to the switching control circuit 29.

また、本実施形態では、再開時間Trを状況に応じて可変設定することができる。具体的には、CPU24aが、時間設定制御部45(図3参照)として動作し、キーボード25cやタッチパネルセンサ25d等からの入力に基づいて、ハードディスク25i等に記憶された再開時間Trを示す情報を変更することができる。すなわち、本実施形態では、異常の発生状況によってより好適な再開時間Trを設定しやすくなるので、復旧をより確実に行うことができる。具体的には、例えば、解消されるまでに時間が要する異常が発生しやすい場合には、再開時間Trを長く設定することができる。   In the present embodiment, the restart time Tr can be variably set according to the situation. Specifically, the CPU 24a operates as the time setting control unit 45 (see FIG. 3), and information indicating the resume time Tr stored in the hard disk 25i or the like based on input from the keyboard 25c, the touch panel sensor 25d, or the like. Can be changed. That is, in the present embodiment, it becomes easier to set a more appropriate restart time Tr depending on the state of occurrence of an abnormality, so that recovery can be performed more reliably. Specifically, for example, when an abnormality that takes time to be resolved is likely to occur, the restart time Tr can be set longer.

上記回路構成を介してPOS端末22に接続されるUSBデバイス26としては、例えば、バーコードスキャナや、カードリーダライタ、ICチップリーダ等がある。そして、これらUSBデバイス26を使用して、販売登録部41(図3参照)による販売登録処理や、電子決済部42(図3参照)による電子決済処理等を実行することができる。販売登録部41は、例えば、USBデバイス26としてのバーコードスキャナ(ただしスキャナ25h(図2参照)でもよい)で読み取った商品のバーコードのデータから商品IDを検出し、この商品IDに対応する価格データをストアサーバ21に問い合わせ、受信した価格データに基づいて当該商品の販売データを生成してこれをRAM24c等の記憶部に記憶する。また、電子決済部42は、例えば、販売データを集計して支払金額を算出して、これをディスプレイ25eに表示させる。そして、電子決済部42は、オペレータの操作に基づいて、POS端末22を、客が希望する電子決済システムによる決済が可能な状態とする。そして、CPU24aは、客が希望する電子決済システムに対応するカードリーダライタやICチップリーダライタ等(図示せず)を動作させ、カードや端末との間で決済に必要なデータの授受を行い、さらに、必要に応じて外部サーバ等と通信を行って、決済処理を行う。このとき電子決済部42は、電子決済IDをRAM24c等の記憶部に保持しておく。なお、販売登録部41および電子決済部42は、情報処理部に相当する。   Examples of the USB device 26 connected to the POS terminal 22 via the circuit configuration include a barcode scanner, a card reader / writer, and an IC chip reader. The USB device 26 can be used to execute sales registration processing by the sales registration unit 41 (see FIG. 3), electronic payment processing by the electronic payment unit 42 (see FIG. 3), and the like. For example, the sales registration unit 41 detects the product ID from the barcode data of the product read by the barcode scanner (but may be the scanner 25h (see FIG. 2)) as the USB device 26, and corresponds to the product ID. The store server 21 is inquired about price data, sales data of the product is generated based on the received price data, and is stored in a storage unit such as the RAM 24c. Further, the electronic settlement unit 42, for example, calculates sales amounts by collecting sales data, and displays this on the display 25e. Then, the electronic settlement unit 42 makes the POS terminal 22 ready for settlement by the electronic settlement system desired by the customer based on the operation of the operator. Then, the CPU 24a operates a card reader / writer, an IC chip reader / writer, etc. (not shown) corresponding to the electronic payment system desired by the customer, and exchanges data necessary for payment with the card or terminal. Furthermore, it communicates with an external server etc. as needed, and performs a payment process. At this time, the electronic settlement unit 42 holds the electronic settlement ID in a storage unit such as the RAM 24c. The sales registration unit 41 and the electronic settlement unit 42 correspond to an information processing unit.

以上、説明したように、本実施形態では、切替制御部44は、認識信号検出部としてのUSBホストコントローラ24nによって認識信号(USB+,USB−)の規定状態からの異常が検出され、電力(VCC)の供給が遮断されたときには、電力(VCC)の供給を再開する。よって、何らかの異常によってUSBホスト装置としてのPOS端末22がUSB機器としてのUSBデバイス26を認識できなくなり、認識を復旧させたい場合に、USBデバイス26が、電力(VCC)の供給の再開により再起動し、認識信号(USB+,USB−)の生成を再開する。このため、コネクタ27を抜き差ししたりPOS端末22を再起動したりすることなく、POS端末22によるUSBデバイス26の認識を復旧することができる。また、本実施形態では、複数のUSBデバイス26に対するUSBホスト装置としてのPOS端末22に復旧機構を設けたため、USBデバイス26のそれぞれに復旧機構を設けた構成に比べて、構成を簡素化することができ、コスト低減に資することになる。   As described above, in the present embodiment, the switching control unit 44 detects an abnormality from the specified state of the recognition signal (USB +, USB−) by the USB host controller 24n as the recognition signal detection unit, and the power (VCC) ) Is cut off, the supply of power (VCC) is resumed. Therefore, when the POS terminal 22 as the USB host device cannot recognize the USB device 26 as the USB device due to some abnormality and wants to recover the recognition, the USB device 26 is restarted by restarting the supply of power (VCC). Then, the generation of the recognition signal (USB +, USB−) is restarted. For this reason, the recognition of the USB device 26 by the POS terminal 22 can be restored without removing and inserting the connector 27 or restarting the POS terminal 22. In this embodiment, since the recovery mechanism is provided in the POS terminal 22 as the USB host device for the plurality of USB devices 26, the configuration is simplified as compared with the configuration in which the recovery mechanism is provided in each of the USB devices 26. Can contribute to cost reduction.

また、本実施形態では、切替制御部44は、認識信号検出部としてのUSBホストコントローラ24nによって認識信号(USB+,USB−)の異常が検出されたときには、USBデバイス26への電力(VCC)の供給を遮断した後、電力(VCC)の供給を再開する。よって、本実施形態によれば、異常時にUSBデバイス26が動作を継続することによってUSBデバイス26の回路等に不都合な事態が生じるのを、回避することができる。   In the present embodiment, the switching control unit 44 detects the power (VCC) to the USB device 26 when the USB host controller 24n as the recognition signal detection unit detects an abnormality in the recognition signal (USB +, USB−). After the supply is cut off, the supply of power (VCC) is resumed. Therefore, according to the present embodiment, it is possible to avoid the occurrence of an unfavorable situation in the circuit of the USB device 26 and the like due to the USB device 26 continuing to operate in the event of an abnormality.

また、本実施形態では、切替制御部44は、認識信号検出部としてのUSBホストコントローラ24nによって認識信号(USB+,USB−)の異常が検出されたときに接続検出部としてのUSBホストコントローラ24nによってUSBデバイス26が接続されていないことが検出されたとき(すなわち、USBデバイス26が接続されていることが検出されなかったとき)には、USBデバイス26への電力(VCC)の供給を再開しない。よって、本実施形態では、USBデバイス26がPOS端末22から取り外された場合に上述したリセット制御(電力遮断後の供給再開制御)が無駄に行われるのを抑制することができる。なお、CPU24a等により、認識信号検出部に基づいてUSBデバイス26の取り外しであることが判定された場合には、必要に応じて(例えば再開時間Trより長い時間の経過後)、切替制御部44によってスイッチ29aがオンされて、POS端末22を、USBデバイス26を接続したときに電力(VCC)が供給される状態にすることができる。   In this embodiment, the switching control unit 44 is operated by the USB host controller 24n serving as the connection detection unit when an abnormality of the recognition signal (USB +, USB−) is detected by the USB host controller 24n serving as the recognition signal detection unit. When it is detected that the USB device 26 is not connected (that is, when it is not detected that the USB device 26 is connected), the supply of power (VCC) to the USB device 26 is not resumed. . Therefore, in this embodiment, when the USB device 26 is removed from the POS terminal 22, it is possible to suppress the above-described reset control (supply resumption control after power interruption) being performed wastefully. If it is determined by the CPU 24a or the like that the USB device 26 is removed based on the recognition signal detection unit, the switching control unit 44 is necessary (for example, after a time longer than the restart time Tr). As a result, the switch 29a is turned on, and the POS terminal 22 can be brought into a state in which power (VCC) is supplied when the USB device 26 is connected.

また、本実施形態では、接続検出部としてのUSBホストコントローラ24nが、認識信号(USB+,USB−)のハイレベル(H)およびローレベル(L)のいずれか一方によってUSBデバイス26の接続の可否を検出する。よって、比較的簡単な構成によって、より精度良く、USBデバイス26の接続の可否を検出することができる。   In the present embodiment, the USB host controller 24n as the connection detection unit determines whether the USB device 26 can be connected by either the high level (H) or the low level (L) of the recognition signal (USB +, USB−). Is detected. Therefore, it is possible to detect whether or not the USB device 26 can be connected with higher accuracy by a relatively simple configuration.

また、本実施形態では、再開時間を可変設定する時間設定制御部45を設けた。よって、異常の発生状況に応じてより適切に本発明にかかる上記リセット制御を実施することができる。   In the present embodiment, the time setting control unit 45 that variably sets the restart time is provided. Therefore, the reset control according to the present invention can be more appropriately performed according to the occurrence state of the abnormality.

以上、本発明の好適な実施形態について説明したが、本発明は上記実施形態には限定されず、種々の変形が可能である。例えば、上記実施形態では、本発明にかかるUSBホスト装置がPOS端末22として構成された場合を例示したが、本発明にかかるUSBホスト装置は、他の情報処理装置(例えばパーソナルコンピュータ等)としても実施することができる。   The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the above embodiments, and various modifications can be made. For example, in the above-described embodiment, the case where the USB host device according to the present invention is configured as the POS terminal 22 is exemplified. However, the USB host device according to the present invention may be used as another information processing apparatus (for example, a personal computer). Can be implemented.

また、上記実施形態では、USBホストコントローラ24nが、認識信号検出部および接続検出部として動作する構成を例示したが、CPU24aが、これら認識信号検出部や接続検出部として動作することもできる。その場合、CPU24aが実行するプログラムには、認識信号検出部として動作するモジュールや、接続検出部として動作するモジュールが含まれ、USBホストコントローラ24nからCPU24aには、認識信号の状態等を示す信号(すなわちそれらの検出が可能となる信号)が送られる。また、切替制御部の機能がCPU24a以外の素子の動作として得られるように実施してもよい。   In the above-described embodiment, the USB host controller 24n is exemplified as the recognition signal detection unit and the connection detection unit. However, the CPU 24a can also operate as the recognition signal detection unit and the connection detection unit. In this case, the program executed by the CPU 24a includes a module that operates as a recognition signal detection unit and a module that operates as a connection detection unit. The USB host controller 24n to the CPU 24a receive a signal ( That is, a signal capable of detecting them is sent. Moreover, you may implement so that the function of a switching control part may be acquired as operation | movement of elements other than CPU24a.

また、認識信号検出部は、継続時間の比較のみならず、例えば信号のレベル(振幅)の異常等、認識信号に生じた他の異常を検出することができる。また、接続検出部は、認識信号以外の信号から接続の可否を検出することができる。   Further, the recognition signal detection unit can detect not only the comparison of the durations but also other abnormalities that have occurred in the recognition signal, such as abnormalities in the signal level (amplitude). In addition, the connection detection unit can detect whether or not connection is possible from signals other than the recognition signal.

以上のように、本発明は、USBホスト装置に有用であり、特に、POS端末等の複数のUSB機器を接続可能なUSBホスト装置に適し、さらには、POSシステム等の商品販売システムに適している。   As described above, the present invention is useful for a USB host device, particularly suitable for a USB host device capable of connecting a plurality of USB devices such as a POS terminal, and further suitable for a product sales system such as a POS system. Yes.

22 POS端末(USBホスト装置)
26 USBデバイス(USB機器)
24n USBホストコントローラ(認識信号検出部、接続検出部)
44 切替制御部
45 時間設定制御部
Tr 再開時間
22 POS terminal (USB host device)
26 USB devices (USB devices)
24n USB host controller (recognition signal detector, connection detector)
44 switching control unit 45 time setting control unit Tr restart time

特開2008−152533JP2008-152533

Claims (6)

接続されたユニバーサルシリアルバス機器からの認識信号を検出する認識信号検出部と、
接続された前記ユニバーサルシリアルバス機器に対して電力の供給および遮断を切り替える切替制御部と、
を備え、
前記切替制御部は、前記認識信号検出部によって前記認識信号の異常が検出され、前記電力の供給が遮断されたときには、前記電力の供給を再開することを特徴とするユニバーサルシリアルバスホスト装置。
A recognition signal detector for detecting a recognition signal from the connected universal serial bus device;
A switching control unit that switches supply and interruption of power to the connected universal serial bus device;
With
The universal serial bus host device, wherein the switching control unit restarts the power supply when the recognition signal abnormality is detected by the recognition signal detection unit and the power supply is cut off.
前記切替制御部は、前記認識信号検出部によって前記認識信号の異常が検出されたときには、前記電力の供給を遮断した後、前記電力の供給を再開することを特徴とする請求項1に記載のユニバーサルシリアルバスホスト装置。   2. The switch control unit according to claim 1, wherein when the recognition signal detection unit detects an abnormality of the recognition signal, the switching control unit restarts the power supply after cutting off the power supply. Universal serial bus host device. 前記ユニバーサルシリアルバス機器の接続の可否を検出する接続検出部を備え、
前記切替制御部は、前記認識信号検出部によって前記認識信号の異常が検出されたときに前記接続検出部によって前記ユニバーサルシリアルバス機器が接続されていないことが検出されたときには、前記電力の供給を再開しないことを特徴とする請求項1または2に記載のユニバーサルシリアルバスホスト装置。
A connection detector for detecting whether or not the universal serial bus device can be connected;
The switching control unit supplies the power when the connection detection unit detects that the universal serial bus device is not connected when the recognition signal abnormality is detected by the recognition signal detection unit. 3. The universal serial bus host device according to claim 1, wherein the universal serial bus host device is not restarted.
前記認識信号は、ハイレベルとローレベルとが所定周期で入れ替わる信号であり、
前記接続検出部は、前記認識信号の前記ハイレベルによって前記ユニバーサルシリアルバス機器の接続の可否を検出することを特徴とする請求項3に記載のユニバーサルシリアルバスホスト装置。
The recognition signal is a signal in which a high level and a low level are switched at a predetermined cycle,
4. The universal serial bus host device according to claim 3, wherein the connection detection unit detects whether or not the universal serial bus device is connected based on the high level of the recognition signal.
前記認識信号検出部によって前記認識信号の異常が検出されてから前記切替制御部が前記電力の供給を再開するまでの再開時間を可変設定する時間設定制御部を備えたことを特徴とする請求項1〜4のうちいずれか一つに記載のユニバーサルシリアルバスホスト装置。   The time setting control unit that variably sets a restart time from when the recognition signal abnormality is detected by the recognition signal detection unit to when the switching control unit restarts the supply of power. The universal serial bus host device according to any one of 1 to 4. コンピュータを、前記請求項1〜5のうちいずれか一つに記載のユニバーサルシリアルバスホスト装置の前記切替制御部として機能させるプログラム。   A program that causes a computer to function as the switching control unit of the universal serial bus host device according to any one of claims 1 to 5.
JP2010015872A 2010-01-27 2010-01-27 Universal serial bus host device and program Active JP5214641B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010015872A JP5214641B2 (en) 2010-01-27 2010-01-27 Universal serial bus host device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010015872A JP5214641B2 (en) 2010-01-27 2010-01-27 Universal serial bus host device and program

Publications (2)

Publication Number Publication Date
JP2011154549A true JP2011154549A (en) 2011-08-11
JP5214641B2 JP5214641B2 (en) 2013-06-19

Family

ID=44540459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010015872A Active JP5214641B2 (en) 2010-01-27 2010-01-27 Universal serial bus host device and program

Country Status (1)

Country Link
JP (1) JP5214641B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591830A (en) * 2011-12-19 2012-07-18 捷开通讯科技(上海)有限公司 Download system of mobile terminal
JP2016009400A (en) * 2014-06-25 2016-01-18 富士通株式会社 Monitoring device, information processing system and monitoring method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955414A (en) * 2014-04-24 2014-07-30 深圳市道通科技有限公司 Self-restoration method and device of USB (universal serial bus) Host fault

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001306413A (en) * 2000-04-25 2001-11-02 Sony Corp Usb communication device
JP2006048496A (en) * 2004-08-06 2006-02-16 Hitachi Omron Terminal Solutions Corp Usb connection system, usb device, and host
JP2008152533A (en) * 2006-12-18 2008-07-03 Hitachi Omron Terminal Solutions Corp Usb device, usb connection system, removal recognition fiction method of usb equipment, and recognition method of usb equipment
JP2008293181A (en) * 2007-05-23 2008-12-04 Sharp Corp Information processing apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001306413A (en) * 2000-04-25 2001-11-02 Sony Corp Usb communication device
JP2006048496A (en) * 2004-08-06 2006-02-16 Hitachi Omron Terminal Solutions Corp Usb connection system, usb device, and host
JP2008152533A (en) * 2006-12-18 2008-07-03 Hitachi Omron Terminal Solutions Corp Usb device, usb connection system, removal recognition fiction method of usb equipment, and recognition method of usb equipment
JP2008293181A (en) * 2007-05-23 2008-12-04 Sharp Corp Information processing apparatus and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JPN6012051713; Universal Serial Bus Specification Revision 1.1 , 19980923, p.115-116, 118-119, 121, 172-173 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591830A (en) * 2011-12-19 2012-07-18 捷开通讯科技(上海)有限公司 Download system of mobile terminal
CN102591830B (en) * 2011-12-19 2015-08-05 捷开通讯科技(上海)有限公司 Download system of mobile terminal
JP2016009400A (en) * 2014-06-25 2016-01-18 富士通株式会社 Monitoring device, information processing system and monitoring method

Also Published As

Publication number Publication date
JP5214641B2 (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN104899055B (en) A kind of ME more new systems and its update method based on BIOS controls
US11073881B2 (en) Electronic apparatus and control method of electronic apparatus
JP5214641B2 (en) Universal serial bus host device and program
CN103731582A (en) Image forming apparatus for shifting to different power states and control method thereof
US8447966B2 (en) Peripheral control module, computer system, and operation method thereof
JP2008027379A (en) Host device
US20160187955A1 (en) Information processing apparatus, information processing method and computer program product
JP2013090275A (en) Information processor and remote management system
JP5581906B2 (en) Image processing apparatus, control method for image processing apparatus, control program for image processing apparatus, and recording medium
US20120221870A1 (en) Computer and method for controlling operating state of device thereof
US9883067B2 (en) Memory reset control apparatus, method for controlling the control apparatus, and storage medium
JP6597417B2 (en) Electronic device, recovery method and program
US10795423B2 (en) Electronic apparatus with power saving mode, control method thereof, and storage medium
JP6166668B2 (en) Power supply control circuit and electronic device
JP2008102730A (en) Maintenance management method and maintenance management apparatus of electronic equipment or system provided with electronic equipment, and electronic equipment
JP2015032103A (en) Image forming apparatus, control method of image forming apparatus, and program
JP2013041533A (en) Electronic apparatus and electronic apparatus driving method
JP2011186672A (en) Information processor and program
JP2007323103A (en) Board with on-board power and reset control method of board
JP2020123054A (en) Information processing device and control method therefor, and program
CN116467705B (en) Full-time monitoring system and server for preventing server from invading
US11966282B2 (en) Monitoring device and monitoring method
JP2005352942A (en) Usb equipment, host device, and usb connection system
JP6974072B2 (en) Information processing equipment, programs and information processing methods
CN108234804B9 (en) Printing apparatus and control method thereof

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120214

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120416

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121002

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121130

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130227

R150 Certificate of patent or registration of utility model

Ref document number: 5214641

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20160308

Year of fee payment: 3