JP6958110B2 - Information processing equipment and programs - Google Patents
Information processing equipment and programs Download PDFInfo
- Publication number
- JP6958110B2 JP6958110B2 JP2017161185A JP2017161185A JP6958110B2 JP 6958110 B2 JP6958110 B2 JP 6958110B2 JP 2017161185 A JP2017161185 A JP 2017161185A JP 2017161185 A JP2017161185 A JP 2017161185A JP 6958110 B2 JP6958110 B2 JP 6958110B2
- Authority
- JP
- Japan
- Prior art keywords
- communication
- unit
- function
- execution unit
- connection
- 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
Links
- 230000010365 information processing Effects 0.000 title claims description 31
- 238000004891 communication Methods 0.000 claims description 168
- 238000000034 method Methods 0.000 claims description 116
- 230000006870 function Effects 0.000 claims description 99
- 238000012545 processing Methods 0.000 description 78
- 238000006243 chemical reaction Methods 0.000 description 36
- 238000011084 recovery Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000002093 peripheral effect Effects 0.000 description 7
- 238000012546 transfer Methods 0.000 description 5
- 238000012549 training Methods 0.000 description 4
- 238000003708 edge detection Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
- Bus Control (AREA)
- Information Transfer Systems (AREA)
Description
本発明は、情報処理装置及びプログラムに関する。 The present invention relates to an information processing device and a program.
ホスト機器と周辺機器とのインターフェース規格として、USB(Universal Serial Bus)が用いられている。USBは、USB2.0に加え、USB3.0やUSB3.1が用いられている。USB3.0は、USB2.0でサポートしていたD+/D−信号経由で転送するHS(High-Speed)モード、FS(Full-Speed)モード、LS(Low-Speed)モードに加え、新たに追加されたSSTX+/- および SSRX+/-信号経由で転送するSS(Super-Speed)モードを実装している。通常、ホスト機器と周辺機器(デバイス機器)との通信は、SS/HS/FS/LSの何れかの転送モードで行われる。このとき、SSモードでの接続が確立された場合、TX/RXの信号ラインのみが使用される。一方、SSモードでの接続が確立しなかった場合はD+/D−の信号ラインが用いられ、HS/FS/LSモードでの接続が行われる。 USB (Universal Serial Bus) is used as an interface standard between host devices and peripheral devices. As USB, in addition to USB2.0, USB3.0 and USB3.1 are used. USB3.0 is newly added to the HS (High-Speed) mode, FS (Full-Speed) mode, and LS (Low-Speed) mode that transfer via the D + / D- signal supported by USB2.0. It implements SS (Super-Speed) mode that transfers via the added SSTX +/- and SSRX +/- signals. Normally, communication between the host device and the peripheral device (device device) is performed in any of SS / HS / FS / LS transfer modes. At this time, if the connection in SS mode is established, only the TX / RX signal line is used. On the other hand, if the connection in SS mode is not established, the D + / D− signal line is used and the connection is made in HS / FS / LS mode.
また、特許文献1には、ホスト機器と接続可能なデバイス機器であって、第1の規格によって規定された第1の接続部と、該第1の規格と異なる第2の規格に準拠して該第1の接続部と独立して設けられた第2の接続部とを備え、該第1の接続部と該第2の接続部とを前記ホスト機器の対応するインターフェースに同時に接続可能なインターフェース部と、第1の接続部に接続され、デバイス機器の少なくとも一部の機能を制御する制御部と、第2の接続部に接続され、第2の規格に準拠したデバイス機器と接続可能な第3の接続部とを備えたデバイス機器が記載されている。
Further,
特許文献2には、少なくとも一つの下流インターフェースが、USB3.0準拠デバイス及びUSB2.0準拠デバイスの両方に同時に接続されるように構成され、インターフェースは、下流ポートを通じてUSB3.0準拠デバイスと通信し、同時に下流ポートを通じてUSB2.0準拠デバイスと通信するために使用されるデバイスが記載されている。また、特許文献3には、USB3.0のホスト装置に接続使用されるペリフェラルデバイスとの通信速度をシームレスに切り替える技術が記載されている。
In
ところで、複数の種類の通信方法に対応し、外部装置と接続可能なインターフェースを備えており、前記複数の通信方法に対応する通信を並行して実施可能なシステムにおいて、通信の失敗により実行中の処理が全て実行できなくなることがある。
本発明は、複数の種類の通信経路を併用可能なシステムにおいて、通信経路が固定されている場合と比較して通信の失敗により処理が実行されなくなることを抑制することを目的とする。
By the way, in a system that supports a plurality of types of communication methods, has an interface that can be connected to an external device, and can perform communication corresponding to the plurality of communication methods in parallel, the system is being executed due to a communication failure. It may not be possible to execute all the processes.
An object of the present invention is to prevent processing from being executed due to a communication failure in a system in which a plurality of types of communication paths can be used together, as compared with a case where the communication paths are fixed.
本発明の請求項1に係る情報処理装置は、第1の通信方法に対応した第1接続部と、第2の通信方法に対応した第2接続部とを備えるインターフェースと、当該装置が実行する装置実行処理に含まれる第1の機能を他の装置と通信して実行する第1実行部と、他の装置と通信して第2の機能を実行する第2実行部と、前記第1接続部を介した前記第1実行部の通信が切断された場合又は該第1接続部を介した通信が確立できなかった場合、前記第2接続部を介した通信の接続先を、前記第2実行部から前記第1実行部に切り替える切替部とを有することを特徴とする。
The information processing device according to
本発明の請求項2に係る情報処理装置は、請求項1に記載の構成において、前記第1実行部で実行される処理及び前記第2実行部で実行される処理は、当該装置で実行される一の処理に関係する処理であることを特徴とする。
In the information processing apparatus according to
本発明の請求項3に係る情報処理装置は、請求項2に記載の構成において、前記第1の機能は、当該装置で実行される処理の実行に必須の処理であり、前記第2の機能は、前記必須の処理以外の処理であることを特徴とする。
In the information processing apparatus according to claim 3 of the present invention, in the configuration according to
本発明の請求項4に係る情報処理装置は、請求項1乃至3のいずれか1項に記載の構成において、前記第2実行部と通信する装置は、前記第1実行部と通信する装置であることを特徴とする。
The information processing device according to claim 4 of the present invention has the configuration according to any one of
本発明の請求項5に係る情報処理装置は、請求項1乃至4のいずれか1項に記載の構成において、前記第1接続部を介した通信が確立している場合、前記第1実行部及び前記第2実行部により、前記第1接続部を介した通信及び前記第2接続部を介した通信が並列して用いられることを特徴とする。
The information processing apparatus according to claim 5 of the present invention is the first execution unit when communication via the first connection unit is established in the configuration according to any one of
本発明の請求項6に係る情報処理装置は、請求項1乃至5のいずれか1項に記載の構成において、前記切替部は、前記第1接続部を介した前記第1実行部の通信が切断された場合、前記第2接続部を介した前記第2実行部の通信を切断した後、前記第2接続部を介した前記第1実行部の通信を確立することを特徴とする。
The information processing apparatus according to claim 6 of the present invention has the configuration according to any one of
本発明の請求項7に係る情報処理装置は、請求項1乃至6のいずれか1項に記載の構成において、前記切替部による切替がなされた場合に、前記第2の機能を停止させる制御を行う制御部を更に有することを特徴とする。
In the configuration according to any one of
本発明の請求項8に係る情報処理装置は、請求項7に記載の構成において、前記第1の機能は、前記第2の機能が中断している期間においても当該第1の機能の実行により前記装置実行処理が継続される機能であることを特徴とする。 The information processing apparatus according to claim 8 of the present invention has the configuration according to claim 7, wherein the first function is executed by executing the first function even during a period in which the second function is interrupted. It is characterized in that it is a function that the device execution process is continued.
本発明の請求項9に係る情報処理装置は、請求項1乃至8のいずれか1項に記載の構成において、前記第2実行部は、前記第1接続部を介した通信が確立された場合に、前記第2接続部を介した通信の確立処理を行うことを特徴とする。
The information processing apparatus according to claim 9 of the present invention has the configuration according to any one of
本発明の請求項10に係る情報処理装置は、請求項1乃至9のいずれか1項に記載の構成において、前記第1の通信方法は、前記第2の通信方法よりも通信速度が高速であることを特徴とする。
The information processing apparatus according to
本発明の請求項11に係る情報処理装置は、請求項10に記載の構成において、前記インターフェースは、USB3.xのSSモードに準拠した前記第1接続部と、USB2.0のHSモードに準拠した前記第2接続部とを備え、前記切替部は、前記SSモードの通信が切断された場合又は該SSモードの通信が確立できなかった場合、HSモードの通信の接続先を、前記第2実行部から前記第1実行部に切り替えることを特徴とする。
The information processing apparatus according to
本発明の請求項12に係るプログラムは、第1の通信方法に対応した第1接続部と、第2の通信方法に対応した第2接続部とを備えるインターフェースと、当該装置が実行する装置実行処理に含まれる第1の機能を他の装置と通信して実行する第1実行部と、他の装置と通信して第2の機能を実行する第2実行部とを有するコンピュータに、前記第1接続部を介した前記第1実行部の通信が切断された場合又は該第1接続部を介した通信が確立できなかった場合、前記第2接続部を介した通信の接続先を、前記第2実行部から前記第1実行部に切り替えるステップを実行させるためのプログラムであることを特徴とする。
The program according to
請求項1及び12に係る発明によれば、複数の種類の通信経路を併用可能なシステムにおいて、通信経路が固定されている場合と比較して通信の失敗により処理が実行されなくなることが抑制される。
請求項2に係る発明によれば、装置が実行する処理に関係する第1の機能及び第2の機能を実行する際に、通信の失敗により処理が実行されなくなることが抑制される。
請求項3に係る発明によれば、複数の種類の通信経路を併用可能なシステムにおいて、通信経路が固定されている場合と比較して通信の失敗により処理が実行されなくなることが抑制される。
請求項4に係る発明によれば、一つの装置と通信して第1の機能及び第2の機能を実行する装置において、通信の失敗により処理が実行されなくなることが抑制される。
請求項5に係る発明によれば、一の処理について複数の通信経路が並列して使用される場合において、通信の失敗により処理が実行されなくなることが抑制される。
請求項6に係る発明によれば、複数の種類の通信経路を併用可能なシステムにおいて、一の通信が切断されてしまった場合であっても、処理が中断してしまうことが抑制される。
請求項7に係る発明によれば、複数の種類の通信経路を併用可能なシステムにおいて、一の通信が切断されてしまった場合おける第2の機能の実行に係るリソースの消費が抑制される。
請求項8に係る発明によれば、複数の種類の通信経路を併用可能なシステムにおいて、通信経路が固定されている場合と比較して通信の失敗により処理が実行されなくなることが抑制される。
請求項9に係る発明によれば、複数の種類の通信経路を併用可能なシステムにおいて、第1接続部を介した通信が確立されなかった場合であっても、処理が実行されなくなってしまうことが抑制される。
請求項10に係る発明によれば、通信速度が異なる複数の種類の通信経路を併用可能なシステムにおいて、高速な通信方法による通信ができない場合であっても、処理が実行されなくなることが抑制される。
請求項11に係る発明によれば、USB3.xのSSモードとHSモードとを併用可能なシステムにおいて、SSモードの通信の失敗により処理が実行されなくなることが抑制される。
According to the inventions of
According to the second aspect of the present invention, when the first function and the second function related to the process executed by the apparatus are executed, it is suppressed that the process is not executed due to a communication failure.
According to the third aspect of the present invention, in a system in which a plurality of types of communication paths can be used in combination, it is possible to prevent the process from being executed due to a communication failure as compared with the case where the communication paths are fixed.
According to the invention of claim 4, in the device which communicates with one device and executes the first function and the second function, it is suppressed that the process is not executed due to the communication failure.
According to the invention of claim 5, when a plurality of communication paths are used in parallel for one process, it is possible to prevent the process from being executed due to a communication failure.
According to the invention of claim 6, in a system in which a plurality of types of communication paths can be used in combination, even if one communication is disconnected, it is possible to prevent the processing from being interrupted.
According to the invention of claim 7, in a system in which a plurality of types of communication paths can be used in combination, the consumption of resources related to the execution of the second function in the case where one communication is disconnected is suppressed.
According to the invention of claim 8, in a system in which a plurality of types of communication paths can be used in combination, it is possible to prevent the process from being executed due to a communication failure as compared with the case where the communication paths are fixed.
According to the invention of claim 9, in a system in which a plurality of types of communication paths can be used together, even if communication via the first connection portion is not established, the process will not be executed. Is suppressed.
According to the invention of
According to the invention of
[1]構成
図1は、本実施形態に係る情報処理システム1の構成を示すブロック図である。情報処理システム1は、画像処理装置10と、ユーザ端末20とを備える。画像処理装置10とユーザ端末20は、本発明に係る情報処理装置の例である。画像処理装置10は、媒体に画像を形成する画像形成処理や、媒体に形成された画像を読み取る画像読取処理等の画像処理を行う。画像処理装置10はUSBケーブル2によりユーザ端末20に接続される。USBケーブル2はUSB3.xのSSモードやUSB2.0のHSモードに準拠したケーブルである。ユーザ端末20は、例えば、スマートフォン、タブレット端末、又はノートブック型PC(Personal Computer)等の端末である。
[1] Configuration FIG. 1 is a block diagram showing a configuration of an
画像処理装置10(メイン機器)とユーザ端末20(周辺機器)とは、USBケーブル2により接続され、両者が通信することにより、画像処理等の処理を分担して実行する場合がある。例えば、画像処理装置10にプリントアウト処理が指示された場合、プリントアウトのために必要な画像処理(色空間変換処理、エッジ検出処理、等)がメイン機器と周辺機器とで分担されたり、エラー音の発生に関する処理がメイン機器と周辺機器とで分担されたりする場合がある。
The image processing device 10 (main device) and the user terminal 20 (peripheral device) are connected by a
図2は情報処理システム1の機能構成の一例を示すブロック図である。図において、画像処理装置10は、インターフェース11、第1実行部12、第2実行部13、切替部14、及び制御部15を有する。インターフェース11は、第1の通信方法に対応した第1接続部111と、第2の通信方法に対応した第2接続部112とを備える。
FIG. 2 is a block diagram showing an example of the functional configuration of the
第1実行部12は他の装置と通信して第1の機能を実行する。第1の機能は、画像処理装置10が実行する処理(装置実行処理)に含まれる機能である。第2の機能が中断している期間においても、第1の機能が実行されることにより、上記処理は続行される。
The
第2実行部13は他の装置と通信して第2の機能を実行する。この実施形態において、第1実行部12で実行される処理及び第2実行部13で実行される処理は、ひとつの装置実行処理に関係する処理であってもよい。また、第1の機能は装置実行処理の実行に必須の処理であり、第2の機能は上記必須の処理以外の処理(一例としては、オプション機能)であってもよい。例えばコピー処理が実行される場合、第1の機能は、例えば、上記処理に関係する色空間変換処理、エッジ検出処理である。第2の機能は、例えば、上記処理に関係するデバッグ機能、アラーム音やエラー音の発生機能、カードリーダー機能、キーボード制御、認証機能である。切替部14は第1接続部111を介した第1実行部12の通信が切断された場合又は第1接続部111を介した通信が確立できなかった場合、第2接続部を介した通信の接続先を、第2実行部13から第1実行部12に切り替える。制御部15は、切替部14による切替がなされた場合に、第2の機能を停止させる制御を行う。
The
ユーザ端末20は、インターフェース21、第1実行部22、第2実行部23、切替部24、及び制御部25を有する。インターフェース21は、第1の通信方法に対応した第1接続部211と、第2の通信方法に対応した第2接続部212とを備える。
The
第1実行部22は他の装置と通信して第1の機能を実行する。第2実行部23は他の装置と通信して第2の機能を実行する。切替部24は第1接続部211を介した第1実行部22の通信が切断された場合又は第1接続部211を介した通信が確立できなかった場合、第2接続部212を介した通信の接続先を、第2実行部23から第1実行部22に切り替える。制御部25は、切替部24による切替がなされた後、第2の機能を停止させる制御を行う。
The
図3は、画像処理装置10及びユーザ端末20のハードウェア構成を例示する図である。この実施形態では、画像処理装置10がUSB3.0のホスト機器であり、ユーザ端末20が周辺機器として画像処理装置10にUSB3.0により接続される。図において、USBコネクタ101及びUSBコネクタ201は、USB3.xに準拠したコネクタであり、複数のピンを備えている。USBコネクタ101及びUSBコネクタ201にUSBケーブルのコネクタが差し込まれ、このケーブルを介して画像処理装置10とユーザ端末20とでUSB3.xに準拠した通信が行われる。すなわち、USBコネクタ101及びUSBコネクタ201は、USB2.0でサポートされていた、D+/D−信号経由で転送するHSモードの通信に対応するとともに、USB3.0で新たに追加されたSSモードの通信にも対応している。
FIG. 3 is a diagram illustrating a hardware configuration of the
SSモードの通信速度(例えば、5Gb/s(実動作で約200-350Mb/s))は、HSモードの転送速度(例えば、480Mb/s(実動作で約20-30Mb/s))よりも高速である。この実施形態では、デフォルトでは、処理の実行に必須である機能(以下「メイン機能」という)においてSSモードの通信が用いられ、処理の実行に必須でない機能(以下「サブ機能」という)についてはHSモードが用いられる。 The communication speed in SS mode (for example, 5 Gb / s (about 200-350 Mb / s in actual operation)) is higher than the transfer speed in HS mode (for example, 480 Mb / s (about 20-30 Mb / s in actual operation)). It's fast. In this embodiment, by default, SS mode communication is used for functions that are essential for processing execution (hereinafter referred to as "main function"), and functions that are not essential for processing execution (hereinafter referred to as "sub-functions") are used. HS mode is used.
CPU(Central Processing Unit)102は、メモリ109に記憶されているプログラムに従いデータ処理を行う。第1ホストコントローラ103は、USB3.0に準拠した通信によりデータ処理を実行するホスト側コントローラである。第2ホストコントローラ104は、USB2.0に準拠した通信によりデータ処理を実行するホスト側コントローラである。この実施形態では、ひとつの処理が、第1ホストコントローラ103と第2ホストコントローラ104とで分担されて実行される。
The CPU (Central Processing Unit) 102 performs data processing according to a program stored in the
SS変換部105は、SSモード(第1の通信方法の一例)で伝送されるデータ信号を変換する機能を有する。第1HS変換部106及び第2HS変換部107は、HSモード(第2の通信方法の一例)で伝送されるデータ信号を変換する機能を有する。セレクタ108は、D+/D−信号ラインに設けられ、HSモードの通信の接続先を、第1HS変換部106と第2HS変換部107とで切り替える制御を行う。この実施形態では、セレクタ108はデフォルトでUSB3.0側の第1HS変換部106に接続される。
The
CPU202は、メモリ209に記憶されているプログラムに従いデータ処理を行う。第1デバイスコントローラ203は、USB3.0に準拠した通信によりデータ処理を実行するデバイス側のコントローラである。第2デバイスコントローラ204は、USB2.0に準拠した通信によりデータ処理を実行するデバイス側コントローラである。この実施形態では、ひとつの処理が、第1デバイスコントローラ203と第2デバイスコントローラ204とで分担されて実行される。
The
SS変換部205は、SSモードで伝送されるデータ信号を変換する機能を有する。第1HS変換部206及び第2HS変換部207は、HSモードで伝送されるデータ信号を変換する機能を有する。セレクタ208は、D+/D−ラインに設けられ、HSモードの通信の接続先を、第1HS変換部206と第2HS変換部207とで切り替える制御を行う。この実施形態では、セレクタ208は、予めUSB3.0側の第1HS変換部206に接続される。
The SS conversion unit 205 has a function of converting a data signal transmitted in the SS mode. The first
この例で、USBコネクタ101及びUSBコネクタ201は、図2に係るインターフェース11及びインターフェース21の例である。第1ホストコントローラ103及び第1デバイスコントローラ203は、第1実行部12及び第1実行部22の例である。第2ホストコントローラ104及び第2デバイスコントローラ204は、第2実行部13及び第2実行部23の例である。セレクタ108及びセレクタ208は、切替部14及び切替部24の例である。
In this example, the
[2]動作例
次いで、この実施形態の動作例を説明する。以下の動作例では、画像処理装置10とユーザ端末20とがUSB3.0によりデータ通信を行い、第1ホストコントローラ103、第2ホストコントローラ104、第1デバイスコントローラ203、及び第2デバイスコントローラ204が、画像処理を分担して実行する場合の動作例を説明する。具体的には、画像処理装置10において画像データをプリントアウトするプリントアウト処理が実行される場合の動作例を説明する。この動作例では、第1ホストコントローラ103と第1デバイスコントローラ203とが、プリントアウト処理の実行に必須であるメイン機能を分担して実行する。
[2] Operation Example Next, an operation example of this embodiment will be described. In the following operation example, the
メイン機能(第1の機能の例)は、プリントアウト処理に含まれる機能である。メイン機能が実行されていることにより、サブ機能が中断している期間においてもプリントアウト処理は続行される。メイン機能は例えば、画像処理(色空間変換処理、エッジ検出処理、等)、ユーザインターフェース制御(操作画面の表示・更新処理、等)、LCD表示、スイッチ検出、等であってもよい。 The main function (example of the first function) is a function included in the printout process. Since the main function is executed, the printout process is continued even during the period when the sub function is interrupted. The main functions may be, for example, image processing (color space conversion processing, edge detection processing, etc.), user interface control (display / update processing of operation screen, etc.), LCD display, switch detection, and the like.
第2ホストコントローラ104と第2デバイスコントローラ204とは、プリントアウト処理の実行に必須ではないサブ機能(第2の機能の例)を分担して実行する。サブ機能は、例えば、デバッグ機能、アラーム音やエラー音の発生機能、カードリーダー機能、キーボード制御、認証機能である。上述したように、サブ機能が中断している場合であっても、メイン処理が実行されることによりプリントアウト処理は続行される。
The
[2−1]通信確立処理
図4は、画像処理装置10が行う通信確立処理の流れを示すフローチャートである。ステップS101において、CPU102はセレクタ108でUSB3.0側(第1HS変換部106側)を接続する。ステップS102において、第1ホストコントローラ103は、VBUSによりユーザ端末20に電力を供給する制御を行う。
[2-1] Communication establishment process FIG. 4 is a flowchart showing a flow of communication establishment process performed by the
ステップS103乃至S105において、第1ホストコントローラ103は、SS変換部105を介してユーザ端末20とSSモードでの通信を確立させる。まず、ステップS103において、第1ホストコントローラ103は、SSポートの接続が検出されたかを判定する。接続が検出された場合、第1ホストコントローラ103はステップS104の処理に進む。一方、接続が検出されなかった場合、第1ホストコントローラ103はステップS120の処理に進む。
In steps S103 to S105, the
ステップS104において、第1ホストコントローラ103は、リンクトレーニングを実施する。リンクトレーニングに成功した場合、第1ホストコントローラ103はステップS105の処理に進む。一方、失敗した場合、第1ホストコントローラ103はステップS120の処理に進む。
In step S104, the
ステップS105において、第1ホストコントローラ103はポートコンフィグレーションを行う。ポートコンフィグレーションに成功した場合、第1ホストコントローラ103はステップS106の処理に進む。一方、失敗した場合、第1ホストコントローラ103はステップS120の処理に進む。
In step S105, the
ステップS106において、CPU102は、セレクタ108の接続先を、第1HS変換部106から第2HS変換部107に切り替える。ステップS107において、CPU102の制御の下、第1ホストコントローラ103は、SSモードでメイン機能の通信を開始する。
In step S106, the
また、CPU102の制御の下、ステップS108乃至ステップS110において、第2ホストコントローラ104は、HSモードでのサブ機能の通信を開始する。なお、ステップS107の処理と、ステップS108乃至S110の処理とは、第1ホストコントローラ103及び第2ホストコントローラ104により並列に実行される。まず、ステップS108において、第2ホストコントローラ104は、D+のプルアップを検出するまで待機する。このプルアップは、ユーザ端末20により後述する図5のステップS208において行われる。プルアップが検出された場合、ステップS109の処理に進む。ステップS109において、第2ホストコントローラ104はHSモードのハンドシェークを行う。ステップS110において、第2ホストコントローラ104はHSモードでサブ機能の通信を開始する。
Further, under the control of the
すなわち、ステップS107乃至ステップS110の処理により、画像処理装置10とユーザ端末20との通信では、1本のUSBケーブル2により、SSモードとHSモードとの2種類の通信経路が並列して用いられる。このとき、SSモードの通信によりメイン機能が実行され、HSモードの通信によりサブ機能が実行される。すなわち、SSモードの通信が確立している場合、SSモードの通信によるメイン機能と、HSモードの通信によるサブ機能とが並行して実行される。
That is, in the communication between the
一方、SSモードの通信の確立に失敗した場合、画像処理装置10はステップS120の処理に進む。CPU102の制御の下、ステップS120乃至ステップS122において、第1ホストコントローラ103は、HSモードでのメイン機能の通信を開始する。まず、ステップS120において、第1ホストコントローラ103は、D+のプルアップを検出するまで待機する。このプルアップは、ユーザ端末20により後述する図5のステップS220において行われる。プルアップが検出された場合、第1ホストコントローラ103はステップS121の処理に進む。
On the other hand, if the establishment of SS mode communication fails, the
ステップS121において、第1ホストコントローラ103はHSモードのハンドシェークを行う。ステップS122において、第1ホストコントローラ103はHSモードでメイン機能の通信を開始する。このとき、CPU102は、第2ホストコントローラ104におけるサブ機能の実行を停止させる。このように、ステップS120乃至S122の処理が実行される場合、画像処理装置10とユーザ端末20との通信において、HSモードによりメイン機能が実行され、サブ機能は停止される。
In step S121, the
図5は、ユーザ端末20が行う通信確立処理の流れを示すフローチャートである。ステップS201において、CPU202はセレクタ208でUSB3.0側(第1HS変換部206側)を接続する。ステップS202において、第1デバイスコントローラ203は、画像処理装置10から供給されるVBUS(図4のステップS102で供給されるVBUS)が検出されるまで待機し、検出された場合、ステップS203の処理に進む。
FIG. 5 is a flowchart showing the flow of communication establishment processing performed by the
ステップS203乃至S205において、第1デバイスコントローラ203は、SS変換部205を介して画像処理装置10とSSモードでの通信を確立させる。まず、ステップS203において、第1デバイスコントローラ203は、SSポートの接続が検出されたかを判定する。接続が検出された場合、第1デバイスコントローラ203はステップS204の処理に進む。一方、接続が検出されなかった場合、第1デバイスコントローラ203はステップS220の処理に進む。
In steps S203 to S205, the
ステップS204において、第1デバイスコントローラ203は、リンクトレーニングを実施する。リンクトレーニングに成功した場合、第1デバイスコントローラ203はステップS205の処理に進む。一方、失敗した場合、第1デバイスコントローラ203はステップS220の処理に進む。
In step S204, the
ステップS205において、第1デバイスコントローラ203はポートコンフィグレーションを行う。ポートコンフィグレーションに成功した場合、第1デバイスコントローラ203はステップS206の処理に進む。一方、失敗した場合、第1デバイスコントローラ203はステップS220の処理に進む。
In step S205, the
ステップS206において、CPU202は、セレクタ208の接続先を、第1HS変換部206から第2HS変換部207に切り替える。ステップS207において、CPU202の制御の下、第1デバイスコントローラ203は、SSモードでメイン機能の通信を開始する。
In step S206, the
また、CPU202の制御の下、ステップS208乃至ステップS210において、第2デバイスコントローラ204は、HSモードでのサブ機能の通信を開始する。なお、ステップS207の処理と、ステップS208乃至S210の処理とは、第1デバイスコントローラ203及び第2デバイスコントローラ204により並列に実行される。まず、ステップS208において、第2デバイスコントローラ204は、第2HS変換部207のD+をプルアップする。ステップS209において、第2デバイスコントローラ204は、HSモードのハンドシェークを行う。ステップS210において、第2デバイスコントローラ204はHSモードでサブ機能の通信を開始する。
Further, under the control of the
すなわち、ステップS207乃至ステップS210の処理により、画像処理装置10とユーザ端末20との通信では、1本のUSBケーブル2により、SSモードとHSモードとの2種類の通信経路が並列して用いられる。このとき、SSモードの通信によりメイン機能が実行され、HSモードの通信によりサブ機能が実行される。すなわち、SSモードの通信が確立している場合、SSモードの通信によるメイン機能と、HSモードの通信によるサブ機能とが並行して実行される。
That is, in the communication between the
一方、SSモードの通信の確立に失敗した場合、画像処理装置10はステップS220の処理に進む。CPU202の制御の下、ステップS220乃至ステップS222において、第1デバイスコントローラ203はHSモードでのメイン機能の通信を開始する。まず、ステップS220において、第1デバイスコントローラ203は、第2HS変換部207のD+をプルアップする。ステップS221において、第1デバイスコントローラ203は、HSモードのハンドシェークを行う。ステップS222において、第1デバイスコントローラ203はHSモードでのメイン機能の通信を開始する。このとき、CPU202は、第2デバイスコントローラ204におけるサブ機能の実行を停止させる。
On the other hand, if the establishment of SS mode communication fails, the
ステップS220乃至S222の処理が実行される場合、画像処理装置10とユーザ端末20との通信において、HSモードによりメイン機能が実行され、サブ機能は停止される。
When the processes of steps S220 to S222 are executed, the main function is executed in the HS mode in the communication between the
[2−2]エラー対応処理
次いで、画像処理装置10とユーザ端末20とが通信中に通信エラーが発生した場合の動作を説明する。
[2-2] Error handling process Next, an operation when a communication error occurs during communication between the
図6は、画像処理装置10が行う処理の流れを示すフローチャートである。図6に示される処理は、SSモード及びHSモードで画像処理装置10とユーザ端末20とが通信している状態において、何らかの原因によりSSモードの通信が切断され、SSモードの通信のリカバリに失敗した場合、又は、リカバリ処理が予め定められた回数以上発生した(リカバリ処理が頻発した)ことをトリガとして開始される。
FIG. 6 is a flowchart showing the flow of processing performed by the
ステップS301において、CPU102は、第2ホストコントローラ104での一連の通信が終了するまで待機する。一連の通信が終了した場合、CPU102はステップS302の処理に進む。
In step S301, the
ステップS302において、CPU102は、第2ホストコントローラ104のサブ機能を停止させる。ステップS303において、CPU102は、セレクタ108の接続先を第2HS変換部107から第1HS変換部106に切り替える。
In step S302, the
次いで、ステップS304乃至ステップS306により、HSモードの通信によるメイン機能の再接続が行われる。まず、ステップS304において、第1ホストコントローラ103は、CPU102の制御の下、D+のプルアップが検出されるまで待機する。このプルアップは、ユーザ端末20により後述する図7のステップS404で行われる。プルアップが検出されると、第1ホストコントローラ103はステップS305の処理に進む。
Then, in steps S304 to S306, the main function is reconnected by communication in HS mode. First, in step S304, the
ステップS305において、第1ホストコントローラ103はHSモードのハンドシェークを行う。ステップS306において、第1ホストコントローラ103はHSモードでのメイン機能の通信を開始する。
In step S305, the
図7は、ユーザ端末20が行う処理の流れを示すフローチャートである。図7に示される処理は、SSモード及びHSモードで画像処理装置10とユーザ端末20とが通信している状態において、何らかの原因によりSSモードの通信が切断され、SSモードの通信のリカバリに失敗した場合、又は、リカバリ処理が予め定められた回数以上発生した(リカバリ処理が頻発した)ことをトリガとして開始される。
FIG. 7 is a flowchart showing the flow of processing performed by the
ステップS401において、CPU202は、第2デバイスコントローラ204がサスペンド状態であるかを判定する。サスペンド状態であると判定された場合、CPU202はステップS402の処理をスキップしてステップS403の処理に進む。一方、サスペンド状態でないと判定された場合、CPU202はステップS402の処理に進む。
In step S401, the
ステップS402において、CPU202は、第2デバイスコントローラ204の通信エラーが発生するまで待機する。この通信エラーは、図6のステップS302により画像処理装置10のサブ機能が停止されてステップS303でHSモードの通信の接続先がセレクタ108により切り換えられることにより発生するものである。エラーの発生が検出されると(ステップS402)、CPU202はステップS403の処理に進む。
In step S402, the
ステップS403において、CPU202は、セレクタ208の接続先を第2HS変換部207から第1HS変換部206に切り替える。
In step S403, the
次いで、ステップS404乃至ステップS406により、HSモードの通信によるメイン機能の再接続が行われる。まず、ステップS404において、第1デバイスコントローラ203は、CPU202の制御の下、第1HS変換部206においてD+をプルアップする。ステップS405において、第1デバイスコントローラ203はHSモードのハンドシェークを行う。ステップS406において、第1デバイスコントローラ203はHSモードでのメイン機能の通信を開始する。
Then, in steps S404 to S406, the main function is reconnected by communication in HS mode. First, in step S404, the
以上説明したようにこの実施形態では、メイン機能を実行する第1ホストコントローラ103及び第1デバイスコントローラ203においてSSモードでの通信が確立した場合に、D+/D−ラインが解放され、他のUSBコントローラ(第2ホストコントローラ104及び第2デバイスコントローラ204)がサブ機能の通信を行う。一方、SSモードの通信が確立しなかった場合、サブ機能を停止させる機能制限が行われ、HSモードでメイン機能の通信が行われる。これにより、ボード間の通信装置内の配線を3.0のケーブル1本で済ませることができ、かつ、ボード間の通信が容易になる。また、SSモードの通信の確立に失敗した場合であっても、メイン機能が停止してしまうことが抑制される。なお、サブ機能が停止してしまった場合、例えばエラー音が発生しなくなる等の事象は発生するものの、サブ機能が停止したとしても、一連の処理の実行が停止してしまうことはない。
As described above, in this embodiment, when communication in SS mode is established in the
また、この実施形態では、SSモードでの通信でエラーが発生しリカバリに失敗した場合、又はリカバリ処理が頻発する場合は、CPU102は、第2ホストコントローラ104のHSモードの通信について、区切りのよいところまで転送を行った後、サブ機能を停止させ、セレクタ108の接続先を第2HS変換部107から第1HS変換部106に切り替える。こうすることでデバイス側(ユーザ端末20)に通信エラーを発生させる。デバイス側(ユーザ端末20)は通信エラーの検出により、セレクタ208の接続先を第2HS変換部207から第1HS変換部206に切り替えた後、HSモードで再接続を行い、機能制限モード(サブ機能が無効であるモード)で通信を再開させる。これにより、SSモードの通信が途切れてしまった場合であっても、メイン機能が停止してしまうことが抑制される。
Further, in this embodiment, when an error occurs in the communication in the SS mode and the recovery fails, or when the recovery process occurs frequently, the
[3]変形例
上述した実施形態は、本発明の実施の一例に過ぎず、以下のように変形させてもよい。また、上述した実施形態及び以下に示す各変形例は、必要に応じて組み合わせて実施してもよい。
[3] Modifications The above-described embodiment is merely an example of the embodiment of the present invention, and may be modified as follows. In addition, the above-described embodiment and each of the following modifications may be combined and implemented as necessary.
(1)上述の実施形態では、セレクタ108及びセレクタ208においてHSモードの接続先を切り替えるための通信の確立/失敗をCPU102及びCPU202が監視した。この監視はCPU102及びCPU202が行ってもよく、また、第1ホストコントローラ103及び/又は第1デバイスコントローラ203からのステータス信号を監視する専用のハードウェアにより行われてもよい。
(1) In the above-described embodiment, the
(2)画像処理装置10及びユーザ端末20のハードウェア構成は、上述したものに限られない。例えば、図8に例示する構成であってもよい。
(2) The hardware configurations of the
図8は、画像処理装置及びユーザ端末の他のハードウェア構成を例示するブロック図である。図8に示す画像処理装置10Aが上述した実施形態に係る図3の画像処理装置10と異なる点は、セレクタ108Aの実装上の位置が異なる点である。また、図8に示すユーザ端末20Aが上述した実施形態に係る図3のユーザ端末20と異なる点は、セレクタ208Aの実装上の位置が異なる点である。
FIG. 8 is a block diagram illustrating other hardware configurations of the image processing device and the user terminal. The image processing device 10A shown in FIG. 8 is different from the
図8において、セレクタ108Aは、CPU102の制御の下、HS変換部106Aを介したHSモードの通信の接続先を、第1ホストコントローラ103と第2ホストコントローラ104とで切り替える。セレクタ208Aは、CPU202の制御の下、HS変換部206Aを介したHSモードの通信の接続先を、第1デバイスコントローラ203と第2デバイスコントローラ204とで切り替える。
In FIG. 8, the
図9は、画像処理装置及びユーザ端末の他のハードウェア構成を例示するブロック図である。図9に示す画像処理装置10Bが上述した実施形態に係る図3の画像処理装置10と異なる点は、第2ホストコントローラ104に代えて、第2デバイスコントローラ104Bを備えている点である。また、図9に示すユーザ端末20Bが上述した実施形態に係る図3のユーザ端末20と異なる点は、第2デバイスコントローラ204に代えて、第2ホストコントローラ204Bを備えている点である。すなわち、図9の例では、USB2.0のホストコントローラとデバイスコントローラの実装位置が入れ替わっている。
FIG. 9 is a block diagram illustrating other hardware configurations of the image processing device and the user terminal. The image processing device 10B shown in FIG. 9 differs from the
(3)図3、図8及び図9に例示される各構成要素は、ハードウェアにより構成されたが、各構成要素の少なくとも一部が、プロセッサがメモリに記憶されたコンピュータプログラムを読み出して実行することによりソフトウェアとして実現されてもよい。 (3) Each component illustrated in FIGS. 3, 8 and 9 is composed of hardware, but at least a part of each component reads and executes a computer program stored in memory by a processor. It may be realized as software by doing so.
(4)上述した実施形態において、画像処理装置10のCPU102及びユーザ端末20のCPU202により実行されるプログラムは、インターネット等の通信回線を介してダウンロードされてもよい。また、これらのプログラムは、磁気記録媒体(磁気テープ、磁気ディスク等)、光記録媒体(光ディスク等)、光磁気記録媒体、半導体メモリ等の、コンピュータが読取可能な記録媒体に記録した状態で提供されてもよい。
(4) In the above-described embodiment, the program executed by the
1…情報処理システム、2…USBケーブル、10…画像処理装置、11…インターフェース、12…第1実行部、13…第2実行部、14…切替部、20…ユーザ端末、21…インターフェース、22…第1実行部、23…第2実行部、24…切替部、111…第1接続部、112…第2接続部、211…第1接続部、212…第2接続部。 1 ... Information processing system, 2 ... USB cable, 10 ... Image processing device, 11 ... Interface, 12 ... First execution unit, 13 ... Second execution unit, 14 ... Switching unit, 20 ... User terminal, 21 ... Interface, 22 ... 1st execution unit, 23 ... 2nd execution unit, 24 ... switching unit, 111 ... first connection unit, 112 ... second connection unit, 211 ... first connection unit, 212 ... second connection unit.
Claims (12)
当該装置が実行する装置実行処理に含まれる第1の機能を他の装置と通信して実行する第1実行部と、
他の装置と通信して第2の機能を前記第1実行部が実行する第1の機能と並列して実行する第2実行部と、
前記第1接続部を介した前記第1実行部の通信が切断された場合又は該第1接続部を介した通信が確立できなかった場合、前記第2実行部は、前記第2の機能を停止させ、前記第2接続部を介した通信の接続先を、前記第2実行部から前記第1実行部に切り替える切替部と
を有する情報処理装置。 An interface including a first connection unit corresponding to the first communication method and a second connection unit corresponding to the second communication method.
A first execution unit that communicates with another device to execute the first function included in the device execution process executed by the device, and
A second execution unit that communicates with other devices and executes the second function in parallel with the first function executed by the first execution unit.
When the communication of the first execution unit via the first connection unit is disconnected or the communication via the first connection unit cannot be established, the second execution unit performs the second function. An information processing device having a switching unit that stops and switches the connection destination of communication via the second connection unit from the second execution unit to the first execution unit.
請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the process executed by the first execution unit and the process executed by the second execution unit are processes related to one process executed by the device.
前記第2の機能は、前記必須の処理以外の処理である
請求項2に記載の情報処理装置。 The first function is essential for executing the process executed by the device.
The information processing apparatus according to claim 2, wherein the second function is a process other than the essential process.
請求項1乃至3のいずれか1項に記載の情報処理装置。 The information processing device according to any one of claims 1 to 3, wherein the device that communicates with the second execution unit is a device that communicates with the first execution unit.
請求項1乃至4のいずれか1項に記載の情報処理装置。 When communication via the first connection unit is established, communication via the first connection unit and communication via the second connection unit are performed in parallel by the first execution unit and the second execution unit. The information processing apparatus according to any one of claims 1 to 4.
請求項1乃至5のいずれか1項に記載の情報処理装置。 When the communication of the first execution unit via the first connection unit is disconnected, the switching unit disconnects the communication of the second execution unit via the second connection unit, and then connects the second execution unit. The information processing apparatus according to any one of claims 1 to 5, which establishes communication of the first execution unit via the unit.
を更に有する請求項1乃至6のいずれか1項に記載の情報処理装置。 The information processing apparatus according to any one of claims 1 to 6, further comprising a control unit that controls to stop the second function when switching is performed by the switching unit.
請求項7に記載の情報処理装置。 The information processing device according to claim 7, wherein the first function is a function in which the device execution process is continued by executing the first function even during a period in which the second function is interrupted.
請求項1乃至8のいずれか1項に記載の情報処理装置。 The second execution unit according to any one of claims 1 to 8, which performs a process of establishing communication via the second connection unit when communication via the first connection unit is established. Information processing device.
請求項1乃至9のいずれか1項に記載の情報処理装置。 The information processing apparatus according to any one of claims 1 to 9, wherein the first communication method has a higher communication speed than the second communication method.
備え、
前記切替部は、前記SSモードの通信が切断された場合又は該SSモードの通信が確立できなかった場合、HSモードの通信の接続先を、前記第2実行部から前記第1実行部に切り替える
請求項10に記載の情報処理装置。 The interface is USB3. The first connection part conforming to the SS (Super-Speed) mode of x and the second connection part conforming to the HS (High-Speed) mode of USB2.0 are provided.
When the SS mode communication is disconnected or the SS mode communication cannot be established, the switching unit switches the connection destination of the HS mode communication from the second execution unit to the first execution unit. The information processing apparatus according to claim 10.
前記第1接続部を介した前記第1実行部の通信が切断された場合又は該第1接続部を介した通信が確立できなかった場合、前記第2実行部は、前記第2の機能を停止させ、前記第2接続部を介した通信の接続先を、前記第2実行部から前記第1実行部に切り替えるステップ
を実行させるためのプログラム。 An interface including a first connection unit corresponding to the first communication method and a second connection unit corresponding to the second communication method, and other functions of the first function included in the device execution process executed by the device. It has a first execution unit that communicates with a device and executes it, and a second execution unit that communicates with another device and executes a second function in parallel with the first function executed by the first execution unit. On the computer
When the communication of the first execution unit via the first connection unit is disconnected or the communication via the first connection unit cannot be established, the second execution unit performs the second function. A program for stopping and executing a step of switching the connection destination of communication via the second connection unit from the second execution unit to the first execution unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017161185A JP6958110B2 (en) | 2017-08-24 | 2017-08-24 | Information processing equipment and programs |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017161185A JP6958110B2 (en) | 2017-08-24 | 2017-08-24 | Information processing equipment and programs |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2019040341A JP2019040341A (en) | 2019-03-14 |
| JP6958110B2 true JP6958110B2 (en) | 2021-11-02 |
Family
ID=65727569
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017161185A Active JP6958110B2 (en) | 2017-08-24 | 2017-08-24 | Information processing equipment and programs |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6958110B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5257107B2 (en) * | 2008-02-14 | 2013-08-07 | 日本電気株式会社 | COMMUNICATION SYSTEM, NODE DEVICE, COMMUNICATION METHOD, AND PROGRAM |
| JP2012058887A (en) * | 2010-09-07 | 2012-03-22 | Buffalo Inc | Device equipment |
-
2017
- 2017-08-24 JP JP2017161185A patent/JP6958110B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2019040341A (en) | 2019-03-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6600739B1 (en) | Method and apparatus for switching among a plurality of universal serial bus host devices | |
| TWI544337B (en) | Dual-operating-system architecture for sharing usb devices, and method for sharing usb devices in a dual-operating-system architecture | |
| US20060056401A1 (en) | Peripheral sharing USB hub | |
| US6934774B1 (en) | Method and system for reliable device configuration in a computer system | |
| CN107547234B (en) | A method and device for managing active boards and standby boards | |
| CN101354614B (en) | Resource sharing device and its control method | |
| CN110419035B (en) | USB host to host automatic switching | |
| US7945711B2 (en) | Appparatus and method for controlling power to USB device | |
| CN107391419B (en) | Support general sequence busbar concentrator of many host computers and automobile-used host computer | |
| US6654843B1 (en) | Hot swapping | |
| JP4839484B2 (en) | Bus connection device, bus connection method, and bus connection program | |
| CN107038137A (en) | A kind of device and method of hot plug | |
| CN112799985B (en) | USB interface control method, USB control circuit and main board of intelligent network connected equipment | |
| CN102457392B (en) | Method of Sharing Baseboard Management Controller | |
| JP2004102716A (en) | Electronic device having a serial interface | |
| JP5771927B2 (en) | COMMUNICATION DEVICE, COMMUNICATION UNIT, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PROGRAM | |
| JP6958110B2 (en) | Information processing equipment and programs | |
| JP5492844B2 (en) | Interface connection method and computer | |
| CN105893296B (en) | A kind of transmitting device and its method of data information | |
| WO2009145098A1 (en) | I/o connection system, method and program | |
| EP3433702B1 (en) | Computing devices with hot swapping prediction circuits | |
| JP2021101293A (en) | Information processing apparatus | |
| US20170270021A1 (en) | Repair of failed firmware through an unmodified dual-role communication port | |
| JP5743484B2 (en) | COMMUNICATION CONTROL DEVICE AND ITS CONTROL METHOD | |
| JP2009205561A (en) | Usb connection device, and method of vbus output control in usb connection device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200717 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20210521 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20210525 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210721 |
|
| 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: 20210907 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210920 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6958110 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |