Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6958110B2 - Information processing equipment and programs - Google Patents
[go: Go Back, main page]

JP6958110B2 - Information processing equipment and programs - Google Patents

Information processing equipment and programs Download PDF

Info

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
Application number
JP2017161185A
Other languages
Japanese (ja)
Other versions
JP2019040341A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2017161185A priority Critical patent/JP6958110B2/en
Publication of JP2019040341A publication Critical patent/JP2019040341A/en
Application granted granted Critical
Publication of JP6958110B2 publication Critical patent/JP6958110B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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, Patent Document 1 describes a device device that can be connected to a host device in accordance with a first connection portion defined by the first standard and a second standard different from the first standard. An interface including the first connection portion and a second connection portion provided independently, and the first connection portion and the second connection portion can be simultaneously connected to the corresponding interface of the host device. A second unit that is connected to a unit, a control unit that is connected to a first connection unit and controls at least a part of the functions of the device equipment, and a second connection unit that is connected to a second connection unit and can be connected to a device device conforming to the second standard. A device having a connection portion of 3 is described.

特許文献2には、少なくとも一つの下流インターフェースが、USB3.0準拠デバイス及びUSB2.0準拠デバイスの両方に同時に接続されるように構成され、インターフェースは、下流ポートを通じてUSB3.0準拠デバイスと通信し、同時に下流ポートを通じてUSB2.0準拠デバイスと通信するために使用されるデバイスが記載されている。また、特許文献3には、USB3.0のホスト装置に接続使用されるペリフェラルデバイスとの通信速度をシームレスに切り替える技術が記載されている。 In Patent Document 2, at least one downstream interface is configured to be connected to both a USB3.0 compliant device and a USB2.0 compliant device at the same time, and the interface communicates with the USB3.0 compliant device through the downstream port. At the same time, devices used to communicate with USB 2.0 compliant devices through downstream ports are described. Further, Patent Document 3 describes a technique for seamlessly switching the communication speed with a peripheral device used for connecting to a USB3.0 host device.

特開2012−58887号公報Japanese Unexamined Patent Publication No. 2012-58887 特表2013−546051号公報Japanese Patent Application Laid-Open No. 2013-546051 特開2014−21821号公報Japanese Unexamined Patent Publication No. 2014-21821

ところで、複数の種類の通信方法に対応し、外部装置と接続可能なインターフェースを備えており、前記複数の通信方法に対応する通信を並行して実施可能なシステムにおいて、通信の失敗により実行中の処理が全て実行できなくなることがある。
本発明は、複数の種類の通信経路を併用可能なシステムにおいて、通信経路が固定されている場合と比較して通信の失敗により処理が実行されなくなることを抑制することを目的とする。
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 claim 1 of the present invention is executed by the device and an interface including a first connection unit corresponding to the first communication method and a second connection unit corresponding to the second communication method. The first execution unit that communicates with another device to execute the first function included in the device execution process, the second execution unit that communicates with the other device to execute the second function, and the first connection. When the communication of the first execution unit via the unit is disconnected or the communication via the first connection unit cannot be established, the connection destination of the communication via the second connection unit is set to the second connection destination. It is characterized by having a switching unit for switching from the execution unit to the first execution unit.

本発明の請求項2に係る情報処理装置は、請求項1に記載の構成において、前記第1実行部で実行される処理及び前記第2実行部で実行される処理は、当該装置で実行される一の処理に関係する処理であることを特徴とする。 In the information processing apparatus according to claim 2 of the present invention, in the configuration according to claim 1, the process executed by the first execution unit and the process executed by the second execution unit are executed by the device. It is characterized in that it is a process related to one process.

本発明の請求項3に係る情報処理装置は、請求項2に記載の構成において、前記第1の機能は、当該装置で実行される処理の実行に必須の処理であり、前記第2の機能は、前記必須の処理以外の処理であることを特徴とする。 In the information processing apparatus according to claim 3 of the present invention, in the configuration according to claim 2, the first function is an essential process for executing the process executed by the device, and the second function is the second function. Is a process other than the essential process.

本発明の請求項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 claims 1 to 3, wherein the device that communicates with the second execution unit is a device that communicates with the first execution unit. It is characterized by being.

本発明の請求項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 claims 1 to 4. The second execution unit is characterized in that communication via the first connection unit and communication via the second connection unit are used in parallel.

本発明の請求項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 claims 1 to 5, wherein the switching unit communicates with the first execution unit via the first connection unit. When disconnected, the communication of the second execution unit via the second connection unit is disconnected, and then the communication of the first execution unit via the second connection unit is established.

