JP6779678B2 - Information processing equipment, information processing methods and programs - Google Patents

Information processing equipment, information processing methods and programs Download PDF

Info

Publication number
JP6779678B2
JP6779678B2 JP2016132871A JP2016132871A JP6779678B2 JP 6779678 B2 JP6779678 B2 JP 6779678B2 JP 2016132871 A JP2016132871 A JP 2016132871A JP 2016132871 A JP2016132871 A JP 2016132871A JP 6779678 B2 JP6779678 B2 JP 6779678B2
Authority
JP
Japan
Prior art keywords
power
information processing
information
external device
processing apparatus
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.)
Active
Application number
JP2016132871A
Other languages
Japanese (ja)
Other versions
JP2018007450A (en
Inventor
啓介 松井
啓介 松井
靖三郎 出藏
靖三郎 出藏
広志 森友
広志 森友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2016132871A priority Critical patent/JP6779678B2/en
Priority to US15/634,794 priority patent/US10452112B2/en
Priority to CN201710535715.0A priority patent/CN107577621B/en
Publication of JP2018007450A publication Critical patent/JP2018007450A/en
Application granted granted Critical
Publication of JP6779678B2 publication Critical patent/JP6779678B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/263Arrangements for using multiple switchable power supplies, e.g. battery and AC
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Power Sources (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Computing Systems (AREA)

Description

本発明は、情報処理装置、情報処理方法およびプログラムに関する。 The present invention relates to information processing devices, information processing methods and programs.

情報処理装置に接続する通信用の有線インターフェースにおいて、データ転送と並行して電力を伝送できる技術がある。代表的なものとしてUSB(Universal Serial Bus)がある。 There is a technology that can transmit electric power in parallel with data transfer in a wired interface for communication connected to an information processing device. A typical example is USB (Universal Serial Bus).

また、USB−PD(Power Delivery)という技術では、ケーブルで接続した機器同士について、電力をどちらの機器から接続相手の機器に供給するかを従来のUSB機器より自由に決めることができる。USB−PDに対応していない従来のUSB機器であると、ホスト機器(ホスト)から周辺機器(デバイス)への一方向にしか給電できなかった。 Further, in the technology called USB-PD (Power Delivery), it is possible to freely determine from which device the power is supplied to the connected device from the device connected by the cable as compared with the conventional USB device. With a conventional USB device that does not support USB-PD, power can be supplied from the host device (host) to the peripheral device (device) in only one direction.

ここで、給電制御の自由度が増えると、ユーザが意図しない給電が行われてしなう可能性も増えてしまう事があるため、その対策が必要になることがある。 Here, if the degree of freedom of power supply control increases, the possibility that the power supply is not performed unintentionally by the user may increase, so that countermeasures may be required.

例えば、特許文献1には、蓄電池を備える車両用電力制御装置において、充電端子と放電端子との両方にそれぞれ接続端子が接続された場合には、誤充電とみなして蓄電池への充電を一旦停止する技術が開示されている。 For example, in Patent Document 1, when a connection terminal is connected to both a charging terminal and a discharging terminal in a vehicle power control device including a storage battery, it is regarded as an erroneous charging and charging to the storage battery is temporarily stopped. The technology to be used is disclosed.

特許5578209号公報Japanese Patent No. 5578209

送電と受電の両方が可能な機器同士を接続した場合、電力が不必要に機器間を巡回して消費されてしまうおそれがある。例えば、電池残量の割合が高い機器から低い機器に供給し続けるように制御し続けた場合に、2つの機器の電力残量の大小が何回も入れ替わってしまうと、電力が機器間を何往復もしてしまう可能性がある。 When devices that can both transmit and receive power are connected, there is a risk that power will be unnecessarily circulated between the devices and consumed. For example, if the control is continued to continue to supply power from a device with a high battery level to a device with a low battery level, and the power remaining between the two devices is switched many times, the power will be transferred between the devices. There is a possibility that it will make a round trip.

ここで、特許文献1の様な技術は、ケーブルやコネクタ毎に電力伝送方向が一意であり、充電端子と放電端子とを兼ねたケーブルを1つのコネクタに挿せるような機器には適用することが困難である。 Here, a technique such as Patent Document 1 can be applied to a device in which a power transmission direction is unique for each cable or connector and a cable having both a charging terminal and a discharging terminal can be inserted into one connector. Have difficulty.

上記課題を解決するために、本発明に係る情報処理装置は、接続部と、送電器としての機能と受電器としての機能とが切り替え可能であることを示す能力情報を、外部装置から前記接続部を介して取得する取得手段と、前記能力情報に基づいて、ユーザによる指示を受け付ける受け付け手段と、前記受け付け手段で受け付けた指示に基づいて、前記接続部を介して前記外部装置に送電する送電状態と、前記接続部を介して前記外部装置から受電する受電状態とを含む複数の状態のうちの1つの状態を制御する電力制御手段と、前記受け付け手段で受け付けた指示に基づいて電力制御ポリシーを決定する決定手段と、前記決定手段で決定された電力制御ポリシーを保持する保持手段とを有するIn order to solve the above problems, the information processing device according to the present invention connects the connection unit and the capability information indicating that the function as a power transmission and the function as a power receiver can be switched from the external device. An acquisition means acquired via a unit, a reception means for receiving an instruction by a user based on the ability information, and a power transmission for transmitting power to the external device via the connection unit based on an instruction received by the reception means. A power control means that controls one of a plurality of states including a state and a power receiving state that receives power from the external device via the connection portion, and a power control policy based on an instruction received by the receiving means. It has a determination means for determining the above and a holding means for holding the power control policy determined by the determination means .

本発明によれば、電力がデバイス間を往復してしまうことを抑制し、不必要に電力をロスしてしまうことを低減させることができる。 According to the present invention, it is possible to suppress the reciprocation of electric power between devices and reduce unnecessary loss of electric power.

情報処理装置の電力制御ポリシーを決定する処理の概略を示すフローチャートである。It is a flowchart which shows the outline of the process which determines the power control policy of an information processing apparatus. (a)情報処理装置の構成を示す概略図である。(b)USB制御部の構成を示す概略図である。(A) It is a schematic diagram which shows the structure of the information processing apparatus. (B) It is a schematic diagram which shows the structure of the USB control unit. (a)USB制御部のレセプタクルのピン配置を示す概略図である。(b)プラグのピン配置を示す概略図である。(A) It is a schematic diagram which shows the pin arrangement of the receptacle of the USB control part. (B) It is a schematic diagram which shows the pin arrangement of a plug. (a)CCのパケットフォーマットを示す模式図である。(b)CCのメッセージフォーマットを示す模式図である。(c)メッセージタイプを示す模式図である(d)能力情報の内容を示す模式図である。(A) It is a schematic diagram which shows the packet format of CC. (B) It is a schematic diagram which shows the message format of CC. (C) It is a schematic diagram which shows a message type, and (d) is a schematic diagram which shows the content of ability information. 電力制御ポリシーを決定するための表示画面の模式図である。It is a schematic diagram of the display screen for determining a power control policy. (a)情報処理装置200からの電力送信を停止する条件を設定するための表示画面の模式図である。(b)情報処理装置200による電力受信を停止する条件を設定するための表示画面の模式図である。(A) It is a schematic diagram of the display screen for setting the condition for stopping the power transmission from the information processing apparatus 200. (B) It is a schematic diagram of the display screen for setting the condition for stopping the power reception by the information processing apparatus 200. データ転送ポリシーを設定するためのプルダウンメニューの模式図である。It is a schematic diagram of the pull-down menu for setting a data transfer policy. 電力制御処理の詳細を示すフローチャートである。It is a flowchart which shows the detail of a power control process. 2つの機器が送電又は受電可能に接続されている様子を示す模式図である。It is a schematic diagram which shows a mode that two devices are connected so that power can be transmitted or received. コンフィグレーションレジスタとステータスレジスタの保持している内容の概略を示す模式図である。It is a schematic diagram which shows the outline of the contents held by the configuration register and the status register. 受信した役割変更要求について決定する処理の概略を示すフローチャートである。It is a flowchart which shows the outline of the process which determines about the received role change request. 役割変更の許諾を指定するための表示画面の模式図である。It is a schematic diagram of a display screen for designating permission of a role change.

<<実施形態1>>
以下、図面を参照して本発明の実施形態1を詳細に説明する。まず、図2(a)、(b)を用いて実施形態1のハードウェア構成について説明する。
<< Embodiment 1 >>
Hereinafter, Embodiment 1 of the present invention will be described in detail with reference to the drawings. First, the hardware configuration of the first embodiment will be described with reference to FIGS. 2A and 2B.

図2(a)は、本発明を適用する情報処理装置200の構成を示す概略図である。情報処理装置200はラップトップやタブレット、スマートフォン、デジタルカメラなどのポータブルデバイスが考えられるが、本発明はその他の機器であっても適用できる。ROM206は後述の本実施形態のフローチャートを実現するためのプログラムを格納する。CPU部201はDMAC(Direct Memory Access Controler)204を利用し、ROM206のプログラムをRAM202に展開し、RAM202からプログラムを読み込んで後述のフローチャートの内容を含む処理を実行する。RAM202はDDR(Double Data Rate)などの規格に沿ったSDRAMなどを含んでいてもよい。 FIG. 2A is a schematic view showing the configuration of the information processing apparatus 200 to which the present invention is applied. The information processing device 200 may be a portable device such as a laptop, a tablet, a smartphone, or a digital camera, but the present invention can be applied to other devices. The ROM 206 stores a program for realizing the flowchart of the present embodiment described later. The CPU unit 201 uses a DMAC (Direct Memory Access Controller) 204 to expand the program of the ROM 206 into the RAM 202, reads the program from the RAM 202, and executes a process including the contents of the flowchart described later. The RAM 202 may include an SDRAM or the like conforming to a standard such as DDR (Double Data Rate).

グラフィックユーザインターフェース203(以下、単にUIと称す)はユーザからの指示を受けつける受け付け部として機能し、情報処理装置200の様々な機能をユーザが利用できるようにする。UI203は、複数のボタンやディスプレイ、タッチパネル等を含んでいてもよい。外部IF205は有線や無線のネットワークインターフェースやUSB、PCIeなどの外部インターフェースを含む。記憶部207はSSD(Solid State Drive)やeMMC(embedded Multi Media Card)などの大容量の不揮発性メモリとして機能する記憶装置を備える。記憶部207はオペレーションシステム(OS)のコードも保持している。画像処理部208はCPU部201の要求に応じて種々の画像処理を実施するグラフィックアクセラレータ(又はGPU)である。 The graphic user interface 203 (hereinafter, simply referred to as UI) functions as a receiving unit for receiving instructions from the user, and enables the user to use various functions of the information processing device 200. The UI 203 may include a plurality of buttons, a display, a touch panel, and the like. The external IF205 includes a wired or wireless network interface and an external interface such as USB and PCIe. The storage unit 207 includes a storage device such as an SSD (Solid State Drive) or an eMMC (embedded MultiMediaCard) that functions as a large-capacity non-volatile memory. The storage unit 207 also holds the code of the operating system (OS). The image processing unit 208 is a graphic accelerator (or GPU) that performs various image processing in response to the request of the CPU unit 201.

バス212は各構成を通信可能に接続するバスであり、デバイス制御部209はCPU部と他の構成のデータのやりとりを制御するチップセットなどを備える。 The bus 212 is a bus that connects each configuration so as to be communicable, and the device control unit 209 includes a chipset that controls the exchange of data between the CPU unit and other configurations.

図2(b)は、本実施形態において電力制御部として機能するUSB制御部210の詳細な構成を示す概略図である。不揮発メモリ224はNAND型フラッシュメモリ(以下、単にフラッシュメモリと称す)などを含み、電荷の供給がなくても不揮発的に情報を保持できる。ROM226はUSB制御部210を制御するためのプログラムを保持しており、プロセッサコア222が読み出して実行する。例えば、ROM226はUSB規格に従ったデータ伝送機能や後述のMTP、PTPによるデータ転送を実現するためのプログラムや、電力制御機能を実現するためのプログラムや、自身のデバイス情報(デバイスIDやベンダーID)を保持する。 FIG. 2B is a schematic view showing a detailed configuration of the USB control unit 210 that functions as the power control unit in the present embodiment. The non-volatile memory 224 includes a NAND flash memory (hereinafter, simply referred to as a flash memory) and the like, and can hold information non-volatilely even if no electric charge is supplied. The ROM 226 holds a program for controlling the USB control unit 210, and the processor core 222 reads and executes the program. For example, ROM226 has a data transmission function according to the USB standard, a program for realizing data transfer by MTP and PTP described later, a program for realizing a power control function, and own device information (device ID and vendor ID). ) Is held.

レジスタ群225は汎用レジスタや、コンフィグレーションレジスタ、ステータスレジスタを含む。汎用レジスタは、プロセッサコア222が演算する際の中間値などを保持する。コンフィグレーションレジスタは、プロセッサコア222がUSB制御部210を制御するための設定(パラメータ、電力制御ポリシー)を保持する。ステータスレジスタは、CPU部201からの情報に基づいて、プロセッサコア222が情報処理装置200の状態を示す情報を保持する。コンフィグレーションレジスタとステータスレジスタの詳細については後述する。IF221はバス211とプロセッサコア222を接続し、例えばバス211を介して送られる情報を解釈してプロセッサコア222に伝達する。キャッシュメモリ227はSRAMやDRAMを含み、不揮発メモリ224に書き込むデータや、不揮発メモリ224から読み出すデータを一時的に保持する。 The register group 225 includes a general-purpose register, a configuration register, and a status register. The general-purpose register holds an intermediate value or the like when the processor core 222 calculates. The configuration register holds settings (parameters, power control policy) for the processor core 222 to control the USB control unit 210. The status register holds information indicating the state of the information processing apparatus 200 by the processor core 222 based on the information from the CPU unit 201. Details of the configuration register and status register will be described later. The IF 221 connects the bus 211 and the processor core 222, interprets information transmitted via the bus 211, for example, and transmits the information to the processor core 222. The cache memory 227 includes SRAM and DRAM, and temporarily holds data to be written to the non-volatile memory 224 and data to be read from the non-volatile memory 224.

メモリ制御部223は不揮発メモリ224が備えるフラッシュメモリを制御するコントローラを備え、プロセッサコア222の指示に基づいて不揮発メモリ224のフラッシュメモリに対して読出しや書き出しなどの処理を実行する。詳細には、メモリ制御部223はプロセッサコア222からのアクセス指示について、アクセスしようとする不揮発メモリ224のアドレスを保持するアドレスレジスタと、アクセス内容を示すコマンドを保持するコマンドレジスタとを備える。そして、これらのレジスタに保持した内容に沿って不揮発メモリ224を制御する。 The memory control unit 223 includes a controller for controlling the flash memory included in the non-volatile memory 224, and executes processing such as reading and writing to the flash memory of the non-volatile memory 224 based on the instruction of the processor core 222. Specifically, the memory control unit 223 includes an address register that holds the address of the non-volatile memory 224 to be accessed and a command register that holds a command indicating the access content for the access instruction from the processor core 222. Then, the non-volatile memory 224 is controlled according to the contents held in these registers.

コネクタ部231はUSB TypeCの接続部(コネクタ)としてのレセプタクル(receptacle)を少なくとも1つ以上備えている。また図示していないが、コネクタ部231は4b5bコーデックやBMCコーデックを備え、4b5b変換でシンボル化された情報やBMCで符号化された情報を取得し、デコードした上でプロセッサコア222に転送可能である。本実施形態のコネクタ部231は、接続部228(第1の接続部)と接続部229(第2の接続部)とを備え、其々がUSB TypeCのプラグを挿入可能なレセプタクルとして機能する構成になっている。ケーブル230はUSB PDに適合するケーブルであり、端部のプラグ(オス)をコネクタ部231のレセクタプル(メス)に着脱可能であり、もう一方の端部は種々の機器に接続される。また、コネクタ部231は、ケーブル230を介して外部から受けた電力を電池212へ供給可能に構成されている。 The connector portion 231 includes at least one receptacle as a connection portion (connector) of the USB Type C. Although not shown, the connector unit 231 is provided with a 4b5b codec and a BMC codec, and can acquire information symbolized by 4b5b conversion and information encoded by BMC, decode it, and then transfer it to the processor core 222. is there. The connector portion 231 of the present embodiment includes a connection portion 228 (first connection portion) and a connection portion 229 (second connection portion), each of which functions as a receptacle into which a USB Type C plug can be inserted. It has become. The cable 230 is a cable compatible with USB PD, and the plug (male) at the end can be attached to and detached from the resector pull (female) of the connector portion 231. The other end is connected to various devices. Further, the connector portion 231 is configured to be able to supply electric power received from the outside to the battery 212 via the cable 230.

電池212はリチウムイオン充電池であり、情報処理装置200にDC電力を供給する電源として機能し、コネクタ部231やAC電源(不図示)から受電した電力を蓄電可能である。 The battery 212 is a lithium-ion rechargeable battery, functions as a power source for supplying DC power to the information processing device 200, and can store power received from the connector unit 231 and an AC power source (not shown).

なお、不揮発メモリ224とROM226は情報処理装置200の電源が切れても記憶内容を保持するが、その他の構成、プロセッサコア222やレジスタ群225、キャッシュメモリ227等は電源断やリセット動作によって記憶内容が失われる。 The non-volatile memory 224 and ROM 226 retain the stored contents even when the power of the information processing device 200 is turned off, but other configurations, the processor core 222, the register group 225, the cache memory 227, etc. are stored contents due to the power off or reset operation. Is lost.

なお、情報処理装置200は図9に示すような形態で本発明の処理を実現する。図9は、情報処理装置200と他の情報処理装置900(以降、外部装置900と称す)とが有線で送電可能または受電可能に接続されている様子を示す模式図である。詳細な説明は省略するが、外部装置900も図2(a)、図2(b)に示す構成と同様の機能を備えるものとする。 The information processing device 200 realizes the processing of the present invention in the form shown in FIG. FIG. 9 is a schematic view showing how the information processing device 200 and another information processing device 900 (hereinafter referred to as an external device 900) are connected by wire so as to be able to transmit power or receive power. Although detailed description will be omitted, it is assumed that the external device 900 also has the same functions as those shown in FIGS. 2 (a) and 2 (b).

次に、本実施形態の情報処理装置200の動作について図1に沿って説明する。図1は、情報処理装置200が外部装置900とUSBで接続され、制御通信が確立された後に、情報処理装置200が電力制御ポリシーを決定する処理の概略を示すフローチャートである。ここで、電力制御ポリシーとは、情報処理装置200がどのように外部装置900へ電力を送電するか、または、どのように電力を外部装置900から受電するか、という内容を含む制御方針である。 Next, the operation of the information processing apparatus 200 of the present embodiment will be described with reference to FIG. FIG. 1 is a flowchart showing an outline of a process in which the information processing device 200 determines a power control policy after the information processing device 200 is connected to the external device 900 by USB and control communication is established. Here, the power control policy is a control policy including the content of how the information processing device 200 transmits power to the external device 900 or how the power is received from the external device 900. ..

図1において、ステップS101で、情報処理装置200のプロセッサコア222が、コネクタ部231のType−CコネクタのCCピンを介して、外部装置900へ自身の能力情報を送信したり、外部装置900の能力情報を外部装置900から受信したりする。なお、受信した能力情報はキャッシュメモリ227が保持する。ここで、能力情報とは、自身が送電器(Source)として機能する送電状態でどのように電力供給が可能かという送電能力情報と、自身が受電器(Sink)として機能する受電状態でどのように受電して動作するかという受電能力情報とを含む。能力情報の詳細については図4のパケットフォーマットを用いて後述する。 In FIG. 1, in step S101, the processor core 222 of the information processing device 200 transmits its own capability information to the external device 900 via the CC pin of the Type-C connector of the connector unit 231 or the external device 900. Capability information is received from the external device 900. The received capacity information is held by the cache memory 227. Here, the capacity information is the power transmission capacity information on how power can be supplied in the power transmission state in which the power transmission state functions as a power transmission device (Source), and the power reception state in which the power reception state functions as a power reception device (Sink). Includes power receiving capacity information as to whether or not it operates by receiving power. The details of the capability information will be described later using the packet format of FIG.

ステップS102では、情報処理装置200のプロセッサコア222が、レジスタ群225のステータスレジスタの情報を参照し、コネクタ部231で接続されている外部装置900とは異なる外部電源から電力供給を受けているかどうかを判断する。例えば、自装置がAC電源(例えば、AC−DCアダプタやWALL WART)からの電力供給を受けているかどうかを判断する。または、ステップS101で情報処理装置200が外部装置900に送信した送電能力情報について、Externally Poweredビット(後述の外部電源情報434)が無効を示す内容であれば、プロセッサコア222はYESと判断してもよい。YESの場合は、ステップS103に遷移する。 In step S102, whether or not the processor core 222 of the information processing device 200 refers to the information of the status register of the register group 225 and receives power from an external power source different from the external device 900 connected by the connector unit 231. To judge. For example, it is determined whether or not the own device is supplied with power from an AC power source (for example, an AC-DC adapter or WALL WART). Alternatively, if the Externally Powered bit (external power supply information 434 described later) indicates invalidity in the power transmission capacity information transmitted by the information processing device 200 to the external device 900 in step S101, the processor core 222 determines YES. May be good. If YES, the process proceeds to step S103.

ステップS103では、プロセッサコア222が、キャッシュメモリ227を参照し、外部装置900がAC電源から電力供給を受けているかどうかを判断する。詳細には、プロセッサコア222は、外部装置900から受信した能力情報に含まれるExternally Poweredビットが無効を示しているかどうかを判断する。YESの場合は、ステップS104に遷移する。 In step S103, the processor core 222 refers to the cache memory 227 and determines whether or not the external device 900 is powered by the AC power source. Specifically, the processor core 222 determines whether or not the Externally Powered bit included in the capability information received from the external device 900 indicates invalidity. If YES, the process proceeds to step S104.

ステップS104では、プロセッサコア222が、キャッシュメモリ227を参照し、外部装置900が送電器と受電器の両方の能力を備えるかどうかを判断する。詳細には、プロセッサコア222は、外部装置900から受信した能力情報に含まれるDual−Role Powerビット(後述の電力役割情報432)が有効を示す内容であるかどうかを判断する。YESの場合は、ステップS105に遷移する。 In step S104, the processor core 222 refers to the cache memory 227 and determines whether the external device 900 has both transmitter and receiver capabilities. Specifically, the processor core 222 determines whether or not the Dual-Role Power bit (power role information 432 described later) included in the capability information received from the external device 900 is valid. If YES, the process proceeds to step S105.

ステップS105では、プロセッサコア222が電力制御ポリシーを決定するための表示をさせるための制御をする。詳細には、プロセッサコア222がCPU部201のCPUに割り込みをかけ、割り込みを受けたCPU部201はユーザから電力制御ポリシーの指示を受け付けるための表示をUI203にさせるための制御をする(電力制御ポリシーの詳細は後述する)。表示させる描画処理の一部を画像処理部208が処理してもよい。ユーザからの指示は、少なくとも「送電」か「受電」か「送電も受電もしない」のいずれか1つを判断するための情報を含む。プロセッサコア222は、ユーザからの指示を受け付けるまで電力制御処理を待機させ、ユーザからの指示を受け付けるとステップS106に遷移する。 In step S105, the processor core 222 controls to display for determining the power control policy. Specifically, the processor core 222 interrupts the CPU of the CPU unit 201, and the CPU unit 201 that receives the interrupt controls to display the UI 203 for receiving the instruction of the power control policy from the user (power control). Details of the policy will be described later). The image processing unit 208 may process a part of the drawing process to be displayed. The instruction from the user includes information for determining at least one of "power transmission", "power reception", and "neither power transmission nor power reception". The processor core 222 waits for the power control process until it receives an instruction from the user, and when it receives the instruction from the user, it transitions to step S106.

