JP2018036810A - Device server - Google Patents

Device server Download PDF

Info

Publication number
JP2018036810A
JP2018036810A JP2016168712A JP2016168712A JP2018036810A JP 2018036810 A JP2018036810 A JP 2018036810A JP 2016168712 A JP2016168712 A JP 2016168712A JP 2016168712 A JP2016168712 A JP 2016168712A JP 2018036810 A JP2018036810 A JP 2018036810A
Authority
JP
Japan
Prior art keywords
client
peripheral
server
control unit
client 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
JP2016168712A
Other languages
Japanese (ja)
Other versions
JP2018036810A5 (en
JP6557889B2 (en
Inventor
裕二郎 上田
Yujiro Ueda
裕二郎 上田
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.)
Silex Technology Inc
Original Assignee
Silex Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Silex Technology Inc filed Critical Silex Technology Inc
Priority to JP2016168712A priority Critical patent/JP6557889B2/en
Publication of JP2018036810A publication Critical patent/JP2018036810A/en
Publication of JP2018036810A5 publication Critical patent/JP2018036810A5/ja
Application granted granted Critical
Publication of JP6557889B2 publication Critical patent/JP6557889B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Power Sources (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To shift a plurality of connected peripheral devices to a suspension state efficiently, open a session with a client device keeping the connection when a specific condition is satisfied, and make the peripheral devices available from other client device.SOLUTION: A device server is directly or indirectly connected to peripheral devices 4 and 5, and relays between client devices 2 and 3 and the peripheral devices via a network 10. The device server comprises: a client control unit that receives information on whether or not the peripheral devices communicate with the client devices; and a device control unit that, when the peripheral devices do not communicate with any of the client devices, notifies the peripheral devices so as to shift to a suspension state, and when all of the connected peripheral devices do not communicate with the client devices at an arbitrary port, suspends a bus power supply to the port.SELECTED DRAWING: Figure 1

Description

本発明は、クライアント装置がネットワーク経由で周辺デバイスを使用する周辺デバイス制御システムにおけるデバイスサーバに関する。   The present invention relates to a device server in a peripheral device control system in which a client device uses a peripheral device via a network.

近年、ネットワークの普及により、MFP(Multi Function Peripheral)やスキャナといったコンピュータ周辺機器(以下、周辺デバイスとも呼ぶ)をネットワークに接続し、複数のクライアント装置(例えば、パーソナルコンピュータ、タブレットなど)からネットワーク越しにこれらのコンピュータ周辺機器を利用したいという要望に応え、デバイスサーバと呼ばれる装置が普及している(非特許文献1)。   In recent years, with the spread of networks, computer peripheral devices (hereinafter also referred to as peripheral devices) such as MFPs (Multi Function Peripherals) and scanners are connected to the network, and a plurality of client devices (for example, personal computers, tablets, etc.) are connected to the network. In response to the desire to use these computer peripheral devices, an apparatus called a device server has become widespread (Non-Patent Document 1).

当該デバイスサーバを利用し、クライアント装置からネットワーク上の周辺機器を利用する場合、クライアント装置上で動作しているデバイスサーバを制御するソフトウェア(以後、仮想接続ツールとも呼ぶ)を用いて、デバイスサーバに接続されている周辺機器を選択し接続することができる。この結果、クライアント装置のユーザは、選択した周辺機器をあたかもクライアント装置に直接接続されたかのように利用できるのである。   When using the device server and using a peripheral device on the network from the client device, software (hereinafter also referred to as a virtual connection tool) for controlling the device server operating on the client device is used to connect the device server. You can select and connect a connected peripheral device. As a result, the user of the client device can use the selected peripheral device as if it was directly connected to the client device.

一方、USB(Universal Serial Bus)規格ではサスペンドという状態が定義されており、クライアント装置とUSBケーブルで接続されたUSBデバイスの消費電力を低減することが可能となっている。これは、少なくとも3ミリ秒間、信号バス上に何の信号も検出しないと、USBデバイスは実行中のソフトウェアや動作中のデバイスを一時的に停止する等のサスペンド状態に入らなければならないという仕様である。   On the other hand, in the USB (Universal Serial Bus) standard, a state of suspend is defined, and it is possible to reduce the power consumption of a USB device connected to a client device with a USB cable. This is a specification that if no signal is detected on the signal bus for at least 3 milliseconds, the USB device must enter a suspended state such as temporarily stopping the running software or the active device. is there.

ここで、上記デバイスサーバシステムのようなネットワークを経由してUSB機器とクライアント装置とを接続しているシステムでは、サスペンドの仕様を実現できない。つまり、サスペンドへの移行条件になっている直接的な電気的接続がクライアント装置とUSBデバイス間にないため、当該システムでは、サスペンドの実現が困難であった。すなわちデバイスサーバにローカル接続されたUSBデバイスは、当該デバイスサーバからUSBバスパワーで給電(USBケーブルを通じて給電)を受けている場合、常時、電力を消費し続けるということとなる。   Here, a suspend specification cannot be realized in a system in which a USB device and a client device are connected via a network such as the device server system. That is, since there is no direct electrical connection between the client device and the USB device, which is a condition for shifting to suspend, it is difficult to realize suspend in the system. That is, the USB device locally connected to the device server continuously consumes power when it is powered by the USB bus power from the device server (powered through the USB cable).

デバイスサーバシステムにおけるUSBデバイスの消費電力削減のために、USBデバイスが待機状態の場合はUSBデバイスへのバスパワー供給をOFFにし、クライアント装置からのコマンド要求に応じてUSBバスパワーをONにし給電するデバイスサーバが開示されている(特許文献1参照)。また、他の取り組みとしては、クライアント装置が電源断(シャットダウン)することを契機にUSBデバイスをサスペンド状態に移行するなどにより(特許文献2参照)、USBデバイスによる電力の消費を抑制することが行われている。   To reduce the power consumption of the USB device in the device server system, when the USB device is in a standby state, the bus power supply to the USB device is turned off, and the USB bus power is turned on in response to a command request from the client device to supply power A device server is disclosed (see Patent Document 1). As another approach, the power consumption of the USB device is suppressed by, for example, shifting the USB device to a suspended state when the client device is turned off (shut down) (see Patent Document 2). It has been broken.

特開2007−310796号公報JP 2007-310796 A 特開2012−014343号公報JP2012-014343A

サイレックス・テクノロジー株式会社、SX−DS−3000WAN<http://www.silex.jp/products/catalog/sxds3000wan.pdf>Silex Technology, Inc., SX-DS-3000WAN <http://www.silex.jp/products/catalog/sxds3000wan.pdf>

しかしながら、デバイスサーバを用いたシステムでは、ネットワーク上に存在するクライアント装置がデバイスサーバに接続しているすべてのデバイスを利用していないにもかかわらず、これらの利用していないデバイスはサスペンド(省電力状態)に移行されず、電力を消費し続けている。また、クライアント装置がデバイスサーバに接続されたUSBデバイスを占有したままサスペンドで放置された場合、他のクライアント装置から当該USBデバイスを利用することができないという問題も別途存在するが、解決策の開示は、特許文献1および特許文献2にない。   However, in a system using a device server, even though client devices that exist on the network do not use all devices connected to the device server, these unused devices are suspended (power saving). State) and continue to consume power. In addition, there is another problem that if the client device is left suspended while occupying the USB device connected to the device server, another USB device cannot be used from another client device. Are not in Patent Document 1 and Patent Document 2.

本発明は、上述の問題を鑑みてなされたものであり、デバイスサーバに複数接続されたUSBデバイスを効率よくサスペンドし、電力の消費を抑制する。また、クライアント装置がデバイスサーバに接続されたUSBデバイスと接続(セッション)を維持したまま、デバイスがサスペンドされた場合でも、他のクライアント装置から当該USBデバイスを利用することができるようにすることを目的とする。   The present invention has been made in view of the above-described problems, and efficiently suspends a plurality of USB devices connected to a device server and suppresses power consumption. In addition, the client device can use the USB device from another client device even when the device is suspended while maintaining the connection (session) with the USB device connected to the device server. Objective.

上記課題を解決するために、本発明の一態様に係るデバイスサーバは、周辺デバイスと直接または間接的に接続され、ネットワーク経由でクライアント装置と周辺デバイスとの間を中継するデバイスサーバであって、周辺デバイスがクライアント装置との間で通信を行っているか否かの情報を受信するクライアント制御部と、給電管理部であって、(1)周辺デバイスがいずれのクライアント装置とも通信を行っていない場合、当該周辺デバイスに対してサスペンド状態に遷移する様通知し、(2)任意のポートにおいて、接続されたすべての周辺デバイスがクライアント装置との間で通信を行っていない場合に、当該ポートへのバスパワー給電を停止する様判断する給電管理部とを備える。   In order to solve the above problems, a device server according to an aspect of the present invention is a device server that is directly or indirectly connected to a peripheral device and relays between a client device and the peripheral device via a network, A client control unit that receives information on whether or not a peripheral device is communicating with a client device and a power supply management unit, and (1) the peripheral device is not communicating with any client device , Notify the peripheral device to transition to the suspended state, and (2) if any connected peripheral device is not communicating with the client device at any port, A power supply management unit that determines to stop bus power supply.

これによれば、デバイスサーバは、クライアント装置が、周辺デバイスと通信を行っていない場合は、その周辺デバイスをサスペンドに遷移させ、さらに任意のポートに接続されたすべての周辺デバイスがクライアント装置との間で通信を行っていない場合は、バスパワー給電を停止することにより、不要な電力消費を抑制する。   According to this, when the client device is not communicating with the peripheral device, the device server shifts the peripheral device to the suspend state, and all the peripheral devices connected to arbitrary ports are connected to the client device. When communication is not performed between the two, unnecessary power consumption is suppressed by stopping bus power feeding.

なお、周辺デバイスがデバイスサーバに直接または間接的に接続されるとは、周辺デバイスがデバイスサーバのポートに直接接続されるか、またはUSBハブ等を介して間接的に接続される場合の両方を含む意味である。   Note that the term “peripheral device is directly or indirectly connected to the device server” means that the peripheral device is directly connected to the port of the device server or indirectly connected via a USB hub or the like. Including meaning.

上記課題を解決するために、本発明の一態様に係るデバイスサーバは、周辺デバイスと直接または間接的に接続され、ネットワーク経由でクライアント装置と周辺デバイスとの間を中継するデバイスサーバであって、周辺デバイスがクライアント装置との間で通信を行っているか否かの情報を受信するクライアント制御部と、給電管理部であって、(1)周辺デバイスがいずれのクライアント装置とも通信を行っていない場合、当該周辺デバイスに対してサスペンド状態に遷移する様通知し、(2)任意のポートにおいて、接続されたすべての周辺デバイスがクライアント装置との間で通信を行っておらず、かつポートに接続されたいずれの周辺デバイスも第1の所定条件を満たす場合に、当該ポートへのバスパワー給電を停止する様判断する給電管理部とを備えるデバイスサーバである。ここで、第1の所定条件は、サスペンド状態ではバスパワー給電の停止を許容する周辺デバイスである。   In order to solve the above problems, a device server according to an aspect of the present invention is a device server that is directly or indirectly connected to a peripheral device and relays between a client device and the peripheral device via a network, A client control unit that receives information on whether or not a peripheral device is communicating with a client device and a power supply management unit, and (1) the peripheral device is not communicating with any client device , Notify the peripheral device to transition to the suspend state. (2) At any port, all connected peripheral devices are not communicating with the client device and are connected to the port. When any of the peripheral devices satisfies the first predetermined condition, it is determined that the bus power supply to the port is stopped. A device server and a power supply controller. Here, the first predetermined condition is a peripheral device that allows bus power supply to be stopped in the suspended state.

これによれば、デバイスサーバは、クライアント装置が、周辺デバイスと通信を行っていない場合は、その周辺デバイスをサスペンド状態に遷移させ、さらに任意のポートに接続されたすべての周辺デバイスがクライアント装置との間で通信を行っておらず、かつポートに接続されたいずれの周辺デバイスも、クライアント装置との間で通信を行っていない場合にバスパワー給電の停止を許容する周辺デバイスである場合は、バスパワー給電を停止することにより、不要な電力消費を抑制する。   According to this, when the client device is not communicating with the peripheral device, the device server shifts the peripheral device to the suspended state, and all the peripheral devices connected to arbitrary ports are connected to the client device. If any of the peripheral devices connected to the port are not communicating with the client device and permitting the bus power supply to be stopped when not communicating with the client device, By stopping bus power feeding, unnecessary power consumption is suppressed.

また、本発明の一態様に係るデバイスサーバは、任意の周辺デバイスとの間で通信を行っていたクライアント装置から、当該クライアント装置が省電力モードに遷移する旨の通知を受信するクライアント制御部をさらに備え、デバイス制御部は、クライアント制御部がクライアント装置から省電力モードに遷移する旨の通知を受信し、かつ第2の所定条件を満たすと給電管理部が判断した場合に、クライアント装置と、クライアント装置と通信を行っていた周辺デバイスとの間のセッションを解放する。   In addition, the device server according to one aspect of the present invention includes a client control unit that receives a notification from the client device that has performed communication with an arbitrary peripheral device that the client device transitions to the power saving mode. In addition, the device control unit receives the notification that the client control unit transitions to the power saving mode from the client device, and when the power supply management unit determines that the second predetermined condition is satisfied, Release the session with the peripheral device that was communicating with the client device.

これによれば、デバイスサーバは、任意の周辺デバイスとの間で通信を行っていたクライアント装置から、当該クライアント装置が省電力モードに遷移する旨の通知を受信し、かつ所定条件を満たす場合に、クライアント装置と、クライアント装置と通信を行っていた周辺デバイスとの間のセッションを解放することができる。このように、周辺デバイスがサスペンド状態に遷移し、クライアント装置が周辺デバイスと通信をしていないにもかかわらず、セッションが維持されることで他のクライアント装置から当該周辺デバイスを利用できないという状況を回避できる。さらに、従来のようにセッションを維持し続ける場合は、省電力モードから復帰したクライアント装置とすぐに通信を開始できる。   According to this, when the device server receives a notification from the client device that has been communicating with an arbitrary peripheral device that the client device transitions to the power saving mode and satisfies a predetermined condition. The session between the client device and the peripheral device that was communicating with the client device can be released. In this way, the peripheral device transitions to the suspended state, and the client device is not communicating with the peripheral device, but the session is maintained and the peripheral device cannot be used from another client device. Can be avoided. Further, when the session is continuously maintained as in the prior art, communication can be started immediately with the client device that has returned from the power saving mode.

さらに、第2の所定条件は、クライアントと通信を行っていた周辺デバイスは、クライアント装置が省電力モードに遷移した場合、当該クライアント装置との間のセッションの解放を許容する周辺デバイスである。   Further, the second predetermined condition is that the peripheral device that has been communicating with the client is a peripheral device that allows the session with the client device to be released when the client device transitions to the power saving mode.

本発明は、デバイス制御システムにおいて、デバイスサーバに接続するデバイスの電力消費を抑制しつつ、クライアント装置と接続(セッション)を維持したままサスペンドしているデバイスを他のクライアント装置から利用できるようにする。   The present invention enables a device that is suspended while maintaining a connection (session) with a client device to be used from another client device while suppressing power consumption of the device connected to the device server in the device control system. .

図1は、本発明の実施の形態にかかるデバイス制御システム全体図である。FIG. 1 is an overall view of a device control system according to an embodiment of the present invention. 図2は、本発明の実施の形態にかかるデバイスサーバのハードウェア構成である。FIG. 2 is a hardware configuration of the device server according to the embodiment of the present invention. 図3は、本発明の実施の形態にかかるデバイスサーバの機能ブロック図である。FIG. 3 is a functional block diagram of the device server according to the embodiment of the present invention. 図4は、本発明の実施の形態にかかるクライアント装置の機能ブロックの一例である。FIG. 4 is an example of functional blocks of the client device according to the embodiment of the present invention. 図5は、本発明の実施の形態にかかるデバイスサーバが自装置に接続しているデバイスの使用状況を確認してからポートごとの電力供給を停止するまでのフロー図である。FIG. 5 is a flowchart from when the device server according to the embodiment of the present invention confirms the usage status of a device connected to the own device to when the power supply for each port is stopped. 図6は、本発明の実施の形態にかかるクライアント装置からの通知を受け、デバイスサーバが自装置に接続しているデバイスとのセッションを解放するまでのフロー図である。FIG. 6 is a flowchart from receiving notification from the client apparatus according to the embodiment of the present invention until the device server releases the session with the device connected to the own apparatus.

以下、実施の形態について、図面を参照しながら具体的に説明する。   Hereinafter, embodiments will be specifically described with reference to the drawings.

以下の実施の形態で示される数値、構成要素、構成要素の配置位置などは、一例であり、発明の範囲内において種々の変形や変更が可能である。   Numerical values, constituent elements, arrangement positions of constituent elements, and the like shown in the following embodiments are merely examples, and various modifications and changes can be made within the scope of the invention.

(実施の形態)
図1は、本発明の実施の形態にかかるデバイス制御システムの全体図である。
(Embodiment)
FIG. 1 is an overall view of a device control system according to an embodiment of the present invention.

図1に示すとおり、本発明の実施の形態にかかるデバイス制御システム100は、デバイスサーバ1、クライアント装置2、クライアント装置3、USBハブ4、USBデバイス5、LAN(Local Area Network)10などで構成される。なお、クライアント装置3は、クライアント装置2と同じ機能を有しており、以後詳細な説明はクライアント装置2に対してのみ行う。   As shown in FIG. 1, a device control system 100 according to an embodiment of the present invention includes a device server 1, a client device 2, a client device 3, a USB hub 4, a USB device 5, a LAN (Local Area Network) 10, and the like. Is done. The client device 3 has the same function as the client device 2, and the detailed description will be given only to the client device 2 hereinafter.

デバイス制御システム100では、デバイスサーバ1、クライアント装置2、クライアント装置3がLAN10によりネットワーク接続している。   In the device control system 100, the device server 1, the client device 2, and the client device 3 are network-connected via a LAN 10.

デバイス制御システム100では、クライアント装置2やクライアント装置3に備わるアプリケーションからの指示によりLAN10を介してデバイスサーバ1に接続しているデバイスとの間で通信を行うことができる。LAN10は、本発明の実施の形態では、有線LANを前提に説明するが、無線LANであってもよい。   The device control system 100 can communicate with a device connected to the device server 1 via the LAN 10 according to an instruction from an application provided in the client device 2 or the client device 3. The LAN 10 will be described on the premise of a wired LAN in the embodiment of the present invention, but may be a wireless LAN.

デバイスサーバ1は、USBインタフェースを備える。デバイスサーバ1は、USBインタフェースを1つ備えてもよいし、2以上の複数備えていてもよい。また、デバイスサーバ1は、ネットワークインタフェースを備えており、そのネットワークインタフェースは有線通信インタフェースと無線通信インタフェースの両方を備えていてもよいし、どちらか一方のインタフェースを備えることにしてもよい。有線通信インタフェースは、例えばIEEE802.3規格に準拠した通信を行うインタフェースである。無線通信インタフェースは、例えばIEEE802.11規格に準拠した通信を行うインタフェースである。   The device server 1 includes a USB interface. The device server 1 may include one USB interface or two or more USB interfaces. Further, the device server 1 includes a network interface, and the network interface may include both a wired communication interface and a wireless communication interface, or may include either one of the interfaces. The wired communication interface is an interface that performs communication conforming to, for example, the IEEE 802.3 standard. The wireless communication interface is an interface that performs communication conforming to, for example, the IEEE 802.11 standard.

図1において、デバイスサーバ1は2つのポートを備え、1つ目のポートにはUSBハブ4がローカル接続され、そのUSBハブ4のポートには、小型スキャナやポータブルハードディスクなどがUSBケーブルで接続している。2つ目のポートには、USBデバイス5(例えば、モバイルプリンタなど)が直接ローカル接続されている。なお、USBハブ4のポートにUSBケーブルで接続された周辺デバイスは、USB規格のバスパワーで駆動するデバイスである。   In FIG. 1, the device server 1 has two ports, a USB hub 4 is locally connected to the first port, and a small scanner or a portable hard disk is connected to the port of the USB hub 4 with a USB cable. ing. A USB device 5 (for example, a mobile printer) is directly connected locally to the second port. The peripheral device connected to the port of the USB hub 4 with a USB cable is a device that is driven by USB standard bus power.

デバイスサーバ1は、クライアント装置2のアプリケーションからの指示をもとに、LAN10を介して、デバイスサーバ1に接続された周辺デバイス(例えば、USBハブ4を経由して間接的に接続されたデバイス、および直接接続されたUSBデバイス5など)を選択し接続や切断(セッション確立やセッションを解放)することができる。また、この結果、クライアント装置のユーザは、ネットワーク越しに選択し接続した周辺デバイスをあたかもクライアント装置に直接、接続されたかのように利用できる。   The device server 1 is connected to the peripheral device connected to the device server 1 via the LAN 10 based on an instruction from the application of the client device 2 (for example, a device indirectly connected via the USB hub 4, And a directly connected USB device 5 or the like can be selected and connected or disconnected (session establishment or session release). As a result, the user of the client device can use the peripheral device selected and connected over the network as if it were directly connected to the client device.

クライアント装置2は、例えば、PC(Personal Computer)、タブレット端末、携帯通信端末などである。クライアント装置2は、少なくともネットワーク越しに選択した周辺デバイスをあたかもクライアント装置に直接、接続されたかのように利用できることを実現するアプリケーション(以後、接続管理ツールと呼ぶ)を備えている。クライアント装置2は、デバイスサーバ1と通信するためにネットワークインタフェースを備えており、そのネットワークインタフェースは有線通信インタフェースと無線通信インタフェースの両方を備えていてもよいし、どちらか一方のインタフェースを備えることにしてもよい。   The client device 2 is, for example, a PC (Personal Computer), a tablet terminal, a mobile communication terminal, or the like. The client apparatus 2 includes an application (hereinafter referred to as a connection management tool) that realizes that at least the peripheral device selected over the network can be used as if it was directly connected to the client apparatus. The client device 2 includes a network interface for communicating with the device server 1, and the network interface may include both a wired communication interface and a wireless communication interface, or one of the interfaces. May be.

USBハブ4は、USB規格に準拠し、クライアント装置とUSBデバイスとの間を中継する装置である。USBハブ4は、USBデバイスをローカル接続するための少なくとも1つ以上のポートを備え、それぞれのポートには、USBデバイスをローカル接続することができる。USBハブ4は、USBハブ4が接続している装置(例えば、デバイスサーバ1など)の1つのポートを利用して、複数のUSBデバイスを利用するための装置であり、図1のデバイス制御システム100において、クライアント装置2は、デバイスサーバ1を経由し、デバイスサーバに備わったポート数以上のデバイスを利用できる。また、本実施形態のUSBハブ4は、デバイスサーバ1のポートよりバスパワー給電を受け、接続されたデバイスにバスパワー給電する。   The USB hub 4 is a device that conforms to the USB standard and relays between a client device and a USB device. The USB hub 4 includes at least one port for locally connecting a USB device, and the USB device can be locally connected to each port. The USB hub 4 is a device for using a plurality of USB devices by using one port of a device (for example, the device server 1) to which the USB hub 4 is connected. The device control system of FIG. In 100, the client apparatus 2 can use a device having more than the number of ports provided in the device server 1 via the device server 1. Further, the USB hub 4 of the present embodiment receives bus power from the port of the device server 1 and supplies bus power to the connected device.

本実施形態のUSBデバイス5は、USB規格に準拠しUSBバスパワーにより電源供給を受けて駆動できるUSBデバイスである。例えば、モバイルプリンタ、可搬型スキャナ、ポータブルハードディスク、USBメモリー、マウス、キーボード、カードリーダなどである。   The USB device 5 of the present embodiment is a USB device that can be driven by being supplied with power by USB bus power in accordance with the USB standard. For example, a mobile printer, a portable scanner, a portable hard disk, a USB memory, a mouse, a keyboard, a card reader, and the like.

図2は、本発明の実施の形態に係るデバイスサーバ1、クライアント装置2のハードウェア構成図である。なお、クライアント装置3は、クライアント装置2と同じハードウェア構成を有しており、以後詳細な説明は省略する。   FIG. 2 is a hardware configuration diagram of the device server 1 and the client device 2 according to the embodiment of the present invention. The client device 3 has the same hardware configuration as that of the client device 2 and will not be described in detail later.

図2に示すとおり、これらの装置は、CPU(Central Processing Unit)20、ROM(Read Only Memory)21、RAM(Random Access Memory)22、記憶装置23、USB−I/F24、WNIC(Wireless Network Interface Card)25、NIC(Network Interface Card)26および各構成部品間を接続している内部バス27などを備えている。なお、デバイスサーバ1、クライアント装置2はWNIC25を必ずしも備える必要はない。   As shown in FIG. 2, these devices include a CPU (Central Processing Unit) 20, a ROM (Read Only Memory) 21, a RAM (Random Access Memory) 22, a storage device 23, a USB-I / F 24, a WNIC (Wireless Network Interface). Card) 25, NIC (Network Interface Card) 26, and an internal bus 27 for connecting the components. The device server 1 and the client device 2 do not necessarily have the WNIC 25.

CPU20は、ROM21に格納された制御プログラムを実行するプロセッサである。   The CPU 20 is a processor that executes a control program stored in the ROM 21.

ROM21は、制御プログラム等を保持する読み出し専用記憶領域である。   The ROM 21 is a read-only storage area that holds a control program and the like.

RAM22は、CPU20が制御プログラムを実行するときに使用するワークエリアとして用いられる記憶領域である。   The RAM 22 is a storage area used as a work area used when the CPU 20 executes a control program.

記憶装置23は、制御プログラム、制御情報、装置情報、または情報一時記憶する記憶領域である。   The storage device 23 is a storage area for temporarily storing control programs, control information, device information, or information.

USB‐I/F24は、USB規格に準拠するコネクタ(以下、ポートとも呼ぶ)を有し、そのコネクタに接続されたUSBデバイスとの通信制御を行う。   The USB-I / F 24 has a connector (hereinafter also referred to as a port) conforming to the USB standard, and performs communication control with a USB device connected to the connector.

WNIC25は、無線通信を行う無線通信インタフェースである。例えば、IEEE802.11a、b、g、n、ac規格等に適合する無線LANの通信インタフェースである。   The WNIC 25 is a wireless communication interface that performs wireless communication. For example, a wireless LAN communication interface conforming to the IEEE802.11a, b, g, n, and ac standards.

NIC26は、有線通信を行う有線通信インタフェースである。例えば、IEEE802.3規格等に適合する有線LANの通信インタフェースである。   The NIC 26 is a wired communication interface that performs wired communication. For example, a wired LAN communication interface conforming to the IEEE 802.3 standard or the like.

内部バス27は、CPU20,ROM21、RAM22、記憶装置23、USB‐I/F24、WNIC25、NIC26を電気的に接続し、信号のやりとりを行うバスである。   The internal bus 27 is a bus that electrically connects the CPU 20, ROM 21, RAM 22, storage device 23, USB-I / F 24, WNIC 25, and NIC 26 to exchange signals.

図3は、本発明の実施の形態にかかるデバイスサーバ1の機能ブロック図である。   FIG. 3 is a functional block diagram of the device server 1 according to the embodiment of the present invention.

図3に示すデバイスサーバ1は、クライアント制御部31、デバイス制御部32、通信制御部33、給電管理部34などを備えている。   The device server 1 illustrated in FIG. 3 includes a client control unit 31, a device control unit 32, a communication control unit 33, a power supply management unit 34, and the like.

クライアント制御部31は、デバイス制御部32からの通信ステータスをもとに、自装置のポートに接続しているすべてのデバイスについて、クライアント装置2と通信している(通信中)か否かを判断し、その結果を給電管理部34に通知する。ここで、通信ステータスとは、たとえば、「通信をしている(通信中)」、「通信をしていない(非通信)」などの情報である。例えば、通信ステータスが「通信をしている(通信中)」とは、クライアント装置2が、デバイスサーバ1を介してデバイスとの間で、データの送受信を行っている、あるいは通信制御のためのコマンドなどを送受信している状況である。   Based on the communication status from the device control unit 32, the client control unit 31 determines whether all devices connected to the port of the own device are communicating with the client device 2 (during communication). Then, the result is notified to the power supply management unit 34. Here, the communication status is information such as “communicating (during communication)”, “not communicating (non-communication)”, and the like. For example, the communication status “communication (communication in progress)” means that the client apparatus 2 is transmitting / receiving data to / from the device via the device server 1 or for communication control. This is a situation where commands are transmitted and received.

また、クライアント制御部31は、上記通信ステータスの給電管理部34への通知は、所定の時期に行う。ここで、通信ステータスを給電管理部34に通知する所定の時期とは、例えば、デバイスサーバ1の電源投入後、一定の時間間隔であってもよいし、クライアント装置2に備わる常駐モジュール42からの指示やユーザがアプリケーション41から行う指示をデバイス制御部32が受けたときでもよい。   Further, the client control unit 31 notifies the power supply management unit 34 of the communication status at a predetermined time. Here, the predetermined time for notifying the power supply management unit 34 of the communication status may be, for example, a fixed time interval after the device server 1 is turned on, or from the resident module 42 provided in the client device 2. The device control unit 32 may receive an instruction or an instruction given by the user from the application 41.

さらに、クライアント制御部31は、クライアント装置2からの省電力モード通知を受信したか否かを判断する。また、クライアント制御部31は、LAN10を通じてクライアント装置2の通信制御モジュール46との間でネットワークパケットの送受信を行う。   Furthermore, the client control unit 31 determines whether or not a power saving mode notification from the client device 2 has been received. In addition, the client control unit 31 transmits and receives network packets to and from the communication control module 46 of the client device 2 through the LAN 10.

デバイス制御部32は、自装置のポートに接続しているデバイスの通信ステータスをクライアント制御部31に通知する。   The device control unit 32 notifies the client control unit 31 of the communication status of the device connected to the port of the own device.

また、デバイス制御部32は、給電管理部34からのサスペンド通知(後述)を受けて、デバイスをサスペンドするように制御する。   In addition, the device control unit 32 receives a suspend notification (described later) from the power supply management unit 34 and controls to suspend the device.

さらに、デバイス制御部32は、給電管理部34からの電力供給を停止する旨の通知を受けて、自装置に備えるポートへの電力供給(バスパワーによる)を停止する。   Furthermore, the device control unit 32 receives the notification that the power supply from the power supply management unit 34 is stopped, and stops the power supply (by bus power) to the port included in the device.

また、デバイス制御部32は、後述するように給電管理部34からの通知を受けて、クライアント装置2とセッションを確立している周辺デバイスに対し、セッションを解放するように制御する。   In addition, the device control unit 32 receives a notification from the power supply management unit 34 as will be described later, and controls peripheral devices that have established a session with the client apparatus 2 so as to release the session.

通信制御部33は、後述するクライアント装置2のトンネリングドライバ45と同等の機能を備え、クライアント制御部31が受信したネットワークパケットを、デバイスサーバ1を介して接続している周辺デバイスに送信できるデータ形式に変換し、デバイス制御部32に渡す。その一方で、デバイス制御部32が受信した周辺デバイスのデータをクライアント装置2に送信できるデータ形式に変換し、クライアント制御部31に渡す。   The communication control unit 33 has a function equivalent to a tunneling driver 45 of the client apparatus 2 to be described later, and is a data format that can transmit a network packet received by the client control unit 31 to a peripheral device connected via the device server 1 To the device control unit 32. On the other hand, the peripheral device data received by the device control unit 32 is converted into a data format that can be transmitted to the client device 2 and passed to the client control unit 31.

給電管理部34は、クライアント制御部31の通知をもとにクライアント装置2と通信していないデバイスがある場合、デバイス制御部32にデバイスをサスペンドに遷移させる旨の通知(以後、サスペンド通知と呼ぶ)を行う。   When there is a device that is not communicating with the client apparatus 2 based on the notification from the client control unit 31, the power supply management unit 34 notifies the device control unit 32 to change the device to suspend (hereinafter referred to as a suspend notification). )I do.