本発明の請求項7に係る情報処理装置は、請求項1乃至6のいずれか1項に記載の構成において、前記切替部による切替がなされた場合に、前記第2の機能を停止させる制御を行う制御部を更に有することを特徴とする。 In the configuration according to any one of claims 1 to 6, the information processing apparatus according to claim 7 of the present invention controls to stop the second function when switching is performed by the switching unit. It is characterized by further having a control unit to perform the operation.

本発明の請求項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 claims 1 to 8, wherein the second execution unit establishes communication via the first connection unit. In addition, it is characterized in that the process of establishing communication via the second connection portion is performed.

本発明の請求項10に係る情報処理装置は、請求項1乃至9のいずれか1項に記載の構成において、前記第1の通信方法は、前記第2の通信方法よりも通信速度が高速であることを特徴とする。 The information processing apparatus according to claim 10 of the present invention has the configuration according to any one of claims 1 to 9, wherein the first communication method has a higher communication speed than the second communication method. It is characterized by being.

本発明の請求項11に係る情報処理装置は、請求項10に記載の構成において、前記インターフェースは、USB3.xのSSモードに準拠した前記第1接続部と、USB2.0のHSモードに準拠した前記第2接続部とを備え、前記切替部は、前記SSモードの通信が切断された場合又は該SSモードの通信が確立できなかった場合、HSモードの通信の接続先を、前記第2実行部から前記第1実行部に切り替えることを特徴とする。 The information processing apparatus according to claim 11 of the present invention has the configuration according to claim 10, wherein the interface is USB 3. The first connection unit compliant with the SS mode of x and the second connection unit compliant with the HS mode of USB 2.0 are provided, and the switching unit is used when communication in the SS mode is disconnected or the SS. When the mode communication cannot be established, the connection destination of the HS mode communication is switched from the second execution unit to the first execution unit.

本発明の請求項12に係るプログラムは、第1の通信方法に対応した第1接続部と、第2の通信方法に対応した第2接続部とを備えるインターフェースと、当該装置が実行する装置実行処理に含まれる第1の機能を他の装置と通信して実行する第1実行部と、他の装置と通信して第2の機能を実行する第2実行部とを有するコンピュータに、前記第1接続部を介した前記第1実行部の通信が切断された場合又は該第1接続部を介した通信が確立できなかった場合、前記第2接続部を介した通信の接続先を、前記第2実行部から前記第1実行部に切り替えるステップを実行させるためのプログラムであることを特徴とする。 The program according to claim 12 of the present invention includes 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 device execution executed by the device. A computer having a first execution unit that communicates with another device to execute a first function included in the process and a second execution unit that communicates with another device to execute a second function. When the communication of the first execution unit via the 1 connection unit is disconnected or the communication via the first connection unit cannot be established, the connection destination of the communication via the second connection unit is set to the above. It is a program for executing a step of switching from the second execution unit to the first execution unit.

請求項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 claims 1 and 12, in a system in which a plurality of types of communication paths can be used together, it is suppressed that the process is not executed due to a communication failure as compared with the case where the communication paths are fixed. NS.
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 claim 10, in a system in which a plurality of types of communication paths having different communication speeds can be used together, it is possible to prevent the processing from being executed even when communication by a high-speed communication method is not possible. NS.
According to the invention of claim 11, USB 3. In a system in which the SS mode and the HS mode of x can be used together, it is suppressed that the process is not executed due to the communication failure in the SS mode.

情報処理システムの構成を例示する図Diagram illustrating the configuration of an information processing system 情報処理システムの機能構成を例示する図Diagram illustrating the functional configuration of an information processing system 画像処理装置及びユーザ端末のハードウェア構成を例示する図The figure which illustrates the hardware configuration of an image processing apparatus and a user terminal 画像処理装置が行う処理の流れを例示するフローチャートA flowchart illustrating the flow of processing performed by the image processing apparatus ユーザ端末が行う処理の流れを例示するフローチャートFlowchart exemplifying the flow of processing performed by the user terminal 画像処理装置が行う処理の流れを例示するフローチャートA flowchart illustrating the flow of processing performed by the image processing apparatus ユーザ端末が行う処理の流れを例示するフローチャートFlowchart exemplifying the flow of processing performed by the user terminal 画像処理装置及びユーザ端末のハードウェア構成を例示する図The figure which illustrates the hardware configuration of an image processing apparatus and a user terminal 画像処理装置及びユーザ端末のハードウェア構成を例示する図The figure which illustrates the hardware configuration of an image processing apparatus and a user terminal

