JP2013137786A - Electronic apparatus and remote access processing method - Google Patents

Electronic apparatus and remote access processing method Download PDF

Info

Publication number
JP2013137786A
JP2013137786A JP2013028771A JP2013028771A JP2013137786A JP 2013137786 A JP2013137786 A JP 2013137786A JP 2013028771 A JP2013028771 A JP 2013028771A JP 2013028771 A JP2013028771 A JP 2013028771A JP 2013137786 A JP2013137786 A JP 2013137786A
Authority
JP
Japan
Prior art keywords
command
remote
local
data
storage device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013028771A
Other languages
Japanese (ja)
Other versions
JP5458193B2 (en
Inventor
Jun Sato
順 佐藤
Keiko Watanabe
恵古 渡邊
Junichi Iwasaki
淳一 岩崎
Takashi Minemura
隆司 峯邑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2013028771A priority Critical patent/JP5458193B2/en
Publication of JP2013137786A publication Critical patent/JP2013137786A/en
Application granted granted Critical
Publication of JP5458193B2 publication Critical patent/JP5458193B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic apparatus that achieves a remote access function for remotely controlling a storage device via another electronic apparatus, as a system excellent in convenience and extensibility.SOLUTION: According to an embodiment, an electronic apparatus includes command processing means that determines whether a transferred local command is a command without data, a data-out command, or a data-in command on the basis of command type information in a remote command packetized in a format conforming to a first interface, and issues the command following a communication procedure predetermined for each command. When a storage device is connected via a first bus supporting the first interface, the command processing means transfers the packet of the local command as it is. When the storage device is connected via a second bus supporting the second interface, the command processing means transfers the packet after converting it into a format conforming to a second interface.

Description

本発明の実施形態は、第1の電子機器によって制御される記憶装置を第2の電子機器から第1の電子機器を介して遠隔制御するリモートアクセス技術に関する。   Embodiments described herein relate generally to a remote access technology for remotely controlling a storage device controlled by a first electronic device from a second electronic device via the first electronic device.

近年、データ通信技術の向上やネットワーク環境の整備等に伴い、複数の電子機器間におけるデータのやり取りが様々な様態で行われている。このようなことから、複数の電子機器間におけるデータのやり取りに関する仕組みが、これまでも種々提案されている。   In recent years, along with improvement of data communication technology and improvement of network environment, data exchange between a plurality of electronic devices is performed in various modes. For these reasons, various mechanisms for exchanging data between a plurality of electronic devices have been proposed.

特表2004−531001号公報Special table 2004-531001 gazette

最近では、オフィス環境に止まらず、家庭環境においても、テレビジョン受像機、HDD(Hard disk drive)/DVD(Digital versatile disc)レコーダ、パーソナルコンピュータ(PC:Personal computer)、プリンタ等の家庭用電化製品間を無線通信によってケーブルレスで接続する無線LAN(Local area network)を構築することが行われ始めている。   Recently, home appliances such as television receivers, HDD (Hard disk drive) / DVD (Digital versatile disc) recorders, personal computers (PCs), printers, etc., not only in the office environment but also in the home environment. Construction of a wireless local area network (LAN) that connects cables without wires by wireless communication has begun.

例えば、HDD/DVDレコーダやプリンタ等の中には、SDカード(登録商標)等の可搬媒体を収納するためのスロットを備えたものも存在する。そのため、これらHDD/DVDレコーダやプリンタ等に収納された可搬媒体を、無線通信によってPC等から遠隔制御したいという要望が高まっている。   For example, some HDD / DVD recorders, printers, and the like have a slot for storing a portable medium such as an SD card (registered trademark). For this reason, there is an increasing demand to remotely control portable media stored in these HDD / DVD recorders, printers, and the like from a PC or the like by wireless communication.

ところで、複数の家庭用電化製品間における通信は、有線または無線に関わらず、一般に、半二重方式またはそれに準ずる通信方式である。一方、可搬媒体の中には、全二重方式のインタフェースを有するものも少なくない。ある家庭用電化製品に収納された(全二重方式のインタフェースを有する)可搬媒体を(半二重方式の通信を実行する)他の家庭用電化製品から遠隔制御する場合、前段の半二重通信部分と後段の全二重通信部分とを整合させる必要が生じるが、複数の家庭用電化製品間における通信、つまり前段の半二重通信部分の処理は、後段の全二重通信部分との整合を意識することのない軽微なものであることが好ましい。   Incidentally, communication between a plurality of household appliances is generally a half-duplex method or a communication method according to it, regardless of whether it is wired or wireless. On the other hand, some portable media have a full-duplex interface. When a portable medium (having a full-duplex interface) stored in one household appliance is remotely controlled from another household appliance (executing half-duplex communication), It is necessary to match the heavy-duty communication part and the full-duplex communication part in the subsequent stage, but communication between multiple household appliances, that is, the processing of the half-duplex communication part in the front stage is the same as the full-duplex communication part in the rear stage. It is preferable that it is a slight one that is not conscious of matching.

また、可搬媒体の中には、新たな機能が追加され得るものも存在する。よって、新機能の追加に伴い、将来、後段の全二重通信部分で処理されるコマンドが増えたとしても、前段の半二重通信部分の処理を変更することなく運用できることが好ましい。   There are some portable media to which new functions can be added. Therefore, it is preferable that even if the number of commands to be processed in the subsequent full-duplex communication part increases in the future due to the addition of a new function, it can be operated without changing the process in the previous half-duplex communication part.

本発明は、第1の電子機器によって制御される記憶装置を第2の電子機器から第1の電子機器を介して遠隔制御するリモートアクセス機能を、利便性および拡張性に優れた仕組みとして実現する電子機器およびリモートアクセス処理方法を提供することを目的とする。   The present invention realizes a remote access function for remotely controlling a storage device controlled by a first electronic device from a second electronic device via the first electronic device as a mechanism excellent in convenience and expandability. An object is to provide an electronic device and a remote access processing method.

実施形態によれば、電子機器は、第1のインタフェースに対応する第1のバスと、第2のインタフェースに対応する第2のバスと、リモートコマンド送受信手段と、コマンド処理手段とを具備する。リモートコマンド送受信手段は、記憶装置に対して発行する第1のプロトコルのローカルコマンドを伝達するためのコマンドであって、前記第1のインタフェースに準拠したフォーマットでパケット化される、前記ローカルコマンドの種類を示すコマンドタイプ情報を含む第2のプロトコルのリモートコマンドを他の電子機器から受信すると共に、当該リモートコマンドに対するレスポンスを前記他の電子機器に送信する。コマンド処理手段は、前記リモートコマンド送受信手段が前記他の電子機器から受信する前記リモートコマンドに含まれる前記コマンドタイプ情報に基づき、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドが、データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのいずれであるのかを判定し、前記データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのそれぞれについて予め定められた前記記憶装置との間の通信手順および前記他の電子機器との間の通信手順に従って、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドを含む1以上のローカルコマンドの前記記憶装置に対する発行と、前記記憶装置からのレスポンスを前記リモートコマンド送受信手段が前記他の電子機器に送信する前記リモートコマンドに対するレスポンスに含めた前記他の電子機器への伝達とを実行する。コマンド処理手段は、前記記憶装置が前記第1のバス経由で接続されている場合、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットをそのまま前記記憶装置に対して転送し、前記第2のバス経由で接続されている場合、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットを前記第1のインタフェースに準拠したフォーマットから前記第2のインタフェースに準拠したフォーマットに変換して前記記憶装置に対して転送する。   According to the embodiment, the electronic device includes a first bus corresponding to the first interface, a second bus corresponding to the second interface, a remote command transmission / reception unit, and a command processing unit. The remote command transmission / reception means is a command for transmitting a local command of the first protocol issued to the storage device, and is a packet type in a format conforming to the first interface. Is received from another electronic device, and a response to the remote command is transmitted to the other electronic device. Command processing means, based on the command type information included in the remote command received by the remote command transmission / reception means from the other electronic device, the local command transmitted from the other electronic device by the remote command, It is determined whether it is a command without data, a command for data out or a command for data in, and each of the command without data, the command for data out or the command for data in is determined in advance with the storage device. Issuing one or more local commands to the storage device including the local command transmitted from the other electronic device by the remote command according to a communication procedure between the second electronic device and the communication procedure with the other electronic device; Response from storage device Executing a transfer to the other electronic apparatus, including in response to scan said remote command receiving means for said remote command to be transmitted to the other electronic apparatus. When the storage device is connected via the first bus, the command processing means transfers a packet for storing the local command included in the remote command to the storage device as it is, When connected via a bus, a packet storing the local command included in the remote command is converted from a format conforming to the first interface to a format conforming to the second interface, and stored in the storage device. Forward.

第1実施形態のリモートアクセスシステムの概略構成を示すブロック図。1 is a block diagram showing a schematic configuration of a remote access system according to a first embodiment. 第1実施形態のリモートアクセスシステムが適用する第1のプロトコルのコマンドタイプを示す図。The figure which shows the command type of the 1st protocol which the remote access system of 1st Embodiment applies. 第1実施形態のリモートアクセスシステムが適用する第1のプロトコルのレスポンスタイプを示す図。The figure which shows the response type of the 1st protocol which the remote access system of 1st Embodiment applies. 第1実施形態のリモートアクセスシステムにおけるデータ無しのコマンド実行シーケンスを示す図。The figure which shows the command execution sequence without data in the remote access system of 1st Embodiment. 第1実施形態のリモートアクセスシステムにおけるデータアウトのコマンド実行シーケンスを示す図。The figure which shows the command execution sequence of the data out in the remote access system of 1st Embodiment. 第1実施形態のリモートアクセスシステムにおけるデータインのコマンド実行シーケンスを示す図。The figure which shows the command execution sequence of the data-in in the remote access system of 1st Embodiment. 第2実施形態のリモートアクセスシステムにおけるACMDフラグをオンにした場合のコマンド実行シーケンスを示す図。The figure which shows the command execution sequence at the time of turning on the ACMD flag in the remote access system of 2nd Embodiment. 第2実施形態のリモートアクセスシステムにおけるtransフラグをオンにした場合のコマンド実行シーケンスを示す図。The figure which shows the command execution sequence at the time of turning on the trans flag in the remote access system of 2nd Embodiment. 第2実施形態のリモートアクセスシステムにおけるstbyフラグをオンにした場合のコマンド実行シーケンスを示す図。The figure which shows the command execution sequence at the time of turning on the stby flag in the remote access system of 2nd Embodiment. 第2実施形態のリモートアクセスシステムにおけるSTOPフラグをオンにした場合のコマンド実行シーケンスを示す図。The figure which shows the command execution sequence at the time of turning on the STOP flag in the remote access system of 2nd Embodiment. 第2実施形態のリモートアクセスシステムにおけるBLKCOUNTフラグをオンにした場合のコマンド実行シーケンスを示す図。The figure which shows the command execution sequence at the time of turning on the BLKCOUNT flag in the remote access system of 2nd Embodiment. 第3実施形態のリモートアクセスシステムの概略構成を示すブロック図。The block diagram which shows schematic structure of the remote access system of 3rd Embodiment.

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

(第1実施形態)
まず、第1実施形態について説明する。
(First embodiment)
First, the first embodiment will be described.

図1は、本実施形態に係るリモートアクセスシステムの概略構成を示すブロック図である。図1に示すように、本実施形態のリモートアクセスシステムは、大きく分けて、リモートホスト1、ローカルホスト2および可搬デバイス3によって構成される。リモートホスト1は、例えばPCであり、ローカルホスト2は、例えばHDD/DVDレコーダである。可搬デバイス3は、例えばSDカード(登録商標)であり、例えばローカルホスト2に設けられたスロットに取り外し自在に収納される。   FIG. 1 is a block diagram showing a schematic configuration of a remote access system according to the present embodiment. As shown in FIG. 1, the remote access system of the present embodiment is roughly composed of a remote host 1, a local host 2, and a portable device 3. The remote host 1 is, for example, a PC, and the local host 2 is, for example, an HDD / DVD recorder. The portable device 3 is, for example, an SD card (registered trademark), and is detachably accommodated in a slot provided in the local host 2, for example.

ローカルホスト2は、ホストコントローラ25を介して可搬デバイス3を直接制御している。例えばローカルホスト2に設けられたスロットに収容された可搬デバイス3は、このホストコントローラ25と、コマンド/レスポンスポートおよびデータポートの物理伝送路を介して接続される。そのために、ホストコントローラ25と可搬デバイス3との間の通信は、コマンド/レスポンスポートとデータポートとが異なるデータ線構成を前提に設計されているコマンド、レスポンス、データ送受信体系の第1のプロトコル(全二重方式)が適用されている。また、図示していないが、ローカルホスト2からは、可搬デバイス3に対して、電源およびクロックも別の伝送路を用いて供給されている。ローカルホスト2に可搬デバイス3が接続されると、ローカルホスト2によって自動的に可搬デバイス3の初期化処理が行われ、可搬デバイス3は、スタンバイ(stby)状態になる。   The local host 2 directly controls the portable device 3 via the host controller 25. For example, the portable device 3 accommodated in a slot provided in the local host 2 is connected to the host controller 25 via a physical transmission path of a command / response port and a data port. Therefore, the communication between the host controller 25 and the portable device 3 is the first protocol of the command, response, and data transmission / reception system designed on the assumption that the command / response port and the data port have different data line configurations. (Full duplex method) is applied. Although not shown, the local host 2 supplies power and a clock to the portable device 3 using different transmission paths. When the portable device 3 is connected to the local host 2, the initialization processing of the portable device 3 is automatically performed by the local host 2, and the portable device 3 enters a standby (stby) state.

リモートホスト1とローカルホスト2とは、有線または無線の通信手段によって接続されている。当該有線または無線の通信手段による接続用のインタフェースとして、リモートホスト1とローカルホスト2との双方が、リモートコマンド送受信部(14,21)を有している。そして、リモートコマンド送受信部(14,21)間の通信は、入力ポートと出力ポートとが異なるデータ線構成を前提に設計されているコマンド、レスポンス、データ送受信体系の第2のプロトコル(半二重方式)が適用されている。   The remote host 1 and the local host 2 are connected by wired or wireless communication means. As an interface for connection by the wired or wireless communication means, both the remote host 1 and the local host 2 have remote command transmission / reception units (14, 21). The communication between the remote command transmission / reception units (14, 21) is a second protocol (half-duplex) of a command / response / data transmission / reception system designed on the assumption that the input port and the output port have different data line configurations. Method) is applied.