ステップS106では、プロセッサコア222はユーザから受け付けた指示に基づいて、電力制御ポリシーを決定する決定手段として機能し、決定した電力制御ポリシーの内容をレジスタ群225のコンフィギュレーションレジスタに書き込む。そして、プロセッサコア222は決定した電力制御ポリシーに基づいて電力制御処理を実施する。電力制御処理の詳細については図8を用いて後述する。なお、プロセッサコア222は電力制御処理を実施する前に、情報処理装置200のDual Roleの設定を解除するようにレジスタ群225のコンフィグレーションレジスタにアクセスしてもよい。この処理によって、プロセッサコア222にリセットが掛かるまでDual Roleの設定が解除されるようにする。例えば、USB制御部210が外部装置900からリセット要求を受け付けると、プロセッサコア222が自身にリセットを掛け、レジスタ群225の内容も初期化されるのでDual Roleの設定が戻る。なお、ステップS105で、ユーザから「送電も受電もしない」という指示を受け付けた場合には、ステップS106の処理は省略される。 In step S106, the processor core 222 functions as a determination means for determining the power control policy based on the instruction received from the user, and writes the contents of the determined power control policy to the configuration register of the register group 225. Then, the processor core 222 executes the power control process based on the determined power control policy. The details of the power control process will be described later with reference to FIG. The processor core 222 may access the configuration register of the register group 225 so as to cancel the setting of the Dual Role of the information processing device 200 before executing the power control process. By this process, the setting of Dual Role is released until the processor core 222 is reset. For example, when the USB control unit 210 receives a reset request from the external device 900, the processor core 222 resets itself and the contents of the register group 225 are also initialized, so that the Dual Role setting is returned. If the user receives an instruction to "never transmit or receive power" in step S105, the process of step S106 is omitted.

一方で、ステップ102やステップS103、ステップS104でNOである場合、ステップS107に遷移する。ステップS107では、自装置がAC電源からの供給をうけていれば情報処理装置200を送電器として制御し、外部装置900がAC電源から電力供給を受けていれば情報処理装置200を受電器として制御する。外部装置900が送電器と受電器の片方の能力しか備えていない場合(後述の電力役割情報432が無効の場合)、外部装置900の能力に対応する機器(外部装置900が送電器なら受電器、外部装置900が受電器なら送電器)として制御する。 On the other hand, if NO in step 102, step S103, and step S104, the process proceeds to step S107. In step S107, if the own device receives power from the AC power supply, the information processing device 200 is controlled as a power transmitter, and if the external device 900 receives power from the AC power supply, the information processing device 200 is used as a power receiver. Control. If the external device 900 has only one capability of the transmitter and the receiver (when the power role information 432 described later is invalid), the device corresponding to the capability of the external device 900 (if the external device 900 is a transmitter, the receiver) If the external device 900 is a power receiver, it is controlled as a transmitter).

<電力制御ポリシー>
図5は、図1のステップS105でUI203が表示する設定画面の一例である。本実施形態ではUI203は静電容量式のタッチパネルである。
<Power control policy>
FIG. 5 is an example of the setting screen displayed by the UI 203 in step S105 of FIG. In this embodiment, the UI 203 is a capacitive touch panel.

ウィンドウ501はUI203がUSB制御部210からの割り込みに起因して表示する。アイコン部502は外部装置900の種別を示すアイコンと外部装置900の電池残量を示すアイコンとを表示する。ネーム503は外部装置900の名前である。ネーム503として、外部装置900のデバイス情報(デバイスIDやベンダーID)を表示してもよい。 The window 501 is displayed by the UI 203 due to an interrupt from the USB control unit 210. The icon unit 502 displays an icon indicating the type of the external device 900 and an icon indicating the remaining battery level of the external device 900. The name 503 is the name of the external device 900. The device information (device ID or vendor ID) of the external device 900 may be displayed as the name 503.

スライドバー504は情報処理装置200の電力制御ポリシーを決定するためのものである。ユーザがスライダー505をスライドバー504の上で左右へ移動させることで、電力制御ポリシーとして「送電」か「受電」という条件を選択でき、スライダー505を移動させないことで「送電も受電もしない」という条件を選択できる。なお、外部装置900から受信した能力情報に基づいて表示を異ならせたり、スライダー505の動作を制限させたりしてもよい。例えば、外部装置900が情報処理装置200に必要な電力レベルの供給ができない場合は受電器として機能することしかできないので、スライダー505を「送電」側にしか動かせないようにしたり、スライドバー504の「受電」側半分をグレーアウトさせたりすればよい。 The slide bar 504 is for determining the power control policy of the information processing apparatus 200. By moving the slider 505 left and right on the slide bar 504, the user can select the condition of "power transmission" or "power reception" as the power control policy, and by not moving the slider 505, "no power transmission or power reception" is said. You can select the conditions. The display may be different or the operation of the slider 505 may be restricted based on the capability information received from the external device 900. For example, if the external device 900 cannot supply the power level required for the information processing device 200, it can only function as a power receiver. Therefore, the slider 505 can be moved only to the "power transmission" side, or the slide bar 504 can be moved. The "power receiving" side half may be grayed out.

ボタン506は、ユーザのタッチを受け付けることで、電力制御ポリシーをより詳細に設定する選択肢を表示させる(詳細は後述する)。 The button 506 accepts the user's touch to display options for setting the power control policy in more detail (details will be described later).

プルダウン部509は、ユーザのタッチを受け付けることで、データ転送ポリシーをより詳細に設定するための選択肢を表示させる(詳細は図7を用いて後述する)。 By accepting the user's touch, the pull-down unit 509 displays options for setting the data transfer policy in more detail (details will be described later with reference to FIG. 7).

ラジオボタン510は、ネーム503において表示されている機器について、「ウィンドウ501においてユーザが選択する内容を記憶させ、次回、図1のステップS105によってウィンドウ501が呼び出されることをスキップする」という設定ができる。 The radio button 510 can be set to "store the content selected by the user in the window 501 and skip calling the window 501 in step S105 of FIG. 1 next time" for the device displayed in the name 503. ..

キャンセルボタン511は、ウィンドウ501による設定を拒否するためのボタンであり、実行ボタン512は、ウィンドウ501による設定を反映させるためのボタンである。 The cancel button 511 is a button for rejecting the setting by the window 501, and the execute button 512 is a button for reflecting the setting by the window 501.

なお、ラジオボタン510の設定を有効にした状態でユーザによる実行ボタン512のタッチを受け付けると、プロセッサコア222が、ウィンドウ501によりユーザが設定した条件とデバイス情報とを対応づけた機器設定情報を不揮発メモリ224に記憶させる。 When the user accepts the touch of the execution button 512 with the setting of the radio button 510 enabled, the processor core 222 non-volatiles the device setting information in which the condition set by the user and the device information are associated with each other in the window 501. It is stored in the memory 224.

図1の説明では割愛したが、ステップS105に遷移した場合に、プロセッサコア222は不揮発メモリ224についてデバイス情報をクエリとして検索する。検索にヒットした場合は、不揮発メモリ224に以前、ユーザが設定した機器設定情報があるので、プロセッサコア222は、ヒットしたエントリに格納されている機器設定情報に基づいてステップS106の制御を行う。 Although omitted in the description of FIG. 1, when transitioning to step S105, the processor core 222 searches the non-volatile memory 224 for device information as a query. When the search is hit, since the non-volatile memory 224 has the device setting information previously set by the user, the processor core 222 controls step S106 based on the device setting information stored in the hit entry.

なお、不揮発メモリ224に格納されている機器設定情報を用いる際に、その旨と再設定ボタンを所定の時間、ユーザにポップアップ通知し、ユーザによる再設定を促すようにしてもよい。ユーザによる再設定ボタンのタッチを検出すると、不揮発メモリ224を検索せずに、プロセッサコア222はステップS105の処理から実行しなおす。 When using the device setting information stored in the non-volatile memory 224, a pop-up notification to that effect and a reset button may be given to the user for a predetermined time to encourage the user to perform the reset. When the touch of the reset button by the user is detected, the processor core 222 re-executes from the process of step S105 without searching the non-volatile memory 224.

図6(a)は、スライドバー504によって情報処理装置200から電力を送信するように設定が選択され、ボタン506によって詳細設定をすることが選択された場合にウィンドウ501に更に表示される画面の一部を示す。プルダウン部601は、情報処理装置200による電力送信を停止する条件(送電停止条件)を一覧から選択できるように提示する。 FIG. 6A shows a screen further displayed in the window 501 when the slide bar 504 selects the setting to transmit power from the information processing apparatus 200 and the button 506 selects the detailed setting. Some are shown. The pull-down unit 601 presents a condition for stopping the power transmission by the information processing apparatus 200 (transmission stop condition) so that it can be selected from the list.

「non(deatached)」は初期状態において選択されている条件であり、例えば、「ケーブル230のプラグがコネクタ部231から引き抜かれて接続が切れるまで情報処理装置200が電力を送信する」という条件を示す。「own battery level」は、「情報処理装置200の電池212の電池残量が所定値(所定の割合)に達した場合に情報処理装置200からの送電を停止する」という条件である。「other battery level」は「外部装置900の電池の残量が所定値に達した場合に情報処理装置200からの送電を停止する」という条件である。「time passage」は「送電または受電を継続した時間が所定時間に達した場合に送電または受電を停止する」という条件である。「process completion」は「情報処理装置200によるデータ送受信に関わる処理が終了した場合または情報処理装置200が省電力モードに遷移した場合に、送電または受電を停止する」という条件である。 “Non (deatached)” is a condition selected in the initial state, for example, a condition that “the information processing apparatus 200 transmits power until the plug of the cable 230 is pulled out from the connector portion 231 and the connection is disconnected”. Shown. The "own battery level" is a condition that "the power transmission from the information processing device 200 is stopped when the remaining battery level of the battery 212 of the information processing device 200 reaches a predetermined value (predetermined ratio)". The "other battery level" is a condition that "the power transmission from the information processing device 200 is stopped when the remaining battery level of the external device 900 reaches a predetermined value". The "time passage" is a condition that "the power transmission or reception is stopped when the time for which the power transmission or reception is continued reaches a predetermined time". The "process completion" is a condition that "transmission or power reception is stopped when the process related to data transmission / reception by the information processing apparatus 200 is completed or when the information processing apparatus 200 transitions to the power saving mode".

コラム602とコラム603は、プルダウン部601で設定した条件の詳細(電池残量や時間経過)を設定するためのものである。図6(a)の例ではプルダウン部601において「time passage」が選択されているので、コラム602で自然数(1〜99のうち1つ)が入力でき、コラム603で単位(「分」または「時」の1つ)が選択できる。 The columns 602 and 603 are for setting the details (remaining battery level and time lapse) of the conditions set by the pull-down unit 601. In the example of FIG. 6A, since "time passage" is selected in the pull-down section 601 so that a natural number (one of 1 to 99) can be input in column 602 and a unit ("minute" or "minute" or "minute") in column 603. One of "time") can be selected.

図6(b)は、スライドバー504によって情報処理装置200が電力を受信するように設定が選択され、ボタン506によって詳細設定をすることが選択された場合にウィンドウ501に更に表示される画面の一部を示す。プルダウン部601は、情報処理装置200による電力受信を停止する条件(受電停止条件)を一覧から選択できるように提示する。プルダウン部601で選択できる内容の詳細な説明については、図6(a)における送電停止の条件が受電停止に変わっただけであるので省略する。 FIG. 6B shows a screen further displayed in the window 501 when the slide bar 504 selects the setting for the information processing apparatus 200 to receive power and the button 506 selects the detailed setting. Some are shown. The pull-down unit 601 presents a condition for stopping the power reception by the information processing apparatus 200 (power reception stop condition) so that it can be selected from the list. A detailed description of the contents that can be selected by the pull-down unit 601 will be omitted because the condition for stopping power transmission in FIG. 6A has only changed to stop receiving power.

図6(b)の例では、プルダウン部601において「own battery level」が選択されているので、コラム603で単位が%に固定され、コラム602で自然数(1〜99のうち1つ)が入力できる様になっている。 In the example of FIG. 6B, since "own battery level" is selected in the pull-down section 601, the unit is fixed to% in column 603, and a natural number (one of 1 to 99) is input in column 602. You can do it.

図7は、プルダウン部509で選択できる設定内容の詳細を示す。「MTP」は、情報処理装置200と外部装置900との間でメディア転送プロトコル(Media Transfer Protocol)によってデータを転送する設定である。この選択をすることで、情報処理装置200はMTPイニシエータとして機能し、外部装置900をMTPレスポンダとして機能させる。 FIG. 7 shows the details of the setting contents that can be selected by the pull-down unit 509. “MTP” is a setting for transferring data between the information processing device 200 and the external device 900 by a media transfer protocol (Media Transfer Protocol). By making this selection, the information processing device 200 functions as an MTP initiator, and the external device 900 functions as an MTP responder.

「PTP」は、画像転送プロトコル(Photo Transfer Protocol)によってデータを転送する設定である。 "PTP" is a setting for transferring data by an image transfer protocol (Photo Transfer Protocol).

「Open Mass Storage」は外部装置900を大容量記憶装置(USB MASS STRAGE CLASS)として機能させ、情報処理装置200が外部装置900の大容量記憶装置の最上位のフォルダ(又はROOTフォルダ)をオープンする。 The "Open Mass Storage" causes the external device 900 to function as a large-capacity storage device (USB MASS STRAGE CLASS), and the information processing device 200 opens the top-level folder (or ROOT folder) of the large-capacity storage device of the external device 900. ..

なお、MTPは、MTPイニシエータとしての情報処理装置200が外部装置900のファイルシステムを把握できる。従って、外部装置900側の自己アクセスと情報処理装置200からのファイルアクセスとが競合しないように制御できるので、外部装置900を大容量USB記憶装置として機能させる場合よりも好ましく動作させることができる。 In the MTP, the information processing device 200 as the MTP initiator can grasp the file system of the external device 900. Therefore, since the self-access on the external device 900 side and the file access from the information processing device 200 can be controlled so as not to conflict with each other, the external device 900 can be operated more preferably than the case where the external device 900 functions as a large-capacity USB storage device.

図8は、図1のステップS106の電力制御処理の詳細を示す。 FIG. 8 shows the details of the power control process in step S106 of FIG.

ステップS801で、プロセッサコア222はステップS105で受け付けた指示が含む電力伝送方向を判断する。受信方向であればステップS802に遷移する。なお、ステップS105で受け付けた指示が、図5のスライダー505によって「送電も受電もしない」という条件を含んでいれば、スライダー505によって「送電」や「受電」のいずれかが選択されるまで本ステップで自己遷移し続ける。 In step S801, the processor core 222 determines the power transmission direction included in the instruction received in step S105. If it is in the receiving direction, the process proceeds to step S802. If the instruction received in step S105 includes the condition that "neither power transmission nor power reception" is performed by the slider 505 of FIG. 5, the present operation is continued until either "power transmission" or "power reception" is selected by the slider 505. Continue to self-transition in steps.

ステップS802で、プロセッサコア222は自身のステータスを受電器(Sink)であるかどうかを確認する。ここで、送信器に設定されていれば役割交換(Role Swap)の手続きを実施し、情報処理装置200を受信器に設定し、外部装置900を送信器に設定する。これは、情報処理装置200と外部装置900との間で、USP−PDの接続が確立された際に、初期設定として片方に受電器、もう一方に送信器の役割が割り当てられ、各装置のコンフィギュレーションレジスタに反映されているためである。さらに、プロセッサコア222は受電器として動作するために相手装置を送電器(Source)として機能させるためのリクエストを外部装置900に出力する。このリクエストは、ステップS101において外部装置900から受信した能力情報に基づいて決定する。詳細には、外部装置900が情報処理装置200へ伝達した出力可能な複数の電力レベル(電流値と電力値のセット)のうち、情報処理装置200が要求する1つを、要求電力情報として含んでいるリクエストをUSB制御部210が出力する。また、プルダウン601によって受電停止条件が設定されている場合には、外部装置900のUSB制御部を省電力状態に遷移させないようにする。詳細には、USB制御部210が省電制限情報を設定(リクエストの「No USB SUSPENDフラグ」を1に設定)したリクエストをUSB制御部210が出力する。 In step S802, the processor core 222 confirms its status as a receiver (Sink). Here, if it is set in the transmitter, the procedure of role exchange (Role Swap) is executed, the information processing device 200 is set in the receiver, and the external device 900 is set in the transmitter. When the USP-PD connection is established between the information processing device 200 and the external device 900, the role of a receiver is assigned to one and the role of a transmitter is assigned to the other as initial settings, and each device is assigned the role of a transmitter. This is because it is reflected in the configuration register. Further, the processor core 222 outputs a request to the external device 900 to make the other device function as a transmitter (Source) in order to operate as a power receiver. This request is determined based on the capability information received from the external device 900 in step S101. Specifically, among a plurality of outputable power levels (set of current value and power value) transmitted by the external device 900 to the information processing device 200, one required by the information processing device 200 is included as the required power information. The USB control unit 210 outputs the request. Further, when the power receiving stop condition is set by the pull-down 601, the USB control unit of the external device 900 is prevented from transitioning to the power saving state. Specifically, the USB control unit 210 outputs a request for which the power saving limit information is set (the "No USB SUSPEND flag" of the request is set to 1).

ステップS803では、情報処理装置200のUSB制御部210が、受電処理やステータス情報の送受信をする。受電を開始する際には、ステップS802で要求したリクエストが外部装置900に受け入れられ、さらに外部装置900が送電できる状態(送電レディ)にある通知を出したことを確認してから受電する。また、USB制御部210は、情報処理装置200の電池212の残量などを含むステータス情報を外部装置900へ出力したり、外部装置900のステータス情報を受信したりする。 In step S803, the USB control unit 210 of the information processing device 200 transmits / receives power receiving processing and status information. When starting power reception, it is confirmed that the request requested in step S802 is accepted by the external device 900 and that the external device 900 has issued a notification that the power transmission is ready (power transmission ready) before receiving power. Further, the USB control unit 210 outputs status information including the remaining amount of the battery 212 of the information processing device 200 to the external device 900, and receives the status information of the external device 900.

ステップS804では、プロセッサコア222が情報処理装置200または外部装置900のステータス情報と受電停止条件とに基づいて、受電停止条件を満たしたかどうかを判断する。満たしていなければステップS803に遷移して受電処理を継続する。満たしていればステップS805に遷移して、プロセッサコア222が受電停止処理をするとともに、USB制御部210が外部装置900に送電停止を通知する。ステップS802のリクエストで外部装置900のUSB制御部を省電力状態に遷移させないように設定した場合、外部装置900はこの通知に基づいてこの設定をクリアする。 In step S804, it is determined whether or not the processor core 222 satisfies the power receiving stop condition based on the status information of the information processing device 200 or the external device 900 and the power receiving stop condition. If not satisfied, the process proceeds to step S803 to continue the power receiving process. If the condition is satisfied, the process proceeds to step S805, the processor core 222 performs the power reception stop processing, and the USB control unit 210 notifies the external device 900 of the power transmission stop. When the USB control unit of the external device 900 is set not to transition to the power saving state by the request of step S802, the external device 900 clears this setting based on this notification.

一方、ステップS801で電力伝送方向が送信方向である場合には、ステップS806に遷移し、プロセッサ222が情報処理装置200のステータスが送信器(Source)であるかどうか確認する。ここで、情報処理装置200が受信器に設定されている場合には役割交換(Power Role Swap)の手続きを実施し、情報処理装置200を受信器に設定し、外部装置900を送信器に設定する。さらに、USB制御部210が外部装置900からのリクエストを受け付ける。受け付けたリクエストにUSB制御部210を省電力状態に遷移させることを一時的に制限する要求が含まれている場合には、プロセッサコア222がレジスタ群225のコンフィグレーションレジスタをそのように設定する。 On the other hand, when the power transmission direction is the transmission direction in step S801, the process proceeds to step S806, and the processor 222 confirms whether or not the status of the information processing device 200 is the transmitter (Source). Here, when the information processing device 200 is set as the receiver, the procedure of role exchange (Power Role Swap) is performed, the information processing device 200 is set as the receiver, and the external device 900 is set as the transmitter. To do. Further, the USB control unit 210 receives a request from the external device 900. When the received request includes a request for temporarily restricting the transition of the USB control unit 210 to the power saving state, the processor core 222 sets the configuration register of the register group 225 as such.