また、給電管理部34は、自装置に備えるポートに対して、バスパワー供給を停止する条件を満たしているか否かを判断する。この条件を満たしている場合は、デバイス制御部32にそのポートに対する電力供給を停止する旨の通知を行う。この条件は、ポートまたはデバイス毎に設定可能である。ポート毎の設定とは、あるポートに接続されたすべてのデバイスがサスペンド状態に遷移した場合、当該ポートへのバスパワー給電を停止する。一方デバイス毎の設定とは、あるポートに接続されたすべてのデバイスがサスペンド状態に遷移し、かつすべてのデバイスが「サスペンド状態にあるときバスパワー供給停止を許容する」(第1の所定条件)の場合に、当該ポートへのバスパワー給電を停止する。(逆に少なくとも1つのデバイスがバスパワー供給停止を受け入れない設定であれば、すべてのデバイスがサスペンド状態であってもバスパワー供給を継続する。)   In addition, the power supply management unit 34 determines whether or not a condition for stopping the bus power supply is satisfied with respect to the port provided in the own device. When this condition is satisfied, the device control unit 32 is notified that power supply to the port is stopped. This condition can be set for each port or device. The setting for each port is that when all devices connected to a certain port transition to the suspended state, the bus power supply to the port is stopped. On the other hand, the setting for each device is that all devices connected to a certain port transition to the suspend state and all devices “allow bus power supply stop when in suspend state” (first predetermined condition) In this case, the bus power supply to the port is stopped. (Conversely, if at least one device does not accept the bus power supply stop, the bus power supply continues even if all devices are in the suspended state.)