従って、リモートホスト1からローカルホスト2を介して可搬デバイス3を遠隔制御する場合に実行される通信には、第2のプロトコルが適用される半二重通信部分と第1のプロトコルが適用される全二重通信部分とが混在することになる。そこで、本実施形態のリモートアクセスシステムは、リモートホスト1からローカルホスト2を介して可搬デバイス3を遠隔制御するリモートアクセス機能を、利便性および拡張性に優れた仕組みとして実現したものであり、以下、この点について詳述する。   Therefore, the half-duplex communication portion to which the second protocol is applied and the first protocol are applied to the communication executed when the portable device 3 is remotely controlled from the remote host 1 through the local host 2. Will be mixed with the full-duplex communication part. Therefore, the remote access system of the present embodiment realizes a remote access function for remotely controlling the portable device 3 from the remote host 1 via the local host 2 as a mechanism having excellent convenience and expandability. Hereinafter, this point will be described in detail.

前述した(コマンド/レスポンスポートとデータポートとが異なるデータ線構成を前提に設計されているコマンド、レスポンス、データ送受信体系の)第1のプロトコルは、図2に示すように、br、bcr、ac、adtcの4つのコマンドタイプを持つ。brは、”Broadcast commands, no response”、bcrは、”Broad commands with response”、acは、”Addressed (point-to-point) commands”、adtcは、”Addressed (point-to-point) data transfer commands”と定義されている。また、第1のプロトコルは、図3に示すように、r1、r1b、r2、r3、r4、r5、r6、r7の8つのレスポンスタイプを持つ。r1は、”Normal Response Command”、r1bは、”Normal Response Command with busy”、r2は、”CID, CSD register”、r3は、”OCR register”、r4は、”IO_SEND_OP_COND response”、r5は、”IO_RW_DIRECT response”、r6は、”Published RCA response”、r7は、”Card interface condition”と定義されており、かつ、それぞれデータフォーマットとデータサイズとが定義されている。   The first protocol (command, response, and data transmission / reception system designed on the assumption that the command / response port and the data port are different from each other) has the br, bcr, ac as shown in FIG. , Adtc has four command types. br is “Broadcast commands, no response”, bcr is “Broad commands with response”, ac is “Addressed (point-to-point) commands”, adtc is “Addressed (point-to-point) data transfer commands ”. Further, the first protocol has eight response types, r1, r1b, r2, r3, r4, r5, r6, and r7, as shown in FIG. r1 is “Normal Response Command”, r1b is “Normal Response Command with busy”, r2 is “CID, CSD register”, r3 is “OCR register”, r4 is “IO_SEND_OP_COND response”, r5 is “ “IO_RW_DIRECT response” and r6 are defined as “Published RCA response”, r7 is defined as “Card interface condition”, and a data format and a data size are defined respectively.

本実施形態のリモートアクセスシステムでは、リモート環境からの可搬デバイス3に対するアクセスを、以下の3体系に整理する。   In the remote access system of this embodiment, access to the portable device 3 from a remote environment is organized into the following three systems.

(1)データ無しのコマンド実行
(2)データアウトのコマンド実行
(3)データインのコマンド実行
上記(1)は、br、bcr、acのコマンドタイプに対応する。上記(2)は、adtcのコマンドタイプにおいてホスト機器がデータを書き込む場合である。また、上記(3)は、adtcのコマンドタイプにおいてホスト機器がデータを読み出す場合である。
(1) Command execution without data (2) Command execution for data out (3) Command execution for data in The above (1) corresponds to the command types of br, bcr, and ac. The above (2) is a case where the host device writes data in the adtc command type. The above (3) is a case where the host device reads data in the adtc command type.

リモートホスト1は、ローカルホスト2を介して可搬デバイス3を遠隔制御する際、可搬デバイス3に発行する第1のプロトコルのコマンド(ローカルコマンド)を、第2のプロトコルのコマンド(リモートコマンド)でローカルホスト2に伝達する。ローカルコマンドは、コマンド番号と引数とで構成される。この際、リモートホスト1は、ローカルコマンドのコマンドタイプをリモートコマンドのヘッダ情報として併せて伝達する。   When the remote host 1 remotely controls the portable device 3 via the local host 2, the first protocol command (local command) issued to the portable device 3 is replaced with the second protocol command (remote command). To the local host 2. A local command is composed of a command number and an argument. At this time, the remote host 1 also transmits the command type of the local command as header information of the remote command.

一方、ローカルホスト2は、このコマンドタイプから、伝達されたローカルコマンドが上記(1)〜(3)の3体系のいずれに属するのかを判定し、判定した体系に対応する手順に従って、伝達されたローカルコマンドを含む1以上のローカルコマンドを可搬デバイス3に対して発行する。   On the other hand, the local host 2 determines from the command type which of the three systems (1) to (3) the transmitted local command belongs, and is transmitted according to the procedure corresponding to the determined system. One or more local commands including local commands are issued to the portable device 3.

また、リモートホスト1は、このコマンドタイプに加えて、ローカルコマンドに対して期待される可搬デバイス3からのレスポンスの種類を示すレスポンスタイプをリモートコマンドのヘッダ情報としてローカルホスト2にさらに伝達する。前述したように、レスポンスタイプそれぞれにデータサイズが定義されているので、ローカルホスト2は、伝達されたレスポンスタイプに基づき、可搬デバイス3からのレスポンスを格納するための記憶領域を確保する。さらに、このレスポンスタイプによって、ローカルホスト2は、レスポンスのタイミングを認識することができる。   In addition to this command type, the remote host 1 further transmits a response type indicating the type of response from the portable device 3 expected for the local command to the local host 2 as remote command header information. As described above, since the data size is defined for each response type, the local host 2 secures a storage area for storing the response from the portable device 3 based on the transmitted response type. Furthermore, the local host 2 can recognize the response timing by this response type.

ここで、図1を再び参照して、本実施形態のリモートアクセスシステムにおけるリモートホスト1およびローカルホスト2の各部の基本的な動作について説明する。   Here, with reference to FIG. 1 again, the basic operation of each part of the remote host 1 and the local host 2 in the remote access system of this embodiment will be described.

リモートホスト1上で動作するアプリケーションプログラム11が、可搬デバイス3の制御を行う場合、コマンド生成部12にて、可搬デバイス3を制御するためのコマンドが生成される。制御対象の可搬デバイス3がリモートの環境に存在する場合、コマンド生成部12にて生成されたコマンドは、リモートコマンド生成部13にて、生成されたコマンドに応じて、リモートコマンドに変換される。この時、ヘッダ情報として、上記コマンドタイプとレスポンスタイプとが付与される。変換されたリモートコマンドは、リモートコマンド送受信部14によって、ローカルホスト2に送信される。   When the application program 11 operating on the remote host 1 controls the portable device 3, the command generation unit 12 generates a command for controlling the portable device 3. When the portable device 3 to be controlled exists in a remote environment, the command generated by the command generation unit 12 is converted into a remote command by the remote command generation unit 13 according to the generated command. . At this time, the command type and response type are given as header information. The converted remote command is transmitted to the local host 2 by the remote command transmission / reception unit 14.

ローカルホスト2は、リモートホスト1からのリモートコマンドをリモートコマンド送受信部21によって受信し、コマンドヘッダ解釈部22に転送する。コマンドヘッダ解釈部22は、このリモートコマンド送受信部21によって受信されたリモートコマンドについてヘッダの解釈を実行する。コマンドヘッダ解釈部22は、リモートコマンドヘッダから解釈したコマンドタイプとリモートコマンド本体とをローカルコマンド生成部24、リモートコマンドヘッダから解釈したレスポンスタイプをレスポンス解釈部23にそれぞれ転送する。   The local host 2 receives the remote command from the remote host 1 by the remote command transmission / reception unit 21 and transfers it to the command header interpretation unit 22. The command header interpretation unit 22 interprets the header of the remote command received by the remote command transmission / reception unit 21. The command header interpreter 22 transfers the command type interpreted from the remote command header and the remote command body to the local command generator 24, and the response type interpreted from the remote command header to the response interpreter 23.

ローカルコマンド生成部24は、コマンドヘッダ解釈部22から受け取ったコマンドタイプとリモートコマンド本体とから可搬デバイス3を制御するためのコマンド群を生成する。ローカルコマンド生成部24は、この生成したコマンド群を、コマンドヘッダ解釈部22から受け取ったコマンドタイプから特定される上記(1)〜(3)のいずれかの体系に対応する手順に従って、ホストコントローラ25経由で可搬デバイス3に発行する。   The local command generator 24 generates a command group for controlling the portable device 3 from the command type received from the command header interpreter 22 and the remote command body. The local command generation unit 24 determines the generated command group in accordance with the procedure corresponding to any one of the systems (1) to (3) specified from the command type received from the command header interpretation unit 22. It is issued to the portable device 3 via.

可搬デバイス3内にて実行された結果は、ホストコントローラ25に戻され、レスポンス解釈部23にて確認される。レスポンス解釈部23は、コマンドヘッダ解釈部22から受け取ったレスポンスタイプに対応する、期待されるレスポンスデータフォーマットの場合、この結果をリモートコマンド送受信部21に送る。これにより、この結果はリモートホスト1に転送される。リモートホスト1では、レスポンス解釈部15にてレスポンスが解釈され、最終的に、アプリケーションプログラム11に実行結果が通知される。   The result executed in the portable device 3 is returned to the host controller 25 and confirmed by the response interpreter 23. In the case of an expected response data format corresponding to the response type received from the command header interpretation unit 22, the response interpretation unit 23 sends this result to the remote command transmission / reception unit 21. As a result, this result is transferred to the remote host 1. In the remote host 1, the response is interpreted by the response interpretation unit 15, and finally the execution result is notified to the application program 11.

以上が、本実施形態のリモートアクセスシステムにおけるリモートホスト1およびローカルホスト2の各部の基本的な動作である。   The above is the basic operation of each part of the remote host 1 and the local host 2 in the remote access system of this embodiment.

次に、上記(1)〜(3)の各体系のコマンド実行シーケンスを各々説明する。   Next, command execution sequences of the systems (1) to (3) will be described.

図4は、データ無しのコマンド実行シーケンスを示す図である。   FIG. 4 is a diagram showing a command execution sequence without data.

データなしのコマンドタイプ(br、bcr、ac)の場合、リモートホスト1は、ローカルホスト2に対して、コマンドタイプ、コマンド番号、引数およびレスポンスタイプを送信する(図4のa1)。一方、ローカルホスト2は、受信したコマンドタイプがデータなしのコマンドタイプ(br、bcr、ac)の場合、受信したコマンド番号および引数を可搬デバイス3に送信する(図4のa2,a3)。そして、ローカルホスト2は、可搬デバイス3から返却されたレスポンスをリモートホスト1に送信する(図4のa4〜a6)。なお、レスポンスがないコマンドの場合、ローカルホスト2は、レスポンスデータが空のレスポンスをリモートホスト1に送信する。   In the case of a command type without data (br, bcr, ac), the remote host 1 transmits a command type, a command number, an argument, and a response type to the local host 2 (a1 in FIG. 4). On the other hand, if the received command type is a command type without data (br, bcr, ac), the local host 2 transmits the received command number and argument to the portable device 3 (a2, a3 in FIG. 4). Then, the local host 2 transmits the response returned from the portable device 3 to the remote host 1 (a4 to a6 in FIG. 4). If the command has no response, the local host 2 transmits a response with empty response data to the remote host 1.

図5は、データアウトのコマンド実行シーケンスを示す図である。   FIG. 5 is a diagram showing a data execution command execution sequence.

データアウトのコマンドタイプ(adtc)の場合、リモートホスト1は、ローカルホスト2に対して、コマンドタイプ、コマンド番号、引数、レスポンスタイプおよびデータを送信する(図5のb1)。一方、ローカルホスト2は、受信したコマンドタイプがデータアウトのコマンドタイプ(adtc)の場合、まず、受信したコマンド番号および引数を可搬デバイス3に送信する(図5のb2,b3)。ローカルホスト2は、可搬デバイス3からレスポンスが返却されたら(図5のb4,b5)、受信したデータの可搬デバイス3への送信を実行する(図5のb6,b7)。ローカルホスト2は、受信したデータを可搬デバイス3へ送信し終えると、自動的に、ストップコマンドであるCMD13を発行する(図5のb8,b9)。ローカルホスト2は、このCMD13でデータの送信終了およびエラーが発生していないことを確認し(図5のb10,b11)、実行済みのコマンドのレスポンスをリモートホスト1に送信する(図5のb12)。   In the case of a data-out command type (adtc), the remote host 1 transmits a command type, a command number, an argument, a response type, and data to the local host 2 (b1 in FIG. 5). On the other hand, when the received command type is the data-out command type (adtc), the local host 2 first transmits the received command number and argument to the portable device 3 (b2 and b3 in FIG. 5). When the response is returned from the portable device 3 (b4 and b5 in FIG. 5), the local host 2 transmits the received data to the portable device 3 (b6 and b7 in FIG. 5). When the local host 2 finishes transmitting the received data to the portable device 3, it automatically issues a stop command CMD13 (b8, b9 in FIG. 5). The local host 2 confirms the end of data transmission and no error in this CMD13 (b10, b11 in FIG. 5), and transmits the response of the executed command to the remote host 1 (b12 in FIG. 5). ).

図6は、データインのコマンド実行シーケンスを示す図である。   FIG. 6 is a diagram showing a command execution sequence of data-in.

データインのコマンドタイプ(adtc)の場合、リモートホスト1は、ローカルホスト2に対して、コマンドタイプ、コマンド番号、引数およびレスポンスタイプを送信する(図6のc1)。一方、ローカルホスト2は、受信したコマンドタイプがデータインのコマンドタイプ(adtc)の場合、まず、受信したコマンド番号および引数を可搬デバイス3に送信する(図6のc2,c3)。また、ローカルホスト2は、可搬デバイス3から返却されるレスポンスを受信する(図6のc4,c5)。ローカルホスト2は、可搬デバイス3からレスポンスを受信し終えると(図6のc6,c7)、自動的に、ストップコマンドであるCMD13を発行する(図6のc8,c9)。ローカルホスト2は、このCMD13でデータの受信終了およびエラーが発生していないことを確認し(図6のc10,c11)、実行済みのコマンドのレスポンスと受信したデータとをリモートホスト1に送信する(図6のc12)。   In the case of the data-in command type (adtc), the remote host 1 transmits a command type, a command number, an argument, and a response type to the local host 2 (c1 in FIG. 6). On the other hand, when the received command type is the data-in command type (adtc), the local host 2 first transmits the received command number and argument to the portable device 3 (c2, c3 in FIG. 6). Further, the local host 2 receives a response returned from the portable device 3 (c4 and c5 in FIG. 6). When the local host 2 finishes receiving the response from the portable device 3 (c6, c7 in FIG. 6), it automatically issues a stop command CMD13 (c8, c9 in FIG. 6). The local host 2 confirms that no data has been received and no error has occurred in the CMD 13 (c10 and c11 in FIG. 6), and transmits the response of the executed command and the received data to the remote host 1. (C12 in FIG. 6).

以上のように、本実施形態のリモートアクセスシステムは、リモートホスト1からローカルホスト2にコマンドタイプおよびレスポンスタイプをコマンド(コマンド番号および引数)と同時に伝達する。ローカルホスト2は、伝達されたコマンドタイプおよびレスポンスタイプに基づき、コマンド実行シーケンスや、レスポンスのタイミング、サイズ等を認識する。これにより、リモートホスト1とローカルホスト2との間の通信を軽微なものとすることができる。また、将来、可搬デバイス3のコマンドが増えても、上記(1)〜(3)の3体系のいずれかに合致すれば、追加の実装が必要ない。   As described above, the remote access system of this embodiment transmits the command type and response type from the remote host 1 to the local host 2 at the same time as the command (command number and argument). The local host 2 recognizes the command execution sequence, the response timing, the size, and the like based on the transmitted command type and response type. Thereby, the communication between the remote host 1 and the local host 2 can be made light. Further, even if the number of commands of the portable device 3 increases in the future, additional mounting is not required if it matches any of the three systems (1) to (3).

また、データアウトにおいては、コマンドとデータとを一緒にリモートホスト1からローカルホスト2に伝達することによって、リモートホスト1とローカルホスト2とが無線接続されていた場合、当該無線区間上でのプロトコル情報のやりとりを削減することができる。同様に、データインにおいても、レスポンスとデータとを一緒にローカルホスト2からリモートホスト1に伝達することによって、無線区間上でのプロトコル情報のやりとりを削減することができる
(第2実施形態)
次に、第2実施形態について説明する。
In data-out, when the remote host 1 and the local host 2 are wirelessly connected by transmitting a command and data together from the remote host 1 to the local host 2, a protocol in the wireless section is used. Information exchange can be reduced. Similarly, in data-in, the exchange of protocol information over the wireless section can be reduced by transmitting the response and data together from the local host 2 to the remote host 1 (second embodiment).
Next, a second embodiment will be described.

可搬デバイス3は、特定のコマンドにおいて、そのコマンドの前または後に固有のコマンドの実行を必要とする場合がある。本実施形態のリモートアクセスシステムは、前段の半二重通信部分でのコマンドおよびレスポンスの送受信を省略し、プロトコルのオーバヘッド削減を実現するために、当該特定のコマンドをリモートホスト1からローカルホスト2に伝達するためのリモートコマンドのヘッダにフラグを設定することで、ローカルホスト2と可搬デバイス3との間で前述の固有のコマンドを自動実行させる仕組みをさらに備える。   The portable device 3 may require a specific command to be executed before or after a specific command. The remote access system of this embodiment omits the transmission and reception of commands and responses in the half-duplex communication part in the previous stage, and transmits the specific command from the remote host 1 to the local host 2 in order to reduce the protocol overhead. It further includes a mechanism for automatically executing the above-mentioned unique command between the local host 2 and the portable device 3 by setting a flag in the header of the remote command for transmission.

図7は、ACMDフラグをオンにした場合のコマンド実行シーケンスを示す図である。   FIG. 7 is a diagram showing a command execution sequence when the ACMD flag is turned on.

可搬デバイス3に対してアプリケーション(拡張)コマンドを発行する場合、その前にCMD55を発行する必要がある。リモートホスト1は、アプリケーションコマンドをローカルホスト2に伝達する際、ACMDフラグをオンに設定する(図7のd1)。ローカルホスト2は、ACMDフラグがオンの場合、指定されたコマンドの前に、CMD55を可搬デバイス3に対して発行する(図7のd2,d3)。可搬デバイス3からレスポンスが返却されたら(図7のd4,d5)、ローカルホスト2は、伝達されたコマンドを可搬デバイス3に対して発行する(図7のd6,d7)。ローカルホスト2は、伝達されたコマンドに対して可搬デバイス3から返却されたレスポンスをリモートホスト1に送信する(図7のd8〜d10)。   Before issuing an application (extended) command to the portable device 3, it is necessary to issue CMD55. When transmitting the application command to the local host 2, the remote host 1 sets the ACMD flag to ON (d1 in FIG. 7). When the ACMD flag is on, the local host 2 issues CMD55 to the portable device 3 before the designated command (d2, d3 in FIG. 7). When a response is returned from the portable device 3 (d4, d5 in FIG. 7), the local host 2 issues the transmitted command to the portable device 3 (d6, d7 in FIG. 7). In response to the transmitted command, the local host 2 transmits a response returned from the portable device 3 to the remote host 1 (d8 to d10 in FIG. 7).

図8は、transフラグをオンにした場合のコマンド実行シーケンスを示す図である。   FIG. 8 is a diagram showing a command execution sequence when the trans flag is turned on.

可搬デバイス3のコマンドの中には、可搬デバイス3がtrans状態にあるときに発行されるべきコマンドが存在する。この種のコマンドを発行する際、可搬デバイス3がstby状態であったならば、その前に、可搬デバイス3をstby状態からtrans状態に遷移させるためのCMD7を発行する必要がある。リモートホスト1は、この種のコマンドをローカルホスト2に伝達する際、transフラグをオンに設定する(図8のe1)。   Among the commands of the portable device 3, there are commands to be issued when the portable device 3 is in the trans state. If the portable device 3 is in the stby state when issuing this type of command, it is necessary to issue CMD7 for transitioning the portable device 3 from the stby state to the trans state before that. When the remote host 1 transmits this type of command to the local host 2, it sets the trans flag on (e1 in FIG. 8).

ローカルホスト2は、可搬デバイス3がstby状態またはtrans状態のいずれの状態であるのかを把握しているので、transフラグがオンの場合、可搬デバイス3がstby状態であったならば、CMD7を発行してtrans状態に遷移させる(図8のe2,e3)。CMD7に対するレスポンスが可搬デバイス3から返却されたら(図8のe4,e5)、ローカルホスト2は、伝達されたコマンドを可搬デバイス3に対して発行する(図8のe6,e7)。可搬デバイス3が元々trans状態であった場合、CMD7の発行は不要であることは言うまでもない。ローカルホスト2は、伝達されたコマンドに対して可搬デバイス3から返却されたレスポンスをリモートホスト1に送信する(図8のe8〜e10)。   Since the local host 2 knows whether the portable device 3 is in the stby state or the trans state, if the transport flag is on and the portable device 3 is in the stby state, CMD7 To transit to the trans state (e2, e3 in FIG. 8). When a response to CMD7 is returned from the portable device 3 (e4, e5 in FIG. 8), the local host 2 issues the transmitted command to the portable device 3 (e6, e7 in FIG. 8). Needless to say, when the portable device 3 is originally in the trans state, it is not necessary to issue CMD7. The local host 2 transmits a response returned from the portable device 3 to the transmitted command to the remote host 1 (e8 to e10 in FIG. 8).

図9は、stbyフラグをオンにした場合のコマンド実行シーケンスを示す図である。   FIG. 9 is a diagram showing a command execution sequence when the stby flag is turned on.

可搬デバイス3のコマンドの中には、可搬デバイス3がstby状態にあるときに発行されるべきコマンドが存在する。この種のコマンドを発行する際、可搬デバイス3がtrans状態であったならば、その前に、可搬デバイス3をtrans状態からstby状態に遷移させるためのCMD7を発行する必要がある。つまり、CMD7は、可搬デバイス3をstby状態とtrans状態との間で遷移させるためのコマンドである。リモートホスト1は、この種のコマンドをローカルホスト2に伝達する際、stbyフラグをオンに設定する(図9のf1)。   Among the commands of the portable device 3, there are commands that should be issued when the portable device 3 is in the stby state. When the portable device 3 is in the trans state when issuing this type of command, it is necessary to issue CMD7 for transitioning the portable device 3 from the trans state to the stby state before that. That is, CMD7 is a command for causing the portable device 3 to transition between the stby state and the trans state. When the remote host 1 transmits this type of command to the local host 2, the stby flag is set to ON (f1 in FIG. 9).

ローカルホスト2は、可搬デバイス3がstby状態またはtrans状態のいずれの状態であるのかを把握しているので、stbyフラグがオンの場合、可搬デバイス3がtrans状態であったならば、CMD7を発行してstby状態に遷移させる(図9のf2,f3)。CMD7に対するレスポンスが可搬デバイス3から返却されたら(図9のf4,f5)、ローカルホスト2は、伝達されたコマンドを可搬デバイス3に対して発行する(図9のf6,f7)。可搬デバイス3が元々stby状態であった場合、CMD7の発行は不要であることは言うまでもない。ローカルホスト2は、伝達されたコマンドに対して可搬デバイス3から返却されたレスポンスをリモートホスト1に送信する(図9のf8〜f10)。   Since the local host 2 knows whether the portable device 3 is in the stby state or the trans state, if the stby flag is on and the portable device 3 is in the trans state, CMD7 To shift to the stby state (f2, f3 in FIG. 9). When the response to CMD7 is returned from the portable device 3 (f4, f5 in FIG. 9), the local host 2 issues the transmitted command to the portable device 3 (f6, f7 in FIG. 9). Needless to say, when the portable device 3 is originally in the stby state, it is not necessary to issue CMD7. In response to the transmitted command, the local host 2 transmits a response returned from the portable device 3 to the remote host 1 (f8 to f10 in FIG. 9).

図10は、STOPフラグをオンにした場合のコマンド実行シーケンスを示す図である。   FIG. 10 is a diagram showing a command execution sequence when the STOP flag is turned on.

例えば、可搬デバイス3に対して複数ブロックのデータライト・リードを行う場合、通常、転送ストップコマンドであるCMD12を最後に発行する。そこで、例えば複数ブロックのデータライトを伴うコマンドをローカルホスト2に伝達する際、リモートホスト1は、STOPフラグをオンに設定する(図10のg1)。   For example, when a plurality of blocks of data write / read are performed with respect to the portable device 3, the CMD12 that is a transfer stop command is normally issued last. Thus, for example, when transmitting a command involving data write of a plurality of blocks to the local host 2, the remote host 1 sets the STOP flag to ON (g1 in FIG. 10).

第1実施形態で説明したように、データアウトのコマンドタイプの場合、ローカルホスト2は、まず、受信したコマンド番号および引数を可搬デバイス3に送信し(図10のg2,g3)、可搬デバイス3からレスポンスが返却されたら(図10のg4,g5)、受信したデータの可搬デバイス3への送信を実行する(図10のg6,g7)。そして、STOTフラグがオンに設定されている場合、ローカルホスト2は、受信したデータを可搬デバイス3へ送信し終えた際、転送ストップコマンドであるCMD12を自動的に発行する(図10のg8,g9)。このCMD12に対するレスポンスが可搬デバイス3から返却されたら(図10のg10,g11)、ローカルホスト2は、実行済みのコマンドのレスポンスをリモートホスト1に送信する(図10のg12)。   As described in the first embodiment, in the case of the data-out command type, the local host 2 first transmits the received command number and argument to the portable device 3 (g2 and g3 in FIG. 10) and is portable. When a response is returned from the device 3 (g4, g5 in FIG. 10), the received data is transmitted to the portable device 3 (g6, g7 in FIG. 10). When the STOT flag is set to ON, the local host 2 automatically issues a CMD12 which is a transfer stop command when the received data has been transmitted to the portable device 3 (g8 in FIG. 10). , G9). When a response to this CMD12 is returned from the portable device 3 (g10, g11 in FIG. 10), the local host 2 transmits a response of the executed command to the remote host 1 (g12 in FIG. 10).

図11は、BLKCOUNTフラグをオンにした場合のコマンド実行シーケンスである。   FIG. 11 shows a command execution sequence when the BLKCOUNT flag is turned on.

可搬デバイス3のコマンドのうち、CMD18またはCMD25は、データアウトのコマンドタイプであって、データサイズをCMD23によって事前に通知するためのコマンドである。リモートホスト1は、これらのコマンドをローカルホスト2に伝達する際、BLKCOUNTフラグをオンに設定する(図11のh1)。   Of the commands of the portable device 3, CMD18 or CMD25 is a data-out command type, and is a command for notifying the data size in advance by the CMD23. When the remote host 1 transmits these commands to the local host 2, it sets the BLKCOUNT flag to ON (h1 in FIG. 11).

BLKCOUNTフラグがオンの場合、ローカルホスト2は、リモートホスト1から伝達されたデータのデータサイズを事前に可搬デバイス3に通知するためにCMD23を発行する(図11のh2,h3)。このCMD23に対するレスポンスが可搬デバイス3から返却されたら(図11のh4,h5)、ローカルホスト2は、伝達されたコマンドであるCMD18またはCMD25を可搬デバイス3に対して発行する(図11のh6,h7)。ローカルホスト2は、可搬デバイス3からレスポンスが返却されたら(図11のh8,h9)、受信したデータの可搬デバイス3への送信を実行する(図11のh10,h11)。ローカルホスト2は、受信したデータを可搬デバイス3へ送信し終えると、実行済みのコマンドのレスポンスをリモートホスト1に送信する(図11のh12)。   When the BLKCOUNT flag is on, the local host 2 issues CMD23 to notify the portable device 3 in advance of the data size of the data transmitted from the remote host 1 (h2, h3 in FIG. 11). When the response to the CMD23 is returned from the portable device 3 (h4 and h5 in FIG. 11), the local host 2 issues the transmitted command CMD18 or CMD25 to the portable device 3 (in FIG. 11). h6, h7). When the response is returned from the portable device 3 (h8, h9 in FIG. 11), the local host 2 transmits the received data to the portable device 3 (h10, h11 in FIG. 11). When the local host 2 finishes transmitting the received data to the portable device 3, the local host 2 transmits a response to the executed command to the remote host 1 (h12 in FIG. 11).

以上のように、本実施形態のリモートアクセスシステムは、特定のコマンドの前後に必要とされるコマンド(引数なし、または伝達されたコマンドの引数から推測できるもの)については、リモートホスト1とローカルホスト2との間の通信パケットのヘッダにフラグを設定することで、リモートホスト1とローカルホスト2との間の通信を省略し、ローカルホスト2と可搬デバイス3との間で自動的かつ適時に実行させることを実現する。   As described above, the remote access system according to the present embodiment has the remote host 1 and the local host for commands required before and after a specific command (no argument or one that can be inferred from the argument of the transmitted command). By setting a flag in the header of the communication packet between the remote host 1 and the local host 2, communication between the remote host 1 and the local host 2 can be omitted automatically and timely between the local host 2 and the portable device 3. Realize it.