ステップS807では、情報処理装置200のUSB制御部210が、送電処理やステータス情報の送受信をする。送電を開始する際には、ステップS806で外部装置900から受信したリクエストを受け入れたことを通知し、さらに情報処理装置200が送電できる状態にある通知をして、外部装置900が受電できる状態(受電レディ)を受けてから送電する。ステータス情報の送受信についてはステップS803と同様なので説明を省略する。 In step S807, the USB control unit 210 of the information processing device 200 transmits and receives power transmission processing and status information. When starting power transmission, the external device 900 is in a state of being able to receive power by notifying that the request received from the external device 900 has been accepted in step S806 and further notifying that the information processing device 200 is in a state of being able to transmit power. Power is transmitted after receiving the power receiving lady). Since the transmission / reception of status information is the same as in step S803, the description thereof will be omitted.

ステップS808では、プロセッサコア222が情報処理装置200または外部装置900のステータス情報と送電停止条件とに基づいて、送電停止条件を満たしたかどうかを判断する。満たしていなければステップS807に遷移して送電処理を継続する。満たしていればステップS809に遷移して、プロセッサコア222が送電停止処理をするとともに、USB制御部210が外部装置900に送電停止を通知する。ステップS806で受け付けたリクエストに基づいてUSB制御部210を省電力状態に遷移させないように設定した場合、プロセッサコア222はこの通知をする際にコンフィグレーションレジスタにアクセスしてこの設定をクリアする。 In step S808, it is determined whether or not the processor core 222 satisfies the power transmission stop condition based on the status information of the information processing device 200 or the external device 900 and the power transmission stop condition. If not satisfied, the process proceeds to step S807 to continue the power transmission process. If the condition is satisfied, the process proceeds to step S809, the processor core 222 performs the power transmission stop processing, and the USB control unit 210 notifies the external device 900 of the power transmission stop. When the USB control unit 210 is set not to transition to the power saving state based on the request received in step S806, the processor core 222 accesses the configuration register to clear this setting when making this notification.

なお、USB制御部210は、受電リクエストやステータス情報の送受信についても、CCピンを用いる。 The USB control unit 210 also uses the CC pin for power reception requests and transmission / reception of status information.

<コネクタ部231とケーブル230について>
図3(a)はコネクタ部231の接続部228や接続部229として機能するType−Cレセプタクルのピン配置を示す。
<About connector 231 and cable 230>
FIG. 3A shows the pin arrangement of the Type-C receptacle that functions as the connection portion 228 and the connection portion 229 of the connector portion 231.

USB Type−Cは、断面が楕円形でリバーシブルなプラグを規定している。そして、A面の12個のピンを、裏返すとB面の12個のピンと同様の内容になる。A1(B1)ピン、A12(B12)ピン、はグラウンドであり、戻り電流を返す経路とされている。A2(B2)ピン、A3(B3)ピンはUSB Super Speedモードに対応しているシリアルデータを情報処理装置200から送信するための差動信号線である。A4(B4)はバスパワーであり電力供給の主役となる信号線である。 USB Type-C defines a reversible plug with an oval cross section. Then, when the 12 pins on the A side are turned inside out, the contents are the same as the 12 pins on the B side. The A1 (B1) pin and the A12 (B12) pin are grounds and are used as paths for returning the return current. The A2 (B2) pin and the A3 (B3) pin are differential signal lines for transmitting serial data corresponding to the USB Super Speed mode from the information processing device 200. A4 (B4) is a signal line that is bus-powered and plays a leading role in power supply.

A5(B5)ピンはコンフィグレーション・チャンネル(以降、単にCCと称す)といって、USB機器の探索(ディスカバリー)、ケーブルや接続相手機器との制御通信をするための制御信号線である。例えば、図1のステップS101における能力情報の送受処理や種々の制御情報をやりとりするために、このCCピンを利用する。実際には、A5ピントB5ピンのうち、プラグ側のCCピンと接続された方がCCとして機能するが、説明の簡便のためCCピンと称す。 The A5 (B5) pin is called a configuration channel (hereinafter, simply referred to as CC), and is a control signal line for searching a USB device (discovery) and performing control communication with a cable or a connection partner device. For example, this CC pin is used for the transmission / reception processing of the capability information and the exchange of various control information in step S101 of FIG. Actually, of the A5 focus and B5 pins, the one connected to the CC pin on the plug side functions as a CC, but for the sake of simplicity, it is called a CC pin.

A6(B6)、A7(B7)ピンはUSB2.0対応のデータ転送用の差動信号線である。A8(B8)ピンは、補助的な信号線であり、セカンダリバス機能を利用したり、インターフェースの機能を拡張したりする際に用いる。A9(B9)ピンはバスバワーであり上述のA4ピンと同様である。A10(B10)、A11(B11)ピンは、USB Super Speedモードに対応しているシリアルデータを情報処理装置200が受信するための差動信号線である。 The A6 (B6) and A7 (B7) pins are USB 2.0 compatible data transfer differential signal lines. The A8 (B8) pin is an auxiliary signal line and is used when using the secondary bus function or expanding the function of the interface. The A9 (B9) pin is a bus power and is the same as the A4 pin described above. The A10 (B10) and A11 (B11) pins are differential signal lines for the information processing apparatus 200 to receive serial data corresponding to the USB Super Speed mode.

図3(b)はケーブル230のType−Cのプラグのピン配置を示す。このプラグを接続部としてのレセプタクルに挿し込むと、プラグのa1ピンがレセプタクルのA1ピンまたはB1ピンと接続される。つまり、同等機能のピンがレセプタクルの上側下側で2セットにあるのでプラグを上下反転させて挿入しても同様に繋がる。USB3.1のデータ転送機能のみを実現するためにはa1〜12ピン(以降、aセット)かb1〜12ピン(以降、bセット)のどちらか1組でよい。ただし、USB PDに対応する電圧を供給するためにはVBUSであるa4,a9,b4,b9が必要になることがある。また、VconnはUSB PD機器の探索(ディスカバリ)に用いたり他の制御に使ったりすることもできる。 FIG. 3B shows the pin arrangement of the Type-C plug of the cable 230. When this plug is inserted into the receptacle as a connecting portion, the a1 pin of the plug is connected to the A1 pin or the B1 pin of the receptacle. In other words, since there are two sets of pins with the same function on the upper and lower sides of the receptacle, they can be connected in the same way even if the plug is inserted upside down. In order to realize only the data transfer function of USB3.1, either one set of a1 to 12 pins (hereinafter, a set) or b1 to 12 pins (hereinafter, b set) may be used. However, VBUS a4, a9, b4, b9 may be required to supply the voltage corresponding to the USB PD. Vconn can also be used for searching (discovering) USB PD devices and for other controls.

本実施形態では説明の簡便のため、b2,b3,b10,b11ピンを利用しない。そのため、ケーブル230の信号線は12本でよい(GNDとVBUSに1つの信号線を利用するとする)。 In this embodiment, pins b2, b3, b10, and b11 are not used for the sake of simplicity. Therefore, the number of signal lines of the cable 230 may be 12 (assuming that one signal line is used for GND and VBUS).

<CCピンにおけるパケットフォーマットについて>
図4(a)はCCピンによって情報処理装置200と外部装置との間で通信する際に用いるパケットフォーマットである。プリアンブル401は受信側のトレーニングのためのバイナリデータである。SOP402はパケットの先頭を示す20ビットのシンボルデータである。ヘッダー403とオブジェクト404は、メッセージ(プロトコル層で解釈するデータ)の一部である。ヘッダー403は16ビットの情報で、そのうちの4ビット(メッセージタイプ421)でメッセージの種類を示す。図4(c)に示す4ビットの情報の様に、メッセージタイプ421として「0001:送電能力情報(ソース・ケイパビリティ)」、「0100:受電能力情報(シンク・ケイパビリティ)」を示すことができる。
<Packet format on CC pin>
FIG. 4A is a packet format used when communicating between the information processing device 200 and the external device by the CC pin. The preamble 401 is binary data for training on the receiving side. SOP402 is 20-bit symbol data indicating the beginning of the packet. The header 403 and the object 404 are part of the message (data to be interpreted by the protocol layer). The header 403 is 16-bit information, of which 4 bits (message type 421) indicate the type of message. Like the 4-bit information shown in FIG. 4C, "0001: power transmission capacity information (source capability)" and "0100: power reception capacity information (sync capability)" can be shown as the message type 421.

32ビットのオブジェクト404はメッセージの内容であり、1つのメッセージにつき8つまで格納できるが、メッセージタイプによっては省略可能である。例えば、メッセージタイプ421が「0001:GooDCRC(CRC良し)」の場合はオブジェクトを省略できる。CRC405は誤り訂正符号であり、EOPはパケットの末尾を示すシンボルである。 The 32-bit object 404 is the content of the message and can store up to eight objects per message, but it can be omitted depending on the message type. For example, when the message type 421 is "0001: Good DCRC (CRC good)", the object can be omitted. CRC405 is an error correction code, and EOP is a symbol indicating the end of the packet.

図4(c)のメッセージタイプ421は送電能力情報を示し、実際に送電能力情報としてオブジェクト411とオブジェクト412の2つの内容を含むメッセージを表す。オブジェクト411は電源供給する際の初期状態(Vsafe5V)を示し、オブジェクト412は20V,5Aで電力を供給できることを示す。オブジェクト412に含まれる送電能力情報431の詳細を図4(d)に示す。 The message type 421 of FIG. 4C shows the power transmission capacity information, and actually represents a message including two contents of the object 411 and the object 412 as the power transmission capacity information. Object 411 shows an initial state (Vsafe5V) when power is supplied, and object 412 shows that power can be supplied at 20V, 5A. Details of the transmission capacity information 431 included in the object 412 are shown in FIG. 4 (d).

電力役割情報432は、情報処理装置200が送電器と受電器の機能を切り替えることができるかどうかを示す。省電力対応情報433は、情報処理装置200のUSB制御部210が省電力モードに遷移可能かどうかを示し、外部装置にも対応させることができる。外部電源情報434は情報処理装置200がAC電源から主な電力供給を受けているかどうかを示す。データ役割情報435は、情報処理装置200がデータ送信器(ホスト)とデータ受信器(デバイス)の機能を切り替えることができるかどうかを示す。電力役割情報432、省電力対応情報433、外部電源情報434、データ役割情報435は其々1ビットで表現可能で、例えば、有効な場合を1として、無効な場合を0として表現できる。この場合、情報処理装置200が送電器と受電器の機能を切り替え可能で、省電力モードに遷移せず、ACアダプタに接続されていない場合で、ホストとデバイスのどちらでも動作できる場合には、オブジェクト412に「1,0,0,1」を含む。 The electric power role information 432 indicates whether or not the information processing apparatus 200 can switch the functions of the transmitter and the receiver. The power saving support information 433 indicates whether or not the USB control unit 210 of the information processing device 200 can transition to the power saving mode, and can be made compatible with an external device. The external power supply information 434 indicates whether or not the information processing apparatus 200 receives the main power supply from the AC power supply. The data role information 435 indicates whether or not the information processing apparatus 200 can switch the functions of the data transmitter (host) and the data receiver (device). The power role information 432, the power saving correspondence information 433, the external power supply information 434, and the data role information 435 can each be expressed by 1 bit. For example, a valid case can be expressed as 1 and an invalid case can be expressed as 0. In this case, if the information processing device 200 can switch the functions of the transmitter and the receiver, does not transition to the power saving mode, and is not connected to the AC adapter, and can operate on either the host or the device, Object 412 contains "1,0,0,1".

なお、プロセッサコア222がDual Roleの設定を解除するようにレジスタ群225のコンフィグレーションレジスタの内容を変えている間は、情報処理装置200から外部装置へ出力される電力役割情報432は「0」にされる。 While the processor core 222 is changing the contents of the configuration register of the register group 225 so as to cancel the setting of the Dual Role, the power role information 432 output from the information processing device 200 to the external device is "0". Be made.

<コンフィグレーションレジスタとステータスレジスタについて>
図10はレジスタ群225のコンフィグレーションレジスタ1000とステータスレジスタ1010の概略を示す。
<About the configuration register and status register>
FIG. 10 shows an outline of the configuration register 1000 and the status register 1010 of the register group 225.

Dual Role1001は、情報処理装置200のDual Roleの設定が有効かどうかを示す。初期状態は情報処理装置200が送電器としても受電器としても機能できることに示す“1(Dual Role有効)”に設定されている。そして、プロセッサコア222がDual Roleの設定を解除するようにレジクタアクセスした場合に“0(Dual Role無効)”に設定され、初期化によって“1”に戻る。 Dual Role 1001 indicates whether or not the setting of Dual Role of the information processing apparatus 200 is valid. The initial state is set to "1 (Dual Role valid)" indicating that the information processing apparatus 200 can function as both a transmitter and a receiver. Then, when the processor core 222 accesses the register to cancel the Dual Role setting, it is set to "0 (Dual Role invalid)" and returns to "1" by initialization.

Power save1002は、USB制御部210が省電力モードに遷移することを制限されているかどうかを示す。初期状態は“0(制限無効)”に設定され、ステップ806でプロセッサコア222が省電力モードを一時的に制限する設定にする際にはレジスタアクセスによって“1(制限有効)”に設定される。 Power save 1002 indicates whether or not the USB control unit 210 is restricted from transitioning to the power saving mode. The initial state is set to "0 (limit invalid)", and when the processor core 222 is set to temporarily limit the power saving mode in step 806, it is set to "1 (limit valid)" by register access. ..

Power control policy1003は、ステップS102〜ステップS105の内容に基づいてプロセッサコア222が決定した電力制御ポリシーを保持している。例えば、情報処理装置200を送電器として機能させるか受電器として機能させるか又は電力伝送を行わないかを示す役割情報や、供給電力レベル(電圧値と対応する値、電流値と対応する値)などを保持する。また、Power control policy1003には停止条件情報としてウィンドウ501で設定した受電停止条件や送電停止条件や、処理中フラグや完了フラグも含まれている。処理中フラグは、ステップS802で送信したリクエストについて外部装置900からレディ信号を受信した場合や、ステップS806で受け付けたリクエストに基づいて、送電する準備ができたことを示すレディ信号を出力する際にプロセッサコア222が有効に設定する。完了フラグはステップS809、ステップS805の処理でプロセッサコア222が有効に設定する。 The Power control policy 1003 holds a power control policy determined by the processor core 222 based on the contents of steps S102 to S105. For example, role information indicating whether the information processing device 200 functions as a transmitter, a power receiver, or does not perform power transmission, or a power supply level (value corresponding to a voltage value, value corresponding to a current value). And so on. In addition, the Power control policy 1003 also includes a power receiving stop condition and a power transmission stop condition set in the window 501 as stop condition information, a processing flag, and a completion flag. The processing flag is used when a ready signal is received from the external device 900 for the request transmitted in step S802, or when a ready signal indicating that power transmission is ready is output based on the request received in step S806. The processor core 222 is enabled. The completion flag is effectively set by the processor core 222 in the processes of steps S809 and S805.

battery level(0)1011は、情報処理装置200の電池212の電池残量を示す情報であり、battery level(1)1012は、外部装置900の電池残量を示す情報である。外部装置900の電池残量は、コネクタ部231が外部装置から取得した能力情報やステータス情報に含まれている場合にプロセッサコア222が更新する。 The battery level (0) 1011 is information indicating the remaining battery level of the battery 212 of the information processing device 200, and the battery level (1) 1012 is information indicating the remaining battery level of the external device 900. The remaining battery level of the external device 900 is updated by the processor core 222 when the connector unit 231 is included in the capacity information or status information acquired from the external device.

以上のように、本実施形態では情報処理装置200が、必要な場合に電力を伝送する方向を決定するための表示を行い、決定した電力制御ポリシーに基づいて制御するので、電力がデバイス間を往復してしまうことを抑制することができる。また、決定した電力制御ポリシーに基づいて制御している間に、Dual Roleの設定を解除することで、さらに電力ロスを低減することができる。これは、プロセッサコア222がDual Roleの設定を解除することで、情報処理装置200から外部装置へ送信するパケットの電力役割情報432を無効にし、必要以上に電力役割が切り替わってしまうことを抑制することによる。 As described above, in the present embodiment, the information processing apparatus 200 displays a display for determining the direction of transmitting electric power when necessary, and controls based on the determined electric power control policy, so that the electric power is transferred between the devices. It is possible to suppress reciprocation. Further, the power loss can be further reduced by canceling the setting of the Dual Role during the control based on the determined power control policy. This prevents the processor core 222 from canceling the Dual Role setting, invalidating the power role information 432 of the packet transmitted from the information processing device 200 to the external device, and suppressing the power role from being switched more than necessary. It depends.

また、本実施形態では、受電停止条件または送電停止条件が設定された場合に、外部装置220または自身のUSB制御部210が省電力モードに遷移しないように制御する。この制御により、USB制御部210が省電力モードに遷移することで受電停止条件または送電停止条件が満たされない場合に、送電または受電が中断してしまうことを抑制できる。 Further, in the present embodiment, when the power receiving stop condition or the power transmission stop condition is set, the external device 220 or its own USB control unit 210 is controlled so as not to transition to the power saving mode. By this control, it is possible to suppress the interruption of power transmission or power reception when the power reception stop condition or the power transmission stop condition is not satisfied due to the transition of the USB control unit 210 to the power saving mode.

また、上述の実施形態ではCC信号線をサポートしたケーブル用いる形態について説明したが、Type−A、Type−Bのケーブルを用いることもできる。Type−A、Type−Bのプラグには、CC信号線をサポートしていないことが考えられるので、CCピンの代わりにVBUSピンを介して能力情報の送受信をすればよい。 Further, in the above-described embodiment, the embodiment in which the cable supporting the CC signal line is used has been described, but the Type-A and Type-B cables can also be used. Since it is conceivable that the Type-A and Type-B plugs do not support the CC signal line, the ability information may be transmitted and received via the VBUS pin instead of the CC pin.

また、上述の実施形態では「non(deatached)」としてケーブル230が抜かれたことを検出するとしたが他の方法で接続断を検出するようにしてもよい。情報処理装置200から外部装置900へのメッセージには全てCRC付きで送り、外部装置900からはCRCの応答として「GoodCRC」メッセージが返ってくる様になっている。そこで、情報処理装置200からメッセージを出力してから所定時間以内に「GoodCRC」メッセージが返ってこないことを以って接続断と判断してもよい。なお、接続断に基づいてステータスレジスタやコンフィギュレーションレジスタは初期化される。 Further, in the above-described embodiment, it is assumed that the cable 230 is detected as "non (deatached)", but the connection disconnection may be detected by another method. All messages from the information processing device 200 to the external device 900 are sent with a CRC, and the external device 900 returns a "Good CRC" message as a CRC response. Therefore, it may be determined that the connection is disconnected because the "Good CRC" message is not returned within a predetermined time after the message is output from the information processing device 200. The status register and configuration register are initialized based on the connection disconnection.

また、本実施形態では説明の簡便のため、情報処理装置200毎に送電器や受電器として切り替える例を説明したが、接続部毎に送電器と受電器を異ならせるように制御することも可能である。その場合には、コンフィグレーションレジスタやステータスレジスタ等の構成を接続部の数毎に設けるようにすればよい。 Further, in the present embodiment, for the sake of simplicity of explanation, an example of switching as a transmitter or a power receiver for each information processing device 200 has been described, but it is also possible to control the transmitter and the receiver so as to be different for each connection portion. Is. In that case, the configuration such as the configuration register and the status register may be provided for each number of connection portions.

また、ステップS102やステップS103で「No」と判定される場合には、情報処理装置200および外部装置900の其々についてUSB制御部を省電力モードに遷移させないように制御するようにしてもよい。 Further, when it is determined as "No" in step S102 or step S103, the USB control unit may be controlled so as not to shift to the power saving mode for each of the information processing device 200 and the external device 900. ..

また、ステップS102〜S104のいずれかで「No」と判定される場合に、ユーザの指示の受け付けを待たずに決定した電力制御ポリシーについてUI203が通知するとともに、ユーザがその通知をタッチすることでステップS105へ遷移させてもよい。例えば、S102で情報処理装置200がAC電源からの供給を受けている場合であっても、ユーザはUSB PDによる電力供給が確立すれば既存のAC電源との接続を切断する意図があるかもしれない。そのため、S102で「No」の場合には、新しく制御通信を確立したUSB PD接続によって既存のAC電源を代用させるかどうかの選択を受け付けるための通知を表示するだけでもよい。 Further, when it is determined as "No" in any of steps S102 to S104, the UI 203 notifies the power control policy determined without waiting for the acceptance of the user's instruction, and the user touches the notification. The transition to step S105 may be performed. For example, even if the information processing device 200 is supplied from the AC power supply in S102, the user may intend to disconnect from the existing AC power supply if the power supply by the USB PD is established. Absent. Therefore, in the case of "No" in S102, it is sufficient to display a notification for accepting the selection of whether to substitute the existing AC power supply by the USB PD connection for which the newly established control communication is established.

<<実施形態2>>
実施形態1では、情報処理装置200が決定した電力制御ポリシーに基づいて電力制御を実施する際には、情報処理装置200自身のコンフィグレーションレジスタのDual Roleの設定を解除する例を説明している。この制御によって、実質的に外部装置900は情報処理装置200に対して役割を変更する要求(Port Power Role Swapメッセージ:以降、役割変更要求と称す)を出せなくなる。
<< Embodiment 2 >>
In the first embodiment, an example of canceling the Dual Role setting of the configuration register of the information processing apparatus 200 itself is described when the electric power control is executed based on the electric power control policy determined by the information processing apparatus 200. .. Due to this control, the external device 900 is substantially unable to issue a request for changing the role (Port Power Role Swap message: hereinafter referred to as a role change request) to the information processing device 200.