省電力の観点からは、サスペンド状態に遷移したデバイスへのバスパワーの供給を停止することは望ましい。しかし、バスパワーの供給再開やクライアント装置とその接続(セッション)の復帰に伴い、立上げに時間を要するデバイスである場合や初期化処理が必要になる等といったデメリットも存在する。したがって、本発明では、サスペンド状態に移行させた後、強制的にバスパワー供給の停止を行うのではなく、デバイスまたはポート毎に供給停止を許容するか否かの自由度を持たせる。このようにすることで、ユーザの利便性と省電力とのバランスを好適に得られる。   From the viewpoint of power saving, it is desirable to stop the supply of bus power to the device that has transitioned to the suspended state. However, there is a demerit such as a device that takes time to start up or initialization processing as the bus power supply resumes or the client device and its connection (session) return. Therefore, in the present invention, after shifting to the suspend state, the bus power supply is not forcibly stopped, but the device or the port has a degree of freedom of whether or not to allow the supply stop. By doing in this way, the balance of a user's convenience and power saving can be obtained suitably.

さらに、給電管理部34は、個々のデバイスについて、クライアント装置2からの省電力モード通知とセッション解放条件(第2の所定条件ともいう)をもとにクライアント装置2とのセッションを解放してもよいか否かを判断する。解放を許容する場合は、デバイスに対し、セッションを解放する旨の通知をデバイス制御部32に行う。この条件は、デバイス毎に設定される。多数のクライアントから使用されるようなデバイス(例えばプリンタ)では、使用を終わった時、一旦セッションを解放しどのクライアントからでも使用できる状態にするのがよいが、他方、元のクライアントから再び利用する際には、プラグンドプレイが再度作動してドライバをインストールすることが必要であり、再利用まで時間を要するというデメリットもある。したがって、デバイス毎にセッション解放条件を設定し、ユーザの利便性を一段と高めている。   Furthermore, the power supply management unit 34 releases the session with the client device 2 for each device based on the power saving mode notification from the client device 2 and the session release condition (also referred to as a second predetermined condition). Judge whether it is good or not. When the release is permitted, the device control unit 32 is notified to the device that the session is to be released. This condition is set for each device. In a device (for example, a printer) that is used by a large number of clients, when the use is finished, it is preferable to once release the session so that it can be used by any client, but on the other hand, use it again from the original client. In this case, it is necessary to install the driver by operating the plugged play again, and there is a demerit that it takes time until reuse. Therefore, a session release condition is set for each device, which further enhances user convenience.

図4は、本発明の実施の形態にかかるクライアント装置2の機能ブロック図である。   FIG. 4 is a functional block diagram of the client device 2 according to the embodiment of the present invention.

図4に示すクライアント装置2は、ROM21や記憶装置23に格納され、実行時にRAM22に展開されるアプリケーション41、常駐モジュール42、デバイスドライバ43、USBクラスドライバ44、トンネリングドライバ45、通信制御モジュール46などをソフトウェア部品として備えている。この他、ソフトウェア部品として、OS(Operating System)などがあり、制御に必要な各種データと共にROM21や記憶装置23に格納されている。これらソフトウェア部品及び各種データは、CPU20の制御に従い、RAM22などのメモリー上に読み出されて各種制御が実行される。   4 includes an application 41, a resident module 42, a device driver 43, a USB class driver 44, a tunneling driver 45, a communication control module 46, and the like that are stored in the ROM 21 or the storage device 23 and expanded in the RAM 22 at the time of execution. As a software component. In addition, there is an OS (Operating System) as a software component, which is stored in the ROM 21 and the storage device 23 together with various data necessary for control. These software components and various data are read out on a memory such as the RAM 22 according to the control of the CPU 20, and various controls are executed.

アプリケーション41は、クライアント装置2にインストールされるソフトウェアであり、LAN10を介してデバイスサーバ1に接続しているデバイス5やUSBハブ4(以後、周辺デバイスとも呼ぶ)と通信するときに接続(セッションを確立)、切断(セッションを解放)を行うものである。具体的には、アプリケーション41は、クライアント装置2からLAN10を介してデバイスサーバ1に接続している周辺デバイスを利用するにあたり、周辺デバイスの接続・切断を制御する仮想接続ツールである。このツールを用いて、クライアント装置2のユーザは、選択した周辺デバイスをあたかもクライアント装置2に直接接続されたかのように利用できるのである。   The application 41 is software installed in the client apparatus 2, and is connected when communicating with a device 5 or a USB hub 4 (hereinafter also referred to as a peripheral device) connected to the device server 1 via the LAN 10. Establishment) and disconnection (release the session). Specifically, the application 41 is a virtual connection tool that controls connection / disconnection of a peripheral device when using the peripheral device connected to the device server 1 via the LAN 10 from the client apparatus 2. By using this tool, the user of the client apparatus 2 can use the selected peripheral device as if it were directly connected to the client apparatus 2.