[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 information processing system 1 according to the present embodiment. The information processing system 1 includes an image processing device 10 and a user terminal 20. The image processing device 10 and the user terminal 20 are examples of the information processing device according to the present invention. The image processing device 10 performs image processing such as an image forming process for forming an image on a medium and an image reading process for reading an image formed on the medium. The image processing device 10 is connected to the user terminal 20 by the USB cable 2. USB cable 2 is USB3. It is a cable that conforms to the SS mode of x and the HS mode of USB 2.0. The user terminal 20 is, for example, a terminal such as a smartphone, a tablet terminal, or a notebook type PC (Personal Computer).

画像処理装置10(メイン機器)とユーザ端末20(周辺機器)とは、USBケーブル2により接続され、両者が通信することにより、画像処理等の処理を分担して実行する場合がある。例えば、画像処理装置10にプリントアウト処理が指示された場合、プリントアウトのために必要な画像処理(色空間変換処理、エッジ検出処理、等)がメイン機器と周辺機器とで分担されたり、エラー音の発生に関する処理がメイン機器と周辺機器とで分担されたりする場合がある。 The image processing device 10 (main device) and the user terminal 20 (peripheral device) are connected by a USB cable 2, and when both communicate with each other, processing such as image processing may be shared and executed. For example, when the image processing device 10 is instructed to perform printout processing, the image processing (color space conversion processing, edge detection processing, etc.) required for printout may be shared between the main device and peripheral devices, or an error may occur. Processing related to sound generation may be shared between the main device and peripheral devices.

図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 information processing system 1. In the figure, the image processing device 10 includes an interface 11, a first execution unit 12, a second execution unit 13, a switching unit 14, and a control unit 15. The interface 11 includes a first connection unit 111 corresponding to the first communication method and a second connection unit 112 corresponding to the second communication method.

第1実行部12は他の装置と通信して第1の機能を実行する。第1の機能は、画像処理装置10が実行する処理(装置実行処理)に含まれる機能である。第2の機能が中断している期間においても、第1の機能が実行されることにより、上記処理は続行される。 The first execution unit 12 communicates with another device to execute the first function. The first function is a function included in the process (device execution process) executed by the image processing device 10. Even during the period when the second function is interrupted, the above processing is continued by executing the first function.

第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 second execution unit 13 communicates with another device to execute the second function. In this embodiment, the process executed by the first execution unit 12 and the process executed by the second execution unit 13 may be processes related to one device execution process. Further, the first function is a process essential for executing the device execution process, and the second function may be a process other than the above essential process (for example, an optional function). For example, when the copy process is executed, the first function is, for example, a color space conversion process and an edge detection process related to the above process. The second function is, for example, a debugging function related to the above processing, an alarm sound or error sound generation function, a card reader function, a keyboard control, and an authentication function. When the communication of the first execution unit 12 via the first connection unit 111 is disconnected or the communication via the first connection unit 111 cannot be established, the switching unit 14 transmits the communication via the second connection unit. The connection destination is switched from the second execution unit 13 to the first execution unit 12. The control unit 15 controls to stop the second function when the switching unit 14 switches.

ユーザ端末20は、インターフェース21、第1実行部22、第2実行部23、切替部24、及び制御部25を有する。インターフェース21は、第1の通信方法に対応した第1接続部211と、第2の通信方法に対応した第2接続部212とを備える。 The user terminal 20 has an interface 21, a first execution unit 22, a second execution unit 23, a switching unit 24, and a control unit 25. The interface 21 includes a first connection unit 211 corresponding to the first communication method and a second connection unit 212 corresponding to the second communication method.

第1実行部22は他の装置と通信して第1の機能を実行する。第2実行部23は他の装置と通信して第2の機能を実行する。切替部24は第1接続部211を介した第1実行部22の通信が切断された場合又は第1接続部211を介した通信が確立できなかった場合、第2接続部212を介した通信の接続先を、第2実行部23から第1実行部22に切り替える。制御部25は、切替部24による切替がなされた後、第2の機能を停止させる制御を行う。 The first execution unit 22 communicates with another device to execute the first function. The second execution unit 23 communicates with another device to execute the second function. When the communication of the first execution unit 22 via the first connection unit 211 is disconnected or the communication via the first connection unit 211 cannot be established, the switching unit 24 communicates via the second connection unit 212. The connection destination of is switched from the second execution unit 23 to the first execution unit 22. The control unit 25 controls to stop the second function after the switching by the switching unit 24.

図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 image processing device 10 and the user terminal 20. In this embodiment, the image processing device 10 is a USB3.0 host device, and the user terminal 20 is connected to the image processing device 10 as a peripheral device by USB3.0. In the figure, the USB connector 101 and the USB connector 201 are referred to as USB3. It is an x-compliant connector and has a plurality of pins. A USB cable connector is inserted into the USB connector 101 and the USB connector 201, and the image processing device 10 and the user terminal 20 connect the USB 3. Communication conforming to x is performed. That is, the USB connector 101 and the USB connector 201 correspond to the HS mode communication transferred via the D + / D- signal, which was supported by USB 2.0, and the SS mode newly added by USB 3.0. It also supports communication.

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 memory 109. The first host controller 103 is a host-side controller that executes data processing by communication conforming to USB3.0. The second host controller 104 is a host-side controller that executes data processing by communication conforming to USB 2.0. In this embodiment, one process is shared and executed by the first host controller 103 and the second host controller 104.

SS変換部105は、SSモード(第1の通信方法の一例)で伝送されるデータ信号を変換する機能を有する。第1HS変換部106及び第2HS変換部107は、HSモード(第2の通信方法の一例)で伝送されるデータ信号を変換する機能を有する。セレクタ108は、D+/D−信号ラインに設けられ、HSモードの通信の接続先を、第1HS変換部106と第2HS変換部107とで切り替える制御を行う。この実施形態では、セレクタ108はデフォルトでUSB3.0側の第1HS変換部106に接続される。 The SS conversion unit 105 has a function of converting a data signal transmitted in the SS mode (an example of the first communication method). The first HS conversion unit 106 and the second HS conversion unit 107 have a function of converting a data signal transmitted in the HS mode (an example of the second communication method). The selector 108 is provided on the D + / D- signal line and controls the connection destination of the HS mode communication between the first HS conversion unit 106 and the second HS conversion unit 107. In this embodiment, the selector 108 is connected to the first HS conversion unit 106 on the USB3.0 side by default.

CPU202は、メモリ209に記憶されているプログラムに従いデータ処理を行う。第1デバイスコントローラ203は、USB3.0に準拠した通信によりデータ処理を実行するデバイス側のコントローラである。第2デバイスコントローラ204は、USB2.0に準拠した通信によりデータ処理を実行するデバイス側コントローラである。この実施形態では、ひとつの処理が、第1デバイスコントローラ203と第2デバイスコントローラ204とで分担されて実行される。 The CPU 202 performs data processing according to the program stored in the memory 209. The first device controller 203 is a controller on the device side that executes data processing by communication conforming to USB3.0. The second device controller 204 is a device-side controller that executes data processing by communication conforming to USB 2.0. In this embodiment, one process is shared and executed by the first device controller 203 and the second device controller 204.

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 HS conversion unit 206 and the second HS conversion unit 207 have a function of converting a data signal transmitted in the HS mode. The selector 208 is provided on the D + / D-line and controls the connection destination of the HS mode communication between the first HS conversion unit 206 and the second HS conversion unit 207. In this embodiment, the selector 208 is connected in advance to the first HS conversion unit 206 on the USB3.0 side.

この例で、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 USB connector 101 and the USB connector 201 are examples of the interface 11 and the interface 21 according to FIG. The first host controller 103 and the first device controller 203 are examples of the first execution unit 12 and the first execution unit 22. The second host controller 104 and the second device controller 204 are examples of the second execution unit 13 and the second execution unit 23. The selector 108 and the selector 208 are examples of the switching unit 14 and the switching unit 24.

[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 image processing device 10 and the user terminal 20 perform data communication by USB3.0, and the first host controller 103, the second host controller 104, the first device controller 203, and the second device controller 204 perform data communication. , An operation example when the image processing is shared and executed will be described. Specifically, an operation example when the printout process for printing out the image data is executed in the image processing apparatus 10 will be described. In this operation example, the first host controller 103 and the first device controller 203 share and execute the main functions that are indispensable for executing the printout process.

メイン機能(第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 second host controller 104 and the second device controller 204 share and execute a sub-function (example of the second function) that is not essential for executing the printout process. The sub-functions are, for example, a debug function, an alarm sound or error sound generation function, a card reader function, a keyboard control, and an authentication function. As described above, even if the sub-function is interrupted, the printout process is continued by executing the main process.

[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 image processing device 10. In step S101, the CPU 102 connects the USB3.0 side (first HS conversion unit 106 side) with the selector 108. In step S102, the first host controller 103 controls to supply electric power to the user terminal 20 by VBUS.

ステップS103乃至S105において、第1ホストコントローラ103は、SS変換部105を介してユーザ端末20とSSモードでの通信を確立させる。まず、ステップS103において、第1ホストコントローラ103は、SSポートの接続が検出されたかを判定する。接続が検出された場合、第1ホストコントローラ103はステップS104の処理に進む。一方、接続が検出されなかった場合、第1ホストコントローラ103はステップS120の処理に進む。 In steps S103 to S105, the first host controller 103 establishes communication with the user terminal 20 in SS mode via the SS conversion unit 105. First, in step S103, the first host controller 103 determines whether or not the SS port connection has been detected. If the connection is detected, the first host controller 103 proceeds to the process of step S104. On the other hand, if the connection is not detected, the first host controller 103 proceeds to the process of step S120.

ステップS104において、第1ホストコントローラ103は、リンクトレーニングを実施する。リンクトレーニングに成功した場合、第1ホストコントローラ103はステップS105の処理に進む。一方、失敗した場合、第1ホストコントローラ103はステップS120の処理に進む。 In step S104, the first host controller 103 performs link training. If the link training is successful, the first host controller 103 proceeds to the process of step S105. On the other hand, if it fails, the first host controller 103 proceeds to the process of step S120.

ステップS105において、第1ホストコントローラ103はポートコンフィグレーションを行う。ポートコンフィグレーションに成功した場合、第1ホストコントローラ103はステップS106の処理に進む。一方、失敗した場合、第1ホストコントローラ103はステップS120の処理に進む。 In step S105, the first host controller 103 performs port configuration. If the port configuration is successful, the first host controller 103 proceeds to the process of step S106. On the other hand, if it fails, the first host controller 103 proceeds to the process of step S120.

ステップS106において、CPU102は、セレクタ108の接続先を、第1HS変換部106から第2HS変換部107に切り替える。ステップS107において、CPU102の制御の下、第1ホストコントローラ103は、SSモードでメイン機能の通信を開始する。 In step S106, the CPU 102 switches the connection destination of the selector 108 from the first HS conversion unit 106 to the second HS conversion unit 107. In step S107, under the control of the CPU 102, the first host controller 103 starts the communication of the main function in the SS mode.

また、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 CPU 102, in steps S108 to S110, the second host controller 104 starts communication of the sub-function in the HS mode. The process of step S107 and the processes of steps S108 to S110 are executed in parallel by the first host controller 103 and the second host controller 104. First, in step S108, the second host controller 104 waits until it detects a D + pull-up. This pull-up is performed by the user terminal 20 in step S208 of FIG. 5 described later. If a pull-up is detected, the process proceeds to step S109. In step S109, the second host controller 104 performs an HS mode handshake. In step S110, the second host controller 104 starts communication of the sub-function in HS mode.

すなわち、ステップS107乃至ステップS110の処理により、画像処理装置10とユーザ端末20との通信では、1本のUSBケーブル2により、SSモードとHSモードとの2種類の通信経路が並列して用いられる。このとき、SSモードの通信によりメイン機能が実行され、HSモードの通信によりサブ機能が実行される。すなわち、SSモードの通信が確立している場合、SSモードの通信によるメイン機能と、HSモードの通信によるサブ機能とが並行して実行される。 That is, in the communication between the image processing device 10 and the user terminal 20 by the processing of steps S107 to S110, two types of communication paths, SS mode and HS mode, are used in parallel by one USB cable 2. .. At this time, the main function is executed by the communication in the SS mode, and the sub function is executed by the communication in the HS mode. That is, when SS mode communication is established, the main function by SS mode communication and the sub function by HS mode communication are executed in parallel.

一方、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 image processing device 10 proceeds to the process of step S120. Under the control of the CPU 102, in steps S120 to S122, the first host controller 103 starts communication of the main function in the HS mode. First, in step S120, the first host controller 103 waits until it detects a D + pull-up. This pull-up is performed by the user terminal 20 in step S220 of FIG. 5, which will be described later. When the pull-up is detected, the first host controller 103 proceeds to the process of step S121.

ステップS121において、第1ホストコントローラ103はHSモードのハンドシェークを行う。ステップS122において、第1ホストコントローラ103はHSモードでメイン機能の通信を開始する。このとき、CPU102は、第2ホストコントローラ104におけるサブ機能の実行を停止させる。このように、ステップS120乃至S122の処理が実行される場合、画像処理装置10とユーザ端末20との通信において、HSモードによりメイン機能が実行され、サブ機能は停止される。 In step S121, the first host controller 103 performs HS mode handshake. In step S122, the first host controller 103 starts communication of the main function in HS mode. At this time, the CPU 102 stops the execution of the sub-function in the second host controller 104. In this way, when the processes of steps S120 to S122 are executed, the main function is executed in the HS mode in the communication between the image processing device 10 and the user terminal 20, and the sub-functions are stopped.

図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 user terminal 20. In step S201, the CPU 202 connects the USB3.0 side (first HS conversion unit 206 side) with the selector 208. In step S202, the first device controller 203 waits until the VBUS supplied from the image processing device 10 (VBUS supplied in step S102 of FIG. 4) is detected, and when it is detected, the process in step S203 is performed. move on.

ステップS203乃至S205において、第1デバイスコントローラ203は、SS変換部205を介して画像処理装置10とSSモードでの通信を確立させる。まず、ステップS203において、第1デバイスコントローラ203は、SSポートの接続が検出されたかを判定する。接続が検出された場合、第1デバイスコントローラ203はステップS204の処理に進む。一方、接続が検出されなかった場合、第1デバイスコントローラ203はステップS220の処理に進む。 In steps S203 to S205, the first device controller 203 establishes communication with the image processing device 10 in SS mode via the SS conversion unit 205. First, in step S203, the first device controller 203 determines whether or not the SS port connection has been detected. If the connection is detected, the first device controller 203 proceeds to the process of step S204. On the other hand, if the connection is not detected, the first device controller 203 proceeds to the process of step S220.

ステップS204において、第1デバイスコントローラ203は、リンクトレーニングを実施する。リンクトレーニングに成功した場合、第1デバイスコントローラ203はステップS205の処理に進む。一方、失敗した場合、第1デバイスコントローラ203はステップS220の処理に進む。 In step S204, the first device controller 203 performs link training. If the link training is successful, the first device controller 203 proceeds to the process of step S205. On the other hand, if it fails, the first device controller 203 proceeds to the process of step S220.

ステップS205において、第1デバイスコントローラ203はポートコンフィグレーションを行う。ポートコンフィグレーションに成功した場合、第1デバイスコントローラ203はステップS206の処理に進む。一方、失敗した場合、第1デバイスコントローラ203はステップS220の処理に進む。 In step S205, the first device controller 203 performs port configuration. If the port configuration is successful, the first device controller 203 proceeds to the process of step S206. On the other hand, if it fails, the first device controller 203 proceeds to the process of step S220.

ステップS206において、CPU202は、セレクタ208の接続先を、第1HS変換部206から第2HS変換部207に切り替える。ステップS207において、CPU202の制御の下、第1デバイスコントローラ203は、SSモードでメイン機能の通信を開始する。 In step S206, the CPU 202 switches the connection destination of the selector 208 from the first HS conversion unit 206 to the second HS conversion unit 207. In step S207, under the control of the CPU 202, the first device controller 203 starts the communication of the main function in the SS mode.

また、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 CPU 202, in steps S208 to S210, the second device controller 204 starts communication of the sub-function in the HS mode. The process of step S207 and the processes of steps S208 to S210 are executed in parallel by the first device controller 203 and the second device controller 204. First, in step S208, the second device controller 204 pulls up D + of the second HS conversion unit 207. In step S209, the second device controller 204 performs an HS mode handshake. In step S210, the second device controller 204 starts communication of the sub-function in HS mode.

すなわち、ステップS207乃至ステップS210の処理により、画像処理装置10とユーザ端末20との通信では、1本のUSBケーブル2により、SSモードとHSモードとの2種類の通信経路が並列して用いられる。このとき、SSモードの通信によりメイン機能が実行され、HSモードの通信によりサブ機能が実行される。すなわち、SSモードの通信が確立している場合、SSモードの通信によるメイン機能と、HSモードの通信によるサブ機能とが並行して実行される。 That is, in the communication between the image processing device 10 and the user terminal 20 by the processing of steps S207 to S210, two types of communication paths, SS mode and HS mode, are used in parallel by one USB cable 2. .. At this time, the main function is executed by the communication in the SS mode, and the sub function is executed by the communication in the HS mode. That is, when SS mode communication is established, the main function by SS mode communication and the sub function by HS mode communication are executed in parallel.

一方、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 image processing device 10 proceeds to the process of step S220. Under the control of the CPU 202, in steps S220 to S222, the first device controller 203 starts communication of the main function in the HS mode. First, in step S220, the first device controller 203 pulls up the D + of the second HS conversion unit 207. In step S221, the first device controller 203 performs HS mode handshake. In step S222, the first device controller 203 starts communication of the main function in the HS mode. At this time, the CPU 202 stops the execution of the sub-function in the second device controller 204.

ステップ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 image processing device 10 and the user terminal 20, and the sub-functions are stopped.

[2−2]エラー対応処理
次いで、画像処理装置10とユーザ端末20とが通信中に通信エラーが発生した場合の動作を説明する。
[2-2] Error handling process Next, an operation when a communication error occurs during communication between the image processing device 10 and the user terminal 20 will be described.

図6は、画像処理装置10が行う処理の流れを示すフローチャートである。図6に示される処理は、SSモード及びHSモードで画像処理装置10とユーザ端末20とが通信している状態において、何らかの原因によりSSモードの通信が切断され、SSモードの通信のリカバリに失敗した場合、又は、リカバリ処理が予め定められた回数以上発生した(リカバリ処理が頻発した)ことをトリガとして開始される。 FIG. 6 is a flowchart showing the flow of processing performed by the image processing apparatus 10. In the process shown in FIG. 6, in the state where the image processing device 10 and the user terminal 20 are communicating in the SS mode and the HS mode, the SS mode communication is disconnected for some reason, and the recovery of the SS mode communication fails. If this happens, or when the recovery process occurs more than a predetermined number of times (recovery process occurs frequently), it is started as a trigger.

ステップS301において、CPU102は、第2ホストコントローラ104での一連の通信が終了するまで待機する。一連の通信が終了した場合、CPU102はステップS302の処理に進む。 In step S301, the CPU 102 waits until the series of communications in the second host controller 104 is completed. When the series of communication is completed, the CPU 102 proceeds to the process of step S302.

ステップS302において、CPU102は、第2ホストコントローラ104のサブ機能を停止させる。ステップS303において、CPU102は、セレクタ108の接続先を第2HS変換部107から第1HS変換部106に切り替える。 In step S302, the CPU 102 stops the sub-function of the second host controller 104. In step S303, the CPU 102 switches the connection destination of the selector 108 from the second HS conversion unit 107 to the first HS conversion unit 106.

次いで、ステップ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 first host controller 103 waits under the control of the CPU 102 until a D + pull-up is detected. This pull-up is performed by the user terminal 20 in step S404 of FIG. 7, which will be described later. When the pull-up is detected, the first host controller 103 proceeds to the process of step S305.

ステップS305において、第1ホストコントローラ103はHSモードのハンドシェークを行う。ステップS306において、第1ホストコントローラ103はHSモードでのメイン機能の通信を開始する。 In step S305, the first host controller 103 performs HS mode handshake. In step S306, the first host controller 103 starts communication of the main function in the HS mode.

図7は、ユーザ端末20が行う処理の流れを示すフローチャートである。図7に示される処理は、SSモード及びHSモードで画像処理装置10とユーザ端末20とが通信している状態において、何らかの原因によりSSモードの通信が切断され、SSモードの通信のリカバリに失敗した場合、又は、リカバリ処理が予め定められた回数以上発生した(リカバリ処理が頻発した)ことをトリガとして開始される。 FIG. 7 is a flowchart showing the flow of processing performed by the user terminal 20. In the process shown in FIG. 7, in the state where the image processing device 10 and the user terminal 20 are communicating in the SS mode and the HS mode, the SS mode communication is disconnected for some reason, and the recovery of the SS mode communication fails. If this happens, or when the recovery process occurs more than a predetermined number of times (recovery process occurs frequently), it is started as a trigger.

ステップS401において、CPU202は、第2デバイスコントローラ204がサスペンド状態であるかを判定する。サスペンド状態であると判定された場合、CPU202はステップS402の処理をスキップしてステップS403の処理に進む。一方、サスペンド状態でないと判定された場合、CPU202はステップS402の処理に進む。 In step S401, the CPU 202 determines whether the second device controller 204 is in the suspended state. If it is determined that the state is suspended, the CPU 202 skips the process of step S402 and proceeds to the process of step S403. On the other hand, if it is determined that the state is not suspended, the CPU 202 proceeds to the process of step S402.

ステップS402において、CPU202は、第2デバイスコントローラ204の通信エラーが発生するまで待機する。この通信エラーは、図6のステップS302により画像処理装置10のサブ機能が停止されてステップS303でHSモードの通信の接続先がセレクタ108により切り換えられることにより発生するものである。エラーの発生が検出されると(ステップS402)、CPU202はステップS403の処理に進む。 In step S402, the CPU 202 waits until a communication error of the second device controller 204 occurs. This communication error occurs when the sub-function of the image processing device 10 is stopped in step S302 of FIG. 6 and the connection destination of the HS mode communication is switched by the selector 108 in step S303. When the occurrence of an error is detected (step S402), the CPU 202 proceeds to the process of step S403.

ステップS403において、CPU202は、セレクタ208の接続先を第2HS変換部207から第1HS変換部206に切り替える。 In step S403, the CPU 202 switches the connection destination of the selector 208 from the second HS conversion unit 207 to the first HS conversion unit 206.

次いで、ステップ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 first device controller 203 pulls up D + in the first HS conversion unit 206 under the control of the CPU 202. In step S405, the first device controller 203 performs HS mode handshake. In step S406, the first device controller 203 starts communication of the main function in the HS mode.

以上説明したようにこの実施形態では、メイン機能を実行する第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 first host controller 103 and the first device controller 203 that execute the main function, the D + / D- line is released and another USB. The controllers (second host controller 104 and second device controller 204) communicate the sub-functions. On the other hand, when the SS mode communication is not established, the function restriction for stopping the sub function is performed, and the communication of the main function is performed in the HS mode. As a result, the wiring in the communication device between the boards can be completed with one 3.0 cable, and the communication between the boards becomes easy. Further, even if the establishment of SS mode communication fails, it is possible to prevent the main function from stopping. When the sub-function is stopped, for example, an event such as no error sound is generated occurs, but even if the sub-function is stopped, the execution of a series of processes is not stopped.

また、この実施形態では、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 CPU 102 may delimit the communication in the HS mode of the second host controller 104. After the transfer is performed up to this point, the sub-function is stopped, and the connection destination of the selector 108 is switched from the second HS conversion unit 107 to the first HS conversion unit 106. By doing so, a communication error is generated on the device side (user terminal 20). The device side (user terminal 20) switches the connection destination of the selector 208 from the second HS conversion unit 207 to the first HS conversion unit 206 by detecting a communication error, and then reconnects in the HS mode to perform the function restriction mode (sub-function). Is disabled mode) to resume communication. As a result, even if the SS mode communication is interrupted, it is possible to prevent the main function from being stopped.

[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 CPU 102 and the CPU 202 monitor the establishment / failure of communication for switching the connection destination of the HS mode in the selector 108 and the selector 208. This monitoring may be performed by the CPU 102 and the CPU 202, or may be performed by dedicated hardware for monitoring the status signal from the first host controller 103 and / or the first device controller 203.

(2)画像処理装置10及びユーザ端末20のハードウェア構成は、上述したものに限られない。例えば、図8に例示する構成であってもよい。 (2) The hardware configurations of the image processing device 10 and the user terminal 20 are not limited to those described above. For example, the configuration illustrated in FIG. 8 may be used.

図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 image processing device 10 of FIG. 3 according to the above-described embodiment in that the position on the mounting of the selector 108A is different. Further, the user terminal 20A shown in FIG. 8 is different from the user terminal 20 of FIG. 3 according to the above-described embodiment in that the position on the mounting of the selector 208A is different.

図8において、セレクタ108Aは、CPU102の制御の下、HS変換部106Aを介したHSモードの通信の接続先を、第1ホストコントローラ103と第2ホストコントローラ104とで切り替える。セレクタ208Aは、CPU202の制御の下、HS変換部206Aを介したHSモードの通信の接続先を、第1デバイスコントローラ203と第2デバイスコントローラ204とで切り替える。 In FIG. 8, the selector 108A switches the connection destination of the HS mode communication via the HS conversion unit 106A between the first host controller 103 and the second host controller 104 under the control of the CPU 102. Under the control of the CPU 202, the selector 208A switches the connection destination of the HS mode communication via the HS conversion unit 206A between the first device controller 203 and the second device controller 204.

図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 image processing device 10 of FIG. 3 according to the above-described embodiment in that it includes a second device controller 104B instead of the second host controller 104. Further, the user terminal 20B shown in FIG. 9 is different from the user terminal 20 of FIG. 3 according to the above-described embodiment in that the second host controller 204B is provided instead of the second device controller 204. That is, in the example of FIG. 9, the mounting positions of the USB 2.0 host controller and the device controller are interchanged.

(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 CPU 102 of the image processing device 10 and the CPU 202 of the user terminal 20 may be downloaded via a communication line such as the Internet. Further, these programs are provided in a state of being recorded on a computer-readable recording medium such as a magnetic recording medium (magnetic tape, magnetic disk, etc.), an optical recording medium (optical disk, etc.), an optical magnetic recording medium, a semiconductor memory, or the like. May be done.

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の通信方法に対応した第2接続部とを備えるインターフェースと、
当該装置が実行する装置実行処理に含まれる第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実行部で実行される処理及び前記第2実行部で実行される処理は、当該装置で実行される一の処理に関係する処理である
請求項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.
前記第1の機能は、当該装置で実行される処理の実行に必須の処理であり、
前記第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.
前記第2実行部と通信する装置は、前記第1実行部と通信する装置である
請求項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接続部を介した通信が確立している場合、前記第1実行部及び前記第2実行部により、前記第1接続部を介した通信及び前記第2接続部を介した通信が並列して用いられる
請求項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接続部を介した前記第1実行部の通信が切断された場合、前記第2接続部を介した前記第2実行部の通信を切断した後、前記第2接続部を介した前記第1実行部の通信を確立する
請求項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.
前記切替部による切替がなされた場合に、前記第2の機能を停止させる制御を行う制御部
を更に有する請求項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.
前記第1の機能は、前記第2の機能が中断している期間においても当該第1の機能の実行により前記装置実行処理が継続される機能である
請求項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.
前記第2実行部は、前記第1接続部を介した通信が確立された場合に、前記第2接続部を介した通信の確立処理を行う
請求項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の通信方法は、前記第2の通信方法よりも通信速度が高速である
請求項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.
前記インターフェースは、USB3.xのSS(Super-Speed)モードに準拠した前記第1接続部と、USB2.0のHS(High-Speed)モードに準拠した前記第2接続部とを
備え、
前記切替部は、前記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接続部と、第2の通信方法に対応した第2接続部とを備えるインターフェースと、当該装置が実行する装置実行処理に含まれる第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, 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.
JP2017161185A 2017-08-24 2017-08-24 Information processing equipment and programs Active JP6958110B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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