(第3実施形態)
次に、第3実施形態について説明する。
(Third embodiment)
Next, a third embodiment will be described.

図12は、本実施形態に係るリモートアクセスシステムの概略構成を示すブロック図である。図12に示すように、本実施形態のリモートアクセスシステムにおいては、ローカルホスト2のホストコントローラ25が、2つの接続インタフェース(SDバス、UHS−IIバス)に対応している。   FIG. 12 is a block diagram showing a schematic configuration of the remote access system according to the present embodiment. As shown in FIG. 12, in the remote access system of this embodiment, the host controller 25 of the local host 2 corresponds to two connection interfaces (SD bus and UHS-II bus).

SDバスでは、コマンドはCommand Token Format、レスポンスはResponse Token Formatにてパケット化される。一方、UHS−IIバスでは、コマンドおよびレスポンスの双方がUHS-II Packet Formatにてパケット化される。ローカルホスト2のホストコントローラ25が、1つの接続インタフェースのみに対応する場合、リモートホスト1とローカルホスト2との間のリモート区間でのデータ形式も、当該1つの接続インタフェースのデータ形式に対応させればよい。これに対して、ローカルホスト2のホストコントローラ25が、2つの接続インタフェースに対応する場合には、リモートホスト1とローカルホスト2との間のリモート区間でのデータ形式について何らかの工夫が必要となる。このような状況下において、本実施形態のリモートアクセスシステムは、リモートホスト1とローカルホスト2との間のリモート区間でのデータ形式として、以下の4形式のいずれかを採用する。   In the SD bus, commands are packetized in Command Token Format, and responses are packetized in Response Token Format. On the other hand, on the UHS-II bus, both commands and responses are packetized in the UHS-II Packet Format. When the host controller 25 of the local host 2 supports only one connection interface, the data format in the remote section between the remote host 1 and the local host 2 can also correspond to the data format of the one connection interface. That's fine. On the other hand, when the host controller 25 of the local host 2 supports two connection interfaces, some device is required for the data format in the remote section between the remote host 1 and the local host 2. Under such circumstances, the remote access system of the present embodiment employs one of the following four formats as a data format in the remote section between the remote host 1 and the local host 2.

(a)リモートホスト1は、独自形式にて、コマンドタイプ、ローカルコマンド(コマンド番号および引数)、レスポンスタイプ、データを伝達するためのリモートコマンドをローカルホスト2に対して発行する。ローカルホスト2は、ホストコントローラ25において、伝達されたコマンドがSDバス経由で接続された可搬デバイス3宛てまたはUHS−IIバス経由で接続された可搬デバイス3宛てかに応じて、当該コマンドを各々の接続インタフェースのデータ形式にてパケット化する。   (A) The remote host 1 issues a remote command for transmitting a command type, a local command (command number and argument), a response type, and data in a unique format to the local host 2. The local host 2 sends the command to the host controller 25 according to whether the transmitted command is destined for the portable device 3 connected via the SD bus or the portable device 3 connected via the UHS-II bus. Packetize in the data format of each connection interface.

(b)リモートホスト1は、(SDバスの)Command Token Format形式にて、コマンドタイプ、コマンド(コマンド番号および引数)、レスポンスタイプ、データを伝達するためのリモートコマンドをローカルホスト2に対して発行する。ローカルホスト2は、伝達されたコマンドがSDバス経由で接続された可搬デバイス3宛てであれば、ホストコントローラ25によって、そのまま可搬デバイス3に送信する。この場合、可搬デバイス3からResponse Token Format形式のレスポンスが返却されるので、そのままリモートコマンドのレスポンスに含めてリモートホスト1に伝達する。   (B) Remote host 1 issues a command type, command (command number and argument), response type, and remote command for transmitting data to local host 2 in the Command Token Format (SD bus) format To do. If the transmitted command is addressed to the portable device 3 connected via the SD bus, the local host 2 transmits the command to the portable device 3 as it is by the host controller 25. In this case, since a response in the Response Token Format format is returned from the portable device 3, it is included in the remote command response and transmitted to the remote host 1 as it is.

一方、伝達されたコマンドがUHS−IIバス経由で接続された可搬デバイス3宛てであれば、ホストコントローラ25において、当該コマンドをUHS-II Packet Formatのパケットに変換して可搬デバイス3に送信する。この場合、可搬デバイス3からUHS-II Packet Format形式のレスポンスが返却されるので、ホストコントローラ25において、当該レスポンスをResponse Token Format形式に変換し、リモートコマンドのレスポンスに含めてリモートホスト1に伝達する。   On the other hand, if the transmitted command is addressed to the portable device 3 connected via the UHS-II bus, the host controller 25 converts the command into a packet of UHS-II Packet Format and transmits it to the portable device 3. To do. In this case, since a response in the UHS-II Packet Format format is returned from the portable device 3, the host controller 25 converts the response to the Response Token Format format and includes it in the response of the remote command and transmits it to the remote host 1. To do.

(c)リモートホスト1は、(UHS−IIバスの)UHS-II Packet Format形式にて、コマンドタイプ、コマンド(コマンド番号および引数)、レスポンスタイプ、データを伝達するためのリモートコマンドをローカルホスト2に対して発行する。ローカルホスト2は、伝達されたコマンドがUHS−IIバス経由で接続された可搬デバイス3宛てであれば、ホストコントローラ25によって、そのまま可搬デバイス3に送信する。この場合、可搬デバイス3からUHS-II Packet Format形式のレスポンスが返却されるので、そのままリモートコマンドのレスポンスに含めてリモートホスト1に伝達する。   (C) The remote host 1 sends a remote command for transmitting the command type, command (command number and argument), response type, and data in the UHS-II Packet Format (UHS-II bus). Issued against. If the transmitted command is addressed to the portable device 3 connected via the UHS-II bus, the local host 2 transmits the command to the portable device 3 as it is by the host controller 25. In this case, since a response in the UHS-II Packet Format format is returned from the portable device 3, it is included in the remote command response and transmitted to the remote host 1 as it is.

一方、伝達されたコマンドがSDバス経由で接続された可搬デバイス3宛てであれば、ホストコントローラ25において、当該コマンドをCommand Token Formatのパケットに変換して可搬デバイス3に送信する。この場合、可搬デバイス3からResponse Token Format形式のレスポンスが返却されるので、ホストコントローラ25において、当該レスポンスをUHS-II Packet Format形式に変換し、リモートコマンドのレスポンスに含めてリモートホスト1に伝達する。   On the other hand, if the transmitted command is addressed to the portable device 3 connected via the SD bus, the host controller 25 converts the command into a Command Token Format packet and transmits the packet to the portable device 3. In this case, since the response in the Response Token Format format is returned from the portable device 3, the host controller 25 converts the response into the UHS-II Packet Format format and transmits it to the remote host 1 by including it in the remote command response. To do.

(d)リモートホスト1は、ローカルホスト2に接続された可搬デバイス3のバスを認識して、コマンドタイプ、コマンド(コマンド番号および引数)、レスポンスタイプ、データを伝達するためのリモートコマンドを、適切なバケット形式にてローカルホスト2に送出する。ローカルホスト2は、伝達されたコマンドを可搬デバイス3に、また、可搬デバイス3から返却されたレスポンスをリモートホスト1にパススルーするだけでよい。   (D) The remote host 1 recognizes the bus of the portable device 3 connected to the local host 2, and transmits a command type, a command (command number and argument), a response type, and a remote command for transmitting data. Send to local host 2 in an appropriate bucket format. The local host 2 only needs to pass through the transmitted command to the portable device 3 and the response returned from the portable device 3 to the remote host 1.

上記(a)〜(d)のいずれの形式を採用した場合であっても、ローカルコマンドを3つの体系に分類することによって、リモートホスト1とローカルホスト2との間の通信は軽微なものとなる。   Even if any of the above formats (a) to (d) is adopted, the communication between the remote host 1 and the local host 2 is made light by classifying the local commands into three systems. Become.

このように、第1実施形態乃至第3実施形態のリモートアクセスシステムによれば、第1の電子機器によって制御される記憶装置を第2の電子機器から第1の電子機器を介して遠隔制御するリモートアクセス機能を、利便性および拡張性に優れた仕組みとして実現できる。   As described above, according to the remote access systems of the first to third embodiments, the storage device controlled by the first electronic device is remotely controlled from the second electronic device via the first electronic device. The remote access function can be realized as a mechanism with excellent convenience and expandability.

なお、第1実施形態乃至第3実施形態の可搬媒体はSDカード(登録商標)を例に説明したが、前記第1のプロトコルを具備する可搬媒体としてはメモリ機能を持つメモリカードおよび通信機能を持つIOカード、およびメモリ機能と通信機能の両方をもつコンボカードがこれら可搬媒体に含まれる。また、可搬媒体は可搬可能な形態でなくてもよく、電子機器に内蔵される形態で前記第1のプロトコルを具備する媒体でもよい。   Although the portable medium of the first to third embodiments has been described by taking an SD card (registered trademark) as an example, the portable medium having the first protocol includes a memory card having a memory function and communication. These portable media include an IO card having a function and a combo card having both a memory function and a communication function. Further, the portable medium does not have to be in a portable form, and may be a medium having the first protocol in a form built in an electronic device.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると共に、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