アプリケーション41は、クライアント装置2を使用するユーザによって行われる周辺デバイスとの接続または切断の指示を常駐モジュール42に通知する。   The application 41 notifies the resident module 42 of a connection or disconnection instruction with a peripheral device performed by a user using the client apparatus 2.

常駐モジュール42は、OSが起動している間、常に待機及び動作しているソフトウェア部品であり、LAN10を介してデバイスサーバ1とデータ送受信を行う。また、デバイスサーバ1に接続されている周辺デバイスを認識して識別するためのUSBデバイス情報を受信する。受信したUSBデバイス情報に基づいて、周辺デバイスとのデータ送受信に必要となるデバイスドライバ43、USBクラスドライバ44を生成し、周辺デバイスを制御できる状態にする。   The resident module 42 is a software component that always stands by and operates while the OS is running, and performs data transmission and reception with the device server 1 via the LAN 10. Also, USB device information for recognizing and identifying peripheral devices connected to the device server 1 is received. Based on the received USB device information, a device driver 43 and a USB class driver 44 necessary for data transmission / reception with the peripheral device are generated, and the peripheral device can be controlled.

常駐モジュール42は、常時、クラインアント装置とデバイスサーバとの間の通信状況(例えば、通信中、未通信など)を監視している。また、OSからクライアント装置の電力利用状況を取得する。例えば、スリープ状態、休止状態、電力管理ツールなどで電力を極力消費しないモード(以後、省電力モードと呼ぶ)などである。   The resident module 42 constantly monitors the communication status (for example, during communication, no communication, etc.) between the client device and the device server. Also, the power usage status of the client device is acquired from the OS. For example, there are a sleep state, a hibernation state, a mode in which power is not consumed as much as possible in a power management tool, etc. (hereinafter referred to as a power saving mode).

さらに、常駐モジュール42は、クラインアント装置が省電力モードに遷移した場合は、省電力モードに遷移した旨の通知(以後、省電力モード通知と呼ぶ)をLAN10経由でデバイスサーバ1のクライアント制御部31に送信する。   Furthermore, the resident module 42, when the client device has transitioned to the power saving mode, notifies the client control unit of the device server 1 via the LAN 10 that the client device has switched to the power saving mode (hereinafter referred to as the power saving mode notification). 31.

デバイスドライバ43は、OSやアプリケーション41、常駐モジュール42など上位プログラムからのデータ入出力要求を、データ入出力対象の周辺デバイスに応じたデータ形式に変換し、また、周辺デバイスからの応答を上位プログラムに渡す。   The device driver 43 converts a data input / output request from a higher-level program such as the OS, the application 41, and the resident module 42 into a data format corresponding to the peripheral device targeted for data input / output, and sends a response from the peripheral device to the higher-level program To pass.

USBクラスドライバ44は、デバイスドライバ43によって、周辺デバイスに応じたデータ形式に変換されたデータ入出力要求を、USBのデータ形式に準拠したパケットデータに変換してトンネリングドライバ45に渡し、またトンネリングドライバ45から送られてくるUSBのデータ形式に準拠したパケットデータを、データ形式変換してデバイスドライバ43に渡す。   The USB class driver 44 converts the data input / output request converted into the data format according to the peripheral device by the device driver 43 into packet data compliant with the USB data format and passes it to the tunneling driver 45. The packet data conforming to the USB data format sent from 45 is converted into a data format and passed to the device driver 43.

トンネリングドライバ45は、USBクラスドライバ44から渡されたUSBパケットデータをデバイスサーバ1とLAN10経由で通信できるようにネットワークパケットにカプセル化する。その一方で、デバイスサーバ1からネットワークパケットを受信すると、このネットワークパケットからUSBパケットデータを取り出し(デカプセルして)、USBクラスドライバ44、デバイスドライバ43に渡す。   The tunneling driver 45 encapsulates the USB packet data passed from the USB class driver 44 into a network packet so that it can communicate with the device server 1 via the LAN 10. On the other hand, when a network packet is received from the device server 1, USB packet data is taken out (decapsulated) from the network packet and passed to the USB class driver 44 and the device driver 43.