一方、実施形態2では、Dual Roleの設定を解除しない情報処理装置200同士が接続されている形態について説明する。すなわち、本実施形態では片方の情報処理装置200で決定した電力制御ポリシーに基づいて2つの情報処理装置200間において給電制御を実施中であっても、他方の情報処理装置200から役割変更要求を送信できるように構成されている。例えば、受電中に他方の情報処理装置200から、ユーザにとって好ましくない役割変更要求(送電中)が送信されてしまった場合に、好ましくない役割変更がされてしまう可能性がある。 On the other hand, in the second embodiment, a mode in which the information processing devices 200 that do not cancel the Dual Role setting are connected to each other will be described. That is, in the present embodiment, even if power supply control is being performed between the two information processing devices 200 based on the power control policy determined by one information processing device 200, the other information processing device 200 requests a role change. It is configured to be able to send. For example, if a role change request (during power transmission) that is unfavorable to the user is transmitted from the other information processing device 200 while receiving power, there is a possibility that the unfavorable role change is performed.

そこで本実施形態では、2つの情報処理装置200A、200Bがケーブル230で接続されている形態について説明する。なお、実施形態1と同一機能を有する構成や工程には同一符号を付すとともに、構成的、機能的にかわらないものについてはその説明を省略する。なお、情報処理装置200Aと200Bは図2に示す構成を有する。 Therefore, in the present embodiment, a mode in which the two information processing devices 200A and 200B are connected by the cable 230 will be described. The same reference numerals are given to the configurations and processes having the same functions as those in the first embodiment, and the description thereof will be omitted for those having the same structural and functional functions. The information processing devices 200A and 200B have the configuration shown in FIG.

図11は、本実施形態の情報処理装置200Aが他の情報処理装置200Bから役割変更要求を受信した際、情報処理装置200Aにおける役割変更を確認する処理を示すフローチャートである。 FIG. 11 is a flowchart showing a process of confirming the role change in the information processing device 200A when the information processing device 200A of the present embodiment receives a role change request from another information processing device 200B.

ステップS1101で、情報処理装置200Aのプロセッサコア222がコネクタ部231のType−CコネクタのCCピンを介して、情報処理装置200Bから送信された役割変更要求を受信する。役割変更要求を受信した際、情報処理装置200Aは自身からの役割変更要求の出力を抑制する。 In step S1101, the processor core 222 of the information processing device 200A receives the role change request transmitted from the information processing device 200B via the CC pin of the Type-C connector of the connector unit 231. When the role change request is received, the information processing apparatus 200A suppresses the output of the role change request from itself.

ステップS1102では、情報処理装置200Aのプロセッサコア222がレジスタ群225のPower control policy1003を確認して自装置に送電や受電の処理をするための電力制御ポリシーが設定されているかどうかを確認する。電力制御ポリシーが何も設定されていなければステップS1103に遷移する。 In step S1102, the processor core 222 of the information processing device 200A confirms the Power control policy 1003 of the register group 225, and confirms whether or not a power control policy for processing power transmission or reception is set in the own device. If no power control policy is set, the process proceeds to step S1103.

ステップS1103では、情報処理装置200Aのプロセッサコア222が役割変更処理を受け付けたことを示すメッセージ(Accept)を送信し、自身の役割変更処理を実施する。 In step S1103, the processor core 222 of the information processing device 200A transmits a message (Accept) indicating that the role change process has been accepted, and executes its own role change process.

一方、ステップS1102で、情報処理装置200Aに電力制御ポリシーが設定されていれば、ステップS1104に遷移し役割変更を許容するかどうかを求める通知をする。通知については図12を用いて後述する。 On the other hand, if the power control policy is set in the information processing apparatus 200A in step S1102, the process proceeds to step S1104 to notify whether or not to allow the role change. The notification will be described later with reference to FIG.

ステップS1105では、ユーザから役割変更について許諾することを受け付けたかどうかを判定する。ユーザから役割変更について許諾する旨を受け付けていればステップS1103に遷移する。 In step S1105, it is determined whether or not the user has accepted permission to change the role. If the user has accepted the permission to change the role, the process proceeds to step S1103.

一方、ユーザから役割変更について許諾しない旨を受け付けていれば、ステップS1106に遷移する。ステップS1106では、役割変更処理を受け付けたことを示すメッセージ(Accept)を抑制し、相手装置(情報処理装置200B)の役割変更要求に対するレスポンス待ち受けタイマをタイムアウトさせる。 On the other hand, if it is accepted from the user that the role change is not permitted, the process proceeds to step S1106. In step S1106, the message (Accept) indicating that the role change process has been accepted is suppressed, and the response standby timer for the role change request of the remote device (information processing device 200B) is timed out.

なお、ステップS1103、S1106において、情報処理装置200Aは自装置からの役割変更要求の出力抑制を解除する。 In steps S1103 and S1106, the information processing device 200A releases the output suppression of the role change request from the own device.

図12は、ステップS1104の通知画面1201を示す模式図である。プロセッサコア222がUI203に表示させる。状態表示1202は、現在の情報処理装置200Aの状態と役割変更要求を受け付けた場合を模式的に示している。情報処理装置200Aの状態は、プロセッサコア222が前述のステータスレジスタおよびコンフィギュレーションレジスタに基づいた内容を表示させる。 FIG. 12 is a schematic view showing the notification screen 1201 in step S1104. The processor core 222 displays it on the UI 203. The status display 1202 schematically shows the current status of the information processing apparatus 200A and the case where the role change request is received. As for the state of the information processing apparatus 200A, the processor core 222 displays the contents based on the above-mentioned status register and configuration register.

許諾ボタン1203はユーザが押下することにより役割変更要求を許諾するためのボタンであり、一方、無視ボタン1204はユーザが押下することにより役割変更要求を拒絶するためのボタンである。 The permission button 1203 is a button for granting the role change request when pressed by the user, while the ignore button 1204 is a button for rejecting the role change request when pressed by the user.

以上のように、本実施形態によれば、電力制御ポリシーを決定した後に、ユーザにとって好ましくない可能性の高い役割変更要求を受け付けた場合に、ユーザの意図を適切に反映して役割変更の有無を決定できる。 As described above, according to the present embodiment, when a role change request that is likely to be unfavorable to the user is received after the power control policy is determined, the presence or absence of the role change appropriately reflects the user's intention. Can be decided.

また、本実施形態では2つの装置において送電方向が異なる要求がなされた場合にユーザへ許諾を求めているが、2つの装置の其々に停止条件が設定されてしまった場合には単にユーザへ通知するだけでもよい。 Further, in the present embodiment, permission is requested from the user when a request is made for different power transmission directions in the two devices, but when a stop condition is set for each of the two devices, the user is simply asked for permission. You may just notify.

また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。 The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiment is supplied to the system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads the program. This is the process to be executed.

Claims (17)

接続部と、
電器としての機能と受電器としての機能と切り替え可能であることを示す能力情報を、外部装置から前記接続部を介して取得する取得手段と、
前記能力情報に基づいて、ユーザによる指示を受け付ける受け付け手段と、
前記受け付け手段で受け付けた指示に基づいて、前記接続部を介して前記外部装置に送電する送電状態と、前記接続部を介して前記外部装置から受電する受電状態とを含む複数の状態のうちの1つの状態制御する電力制御手段と
前記受け付け手段で受け付けた指示に基づいて電力制御ポリシーを決定する決定手段と、
前記決定手段で決定された電力制御ポリシーを保持する保持手段と
を有することを特徴とする情報処理装置。
Connection part and
The capability information indicating that the function and are possible switching of the functions and the power receiver as feed Electric, obtaining means for obtaining from an external device via the connecting section,
A receiving means for receiving instructions from the user based on the ability information,
Among a plurality of states including a power transmission state in which power is transmitted to the external device via the connection portion and a power reception state in which power is received from the external device via the connection portion based on an instruction received by the reception means. and power control means for controlling the one state,
A decision-making means for determining a power control policy based on an instruction received by the receiving means, and
An information processing device having a holding means for holding a power control policy determined by the determining means .
前記受け付け手段は、グラフィックユーザインターフェースを有し、前記取得手段取得された能力情報に基づいて、表示を異ならせることを特徴とする請求項1に記載の情報処理装置。 The receiving means has a graphical user interface, on the basis of the capability information acquired by the acquisition unit, the information processing apparatus according to claim 1, wherein varying the Viewing. 前記受け付け手段は、前記取得手段取得された能力情報に基づいて、前記ユーザによる指示の受け付けを省略することを特徴とする請求項1または2に記載の情報処理装置。 Said reception means, based on the acquired capability information by the acquisition unit, the information processing apparatus according to claim 1 or 2, characterized in omitting the acceptance of an instruction by the user. 前記能力情報は、前記接続部が省電力モードに遷移可能かかを示す省電力対応情報と、前記外部装置が外部電源に接続されているかかを示す外部電源情報をさらに含んでいることを特徴とする請求項1から3のいずれか1項に記載の情報処理装置。 The capability information, wherein the connecting portion and the power-saving information indicating whether a transition is possible or not the power saving mode, the external device further includes an external power supply information indicating whether or not it is connected to an external power source The information processing apparatus according to any one of claims 1 to 3, wherein the information processing apparatus is characterized. 前記電力制御ポリシーは、前記情報処理装置を前記送電状態と前記受電状態とを含む複数の状態のうちのどの状態で動作させるかを示す情報を含むことを特徴とする請求項に記載の情報処理装置。 The information according to claim 1 , wherein the power control policy includes information indicating in which of a plurality of states including the power transmission state and the power reception state the information processing apparatus is operated. Processing equipment. 前記電力制御ポリシーは、前記送電状態における送電停止条件または前記受電状態における受電停止条件を含むことを特徴とする請求項に記載の情報処理装置。 The information processing apparatus according to claim 1 , wherein the power control policy includes a power transmission stop condition in the power transmission state or a power reception stop condition in the power reception state. 記情報処理装置の電池残量が所定の割合に達したことを前記送電停止条件または前記受電停止条件とすることを特徴とする請求項に記載の情報処理装置。 The information processing apparatus according to the battery remaining amount of the previous SL information processing apparatus reaches a predetermined ratio to claim 6, characterized in that said power transmission stop condition or the power receiving stop condition. 記外部装置の電池残量が所定の割合に達したことを前記送電停止条件または前記受電停止条件とすることを特徴とする請求項に記載の情報処理装置。 The information processing apparatus according to the battery remaining amount of the pre Kigaibu device reaches a predetermined ratio to claim 6, characterized in that said power transmission stop condition or the power receiving stop condition. 記接続部を介した前記情報処理装置と前記外部装置との間の接続が切れたことを前記送電停止条件または前記受電停止条件とすることを特徴とする請求項に記載の情報処理装置。 The information processing apparatus according to claim 6, characterized in that said power transmission stop condition or the power receiving stop condition that the connection is broken between said information processing apparatus through the pre-Symbol connecting portion and the external device .. 記接続部を介して前記情報処理装置による受電または送電を継続した時間が所定時間に達したことを前記送電停止条件または前記受電停止条件とすることを特徴とする請求項に記載の情報処理装置。 Information according to claim 6, time spent in the power receiving or power transmission by the information processing apparatus through a front Symbol connecting portion, characterized in that said power transmission stop condition or the power receiving stop condition that has reached a predetermined time Processing equipment. 前記電力制御ポリシーは、前記外部装置に要求する電力レベルを含むことを特徴とする請求項1から10のいずれか1項に記載の情報処理装置。 The information processing device according to any one of claims 1 to 10 , wherein the power control policy includes a power level required for the external device. 前記取得手段が受信した能力情報が有効な外部電源情報を含んでいる場合、前記決定手段はユーザからの指示を待たずに、前記情報処理装置に送電することと、前記外部装置の電力制御部が省電力状態に遷移しないようにすることとを前記外部装置に要求することを特徴とする請求項1から11のいずれか1項に記載の情報処理装置。 If capability information the acquisition unit has received contains a valid external power source information, the determining means, without waiting for instructions from the user, the method comprising: transmitting to the information processing apparatus, the power control of the external device The information processing device according to any one of claims 1 to 11 , wherein the external device is required to prevent the unit from transitioning to a power saving state. 前記取得手段が受信した能力情報が有効な外部電源情報を含んでいない場合、前記決定手段はユーザからの指示に基づいて電力制御ポリシーを決定することを特徴とする請求項1から12のいずれか1項に記載の情報処理装置。 If capability information the acquisition unit has received does not contain a valid external power source information, the determining means, from claim 1 based on instructions from the user and determines the power control policy 12 The information processing apparatus according to any one item. 外部装置のデバイス情報と前記決定手段決定された電力制御ポリシーとを対応づけて記憶する不揮発性メモリをさらに有し、
記電力制御手段はデバイス情報対応する電力制御ポリシーに基づいて電力を制御することを特徴とする請求項1から13のいずれか1項に記載の情報処理装置。
Has a non-volatile memory stores an association with an external device power control policy determined by the device information and the determination means to further,
Before SL power control means, the information processing apparatus according to any one of claims 1 to 13, characterized in that to control the power based on the power control policy corresponding to the device information.
前記取得手段が前記外部装置から役割変更要求を受け付けた場合に、前記情報処理装置に電力制御ポリシーが設定されている場合は前記役割変更要求についての通知を行う通知手段をさらに有することを特徴とする請求項1から14のいずれか1項に記載の情報処理装置。 If the acquisition unit receives the role change request from said external device, said if configured power control policies to the information processing apparatus, characterized by further comprising a notification means for performing notification of the role change request The information processing device according to any one of claims 1 to 14 . 電器としての機能と受電器としての機能と切り替え可能であることを示す能力情報を、外部装置から接続部を介して取得する取得ステップと、
記能力情報に基づいて、ユーザによる指示を受け付ける受け付けステップと、
前記受け付けステップで受け付けた指示に基づいて、前記接続部を介して前記外部装置に送電する送電状態と、前記接続部を介して前記外部装置から受電する受電状態とを含む複数の状態のうちの1つの状態制御する電力制御ステップ
前記受け付けステップで受け付けた指示に基づいて、電力制御ポリシーを決定する決定ステップと、
前記決定ステップで決定された電力制御ポリシーを保持手段に保持させるステップと
を有することを特徴とする情報処理方法。
An acquisition step of capability information, acquired from the external device via the connecting section to indicate that transmission and functions as a collector and functions as a power receiving device is switchable,
Based on prior yesterday force information, a reception step of receiving an instruction from the user,
Of a plurality of states including a power transmission state in which power is transmitted to the external device via the connection unit and a power reception state in which power is received from the external device via the connection unit based on the instruction received in the reception step. A power control step that controls one state ,
A decision step for determining the power control policy based on the instruction received in the acceptance step, and
An information processing method comprising a step of causing a holding means to hold a power control policy determined in the determination step .
コンピュータに、
電器としての機能と受電器としての機能と切り替え可能であることを示す能力情報を、外部装置から接続部を介して取得する取得ステップと、
前記能力情報に基づいて、ユーザによる指示を受け付ける受け付けステップと、
前記受け付けステップで受け付けた指示に基づいて、前記接続部を介して前記外部装置に送電する送電状態と、前記接続部を介して前記外部装置から受電する受電状態とを含む複数の状態のうちの1つの状態制御する電力制御ステップと、
前記受け付けステップで受け付けた指示に基づいて、電力制御ポリシーを決定する決定ステップと、
前記決定ステップで決定された電力制御ポリシーを保持手段に保持させるステップと
を実行させるためのプログラム。
On the computer,
An acquisition step of capability information, acquired from the external device via the connecting section to indicate that transmission and functions as a collector and functions as a power receiving device is switchable,
A reception step that accepts instructions from the user based on the ability information,
Of a plurality of states including a power transmission state in which power is transmitted to the external device via the connection unit and a power reception state in which power is received from the external device via the connection unit based on the instruction received in the reception step. A power control step that controls one state ,
A decision step for determining the power control policy based on the instruction received in the acceptance step, and
With the step of causing the holding means to hold the power control policy determined in the determination step.
A program to execute .
JP2016132871A 2016-07-04 2016-07-04 Information processing equipment, information processing methods and programs Active JP6779678B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2016132871A JP6779678B2 (en) 2016-07-04 2016-07-04 Information processing equipment, information processing methods and programs
US15/634,794 US10452112B2 (en) 2016-07-04 2017-06-27 Information processing apparatus, information processing method, and recording medium recording computer-readable program
CN201710535715.0A CN107577621B (en) 2016-07-04 2017-07-04 Information processing apparatus, information processing method, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016132871A JP6779678B2 (en) 2016-07-04 2016-07-04 Information processing equipment, information processing methods and programs

Publications (2)

Publication Number Publication Date
JP2018007450A JP2018007450A (en) 2018-01-11
JP6779678B2 true JP6779678B2 (en) 2020-11-04

Family

ID=60805907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016132871A Active JP6779678B2 (en) 2016-07-04 2016-07-04 Information processing equipment, information processing methods and programs

Country Status (3)

Country Link
US (1) US10452112B2 (en)
JP (1) JP6779678B2 (en)
CN (1) CN107577621B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6900232B2 (en) * 2017-04-27 2021-07-07 Dynabook株式会社 Electronics and methods
JP7057667B2 (en) 2017-12-28 2022-04-20 キヤノン株式会社 Electronics, control methods and programs
JP2019121268A (en) 2018-01-10 2019-07-22 キヤノン株式会社 Electronic apparatus, control method and program
KR20200026534A (en) * 2018-09-03 2020-03-11 삼성전자주식회사 Method for identifying an external electronic device based on power information, storage medium and an electronic device therefor
JP7131380B2 (en) * 2018-12-28 2022-09-06 ブラザー工業株式会社 Information processing device, control method for information processing device, and program
JP7115304B2 (en) * 2018-12-28 2022-08-09 ブラザー工業株式会社 Information processing device, control method for information processing device, and program
US20210406360A1 (en) * 2020-06-24 2021-12-30 Canon Kabushiki Kaisha Electronic device and method
JP2022030577A (en) 2020-08-07 2022-02-18 キヤノン株式会社 Electronic device, control method, and program
CN113890144A (en) * 2021-09-29 2022-01-04 青岛海信移动通信技术股份有限公司 Charging and discharging control method, device, equipment and medium

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11150876A (en) * 1997-11-14 1999-06-02 Nec Corp Power supply method and device for personal computer
JP4504315B2 (en) * 2006-01-06 2010-07-14 株式会社ユニバーサルエンターテインメント Charge control device
US7508162B2 (en) * 2006-04-07 2009-03-24 Nokia Corporation Method and apparatus for providing electrical energy to a portable device from energy storage of another portable device
JP2009251895A (en) * 2008-04-04 2009-10-29 Sony Corp Power exchange device, power exchange method, program, and power exchange system
CN101728850A (en) * 2008-11-03 2010-06-09 深圳富泰宏精密工业有限公司 Charging device and use method thereof
JP5305975B2 (en) * 2009-02-20 2013-10-02 三洋電機株式会社 How to update the battery pack
US9545851B2 (en) * 2010-02-25 2017-01-17 Panasonic Automotive Systems Company Of America, Division Of Panasonic Corporation Of North America Vehicle bi-directional power inverter system and method
US7973562B1 (en) * 2010-03-22 2011-07-05 Rockwell Automation Technologies, Inc. Universal sink/source I/O module for industrial controller
CN202363924U (en) * 2011-11-10 2012-08-01 北京电研华源电力技术有限公司 Multifunctional power supply management system
JP2013219952A (en) * 2012-04-10 2013-10-24 Sharp Corp Mobile terminal, method for reporting power supply for the mobile terminal, and program for executing the method
JP5578209B2 (en) 2012-08-22 2014-08-27 トヨタ自動車株式会社 Vehicle power control device
KR102193181B1 (en) * 2014-02-21 2020-12-18 삼성전자주식회사 Power sharing method and electronic device implementing the same
US20150256017A1 (en) * 2014-03-07 2015-09-10 Lenovo (Singapore) Pte. Ltd. Energy transfer mechanism
US9531551B2 (en) * 2014-08-26 2016-12-27 Cisco Technology, Inc. Dynamically configurable power-over-ethernet apparatus and method
US9632555B2 (en) * 2014-12-09 2017-04-25 Intel Corporation Techniques to route power to a USB host in dead battery condition
US10122576B2 (en) * 2015-03-17 2018-11-06 Microsoft Technology Licensing, Llc Intelligent role selection for dual-role devices
US10079500B2 (en) * 2016-06-20 2018-09-18 Lenovo (Singapore) Pte. Ltd. Apparatus, method, and program product for powering a device using a USB connection

Also Published As

Publication number Publication date
JP2018007450A (en) 2018-01-11
US20180004279A1 (en) 2018-01-04
CN107577621B (en) 2021-06-01
CN107577621A (en) 2018-01-12
US10452112B2 (en) 2019-10-22

Similar Documents

Publication Publication Date Title
JP6877901B2 (en) Information processing equipment, information processing methods and programs
JP6779678B2 (en) Information processing equipment, information processing methods and programs
TWI356295B (en) Usb device and method for charging the same
US7451257B2 (en) Universal serial bus device having logical circuit for conversive and immediate host reset operation
JP5986145B2 (en) Portable devices, cable assemblies and USB systems
EP3018556B1 (en) System for controlling peripherals connected to a docking station
WO2017113683A1 (en) Usb data line comprising extension interface and control method thereof
US20140019496A1 (en) Data transfer method
JP6132229B2 (en) Electronics
WO2023082622A1 (en) Method for designing communication module having master and slave devices compatible, and apparatus
JP2022083815A (en) Electronic device and control method
JP5143191B2 (en) System, server device, and method for using peripheral device
JP2001067156A5 (en) Computer peripherals and their control methods, imaging devices and their control methods, and computer-readable storage media
WO2013049980A1 (en) Switching device and switching method
JP4504666B2 (en) Peripheral device and reconnection program
JP2014021807A (en) Electronic device and start-up control method
EP2924955B1 (en) Apparatus, communication control system, and communication control method
US20120054382A1 (en) Method of hand-held smart device for accessing data
JP2008304987A (en) Data transfer device
US9043500B2 (en) System and method for generating a virtual PCI-type configuration space for a device
JP6938991B2 (en) Information processing equipment, programs and information processing systems
JP6586832B2 (en) Information processing device
US20080052421A1 (en) Method for use where a first and second device are connected
WO2017132864A1 (en) Method and system for usb host-client mode switching of vr device
CN114204652B (en) Power supply device and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190626

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200609

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200806

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201014

R151 Written notification of patent or utility model registration

Ref document number: 6779678

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151