1…リモートホスト、2…ローカルホスト、3…可搬デバイス、11…アプリケーションプログラム、12…コマンド生成部、13…リモートコマンド生成部、14…リモートコマンド送受信部、15…レスポンス解釈部、21…リモートコマンド送受信部、22…コマンドヘッダ解釈部、23…レスポンス解釈部、24…ローカルコマンド生成部、25…ホストコントローラ。   DESCRIPTION OF SYMBOLS 1 ... Remote host, 2 ... Local host, 3 ... Portable device, 11 ... Application program, 12 ... Command generation part, 13 ... Remote command generation part, 14 ... Remote command transmission / reception part, 15 ... Response interpretation part, 21 ... Remote Command transmission / reception part, 22 ... Command header interpretation part, 23 ... Response interpretation part, 24 ... Local command generation part, 25 ... Host controller.

Claims (9)

第1のインタフェースに対応する第1のバスと、
第2のインタフェースに対応する第2のバスと、
記憶装置に対して発行する第1のプロトコルのローカルコマンドを伝達するためのコマンドであって、前記第1のインタフェースに準拠したフォーマットでパケット化される、前記ローカルコマンドの種類を示すコマンドタイプ情報を含む第2のプロトコルのリモートコマンドを他の電子機器から受信すると共に、当該リモートコマンドに対するレスポンスを前記他の電子機器に送信するリモートコマンド送受信手段と、
前記リモートコマンド送受信手段が前記他の電子機器から受信する前記リモートコマンドに含まれる前記コマンドタイプ情報に基づき、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドが、データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのいずれであるのかを判定し、前記データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのそれぞれについて予め定められた前記記憶装置との間の通信手順および前記他の電子機器との間の通信手順に従って、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドを含む1以上のローカルコマンドの前記記憶装置に対する発行と、前記記憶装置からのレスポンスを前記リモートコマンド送受信手段が前記他の電子機器に送信する前記リモートコマンドに対するレスポンスに含めた前記他の電子機器への伝達とを実行するコマンド処理手段と
を具備し、
前記コマンド処理手段は、前記記憶装置が前記第1のバス経由で接続されている場合、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットをそのまま前記記憶装置に対して転送し、前記第2のバス経由で接続されている場合、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットを前記第1のインタフェースに準拠したフォーマットから前記第2のインタフェースに準拠したフォーマットに変換して前記記憶装置に対して転送する
電子機器。
A first bus corresponding to the first interface;
A second bus corresponding to the second interface;
Command type information indicating a type of the local command, which is a command for transmitting a local command of the first protocol issued to the storage device and packetized in a format conforming to the first interface. Remote command transmission / reception means for receiving a remote command of the second protocol including from another electronic device and transmitting a response to the remote command to the other electronic device;
Based on the command type information included in the remote command received by the remote command transmission / reception means from the other electronic device, the local command transmitted from the other electronic device by the remote command is a command without data, Determining whether the command is a data-out command or a data-in command, and a communication procedure with the storage device that is predetermined for each of the no-data command, the data-out command, or the data-in command, and Issuing one or more local commands to the storage device including the local command transmitted from the other electronic device by the remote command according to a communication procedure with the other electronic device, and a response from the storage device The remote control ; And a command processing unit for executing the transfer to the other electronic apparatus, including the response command receiving means for said remote command to be transmitted to the other electronic apparatus,
When the storage device is connected via the first bus, the command processing means transfers the packet storing the local command included in the remote command to the storage device as it is, The packet storing the local command included in the remote command is converted from a format compliant with the first interface to a format compliant with the second interface. Transfer to electronic equipment.
第1のインタフェースに対応する第1のバスと、
第2のインタフェースに対応する第2のバスと、
記憶装置に対して発行する第1のプロトコルのローカルコマンドを伝達するためのコマンドであって、前記記憶装置が前記第1のバス経由で接続されている場合、前記第1のインタフェースに準拠したフォーマットでパケット化され、前記第2のバス経由で接続されている場合、前記第2のインタフェースに準拠したフォーマットでパケット化される、前記ローカルコマンドの種類を示すコマンドタイプ情報を含む第2のプロトコルのリモートコマンドを他の電子機器から受信すると共に、当該リモートコマンドに対するレスポンスを前記他の電子機器に送信するリモートコマンド送受信手段と、
前記リモートコマンド送受信手段が前記他の電子機器から受信する前記リモートコマンドに含まれる前記コマンドタイプ情報に基づき、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドが、データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのいずれであるのかを判定し、前記データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのそれぞれについて予め定められた前記記憶装置との間の通信手順および前記他の電子機器との間の通信手順に従って、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドを含む1以上のローカルコマンドの前記記憶装置に対する発行と、前記記憶装置からのレスポンスを前記リモートコマンド送受信手段が前記他の電子機器に送信する前記リモートコマンドに対するレスポンスに含めた前記他の電子機器への伝達とを実行するコマンド処理手段と
を具備し、
前記コマンド処理手段は、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットをそのまま前記記憶装置に対して転送する
電子機器。
A first bus corresponding to the first interface;
A second bus corresponding to the second interface;
A command for transmitting a local command of a first protocol to be issued to a storage device, and when the storage device is connected via the first bus, a format conforming to the first interface Of the second protocol including the command type information indicating the type of the local command, which is packetized in a format conforming to the second interface when the packet is connected via the second bus. Remote command transmission / reception means for receiving a remote command from another electronic device and transmitting a response to the remote command to the other electronic device;
Based on the command type information included in the remote command received by the remote command transmission / reception means from the other electronic device, the local command transmitted from the other electronic device by the remote command is a command without data, Determining whether the command is a data-out command or a data-in command, and a communication procedure with the storage device that is predetermined for each of the no-data command, the data-out command, or the data-in command, and Issuing one or more local commands to the storage device including the local command transmitted from the other electronic device by the remote command according to a communication procedure with the other electronic device, and a response from the storage device The remote control ; And a command processing unit for executing the transfer to the other electronic apparatus, including the response command receiving means for said remote command to be transmitted to the other electronic apparatus,
The electronic device, wherein the command processing means transfers a packet storing the local command included in the remote command as it is to the storage device.
前記第1のプロトコルは、全二重方式の通信を行うためのプロトコルであり、前記第2のプロトコルは、半二重方式の通信を行うためのプロトコルである請求項1または2に記載の電子機器。   The electronic device according to claim 1 or 2, wherein the first protocol is a protocol for performing full-duplex communication, and the second protocol is a protocol for performing half-duplex communication. machine. 前記リモートコマンドは、前記ローカルコマンドに対する前記記憶装置からのレスポンスの種類を示すレスポンスタイプ情報を含み、
前記コマンド処理手段は、前記リモートコマンドに含まれる前記レスポンスタイプ情報に基づき、前記記憶装置からのレスポンスを格納するための記憶領域を確保する
請求項1または2に記載の電子機器。
The remote command includes response type information indicating a type of response from the storage device to the local command,
The electronic device according to claim 1, wherein the command processing unit secures a storage area for storing a response from the storage device based on the response type information included in the remote command.
前記コマンド処理手段は、前記リモートコマンドに含まれる前記レスポンスタイプ情報に基づき、前記記憶装置からのレスポンスのタイミングを認識する請求項4に記載の電子機器。   The electronic device according to claim 4, wherein the command processing unit recognizes a response timing from the storage device based on the response type information included in the remote command. 前記コマンド処理手段は、前記リモートコマンドを格納するパケットのヘッダ内に定義されるフラグであって、前記リモートコマンドによって伝達される第1のローカルコマンドの発行前または発行後に前記記憶装置に対して第2のローカルコマンドを発行すべきことを伝達するためのフラグがオンに設定されていた場合、前記第1のローカルコマンドの発行前または発行後に前記記憶装置に対して前記第2のローカルコマンドを発行する請求項1または2に記載の電子機器。   The command processing means is a flag defined in a header of a packet storing the remote command, and is stored in the storage device before or after issuing the first local command transmitted by the remote command. When the flag for transmitting that the second local command is to be issued is set to ON, the second local command is issued to the storage device before or after the first local command is issued. The electronic device according to claim 1 or 2. 前記コマンド処理手段は、前記フラグがオンに設定されていた場合、前記第2のローカルコマンドの発行要否を判定し、必要と判定した場合に、前記記憶装置に対して前記第2のローカルコマンドを発行する請求項6に記載の電子機器。   The command processing means determines whether or not the second local command needs to be issued when the flag is set to ON, and determines that the second local command is issued to the storage device when it is determined to be necessary. The electronic device according to claim 6 which issues. 第1のインタフェースに対応する第1のバスと、第2のインタフェースに対応する第2のバスとを有する電子機器のリモートアクセス処理方法であって、
記憶装置に対して発行する第1のプロトコルのローカルコマンドを伝達するためのコマンドであって、前記第1のインタフェースに準拠したフォーマットでパケット化される、前記ローカルコマンドの種類を示すコマンドタイプ情報を含む第2のプロトコルのリモートコマンドを他の電子機器から受信し、
前記リモートコマンドに含まれる前記コマンドタイプ情報に基づき、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドが、データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのいずれであるのかを判定し、前記データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのそれぞれについて予め定められた前記記憶装置との間の通信手順および前記他の電子機器との間の通信手順に従って、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドを含む1以上のローカルコマンドの前記記憶装置に対する発行と、前記記憶装置からのレスポンスを前記リモートコマンド送受信手段が前記他の電子機器に送信する前記リモートコマンドに対するレスポンスに含めた前記他の電子機器への伝達とを実行し、
前記1以上のローカルコマンドの前記記憶装置に対する発行を実行することは、前記記憶装置が前記第1のバス経由で接続されている場合、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットをそのまま前記記憶装置に対して転送し、前記第2のバス経由で接続されている場合、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットを前記第1のインタフェースに準拠したフォーマットから前記第2のインタフェースに準拠したフォーマットに変換して前記記憶装置に対して転送することである
リモートアクセス処理方法。
A remote access processing method for an electronic device having a first bus corresponding to a first interface and a second bus corresponding to a second interface,
Command type information indicating a type of the local command, which is a command for transmitting a local command of the first protocol issued to the storage device and packetized in a format conforming to the first interface. Receiving a remote command of the second protocol including from another electronic device,
Based on the command type information included in the remote command, whether the local command transmitted from the other electronic device by the remote command is a command without data, a data out command, or a data in command In accordance with a communication procedure with the storage device and a communication procedure with the other electronic device, which are determined in advance for each of the no-data command, the data-out command, or the data-in command, Issuing one or more local commands including the local command transmitted from the other electronic device by a remote command to the storage device, and transmitting a response from the storage device to the other electronic device. The remote frame to Perform the transfer to the other electronic apparatus, including in response to de,
Issuing the one or more local commands to the storage device means that when the storage device is connected via the first bus, the packet storing the local command included in the remote command is used as it is. When transferred to the storage device and connected via the second bus, a packet storing the local command included in the remote command is transferred from the format conforming to the first interface to the second A remote access processing method, comprising: converting to a format conforming to an interface and transferring the data to the storage device.
第1のインタフェースに対応する第1のバスと、第2のインタフェースに対応する第2のバスとを有する電子機器のリモートアクセス処理方法であって、
記憶装置に対して発行する第1のプロトコルのローカルコマンドを伝達するためのコマンドであって、前記記憶装置が前記第1のバス経由で接続されている場合、前記第1のインタフェースに準拠したフォーマットでパケット化され、前記第2のバス経由で接続されている場合、前記第2のインタフェースに準拠したフォーマットでパケット化される、前記ローカルコマンドの種類を示すコマンドタイプ情報を含む第2のプロトコルのリモートコマンドを他の電子機器から受信し、
前記リモートコマンドに含まれる前記コマンドタイプ情報に基づき、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドが、データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのいずれであるのかを判定し、前記データ無しのコマンド、データアウトのコマンドまたはデータインのコマンドのそれぞれについて予め定められた前記記憶装置との間の通信手順および前記他の電子機器との間の通信手順に従って、前記リモートコマンドによって前記他の電子機器から伝達される前記ローカルコマンドを含む1以上のローカルコマンドの前記記憶装置に対する発行と、前記記憶装置からのレスポンスを前記リモートコマンド送受信手段が前記他の電子機器に送信する前記リモートコマンドに対するレスポンスに含めた前記他の電子機器への伝達とを実行し、
前記1以上のローカルコマンドの前記記憶装置に対する発行を実行することは、前記リモートコマンドに含まれる前記ローカルコマンドを格納するパケットをそのまま前記記憶装置に対して転送することである
リモートアクセス処理方法。
A remote access processing method for an electronic device having a first bus corresponding to a first interface and a second bus corresponding to a second interface,
A command for transmitting a local command of a first protocol to be issued to a storage device, and when the storage device is connected via the first bus, a format conforming to the first interface Of the second protocol including the command type information indicating the type of the local command, which is packetized in a format conforming to the second interface when the packet is connected via the second bus. Receive remote commands from other electronic devices,
Based on the command type information included in the remote command, whether the local command transmitted from the other electronic device by the remote command is a command without data, a data out command, or a data in command In accordance with a communication procedure with the storage device and a communication procedure with the other electronic device, which are determined in advance for each of the no-data command, the data-out command, or the data-in command, Issuing one or more local commands including the local command transmitted from the other electronic device by a remote command to the storage device, and transmitting a response from the storage device to the other electronic device. The remote frame to Perform the transfer to the other electronic apparatus, including in response to de,
Issuing the one or more local commands to the storage device is transferring a packet storing the local command included in the remote command to the storage device as it is. A remote access processing method.
JP2013028771A 2013-02-18 2013-02-18 Electronic device and remote access processing method Active JP5458193B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013028771A JP5458193B2 (en) 2013-02-18 2013-02-18 Electronic device and remote access processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013028771A JP5458193B2 (en) 2013-02-18 2013-02-18 Electronic device and remote access processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011195020A Division JP5209096B2 (en) 2011-09-07 2011-09-07 Remote access system, electronic device, and remote access processing method