通信制御モジュール46は、上位プログラムのトンネリングドライバ45からネットワークパケットを受けて、LAN10を介してデバイスサーバ1のクライアント制御部31に送信する。その一方で、デバイスサーバ1からLAN10を介してネットワークパケットを受信すると、そのネットワークパケットをトンネリングドライバ45に渡す。   The communication control module 46 receives a network packet from the tunneling driver 45 of the host program and transmits it to the client control unit 31 of the device server 1 via the LAN 10. On the other hand, when a network packet is received from the device server 1 via the LAN 10, the network packet is passed to the tunneling driver 45.

図5は、本発明の実施の形態にかかるデバイスサーバが自装置に接続しているデバイスの使用状況を確認してからポートごとの電力供給を停止するまでのフローについて、以下に順をおって説明する。   FIG. 5 shows the flow from when the device server according to the embodiment of the present invention confirms the usage status of a device connected to its own device to when the power supply for each port is stopped, in the following order. explain.

ステップS500にて、デバイス制御部32は、自装置のポートの1つに接続しているデバイスの通信ステータスをクライアント制御部31に通知する。クライアント制御部31は、通信ステータスをもとに、そのデバイスがクライアント装置2と通信している(通信中)か否かを判断し、結果を給電管理部34に通知する。デバイスとクライアント装置2が通信をしている場合は、ステップS502に遷移する(ステップS500のYes)。通信していない場合は、デバイスをサスペンドするためステップS501に遷移する(ステップS500のNo)。   In step S500, the device control unit 32 notifies the client control unit 31 of the communication status of the device connected to one of its own ports. Based on the communication status, the client control unit 31 determines whether the device is communicating with the client apparatus 2 (during communication) and notifies the power supply management unit 34 of the result. When the device and the client apparatus 2 are communicating, the process proceeds to step S502 (Yes in step S500). If not communicating, the process proceeds to step S501 to suspend the device (No in step S500).

ステップS501にて、給電管理部34は、クライアント制御部31の通知(ステップS500のNo)をもとに、そのデバイスがサスペンド状態に遷移されるようにデバイス制御部32へ通知する。デバイス制御部32は、給電管理部34からのサスペンド通知を受けると、USB規格に準じ、デバイスをサスペンド状態に遷移させる処理を行う。   In step S501, based on the notification from the client control unit 31 (No in step S500), the power supply management unit 34 notifies the device control unit 32 so that the device transitions to the suspended state. Upon receiving the suspend notification from the power supply management unit 34, the device control unit 32 performs processing for transitioning the device to the suspend state according to the USB standard.

ステップS502にて、デバイス制御部32は、自装置のポートの1つに接続しているすべてのデバイスの通信ステータスをクライアント制御部31に通知したか否かを判断する。通知した場合は、ステップS503に遷移する(ステップS502のYes)。通知していない場合は、ステップS506に遷移する(ステップS502のNo)。   In step S502, the device control unit 32 determines whether or not the client control unit 31 has been notified of the communication status of all devices connected to one of the ports of the own device. If notified, the process proceeds to step S503 (Yes in step S502). If not notified, the process proceeds to step S506 (No in step S502).

ステップS503にて、給電管理部34は、バスパワー供給を停止する条件を満たしているか否かを判断する。満たしている場合は、デバイス制御部32に対象ポートに直接・間接に接続されたデバイスに対する電力供給を停止する旨の通知を行う(ステップS503のYes)。満たしていない場合は、ステップS505に遷移(ステップS503のNo)する。バスパワー供給を停止する条件とは、前述のとおり、ポートごとの制御では、(a)対象ポートに直接・間接に接続しているすべてのデバイスがサスペンド状態に遷移している、またはデバイスごとの制御では、(b)対象ポートに直接・間接に接続しているすべてのデバイスがサスペンド状態に遷移しており、かつすべてのデバイスが第1の所定条件すなわち「サスペンド状態ではバスパワー供給を停止してよい」との設定である、ことを意味する。つまり、第1の設定条件は、予め工場出荷時に設定されていてもよいし、クライアント装置に備わるアプリケーションから設定可能であってもよい。   In step S503, the power supply management unit 34 determines whether a condition for stopping the bus power supply is satisfied. When it is satisfied, the device control unit 32 is notified that the power supply to the device directly or indirectly connected to the target port is stopped (Yes in step S503). When not satisfy | filling, it changes to step S505 (No of step S503). As described above, the conditions for stopping the bus power supply are as follows: (a) All devices connected directly or indirectly to the target port have transitioned to the suspended state, or In the control, (b) all devices connected directly or indirectly to the target port have transitioned to the suspend state, and all devices have stopped the bus power supply in the first predetermined condition, ie “suspend state. It means that the setting is “good”. That is, the first setting condition may be set in advance at the time of shipment from the factory, or may be set from an application provided in the client device.

ステップS504にて、給電管理部34からの通知(ステップS503のYes)を受けて、デバイス制御部32は、ポートへのバスパワー供給を停止する。   In step S504, upon receiving a notification from the power supply management unit 34 (Yes in step S503), the device control unit 32 stops supplying bus power to the port.

ステップS505にて、自装置に備わるすべてのポートについて、クライアント制御部31は、デバイス制御部32からの通信ステータスをもとにステップ501からステップS504までの一連の処理を実行したか否かを判断する。すべてのポートについて、一連の処理が行われた場合は、処理を終了する(ステップS505のYes)。一連の処理が行われていない場合は、ステップS507に遷移する(ステップS505のNo)。   In step S <b> 505, the client control unit 31 determines whether a series of processing from step 501 to step S <b> 504 has been executed based on the communication status from the device control unit 32 for all ports provided in the own device. To do. If a series of processing has been performed for all ports, the processing ends (Yes in step S505). If a series of processing has not been performed, the process proceeds to step S507 (No in step S505).

ステップ506にて、クライアント制御部31は、デバイス制御部32からの通信ステータスをもとに、1つの対象ポートに接続しているデバイス(USBハブを介して間接的に接続しているデバイスを含む)に対し順次、ステップS500からS502の一連の処理を繰り返すために、処理が完了していないデバイスに対して一連の処理を開始する。   In step 506, the client control unit 31 includes devices connected to one target port (including devices connected indirectly through a USB hub) based on the communication status from the device control unit 32. In order to repeat the series of processes in steps S500 to S502, a series of processes is started for devices that have not been processed.

ステップ507にて、クライアント制御部31は、デバイス制御部32からの通信ステータスをもとに、すべてのポートに対し順次、ステップS500からS505の一連の処理を繰り返すために、処理が完了していないポートに対して一連の処理を開始する。   In step 507, the client control unit 31 repeats the series of processing from step S500 to step S505 for all the ports sequentially based on the communication status from the device control unit 32, and thus the processing is not completed. A series of processing is started for the port.

ここで、デバイスサーバ1が備える複数のポートに対する一連の処理を行う時期は、例えば、デバイスサーバ1の電源投入後、所定の時間間隔で実行される。また、クライアント装置2に備わる常駐モジュールからの指示やユーザが行うアプリケーションからの指示をもとに実行されてもよい。特にデバイスサーバ1は、所定の時間間隔で一連の処理を行うことで、クライアント装置2からの指示やユーザが行うアプリケーションへの指示を受けなくても、自律的に一連の処理を行えるのでユーザの手間と不要な電力供給を抑制できる。   Here, the timing for performing a series of processing for a plurality of ports provided in the device server 1 is executed at a predetermined time interval after the device server 1 is powered on, for example. Further, it may be executed based on an instruction from a resident module provided in the client device 2 or an instruction from an application performed by a user. In particular, the device server 1 can perform a series of processing at a predetermined time interval, and thus can perform a series of processing autonomously without receiving an instruction from the client device 2 or an instruction to an application performed by the user. It is possible to suppress labor and unnecessary power supply.

つぎに図6は、本発明の実施の形態にかかるクライアント装置からの通知を受け、デバイスサーバが自装置に接続しているデバイスとのセッションを解放するまでのフローについて、クライアント装置の動作とデバイスサーバの動作を処理の流れに沿って、以下に説明する。なお、図6の処理開始時点では、クライアント装置2と自装置に接続しているデバイス5とは、クライアント装置2に備わるアプリケーション41によって互いに通信可能な状態(セッションを確立している)であり、常駐モジュール42により、常時、互いの通信状況(例えば、通信中、未通信など)を監視している。   Next, FIG. 6 shows the operation of the client apparatus and the device in the flow from receiving the notification from the client apparatus according to the embodiment of the present invention until the device server releases the session with the device connected to the own apparatus. The operation of the server will be described below along the flow of processing. At the time of starting the processing in FIG. 6, the client device 2 and the device 5 connected to the own device are in a state in which they can communicate with each other by the application 41 provided in the client device 2 (a session is established), The resident module 42 constantly monitors each other's communication status (for example, during communication, no communication, etc.).

ステップS601にて、クライアント装置2に備わる常駐モジュール42が、クライアント装置2が省電力モードに遷移した旨の情報をシステム(図示しない、例えば、OSなど)から取得したか否か判断する。省電力モードに遷移した場合は、ステップS602に遷移する(ステップS601のYes)。省電力モードに遷移していない場合は、ステップS601に留まり、システムからの省電力モードに遷移した旨の情報の取得を待つ(ステップS601のNo)。   In step S601, the resident module 42 provided in the client device 2 determines whether information indicating that the client device 2 has transitioned to the power saving mode has been acquired from a system (not shown, for example, an OS). When transitioning to the power saving mode, transition is made to step S602 (Yes in step S601). If the mode has not been changed to the power saving mode, the process stays in step S601 and waits for acquisition of information indicating that the system has changed to the power saving mode (No in step S601).

ステップS602にて、クライアント装置2に備わる常駐モジュール42は、「自装置(クライアント装置2)が省電力モードに遷移した旨」の情報をLAN10経由でデバイスサーバ1に通知する。省電力モード通知は、トンネリングドライバ45でデバイスサーバ1と通信可能な形式に変換され、通信制御モジュール46からLAN10を通じてデバイスサーバ1に通知される。   In step S <b> 602, the resident module 42 included in the client device 2 notifies the device server 1 via the LAN 10 of information that “the own device (client device 2) has shifted to the power saving mode”. The power saving mode notification is converted into a format communicable with the device server 1 by the tunneling driver 45, and notified to the device server 1 from the communication control module 46 through the LAN 10.

ステップS603にて、デバイスサーバ1に備わるクライアント制御部31は、クライアント装置2からの省電力モード通知を受信したか否かを判断する。受信した場合は、その旨を給電管理部34に通知し、ステップS604に遷移する(ステップS603のYes)。受信していない場合は、ステップS603を繰り返し、省電力モード通知の受信を待つ(ステップS603のNo)。   In step S <b> 603, the client control unit 31 included in the device server 1 determines whether or not a power saving mode notification is received from the client device 2. If it has been received, this is notified to the power supply management unit 34, and the process proceeds to step S604 (Yes in step S603). If not received, step S603 is repeated to wait for reception of the power saving mode notification (No in step S603).

ステップS604にて、給電管理部34は、クライアント装置2からの省電力モード通知とセッション解放条件をもとにクライアント装置2とのセッションを解放してもよいか否かを判断する。セッション解放を許容する場合は、デバイス制御部32に、クライアント2に関わるデバイスに対しセッションを解放する旨の通知を行い、ステップS605に遷移する(ステップS604のYes)。セッション解放を許容しない場合は、ステップS606に遷移(ステップS604のNo)する。ここで、セッション解放条件とは、クライアント装置2からの省電力モード通知をデバイスサーバ1のクライアント制御部31が受信すると、クライアント装置2とデバイス5との間のセッションを解放する条件である。セッション解放条件は、予めデバイスサーバ1において、デバイスごとに設定されていてもよいし、クライアント装置2に備わるアプリケーション41で設定できるようにしてもよい。   In step S604, the power supply management unit 34 determines whether or not the session with the client apparatus 2 may be released based on the power saving mode notification from the client apparatus 2 and the session release condition. When the session release is permitted, the device control unit 32 is notified to the device related to the client 2 that the session is released, and the process proceeds to step S605 (Yes in step S604). If session release is not permitted, the process proceeds to step S606 (No in step S604). Here, the session release condition is a condition for releasing a session between the client apparatus 2 and the device 5 when the client control unit 31 of the device server 1 receives the power saving mode notification from the client apparatus 2. The session release condition may be set in advance for each device in the device server 1 or may be set by the application 41 provided in the client apparatus 2.

ステップS605にて、給電管理部34は、ステップS604の判断(ステップS604のYes)をもとにデバイス制御部32にクライアント装置2とデバイス5との間のセッションを解放する旨を通知し、デバイス制御部32は、デバイス5がクライアント装置2とのセッションを解放し、さらにサスペンドに遷移するように制御する。このようにすれば、新たにデバイス5を利用したい他のクライアント装置(例えば、クライアント装置3)は、クライアント装置2とデバイス5との間でセッションが解放されているので、クライアント装置3のアプリケーション41からサスペンドしているデバイス5に接続要求をすることで、すぐにセッションを確立することができる。   In step S605, the power supply management unit 34 notifies the device control unit 32 that the session between the client apparatus 2 and the device 5 is to be released based on the determination in step S604 (Yes in step S604). The control unit 32 performs control so that the device 5 releases the session with the client apparatus 2 and shifts to the suspend state. In this way, since the session between the client apparatus 2 and the device 5 is released by another client apparatus (for example, the client apparatus 3) that wants to newly use the device 5, the application 41 of the client apparatus 3 By making a connection request to the suspended device 5, the session can be established immediately.

ステップS606にて、給電管理部34は、ステップS604の判断(ステップS604のNo)をもとにデバイス5をサスペンドさせる旨を通知し、デバイス制御部32は、デバイス5がサスペンド状態に遷移するように制御する。つまり、デバイス5は、クライアント装置2との間のセッションは維持しつつ、サスペンド状態に遷移する。このようにすれば、他のクライアントが当該デバイス5を利用することはできない一方、クライアント2とデバイス5との間のセッションは維持されているため、サスペンドから復帰後にすぐにクライアント装置2との通信を再開できる。   In step S606, the power supply management unit 34 notifies that the device 5 is suspended based on the determination in step S604 (No in step S604), and the device control unit 32 causes the device 5 to transition to the suspended state. To control. That is, the device 5 transitions to the suspended state while maintaining the session with the client device 2. In this way, while other clients cannot use the device 5, the session between the client 2 and the device 5 is maintained, so communication with the client device 2 immediately after returning from suspend. Can be resumed.

(まとめ)
上述したように、クライアント装置と自装置に備わるポートに接続しているデバイスとの間をネットワークを介して中継しているデバイス制御システムにおいて、本発明の実施の形態であるデバイスサーバは、クライアント装置がデバイスと通信をしていない場合は、そのデバイスをサスペンドに遷移させ、さらにバスパワー(デバイスサーバからデバイスに給電)を停止してもよい設定であれば、バスパワーをも停止することで、不要な電力消費を抑制する。また、クライアント装置が省電力モードに移行した旨の通知をクライアント装置からネットワークを通じて受信すると、クライアント装置とデバイスとの間のセッションの解放、またはセッションの維持を判断する。このようにすれば、デバイスが1つの省電力モードに遷移し、デバイスと通信をしていないにもかかわらず、セッションが維持されて他のクライアント装置から当該デバイスを利用できないという状況を回避つつも、従来のようにセッションを維持し続ける判断がくだれば、省電力モードから復帰したクライアント装置とすぐに通信を開始できる。
(Summary)
As described above, in the device control system that relays between the client device and the device connected to the port of the own device via the network, the device server according to the embodiment of the present invention is the client device. If the device is not communicating with the device, the device can be put into suspend, and if the bus power (power from the device server to the device) can be stopped, stop the bus power. Reduce unnecessary power consumption. Further, when a notification that the client apparatus has shifted to the power saving mode is received from the client apparatus via the network, it is determined whether to release the session between the client apparatus and the device or to maintain the session. In this way, while the device transitions to one power saving mode and is not communicating with the device, the session is maintained and the client device cannot be used from another client device. If it is determined that the session is to be maintained as in the prior art, communication can be started immediately with the client device that has returned from the power saving mode.

USBデバイスのサスペンド状態による不必要な電力消費を抑制しつつ、システムでの円滑なデバイス利用を行う際に有用である。   This is useful for smoothly using the device in the system while suppressing unnecessary power consumption due to the suspended state of the USB device.

100 デバイス制御システム
1 デバイスサーバ
2、3 クライアント装置
4 USBハブ
5 デバイス(プリンタ)
10 LAN
20 CPU
21 ROM
22 RAM
23 記憶装置
24 USB−I/F
25 WNIC
26 NIC
27 内部バス
31 クライアント制御部
32 デバイス制御部
33 通信制御部
34 給電管理部
41 アプリケーション
42 常駐モジュール
43 デバイスドライバ
44 USBクラスドライバ
45 トンネリングドライバ
46 通信制御モジュール

100 Device control system 1 Device server 2, 3 Client device 4 USB hub 5 Device (printer)
10 LAN
20 CPU
21 ROM
22 RAM
23 Storage device 24 USB-I / F
25 WNIC
26 NIC
27 Internal Bus 31 Client Control Unit 32 Device Control Unit 33 Communication Control Unit 34 Power Supply Management Unit 41 Application 42 Resident Module 43 Device Driver 44 USB Class Driver 45 Tunneling Driver 46 Communication Control Module

Claims (4)

周辺デバイスと直接または間接的に接続され、ネットワーク経由でクライアント装置と周辺デバイスとの間を中継するデバイスサーバであって、
周辺デバイスが前記クライアント装置との間で通信を行っているか否かの情報を受信するクライアント制御部と、
給電管理部であって、
(1)前記周辺デバイスがいずれのクライアント装置とも通信を行っていない場合、当該周辺デバイスに対してサスペンド状態に遷移する様通知し、
(2)任意のポートにおいて、接続されたすべての周辺デバイスがクライアント装置との間で通信を行っていない場合に、当該ポートへのバスパワー給電を停止する様判断する、
給電管理部
とを備えるデバイスサーバ。
A device server that is directly or indirectly connected to a peripheral device and relays between a client device and the peripheral device via a network;
A client control unit for receiving information on whether or not a peripheral device is communicating with the client device;
A power management unit,
(1) If the peripheral device is not communicating with any client device, notify the peripheral device to transition to the suspended state,
(2) In any port, when all the connected peripheral devices are not communicating with the client device, it is determined to stop the bus power supply to the port.
A device server comprising a power supply management unit.
周辺デバイスと直接または間接的に接続され、ネットワーク経由でクライアント装置と周辺デバイスとの間を中継するデバイスサーバであって、
周辺デバイスが前記クライアント装置との間で通信を行っているか否かの情報を受信するクライアント制御部と、
給電管理部であって、
(1)前記周辺デバイスがいずれのクライアント装置とも通信を行っていない場合、当該周辺デバイスに対してサスペンド状態に遷移する様通知し、
(2)任意のポートにおいて、接続されたすべての周辺デバイスがクライアント装置との間で通信を行っておらず、かつ前記ポートに接続されたいずれの周辺デバイスも第1の所定条件を満たす場合に、当該ポートへのバスパワー給電を停止する様判断する、
給電管理部とを備え、
前記第1の所定条件は、サスペンド状態ではバスパワー給電の停止を許容する周辺デバイスである
デバイスサーバ。
A device server that is directly or indirectly connected to a peripheral device and relays between a client device and the peripheral device via a network;
A client control unit for receiving information on whether or not a peripheral device is communicating with the client device;
A power management unit,
(1) If the peripheral device is not communicating with any client device, notify the peripheral device to transition to the suspended state,
(2) When any peripheral device connected at any port does not communicate with the client apparatus, and any peripheral device connected to the port satisfies the first predetermined condition Judging to stop the bus power supply to the port.
A power supply management unit,
The first predetermined condition is a device server that is a peripheral device that allows bus power supply to be stopped in a suspended state.
前記デバイスサーバは、
任意の周辺デバイスとの間で通信を行っていたクライアント装置から、当該クライアント装置が省電力モードに遷移する旨の通知を受信するクライアント制御部
をさらに備え、
前記デバイス制御部は、
前記クライアント制御部が前記クライアント装置から省電力モードに遷移する旨の通知を受信し、かつ第2の所定条件を満たすと前記給電管理部が判断した場合に、前記クライアント装置と、前記クライアント装置と通信を行っていた前記周辺デバイスとの間のセッションを解放する
請求項1ないし2のいずれかに記載のデバイスサーバ。
The device server is
A client control unit that receives a notification from the client device that has been communicating with an arbitrary peripheral device that the client device transitions to the power saving mode;
The device controller is
When the power supply management unit determines that the client control unit receives a notification from the client device that the mode is changed to the power saving mode and satisfies a second predetermined condition, the client device, the client device, The device server according to claim 1, wherein a session with the peripheral device that has performed communication is released.
前記第2の所定条件は、前記クライアントと通信を行っていた前記周辺デバイスは、前記クライアント装置が省電力モードに遷移した場合、当該クライアント装置との間のセッションの解放を許容する周辺デバイスである、
請求項3に記載のデバイスサーバ。

The second predetermined condition is that the peripheral device that is communicating with the client is a peripheral device that allows a session with the client device to be released when the client device transitions to a power saving mode. ,
The device server according to claim 3.

JP2016168712A 2016-08-31 2016-08-31 Device server Active JP6557889B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016168712A JP6557889B2 (en) 2016-08-31 2016-08-31 Device server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016168712A JP6557889B2 (en) 2016-08-31 2016-08-31 Device server

Publications (3)

Publication Number Publication Date
JP2018036810A true JP2018036810A (en) 2018-03-08
JP2018036810A5 JP2018036810A5 (en) 2019-03-14
JP6557889B2 JP6557889B2 (en) 2019-08-14

Family

ID=61565950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016168712A Active JP6557889B2 (en) 2016-08-31 2016-08-31 Device server

Country Status (1)

Country Link
JP (1) JP6557889B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020218196A1 (en) * 2019-04-26 2020-10-29 京セラドキュメントソリューションズ株式会社 Communication device and image forming device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008176773A (en) * 2006-12-21 2008-07-31 Canon Inc Information processor, information processing method and program for executing the method
JP2010113606A (en) * 2008-11-07 2010-05-20 Canon Imaging Systems Inc System, client and method for sharing device
JP2012043116A (en) * 2010-08-18 2012-03-01 Buffalo Inc Monitoring system, device server, host computer, monitoring method, and monitoring program
JP2012168589A (en) * 2011-02-09 2012-09-06 Ricoh Co Ltd Information processing device, information processing device control method and program
JP2014057134A (en) * 2012-09-11 2014-03-27 Canon Inc Image forming device, image forming device control method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008176773A (en) * 2006-12-21 2008-07-31 Canon Inc Information processor, information processing method and program for executing the method
JP2010113606A (en) * 2008-11-07 2010-05-20 Canon Imaging Systems Inc System, client and method for sharing device
JP2012043116A (en) * 2010-08-18 2012-03-01 Buffalo Inc Monitoring system, device server, host computer, monitoring method, and monitoring program
JP2012168589A (en) * 2011-02-09 2012-09-06 Ricoh Co Ltd Information processing device, information processing device control method and program
JP2014057134A (en) * 2012-09-11 2014-03-27 Canon Inc Image forming device, image forming device control method, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020218196A1 (en) * 2019-04-26 2020-10-29 京セラドキュメントソリューションズ株式会社 Communication device and image forming device
JPWO2020218196A1 (en) * 2019-04-26 2020-10-29
JP7173306B2 (en) 2019-04-26 2022-11-16 京セラドキュメントソリューションズ株式会社 Communication device and image forming device

Also Published As

Publication number Publication date
JP6557889B2 (en) 2019-08-14

Similar Documents

Publication Publication Date Title
EP3422777B1 (en) Communication apparatus and control method therefor
JP5448403B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND COMPUTER PROGRAM
JP5138100B2 (en) Information processing apparatus having a plurality of communication interfaces, and method for controlling the information processing apparatus
JP5704904B2 (en) DATA PROCESSING DEVICE, DATA PROCESSING DEVICE CONTROL METHOD, AND PROGRAM
US9377838B2 (en) Data processing apparatus and power saving control method when transiting to a power saving state
JP2015106798A (en) Communication device, communication system, control method and program of communication device
JP6157097B2 (en) Printing device
US10609532B2 (en) Communication apparatus
JP6057593B2 (en) Image forming apparatus, image forming apparatus control method and program
JP2014082602A (en) Communication device and control method therefor
US10405282B2 (en) Information processing apparatus and information processing method
US20120005500A1 (en) Peripheral-device utilizing system, server device, and method
JP6557889B2 (en) Device server
JP2015176353A (en) Information processing device, control method thereof, and program
JP5699756B2 (en) Information processing apparatus and information processing apparatus control method
EP3583506A1 (en) Configuration parameter transfer
US9525757B2 (en) Information processing apparatus that controls connection of devices, method of controlling the apparatus, and device control system
JP2008059112A (en) Power supply control system
JP2008022263A (en) Communication device, information processor, communication method, communication program, and information storage medium
CN108965368A (en) Data management circuit with network function and data management method based on network
JP6128813B2 (en) Printing apparatus, printing apparatus control method, and program
JP2012038156A (en) Network equipment, power saving method of network equipment and its program
JP2014218003A (en) Image forming system
JP2012182742A (en) Wireless communication device, electronic device, determination method and update method of simple access point
JP2016189617A (en) Device and control method therefor, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190204

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190204

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20190204

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20190307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190402

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190531

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190621

R150 Certificate of patent or registration of utility model

Ref document number: 6557889

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250