Publications (2)

Publication Number Publication Date
JP2013137786A true JP2013137786A (en) 2013-07-11
JP5458193B2 JP5458193B2 (en) 2014-04-02

Family

ID=48913395

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013028771A Active JP5458193B2 (en) 2013-02-18 2013-02-18 Electronic device and remote access processing method

Country Status (1)

Country Link
JP (1) JP5458193B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005003980A1 (en) * 2003-07-01 2005-01-13 T & D Corporation Multipurpose semiconductor integrated circuit device
JP2007013880A (en) * 2005-07-04 2007-01-18 Canon Inc Protocol converting apparatus and protocol converting method
JP2007327656A (en) * 2006-06-06 2007-12-20 Daikin Ind Ltd Information management system
JP2009176306A (en) * 2003-01-31 2009-08-06 Panasonic Corp Semiconductor memory card, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009176306A (en) * 2003-01-31 2009-08-06 Panasonic Corp Semiconductor memory card, and program
WO2005003980A1 (en) * 2003-07-01 2005-01-13 T & D Corporation Multipurpose semiconductor integrated circuit device
JP2007013880A (en) * 2005-07-04 2007-01-18 Canon Inc Protocol converting apparatus and protocol converting method
JP2007327656A (en) * 2006-06-06 2007-12-20 Daikin Ind Ltd Information management system

Also Published As

Publication number Publication date
JP5458193B2 (en) 2014-04-02

Similar Documents

Publication Publication Date Title
JP4843747B2 (en) Direct data transfer between slave devices
US10261930B2 (en) System, device and method for transmitting signals between different communication interfaces
US8635386B2 (en) Communication control device, data communication method and program
TW201303608A (en) High speed USB hub with full speed to high speed transaction translator
US20070073824A1 (en) Apparatus and method for acquiring identification information when a bus reset occurs
JP5209096B2 (en) Remote access system, electronic device, and remote access processing method
US6587911B1 (en) Electronic device and data communication method
JP5719124B2 (en) Host device and slave device control method
JP5458193B2 (en) Electronic device and remote access processing method
US8812764B2 (en) Apparatus installing devices controlled by MDIO or SPI protocol and method to control the same
JP2012053792A (en) System for reducing usb isochronous transfer error
US6457072B1 (en) System and method for effectively performing physical direct memory access operations
US6553440B1 (en) Data transfer equipment for connecting a SCSI interface to an IEEE 1394 interface
US20100205334A1 (en) Device wire adapter and communication control method to perform data transfer between wireless USB host and wired USB device
US20130054847A1 (en) Semiconductor chip and semiconductor system comprising same
US20070294455A1 (en) Data Interface
JP2012049812A (en) Communication apparatus
JP2019020851A (en) Device control apparatus and device control method and program
KR20140123713A (en) Apparatus and method for accessing of divice through serial interface
KR20110125989A (en) Semiconductor chip and semiconductor system including the same
JP2010128909A (en) Data processing device and method and program
JP5359309B2 (en) Electronics
JP4175373B2 (en) Information processing apparatus and method, and data communication system
JP2007150390A (en) Communication apparatus
KR100296639B1 (en) Display device having integrated controller of monitor, usb hub, and device bay

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20130730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131129

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140110

R151 Written notification of patent or utility model registration

Ref document number: 5458193

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151